/* EIS: the Select EIS Portfolio Service (src/views/Eis.astro), and shared with Commercial Property Funds (Cpf.astro, with
   cpf.css). The EIS service is closed to new investment, so its page is set out for the investors in it.
   The brand pass (15 October 2026), with the IHT page as the model: square, flat colour; the serif speaks once a block, in
   a sentence with its full stop; labels in the sans without one; brick for a word, a line or a dot, as the IHT page uses it. */
.eis .eye { color: var(--brick-word); }
.eis .a-hero .eis-st { color: var(--brick-accent); }
.eis .a-photo .cap { color: var(--sand); }   /* a caption tab, as on the IHT page (stock photos carry no label since 16 October 2026) */
.eis-st { display: inline-flex; align-items: center; gap: .625rem; }
/* the status square: only where a service is open (filled) or closed (outlined) */
.eis-sq { flex: none; width: 12px; height: 12px; box-sizing: border-box; background: var(--brick); }
.eis-sq.out { background: transparent; border: 1.5px solid var(--brick); }
.a-hero .eis-sq.out { border-color: var(--brick-accent); }
.eis .a-hero h1 { font-size: clamp(2.75rem, calc(5.6vw * var(--ts)), 5.25rem); }
.eis .a-hero .lede { max-width: 42ch; }
/* the opening fills the screen exactly, as the homepage's and the Inheritance Tax Service's do (Kyle, 29 October 2026).
   The words and the photograph share a top and a bottom edge. The words sit in the middle of their column, and the type
   scales with the screen's height as well as its width. The photograph is set inside the band, so it takes the card radius.
   Stacked (phone), the words fill the first screen and the photograph follows. The standfirst is chalk: on navy, the
   page's ink rule had made it unreadable. */
.eis .a-hero { --fit: calc(100svh - var(--rh, 44px) - var(--hh, 78px) - 1px); --pad: clamp(1.5rem, 6svh, 4.5rem); }
.eis .a-hero .wrap { box-sizing: border-box; min-height: var(--fit); padding-block: var(--pad); align-items: stretch; align-content: center; column-gap: clamp(3rem, 6vw, 6.5rem); }
.eis .a-hero .wrap > div:first-child { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eis .a-hero h1 { font-size: clamp(2.75rem, min(6vw, 10svh), 6.5rem); line-height: .98; }
.eis .a-hero .lede, .eis .a-hero p.lede { color: var(--chalk); margin-top: clamp(1rem, 3svh, 1.75rem); }
.eis .a-hero .ctas { margin-top: clamp(1.25rem, 4svh, 2.25rem); padding-bottom: 0; }
.eis .a-photo { height: min(calc(var(--fit) - 2 * var(--pad)), 54rem); border-radius: var(--r-card); }
@media (max-width: 900px) {
  .eis .a-hero .wrap { row-gap: var(--pad); align-content: start; }
  .eis .a-hero .wrap > div:first-child { min-height: calc(var(--fit) - 2 * var(--pad)); }
  .eis .a-hero h1 { font-size: clamp(2.75rem, min(12.5vw, 11svh), 5.5rem); }
  .eis .a-photo { height: 300px; }
}
/* IHT's headline size (.a-intro h2): up to 68px */
.eis-h h2 { margin-top: 1rem; font-family: var(--serif); --serif-size: clamp(2.25rem, calc(5vw * var(--ts)), 4.25rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); line-height: 1.04; color: var(--navy); max-width: 20ch; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.eis-n { display: block; font: 600 .75rem var(--sans); letter-spacing: .08em; color: var(--brick-word); font-variant-numeric: tabular-nums; }
.eis h3.sub { margin-top: .625rem; font: 600 1.25rem/1.25 var(--sans); color: var(--navy); }
.eis-col > h3.sub:first-child { margin-top: 0; }
.eis p:not(.a-close p, .xc p) { color: var(--ink); line-height: 1.65; }   /* nor the close (ProductClose, .xc): its booking lines were ink on navy (Kyle, 25 November 2026) */   /* not in the navy Speak with us block at the foot (Kyle, 28 October 2026: its booking line was ink on navy) */

/* 1 · the three cards over the foot of the header (.msgs, .mrow, .mcard in seneca.css, as on the IHT page) */
.eis .mcard { min-height: 0; }
.eis .mcard .go svg { width: 15px; height: 15px; }

/* 2 · the documents, on white */
.eis-docsec { background: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); }
.eis-dlede { margin: 1.25rem 0 0; max-width: 60ch; }
.eis-dgrid { grid-template-columns: repeat(4, minmax(0, 210px)); gap: 2.5rem 1.75rem; margin-top: clamp(2.25rem, 4vw, 3rem); }
.eis-dgrid .pick { display: none; }   /* no download tray on this page: each card downloads on its own */

/* 3 · the record: a full navy band. The heading and its line on the left; the four figures, two by two, on the right, with
   past performance under them and the explanation as published behind "How we calculate this" */
.eis-rec { background: var(--navy); color: var(--chalk); padding-block: clamp(4rem, 8vw, 6.5rem); }
.eis-rec .eye { color: var(--brick-accent); }
.eis-rec h2 { color: var(--chalk); }
.eis-rgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.eis-rlede { margin: 1.5rem 0 0; font-size: var(--t-body); line-height: 1.55; color: var(--chalk) !important; max-width: 46ch; }
.eis-figs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--navy-line); }
.eis-figs > div { padding: 1.75rem 1.75rem 1.75rem 0; border-bottom: 1px solid var(--navy-line); }
.eis-figs > div:nth-child(even) { padding-left: 1.75rem; padding-right: 0; border-left: 1px solid var(--navy-line); }
.eis-figs dt { --serif-size: clamp(3rem, calc(5.4vw * var(--ts)), 5rem); --serif-ls: -.03em; --serif-ws: 0em; font: 400 var(--serif-fit)/1 var(--serif); color: var(--chalk); font-variant-numeric: lining-nums; letter-spacing: var(--serif-ls); word-spacing: var(--serif-ws); }
.eis-figs dd { margin: .875rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--sand); max-width: 26ch; }
.eis-rr .eis-pp { margin: 1.5rem 0 0; color: var(--chalk); font-size: var(--t-body); }
.eis-how2 { margin-top: 1.25rem; border-top: 1px solid var(--navy-line); }
.eis-how2 summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; padding-block: .75rem; cursor: pointer; font: 600 var(--t-body) var(--sans); color: var(--chalk); }
.eis-how2 summary::-webkit-details-marker { display: none; }
.eis-how2 summary:hover { color: var(--sand); }
.eis-how2 summary:focus-visible { outline: 2px solid var(--trim-focus); outline-offset: 2px; }
.eis-how2 p { margin: 0 0 .5rem; color: var(--sand); font-size: .875rem; line-height: 1.6; max-width: 64ch; }

