/* /tax — designed page. Layout and spacing only; body type comes from styles.css. */
.dz-tax { --edge: max(24px, calc((100vw - 1240px) / 2 + 24px)); --tint: #f5f4ef; }
.dz-tax h4 { font-family: "Lato", Arial, sans-serif; font-weight: 900; font-size: 1.08rem; line-height: 1.3; margin: 0 0 6px; color: var(--black); }
.dz-tax p { margin: 0 0 12px; }
.dz-tax .t-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dz-tax .t-btns .btn { margin: 0; }
.dz-tax .t-call { margin-top: 18px; }
.dz-tax .t-call a { font-weight: 900; color: var(--black); }

/* Hero: headline across the top, then a full-bleed photo band carrying the three planning stages */
.dz-tax .t-hero { border-bottom: 6px solid var(--lime); }
.dz-tax .t-hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; padding-top: 64px; padding-bottom: 48px; }
.dz-tax .t-hero-top h1 { margin: 0; }
.dz-tax .t-hero-side .lead { margin: 0; }
.dz-tax .t-hero-side .t-btns { margin-top: 24px; }
.dz-tax .t-hero-side .t-call { margin: 14px 0 0; }
.dz-tax .t-hero-band { position: relative; height: clamp(380px, calc(100vh - 560px), 520px); min-height: 380px; background: var(--black); }
.dz-tax .t-hero-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 12%; display: block; }
.dz-tax .t-hero-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,14,14,.72) 0%, rgba(14,14,14,0) 52%); }
.dz-tax .t-hero-band .inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; padding-bottom: 32px; }
.dz-tax .t-hero-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.dz-tax .t-hero-stages a { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: center; background: var(--black); color: var(--white); text-decoration: none; border-radius: var(--radius); padding: 18px 20px; border-top: 5px solid var(--lime); }
.dz-tax .t-hero-stages span { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--black); font-family: "Anton", sans-serif; font-size: 1.4rem; display: grid; place-items: center; }
.dz-tax .t-hero-stages b { font-weight: 900; line-height: 1.25; }
.dz-tax .t-hero-stages small { color: #d6d5cf; font-size: .92rem; line-height: 1.35; }
.dz-tax .t-hero-stages a:hover b { text-decoration: underline; }

/* The route: three stages joined by a line, HMRC compliance as the rail underneath */
.dz-tax .t-route { padding: 96px 0 88px; }
.dz-tax .t-route h2 { margin: 0 0 56px; }
.dz-tax .stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.dz-tax .stages::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 4px; background: var(--black); }
.dz-tax .stage { position: relative; padding: 0 40px 8px 0; scroll-margin-top: 120px; }
.dz-tax .t-hmrc { scroll-margin-top: 92px; }
.dz-tax .stage + .stage { padding-left: 40px; border-left: 1px solid var(--line); }
.dz-tax .stage + .stage .node { margin-left: 0; }
.dz-tax .node { width: 58px; height: 58px; border-radius: 50%; background: var(--lime); border: 4px solid var(--black); display: grid; place-items: center; position: relative; z-index: 1; }
.dz-tax .node span { font-family: "Anton", sans-serif; font-size: 1.6rem; line-height: 1; color: var(--black); }
.dz-tax .stage h3 { font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; margin: 22px 0 26px; min-height: 2.2em; color: var(--black); }
.dz-tax .area { padding: 20px 0 8px; border-top: 2px solid var(--black); }
.dz-tax .area + .area { border-top-color: var(--line); border-top-width: 1px; }
.dz-tax .rail { display: block; margin-top: 40px; background: var(--black); color: var(--white); border-radius: var(--radius); padding: 22px 28px; text-decoration: none; position: relative; }
.dz-tax .rail span { font-weight: 900; padding-right: 40px; display: block; }
.dz-tax .rail::after { content: "\2193"; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); color: var(--lime); font-size: 1.5rem; font-weight: 900; }
.dz-tax .rail:hover span { text-decoration: underline; }

