/* Inheritance Tax Service page: parts added since the mock-up. The rest of the page is in seneca.css. */

/* ---------- how to invest ---------- */
.invest { background: #fff; border-block: 1px solid var(--rule); padding-block: 5.5rem; }
.invest .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.invest h2 { font-family: var(--serif); --serif-size: clamp(2.5rem, calc(5vw * var(--ts)), 4rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); line-height: 1.04; color: var(--navy); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.invest h2 em { color: var(--brick-word); }
.inv-copy > p { color: var(--ink-soft); font-size: var(--t-body); margin-top: 1.25rem; max-width: 46ch; }
.inv-copy .ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.375rem 0; border-bottom: 1px solid var(--rule); }
.steps .stn { font-family: var(--serif); --serif-size: 2.125rem; --serif-ls: -.03em; --serif-ws: 0em; font-size: var(--serif-fit); line-height: 1; color: var(--brick-word); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.steps h3 { font: 600 1.25rem var(--sans); color: var(--navy); }
.steps p { color: var(--ink-soft); font-size: var(--t-body); margin-top: .375rem; }
@media (max-width: 900px) {
  .invest { padding-block: 3.5rem; }
  .invest .wrap { grid-template-columns: 1fr; gap: 2rem; }
}

/* How to invest: the numerals in Archivo SemiBold in the trim's word tone (brand rules: numbering in steps) */
.steps .stn { font: 600 var(--t-body)/1.6 var(--sans); color: var(--brick-word); letter-spacing: .04em; }
.steps li { align-items: baseline; }
.steps p { color: var(--navy); font-weight: 600; font-size: var(--t-body); margin: 0; }
.invest .wrap:not(:has(.steps)) { grid-template-columns: minmax(0, 1fr); }
.inv-copy > p + p { margin-top: .75rem; }
@media (max-width: 900px) { .invest { padding-block: 3.5rem; } .invest .wrap { grid-template-columns: 1fr; gap: 2rem; } }

/* documents: with fewer than four, the row closes up rather than sitting half empty */
.dgrid.few { grid-template-columns: repeat(var(--n), minmax(0, 240px)); }
@media (max-width: 600px) { .dgrid.few { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }


/* How to invest, for advisers: two routes side by side, working with us or investing for a client now (Kyle, 13 October 2026) */
.invest .wrap:has(.routes) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.route { display: flex; flex-direction: column; align-items: flex-start; gap: .875rem; padding: 1.75rem; border: 1px solid var(--rule); background: var(--chalk); }
.route .eye { color: var(--brick-word); }
.route h3 { --serif-size: 1.75rem; --serif-ls: 0em; --serif-ws: 0em; font: 400 var(--serif-fit)/1.1 var(--serif); color: var(--navy); letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.route > p { color: var(--ink-soft); font-size: var(--t-body); line-height: 1.55; }
.route .steps { width: 100%; margin-top: .25rem; }
.route .steps li { padding: .75rem 0; grid-template-columns: 2.25rem 1fr; }
.route .steps p { font-size: var(--t-body); }
.route .btn { margin-top: auto; }
@media (max-width: 900px) { .invest .wrap:has(.routes) { grid-template-columns: 1fr; } .routes { grid-template-columns: 1fr; } }

/* ---------- the record (Kyle, 13 October 2026: "integrate a graph", "make it shorter"): the heading beside the chart.
   Nine slim navy pillars from zero, on a 0 to 5% scale, each landing on the brick target line; the return above and the
   value of one share under the year. A stone marker stands on one year and slides to the year you point at. ---------- */
.rec { padding-block: 5rem; }
.rec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2.5rem, 5vw, 5.5rem); align-items: end; }
.rec h2 { margin-top: 1rem; font-family: var(--serif); font-weight: 400; --serif-size: clamp(2.5rem, calc(4vw * var(--ts)), 3.5rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); line-height: 1.04; color: var(--navy); text-wrap: balance; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.rec-lede { margin-top: 1.25rem; color: var(--ink-soft); font-size: var(--t-body); line-height: 1.55; max-width: 36ch; text-wrap: pretty; }
.rec-notes { margin-top: 2.5rem; display: grid; gap: .5rem; }
.rec-src { font-size: .875rem; line-height: 1.5; color: var(--ink-soft); }
.rec-pp { font-size: .875rem; line-height: 1.5; color: var(--ink); }
.pil-box { --ph: 210px; --gut: 5.5rem; position: relative; }
.pil { width: 100%; border-collapse: collapse; position: relative; z-index: 1; }
/* desktop: a column per year, the labels in a gutter on the left */
@media (min-width: 901px) {
  .pil { display: grid; grid-template-columns: var(--gut) repeat(var(--n, 9), minmax(0, 1fr)); grid-template-rows: 1.75rem var(--ph) auto auto; }
  .pil tbody, .pil tr { display: contents; }
  .pil th, .pil td { grid-column: var(--c); padding: 0; font-weight: 400; text-align: center; }
  /* the return sits just above its pillar, so every figure lines up over the target line */
  .pil .pil-v { grid-row: 2; align-self: end; position: relative; z-index: 3; margin-bottom: calc(var(--ph) * var(--hf) + .875rem); --serif-size: clamp(1.75rem, 2.1vw, 2rem); font: 400 var(--serif-fit)/1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
  .pil-b { grid-row: 2; position: relative; border-bottom: 1px solid var(--navy); }
  .pil-b i { --pw: clamp(2.5rem, 46%, 5.5rem); position: absolute; left: 50%; bottom: 0; width: var(--pw); margin-left: calc(var(--pw) / -2); height: var(--h); background: var(--navy); transform-origin: bottom; }
  .pil .pil-y { grid-row: 3; padding-top: .75rem; font: 600 var(--t-body) var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
  .pil .pil-s { grid-row: 4; padding: .25rem 0 .875rem; font-size: .875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-height: 1.25em; }
  /* the gutter: the target and zero against the pillars' scale, and the label of the share value row */
  .pil .pil-ax { grid-column: 1 / -1; grid-row: 2; position: relative; pointer-events: none; z-index: 2; }
  .pil-tl { position: absolute; left: 0; right: 0; bottom: var(--t); height: 1.5px; background: var(--brick); }
  .pil-tl b, .pil-z { position: absolute; left: 0; font: 600 .75rem var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
  .pil-tl b { bottom: .5rem; color: var(--brick-word); }
  .pil-z { bottom: -.4rem; color: var(--ink-soft); }
  .pil .pil-sl { grid-column: 1; grid-row: 4; padding-top: .375rem; text-align: left; font: 600 .75rem var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft); }
}
/* phone: a row per year, the pillar lying along it, the target as a brick tick through every row */
@media (max-width: 900px) {
  .rec { padding-block: 3.5rem; }
  .rec-grid { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .rec-notes { margin-top: 1.5rem; }
  .rec-r { order: 2; } .rec-l { display: contents; }
  .rec-l > .rec-notes { order: 3; }
  .pil-axr { display: none; }
  .pil thead.sr { display: table-header-group; position: static; width: auto; height: auto; clip: auto; overflow: visible; margin: 0; white-space: normal; }
  .pil thead th { padding: .625rem .5rem; font: 600 .75rem var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-align: left; border-bottom: 2px solid var(--navy); }
  .pil thead th:nth-child(3) { color: var(--brick-word); }
  .pil thead th:nth-child(2), .pil thead th:nth-child(4) { text-align: right; }
  .pil td, .pil tbody th { padding: .875rem .5rem; border-bottom: 1px solid var(--rule); font-weight: 400; vertical-align: middle; }
  .pil .pil-y { font: 600 var(--t-body) var(--sans); color: var(--navy); text-align: left; width: 3.5rem; }
  .pil .pil-v { --serif-size: 1.75rem; font: 400 var(--serif-fit)/1 var(--serif); color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; width: 4.5rem; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
  .pil-b { position: relative; width: 40%; }
  .pil-b::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(.5rem + (100% - 1rem) * var(--tt, .8)); width: 1.5px; background: var(--brick); }
  .pil-b i { display: block; height: 18px; width: var(--h); background: var(--navy); transform-origin: left; }
  .pil-s { font-size: .875rem; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; width: 4.5rem; }
}
/* the marker: stone, behind the year in hand */
.pil-mk { position: absolute; left: 0; top: 0; z-index: 0; width: var(--w, 0); height: var(--hh, 0); background: var(--stone); transform: translate(var(--x, 0), var(--y, 0)); opacity: 0; pointer-events: none; }
.pil-box.on .pil-mk { opacity: 1; transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), opacity .4s var(--ease); }
.pil-box.on.snap .pil-mk, .pil-box.wait .pil-mk { transition: none; }
.pil-box.wait .pil-mk { opacity: 0; }
.pil-box.on .pil tbody tr > * { cursor: pointer; }
.pil .pil-y:focus { outline: none; }
.pil .pil-y:focus-visible { outline: 2px solid var(--trim-focus); outline-offset: 2px; }
/* the pillars rise as the chart comes into view, all landing on the line (only with the script, never with reduced motion) */
.pil-js .pil-b i { transform: scaleY(0); transition: transform .9s var(--ease) calc(var(--i, 0) * 70ms); }
.pil-js .pil-v, .pil-js .pil-s { opacity: 0; transition: opacity .5s var(--ease) calc(var(--i, 0) * 70ms + .55s); }
.pil-js.in .pil-b i { transform: none; } .pil-js.in .pil-v, .pil-js.in .pil-s { opacity: 1; }
@media (max-width: 900px) { .pil-js .pil-b i { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .pil-js .pil-b i { transform: none; transition: none; } .pil-js .pil-v, .pil-js .pil-s { opacity: 1; transition: none; } .pil-box.on .pil-mk { transition: none; } }
/* the line for the year the marker stands on */
.led-entry { margin-top: 1.25rem; min-height: 3.2em; font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }
.led-entry b { display: inline-block; margin-right: .75rem; padding: .0625rem .5rem; background: var(--stone); color: var(--navy); font-weight: 600; font-size: .875rem; font-variant-numeric: tabular-nums; }
/* brand book, chapter 06: navy first, then the company colour for the bar that matters, the latest year */
.pil tr.now .pil-b i { background: var(--brick); }
/* the record beside its heading needs room for nine returns in the serif at 28px or more: below 1280px the heading
   sits above the chart, which then takes the full width */
@media (min-width: 901px) {
  .pil-box { --gut: 5.5rem; }
  .rec-grid { column-gap: clamp(2.5rem, 4vw, 4rem); }
}
@media (min-width: 901px) and (max-width: 1279px) {
  .rec-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .rec-l { display: contents; }
  .rec-l > .eye { grid-column: 1; grid-row: 1; } .rec-l > h2 { grid-column: 1; grid-row: 2; }
  .rec-l > .rec-lede { grid-column: 2; grid-row: 1 / span 2; }
  .rec-r { grid-column: 1 / -1; grid-row: 3; margin-top: 2.5rem; }
  .rec-l > .rec-notes { grid-column: 1 / -1; grid-row: 4; margin-top: 1.5rem; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
}
/* the service strapline, "Inheritance Tax planning, secured against tangible assets." (26 October 2026; it replaced
   "Saving Inheritance Tax made simple, built on bricks and mortar."): set a step smaller to keep the hero to four lines
   beside its photograph */
.a-hero h1 { font-size: clamp(2.75rem, calc(5.6vw * var(--ts)), 5.375rem); text-wrap: balance; }
/* the descriptor, "Property is our specialism." (Kyle, 26 October 2026): a bold run-in opening the subhead, at the
   subhead's size, Archivo SemiBold in chalk on navy (brand rules, sections 4 and 10). Never on a line of its own, where it
   read as a second strapline; never the serif, the italic or the trim colour */
.a-hero .lede .desc { font-weight: 600; color: var(--chalk); }

/* the pillars at about half their column, now the chart shows five years (Kyle, 16 October 2026: "way too narrow") */

/* a year that beat the target finishes just above the line, so meeting it reads at a glance (Kyle, 17 November 2026: "it's
   nice visually to emphasise we've hit over (if only a little bit) our target"); the figures above each bar stay exact */
@media (min-width: 901px) { .pil-b i.over { height: calc(var(--h) + 6px); } }
@media (max-width: 900px) { .pil-b i.over { width: calc(var(--h) + 6px); } }