/* 4 · the closed funds and eight of their companies, on chalk */
.eis-pf { background: var(--chalk); padding-block: clamp(4rem, 8vw, 6.5rem); }
.eis-plede { margin: 1.5rem 0 0; max-width: 62ch; }
.eis-plede a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.eis-plede a:hover { color: var(--brick-word); text-decoration-thickness: 2px; }
.eis-funds { list-style: none; margin: clamp(2rem, 4vw, 2.75rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2rem; }
.eis-funds li { display: grid; gap: .5rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--navy); }
.eis-funds b { font: 600 1.25rem/1.3 var(--sans); color: var(--navy); }
.eis-funds span { font-size: var(--t-body); line-height: 1.55; color: var(--ink); }
.eis-fnote { margin: 1.5rem 0 0; font-size: .875rem; color: var(--navy) !important; }
.eis-co { margin-top: clamp(3.5rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--rule); }
.eis-cohead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; }
.eis-coh { margin: 0; }
.eis-cosub { margin: .75rem 0 0; font-size: .875rem; }
.eis-colist { margin-top: 1.75rem; }

/* 5 · the service and its risks: one headline, two ruled rows of two columns */
.eis-how { background: var(--chalk); padding-block: clamp(4rem, 8vw, 6.5rem); }
.eis-svc { background: #fff; }
.eis-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.eis-cols2 { margin-top: clamp(3rem, 5vw, 4rem); }
.eis-col { padding-top: 1.5rem; border-top: 1px solid var(--navy); }
.eis-col p { margin: 1rem 0 0; }
/* the lists take the IHT page's ticks */
.eis-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .625rem; }
.eis-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .75rem; color: var(--ink); line-height: 1.6; }
.eis-list svg { width: 18px; height: 18px; stroke: var(--brick); fill: none; stroke-width: 2.2; margin-top: .2em; }
.eis-fee { font-size: .875rem; }
.eis-risks { margin: 1rem 0 0; display: grid; }
.eis-risks > div { padding-block: 1rem; border-top: 1px solid var(--rule); }
.eis-risks > div:first-child { border-top: 0; padding-top: 0; }
.eis-risks dt { font: 600 var(--t-body)/1.3 var(--sans); color: var(--navy); }
.eis-risks dd { margin: .375rem 0 0; color: var(--ink); line-height: 1.6; }