/* When to plan: a lead-time chart measured back from the event */
.dz-tax .t-when { background: var(--tint); padding: 88px 0 96px; }
.dz-tax .when-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.dz-tax .when-head h2 { margin: 0; }
.dz-tax .when-head p { margin: 0; max-width: 36em; }
.dz-tax .chart { --lab: 330px; position: relative; padding-top: 34px; }
.dz-tax .axis { position: absolute; top: 0; left: calc(var(--lab) + 32px); right: 0; height: 100%; pointer-events: none; }
.dz-tax .axis span { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); font-weight: 900; font-size: .85rem; line-height: 1.2; white-space: nowrap; color: var(--grey); }
.dz-tax .axis span::after { content: ""; position: absolute; left: 50%; top: 26px; bottom: 0; border-left: 1px dashed #bdbab2; }
.dz-tax .axis .ev { transform: translateX(-100%); color: var(--black); }
.dz-tax .axis .ev::after { left: 100%; border-left: 3px solid var(--black); }
.dz-tax .row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); gap: 32px; align-items: center; padding: 22px 0; border-top: 1px solid #d8dcc0; position: relative; }
.dz-tax .row .lab p { margin: 0; }
.dz-tax .track { position: relative; height: 44px; }
.dz-tax .bar { position: absolute; top: 6px; height: 32px; background: var(--black); }
.dz-tax .bar:not(.soft):not(.fade) { border-radius: 0 6px 6px 0; }
.dz-tax .bar.soft { background: repeating-linear-gradient(135deg, var(--black) 0 3px, transparent 3px 8px); border-radius: 6px 0 0 6px; }
.dz-tax .bar.fade { background: linear-gradient(90deg, rgba(14,14,14,0), rgba(14,14,14,.85)); }
.dz-tax .pin { position: absolute; right: -9px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); border: 4px solid var(--black); z-index: 2; }
.dz-tax .track em { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 900; color: var(--black); white-space: nowrap; }

/* HMRC: black band, photo to the left window edge */
.dz-tax .t-hmrc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--black); color: var(--white); }
.dz-tax .t-hmrc-photo { position: relative; min-height: 320px; }
.dz-tax .t-hmrc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; display: block; }
.dz-tax .t-hmrc-copy { padding: 96px var(--edge) 96px 72px; }
.dz-tax .t-hmrc-copy h2 { color: var(--white); margin: 0 0 20px; }
.dz-tax .t-hmrc-copy h3 { color: var(--lime); margin: 36px 0 12px; }
.dz-tax .t-hmrc-copy p { color: #e6e5df; max-width: 40em; }
.dz-tax .t-hmrc-copy .btn { margin-top: 20px; }

/* Setting tax aside: two pots, read downwards */
.dz-tax .t-reserve { padding: 96px 0 72px; }
.dz-tax .t-reserve h2 { margin: 0 0 40px; }
.dz-tax .pots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 2px solid var(--black); border-radius: var(--radius); overflow: hidden; }
.dz-tax .pot { padding: 36px 40px 28px; }
.dz-tax .pot + .pot { border-left: 2px solid var(--black); }
.dz-tax .pot h3 { font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.9rem; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 6px solid var(--lime); display: inline-block; }
.dz-tax .move { margin: 24px 0 0; font-weight: 900; color: var(--black); }
.dz-tax .calcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.dz-tax .calcs a { display: block; text-decoration: none; color: inherit; border-top: 4px solid var(--black); padding: 18px 0 0; }
.dz-tax .calcs a h4::after { content: " \2192"; }
.dz-tax .calcs a:hover h4 { text-decoration: underline; }
.dz-tax .calcs p { margin: 0; }

/* Questions: open, two to a row */
.dz-tax .t-faq { padding: 72px 0 88px; border-top: 1px solid var(--line); }
.dz-tax .t-faq h2 { margin: 0 0 40px; }
.dz-tax .qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; }
.dz-tax .q h3 { margin: 0 0 12px; }
.dz-tax .q p { margin: 0; }

