/* Asurgo final build: shared components (style guide §3 to §8, LOCKED 2026-10-24). Loads after tokens.css.
   One class family per component, lifted from the built ETHOS FROSTED homepage (home-ethos ccf0940) and the locked
   final expense guide frames (Figma 610:852 / 610:1372), generalised. The sample page /_style/ shows every one.
   No eyebrow labels, no "Section N", no 01 to 03 numbering, no arrows after links, no glow blobs, no dark bands mid-page.
   Orange is never a button, a selection state or an accent word. */

/* ---------- Layout ---------- */
.f-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.f-sec { padding: var(--s7) 0; }
.f-measure { max-width: 760px; }
.f-flow > * + * { margin-top: var(--s3); }
.f-head { display: grid; gap: 12px; max-width: 820px; margin-bottom: 28px; }
.f .f-head h2, .f .f-h2 { font-size: var(--fs-h2); line-height: 1.16; }
.f-head p, .f-lead { font-size: var(--fs-body); line-height: 1.55; color: var(--body-c); }

/* ---------- Buttons: pills. Primary 56 px (64 in the desktop hero); navy on light, white on navy and photos; outline secondary ---------- */
.f-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border: 0; border-radius: var(--r-pill);
  font: 700 18px/1.2 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, box-shadow .15s, color .15s, transform 450ms var(--m-ease); }
.f .f-btn:focus-visible { border-radius: var(--r-pill); }
.f-btn-s { min-height: 48px; padding: 0 20px; font-size: 17px; }
.f-btn-xl { min-height: 64px; }
.f-btn-block { width: 100%; }
.f .f-btn-navy { background: var(--navy); color: var(--white); }
.f .f-btn-navy:hover { background: var(--navy-d); }
.f .f-btn-line { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.f .f-btn-line:hover { background: var(--mist); }
.f .f-btn-white { background: var(--white); color: var(--navy); }
.f .f-btn-white:hover { background: var(--mist); }
.f .f-btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }   /* secondary on navy or a photo */
.f .f-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.f-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Links: navy, underlined, 48 px row; never an arrow after them ---------- */
.f .f-link { display: inline-flex; align-items: center; min-height: var(--tap); font: 600 var(--fs-body)/1.3 var(--body); color: var(--navy); text-decoration: underline; text-underline-offset: .18em; }
.f .f-link:hover { color: var(--navy-d); text-decoration-thickness: 2px; }
.f .f-prose a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.f-links { display: flex; flex-wrap: wrap; gap: 0 32px; }

/* ---------- Cards ---------- */
.f-card { display: flex; flex-direction: column; gap: 12px; padding: var(--s3); border-radius: var(--r-xl); background: var(--white); }
.f-card-line { border: 1px solid var(--line); }
.f-card-shadow { box-shadow: var(--shadow); }
.f .f-card h3 { font-size: 22px; line-height: 1.3; }
.f-card p { color: var(--body-c); }
/* Photo card: photo on top */
.f-pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--white); }
.f-pcard-pic { height: 200px; }
.f-pcard-pic img { width: 100%; height: 100%; object-fit: cover; }
.f-pcard-b { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: var(--s3) var(--s3) var(--s2); }
.f .f-pcard h3 { font-size: 24px; line-height: 1.25; }
.f-pcard-b > p { color: var(--body-c); }
.f-pcard-b > .f-link { align-self: flex-start; margin-top: auto; }
/* Link card: the whole card is one link (Keep reading) */
.f .f-lcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); color: inherit; text-decoration: none; }
.f-lcard-pic { height: 190px; }
.f-lcard-pic img { width: 100%; height: 100%; object-fit: cover; }
.f-lcard-b { display: grid; gap: 8px; padding: var(--s3); }
.f .f-lcard h3 { font-size: 21px; line-height: 1.3; }
.f-lcard p { color: var(--body-c); }
.f .f-lcard:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.f .f-lcard:focus-visible { border-radius: 22px; }
.f-grid { display: grid; gap: var(--s3); }

/* ---------- Chips (status words: green good news, amber caveat, tan neutral) ---------- */
.f-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: var(--r-pill); font: 700 16px/1.3 var(--body); }
.f-chip-g { background: var(--green-bg); color: var(--green); }
.f-chip-a { background: var(--amber-bg); color: var(--amber); }
.f-chip-t { background: var(--tan); color: var(--navy); }

/* ---------- Check rows: green circles, white ticks ---------- */
.f-ck { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green); }
.f-ck svg { display: block; }
.f-checks { display: grid; gap: 8px; }
.f-checks li { display: flex; align-items: center; gap: 10px; font: 600 var(--fs-body)/1.35 var(--body); color: var(--ink); }
/* Bullet lists with check or cross badges (key takeaways, fit cards) */
.f-ticks { display: grid; gap: 14px; }
.f-ticks li { position: relative; padding-left: 38px; line-height: 1.5; color: var(--ink); }
.f-ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--green-bg)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M8 13.5l3.2 3.2L18 9.5' fill='none' stroke='%231F7A4D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat; }
.f-ticks.f-x li::before { background: var(--amber-bg)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M9 9l8 8M17 9l-8 8' fill='none' stroke='%238A4612' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 26px no-repeat; }
.f-ticks .f-link { display: flex; min-height: var(--tap); }

/* ---------- Icon circles (mist) ---------- */
.f-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--mist); }

/* ---------- Photo hero with the frosted panel (the signature) ---------- */
/* <body class="f f-over"> makes the header transparent over it; data-hero on the section, data-hero-cta on its button.
   Navy scrim only behind the header: phone .80 to 64 px, fading to 0 by 150 px; desktop .75 held through 80 px, 0 by 146 px. */
