/* Welsh town pages (accountants-<town>): one stylesheet for the family. Layout and spacing only; body type from styles.css. */
.wt { --tint: #f3f8d8; --edge: max(24px, calc((100vw - 1240px) / 2 + 24px)); }
.wt p { margin: 0 0 12px; }
.wt h2 { margin: 0 0 24px; }
.wt h3 { font-family: "Lato", Arial, sans-serif; font-weight: 900; font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; color: var(--black); }
.wt h4 { font-family: "Lato", Arial, sans-serif; font-weight: 900; font-size: 1rem; line-height: 1.3; margin: 0; color: var(--black); }
.wt .wt-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.wt .wt-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.wt .wt-btns .btn { margin: 0; }

/* Hero: the town name set very large, on its own photograph where one exists, otherwise on black */
.wt .wt-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, calc(100vh - 150px), 820px); background: var(--black); color: var(--white); overflow: hidden; }
.wt .wt-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wt .wt-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,14,.84) 0%, rgba(14,14,14,.62) 42%, rgba(14,14,14,.12) 78%), linear-gradient(0deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,0) 45%); }
.wt .wt-hero-copy { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 76px; }
.wt .wt-hero h1 { color: var(--white); margin: 0; line-height: .92; }
.wt .wt-hero .wt-pre { display: block; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; margin-bottom: 8px; }
.wt .wt-hero .wt-town { display: block; font-size: clamp(3.4rem, 9.5vw, 9rem); line-height: .95; }
.wt .wt-hero .lead { color: rgba(255,255,255,.93); max-width: 620px; margin: 26px 0 0; }
.wt .wt-hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.75); }
.wt .wt-hero .btn-outline:hover { background: rgba(255,255,255,.1); }
.wt .wt-hero-type { min-height: clamp(520px, calc(100vh - 230px), 720px); }
.wt .wt-hero-type .wt-hero-copy { padding-top: 56px; padding-bottom: 64px; }
.wt .wt-hero-type .wt-town { font-size: clamp(2.6rem, calc((min(100vw, 1240px) - 48px) * .92 / var(--em)), 19rem); line-height: .9; margin-top: 4px; }
.wt .wt-hero-side { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-top: 36px; padding-top: 30px; border-top: 6px solid var(--lime); }
.wt .wt-hero-type .lead { margin: 0; }
.wt .wt-hero-type .wt-btns { margin: 0; justify-content: flex-end; }

