/* t8-f3-components (round F3-01, Nov 26, 2026). Five shared visual components for the guides.
   F5 links this file read-only. Keep class names and markup backward compatible.
   1 .t8-steps  step track      2 .t8-flow  stage flow      3 .t8-example  worked example
   4 .t8-icards icon-card grid  5 figure.t8-fig  inline captioned photo
   Plus .t8-ico (32 px line icon, 24-unit viewBox, stroke 1.6) used by the cards. */

.t8-steps, .t8-flow, .t8-icards { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.t8-steps > li, .t8-flow > li, .t8-icards > li { margin: 0 !important; padding-left: 0; }
.t8-steps > li::before, .t8-steps > li::marker, .t8-flow > li::marker, .t8-icards > li::before, .t8-icards > li::marker { content: none !important; display: none; }

/* ---------- 1. Step track ----------
   <ol class="t8-steps" aria-label="…">
     <li><a class="t8-steps__i" href="#section-id"><span class="t8-steps__n" aria-hidden="true">1</span><span class="t8-steps__t">Label</span></a></li>
     (or <span class="t8-steps__i"> instead of <a> when there is no section to link; optional <span class="t8-steps__d">detail</span> after __t)
   </ol>
   Vertical below 900 px; horizontal (one row, joined by a line) at 900 px and wider for 3 to 7 steps.
   JS adds .t8-steps--v when the row would give a step less than 104 px. */
.t8-steps { display: grid; gap: 0; margin-block: var(--s5, 1.5rem) !important; counter-reset: none; }
.t8-steps > li { position: relative; }
.t8-steps__i { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 0 0 20px; color: var(--text, #F3EFE6); text-decoration: none !important; border: 0 !important; }
.t8-steps > li:last-child > .t8-steps__i { padding-bottom: 0; }
a.t8-steps__i:hover .t8-steps__t, a.t8-steps__i:focus-visible .t8-steps__t { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold, #C9A24A); }
a.t8-steps__i:focus-visible { outline: 2px solid var(--gold, #C9A24A); outline-offset: 4px; border-radius: 4px; }
.t8-steps__n { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold, #C9A24A); color: #0D0E11; font: 700 1.0625rem/1 var(--font-body, system-ui, sans-serif); font-variant-numeric: tabular-nums; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--navy, #0D0E11); }
.t8-steps__t { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; padding-top: 9px; color: var(--text, #F3EFE6); }
.t8-steps__d { display: block; grid-column: 2; font-size: 1rem; line-height: 1.45; color: var(--text-3, #BDB8AD); margin-top: 4px; }
/* the joining line (vertical) */
.t8-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--gold-dim, #8C7130); }
@media (min-width: 900px) {
  .t8-steps:not(.t8-steps--v) { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 8px; }
  .t8-steps:not(.t8-steps--v) .t8-steps__i { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; row-gap: 10px; padding: 0; }
  .t8-steps:not(.t8-steps--v) .t8-steps__n { grid-row: auto; }
  .t8-steps:not(.t8-steps--v) .t8-steps__t { padding-top: 0; font-size: 1rem; }
  .t8-steps:not(.t8-steps--v) .t8-steps__d { grid-column: 1; }
  .t8-steps:not(.t8-steps--v) > li:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 20px); top: 19px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- 2. Stage flow ----------
   <ol class="t8-flow" aria-label="…">
     <li><span class="t8-flow__k">Stage</span><span class="t8-flow__d">optional detail</span></li> … (3 to 5 stages)
   </ol>
   Boxes joined by chevrons; stacks vertically (chevrons point down) at 700 px and narrower.
   .t8-flow--compact: smaller boxes for a progress strip (up to 6 stages). */
.t8-flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 28px; margin-block: var(--s5, 1.5rem) !important; align-items: stretch; }
.t8-flow > li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; background: var(--navy-raised, #131519); border: 1px solid var(--line-strong, #3D414A); border-top: 3px solid var(--gold, #C9A24A); border-radius: var(--radius, 6px); }
.t8-flow__k { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--text, #F3EFE6); }
.t8-flow__d { font-size: 1rem; line-height: 1.45; color: var(--text-2, #DCD7CC); }
.t8-flow__s { font: 700 .8125rem/1 var(--font-body, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #C9A24A); }
.t8-flow > li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -21px; width: 12px; height: 12px; border-top: 2px solid var(--gold, #C9A24A); border-right: 2px solid var(--gold, #C9A24A); transform: translateY(-50%) rotate(45deg); }
.t8-flow--compact { column-gap: 22px; }
.t8-flow--compact > li { padding: 10px 12px 12px; border-top-width: 2px; }
.t8-flow--compact .t8-flow__k { font-size: 1rem; }
.t8-flow--compact > li:not(:last-child)::after { right: -17px; width: 9px; height: 9px; }
@media (max-width: 700px) {
  .t8-flow, .t8-flow--compact { grid-auto-flow: row; grid-auto-columns: auto; row-gap: 26px; column-gap: 0; }
  .t8-flow > li:not(:last-child)::after { top: auto; bottom: -19px; right: auto; left: 28px; transform: rotate(135deg); }
  .t8-flow--compact { row-gap: 22px; }
  .t8-flow--compact > li:not(:last-child)::after { bottom: -16px; }
}

/* ---------- 3. Worked example ----------
   <div class="t8-example">
     <p class="t8-example__label">Example</p>
     <p class="t8-example__eq"><span>10 claims</span> <span class="t8-example__op">×</span> … <span class="t8-example__op">=</span> <strong>$300</strong></p>
       and/or <table class="t8-example__tbl"><tbody><tr><th scope="row">…</th><td>$100,000</td></tr>…</tbody></table>
     <p class="t8-example__note">Note line.</p>
   </div> */
.t8-example { margin-block: var(--s5, 1.5rem) !important; padding: 20px 24px 22px; background: var(--t8-warm, #1A1916); border: 1px solid var(--line, #2A2D34); border-left: 4px solid var(--gold, #C9A24A); border-radius: 0 var(--radius, 6px) var(--radius, 6px) 0; }
.t8-example > * + * { margin-top: 12px !important; }
.t8-example__label { margin: 0 !important; font: 700 .875rem/1.2 var(--font-body, system-ui, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--gold, #C9A24A); }
.t8-example__eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 1.25rem; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--text, #F3EFE6); }
.t8-example__eq strong { color: var(--gold-bright, #E3C77E); }
.t8-example__op { color: var(--gold, #C9A24A); font-weight: 700; }
.t8-example__tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-block: 0; }
.t8-example__tbl th, .t8-example__tbl td { padding: 8px 0; border-bottom: 1px solid var(--line, #2A2D34); text-align: left; vertical-align: top; font-size: 1rem; line-height: 1.4; background: none; }
.t8-example__tbl th { font-weight: 400; color: var(--text-2, #DCD7CC); padding-right: 16px; }
.t8-example__tbl td { text-align: right; white-space: nowrap; color: var(--text, #F3EFE6); font-weight: 600; }
.t8-example__tbl tr:last-child > * { border-bottom: 0; }
.t8-example__tbl tr.t8-example__tot > * { border-top: 2px solid var(--gold-dim, #8C7130); color: var(--gold-bright, #E3C77E); font-weight: 700; }
.t8-example__tbl thead th { font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3, #BDB8AD); font-weight: 700; }
.t8-example__tbl thead th:not(:first-child) { text-align: right; }
.t8-example__note { font-size: 1rem; line-height: 1.5; color: var(--text-2, #DCD7CC); }
@media (max-width: 600px) { .t8-example { padding: 16px 16px 18px; } .t8-example__eq { font-size: 1.125rem; } }

/* ---------- 4. Icon-card grid ----------
   <ul class="t8-icards" style="--cols:3">   (--cols = 2, 3 or 4; JS balances it so no lone last card)
     <li><svg class="t8-ico" …/> (or <span class="t8-ico" data-ico="doc"></span>, filled in by JS)
         <h3 class="t8-icards__h">Heading</h3><p>One to three lines.</p></li>
   </ul>
   Modifiers: .t8-icards--warn (warning icon colour and edge), .t8-icards--tight (smaller padding). */
.t8-icards { --cols: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-block: var(--s5, 1.5rem) !important; }
@media (min-width: 600px) { .t8-icards { grid-template-columns: repeat(min(var(--c, var(--cols)), 2), minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 899.98px) { .t8-icards:not([data-c="1"]) > li:nth-child(odd):last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .t8-icards { grid-template-columns: repeat(var(--c, var(--cols)), minmax(0, 1fr)); } .t8-icards > li.t8-icards__last-wide { grid-column: 1 / -1; } }
.t8-icards > li { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; background: var(--navy-raised, #131519); border: 1px solid var(--line, #2A2D34); border-radius: var(--radius, 6px); min-width: 0; }
.t8-icards > li.t8-icards__wide { grid-column: 1 / -1; }
.t8-icards > li > * { margin: 0 !important; }
.t8-icards .t8-ico { margin-bottom: 4px !important; }
.t8-icards__h, .t8-icards > li > h3, .t8-icards > li > h4 { font-family: var(--font-display, Georgia, serif); font-size: 1.25rem !important; line-height: 1.25 !important; font-weight: 600; color: var(--text, #F3EFE6); border: 0 !important; padding: 0 !important; }
.t8-icards > li > p, .t8-icards > li > ul { font-size: 1rem; line-height: 1.5; color: var(--text-2, #DCD7CC); }
.t8-icards > li > p a { overflow-wrap: anywhere; }
.t8-icards--tight > li { padding: 16px 16px 18px; }
.t8-icards--warn > li { border-left: 3px solid var(--warn, #D9A65A); }
.t8-icards--warn .t8-ico { color: var(--warn, #D9A65A); }
.t8-ico { display: block; width: 32px; height: 32px; flex: none; color: var(--gold, #C9A24A); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
span.t8-ico:empty { display: block; }

/* ---------- 5. Inline captioned photo ----------
   <figure class="t8-fig"><img src="/img/…-800.webp" srcset="…" sizes="(min-width:900px) 41rem, 100vw" alt="…" width="1600" height="900" loading="lazy" decoding="async">
     <figcaption>Illustrative image: subject; not from Triple 8's claims</figcaption></figure> */
figure.t8-fig { margin: var(--s6, 2rem) 0 !important; max-width: 100%; }
figure.t8-fig > img, figure.t8-fig > picture > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius, 6px); background: var(--charcoal, #17191E); }
figure.t8-fig > figcaption { margin-top: 8px !important; font-size: .875rem; line-height: 1.45; color: var(--text-3, #BDB8AD); font-style: normal; }

/* ---------- print ---------- */
@media print {
  .t8-steps, .t8-flow, .t8-example, .t8-icards, figure.t8-fig { break-inside: avoid; page-break-inside: avoid; }
  .t8-steps__n { background: #fff !important; color: #000 !important; border: 2px solid #000; box-shadow: none !important; }
  .t8-steps__t, .t8-steps__d, .t8-flow__k, .t8-flow__d, .t8-example__eq, .t8-example__note, .t8-example__tbl th, .t8-example__tbl td, .t8-icards__h, .t8-icards > li > p { color: #000 !important; }
  .t8-steps > li:not(:last-child)::after { background: #000 !important; }
  .t8-flow > li, .t8-icards > li, .t8-example { background: #fff !important; border-color: #777 !important; }
  .t8-flow > li:not(:last-child)::after { border-color: #000 !important; }
  .t8-ico, .t8-example__label, .t8-flow__s { color: #000 !important; }
  figure.t8-fig > img { max-height: 3.2in; }
  figure.t8-fig > figcaption { color: #333 !important; }
}

/* ---------- specificity guard ----------
   Older guide rules force `.prose ul, .prose ol { display:block !important }` with ID-level selectors.
   These rules win over them (3 ID-level parts) and only touch the components. */
html body :is(#main, #t8-f3c) .t8-steps:not(#t8-f3a):not(#t8-f3b), html body :is(#main, #t8-f3c) .t8-flow:not(#t8-f3a):not(#t8-f3b), html body :is(#main, #t8-f3c) .t8-icards:not(#t8-f3a):not(#t8-f3b) { display: grid !important; padding-left: 0 !important; list-style: none !important; max-width: none; }
html body :is(#main, #t8-f3c) :is(.t8-steps, .t8-flow, .t8-icards):not(#t8-f3a):not(#t8-f3b) > li { max-width: none !important; margin-top: 0 !important; }
html body :is(#main, #t8-f3c) .t8-flow:not(#t8-f3a):not(#t8-f3b) > li, html body :is(#main, #t8-f3c) .t8-icards:not(#t8-f3a):not(#t8-f3b) > li { display: flex !important; }
html body :is(#main, #t8-f3c) figure.t8-fig:not(#t8-f3a) > figcaption { font-size: .875rem !important; }
html body :is(#main, #t8-f3c) .t8-icards:not(#t8-f3a):not(#t8-f3b) > li > :is(h3, h4, .t8-icards__h) { font-size: 1.25rem !important; line-height: 1.25 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: none !important; }
html body :is(#main, #t8-f3c) :is(.t8-icards, .t8-flow, .t8-steps, .t8-example):not(#t8-f3a):not(#t8-f3b) :is(p, li) { max-width: none !important; }
@media print {
  html body :is(#main, #t8-f3c) :is(.t8-steps, .t8-flow, .t8-icards):not(#t8-f3a):not(#t8-f3b) > li + li { margin-top: 0 !important; }
}
/* gaps (the base `.prose ol { gap }` rule outranks the plain component rules) */
html body :is(#main, #t8-f3c) .t8-steps:not(#t8-f3a):not(#t8-f3b) { gap: 0 !important; }
html body :is(#main, #t8-f3c) .t8-icards:not(#t8-f3a):not(#t8-f3b) { gap: 16px !important; }
html body :is(#main, #t8-f3c) .t8-flow:not(#t8-f3a):not(#t8-f3b) { row-gap: 0 !important; column-gap: 28px !important; }
html body :is(#main, #t8-f3c) .t8-flow.t8-flow--compact:not(#t8-f3a):not(#t8-f3b) { column-gap: 22px !important; }
@media (min-width: 900px) { html body :is(#main, #t8-f3c) .t8-steps:not(.t8-steps--v):not(#t8-f3a):not(#t8-f3b) { column-gap: 8px !important; } }
@media (max-width: 700px) {
  html body :is(#main, #t8-f3c) .t8-flow:not(#t8-f3a):not(#t8-f3b) { row-gap: 26px !important; column-gap: 0 !important; }
  html body :is(#main, #t8-f3c) .t8-flow.t8-flow--compact:not(#t8-f3a):not(#t8-f3b) { row-gap: 22px !important; }
}
/* .t8-icards--rows: one card per row, icon at the left (for cards with longer text). Added F3, backward compatible. */
html body :is(#main, #t8-f3c) .t8-icards.t8-icards--rows:not(#t8-f3a):not(#t8-f3b) { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
html body :is(#main, #t8-f3c) .t8-icards.t8-icards--rows:not(#t8-f3a):not(#t8-f3b) > li { display: grid !important; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: start; }
.t8-icards--rows > li > .t8-ico { grid-row: 1 / span 2; margin: 2px 0 0 !important; }
.t8-icards--rows > li > :not(.t8-ico) { grid-column: 2; }
/* .t8-steps--detail: vertical track whose steps carry a detail paragraph (t8-steps__d). Added F3. */
.t8-steps--detail .t8-steps__i { padding-bottom: 24px; }
.t8-steps--detail .t8-steps__d { color: var(--text-2, #DCD7CC); line-height: 1.6; }
/* compact flow with 5 or 6 stages: three per row at 701 px and wider (chevrons only within a row). Added F3. */
@media (min-width: 701px) {
  html body :is(#main, #t8-f3c) .t8-flow.t8-flow--compact:has(> li:nth-child(5)):not(#t8-f3a):not(#t8-f3b) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px !important; }
  .t8-flow--compact:has(> li:nth-child(5)) > li:nth-child(3n)::after { display: none; }
}
html body :is(#main, #t8-f3c) .t8-example:not(#t8-f3a) .t8-example__tbl :is(th, td, tr, tbody) { background: transparent !important; box-shadow: none !important; }

/* H3 (Nov 26): .t8-flow--v keeps a stage flow stacked (down chevrons) at every width, for stages with long text. Additive modifier. */
html body :is(#main, #t8-f3c) .t8-flow.t8-flow--v:not(#t8-f3a):not(#t8-f3b) { grid-auto-flow: row; grid-auto-columns: auto; row-gap: 26px !important; column-gap: 0 !important; }
.t8-flow.t8-flow--v > li:not(:last-child)::after { top: auto; bottom: -19px; right: auto; left: 28px; transform: rotate(135deg); }