.f-hero { position: relative; margin-top: calc(-1 * var(--hdr-h)); background: var(--navy); color: var(--white); overflow: hidden; }
.f-hero-pic { position: absolute; inset: 0; }
.f-hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.f-hero-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 73, 117, .8) 0, rgba(16, 73, 117, .8) 64px, rgba(16, 73, 117, 0) 150px); }
.f-hero-in { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(calc(100vw * 675 / 390), 820px); padding: var(--hdr-h) 12px 12px; }
.f-hero :focus-visible { outline: var(--ring-on-dark); }
/* Frosted panel: navy 80% + 32 px blur, 1 px white 18% border, radius 24 / 28. Without backdrop-filter: navy 92%. All text white. */
.f-panel { display: flex; flex-direction: column; gap: 9px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-xl); background: rgba(16, 73, 117, .92); color: var(--white); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .f-panel { background: rgba(16, 73, 117, .8); -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); }
}
.f .f-panel h1, .f .f-panel h2, .f .f-panel h3, .f .f-panel p { color: var(--white); }
.f-panel :focus-visible { outline: var(--ring-on-dark); }
.f-hero .f-panel { align-items: center; width: 100%; max-width: 540px; margin: 0 auto; padding: 12px 20px 16px; text-align: center; }
.f .f-hero h1 { font-size: min(var(--fs-h1-panel), calc((100vw - 66px) / 9.8)); line-height: 1.1; text-wrap: wrap; }
.f-hero-sub { font-size: 18px; line-height: 1.5; }
.f-rating { display: flex; align-items: center; gap: 8px; font: 600 17px/1.3 var(--body); }
.f-rating b { font-weight: 700; }
.f-stars { display: block; flex: none; }

/* ---------- Guide hero (calm): breadcrumb, serif H1, dek, byline; answer card and key takeaways above the fold ---------- */
.f .f-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-size: 17px; color: var(--body-c); }
.f-crumbs li { display: inline-flex; align-items: center; }
.f-crumbs li + li::before { content: "\203A"; padding: 0 6px; color: var(--body-c); }
.f .f-crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--body-c); text-decoration: none; }
.f .f-crumbs a:hover { color: var(--navy); text-decoration: underline; }
.f .f-gh1 { font-size: var(--fs-h1-guide); line-height: 1.05; }
.f-dek { font-size: 18px; line-height: 1.5; color: var(--body-c); }
.f-byline { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--body-c); }
.f-byline img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.f .f-byline a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 14px 0; }
.f .f-byline a:hover { text-decoration: underline; }

/* Answer card: white, ink text, no label chip */
.f-answer { padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--white); box-shadow: var(--shadow); }
.f-answer p { font: 600 18px/1.55 var(--head); color: var(--ink); }
/* Key takeaways: white card, green-check bullets, the label in ink */
.f-takeaways { padding: 22px 20px; border-radius: var(--r-l); background: var(--white); box-shadow: var(--shadow); }
.f-takeaways-h { margin-bottom: 12px; font: 700 18px/1.3 var(--head); color: var(--ink); }
.f-takeaways .f-ticks { gap: 10px; }
.f-takeaways .f-ticks li { color: var(--body-c); }

/* ---------- Contents: chips on desktop (48 px); a closed disclosure on phone ---------- */
.f-toc { padding: var(--s4) 0 0; }
.f-toc-chips { display: none; }
.f-toc-m { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--cream-2); }
.f-toc-m > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; cursor: pointer;
  font: 700 18px/1.3 var(--body); color: var(--navy); }
.f-toc-m > summary::-webkit-details-marker { display: none; }
.f-toc-m ol { padding: 0 20px 12px; }
.f .f-toc-m a { display: flex; align-items: center; min-height: var(--tap); border-top: 1px solid var(--line); font: 600 17px/1.35 var(--body); color: var(--navy); text-decoration: none; }
.f .f-toc-m a:hover { text-decoration: underline; }

/* Plus / minus marks drawn in CSS (aria-hidden): plain, and circled */
.f-pm { position: relative; flex: none; width: 24px; height: 24px; }
.f-pm::before, .f-pm::after { content: ""; position: absolute; left: 5px; top: 11px; width: 14px; height: 2.2px; border-radius: 2px; background: var(--navy); }
.f-pm::after { transform: rotate(90deg); }
.f-pmc { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); }
.f-pmc::before, .f-pmc::after { content: ""; position: absolute; left: 10px; top: 15px; width: 12px; height: 2px; border-radius: 2px; background: var(--navy); }
.f-pmc::after { transform: rotate(90deg); }
details[open] > summary .f-pm::after, details[open] > summary .f-pmc::after { display: none; }

/* ---------- Steps: 1, 2, 3 in 36 px navy circles (never 01 / 02 / 03) ---------- */
.f-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy);
  color: var(--white); font: 700 17px/1 var(--head); }
.f-steps { display: grid; gap: var(--s3); counter-reset: f-step; }
.f-steps > li { position: relative; display: grid; gap: 6px; padding-left: 58px; counter-increment: f-step; }
.f-steps > li::before { content: counter(f-step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--white); font: 700 17px/1 var(--head); }
.f .f-steps h3 { font-size: 21px; line-height: 1.3; }
.f-steps p { color: var(--body-c); }
/* Step cards: white cards with a hairline (the claim band) */
.f-stepcards { display: grid; gap: var(--s2); counter-reset: f-step; }
.f-stepcards > li { display: grid; align-content: start; gap: 12px; padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--white); counter-increment: f-step; }
.f-stepcards > li::before { content: counter(f-step); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white); font: 700 17px/1 var(--head); }
.f .f-stepcards h3 { font-size: 20px; line-height: 1.3; }
.f-stepcards p { color: var(--body-c); }

/* ---------- FAQ: native <details>; first open with a mist fill, radius 16; closed rows hairline; circled + / - ---------- */
.f-faq { border-bottom: 1px solid var(--line); padding: 0 20px; }
.f-faq > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--tap); padding: 16px 0; cursor: pointer;
  font: 700 18px/1.4 var(--head); color: var(--ink); }
.f-faq > summary::-webkit-details-marker { display: none; }
.f-faq > summary > span:first-child { text-wrap: balance; }
.f-faq[open] { border-bottom-color: transparent; border-radius: var(--r-m); background: var(--mist); }
.f-faq[open] > summary { padding: 20px 0 10px; }
.f-faq[open] .f-pmc { background: var(--white); }
.f-a { padding-bottom: var(--s3); }
.f-a p { color: var(--body-c); }
.f-a p + p { margin-top: 12px; }
.f .f-a a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; padding: 13px 0; }

