/* The IHT product page template (Kyle, 16 November 2026; brief "Web dev brief: Seneca IHT product page", board "Seneca
   product page: template", page "The page, desktop and phone"). Loaded last on the IHT page, over home, iht and ihv.
   Built as parts the Commercial Property Funds and EIS pages can take later: the opening band (.ihp-n), the highlight
   tiles (.hl-), terms and charges (.it), and the grounds that follow the three messages. */

/* the lighter band: between chalk and stone, the ground of the third message and its section. Not yet in the brand
   palette: one variable, so it can be renamed (open point 5) */
:root { --band-light: #F1ECE4; }

/* ---------- the opening: one navy band, the field behind it edge to edge and up under the header ---------- */
.ihv .ihp-n { position: relative; isolation: isolate; z-index: 1; background: var(--navy); color: var(--chalk); }
.ihv .ihp-n > .ihp-band { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: calc(-1 * var(--hh, 79px) - 1px); background: var(--navy); }
.ihv .ihp-n > .ihp-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ihv .ihp-n > .fpause { top: auto; bottom: 8px; right: 8px; }
.ihv .ihp-n:not(.ihp-n-card) .ihp-in { display: block; box-sizing: border-box; min-height: clamp(30rem, calc(78svh - var(--hh, 79px)), calc(769px - var(--hh, 79px))); padding-block: 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.ihv .ihp-n:not(.ihp-n-card) .ihp-top { display: block; max-width: 1100px; }
.ihv .ihp-n .ihp-eye .eye { color: var(--chalk); } /* chalk: the brick label measured 4.1 to 4.3 to 1 over the lighter field, under 4.5 for 12px text */
.ihv .ihp-n .ihp-h { color: var(--chalk); max-width: none; }
.ihv .ihp-n .ihp-h em { color: var(--brick-accent); }
.ihv .ihp-n .ihp-sub { margin-top: 28px; gap: 0; }
.ihv .ihp-n .ihp-sf { max-width: 620px; color: var(--chalk); }
.ihv .ihp-n .ihp-sf b { color: var(--chalk); }
.ihv .ihp-n .ihp-sub .ctas { margin-top: 1.5rem; }
.ihv .ihp-n .ihp-sub > .ihp-risk { max-width: 620px; margin: 32px 0 0; font-size: var(--t-small, .875rem); line-height: 1.5; color: var(--chalk); }
/* at rest the header is see-through and the field shows through it; once the page moves, the floating menu takes over as
   built */
html.bar-dark:not(.nf-box):has(.ihp-n) .head:not(:has(.mbtn[aria-expanded="true"])) { background: transparent; border-bottom-color: transparent; }
/* investors keep the figure card, as built, until Kyle decides (open point 7): words left, the card right */
.ihv .ihp-n-card .ihp-glance { border: 1px solid var(--navy-line); }

/* the product's name over the strapline: Archivo SemiBold 20px, in place of the tracked capital eyebrow */
.ihv .ihp-n .ihp-name { font: 600 1.25rem/1.3 var(--sans); color: var(--chalk); margin-bottom: 18px; }
.ihv .ihp-n-card .ihp-name { margin-bottom: 0; }

/* ---------- the three highlight tiles ---------- */
.hl-at { margin: 20px 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.hl-at + .hl-risk { margin-top: 6px; }
.hl-risk { margin: 20px 0 0; max-width: 60em; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.hl-t1 { background: var(--navy); color: var(--chalk); }
/* tile 02 on the lighter band and tile 03 white under a hairline (Kyle, 17 November 2026: the stone behind "A track record of
   delivering" read "a bit too dark") */
.hl-t2 { background: var(--band-light); color: var(--navy); }
.hl-t3 { background: #fff; color: var(--navy); border: 1px solid var(--rule); }
.hl-n { font: 600 .875rem/1.3 var(--sans); color: var(--brick-word); }
.hl-t1 .hl-n, .hl-t1 .hl-fig, .hl-t1 .hl-big { color: var(--brick-accent); }
.hl-t2 p, .hl-t3 p { color: var(--ink); }
.hl-fig, .hl-big { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.hl-mob { display: none; }

/* desktop: two columns, the first tile down the left with its photograph, the other two stacked on the right */
.hl-desk { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; margin-top: 32px; }
.hl-t { position: relative; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; padding: 24px 28px 26px; border-radius: var(--r-card); overflow: hidden; text-decoration: none; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .5s ease; }
.hl-t:focus-visible { outline-color: var(--trim-focus); }
.hl-desk .hl-t1 { grid-row: span 2; }
.hl-t h3 { margin: 0; font: 400 1.75rem/1.1 var(--serif); letter-spacing: 0; max-width: 17em; color: inherit; text-wrap: balance; }
.hl-t p { margin: 0; font-size: var(--t-body); line-height: 1.5; max-width: 34ch; }
.hl-t .hl-fig { margin-top: auto; font-size: 3.5rem; line-height: .88; }
.hl-t1 .hl-fig { margin-top: 6px; font-size: 4.5rem; }   /* drawn larger than the Figure style (open point 10) */
.hl-t1 .hl-ph { position: relative; flex: 1; min-height: 150px; margin: 14px -28px -26px; }
.hl-t1 .hl-ph :is(img, picture) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-t1 p { padding-right: 0; }
.hl-t3 p { padding-right: 60px; }
.hl-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 24px; align-items: end; margin-top: auto; padding-right: 60px; }
.hl-row .hl-fig { margin: 0 0 10px; }
/* the five years against the target: the dashed line is the 4% target and every bar rises clearly past it, as each year's
   return met it (Kyle, 17 November 2026: "It needs to be clearly above its target each year"). A sign, not a scale: the
   record chart further down gives the figures */
.hl-bars { position: relative; display: flex; align-items: flex-end; gap: 9px; box-sizing: border-box; height: 64px; border-bottom: 1px solid var(--navy); }
.hl-bars::before { content: ""; position: absolute; z-index: 0; left: -6px; right: -6px; bottom: 46px; border-top: 1px dashed var(--brick-word); }
.hl-bars i { position: relative; z-index: 1; flex: 1; display: block; height: 58px; background: var(--navy); }
.hl-bars i:last-child { background: var(--brick); }
/* the plus: a 44px square in the corner; it fills as the pointer reaches the tile */
.hl-plus { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; box-sizing: border-box; border: 1px solid currentColor; border-radius: var(--r-button); transition: background-color .5s ease, color .5s ease, border-color .5s ease; }
.hl-t1 .hl-plus { background: var(--navy); }
.hl-plus::before, .hl-plus::after, .hl-pm::before, .hl-pm::after, .it-pm::before, .it-pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease); }
.hl-plus::after, .hl-pm::after, .it-pm::after { transform: rotate(90deg); }
.hl-t1:is(:hover, :focus-visible) .hl-plus { background: var(--chalk); color: var(--navy); border-color: var(--chalk); }
.hl-t2:is(:hover, :focus-visible) .hl-plus, .hl-t3:is(:hover, :focus-visible) .hl-plus { background: var(--navy); color: var(--chalk); border-color: var(--navy); }

/* ---------- terms and charges (shown once the switch in Sanity is on) ---------- */
.it { margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid var(--rule); }
.it-h { margin: 0 0 14px; font: 600 1.25rem/1.3 var(--sans); color: var(--navy); }
.it-b { display: none; }
.it-dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.it-dl > div { padding: 14px 0 16px; border-top: 1px solid var(--rule); }
.it-dl dt { font-size: .875rem; line-height: 1.45; color: var(--ink); }
.it-dl dd { margin: 2px 0 0; font-size: var(--t-body); line-height: 1.4; font-weight: 600; color: var(--navy); }

/* ---------- the page in order: one ground, on main, that blends from tone to tone as each section rises up the screen
   (homex.js, as on the homepage; Kyle, 17 November 2026: "the fading background colour effect ... rather than a flat line").
   Sections are see-through over it and name their tone (data-tone); the record and the valuation sit on the lighter band
   (Kyle, 17 November 2026: stone "a bit too dark"), everything else on chalk. Navy keeps its own shapes. ---------- */
.ihv :is(#service, #detail, #portfolio, #record, #chain, #cases, #try) { background: transparent; }
.ihv .rec-src { max-width: 820px; }
/* a rule only where two sections share a ground; where the ground changes, the change divides */
.ihv #detail::after, .ihv #record::after, .ihv #try::after { display: none; }
.ihv #cases { border-top: 0; }
.ihv .ihv-hl + .detail { border-top: 1px solid var(--rule); }
@media (min-width: 901px) {
  .ihv #portfolio { padding-bottom: 80px; }
  /* more air between the opening and "The Seneca IHT Service." (Kyle, 17 November 2026: "feels too slim") */
  .ihv .ihv-hl > .wrap { padding-top: 80px; }
}
@media (max-width: 900px) { .ihv .ihv-hl > .wrap { padding-top: 48px; } }

/* ---------- the phone (900px and below): the headline of each thing shows, the detail opens on tap ---------- */
@media (max-width: 900px) {
  /* the opening: the band's height from its content, ending 44px below the capital at risk line */
  .ihv .ihp-n:not(.ihp-n-card) .ihp-in { min-height: 0; padding-block: 2.5rem 44px; }
  .ihv .ihp-n .ihp-sub { margin-top: 18px; }
  .ihv .ihp-n .ihp-sub > .ihp-risk { margin-top: 24px; }

  /* the tiles: one column of rows, the first open */
  .hl-desk { display: none; }
  .hl-mob { display: grid; gap: 10px; margin-top: 24px; }
  .hl-q { border-radius: var(--r-card); }
  .hl-qh { margin: 0; }
  .hl-qh button { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-areas: "n fig pm" "msg fig pm"; align-items: center; column-gap: 12px; row-gap: 4px; width: 100%; min-height: 44px; box-sizing: border-box; padding: 14px 12px 14px 18px; border: 0; border-radius: var(--r-card); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .5s ease; }
  .hl-qh button:focus-visible { outline-color: var(--trim-focus); }
  .hl-qh .hl-n { grid-area: n; align-self: end; }
  .hl-qh .hl-msg { grid-area: msg; align-self: start; font: 600 var(--t-body)/1.3 var(--sans); }
  .hl-qh .hl-fig { grid-area: fig; font-size: 2.25rem; line-height: 1; color: inherit; }
  .hl-t1 .hl-qh .hl-fig { color: var(--brick-accent); }
  .hl-pm { grid-area: pm; position: relative; width: 44px; height: 44px; }
  .hl-qh [aria-expanded="true"] { grid-template-areas: "n n pm" "msg msg pm"; padding-bottom: 0; }
  .hl-qh [aria-expanded="true"] .hl-fig { display: none; }
  .hl-qh [aria-expanded="true"] .hl-pm::after { transform: rotate(0deg); }
  .hl-m { padding: 0 12px 14px 18px; }
  .hl-m:has(.hl-ph) { padding-bottom: 0; }
  .hl-big { margin-top: 12px; font-size: 3.5rem; line-height: .88; }
  .hl-m p { margin: 10px 0 0; font-size: var(--t-body); line-height: 1.5; }
  .hl-go { display: inline-flex; align-items: center; min-height: 44px; font: 500 1rem/1.3 var(--sans); color: inherit; text-decoration: underline; text-underline-offset: 4px; }
  .hl-m .hl-ph { position: relative; height: 150px; margin: 6px -12px 0 -18px; overflow: hidden; border-radius: 0 0 var(--r-card) var(--r-card); }
  .hl-m .hl-ph :is(img, picture) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  /* terms and charges: one closed row that opens on tap */
  .it { margin: 28px 0 0; padding-top: 0; }
  .it-h { margin: 0; }
  .it-t { display: none; }
  .it-b { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; padding: 0 8px 0 0; border: 0; background: none; color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
  .it-b:focus-visible { outline: 2px solid var(--trim-focus); outline-offset: 3px; }
  .it-pm { position: relative; width: 44px; height: 44px; }
  .it-b[aria-expanded="true"] .it-pm::after { transform: rotate(0deg); }
  .it-dl { display: none; grid-template-columns: minmax(0, 1fr); }
  .it.open .it-dl { display: grid; }
  .it + .docs { margin-top: 0; }

  /* the lending: the navy runs edge to edge and meets its neighbours */
  .ihv #portfolio { padding-top: 0; padding-bottom: 0; }
  .ihv #portfolio .prow { scroll-padding-inline: 1rem; }   /* the first card inset 16px (fix 1) */
  .ihv #portfolio .pcard dl { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 12px; }   /* fix 3 */
  .ihv #portfolio .pcard dl > * { min-width: 0; }

  /* the track record: the two headline figures off the screen (still read out: the block is a live region), tighter rows */
  .ihv #record .rec-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
  .ihv #record .ihv-fcard.rec-r { gap: 12px; }
  .ihv #record .pil tbody tr > * { padding-top: 9px; padding-bottom: 9px; }
  .ihv #record .pil thead th { padding-top: 6px; padding-bottom: 8px; }

  /* the valuation: a sideways row, every card open */
  .ihv #chain .vs-stack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; gap: 12px; margin-inline: -1rem; padding: 0 1rem .5rem; align-items: stretch; min-height: 0 !important; scrollbar-width: none; }
  .ihv #chain .vs-stack::-webkit-scrollbar { display: none; }
  .ihv #chain .vs-stack::before, .ihv #chain .vs-trace { display: none; }
  .ihv #chain .vs-c { flex: 0 0 84%; width: auto; scroll-snap-align: start; margin-top: 0; display: flex; opacity: 1; transform: none; }
  .ihv #chain .vs-c + .vs-c::before { content: ""; position: absolute; left: -12px; top: 30px; width: 12px; height: 2px; background: var(--taupe); }
  .ihv #chain .vs-layer { flex: 1; display: flex; flex-direction: column; cursor: default; }
  .ihv #chain .vs-plus { display: none; }
  .ihv #chain .vs-row { grid-template-columns: minmax(0, 1fr); }
  .ihv #chain .vs-x { grid-template-rows: 1fr; margin-top: auto; }
  .ihv #chain .vs-xi { opacity: 1; transform: none; }
  .ihv #chain .vs-base .vs-xi { grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 16px; row-gap: 12px; }
  .ihv #chain .vs-base .vs-wl { display: contents; }
  .ihv #chain .vs-base .vs-wl p { grid-column: 1 / -1; }
  .ihv #chain .vs-waf i.y { background: var(--brick-accent); }
  .ihv #chain .vs-waf i.n { background: var(--stone); }
  .ihv #chain .vs-sum li { transform: none; }

  /* Anthony: a wider photo, body text at 16px (the agreed exception), the buttons side by side */
  .ihv #cases .axe-ph { aspect-ratio: 16 / 9; }
  .ihv #cases .axe-intro { row-gap: 20px; }
  .ihv #cases .axe-in { gap: 14px; }
  .ihv #cases :is(.axe-p, .axe-story p) { font-size: 1rem; line-height: 1.5; }
  .ihv #cases .axe-go { flex-wrap: nowrap; gap: 8px; width: 100%; margin-top: 4px; }
  .ihv #cases .axe-go .btn { flex: 1 1 0; min-width: 0; padding-inline: 8px; justify-content: center; text-align: center; white-space: nowrap; }
  .ihv #cases .axe-card > .fpause { top: 16px; right: 16px; }   /* inside the photo's corner (fix 4) */

  /* the illustration: the steps on one line, the saving on one line, tighter, square to the edges */
  .ihv #try .gets { padding-top: 20px; gap: 10px; }
  .ihv #try .fprog { display: flex; align-items: baseline; gap: 18px; padding-bottom: 12px; margin-bottom: 16px; }
  .ihv #try .fprog > span { flex-direction: row; gap: 8px; align-items: baseline; }
  .ihv #try .fprog > span:not(.on) .fp-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ihv #try .fprog > span.on { flex: 1 1 auto; }
  .ihv #try :is(.yrow, .gorow) { margin-top: 14px; }
  .ihv #try .sv2 { margin-top: 14px; padding-top: 12px; gap: 6px; }
  .ihv #try .sv2 .out { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .ihv #try .sv2 .v { margin-top: 0; justify-content: flex-end; }
  .ihv #try .req.flow { border-radius: 0; border-left: 0; border-right: 0; }   /* fix 5 */
}

/* ---------- the buildings, as pictures first (Kyle, 17 November 2026: "Properties are too big ... a hover state that expands
   when my mouse is over it ... property images there, without it being an overwhelming amount of text") ----------
   On a desktop each building is its photograph with its name and region in a navy strip at its foot. Its details (the line,
   size and occupancy, Find out more) sit in that strip below the fold of the card, and the strip rises over the lower part
   of the photograph when the pointer is on the card, or the card has keyboard focus. The strip is solid navy, never
   see-through. Every word stays in the page for a screen reader. A phone keeps the cards as built. */
@media (min-width: 901px) {
  .ihv #portfolio .prow { gap: 16px; margin-top: 32px; }
  .ihv #portfolio .pcard { position: relative; display: block; height: 360px; border: 0; border-radius: var(--r-card); overflow: hidden; background: var(--navy-deep); text-decoration: none; color: var(--chalk); }
  .ihv #portfolio .pcard figure { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; }
  .ihv #portfolio .pcard figure img { width: 100%; height: 100%; object-fit: cover; transform: none; transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
  .ihv #portfolio .pcard figcaption { display: none; }
  .ihv #portfolio .pcard .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 22px 28px 26px; background: var(--navy-deep); transform: translateY(calc(100% - 90px)); transition: transform .6s var(--ease); }
  .ihv #portfolio .pcard .body .eye { margin: 0; color: var(--brick-accent); }
  .ihv #portfolio .pcard .body h3 { margin: 6px 0 0; font: 600 1.25rem/1.25 var(--sans); color: var(--chalk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ihv #portfolio .pcard .body > p { margin: 10px 0 0; color: var(--sand); font-size: var(--t-small); line-height: 1.5; }
  .ihv #portfolio .pcard .body dl { margin-top: 12px; padding-top: 10px; }
  .ihv #portfolio .pcard .pf-go { margin-top: 12px; }
  .ihv #portfolio .pcard .body > :not(.eye):not(h3) { opacity: 0; transition: opacity .4s ease; }
  .ihv #portfolio .pcard:is(:hover, :focus-visible, :focus-within) .body { transform: none; }
  .ihv #portfolio .pcard:is(:hover, :focus-visible, :focus-within) .body > :not(.eye):not(h3) { opacity: 1; transition-delay: .12s; }
  .ihv #portfolio .pcard:is(:hover, :focus-visible) figure img { transform: scale(1.04); }
  .ihv #portfolio .pcard:hover { border-color: transparent; }
  .ihv #portfolio .pcard:focus-visible { outline: 2px solid var(--trim-focus); outline-offset: 3px; }
  /* a desktop without a mouse (a touch laptop or tablet) sees the details at once */
  @media (hover: none) { .ihv #portfolio .pcard .body { transform: none; } .ihv #portfolio .pcard .body > :not(.eye):not(h3) { opacity: 1; } .ihv #portfolio .pcard { height: auto; min-height: 340px; } }
  @media (prefers-reduced-motion: reduce) { .ihv #portfolio .pcard .body { transition: none; } }
}

/* ---------- the close: the words share the portrait's top and foot (Kyle, 17 November 2026: "buttons should be in line with
   the picture"), and the band for applying sits closer under them ---------- */
@media (min-width: 901px) {
  .ihv .xcv-a .xa-grid { align-items: stretch; }
  .ihv .xcv-a .xa-ph { height: auto; min-height: 30rem; }
  .ihv .xcv-a .xa-main { justify-content: flex-start; }
  .ihv .xcv-a .xa-card { margin-top: auto; }
  .ihv .xcv-a .inv-in { padding-block: clamp(3rem, 8svh, 5.5rem) clamp(2.5rem, 6svh, 4rem); }
  .ihv .xcv-a > .wrap > .xc-in > .xa-now { margin-top: -16px; }   /* 40px under the portrait, with the column's 56px gap */
}

/* the notes under the buildings: two columns under a hairline, the cards' width, chalk at the small size (on navy, text is chalk) */
.ihv #portfolio .pf-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--navy-line); }
.ihv #portfolio .pf-notes .pf-note { margin: 0; max-width: none; color: var(--chalk); font-size: var(--t-small); line-height: 1.55; }
@media (max-width: 900px) { .ihv #portfolio .pf-notes { grid-template-columns: minmax(0, 1fr); row-gap: 12px; } }

/* risk wording at body size (compliance, 1 December 2026) */
.ihv #portfolio .pf-notes .pf-note { font-size: var(--t-body); line-height: 1.6; }