/* Business base: reading column on the left, the sectors index on a tint panel running to the right window edge */
.wt .wt-base { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
.wt .wt-base-text { padding: 96px 72px 96px var(--edge); max-width: 860px; box-sizing: border-box; justify-self: end; width: 100%; }
.wt .wt-how { margin-top: 36px; padding: 26px 0 0; border-top: 3px solid var(--black); }
.wt .wt-how-call { margin: 14px 0 0; }
.wt .wt-how-call a, .wt .wt-towns-wales a, .wt .wt-fee-link { color: var(--black); font-weight: 900; text-decoration: none; border-bottom: 3px solid var(--lime); }
.wt .wt-sectors { background: var(--tint); padding: 96px var(--edge) 96px 56px; }
.wt .wt-sectors h3 { margin: 0 0 18px; }
.wt .wt-sectors ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.wt .wt-sectors li { font-family: "Anton", sans-serif; font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.15; color: var(--black); padding: 16px 0; border-bottom: 1px solid rgba(14,14,14,.22); }

/* What we do: on black, heading held on the left while the list runs */
.wt .wt-what { padding: 100px 0; }
.wt .wt-what .wt-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 80px; align-items: start; }
.wt .wt-what-head { position: sticky; top: 110px; }
.wt .wt-what-head p { color: #e4e3dc; }
.wt .wt-what-head .btn { margin-top: 18px; }
.wt .wt-what ol { list-style: none; margin: 0; padding: 0; counter-reset: wt; }
.wt .wt-what li { counter-increment: wt; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; padding: 26px 0; border-top: 1px solid #34342f; }
.wt .wt-what li:last-child { border-bottom: 1px solid #34342f; }
.wt .wt-what li::before { content: counter(wt); grid-row: span 2; width: 44px; height: 44px; border-radius: 8px; background: var(--lime); color: var(--black); font-family: "Anton", sans-serif; font-size: 1.35rem; line-height: 44px; text-align: center; }
.wt .wt-what li h3 { color: var(--white); margin: 0 0 6px; }
.wt .wt-what li p { color: #cfcec6; margin: 0; }
.wt .wt-what li p::first-letter { text-transform: uppercase; }

/* Questions: the one with a figure sits beside it; the rest two to a row */
.wt .wt-questions { padding: 0 0 96px; }
.wt .wt-q-fig { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); }
.wt .wt-q-text { padding: 96px 64px 72px var(--edge); max-width: 760px; box-sizing: border-box; justify-self: end; width: 100%; }
.wt .wt-q-panel { background: var(--tint); padding: 96px var(--edge) 72px 56px; display: flex; align-items: center; }
.wt .wt-q-plain { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 80px; padding-top: 96px; padding-bottom: 24px; align-items: start; }
.wt .wt-qa-lead h3 { font-size: 1.35rem; margin-bottom: 12px; }
.wt .wt-q-plain .wt-qa-lead { padding-top: 6px; }
.wt .wt-q-rest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: 48px; }
.wt .wt-q-rest .wt-qa { border-top: 3px solid var(--black); padding-top: 24px; }

/* Figures */
.wt .wt-fig { margin: 0; width: 100%; }
.wt .wt-fig figcaption { font-family: "Anton", sans-serif; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.15; color: var(--black); margin: 0 0 22px; }
.wt .wt-slips { display: grid; gap: 18px; }
.wt .wt-slips.wt-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wt .wt-slips .wt-slip { display: flex; flex-direction: column; }
.wt .wt-slips .wt-slip-total { margin-top: auto; padding-top: 14px; }
.wt .wt-slip { background: var(--white); border: 1px solid var(--black); border-top: 6px solid var(--black); border-radius: 4px; padding: 20px 22px 18px; }
.wt .wt-slip h4 { padding-bottom: 12px; border-bottom: 1px dashed rgba(14,14,14,.35); }
.wt .wt-slip dl { margin: 0; }
.wt .wt-slip dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(14,14,14,.2); }
.wt .wt-slip dt { color: var(--grey); }
.wt .wt-slip dd { margin: 0; font-weight: 700; text-align: right; color: var(--black); }
.wt .wt-n2 .wt-slip dl div { display: block; }
.wt .wt-n2 .wt-slip dd { text-align: left; }
.wt .wt-slip-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; }
.wt .wt-slip-total strong { font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(2.1rem, 3.2vw, 2.9rem); line-height: 1; color: var(--black); }
.wt .wt-slip ul { margin: 12px 0 0; padding-left: 18px; }
.wt .wt-slip li { margin: 6px 0; }
.wt .wt-premium { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wt .wt-premium li { aspect-ratio: 1; display: flex; align-items: flex-end; padding: 12px; border-radius: 6px; background: var(--lime); font-family: "Anton", sans-serif; font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1.05; color: var(--black); }
.wt .wt-premium li.std { background: var(--black); color: var(--white); font-family: "Lato", Arial, sans-serif; font-weight: 900; font-size: .95rem; }
.wt .wt-border { background: var(--white); border: 1px solid var(--black); border-radius: 4px; overflow: hidden; }
.wt .wt-b-head { display: grid; grid-template-columns: 1fr 1fr; background: var(--black); color: var(--white); font-family: "Anton", sans-serif; font-size: 1.4rem; }
.wt .wt-b-head span { padding: 12px 20px; }
.wt .wt-b-head span + span { border-left: 2px dashed var(--lime); }
.wt .wt-b-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.wt .wt-b-row h4 { grid-column: 1 / -1; padding: 16px 20px 0; }
.wt .wt-b-row p { padding: 8px 20px 16px; margin: 0; }
.wt .wt-b-row p + p { border-left: 2px dashed var(--black); }
.wt .wt-b-across { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.wt .wt-b-across:last-child { border-bottom: 0; }
.wt .wt-b-across p { margin: 4px 0 0; }
.wt .wt-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* Close: the enquiry on a lime panel from the left window edge, the form beside it */
.wt .wt-close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); scroll-margin-top: 80px; }
.wt .wt-close-side { background: var(--lime); padding: 96px 64px 96px var(--edge); }
.wt .wt-phone { font-family: "Anton", sans-serif; font-size: clamp(2.2rem, 3.6vw, 3.3rem); line-height: 1; margin: 22px 0 0; }
.wt .wt-phone a { color: var(--black); text-decoration: none; }
.wt .wt-close-side .btn-outline { border-color: var(--black); }
.wt .wt-fee { margin-top: 32px; max-width: 460px; }
.wt .wt-inc { margin-top: 36px; padding-top: 24px; border-top: 3px solid var(--black); max-width: 520px; }
.wt .wt-inc ul { margin: 0 0 16px; padding-left: 20px; }
.wt .wt-inc li { margin: 6px 0; }
.wt .wt-close-form { padding: 72px var(--edge) 72px 56px; background: var(--white); }
.wt .wt-close-form .contact-form { margin-top: 0; max-width: 620px; }