/* ---------- Tables: real <table>; header row in ink on mist; cells 17 / 16; source line under it ---------- */
.f-tcard { padding: 24px 0 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.f .f-tcard > h3 { padding: 0 20px 16px; font-size: 21px; line-height: 1.3; }
.f-tscroll { overflow-x: auto; overscroll-behavior-x: contain; }
.f .f-tscroll:focus-visible { outline-offset: -3px; }
.f-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-cell); line-height: 1.4; color: var(--ink); }
.f-table th, .f-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.f-table thead th { background: var(--mist); color: var(--ink); font-weight: 700; border-bottom: 0; }
.f-table tbody th { font-weight: 700; }
.f-table .f-hl > * { background: var(--cream-2); }
/* first column stays put while the table scrolls on phones */
.f-table th:first-child, .f-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); box-shadow: 1px 0 0 var(--line); }
.f-table thead th:first-child { background: var(--mist); }
.f-table .f-hl > :first-child { background: var(--cream-2); }
/* Table and price disclosures: small but readable (Master Chief, 2026-11-05: "way smaller", little room on phones).
   Links keep a 48 px tap height through their vertical padding. */
.f-cap { margin-top: 10px; padding: 0 20px; font-size: 13px; line-height: 1.5; color: var(--body-c); }
.f .f-cap a { color: var(--navy); text-decoration: underline; text-underline-offset: .18em; padding: 16px 0; }
/* the research pages' own inline note rules (14 px, line-height 1, dimmed) lose to these */
.f .f-cap.data-footnote, .f .f-cap.chart-note, .f .f-cap.cap { font-size: 13px; line-height: 1.5; color: var(--body-c); opacity: 1; }
.f .f-cap.data-footnote a, .f .f-cap.cap a { padding: 16px 0; }

/* Plan comparison: one real <table> shown as columns of cards (phone: stacked cards). Labels come from data-l. */
.f-plans { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; border-collapse: separate; color: var(--ink); }
.f-plans thead, .f-plans tbody, .f-plans tr { display: contents; }
.f-plans .f-plans-corner, .f-plans tbody th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
.f-plans thead th, .f-plans td { display: block; text-align: left; }
.f-plans thead th { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 24px 16px; border-radius: var(--r-xl) var(--r-xl) 0 0;
  font: 500 26px/1.2 var(--head); color: var(--ink); }
.f-plans td { padding: 14px 24px; font-size: var(--fs-body); line-height: 1.45; border-top: 1px solid var(--line); }
.f-plans td::before { content: attr(data-l); display: block; margin-bottom: 4px; font: 700 16px/1.3 var(--body); color: var(--ink); }
.f-plans td.f-plans-last { padding-bottom: 24px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.f-plans .f-plans-big { font: 500 24px/1.4 var(--head); }
.f-plans .f-plans-hi { background: var(--navy); color: var(--white); }
.f-plans thead .f-plans-hi { color: var(--white); }
.f-plans td.f-plans-hi { border-top-color: rgba(255, 255, 255, .2); }
.f-plans td.f-plans-hi::before { color: var(--on-navy-2); }
.f-plans .f-plans-lo { background: var(--cream-2); box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line); }
.f-plans thead .f-plans-lo { box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line), inset 0 1px 0 var(--line); }
.f-plans td.f-plans-last.f-plans-lo { box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); }
.f-plans [data-col="1"] { order: 1; } .f-plans [data-col="2"] { order: 2; } .f-plans [data-col="3"] { order: 3; }
.f-plans thead [data-col="2"], .f-plans thead [data-col="3"] { margin-top: 16px; }

/* ---------- Caveat panel (amber only for caveats) ---------- */
.f-caveat { padding: 12px 16px; border-radius: var(--r-s); background: var(--amber-bg); color: var(--amber); font-weight: 500; font-size: 18px; line-height: 1.5; }
/* Caveat callout with a title and a "!" badge */
.f-warn { display: grid; gap: 12px; padding: 24px 26px; border: 1.5px solid #D59A6A; border-radius: var(--r-l); background: var(--amber-bg); }
.f-warn-h { display: flex; align-items: flex-start; gap: 12px; font: 700 21px/1.3 var(--head); color: var(--ink); }
.f-bang { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--amber);
  color: var(--white); font: 700 16px/1 var(--body); }
.f-warn p { color: var(--ink); }
/* Good-news note (green band) */
.f-good { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; border-radius: var(--r-m); background: var(--green-bg); font: 600 18px/1.5 var(--head); color: var(--ink); }
.f-good .f-ck { margin-top: 2px; }

/* ---------- Callout card with a round photo (overlaps a photo on wide screens) ---------- */
.f-callout { display: grid; gap: 10px; padding: 22px 22px 14px; border-radius: var(--r-l); background: var(--white); box-shadow: var(--shadow); }
.f-callout-top { display: flex; align-items: center; gap: 12px; }
.f-avatar { flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; }
.f-avatar img { width: 100%; height: 100%; object-fit: cover; }
.f-callout-h { font: 700 20px/1.3 var(--head); color: var(--ink); }
.f-callout p { color: var(--body-c); }
.f-photo { overflow: hidden; border-radius: var(--r-2xl); }
.f-photo img { width: 100%; height: 100%; object-fit: cover; }
/* A card that sits over the bottom of a photo */
.f-over-photo { position: relative; margin: -56px 12px 0; }

/* Fit cards: good fit (green border) and not the best fit (hairline) */
.f-fit { display: grid; align-content: start; gap: 18px; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--white); }
.f-fit-yes { border: 1.5px solid var(--green); }
.f .f-fit h3 { font-size: 23px; line-height: 1.3; }

/* Call card (rail): title, line, navy Call pill, hours */
.f-callcard { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-l); background: var(--white); box-shadow: var(--shadow); }
.f .f-callcard h3 { font-size: 20px; line-height: 1.3; }
.f-callcard p { color: var(--body-c); }
.f-callcard .f-btn { margin: 4px 0; }