/* questions: the heading on the left, the questions ruled on the right; a brick plus turns to a minus when one is open */
.eis-faq { background: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); }
.eis-qgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.eis-qs { border-top: 1px solid var(--navy); }
.eis-q { border-bottom: 1px solid var(--rule); }
.eis-q summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 14px; gap: 1.5rem; align-items: baseline; min-height: 44px; padding-block: 1.375rem; cursor: pointer; }
.eis-q summary::-webkit-details-marker { display: none; }
.eis-q summary .q { font: 600 1.25rem/1.35 var(--sans); color: var(--navy); transition: color .3s; }
.eis-q summary:hover .q { color: var(--brick-word); }
.eis-q summary:focus-visible { outline: 2px solid var(--trim-focus); outline-offset: 2px; }
.eis-q summary i, .eis-how2 summary i { position: relative; align-self: center; flex: none; width: 14px; height: 14px; }
.eis-q summary i::before, .eis-q summary i::after, .eis-how2 summary i::before, .eis-how2 summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--brick); transition: transform .3s var(--ease); }
.eis-how2 summary i::before, .eis-how2 summary i::after { background: var(--brick-accent); }
.eis-q summary i::after, .eis-how2 summary i::after { transform: rotate(90deg); }
.eis-q[open] summary i::after, .eis-how2[open] summary i::after { transform: rotate(0deg); }
/* while one closes (site.js), its minus turns back to a plus at once */
.eis-q[data-state="closing"] summary i::after { transform: rotate(90deg); }
.eis-q .a { padding: 0 2rem 1.5rem 0; max-width: 68ch; }
.eis-q .a p { margin: 0 0 .875rem; }
.eis-q .a p:last-child { margin: 0; }
.eis-q a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.eis-q a:hover { color: var(--brick-word); text-decoration-thickness: 2px; }