/* Towns */
.wt .wt-towns { padding: 88px 0 72px; border-top: 1px solid var(--line); }
.wt .wt-towns .wt-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 80px; }
.wt .wt-towns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.wt .wt-towns li a { font-family: "Anton", sans-serif; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.35; color: var(--black); text-decoration: none; border-bottom: 3px solid transparent; }
.wt .wt-towns li a:hover { border-bottom-color: var(--lime); }
.wt .wt-towns-wales { grid-column: 2; margin-top: 18px; }

@media (max-width: 960px) {
  .wt .wt-hero-side, .wt .wt-base, .wt .wt-what .wt-in, .wt .wt-q-fig, .wt .wt-q-plain, .wt .wt-close, .wt .wt-towns .wt-in { grid-template-columns: minmax(0, 1fr); }
  .wt .wt-base-text, .wt .wt-q-text { padding: 64px 24px 48px; max-width: none; }
  .wt .wt-sectors, .wt .wt-q-panel { padding: 48px 24px; }
  .wt .wt-what { padding: 64px 0; }
  .wt .wt-what-head { position: static; }
  .wt .wt-q-plain { padding-top: 64px; }
  .wt .wt-close-side { padding: 64px 24px; }
  .wt .wt-close-form { padding: 40px 24px 56px; }
  .wt .wt-towns-wales { grid-column: 1; }
  .wt .wt-hero-type .wt-btns { justify-content: flex-start; }
  .wt .wt-towns { padding: 56px 0; }
}
@media (max-width: 640px) {
  .wt .wt-hero { min-height: 560px; }
  .wt .wt-hero-copy { padding-bottom: 64px; }
  .wt .wt-hero-photo::after { background: linear-gradient(0deg, rgba(14,14,14,.86) 0%, rgba(14,14,14,.6) 55%, rgba(14,14,14,.25) 100%); }
  .wt .wt-q-rest, .wt .wt-slips.wt-n2, .wt .wt-lists { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wt .wt-premium { gap: 6px; }
  .wt .wt-premium li { padding: 8px; }
  .wt .wt-premium li.std { font-size: .8rem; }
  .wt .wt-b-head { font-size: 1.15rem; }
  .wt .wt-b-row p { padding: 8px 14px 14px; }
  .wt .wt-what li { grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; }
  .wt .wt-what li::before { width: 36px; height: 36px; line-height: 36px; font-size: 1.1rem; }
}