/* Tiles, stat cards, review cards, link groups */
.f-tile { display: flex; align-items: flex-start; gap: 16px; padding: var(--s3); border-radius: var(--r-l); background: var(--white); }
.f-tile > div { display: grid; gap: 6px; }
.f .f-tile h3 { font-size: 20px; line-height: 1.3; }
.f-tile p { color: var(--body-c); }
.f-stat { display: grid; gap: 10px; padding: 28px; border-radius: var(--r-xl); }
.f-stat-n { font: 700 48px/1.05 var(--head); letter-spacing: -.02em; color: var(--ink); }
.f-stat-l { font: 600 18px/1.4 var(--body); color: var(--ink); }
.f-src { font-size: 16px; line-height: 1.5; color: var(--body-c); }
.f-quote { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.f-quote blockquote p { font: 500 18px/1.55 var(--head); color: var(--ink); }
.f-quote figcaption { display: grid; gap: 2px; margin-top: auto; line-height: 1.5; }
.f-quote figcaption b { font-weight: 700; font-size: 17px; color: var(--ink); }
.f-quote figcaption span { font-size: 16px; color: var(--body-c); }
.f-lgroup { padding: 0 16px 0 24px; border-radius: var(--r-m); background: var(--white); }
.f-lgroup > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; cursor: pointer;
  font: 700 19px/1.3 var(--head); color: var(--ink); }
.f-lgroup > summary::-webkit-details-marker { display: none; }
.f-lgroup ul { padding-bottom: 16px; }
.f .f-lgroup a { display: flex; align-items: center; min-height: var(--tap); font: 600 17px/1.3 var(--body); color: var(--navy); text-decoration: underline; text-underline-offset: .18em; }
/* A plain disclosure of links (All ... guides) */
.f-more { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); }
.f-more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 24px; cursor: pointer;
  font: 700 18px/1.3 var(--body); color: var(--navy); }
.f-more > summary::-webkit-details-marker { display: none; }
.f-more ul { display: grid; padding: 0 24px 16px; }
.f .f-more a { display: flex; align-items: center; min-height: var(--tap); border-top: 1px solid var(--line); font: 600 17px/1.35 var(--body); color: var(--navy); text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Estimator: solid navy card; white selection, radio dot and slider; result in a white card ---------- */
.f-est { display: grid; gap: var(--s3); padding: 28px 24px; border-radius: var(--r-2xl); background: var(--navy); color: var(--white); }
.f .f-est h3 { font: 500 26px/1.2 var(--serif); letter-spacing: -.01em; color: var(--white); }
.f-est :focus-visible { outline: var(--ring-on-dark); }
.f-est fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.f-est legend, .f-est-l { margin-bottom: 12px; padding: 0; font: 700 17px/1.3 var(--body); color: var(--white); }
.f-opts { display: grid; gap: 12px; }
.f-opt { position: relative; }
.f-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-opt label { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 14px 18px 14px 54px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-m);
  background: rgba(255, 255, 255, .06); color: var(--white); cursor: pointer; line-height: 1.4; }
.f-opt label::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--white); border-radius: 50%; }
.f-opt .t { font-weight: 700; }
.f-opt input:checked + label { border: 2px solid var(--white); background: rgba(255, 255, 255, .14); padding: 13px 17px 13px 53px; }
.f-opt input:checked + label::before { background: var(--white); box-shadow: inset 0 0 0 3px var(--navy); }
.f-opt input:focus-visible + label { outline: var(--ring-on-dark); outline-offset: 2px; }
.f-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; --p: 30%; }
.f-range::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--white) var(--p), rgba(255, 255, 255, .22) var(--p)); }
.f-range::-moz-range-track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.f-range::-moz-range-progress { height: 12px; border-radius: 999px; background: var(--white); }
.f-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -8px; border: 3px solid var(--navy); border-radius: 50%; background: var(--white); }
.f-range::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid var(--navy); border-radius: 50%; background: var(--white); }
.f-range:focus-visible { outline: var(--ring-on-dark); outline-offset: 2px; border-radius: 8px; }
.f-ends { display: flex; justify-content: space-between; font-size: 17px; color: var(--white); }
.f-ends output { font-weight: 700; }
.f-result { display: grid; gap: 8px; padding: 24px; border-radius: var(--r-l); background: var(--white); color: var(--ink); }
.f-result :focus-visible { outline: var(--ring); }
.f-result-l { font: 700 17px/1.3 var(--body); color: var(--ink); }
.f-total { font: 700 52px/1.05 var(--head); letter-spacing: -.02em; color: var(--navy); }
.f-split { font-size: 17px; color: var(--body-c); }
.f .f-result .f-btn { margin-top: 8px; }
.f .f-callrow { display: flex; align-items: center; justify-content: center; min-height: var(--tap); font: 700 17px/1.3 var(--body); color: var(--navy); text-decoration: none; }
.f .f-callrow:hover { text-decoration: underline; }
.f-est-cap { font-size: 17px; line-height: 1.55; color: var(--on-navy-2); }

/* ---------- Close CTA: full-bleed photo + frosted panel (H2, line, See my price, Call, hours) ---------- */
.f-close { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: 12px; overflow: hidden; border-radius: var(--r-2xl); background: var(--navy); }
.f-close-pic { position: absolute; inset: 0; }
.f-close-pic img { width: 100%; height: 100%; object-fit: cover; }
.f-close .f-panel { position: relative; gap: 14px; padding: 24px 20px; }
.f .f-close h2 { font-size: 32px; line-height: 1.12; }
.f-close p { font-size: 18px; line-height: 1.55; }
.f-close .f-btns { display: grid; gap: 12px; }
.f-hours-l { font-size: 17px; color: var(--white); }

/* ---------- Sources and compliance ---------- */
/* Sources in small type, as the table disclosures (.f-cap): 13 px, line-height 1.5, body colour; the heading at the
   "Sources and notes" panel heading's 17 px; links keep a 48 px tap height through padding (Wave 23, Run 111) */