/* important information */
.eis-ii { background: var(--chalk); padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.eis-iigrid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.eis-ii p { margin: 0 0 1rem; font-size: var(--t-body); max-width: 80ch; }
.eis-ii p:last-child { margin: 0; color: var(--navy); }

/* the other services: the status square says open or closed */
.eis-oth { background: var(--chalk); padding-block: clamp(3rem, 6vw, 4.5rem); }
.eis-olist { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.eis-olist a { display: grid; grid-template-columns: 12px minmax(0, 1fr) 16px; gap: 1rem; align-items: start; padding-block: 1.25rem; border-top: 1px solid var(--navy); color: var(--navy); text-decoration: none; min-height: 44px; }
.eis-olist .eis-sq { margin-top: .35em; }
.eis-olist b { display: block; font: 600 1.25rem/1.3 var(--sans); }
.eis-olist span span { display: block; margin-top: .375rem; font-size: .875rem; line-height: 1.5; color: var(--ink); }
.eis-olist svg { width: 16px; height: 16px; stroke: var(--brick-word); margin-top: .3em; transition: transform .3s var(--ease); }
.eis-olist a:hover b { color: var(--brick-word); }
.eis-olist a:hover svg { transform: translateX(4px); }

/* the logos (src/components/CoLogo.astro): on the page's own ground, left aligned in a band of one height, so the names
   below line up across a row */
.pf-colg { margin-bottom: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }

@media (max-width: 1100px) {
  .eis-funds, .pf-grid.eis-colist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eis-funds li:nth-child(n+3) { margin-top: 1.75rem; }
  .eis-rgrid { grid-template-columns: minmax(0, 1fr); }
  .eis-dgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* the IHT page turns its cards into a carousel here; these three are short, so they stack */
  .eis .mrow { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; padding-bottom: 0; }
  .eis .mcard { flex: none; min-height: 0; }
  .eis-cols, .eis-iigrid, .eis-olist, .eis-qgrid { grid-template-columns: minmax(0, 1fr); }
  .eis-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .eis-q .a { padding-right: 0; }
}
@media (max-width: 600px) {
  .eis-funds, .pf-grid.eis-colist { grid-template-columns: minmax(0, 1fr); }
  /* the key documents one to a row, as on the IHT page: two side by side crushed their words and pushed the download
     button past the edge of the screen, so the page moved sideways (site check, 26 November 2026) */
  .dgrid.eis-dgrid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .eis-funds li + li { margin-top: 1.5rem; }
}
@media (max-width: 520px) {
  .eis-figs > div { padding-right: .75rem; }
  .eis-figs > div:nth-child(even) { padding-left: .75rem; }
}

/* the page in the current site's words (15 October 2026): headings with no label over them; risks in three columns; the
   four figures in a row with the paragraph beneath, as published; smaller headings for the information at the foot */
.eis-h > h2:first-child { margin-top: 0; }
.eis-small { font-size: .875rem; }
.eis-rsk { background: var(--chalk); border-top: 1px solid var(--rule); }
.eis-risks3 { margin: clamp(2rem, 4vw, 2.75rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.eis-risks3 > div { padding-top: 1.25rem; border-top: 1px solid var(--navy); }
.eis-risks3 dt { font: 600 1.25rem/1.3 var(--sans); color: var(--navy); }
.eis-risks3 dd { margin: .625rem 0 0; color: var(--ink); line-height: 1.6; }
.eis-figs4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2rem, 4vw, 2.75rem); }
.eis-figs4 > div, .eis-figs4 > div:nth-child(even) { padding: 1.75rem 1.5rem 1.75rem 0; border-left: 0; }
.eis-figs4 > div + div { padding-left: 1.5rem; border-left: 1px solid var(--navy-line); }
.eis-rec .eis-rnote { margin: 1.75rem 0 0; color: var(--sand); font-size: .875rem; line-height: 1.65; max-width: 110ch; }
.eis-ii .eis-h h2, .eis-oth .eis-h h2 { --serif-size: clamp(1.875rem, calc(3vw * var(--ts)), 2.5rem); --serif-ls: -.012em; --serif-ws: -.02em; font-size: var(--serif-fit); }
.eis-oth .eis-olist { margin-top: 1.75rem; }
@media (max-width: 1100px) {
  .eis-figs4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eis-figs4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) { .eis-risks3 { grid-template-columns: minmax(0, 1fr); } .eis-risks3 > div + div { margin-top: 1.5rem; } }
@media (max-width: 520px) { .eis-figs4 > div, .eis-figs4 > div + div { padding-right: .75rem; } .eis-figs4 > div:nth-child(even) { padding-left: .75rem; } }

/* the AIM EIS Fund (15 October 2026): the published page's three points under the headline, on navy, the ticks in the
   brick for navy; the footnote under them; six companies, three a row */
.eis-pts { margin-top: 1.5rem; }
.eis .a-hero .eis-pts li { color: var(--chalk); }
.eis-pts svg { stroke: var(--brick-accent); }
.eis .a-hero .eis-ptn { margin: .75rem 0 0; font-size: .875rem; color: var(--sand); }
.pf-grid.eis-colist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pf-grid.eis-colist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pf-grid.eis-colist { grid-template-columns: minmax(0, 1fr); } }
.eis-rnote + .eis-rnote { margin-top: .5rem; }

/* 15 October 2026 (Kyle's notes on the AIM EIS Fund page) */
/* the status as the brand's tag (as on the property cards): a block of condensed spaced caps with a square, here on chalk
   so it stands off the navy, the words and the square in the brick for light grounds (Kyle: "a white background") */
.tag.eis-tag { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: var(--chalk); color: var(--brick-word); font: 600 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; font-stretch: 80%; }
.tag.eis-tag i { width: 7px; height: 7px; background: var(--brick-word); flex: none; }
/* What is the AIM EIS Fund?: one column. The fund's sentence leads at body size, its opening clause in SemiBold ink (the
   brand's bold run-in lead) and one phrase in brick; the detail follows straight on, with no rule (Kyle, 16 October 2026) */
.eis-what .eis-say { margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0; max-width: 40rem; font: 400 var(--t-body)/1.65 var(--sans); color: var(--ink); text-wrap: pretty; }
.eis-what .eis-say strong { font-weight: 600; color: var(--ink); }
.eis-what .eis-say em { font-style: normal; color: var(--brick-word); white-space: nowrap; }
.eis-what-sub { margin: .875rem 0 0; width: min(100%, 40rem); }
.eis-what-sub p { margin: 0 0 .875rem; color: var(--ink); }
.eis-what-sub p:last-child { margin: 0; }
/* the record's heading on two lines, not three */
.eis-rech h2, #portfolio .eis-h h2 { max-width: 34ch; }
/* the figures each with its drawing over the number: no box, the brick line for navy, to the brand's icon standard (a
   24px grid, a 1.6 stroke, round caps; brand rules, section 6); a rule between each figure */
.eis-figs4 dt { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.eis-fi { width: 30px; height: 30px; fill: none; stroke: var(--brick-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eis-figs.eis-figs4 > div { padding: 1.75rem 1.5rem 1.75rem 0; border-left: 0; }
.eis-figs.eis-figs4 > div + div { padding-left: 1.5rem; border-left: 1px solid var(--navy-line); }
@media (max-width: 1100px) { .eis-figs.eis-figs4 > div:nth-child(3) { padding-left: 0; border-left: 0; } }
/* the companies: the paragraph wider, so shorter; the link to the portfolio under the cards */
#portfolio .eis-plede { max-width: 82ch; }
.eis-pfmore { display: flex; margin-top: 2.25rem; }
