/* The close of the Inheritance Tax Service page, the builds at /alt/iht-close-a/, -b/ and -c/ (src/components/IhtClose.astro).
   Each is the page's full-screen navy call to action (ihv.css .inv-card), with How to invest and Speak with us as one. */

.ihv .xc .inv-in { grid-template-columns: minmax(0, 1fr); align-content: center; }
.xc h2 { margin: 0; --serif-size: clamp(3rem, min(5.6vw, 10svh), 6rem) !important; --serif-ls: -.025em; --serif-ws: -.05em; font-size: var(--serif-fit); line-height: .96; color: var(--chalk); }
.xc .xc-lede { margin: clamp(1rem, 2.4svh, 1.5rem) 0 0; max-width: 34em; font-size: var(--t-body); line-height: 1.6; color: var(--chalk); }
.xc .xc-lede + .xc-lede { margin-top: .75rem; }

/* the contact card, on navy (seneca.css .contact, in the open, as Speak with us sets it) */
.xc .contact { border: 0; background: none; padding: 0; gap: 1.25rem; }
.xc .contact .n { font: 600 1.25rem/1.25 var(--sans); color: var(--chalk); }
.xc .contact .r { font-size: .875rem; color: var(--sand); margin-top: .25rem; }
.xc .contact .ways { border-top: 1px solid #3A5583; }
.xc .contact .ways a, .xc .contact .ways .way { padding: .875rem 0; font-size: 1rem; border-bottom-color: #3A5583; }
.xc .contact .ways a:hover b { color: var(--brick-accent); }
.xc .contact .acts { margin-top: .25rem; }

/* the answers and what each opens (b and c) */
.xc-q { margin: clamp(1.75rem, 4svh, 2.5rem) 0 1rem; font: 600 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brick-accent); }
.xc-ans { display: grid; gap: .5rem; }
.xc-a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 16px; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .875rem 1.125rem; border: 1px solid #3A5583; border-radius: var(--r-button); color: var(--chalk); font-size: 1rem; font-weight: 500; line-height: 1.3; text-decoration: none; transition: background-color var(--fill), border-color var(--fill), color var(--fill); }
.xc-a b { font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: var(--brick-accent); transition: color var(--fill); }
.xc-a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 1; transition: transform var(--fill), color var(--fill); }
.xc-a:hover { border-color: var(--chalk); }
.xc-a:hover svg { transform: translateX(3px); }
.xc-a.on { background: var(--chalk); border-color: var(--chalk); color: var(--navy); }
.xc-a.on b { color: var(--brick-word); }
.xc-a:focus-visible { outline: 2px solid var(--trim-focus); outline-offset: 3px; }
.xc-panels { display: grid; margin-top: 1rem; }
.xc-p { display: grid; align-content: start; gap: 1rem; }
.xc-p .eye { color: var(--brick-word); }
.xc-p h3 { margin: 0; --serif-size: clamp(1.75rem, 2.6vw, 2.25rem); --serif-ls: 0em; --serif-ws: 0em; font: 400 var(--serif-fit)/1.05 var(--serif); color: var(--navy); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.xc-p > p { margin: 0; max-width: 36em; font-size: var(--t-card); line-height: 1.6; color: var(--ink); }
.xc-p .steps { margin: 0; border-top: 1px solid var(--rule); }
.xc-p .steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0; align-items: baseline; padding: .875rem 0; border-bottom: 1px solid var(--rule); }
.xc-p .steps .stn { font: 600 .75rem/1.55 var(--sans); letter-spacing: .04em; color: var(--brick-word); }
.xc-p .steps p { margin: 0; font-size: var(--t-card); font-weight: 400; color: var(--ink); }
.xc-p .steps p a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.xc-p .acts { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .5rem; }
.xc-tel { display: grid; grid-template-columns: 20px auto minmax(0, 1fr); align-items: center; gap: .75rem; padding: .875rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.xc-tel svg { width: 18px; height: 18px; color: var(--brick-word); }
.xc-tel span { font-size: .875rem; color: var(--ink-soft); }
.xc-tel b { justify-self: end; --serif-size: 1.75rem; --serif-ls: 0em; --serif-ws: 0em; font: 400 var(--serif-fit)/1 var(--serif); color: var(--navy); overflow-wrap: anywhere; transition: color var(--fill); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.xc-tel:hover b { color: var(--brick-word); }
.xc-p > .xc-tel:first-of-type { border-top: 1px solid var(--rule); }
/* with the script, one answer at a time, in one space, so the card never jumps */
.xc.xc-js .xc-panels > .xc-p { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s ease, transform .5s ease, visibility 0s linear .35s; }
.xc.xc-js .xc-panels > .xc-p.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .6s ease .1s, visibility 0s; }
.xc:not(.xc-js) .xc-p + .xc-p { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .xc.xc-js .xc-panels > .xc-p { transform: none !important; } }

/* ------------------------------------------------ c. Together: the person on the left, the question on the right */
.xcv-c .xc-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.xc-lab { display: block; margin-bottom: 1rem; font: 600 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brick-accent); }
.xcv-c .xc-who .contact .who { display: grid; gap: 1rem; }
.xcv-c .xc-who .contact .who img { width: 100%; height: min(36svh, 22rem); aspect-ratio: auto; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-card); }
.xcv-c .xc-who .contact .n { --serif-size: 2rem; --serif-ls: 0em; --serif-ws: 0em; font: 400 var(--serif-fit)/1 var(--serif); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.xcv-c .xc-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.xcv-c .xc-main > h2, .xcv-c .xc-main > .xc-lede, .xcv-c .xc-main > .xc-q, .xcv-c .xc-main > .xc-ans { grid-column: 1; }
.xcv-c .xc-main > .xc-panels { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; align-self: center; }
.xcv-c .xc-p, .xcv-b .xc-card .contact { border-radius: var(--r-card); }
.xcv-c .xc-p { padding: clamp(1.75rem, 2.6vw, 2.5rem); background: var(--chalk); }
@media (max-width: 1180px) {
  .xcv-c .xc-main { grid-template-columns: minmax(0, 1fr); }
  .xcv-c .xc-main > .xc-panels { grid-column: 1; grid-row: auto; margin-top: 1rem; }
}
@media (max-width: 900px) {
  .xcv-c .xc-grid { grid-template-columns: minmax(0, 1fr); }
  .xcv-c .xc-who { order: 2; }
  .xcv-c .xc-who .contact .who { grid-template-columns: 88px minmax(0, 1fr); align-items: center; }
  .xcv-c .xc-who .contact .who img { width: 88px; height: 88px; }
  .xcv-c .xc-who .contact .n { font: 600 1.25rem/1.25 var(--sans); }
}

/* ------------------------------------------------ b. Ask first: the question large on the left, the answer open on the right, on navy */
.xcv-b .xc-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.xcv-b .xc-main > :not(.xc-panels) { grid-column: 1; }
.xcv-b .xc-main > .xc-panels { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; align-self: center; padding-left: clamp(2rem, 4vw, 3.5rem); border-left: 1px solid #3A5583; }
.xcv-b .xc-a { min-height: 4.25rem; font-size: 1.25rem; }
.xcv-b .xc-p .eye { color: var(--brick-accent); }
.xcv-b .xc-p h3 { color: var(--chalk); font-size: clamp(2rem, 3.2vw, 3rem); }
.xcv-b .xc-p > p, .xcv-b .xc-p .steps p { color: var(--chalk); }
.xcv-b .xc-p .steps, .xcv-b .xc-p .steps li, .xcv-b .xc-tel, .xcv-b .xc-p > .xc-tel:first-of-type { border-color: #3A5583; }
.xcv-b .xc-p .steps .stn { color: var(--brick-accent); }
.xcv-b .xc-p .steps p a { color: var(--chalk); }
.xcv-b .xc-tel { color: var(--chalk); }
.xcv-b .xc-tel span { color: var(--sand); }
.xcv-b .xc-tel svg { color: var(--brick-accent); }
.xcv-b .xc-tel b { color: var(--chalk); }
.xcv-b .xc-tel:hover b { color: var(--brick-accent); }
.xcv-b .xc-p .btn.navy { background: var(--chalk); border-color: var(--chalk); color: var(--navy); }
.xcv-b .xc-p .btn.ghost.dark { color: var(--chalk); border-color: var(--chalk); background: transparent; }
.xcv-b .xc-card { margin-top: .5rem; }
.xcv-b .xc-card .contact { padding: 1.5rem; background: var(--navy-deep); }
.xcv-b .xc-card .contact .who img { width: 64px; height: 64px; }
@media (max-width: 960px) {
  .xcv-b .xc-main { grid-template-columns: minmax(0, 1fr); }
  .xcv-b .xc-main > .xc-panels { grid-column: 1; grid-row: auto; margin-top: 1.5rem; padding-left: 0; border-left: 0; padding-top: 1.5rem; border-top: 1px solid #3A5583; }
}

/* ------------------------------------------------ a. The handshake: the person first */
.xa-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.xa-grid.xa-solo { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }   /* no portrait (About us, 13 November 2026) */
.xa-ph { position: relative; margin: 0; height: min(72svh, 44rem); border-radius: var(--r-card); overflow: hidden; background: var(--navy-deep); }
.xa-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.xa-ph figcaption { position: absolute; left: 1.25rem; bottom: 1.25rem; right: 1.25rem; display: grid; gap: .25rem; justify-items: start; }
.xa-ph figcaption b, .xa-ph figcaption span { padding: .375rem .75rem; border-radius: var(--r-tag); background: var(--navy-deep); }
.xa-ph figcaption b { --serif-size: 1.75rem; --serif-ls: 0em; --serif-ws: 0em; font: 400 var(--serif-fit)/1.1 var(--serif); color: var(--chalk); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.xa-ph figcaption span { font-size: var(--t-small); color: var(--sand); }
.xa-eye { margin-bottom: 1rem; color: var(--brick-accent); }
.xa-card { margin-top: clamp(1.5rem, 3.5svh, 2.25rem); }
.xa-card .contact .who { display: none; }
.xa-now { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "e go" "h go" "st st"; gap: .375rem 1.5rem; margin-top: clamp(1.75rem, 4svh, 2.5rem); padding: 1.25rem 1.5rem; border-radius: var(--r-card); background: var(--chalk); color: var(--ink); text-decoration: none; transition: background-color var(--fill); }
.xa-now .eye { grid-area: e; color: var(--brick-word); }
.xa-now > b { grid-area: h; --serif-size: 1.75rem; --serif-ls: 0em; --serif-ws: 0em; font: 400 var(--serif-fit)/1.1 var(--serif); color: var(--navy); transition: color var(--fill); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.xa-st { grid-area: st; display: flex; flex-wrap: wrap; gap: .375rem 1.5rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--ink); }
.xa-st i { font-style: normal; font-weight: 600; color: var(--brick-word); margin-right: .5rem; }
.xa-go { grid-area: go; align-self: center; display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: var(--r-button); background: var(--navy); color: var(--chalk); font-weight: 500; transition: background-color var(--fill); }
.xa-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.xa-now:hover { background: #fff; }
.xa-now:hover > b { color: var(--brick-word); }
.xa-now:hover .xa-go { background: var(--brick-word); }
.xa-now:focus-visible { outline: 2px solid var(--trim-focus); outline-offset: 3px; }
@media (max-width: 900px) {
  .xa-grid { grid-template-columns: minmax(0, 1fr); }
  .xa-ph { height: auto; aspect-ratio: 4 / 5; max-height: 70svh; }
  .xa-now { grid-template-areas: "e" "h" "st" "go"; grid-template-columns: minmax(0, 1fr); }
  .xa-go { justify-self: start; margin-top: .75rem; }
}

/* the answers' column takes the spare height at its foot, so the heading, the question and the answers sit together */
.xcv-b .xc-main, .xcv-c .xc-main { grid-template-rows: auto auto auto 1fr; }
.xc-ans { align-self: start; }

/* ------------------------------------------------ d. Round two: the handshake, asked. The person on the left, with their
   details and the booking; the question on the right, its answer open on the navy beside it */
.xcv-d .xc-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.xd-who { display: grid; gap: 1.25rem; }
.xd-ph { height: min(40svh, 26rem); }
.xd-card .contact .who { display: none; }
.xd-card .contact .ways { border-top: 0; }
.xcv-d .xc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.xd-ph { height: min(44svh, 28rem); }
.xcv-d .xc-main { display: block; }
.xcv-d h2 { font-size: clamp(3rem, min(5vw, 9svh), 5.25rem) !important; }
.xcv-d .xc-ans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xcv-d .xc-a { grid-template-columns: minmax(0, 1fr) 16px; grid-template-rows: auto auto; align-content: start; row-gap: .375rem; min-height: 5.75rem; }
.xcv-d .xc-a b { grid-column: 1 / -1; }
.xcv-d .xc-panels { margin-top: clamp(1.5rem, 3svh, 2rem); padding-top: clamp(1.5rem, 3svh, 2rem); border-top: 1px solid #3A5583; }
.xcv-d .xc-p .eye { color: var(--brick-accent); }
.xcv-d .xc-p h3 { color: var(--chalk); font-size: clamp(1.875rem, 2.8vw, 2.625rem); }
.xcv-d .xc-p > p, .xcv-d .xc-p .steps p { color: var(--chalk); }
.xcv-d .xc-p .steps, .xcv-d .xc-p .steps li, .xcv-d .xc-tel, .xcv-d .xc-p > .xc-tel:first-of-type { border-color: #3A5583; }
.xcv-d .xc-p .steps .stn { color: var(--brick-accent); }
.xcv-d .xc-p .steps p a { color: var(--chalk); }
.xcv-d .xc-tel { color: var(--chalk); }
.xcv-d .xc-tel span { color: var(--sand); }
.xcv-d .xc-tel svg { color: var(--brick-accent); }
.xcv-d .xc-tel b { color: var(--chalk); }
.xcv-d .xc-tel:hover b { color: var(--brick-accent); }
.xcv-d .xc-p .btn.navy { background: var(--chalk); border-color: var(--chalk); color: var(--navy); }
.xcv-d .xc-p .btn.ghost.dark { color: var(--chalk); border-color: var(--chalk); background: transparent; }
@media (max-width: 1100px) { .xcv-d .xc-ans { grid-template-columns: minmax(0, 1fr); } .xcv-d .xc-a { min-height: 3.5rem; grid-template-columns: 2rem minmax(0, 1fr) 16px; } .xcv-d .xc-a b { grid-column: auto; } }
@media (max-width: 900px) {
  .xcv-d .xc-grid { grid-template-columns: minmax(0, 1fr); }
  .xcv-d .xd-who { order: 2; }
  .xd-ph { height: auto; aspect-ratio: 4 / 3; }
  .xd-ph img { object-position: 50% 25%; }
}
/* an email address in the sans (the serif is never below 28px, and an address is not a figure) */
.xc-tel b:has(.em), .xc-tel b .em { font: 600 var(--t-body)/1.3 var(--sans); }
/* the handshake fills the screen under the bars, the portrait included (Kyle, 29 October 2026: A is the page's close) */
.ihv .xcv-a .inv-in { padding-block: clamp(2.75rem, 8svh, 6rem) clamp(2rem, 6svh, 4.5rem); }
.xcv-a .xa-ph { height: min(calc(100svh - var(--rh, 44px) - var(--sh, 62px) - clamp(2.75rem, 8svh, 6rem) - clamp(2rem, 6svh, 4.5rem)), 44rem); min-height: 22rem; }
.xa-ph figcaption i { padding: .25rem .625rem; border-radius: var(--r-tag); background: var(--navy-deep); font: 600 .75rem/1.3 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--brick-accent); }

/* the words and the portrait share a top and a bottom edge (Kyle, 30 October 2026: no eyebrow, "align it so that the text
   and Colin's picture are the same height"): the heading's cap height level with the portrait's top, the last card's foot
   with its foot; the space between the lede and the contact card takes up the rest. If the words run taller than the
   portrait, the portrait grows with them. */
@media (min-width: 901px) {
  .xcv-a .xa-grid { align-items: stretch; }
  .xcv-a .xa-ph { height: auto; min-height: max(22rem, min(calc(100svh - var(--rh, 44px) - var(--sh, 62px) - clamp(2.75rem, 8svh, 6rem) - clamp(2rem, 6svh, 4.5rem)), 44rem)); }
  .xcv-a .xa-main { display: flex; flex-direction: column; }
  .xcv-a .xa-main h2 { margin-top: -.12em; }
  .xcv-a .xa-card { margin-top: auto; padding-top: clamp(1.5rem, 3.5svh, 2.25rem); }
  .xcv-a .xa-main > :last-child { margin-bottom: 0; }
}

/* the key call to action in brick (Kyle, 30 October 2026: "is it clear what the key CTA is?"; brick is the key call to
   action's colour): Book a meeting for advisers, Send an enquiry for investors. Every other button stays chalk or navy.
   Its hover is brick a shade darker (Kyle, 30 October 2026). */
.xcv-a .xa-card .btn.solid.msg-open { background: var(--brick-word); border-color: var(--brick-word); color: var(--chalk); }
.xcv-a .xa-card .btn.solid.msg-open svg { color: var(--chalk); stroke: var(--chalk); }
.xcv-a .xa-card .btn.solid.msg-open:not(:disabled):is(:hover, :focus-visible) { background-color: var(--brick-deep) !important; border-color: var(--brick-deep) !important; color: var(--chalk) !important; }
.xcv-a .xa-card .btn.solid.msg-open:not(:disabled):is(:hover, :focus-visible) :is(svg, .arr) { color: var(--chalk) !important; stroke: var(--chalk) !important; }

/* the portrait on a phone (IHT page review, 2 November 2026): the full-screen height above is for the desktop column only;
   on a phone it held its 4:5 shape at that height and ran 130px off the screen */
@media (max-width: 900px) { .xcv-a .xa-ph { height: auto; min-height: 0; } }

/* the handshake, given room (Kyle, 6 November 2026: "quite intense to look at ... This is the big sell at the bottom of the
   page so it should be nice and clear"): more air around the heading and the contact details, and investing for a client
   now as one band across the foot of the section, its three steps in a line, instead of a card under the contact details */
.ihv .xcv-a .inv-in { padding-block: clamp(3.5rem, 10svh, 7.5rem) clamp(2.75rem, 7svh, 5.5rem); }
.xcv-a .xa-main .xc-lede { margin-top: clamp(1.25rem, 3svh, 2rem); max-width: 30em; }
.xcv-a .xa-card { padding-top: clamp(2rem, 5svh, 3.25rem); }
.xcv-a .xa-card .ways > * { padding-block: 1.125rem; }
.xcv-a .xa-card .acts { margin-top: clamp(1.5rem, 3.5svh, 2.25rem); }
.xcv-a > .wrap > .xc-in > .xa-now { position: relative; z-index: 1; margin-top: clamp(2.5rem, 6svh, 4rem); grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "h st go"; column-gap: clamp(2rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 3svh, 2rem) clamp(1.5rem, 3vw, 2.25rem); }
.xcv-a > .wrap > .xc-in > .xa-now .xa-st { margin: 0; padding: 0 0 0 clamp(2rem, 4vw, 3.5rem); border-top: 0; border-left: 1px solid var(--rule); align-self: stretch; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: .375rem; }
@media (max-width: 1100px) {
  .xcv-a > .wrap > .xc-in > .xa-now { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "st" "go"; }
  .xcv-a > .wrap > .xc-in > .xa-now .xa-st { padding: .75rem 0 0; margin-top: .5rem; border-left: 0; border-top: 1px solid var(--rule); }
  .xcv-a > .wrap > .xc-in > .xa-now .xa-go { justify-self: start; margin-top: .75rem; }
}
/* the heading, the line and the ways to reach us read as one group, centred on the portrait, rather than split to its top
   and foot; the portrait is a little shorter so the band under it is on screen with it */
@media (min-width: 901px) {
  .xcv-a .xa-main { justify-content: center; }
  .xcv-a .xa-card { margin-top: 0; padding-top: clamp(2.25rem, 5svh, 3.25rem); }
  .xcv-a .xa-ph { height: min(calc(100svh - var(--rh, 44px) - var(--sh, 62px) - clamp(3.5rem, 10svh, 7.5rem) - clamp(2.75rem, 7svh, 5.5rem) - clamp(9rem, 20svh, 12rem)), 40rem); min-height: 26rem; }
}

/* on a phone the contact rows follow the lede at the section's own rhythm, not a desktop-sized gap (17 November 2026) */
@media (max-width: 900px) {
  .xcv-a .xa-card { margin-top: 1.75rem; padding-top: .75rem; }
}

/* the contact rows and buttons sit at the foot of the card's reserved room (the booking's height), so the buttons stay in
   line with the foot of the portrait (17 November 2026) */
@media (min-width: 901px) {
  .xcv-a:has(.xa-ph) .cviews:not(.follow) > #cv-ways { align-self: end; }
}
/* the space follows the view that is showing (site.js, 25 November 2026): the taller views it hides stay inside it, and
   focus rings still show */
.xcv-a .cviews.follow { overflow: clip; overflow-clip-margin: 8px; }