.f-sources { display: grid; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--body-c); }
.f .f-sources-h { font: 700 17px/1.3 var(--head); letter-spacing: 0; color: var(--ink); }
.f .f-sources a { color: var(--navy); text-decoration: underline; text-underline-offset: .18em; padding: 15px 0; }
.f .f-sources ol { display: grid; gap: 8px; padding-left: 1.4em; list-style: decimal; }
.f .f-sources :is(li, p:not(.f-sources-h)) { font-size: 13px; line-height: 1.5; color: var(--body-c); }
.f-sources li::marker { color: var(--body-c); }
.f-compliance { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 17px; line-height: 1.6; color: var(--body-c); }

/* ---------- Tablet (768+) ---------- */
@media (min-width: 768px) {
  .f-in { padding: 0 32px; }
  .f-grid-2 { grid-template-columns: 1fr 1fr; }
  .f-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-pcard-pic { height: 240px; }
  .f-close .f-btns { display: flex; flex-wrap: wrap; }
}

/* ---------- Desktop (1024+) ---------- */
@media (min-width: 1024px) {
  .f-in { padding: 0 24px; }
  .f-sec { padding: var(--s12) 0; }
  .f-head { margin-bottom: 40px; }
  .f-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f-btn-hero { min-height: 64px; }

  .f-hero-pic::after { background: linear-gradient(180deg, rgba(16, 73, 117, .75) 0, rgba(16, 73, 117, .75) 80px, rgba(16, 73, 117, 0) 146px); }
  .f-hero-in { justify-content: flex-start; align-items: flex-start; min-height: 728px; max-width: var(--wrap); margin: 0 auto; padding: 176px 24px 120px; }
  .f-hero .f-panel { width: 540px; max-width: none; margin: 0; gap: 18px; padding: 40px 44px; border-radius: var(--r-2xl); align-items: flex-start; text-align: left; }
  .f .f-hero h1 { font-size: var(--fs-h1-panel); line-height: 1.05; }
  .f-hero-sub { font-size: 20px; }

  .f-caveat { font-size: 17px; }
  .f-answer { padding: 28px 28px 30px; }
  .f-answer p { font-size: 19px; }
  .f-takeaways { padding: 26px 24px 24px; }
  .f-takeaways .f-ticks li { font-size: 17px; }

  .f-toc { padding: var(--s6) 0 0; }
  .f-toc-m { display: none; }
  .f-toc-chips { display: block; }
  .f-toc-label { margin-bottom: 14px; font: 700 17px/1.3 var(--body); color: var(--ink); }
  .f-toc-chips ol { display: flex; flex-wrap: wrap; gap: 10px; }
  .f .f-toc-chips a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--cream-2);
    font: 600 16px/1.3 var(--body); color: var(--navy); text-decoration: none; }
  .f .f-toc-chips a:hover { background: var(--mist); }

  .f-stepcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

  .f .f-tcard > h3 { padding: 0 36px 20px; font-size: 24px; }
  .f-tscroll { padding: 0 36px; }
  .f-table { min-width: 0; }
  .f-table thead th:first-child { border-radius: 12px 0 0 12px; }
  .f-table thead th:last-child { border-radius: 0 12px 12px 0; }
  .f-table th, .f-table td { padding: 16px; }
  .f-cap { padding: 0 36px; }

  .f-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
  .f-plans [data-col] { order: 0; }
  .f-plans thead [data-col="2"], .f-plans thead [data-col="3"] { margin-top: 0; }
  .f-plans thead th { padding: 28px 28px 16px; font-size: 28px; }
  .f-plans td { padding: 14px 28px; }
  .f-plans td.f-plans-last { padding-bottom: 28px; }

  .f-over-photo { margin: 0; }
  .f-est { padding: 44px 48px 40px; }
  .f .f-est h3 { font-size: 34px; }
  .f-est-row { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
  .f-result { padding: 32px 28px; }
  .f-total { font-size: 60px; }

  .f-close { justify-content: center; min-height: 532px; padding: 48px; }
  .f-close .f-panel { width: 560px; padding: 36px 44px 40px; border-radius: var(--r-2xl); }
  .f .f-close h2 { font-size: 44px; }

  .f-stat { padding: 36px; }
  .f-stat-n { font-size: 60px; }
  .f-lgroup { padding: 12px 24px 16px; border-radius: var(--r-l); }
}

/* ---------- Motion (style guide §7; assets/js/final/motion.js) ----------
   Wave 40 (Master Chief 2026-11-12, M2): one plain quick fade. The first screen is never animated. Below it, a block that starts
   off screen ([data-mr], set by motion.js) fades in over 250 ms as soon as any part of it is on screen: opacity only, no blur,
   no scale, no slide, no word-by-word headline. JavaScript off and Reduce Motion show everything at once. */
:root { --m-ease: cubic-bezier(.16, 1, .3, 1); }
html.m-on [data-mr]:not(.in) { opacity: 0; }
html.m-on [data-mr].in:not(.done) { transition: opacity 250ms ease-out; }
/* Opening an answer or a group */
html.m-on :is(.f-faq, .f-lgroup, .f-more, .f-toc-m)[open] > :not(summary) { animation: m-open 450ms var(--m-ease); }
@keyframes m-open { from { opacity: 0; transform: translateY(-8px); } }
/* Hover and press (colour at 150 ms; the lift on a 450 ms ease) */
.f .f-btn:active { transform: scale(.97); transition-duration: .15s, .15s, .15s, 120ms; }
@media (hover: hover) {
  .f .f-btn:hover { transform: translateY(-2px); }
  .f .f-btn:active { transform: translateY(-2px) scale(.97); }
  .f :is(.f-tile, .f-pcard, .f-stat, .f-quote, .f-lcard, .f-stepcards > li) { transition: transform 450ms var(--m-ease), box-shadow 450ms var(--m-ease); }
  .f :is(.f-tile, .f-pcard, .f-stat, .f-quote, .f-lcard, .f-stepcards > li):hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16, 73, 117, .10); }
}
@media (prefers-reduced-motion: reduce) {
  .f *, .f *::before, .f *::after { transition: none !important; animation: none !important; }
  .f .f-btn:hover, .f .f-btn:active, .f :is(.f-tile, .f-pcard, .f-stat, .f-quote, .f-lcard, .f-stepcards > li):hover { transform: none; }
}
/* The close card below 1024 (Wave 23, Run 109): the photo on top at 4:3 (its phone crop frames every face with headroom),
   the panel below it on navy, never over a face. 1024 and up is unchanged. Beats the guide, cost, research and tall variants. */