/* Financial adviser handover */
.dz-tax .t-fs { background: var(--tint); padding: 56px 0; }
.dz-tax .t-fs .inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: center; }
.dz-tax .t-fs h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 14px; }
.dz-tax .t-fs .t-btns { margin-top: 0; }
.dz-tax .t-fs .reg { margin: 18px 0 0; }

/* Close: photo full height to the left window edge, steps and contact on lime */
.dz-tax .t-close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--lime); }
.dz-tax .t-close-photo { position: relative; min-height: 340px; }
.dz-tax .t-close-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; display: block; }
.dz-tax .t-close-copy { padding: 88px var(--edge) 88px 72px; }
.dz-tax .t-close-copy h2 { margin: 0 0 32px; }
.dz-tax .steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.dz-tax .steps li { counter-increment: s; position: relative; padding: 14px 0 6px 58px; border-top: 2px solid var(--black); }
.dz-tax .steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--black); color: var(--white); font-family: "Anton", sans-serif; font-size: 1.15rem; display: grid; place-items: center; }
.dz-tax .steps p { margin: 0 0 8px; color: var(--black); }
.dz-tax .t-close .t-call, .dz-tax .t-close .t-call a { color: var(--black); }
.dz-tax .t-close .btn-outline { color: var(--black); }

@media (max-width: 980px) {
  .dz-tax .stages { grid-template-columns: 1fr; }
  .dz-tax .stages::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 4px; height: auto; }
  .dz-tax .stage, .dz-tax .stage + .stage { padding: 0 0 32px 84px; border-left: 0; }
  .dz-tax .node { position: absolute; left: 0; top: 0; }
  .dz-tax .stage h3 { margin: 8px 0 18px; min-height: 0; }
  .dz-tax .when-head { grid-template-columns: 1fr; }
  .dz-tax .chart { --lab: 220px; }
}
@media (max-width: 820px) {
  .dz-tax .t-hero-top { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 36px; }
  .dz-tax .t-hero-band { height: auto; min-height: 0; }
  .dz-tax .t-hero-band img { position: relative; height: 260px; object-position: 62% 24%; }
  .dz-tax .t-hero-band::after { display: none; }
  .dz-tax .t-hero-band .inner { padding-top: 16px; padding-bottom: 24px; }
  .dz-tax .t-hero-stages { grid-template-columns: 1fr; gap: 0; }
  .dz-tax .t-hero-stages a { border-radius: 0; border-top: 1px solid #3a3a37; padding: 16px 0; }
  .dz-tax .t-hero-stages a:first-child { border-top: 0; }
  .dz-tax .t-hmrc, .dz-tax .t-close { grid-template-columns: 1fr; }
  .dz-tax .t-hmrc-copy, .dz-tax .t-close-copy { padding: 56px 24px; }
  .dz-tax .t-hmrc-photo, .dz-tax .t-close-photo { min-height: 280px; }
  .dz-tax .t-hmrc-photo { min-height: 340px; }
  .dz-tax .t-hmrc-photo img { object-position: 92% 60%; }
  .dz-tax .pots, .dz-tax .qs, .dz-tax .calcs, .dz-tax .t-fs .inner { grid-template-columns: 1fr; }
  .dz-tax .pot + .pot { border-left: 0; border-top: 2px solid var(--black); }
  .dz-tax .pot { padding: 28px 24px 20px; }
  .dz-tax .chart { padding-top: 0; }
  .dz-tax .axis { display: none; }
  .dz-tax .row { grid-template-columns: 1fr; gap: 14px; }
  .dz-tax .t-route, .dz-tax .t-reserve { padding: 64px 0 56px; }
  .dz-tax .t-when, .dz-tax .t-faq { padding: 64px 0; }
}