@media (max-width: 1023px) {
  .f .f-close, .f .gd-close .f-close, .f .gd-close-tall .f-close { justify-content: flex-start; min-height: 0; padding: 0; }
  .f .f-close .f-close-pic { position: relative; inset: auto; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
  .f .f-close .f-close-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .f .f-close .f-panel { gap: 14px; padding: 24px 20px 28px; border: 0; border-radius: 0; background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- The fitted phone table (Wave 24, Master Chief 2026-11-06: Figma Option B, frames 660:131 and 662:58) ----------
   One real <table> on every screen; phones only restyle it. Below 768 the table fits the screen width: fixed layout, the
   row-name column about half the width and wrapping, values right-aligned in tabular figures, the table itself is the white
   card (16 px radius, line border, mist header row) with its notes under it. A long row or column name shows a short label
   from data-short through ::before (alt text "", so screen readers read the full name once); the full name stays the cell's
   text in .f-tfull, visually hidden on phones, never display:none. The key note (.f-table-key) spells each short label out,
   on phones only. Opt-in: body.f-tfit (every rebuilt page). Covers .f-table and, through .f-tf, the old templates' data tables
   (their desktop look is their own). Tables of 6+ columns (.f-twide) keep a pinned first column and scroll (Option D, below).
   768 and up are unchanged. The :root prefix lets these phone rules beat each template's own table rules. */
.f-table-key { display: none; }

/* ---------- Option D, the pinned table (Wave 24 Run 115; Figma frame 660:200): tables of 6+ columns, the few 5-column tables too
   dense for 360 (.f-twide), and the frozen rate charts' wide tables (CSS only). Below 768 the table keeps the fitted card look,
   its narrow first column is pinned, the rest scrolls sideways with a fade at the right edge and a "Swipe for more" line (hidden
   from screen readers), both shown while the table overflows (header.js marks .has-more; .is-end at the end) and a frozen chart's
   scroll box gets a keyboard stop from header.js. The frozen charts'
   tables of up to 5 columns fit the screen like the fitted table. 768 and up are unchanged. */
@media (max-width: 767px) {
  :root .f.f-tfit .f-tcard:has(table.f-twide) { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  :root .f.f-tfit .f-tcard:has(table.f-twide) > h3 { padding: 0 0 12px; }
  :root .f.f-tfit .f-tcard:has(table.f-twide) :is(.f-cap, .c-cap) { padding: 0; }
  :root .f.f-tfit :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap):has(> table.f-twide), :root .f:not(.f-tfit) .table-scroll:has(> table.cost-table) { margin-inline: 0; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--r-m);
    background: var(--white); box-shadow: none; }
  :root .f :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap).has-more:not(.is-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  :root .f.f-tfit :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap):has(> table.f-twide).has-more::after, :root .f:not(.f-tfit) .table-scroll:has(> table.cost-table tr > :nth-child(6)).has-more::after { content: "Swipe for more \2192"; content: "Swipe for more \2192" / ""; position: sticky; left: 0; display: block; width: max-content;
    padding: 10px 14px 12px; font: 600 14px/18px var(--body); color: var(--navy); }
  :root .f.f-tfit :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap):has(> table.f-twide) + :root .f.f-tfit :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap):has(> table.f-twide) { margin-top: 16px; }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) { display: table; table-layout: auto; width: max-content; min-width: 100%; max-width: none; margin: 0; border: 0; border-collapse: separate; border-spacing: 0;
    background: var(--white); font: 400 15px/20px var(--body); color: var(--ink); }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) :is(thead, tbody) { display: revert; }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) :is(th, td) { display: table-cell; position: static; width: auto; min-width: 88px; max-width: 168px; padding: 12px; white-space: normal; overflow-wrap: break-word;
    vertical-align: middle; text-align: left; font: inherit; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: var(--white); }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) :is(th, td)::before { content: none; }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) thead :is(th, td) { font: 700 14px/18px var(--body); background: var(--mist); }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) tbody th, :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) tbody td:first-child { font-weight: 600; }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) tbody tr:last-child > * { border-bottom: 0; }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) tr > :first-child { position: sticky; left: 0; z-index: 1; width: 104px; min-width: 104px; max-width: none; overflow-wrap: normal; background: var(--off); box-shadow: 1px 0 0 var(--line); }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) thead tr > :first-child { background: var(--mist); }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) td { font-variant-numeric: tabular-nums; }
  :is(:root .f.f-tfit table.f-twide, :root .f:not(.f-tfit) .table-scroll > table.cost-table:has(tr > :nth-child(6))) .sr { position: absolute; }
  /* the frozen charts' tables of up to 5 columns: the fitted table, CSS only (first column narrow, values right-aligned) */
  :root .f:not(.f-tfit) .table-scroll:has(> table.cost-table):not(:has(> table.cost-table tr > :nth-child(6))) { -webkit-mask-image: none; mask-image: none; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) { display: table; table-layout: auto; width: 100%; min-width: 0; margin: 0; border: 0; border-collapse: collapse; background: var(--white); font: 400 15px/20px var(--body); color: var(--ink); }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) :is(thead, tbody) { display: revert; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) :is(th, td) { display: table-cell; position: static; width: auto; min-width: 0; padding: 12px 8px; white-space: normal; overflow-wrap: break-word; vertical-align: middle;
    text-align: right; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: transparent; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) td { overflow-wrap: normal; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) :is(th, td)::before { content: none; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) tr > :first-child { padding-left: 14px; text-align: left; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) tr > :last-child { padding-right: 14px; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) thead :is(th, td) { font: 700 14px/18px var(--body); background: var(--mist); }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) tbody th, :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) tbody td:first-child { font-weight: 600; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) tbody tr:last-child > * { border-bottom: 0; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))) tr:first-child > :first-child { width: 40%; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))):where(:has(tr:first-child > :nth-child(3):last-child)) tr:first-child > :first-child { width: 34%; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))):where(:has(tr:first-child > :nth-child(4):last-child)) tr:first-child > :first-child { width: 25%; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))):where(:has(tr:first-child > :nth-child(5):last-child)) tr:first-child > :first-child { width: 17%; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))):where(:has(tr:first-child > :nth-child(5))) thead :is(th, td) { font-size: 13px; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))):where(:has(tr:first-child > :nth-child(5))) :is(th, td) { padding-inline: 4px; font-size: 14px; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))):where(:has(tr:first-child > :nth-child(5))) thead :is(th, td) { font-size: 13px; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))):where(:has(tr:first-child > :nth-child(5))) tr > :first-child { padding-left: 12px; }
  :root .f:not(.f-tfit) .table-scroll > table.cost-table:not(:has(tr > :nth-child(6))):where(:has(tr:first-child > :nth-child(5))) tr > :last-child { padding-right: 10px; }
}
@media (max-width: 767px) {
  :root .f.f-tfit .f-tcard:has(:is(.f-table, .f-tf):not(.f-twide)) { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  :root .f.f-tfit .f-tcard:has(:is(.f-table, .f-tf):not(.f-twide)) > h3 { padding: 0 0 12px; }
  :root .f.f-tfit .f-tcard:has(:is(.f-table, .f-tf):not(.f-twide)) :is(.f-cap, .c-cap) { padding: 0; }
  :root .f.f-tfit :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap):has(> :is(.f-table, .f-tf):not(.f-twide)) { margin-inline: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); box-shadow: none; }
  :root .f.f-tfit :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap):has(> :is(.f-table, .f-tf):not(.f-twide)) + :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap) { margin-top: 16px; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) { display: table; table-layout: fixed; width: 100%; min-width: 0; max-width: none; border: 0; border-collapse: collapse; background: var(--white);
    font: 400 15px/20px var(--body); color: var(--ink); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) :is(thead, tbody) { display: revert; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) :is(th, td) { display: table-cell; position: static; width: auto; min-width: 0; max-width: none; padding: 12px 14px; white-space: normal; overflow-wrap: normal;
    vertical-align: middle; text-align: left; font: inherit; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: transparent; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) :is(th, td)::before { content: none; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) th { overflow-wrap: break-word; }
  :root .f.f-tfit .gd-spec:not(.f-twide) td { overflow-wrap: anywhere; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) thead th { padding-block: 12px; font: 700 14px/18px var(--body); color: var(--ink); background: var(--mist); border-radius: 0; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) tbody th { font-weight: 600; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) tbody tr:last-child > * { border-bottom: 0; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) .f-hl > * { background: var(--cream-2); }
  /* the row-name column: 2 columns 40 / 60, 3 columns 50 / 25 / 25, 4 columns 34 / 22, 5 columns 28 / 18. A text table sets its
     own phone widths in --c1 to --c5 (style attribute; chosen so the table is shortest with nothing overflowing at 360). Value cells
     are padded 8 px (6 px at 5 columns), 14 px at the card edges */
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) tr:first-child > :first-child { width: var(--c1, 40%); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide):where(:has(tr:first-child > :nth-child(3):last-child)) tr:first-child > :first-child { width: var(--c1, 50%); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide):where(:has(tr:first-child > :nth-child(4):last-child)) tr:first-child > :first-child { width: var(--c1, 34%); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide):where(:has(tr:first-child > :nth-child(5):last-child)) tr:first-child > :first-child { width: var(--c1, 28%); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) tr:first-child > :nth-child(2) { width: var(--c2, auto); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) tr:first-child > :nth-child(3) { width: var(--c3, auto); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) tr:first-child > :nth-child(4) { width: var(--c4, auto); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) tr:first-child > :nth-child(5) { width: var(--c5, auto); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide):where(:has(tr:first-child > :nth-child(3))) :is(th, td):not(:first-child) { padding-inline: 8px; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) :is(th, td):last-child:where(:not(:first-child)) { padding-right: 14px; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide):where(:has(tr:first-child > :nth-child(5))) :is(th, td):not(:first-child) { padding-inline: 6px; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide):where(:has(tr:first-child > :nth-child(5))) :is(th, td):last-child { padding-right: 12px; }
  /* numbers: right-aligned and tabular, never broken inside a number (f-tnum: every value column; f-tn-2 to f-tn-5: that
     column only); an age grid's narrow age column (f-tage), its header 13 / 18 at 5 columns */
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tnum :is(td, thead th:not(:first-child)),
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tn-2 :is(td, th):nth-child(2), :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tn-3 :is(td, th):nth-child(3),
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tn-4 :is(td, th):nth-child(4), :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tn-5 :is(td, th):nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide):is(.f-tnum, .f-tn-2, .f-tn-3, .f-tn-4, .f-tn-5) td { overflow-wrap: normal; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tage tr:first-child > :first-child { width: var(--c1, 58px); }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tage thead th:first-child { overflow-wrap: normal; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tage:has(tr:first-child > :nth-child(5)) thead th { font-size: 13px; }
  /* a dense text table (4 or 5 columns of words): 14 / 19 type, value cells padded 6 px, 10 px at the card edge (opt-in f-tsm) */
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tsm :is(th, td) { font-size: 14px; line-height: 19px; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tsm :is(th, td):not(:first-child) { padding-inline: 6px; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-tsm :is(th, td):last-child:not(:first-child) { padding-right: 10px; }
  /* a table whose long words cannot fit their columns at 360 hyphenates them (opt-in f-thy; where the browser has no hyphenation they break at the edge) */
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide).f-thy :is(th, td) { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
  /* short labels */
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) [data-short] { position: relative; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) [data-short]::before { content: attr(data-short); content: attr(data-short) / ""; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) [data-short] > .f-tfull { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :root .f.f-tfit .f-table-key { display: block; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-s); background: var(--mist); font-size: 13px; line-height: 1.5; color: var(--body-c); }
  :root .f.f-tfit .f-table-key + :is(.f-cap, .c-cap) { margin-top: 12px; }
  /* a key inside a tab panel (it hides with its tab) is the card's footer strip */
  :root .f.f-tfit .f-tscroll > .f-table-key { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); border-radius: 0; }
  /* a header row that is only there for the phone (at-a-glance tables: "Fact", "Detail"); visually hidden from 768 */
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) thead.f-thm { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}
/* Cells Wave 24 made real headers are drawn exactly as the cells they replaced; below 768 the fitted rules restyle them.
   An empty corner cell (th.f-tcorner, its label hidden), on phones part of the mist header row: */
@media (min-width: 768px) {
  .f-table thead th.f-tcorner { background: var(--white); border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 400; }
  .f .gd-spec thead th.f-tcorner { position: sticky; box-shadow: 1px 0 0 var(--line); }
  .f .gd-tl thead th.f-tcorner { padding: 1px; color: var(--body-c); font-weight: 400; text-align: start; }
  /* a first-column <td> made a row header (th.f-trh): the old cell's weight, and on the old templates its body type and row shading */
  .f :is(.f-table, .f-tf) tbody th.f-trh { font-weight: 400; }
  .f :is(.cost-table, .compare-table).f-tf tbody th.f-trh { font-weight: 700; line-height: 1.4; white-space: normal; }
  .f .cost-table.f-tf tbody th.f-trh { font-size: 16px; }
  .f .compare-table.f-tf tbody th.f-trh { font-size: 15px; font-family: inherit; }
  .f :is(.cost-table, .compare-table).f-tf tbody tr:nth-child(even) th.f-trh { background: var(--color-tan); }
  body.rs .report-table tbody th.f-trh { font-family: var(--body); font-weight: 600; letter-spacing: normal; text-transform: none; }
  body.rs .report-table tbody th.f-trh:first-child { width: 60px; }
}
/* a caption Wave 24 added (from the visible heading): visually hidden but kept in flow, so the table lays out exactly as without it
   (Chrome shifts a table's rows when its caption is absolutely positioned) */
.f table > caption.f-tcap { position: static; width: 1px; height: 1px; margin: 0 0 -1px; padding: 0; border: 0; overflow: hidden; clip: auto; clip-path: inset(50%); white-space: nowrap; }
.f :is(.f-table, .f-tf) thead.f-thm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Wave 24: a link inside a table cell is at least 24 px tall (inline padding adds tap area without moving any text);
   templates that already pad their table links more keep theirs */
:where(.f) :where(table) a { padding-block: 3px; }

/* ---------- Wave 40 (Master Chief 2026-11-12, M1 and the UX audit): phone tables ----------
   Below 768, every table: cell text wraps at spaces only, never inside a word; column headers and cells are 16 px (the notes,
   keys, sources and disclosures under a table keep their size). Columns are as wide as their longest word (automatic layout),
   so a table that then doesn't fit scrolls sideways inside its own box: header.js marks the box .has-more while it overflows,
   which pins the first column, fades the right edge and shows the "Swipe for more" line. No page scrolls sideways.
   No table's content changes. 768 and up are unchanged. */
@media (max-width: 767px) {
  :root body table :is(th, td), :root body table :is(th, td) :not(.f-tfull) { overflow-wrap: normal !important; word-break: normal !important; -webkit-hyphens: manual !important; hyphens: manual !important; }
  :root body table :is(th, td) { font-size: 16px !important; line-height: 22px !important; }
  :root body table :is(th, td) :is(small, span, strong, em, b, a, q, abbr, sup):not(.f-tfull) { font-size: inherit; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) { table-layout: auto; border-collapse: separate; border-spacing: 0; }
  :root body :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap):has(> table) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  :root body :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap).has-more > :is(table, figure > table) tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--white, #fff); box-shadow: 1px 0 0 var(--line); }
  :root body :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap).has-more > :is(table, figure > table) thead tr > :first-child { background: var(--mist); }
  :root body :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap).has-more > :is(table, figure > table) .f-hl > :first-child { background: var(--cream-2); }
  :root body :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap).has-more:not(.is-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  :root body :is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap).has-more::after { content: "Swipe for more \2192"; content: "Swipe for more \2192" / ""; position: sticky; left: 0; display: block; width: max-content;
    padding: 10px 14px 12px; font: 600 14px/18px var(--body); color: var(--navy); }
}
@media (max-width: 767px) {
  /* a grid or flex box that holds a table's scroll box may shrink to the screen, so the scroll box (not the page) scrolls */
  :root body :is(div, section, article, aside, details, li, figure):has(:is(.f-tscroll, .table-scroll, .table-wrap, .compare-wrap, .cost-table-wrap, .data-table-wrap, .report-table-wrap) > table) { min-width: 0; }
  :root body table .f-nb { white-space: nowrap; }
  :root .f.f-tfit :is(.f-table, .f-tf):not(.f-twide) [data-short][style*="--f-short"]::before { content: var(--f-short); content: var(--f-short) / ""; }
}
/* Wave 40: the phone "Contents" pill steps aside (header.js marks .is-away) while a table or a heading's text is under it */
.f :is(.gd-pill, .c-pill) { transition: opacity .15s; }
.f :is(.gd-pill, .c-pill).is-away:not(:focus-visible) { opacity: 0; pointer-events: none; }
/* Wave 42 (V9): on phones a two-column fact table marked .f-tstack shows each label above its detail, full width */
@media (max-width: 767px) {
  :root .f.f-tfit .f-table.f-tstack, :root .f.f-tfit .f-table.f-tstack :is(tbody, tr, th, td) { display: block; width: auto !important; }
  :root .f.f-tfit .f-table.f-tstack:not(.f-twide) thead.f-thm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :root .f.f-tfit .f-table.f-tstack tbody th { padding: 10px 0 2px; border-bottom: 0; }
  :root .f.f-tfit .f-table.f-tstack tbody td { padding: 0 0 10px; }
}
