/* ── src/styles/moneyflow-tokens.css ── */
/* Moneyflow design tokens — :root variables only. Element/utility rules omitted to avoid clashing with app-wide Tailwind classes. */
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  /* Base */
  --color-black:        #171717;
  --color-white:        #FFFFFF;

  /* Primary / Brand (Green) */
  /* Derived from --primary so white-label reaches the brand tint too
     (decisions.md, item 22). 10% of MoneyFlow's green over white is #EBF9EF. */
  --color-primary-50:   color-mix(in srgb, hsl(var(--primary)) 10%, white);
  --color-primary-100:  #C2EECE;
  --color-primary-300:  #7CD994;
  --color-primary-500:  hsl(var(--primary));   /* Brand green — single source: index.css --primary */
  --color-primary-600:  #2EA84F;   /* hover */

  /* MoneyFlow's green ramp, for green that MEANS something — success, income,
     done. The same values as the primary ramp above, which a client area in an
     organisation's colour repaints; these it never does (index.css --mf-green,
     owner's decision, 21/10/2026). The success-* Tailwind keys read them. */
  --color-mf-green-50:  color-mix(in srgb, hsl(var(--mf-green)) 10%, white);
  --color-mf-green-100: #C2EECE;
  --color-mf-green-300: #7CD994;
  --color-mf-green-500: hsl(var(--mf-green));
  --color-mf-green-600: #2EA84F;

  /* Secondary / Complementary (Purple-Navy) */
  --color-secondary-100: #C0BDC6;
  --color-secondary-300: #767184;
  --color-secondary-500: #332B48;  /* dark nav, headings */

  /* Neutral (Monochrome) */
  --color-neutral-bg:   #F9F9F9;
  --color-neutral-50:   #F3F3F3;   /* widget outer, dividers */
  --color-neutral-100:  #DBDBDB;   /* borders, strokes */
  --color-neutral-300:  #B1B1B1;   /* placeholder text */
  --color-neutral-500:  #8A8A8A;   /* secondary text */
  --color-neutral-700:  #626262;   /* body text secondary */
  --color-neutral-900:  #3A3A3A;   /* near-black text */

  /* Semantic */
  --color-success:        #3BC760;
  --color-success-bg:     #EBF9EF;
  --color-success-mid:    #C2EECE;
  /* Deep green — text on white, success-bg and success-mid: 6.31:1, 5.81:1 and
     4.93:1. --color-success (#3BC760) is 2.20:1 on white. The DS green mixed in
     oklab with 35% black (decisions.md, 2026-09-28). */
  --color-success-strong: #1D6E32;
  --color-warning:        #EA9912;
  --color-warning-bg:     #FDF5E7;
  --color-warning-mid:    #F8DFBE;
  /* Deep amber — text on white, warning-bg and warning-mid: 5.95:1, 5.49:1 and
     4.62:1. The export's #A66A0A read 4.48:1, 4.14:1 and 3.48:1 there. The DS
     amber mixed in oklab with 32% black (decisions.md, 2026-09-27). */
  --color-warning-strong: #8B5906;
  --color-danger:         hsl(var(--destructive)); /* single source: index.css --destructive */
  --color-danger-bg:      #FBEEE9;
  --color-danger-mid:     #F5C4B5;
  --color-danger-strong:  #B63A19;   /* deep red — text on white and on danger-bg, where --color-danger is 4.3:1 and 3.8:1 */
  --color-info:           #1486DF;
  --color-info-bg:        #EEF6FD;
  --color-info-mid:       #C2DFF5;
  --color-info-strong:    #1256A0;   /* deep blue — text on info-bg, where --color-info is only 3.5:1 */

  /* Role / persona palette — used for member cards, role chips, multi-actor charts.
     Every role has bg / fg / dot triplet. Use as a unit — don't mix-and-match. */
  --role-self-bg:       #EBF9EF;
  --role-self-fg:       #2EA84F;
  --role-self-dot:      #3BC760;

  --role-husband-bg:    #EEF6FD;
  --role-husband-fg:    #1486DF;
  --role-husband-dot:   #1486DF;

  --role-wife-bg:       #FBEEE9;
  --role-wife-fg:       #D84720;
  --role-wife-dot:      #D84720;

  --role-son-bg:        #FDF5E7;
  --role-son-fg:        #A66A0A;
  --role-son-dot:       #EA9912;

  --role-daughter-bg:   #F4ECFD;
  --role-daughter-fg:   #6B3FA8;
  --role-daughter-dot:  #8E5BD9;

  --role-other-bg:      #F3F3F3;
  --role-other-fg:      #626262;
  --role-other-dot:     #8A8A8A;

  /* A rating star, filled: one gold for every star (2026-10-08) */
  --rating:             #F5B301;

  /* Text roles (design/tokens.css, semantic.css). They live beside the colours
     they alias so the .light block can re-declare both together. */
  --text-strong:      var(--color-black);        /* headings and figures */
  --text-body:        var(--color-neutral-900);  /* copy */
  --text-muted:       var(--color-neutral-700);  /* secondary copy, every caption, label and hint */
  --text-subtle:      var(--color-neutral-500);  /* only a quiet sub-line beside larger text */
  --text-placeholder: var(--color-neutral-300);  /* placeholders and the — for a missing value */
  --text-on-brand:    #FFFFFF;                   /* ink on a saturated fill; stays white in dark */

  /* Surface */
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F3F3F3;
  --color-surface-3:      #F9F9F9;
  --color-surface-faint:  #FAFAFA;   /* widget header strip, section header bg */
  --color-surface-tint:   #F5F5F5;   /* row icon backgrounds, segmented active */
  --color-border-soft:    #E5E5E5;   /* mid-strength dividers, card menus, calendar pill borders */
  --color-fill-empty:     #EEEEEE;   /* unfilled progress segments (BarProgress) */

  /* Chart category palette — fixed mapping; never improvise */
  --chart-1: #332B48;  /* דיור / שכ"ד */
  --chart-2: #3BC760;  /* הכנסות / חיסכון / קטגוריית-הצלחה בגרפים */
  --chart-3: #EA9912;  /* חשבונות / אשראי / דלק */
  --chart-4: #3B82F6;  /* משכורת / חשבון אישי */
  --chart-5: #A8C8F0;  /* מזומן / כספומט */
  --chart-6: #7CD994;  /* מסעדות / מזון */
  --chart-7: #EA4C89;  /* בידור / Dribbble */
  --chart-8: #F8DFB6;  /* אחר / החזרים */

  /* נקודה לכל תמהיל בהשוואה (M16 · Q11 ב'): הגוונים העמומים של הלוח CMP_work, לפי מקום התמהיל בתיק */
  --mix-dot-1: #332B48;
  --mix-dot-2: #6E8FB5;
  --mix-dot-3: #B9A47A;
  --mix-dot-4: #5E9E7A;

  /* Chart status series and geometry (design/tokens.css, charts.css). The
     series colour comes from the category, never from the loop index. */
  --chart-positive: #4ACF8E;  /* income, gain, above plan */
  --chart-negative: #D84720;  /* expense, loss, below plan */
  --chart-fixed:    #EA9912;  /* fixed / committed outgoings */
  --chart-neutral:  #64748B;  /* unclassified, "other" */
  /* Vivid categorical palette, for a chart with no fixed category taxonomy.
     Use --chart-1…8 whenever the same category recurs across screens. */
  --chart-cat-1: #9B5CFF;
  --chart-cat-2: #0EA5E9;
  --chart-cat-3: #FF7E33;
  --chart-cat-4: #FF1466;
  --chart-cat-5: #FFAE00;
  --chart-cat-6: #00E1B5;
  --chart-cat-7: #7D30E3;
  --chart-area-from: 0.25;
  --chart-area-to: 0;
  --chart-line-width: 2px;
  --chart-dot-r: 4px;
  --chart-dot-active-r: 6px;
  --chart-donut-inner: 58px;
  --chart-donut-outer: 80px;
  --chart-donut-pad-angle: 2;
  --chart-bar-radius: 4px;
  --chart-grid-dash: 3 3;
  --chart-grid-stroke: hsl(var(--muted));
  --chart-axis-dash: 4 4;
  --chart-axis-stroke: #4ACF8E;
  --chart-tick-color: hsl(var(--muted-foreground));
  --chart-tick-size: 12px;
  --chart-tick-margin: 16px;
  --chart-baseline-dash: 4 4;
  --chart-tooltip-bg: hsl(var(--background));
  --chart-tooltip-border: hsl(var(--border) / 0.5);
  --chart-tooltip-radius: var(--radius-100);
  --chart-tooltip-pad: 6px 10px;
  --chart-legend-gap: 16px;
  --chart-legend-dot: 8px;
  --chart-legend-dot-radius: 2px;
  --chart-meter-height: 32px;
  --chart-meter-seg-width: 4px;
  --chart-meter-seg-radius: 1.6px;
  --chart-meter-gap: 4px;
  --chart-meter-empty: var(--color-fill-empty);

  /* The FlowSites preview's phone (adminUi PhoneFrame). It draws a device
     around the site, so it is an illustration, not UI chrome: it keeps its
     own corner and bezel, and they do not follow dark mode (decisions.md,
     Stage 2 eighth-round report, item 4). */
  --device-frame-radius: 34px;
  --device-frame-bezel: #1d1d1f;

  /* ─── Typography Tokens ──────────────────────────────── */

  /* Font families */
  --font-body:    'Libre Franklin', sans-serif;  /* primary UI font */
  --font-hebrew:  'Rubik', sans-serif;            /* RTL/Hebrew replacement */
  --font-display: 'Libre Franklin', sans-serif;   /* display (The Seasons N/A on web) */
  --font-brand:     "Rubik", "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans:      "Rubik", "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-assistant: "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Font weights */
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* Type scale */
  --text-xs:   10px;
  --text-sm:   12px;
  --text-base: 14px;
  --text-md:   16px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  40px;
  /* Off the scale, named because DS components use them (decisions.md, T11).
     A number in the name means "off the scale". */
  --text-10_5: 10.5px;
  --text-11:   11px;
  --text-11_5: 11.5px;
  --text-12_5: 12.5px;
  --text-13:   13px;
  --text-15:   15px;
  --text-18:   18px;
  --text-22:   22px;
  --text-28:   28px;

  /* Line heights */
  --lh-tight:  100%;
  --lh-snug:   1.2;
  --lh-normal: 1.4;
  --lh-relaxed:1.6;
  --lh-h1:     56px;
  --lh-h2:     48px;
  --lh-h3:     40px;
  --lh-h4:     32px;
  --lh-h5:     24px;
  --lh-body:   24px;
  --lh-small:  16px;

  /* Composed roles: weight size/line-height family. text-h1…label in
     src/config/design-tokens/typography.ts are the same values as classes. */
  --type-h1:         700 40px/1.2 var(--font-brand);
  --type-h2:         600 32px/1.2 var(--font-brand);
  --type-h3:         600 24px/1.3 var(--font-brand);
  --type-h4:         600 20px/1.4 var(--font-brand);
  --type-h5:         500 16px/1.4 var(--font-brand);
  --type-h6:         500 14px/1.4 var(--font-brand);
  --type-body-large: 400 16px/1.6 var(--font-brand);
  --type-body:       400 14px/24px var(--font-brand);
  --type-body-small: 400 12px/16px var(--font-brand);
  --type-caption:    400 10px/16px var(--font-brand);
  --type-label:      500 10px/1.6 var(--font-brand);

  /* ─── Spacing (8px grid) ─────────────────────────────── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   16px;
  --space-4:   24px;
  --space-5:   32px;
  --space-6:   48px;
  --space-7:   64px;
  --space-8:   72px;
  /* Off the grid, named because DS components use them (decisions.md, T11 and
     NR-SPACING). As classes these are Tailwind's own 0.5 / 1.5 / 2.5 / 3.5. */
  --space-2px:  2px;
  --space-6px:  6px;
  --space-10px: 10px;
  --space-12px: 12px;
  --space-14px: 14px;
  --space-20px: 20px;

  /* Grid: 4 / 8 / 12 columns, 24px gutter; container padding per breakpoint */
  --grid-gutter:       24px;
  --grid-cols-mobile:  4;
  --grid-cols-tablet:  8;
  --grid-cols-desktop: 12;
  --pad-mobile:  16px;
  --pad-tablet:  32px;
  --pad-desktop: 96px;

  /* ─── Border Radius ──────────────────────────────────── */
  --radius-50:  4px;   /* Radius50  — small chips, tags */
  --radius-100: 8px;   /* Radius100 — inputs, icon tiles, Widget, tables, menus */
  --radius-200: 12px;  /* Radius200 — SectionCard, KpiCard, toasts, empty states */
  --radius-300: 16px;  /* Radius300 — Card (T12), dialogs, drawers, large panels */
  /* Off the scale, named because DS components draw them (decisions.md, T11) */
  --radius-75:  6px;   /* WidgetFilter, modal close, MoreActions, Toast dismiss, BannerAction */
  --radius-150: 10px;  /* the CardHeader icon chip (.mf-icon-chip) */
  --radius-full: 999px;/* pill badges */

  /* ─── Shadows ─────────────────────────────────────────── */
  --shadow-25:    0px 1px 2px rgba(27,29,34,0.04);
  --shadow-50:    0px 2px 4px rgba(27,29,34,0.06);
  --shadow-100:   0px 4px 8px rgba(27,29,34,0.08);
  --shadow-200:   0px 8px 16px rgba(27,29,34,0.10);
  --shadow-300:   0px 12px 24px rgba(27,29,34,0.12);
  --shadow-400:   0px 20px 40px rgba(27,29,34,0.16);
  --shadow-modal: 0px 24px 48px rgba(27,29,34,0.18);
  /* The DS Dialog's two layers (§5.32, T13): every dialog, sheet and confirm.
     --shadow-modal alone is not a dialog shadow. */
  --shadow-dialog: 0px 20px 48px rgba(27,29,34,0.18), 0px 4px 12px rgba(27,29,34,0.08);
  /* The .mf-card recipe: four hairline stacks that read as one soft lift */
  --shadow-card:       0px 0px 2px 0px rgba(27,29,34,0.05), 0px 1px 2px 0px rgba(27,29,34,0.02),
                       0px 2px 4px 0px rgba(27,29,34,0.04), 0px 3px 4px 0px rgba(27,29,34,0.02);
  --shadow-card-hover: 0px 0px 2px 0px rgba(27,29,34,0.05), 0px 1px 2px 0px rgba(27,29,34,0.02),
                       0px 2px 4px 0px rgba(27,29,34,0.04), 0px 6px 8px 0px rgba(27,29,34,0.02),
                       0px 16px 16px 0px rgba(27,29,34,0.02);

  /* ─── Borders ─────────────────────────────────────────── */
  --border-subtle:  1px solid var(--color-neutral-50);
  --border-default: 1px solid var(--color-neutral-100);
  --border-strong:  1px solid var(--color-neutral-300);

  /* ─── Category and identity (design/tokens.css, category.css) ───
     Four kinds of thing, on the icon tile only; constant for the life of the
     screen. State lives elsewhere (pills, banners, the figure). */
  --cat-source:       var(--color-info);          /* what an outside party stated */
  --cat-source-ink:   var(--color-white);
  --cat-source-bg:    var(--color-info-bg);
  --cat-computed:     var(--color-secondary-500); /* what this system worked out */
  /* The stable white, not --color-white, which turns near-black in dark and
     would leave a dark glyph on the navy tile (decisions.md, item 21; T26). */
  --cat-computed-ink: var(--text-on-brand);
  --cat-computed-bg:  #EFEEF2;
  --cat-people:       var(--role-daughter-dot);   /* who it is about */
  --cat-people-ink:   var(--color-white);
  --cat-people-bg:    var(--role-daughter-bg);
  --cat-record:       var(--color-neutral-700);   /* the written record */
  --cat-record-ink:   var(--color-white);
  --cat-record-bg:    var(--color-neutral-50);
  /* Entity identity (a bank, a lender): only ever a 3px unlabelled bar */
  --id-bar-width:  3px;
  --id-bar-height: 14px;
  --id-fallback:   hsl(var(--muted-foreground) / 0.45);

  /* ─── Textures (design/tokens.css, textures.css) ───
     A texture separates a block using no hue; a page gets at most one. */
  --texture-grid-size: 40px;
  --texture-grid:
    linear-gradient(to left, var(--color-neutral-50) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, var(--color-neutral-50) 0.5px, transparent 0.5px);
  --texture-grid-cell:         color-mix(in srgb, var(--color-primary-50) 50%, transparent);
  --texture-grid-cell-neutral: color-mix(in srgb, var(--color-neutral-50) 50%, transparent);
  --texture-dots-size:   10px;
  --texture-dots:        radial-gradient(circle, var(--color-primary-50) 1px, transparent 1.2px);
  --texture-dots-accent: var(--color-primary-500);
  /* The dot field graded for a card: a base field masked bottom-up, and a
     stronger one masked into the bottom-inline-start corner (KpiCard). */
  --texture-dots-card:             var(--texture-dots);
  --texture-dots-card-mask:        linear-gradient(to top, #000 20%, transparent 85%);
  --texture-dots-card-strong:      radial-gradient(circle, var(--color-primary-100) 1.2px, transparent 1.5px);
  --texture-dots-card-strong-mask: radial-gradient(150% 120% at 100% 100%, #000 0, rgba(0, 0, 0, 0.45) 38%, transparent 72%);
  /* Marker highlight behind a headline word: editorial surfaces only */
  --highlight-bg:  var(--color-primary-500);
  --highlight-ink: var(--color-white);
  --highlight-pad: 0 0.18em;

  /* ─── Tables (design/tokens.css, tables.css) ─── */
  --table-font-size:      13px;
  --table-radius:         var(--radius-100);
  --table-border:         1px solid var(--color-neutral-50);
  --table-head-bg:        var(--color-surface-faint);
  --table-head-color:     var(--color-neutral-700);
  --table-head-size:      11px;
  --table-head-weight:    600;
  --table-head-pad:       10px 14px;
  --table-head-border:    1px solid var(--color-neutral-100);
  --table-cell-pad:       13px 14px;
  --table-cell-color:     var(--color-neutral-900);
  --table-row-border:     1px solid var(--color-neutral-50);
  --table-row-hover:      var(--color-surface-faint);
  --table-row-selected:   var(--color-success-bg);
  --table-row-transition: background 0.12s ease;
  --table-edge-pad:       18px;
  --table-scroll-below:   1140px;
  --table-min-width:      640px;

  /* ─── Overlays (decisions.md, item 2 and T13) ───
     Translucent white or black over a saturated fill: glass chips, ink on a
     dark band, scrims. A short scale; Stage 3 moves each rgba() literal to
     the nearest step. The same in both modes: the fill under them is. */
  --overlay-light-05: rgba(255, 255, 255, 0.05);
  --overlay-light-10: rgba(255, 255, 255, 0.10);
  --overlay-light-15: rgba(255, 255, 255, 0.15);
  --overlay-light-20: rgba(255, 255, 255, 0.20);
  --overlay-light-30: rgba(255, 255, 255, 0.30);
  --overlay-light-60: rgba(255, 255, 255, 0.60);
  --overlay-light-70: rgba(255, 255, 255, 0.70);
  --overlay-light-80: rgba(255, 255, 255, 0.80);
  --overlay-light-90: rgba(255, 255, 255, 0.90);
  --overlay-dark-04:  rgba(0, 0, 0, 0.04);
  --overlay-dark-08:  rgba(0, 0, 0, 0.08);
  --overlay-dark-20:  rgba(0, 0, 0, 0.20);
  --overlay-dark-70:  rgba(0, 0, 0, 0.70);
  /* The DS Dialog's backdrop, one for every overlay (T13) */
  --overlay-backdrop:      var(--overlay-dark-70);
  --overlay-backdrop-blur: 4px;

  /* ─── Component geometry off the grid (decisions.md, NR-SPACING) ───
     Each belongs to the one DS component named; elsewhere they are deviations. */
  --widget-filter-pad:        3px 10px;   /* WidgetFilter trigger */
  --count-pill-pad:           0 5px;      /* Tabs count pill */
  --banner-action-pad:        5px 12px;   /* BannerAction */
  --more-actions-row-pad:     7px 10px;   /* MoreActions rows */
  --filter-search-pad-inline: 32px 30px;  /* FilterSearch: glyph side, clear side */
  --section-meta-indent:      34px;       /* SectionCard meta row: 26px tile + 8px gap */
  --dialog-title-lh:          1.35;       /* the Dialog title, 18px/600 (§5.32) */
  --toast-description-lh:     1.55;       /* the Toast description, 13px (§5.33) */

  /* ─── Layout ──────────────────────────────────────────── */
  --sidebar-width: 219px;
  --topbar-height: 56px;
  --content-max:   1200px;
  --page-padding:  16px;     /* canonical page-level padding for all pages */

  /* ─── Z-index scale ──────────────────────────────────── */
  --z-base:       0;
  --z-sticky:     10;
  --z-dropdown:   100;
  --z-overlay:    500;
  --z-dialog:     1000;
  --z-toast:      2000;

  /* ─── Responsive breakpoints (declarative — not yet enforced) */
  --bp-mobile:    768px;
  --bp-tablet:    1024px;
  --bp-laptop:    1280px;
}

/* ─── Dark mode overrides for Moneyflow tokens ─────────────────────
   Pages that use these CSS vars (advisor overview, redesigned dashboards)
   automatically adopt dark mode through these overrides. Brand hues
   (primary/secondary/success/warning/danger/info accents) stay identical;
   only surfaces, neutrals and text shift. */
.dark {
  --color-black:        #F2F2F2;
  --color-white:        #1A1A1F;

  /* Neutral surfaces inverted */
  --color-neutral-bg:   #0F1014;
  --color-neutral-50:   #1A1B20;   /* widget outer, dividers */
  --color-neutral-100:  #2A2C33;   /* borders, strokes */
  --color-neutral-300:  #4A4C55;   /* placeholder text */
  --color-neutral-500:  #8A8A8A;   /* secondary text — kept */
  --color-neutral-700:  #B1B1B1;   /* body text secondary */
  --color-neutral-900:  #E5E5E5;   /* near-white text */

  /* Surfaces */
  --color-surface:        #16171C;
  --color-surface-2:      #1F2027;
  --color-surface-3:      #131418;
  --color-surface-faint:  #1A1B20;
  --color-surface-tint:   #22232A;
  --color-border-soft:    #2A2C33;
  --color-fill-empty:     #2A2C33;

  /* Semantic backgrounds — darker tinted surfaces */
  --color-success-bg:     rgba(59, 199, 96, 0.12);
  --color-warning-bg:     rgba(234, 153, 18, 0.14);
  --color-danger-bg:      rgba(216, 71, 32, 0.14);
  --color-info-bg:        rgba(20, 134, 223, 0.14);

  /* Brand tints + semantic -mid hairlines — without these, primary-50 tiles and
     -mid borders resolve to their LIGHT values on dark surfaces (mint glow).
     Hoisted from .mailer-v2-root so every DS consumer (FlowSocial KpiCards,
     StatusPills, DeltaChips) renders correctly in dark mode. */
  --color-primary-50:     hsl(var(--primary) / 0.12);  /* the export's 12% wash, of --primary */
  --color-primary-100:    rgba(59, 199, 96, 0.35);
  --color-primary-300:    rgba(59, 199, 96, 0.5);
  --color-mf-green-50:    hsl(var(--mf-green) / 0.12);
  --color-mf-green-100:   rgba(59, 199, 96, 0.35);
  --color-mf-green-300:   rgba(59, 199, 96, 0.5);
  --color-success-mid:    rgba(59, 199, 96, 0.35);
  --color-warning-mid:    rgba(234, 153, 18, 0.35);
  --color-danger-mid:     rgba(216, 71, 32, 0.35);
  --color-info-mid:       rgba(20, 134, 223, 0.35);
  --color-info-strong:    #62AEEA;   /* the export's dark value, legible on the dark info wash */
  --color-success-strong: #7AD68A;   /* the same green mixed with 25% white: 10.34:1 on the card, 5.03:1 on the mid wash */
  --cat-computed-bg:      #23212A;
  --texture-grid-cell:         rgba(59, 199, 96, 0.08);
  --texture-grid-cell-neutral: rgba(255, 255, 255, 0.03);
  --texture-dots:              radial-gradient(circle, rgba(59, 199, 96, 0.18) 1px, transparent 1.2px);
  /* Deep amber is illegible on the dark card. The dark ink is the same amber
     mixed with 25% white instead of black: 9.46:1 on the card, 7.44:1 on the
     warning wash and 4.73:1 on the mid wash, where the export's #E0A343 read
     3.92:1 (decisions.md, 2026-09-27). */
  --color-warning-strong: #F1B467;
  /* #B63A19 reads 2.99:1 on the dark card. The dark ink is the same red mixed
     with white instead of black: 6.10:1 on the card, 5.36:1 on the danger wash. */
  --color-danger-strong:  #E77B5F;

  /* Role palette backgrounds — keep brand fg/dot, tint backgrounds */
  --role-self-bg:       rgba(59, 199, 96, 0.14);
  --role-husband-bg:    rgba(20, 134, 223, 0.14);
  --role-wife-bg:       rgba(216, 71, 32, 0.14);
  --role-son-bg:        rgba(234, 153, 18, 0.14);
  --role-daughter-bg:   rgba(142, 91, 217, 0.14);
  --role-other-bg:      rgba(138, 138, 138, 0.14);
  /* The purple ink reads 2.40:1 on the dark surface. The dark ink is the
     family's purple (--role-daughter-dot) mixed with 25% white, the way
     --color-danger-strong was derived: 5.95:1 on --color-white, 5.16:1 on the
     purple wash over it, 6.31:1 on the card (decisions.md, 2026-10-08). */
  --role-daughter-fg:   #A886E5;
}

/* ─── The .light scope (design/system.md §4.8, T33) ───────────────────
   A subtree wrapped in `.light` stays light inside a dark page: A4 agreements,
   email previews, surfaces that mimic an external site. index.css's `.light`
   resets the shadcn HSL tokens; this resets the rest to their :root values:
   every --color-*, --role-* and text role, and every token that .dark changes
   directly or through a var(). A var() is resolved on the element that declares
   it, so an alias inherited from :root would carry the DARK value into the
   scope; declaring it again here makes it resolve against the light values.
   Keep it equal to :root. src/styles/__tests__/lightScope.test.ts checks. */
.light {
  --color-black:               #171717;
  --color-white:               #FFFFFF;
  --color-primary-50:          color-mix(in srgb, hsl(var(--primary)) 10%, white);
  --color-primary-100:         #C2EECE;
  --color-primary-300:         #7CD994;
  --color-primary-500:         hsl(var(--primary));
  --color-primary-600:         #2EA84F;
  --color-mf-green-50:         color-mix(in srgb, hsl(var(--mf-green)) 10%, white);
  --color-mf-green-100:        #C2EECE;
  --color-mf-green-300:        #7CD994;
  --color-mf-green-500:        hsl(var(--mf-green));
  --color-mf-green-600:        #2EA84F;
  --color-secondary-100:       #C0BDC6;
  --color-secondary-300:       #767184;
  --color-secondary-500:       #332B48;
  --color-neutral-bg:          #F9F9F9;
  --color-neutral-50:          #F3F3F3;
  --color-neutral-100:         #DBDBDB;
  --color-neutral-300:         #B1B1B1;
  --color-neutral-500:         #8A8A8A;
  --color-neutral-700:         #626262;
  --color-neutral-900:         #3A3A3A;
  --color-success:             #3BC760;
  --color-success-bg:          #EBF9EF;
  --color-success-mid:         #C2EECE;
  --color-success-strong:      #1D6E32;
  --color-warning:             #EA9912;
  --color-warning-bg:          #FDF5E7;
  --color-warning-mid:         #F8DFBE;
  --color-warning-strong:      #8B5906;
  --color-danger:              hsl(var(--destructive));
  --color-danger-bg:           #FBEEE9;
  --color-danger-mid:          #F5C4B5;
  --color-danger-strong:       #B63A19;
  --color-info:                #1486DF;
  --color-info-bg:             #EEF6FD;
  --color-info-mid:            #C2DFF5;
  --color-info-strong:         #1256A0;
  --role-self-bg:              #EBF9EF;
  --role-self-fg:              #2EA84F;
  --role-self-dot:             #3BC760;
  --role-husband-bg:           #EEF6FD;
  --role-husband-fg:           #1486DF;
  --role-husband-dot:          #1486DF;
  --role-wife-bg:              #FBEEE9;
  --role-wife-fg:              #D84720;
  --role-wife-dot:             #D84720;
  --role-son-bg:               #FDF5E7;
  --role-son-fg:               #A66A0A;
  --role-son-dot:              #EA9912;
  --role-daughter-bg:          #F4ECFD;
  --role-daughter-fg:          #6B3FA8;
  --role-daughter-dot:         #8E5BD9;
  --role-other-bg:             #F3F3F3;
  --role-other-fg:             #626262;
  --role-other-dot:            #8A8A8A;
  --text-strong:               var(--color-black);
  --text-body:                 var(--color-neutral-900);
  --text-muted:                var(--color-neutral-700);
  --text-subtle:               var(--color-neutral-500);
  --text-placeholder:          var(--color-neutral-300);
  --text-on-brand:             #FFFFFF;
  --color-surface:             #FFFFFF;
  --color-surface-2:           #F3F3F3;
  --color-surface-3:           #F9F9F9;
  --color-surface-faint:       #FAFAFA;
  --color-surface-tint:        #F5F5F5;
  --color-border-soft:         #E5E5E5;
  --color-fill-empty:          #EEEEEE;
  --chart-grid-stroke:         hsl(var(--muted));
  --chart-tick-color:          hsl(var(--muted-foreground));
  --chart-tooltip-bg:          hsl(var(--background));
  --chart-tooltip-border:      hsl(var(--border) / 0.5);
  --chart-meter-empty:         var(--color-fill-empty);
  --border-subtle:             1px solid var(--color-neutral-50);
  --border-default:            1px solid var(--color-neutral-100);
  --border-strong:             1px solid var(--color-neutral-300);
  --cat-source-ink:            var(--color-white);
  --cat-source-bg:             var(--color-info-bg);
  --cat-computed-bg:           #EFEEF2;
  --cat-people-ink:            var(--color-white);
  --cat-people-bg:             var(--role-daughter-bg);
  --cat-record:                var(--color-neutral-700);
  --cat-record-ink:            var(--color-white);
  --cat-record-bg:             var(--color-neutral-50);
  --id-fallback:               hsl(var(--muted-foreground) / 0.45);
  --texture-grid:              linear-gradient(to left, var(--color-neutral-50) 0.5px, transparent 0.5px), linear-gradient(to bottom, var(--color-neutral-50) 0.5px, transparent 0.5px);
  --texture-grid-cell:         color-mix(in srgb, var(--color-primary-50) 50%, transparent);
  --texture-grid-cell-neutral: color-mix(in srgb, var(--color-neutral-50) 50%, transparent);
  --texture-dots:              radial-gradient(circle, var(--color-primary-50) 1px, transparent 1.2px);
  --texture-dots-accent:       var(--color-primary-500);
  --texture-dots-card:         var(--texture-dots);
  --texture-dots-card-strong:  radial-gradient(circle, var(--color-primary-100) 1.2px, transparent 1.5px);
  --highlight-bg:              var(--color-primary-500);
  --highlight-ink:             var(--color-white);
  --table-border:              1px solid var(--color-neutral-50);
  --table-head-bg:             var(--color-surface-faint);
  --table-head-color:          var(--color-neutral-700);
  --table-head-border:         1px solid var(--color-neutral-100);
  --table-cell-color:          var(--color-neutral-900);
  --table-row-border:          1px solid var(--color-neutral-50);
  --table-row-hover:           var(--color-surface-faint);
  --table-row-selected:        var(--color-success-bg);
}

/* ── src/sites/fund-site/styles/tokens.site.css ── */
/* Fund site — the tokens src/styles/moneyflow-tokens.css does not declare.

   Two kinds, kept apart:
   1. The shadcn HSL channels moneyflow-tokens.css reads (--primary and the four
      it derives from: --muted, --muted-foreground, --destructive, --background,
      --border). The app declares them in src/index.css, which the site does not
      load; these are its :root values, byte for byte
      (__tests__/tokensParity.test.ts fails on any difference).
   2. --fs-* — the site's own language (the petrol scale and what is built on
      it), and values the design system has no token for, named once here so no
      rule in the site's stylesheets carries a bare px or colour. The marketing
      licence's --mkt-* tokens are not used: the site has its own accent since
      2026-10-11 (design/decisions.md, "Kupot is the whole site's accent").

   It also fixes the cascade layers: base rules (site.css) in fs-base, every page
   area's file in fs-areas, so an area overrides the base whatever their file
   names sort to. Light only: the site has no dark mode. */

@layer fs-base, fs-areas;
/* Visitor-selected type scale: the site's typography uses fixed-size DS tokens. */
:root {
  --fs-a11y-width: 380px;
  --fs-chat-width: 38rem;
  --fs-chat-height: 48rem;
  --fs-floating-button-height: var(--space-6);
  --fs-lead-overlay-width: 42rem;
  --fs-chat-privacy-height: 8rem;
  --fs-chat-bottom: calc(var(--space-3) * 2 + var(--fs-floating-button-height));
  --fs-link-underline-offset: .2em;
  --fs-a11y-scale: 1;
  --fs-a11y-backdrop: rgba(6, 34, 43, .5);
  --fs-a11y-contrast-outline: 3px solid var(--color-black);
  --fs-analytics-consent-w: 26rem;
  --fs-analytics-viewport-gutter: 2rem;
  --fs-analytics-copy-lh: 1.55;
  --fs-analytics-consent-z: 120;
}
html[data-fs-a11y-size="1"] { --fs-a11y-scale: 1.2; }
html[data-fs-a11y-size="2"] { --fs-a11y-scale: 1.4; }
html[data-fs-a11y-size="3"] { --fs-a11y-scale: 1.6; }
html[data-fs-a11y-size]:not([data-fs-a11y-size="0"]) {
  --text-11: calc(11px * var(--fs-a11y-scale));
  --text-13: calc(13px * var(--fs-a11y-scale));
  --text-15: calc(15px * var(--fs-a11y-scale));
  --text-18: calc(18px * var(--fs-a11y-scale));
  --text-22: calc(22px * var(--fs-a11y-scale));
  --text-28: calc(28px * var(--fs-a11y-scale));
  --text-xs: calc(10px * var(--fs-a11y-scale));
  --text-sm: calc(12px * var(--fs-a11y-scale));
  --text-base: calc(14px * var(--fs-a11y-scale));
  --text-md: calc(16px * var(--fs-a11y-scale));
  --text-lg: calc(20px * var(--fs-a11y-scale));
  --text-xl: calc(24px * var(--fs-a11y-scale));
  --text-2xl: calc(32px * var(--fs-a11y-scale));
  --text-3xl: calc(40px * var(--fs-a11y-scale));
  --text-10_5: calc(10.5px * var(--fs-a11y-scale));
  --text-11_5: calc(11.5px * var(--fs-a11y-scale));
  --text-12_5: calc(12.5px * var(--fs-a11y-scale));
}

:root {
  /* 1 — src/index.css :root */
  --primary: 136 55.5556% 50.5882%;
  --muted: 0 0% 95.2941%;
  --muted-foreground: 0 0% 38.4314%;
  --destructive: 13 74% 49%;
  --background: 0 0% 100%;
  --border: 0 0% 85.8824%;


  /* 2 — the site's own */

  /* The accent. Owner decision 2026-10-11 (design/decisions.md, "Kupot is the
     whole site's accent"): petrol leaves the tile and becomes the site's colour
     — navigation, headings, links, the primary button and the light surfaces.
     MoneyFlow green communicates positive returns and favorable fee comparisons
     (--color-success-strong); red carries the inverse. One scale, built from the mark's
     #1E7F9E; on white: 950 16.5:1, 900 13.5:1, 800 10.5:1, 700 7.7:1,
     600 6.0:1, 500 4.6:1 (text from 600 down only on 50/100: 700 is 7.2:1 on
     50). 400 and lighter are graphics and grounds, never text. */
  --fs-kp-950: #06222B;
  --fs-kp-900: #0A3340;
  --fs-kp-800: #0E4555;
  --fs-kp-700: #125A6F;
  --fs-kp-600: #176C86;
  --fs-kp-500: var(--fs-kupot);     /* the mark's own petrol, declared below */
  --fs-kp-400: #4B9DB7;
  --fs-kp-300: #8DC2D3;
  --fs-kp-200: #C2DFE8;
  --fs-kp-100: var(--fs-kupot-tint);
  --fs-kp-50: #F2F8FA;
  --fs-ink: var(--fs-kp-950);       /* headings and the figures that lead a block */
  --fs-muted: var(--text-muted);   /* shared secondary copy, including the assistant */
  --fs-suggest-h: 440px;
  --fs-link: var(--fs-kp-700);
  --fs-link-hover: var(--fs-kp-900);
  --fs-line: #DCE7EB;               /* a petrol-tinted hairline (1.26:1 on white): a divider, never the frame a control needs */
  --fs-control-line: var(--fs-kp-400);   /* the frame of a field: 3.09:1 on white (WCAG 1.4.11) */
  /* Ink on the deep petrol (the home hero, the lead box, the footer): white,
     and a muted white at 80% (10.9:1 on 950, 9.1:1 on 900). */
  --fs-on-kp-muted: rgba(255, 255, 255, 0.8);
  --fs-on-kp-line: rgba(255, 255, 255, 0.18);
  /* The direction (UX phase 2, 2026-10-11; design/decisions.md "The agency
     fund site — the direction"). The deep petrol is the frame and the
     agency's offer: the home hero, the fund page's lead box and the footer.
     No figure is read on it but the hero's search and its one line of
     freshness; the board of figures in the hero is a white card. */
  --fs-deep: var(--fs-kp-950);
  /* The hero's ground: the deep petrol, lit from the side the board stands on
     (the end side, the left in Hebrew). White reads 13.5:1 to 16.5:1 across it. */
  --fs-deep-wash:
    radial-gradient(ellipse 70% 90% at 12% 100%, rgba(30, 127, 158, 0.32) 0%, transparent 70%),
    linear-gradient(165deg, var(--fs-kp-900) 0%, var(--fs-kp-950) 62%);
  --fs-on-kp-accent: var(--fs-kp-300);              /* icons and keys on it: 8.5:1 on 950, 6.9:1 on 900 */
  --fs-on-kp-fill: rgba(255, 255, 255, 0.06);       /* a panel on it: white 14.6:1, the 80% white 9.9:1 over 950 */
  --fs-on-kp-fill-hover: rgba(255, 255, 255, 0.11);
  /* The focus ring on the deep petrol, where the petrol ring would vanish:
     the same 3px, in white at 75% (9.7:1 against 950). */
  --fs-focus-ring-on-kp: 0 0 0 3px rgba(255, 255, 255, 0.75);
  --fs-focus-ring-on-kp-outline: 3px solid rgba(255, 255, 255, 0.75);
  /* The page's ground: a cool paper a step off white, so a white card on it
     is an object rather than a frame drawn on white. Every ink keeps AA on it:
     body 10.6:1, muted 5.7:1, a link (700) 7.2:1, the heading ink 15.3:1,
     the fee words 5.9:1 (green) and 5.4:1 (red), the skyline's own bar
     (600) 5.5:1. */
  --fs-paper: #FFFFFF;
  /* Approved Figma-inspired direction: airy paper, marker and graph-paper
     stage. Brand color stays petrol; green/red communicate numeric meaning. */
  --fs-brand-ground: #FBFCFA;
  --fs-brand-soft: #F1F7F7;
  --fs-brand-warm: #F5F3ED;
  --fs-brand-slate: #F0F3F5;
  --fs-brand-grid: #E2E9E9;
  --fs-brand-grid-size: 40px;
  --fs-brand-grid-paint: linear-gradient(to left, var(--fs-brand-grid) 1px, transparent 1px), linear-gradient(to bottom, var(--fs-brand-grid) 1px, transparent 1px);
  --fs-brand-grid-mask: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
  --fs-brand-grid-fade: linear-gradient(to right, #000, transparent);
  --fs-brand-cell: rgba(194, 223, 232, .4);
  --fs-brand-shadow: 0 5px 10px rgba(10, 51, 64, .015), 0 14px 28px rgba(10, 51, 64, .03);
  --fs-brand-radius: 22px;
  --fs-brand-width: 1220px;
  --fs-brand-title: calc(var(--text-2xl) * 2.125);
  --fs-brand-title-sm: calc(var(--text-xl) * 2);
  --fs-brand-section-title: calc(var(--text-md) * 2.125);
  --fs-brand-marker-pad: 0 .13em .055em;
  --fs-brand-tracking: -.035em;
  --fs-brand-title-measure: 28ch;
  --fs-brand-title-mark: 64px;
  /* Shadows tinted to the petrol, never neutral black (taste-skill §4.4). */
  --fs-shadow-sm: 0 1px 2px rgba(6, 34, 43, 0.06);
  --fs-shadow-md: 0 1px 2px rgba(6, 34, 43, 0.05), 0 6px 20px rgba(6, 34, 43, 0.07);
  --fs-shadow-lg: 0 2px 6px rgba(6, 34, 43, 0.06), 0 18px 44px rgba(6, 34, 43, 0.12);
  /* One radius system: a card 16px, a tile or panel inside it 12px, a control
     (button, field, menu) 10px, a chip a pill. */
  --fs-radius-card: var(--radius-300);
  --fs-radius-tile: var(--radius-200);
  --fs-radius-control: var(--radius-150);
  /* Low motion (dial 4 since the direction, 2026-10-11): state changes at
     160ms, and one entrance — a skyline draws itself once, in reading order,
     where it is a page's answer (the home board, the fund summary). Nothing
     loops, nothing moves on scroll, and nothing at all under
     prefers-reduced-motion (site.css). */
  --fs-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fs-dur: 160ms;
  --fs-press: translateY(1px);
  --fs-enter-dur: 720ms;            /* the skyline's one entrance */
  --fs-enter-delay: 120ms;          /* … after the page's first paint has settled */
  /* The sticky bars: the header, and the fund page's section links under it.
     A heading reached by an anchor clears both. */
  --fs-header-h: 64px;
  --fs-anchors-h: 52px;
  --fs-anchor-clear: calc(var(--fs-header-h) + var(--fs-anchors-h) + var(--space-3));
  --fs-bleed: 100vmax;              /* how far a full-bleed bar's paint reaches past its container */
  --fs-search-h: 44px;              /* the header's search field */
  --fs-search-h-lg: 56px;           /* the hero's */
  --fs-search-w: 320px;             /* the header field's widest */
  --fs-menu-w: 760px;               /* the products panel */
  --fs-menu-col: 200px;             /* one family's column in it */
  /* Type (the direction, 2026-10-11): the headings and the figures carry the
     page, set large and tight; Rubik only. The home H1 is the one display
     size (taste-skill §4.7: a seven-word headline, 48px on a desktop, two
     lines); a page's answer figures are a size of their own, above the KPI
     tile's 28px. */
  --fs-display-xl: calc(var(--text-xl) * 2);   /* the home H1 from 64em: 48px */
  --fs-display: var(--text-3xl);    /* … from 48em: 40px */
  --fs-display-sm: var(--text-2xl); /* … and on a phone: 32px */
  --fs-display-lh: 1.15;
  --fs-display-tracking: -0.02em;   /* display type and the answer figures: tighter than body */
  --fs-h1: var(--text-2xl);         /* every other page's H1 from 48em up */
  --fs-h1-sm: var(--text-xl);
  --fs-h2: var(--text-xl);
  --fs-h2-sm: var(--text-lg);
  --fs-figure-lg: var(--text-2xl);  /* the fund summary's lead figure (its 3-year return) below 64em: 32px */
  --fs-figure-md: var(--text-28);   /* its other figures from 64em, and the home board's: 28px */
  /* The hierarchy pass (UX phase 3, 2026-10-12): the summary's answer has one
     lead, the return, a clear step above the figures beside it (40 : 28 on a
     desktop, 32 : 24 on a phone), so the eye lands on it first. */
  --fs-figure-xl: var(--text-3xl);  /* the summary's lead figure from 64em: 40px */
  --fs-figure-sm: var(--text-xl);   /* the summary's other figures below 64em: 24px */
  --fs-lead-grow: 1.5;              /* the lead's share of the summary's row from 64em, against 1 for each other figure */
  /* The section rule: a short petrol bar over every section heading — the
     mark's bar laid down, the one device that says "a new part starts here"
     on a long page. 32×4, a pill. */
  --fs-rule-w: var(--space-5);
  --fs-rule-h: var(--space-1);
  --fs-body: var(--text-md);        /* 16px running text: a public page read on a phone */
  --fs-small: var(--text-base);     /* 14px notes and captions */
  --fs-measure: 68ch;
  --fs-stat-min: 140px;             /* a StatStrip figure's narrowest cell (a product's, a company's counts) */
  --fs-field-icon-pad: calc(var(--space-3) + var(--space-20px) + var(--space-2));   /* a field's text clear of its icon */
  --fs-card-min: 280px;             /* a group, product or track card's narrowest column */

  --fs-compare-tooltip-width: 320px;
  --fs-compare-tooltip-x: 0px;
  --fs-compare-tooltip-y: 0px;
  --fs-touch: 44px;                 /* the smallest target a finger or a nav link gets */
  /* Interface details (UX phase 4, 2026-10-12): a chip is drawn 32px tall
     and still answers a finger at 44px — its target reaches half the
     difference above and below it, into a row gap of exactly that much twice
     over, so two rows of chips never share a pixel of target. */
  --fs-chip-h: var(--space-5);
  --fs-touch-slop: calc((var(--fs-touch) - var(--fs-chip-h)) / 2);
  --fs-chip-row-gap: calc(var(--fs-touch-slop) * 2);
  /* A row of links that scrolls sideways (the section links) says there is
     more: an edge with links behind it fades them out to the bar's white,
     over this width. A cue, never a word: the link it fades is reached by
     scrolling, and a focused link is scrolled clear of it (client/nav.js). */
  --fs-scroll-fade-w: var(--space-5);
  /* The section the reader is in, marked in the section links: an underline
     in the page's own bar colour (600: 5.12:1 on the 100 it sits on, where
     the label's ink is 14.2:1), two pixels thick, set clear of the label. */
  --fs-current-mark-w: var(--space-2px);
  --fs-current-mark-offset: var(--space-6px);
  /* The comparison on a phone (m5): the row names take a narrow sticky column
     (they wrap to two lines) and each track a column of the rest of the
     screen over 2.3 — two tracks beside the names and a sliver of the third,
     so a table that scrolls says so by the column it cuts, at any phone
     width (about 30px of it from 360px to 414px). */
  --fs-compare-label-sm: calc(var(--space-6) * 2);
  --fs-compare-col-sm: calc((100vw - 2 * var(--space-3) - 2 * var(--fs-hairline) - var(--fs-compare-label-sm)) * 10 / 23);
  /* The comparison basket (client/basket.js, 2026-10-12): a row's box is
     drawn 20px and answers a finger at 44px — the label around it is the
     target, and it reaches half the difference to each side, so the box's
     own edge lines up with the table's edge padding. */
  --fs-check: var(--space-20px);
  --fs-check-slop: calc((var(--fs-touch) - var(--fs-check)) / 2);
  /* … and its column (38px) is paid for partly by the name column, which
     gives back the box's width: on a 360px phone the figure the table ranks
     by stays whole in sight, as it was before the column came. */
  --fs-label-col-min-basket: calc(var(--fs-label-col-min) - var(--fs-check));
  --fs-button-h: 48px;              /* the lg button height (§5.7) */
  --fs-button-row-h: 32px;          /* the sm button height, inside a table row */
  --fs-hairline: 1px;
  /* The DS focus ring (design/tokens.css --shadow-focus: 3px at 30%), in the
     site's accent — a green ring on a petrol site would be the one green
     thing on the page that means nothing. */
  --fs-focus-ring: 0 0 0 3px rgba(30, 127, 158, 0.35);
  /* The same ring as an outline drawn INSIDE the box, for a focusable thing a
     clipping ancestor would cut an outward ring off (a table's scroll region in
     its overflow-hidden card, a nav link as tall as its scrolling strip). An
     outline paints over the content and survives forced colours. */
  --fs-focus-ring-outline: 3px solid rgba(30, 127, 158, 0.35);
  --fs-focus-ring-inset-offset: -3px;
  /* Behind every box-shadow ring: forced-colors mode drops box-shadows, so a
     transparent outline stands in — invisible normally, drawn in the system
     colour when colours are forced. */
  --fs-focus-outline: 2px solid transparent;
  --fs-focus-offset: 2px;
  --fs-forced-mark-w: 2px;          /* forced colours: the checked period tab's frame */
  --fs-hero-measure: 720px;         /* the hero sub-heading's line length */
  --fs-lede-measure: 760px;
  --fs-leadbox-w: 360px;
  --fs-form-w: 560px;               /* the lead form's card (styles/lead.css) */
  --fs-turnstile-h: 65px;           /* Cloudflare's check, before it draws: the widget's own height */
  --fs-kpi-min: 176px;              /* a KPI tile's narrowest column */
  --fs-tile-min: 240px;
  --fs-label-col-min: 160px;        /* a table's name column never squeezes below this; the table scrolls instead */
  --fs-label-col-max: calc(var(--fs-label-col-min) * 1.5);   /* a company's legal name wraps at this width */
  --fs-kpi-wide-min: calc(var(--fs-kpi-min) * 1.5);          /* the risk tiles: two even rows of four */
  --fs-skip-offset: calc(-1 * var(--fs-button-h) * 2);        /* the skip link, parked above the page */
  --fs-col-min: calc(var(--space-7) * 5);                     /* a methodology card's narrowest column */
  --fs-col-min-sm: calc(var(--space-7) * 2);                  /* a methodology KPI tile's narrowest column */
  --fs-kpi-figure: var(--text-28); /* §5.14: the figure is 28px/500 */
  --fs-icon-tile: 26px;             /* §5.14: the category tile */
  --fs-icon: 16px;
  --fs-icon-sm: 12px;               /* §5.15: the refresh glyph */
  --fs-logo-in-text: 1em;           /* a brand's logo in a heading: the heading's own size */
  --fs-num-tracking: -0.01em;       /* §5.16: numeric cells; also the wordmark's tracking */
  /* The site's mark (components/KupotMark), FlowSocial's lockup geometry
     (public/flowsocial/brand/brand.css .logo). Its petrol is the root of the
     --fs-kp-* scale above (--fs-kp-500 and --fs-kp-100 read these two).
     KupotMark.tsx repeats the two hex values for favicon.svg; tokensParity
     holds them equal. #1E7F9E is 3.94:1 on its tint — a graphic, not text. */
  --fs-kupot: #1E7F9E;
  --fs-kupot-tint: #E4F0F3;
  --fs-logo-tile: 38px;
  --fs-logo-radius: 11px;
  --fs-logo-glyph: 24px;
  --fs-logo-gap: 10px;
  --fs-logo-lh: 1.05;
  --fs-chart-h-sm: 180px;           /* §5.23: the growth chart's plot on a phone */
  --fs-chart-h: 216px;              /* … and from 48em up */
  /* The skyline (components/Skyline): the mark's podium carried to the whole
     track — one rounded bar per public track that reported, in rank order from
     the reading edge, the page's own track solid and the rest in the mark's
     pale petrol, the track's average a dashed line. Drawn from the model's
     figures, never a decoration. The page's bar (600) is 6.0:1 on white and
     5.5:1 on the paper, and only a fund page has one (the hierarchy pass,
     2026-10-12: on the home board and a product's cards the solid bar was
     always the first, a podium for the winner, so there every bar is a
     peer's). A peer's bar is context, not information: every fact it shows is
     said in words beside it (the rank, the average). Its shape is the point,
     though, and at 200 (1.4:1) the track all but vanished on a phone and left
     the page's bar standing alone; since the same pass it is 300, 1.95:1 on
     white, and the page's bar keeps 3.06:1 against it. The dashed average in
     --text-muted is 6.1:1. */
  --fs-sky-own: var(--fs-kp-600);
  --fs-sky-peer: var(--fs-kp-300);
  --fs-sky-all: var(--fs-kp-400);   /* a track's own portrait, where no bar is the page's: 3.09:1 */
  --fs-sky-base-w: 1px;
  /* The track's average, drawn: one sign wherever it is drawn — the dashed
     line across a skyline, the growth chart's average line, every legend key
     for it, and the dashed rule over a table's average row. Grey, never a
     brand colour (it is not a track), dashed so it is told from the fund's
     line by more than colour (WCAG 1.4.1); 6.1:1 on white. */
  --fs-avg-ink: var(--text-muted);
  --fs-avg-dash: 4 3;
  --fs-avg-w: 1.5px;
  /* Each size's height; components/Skyline.tsx SKYLINE_HEIGHT draws its
     viewBox to the same pixels, so a bar's corners keep their radius
     (tokensParity holds the two equal). */
  --fs-sky-h-sm: 32px;              /* a group card's */
  --fs-sky-h: 48px;                 /* the home board's, and a track page's portrait since the hierarchy pass */
  --fs-sky-h-md: 72px;              /* the fund summary's */
  --fs-sky-key-h: 6px;              /* the legend's key for the page's own bar */
  --fs-sky-key-w: 14px;             /* a legend key */
}

/* ── src/sites/fund-site/styles/accessibility.css ── */
/* Accessibility settings override the page areas by selector specificity. */
@layer fs-areas {
.fs-a11y button { font: inherit; cursor: pointer; min-block-size: var(--space-6); border: var(--fs-hairline) solid var(--fs-control-line); border-radius: var(--radius-200); padding: var(--space-2); color: var(--fs-ink); background: var(--color-white); }
.fs-a11y button:focus-visible { outline: var(--fs-focus-ring-outline); outline-offset: var(--space-2px); }
.fs-a11y button:disabled { cursor: default; opacity: .5; }
.fs-a11y__launcher { position: fixed; inset-block-end: var(--space-3); inset-inline-end: var(--space-3); z-index: var(--z-overlay); box-sizing: border-box; display: flex; align-items: center; gap: var(--space-1); block-size: var(--fs-floating-button-height); box-shadow: var(--fs-shadow-md); }
.fs-a11y__launcher[hidden] { display: none; }
.fs-a11y__panel { color: var(--fs-ink); background: var(--color-white); border: var(--fs-hairline) solid var(--fs-control-line); border-radius: var(--radius-200); padding: var(--space-3); inline-size: var(--fs-a11y-width); max-inline-size: calc(100% - var(--space-4)); max-block-size: calc(100dvh - var(--space-4)); overflow: auto; font: inherit; box-shadow: var(--fs-shadow-lg); }
.fs-a11y__panel::backdrop { background: var(--fs-a11y-backdrop); }
.fs-a11y__heading, .fs-a11y__size { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.fs-a11y__heading h2 { font-size: var(--text-lg); }
.fs-a11y__panel p { margin-block: var(--space-2); }
.fs-a11y__options { display: grid; gap: var(--space-2); margin-block-start: var(--space-2); }
.fs-a11y button[aria-pressed="true"] { background: var(--fs-kp-900); color: var(--color-white); }
.fs-a11y button[aria-pressed="true"]::after { content: ' ✓'; }
html.fs-a11y-links a { text-decoration: underline !important; text-decoration-thickness: var(--space-2px) !important; text-underline-offset: var(--space-2px); }
html.fs-a11y-motion, html.fs-a11y-motion * { scroll-behavior: auto !important; animation-name: none !important; transition-property: none !important; }
html.fs-a11y-contrast body, html.fs-a11y-contrast body *:not(svg):not(svg *) { background-color: var(--color-white) !important; background-image: none !important; color: var(--color-black) !important; border-color: var(--color-black) !important; text-shadow: none !important; }
html.fs-a11y-contrast a { text-decoration: underline !important; }
html.fs-a11y-contrast :focus-visible { outline: var(--fs-a11y-contrast-outline) !important; outline-offset: var(--space-2px); }
}

/* ── src/sites/fund-site/styles/analytics.css ── */
@layer fs-areas {
  .fs-analytics-consent {
    position: fixed;
    z-index: var(--fs-analytics-consent-z);
    inset-inline-start: max(var(--space-3), env(safe-area-inset-left));
    inset-block-end: max(var(--space-3), env(safe-area-inset-bottom));
    width: min(var(--fs-analytics-consent-w), calc(100vw - var(--fs-analytics-viewport-gutter)));
    padding: var(--space-3);
    border: var(--fs-hairline) solid var(--fs-control-line);
    border-radius: var(--fs-radius-card);
    background: var(--fs-paper);
    color: var(--fs-ink);
    box-shadow: var(--fs-shadow-lg);
  }

  .fs-analytics-consent[hidden] { display: none; }
  .fs-analytics-consent p { margin: 0 0 var(--space-10px); line-height: var(--fs-analytics-copy-lh); }
  .fs-analytics-consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-12px); }
  .fs-analytics-consent button {
    min-height: var(--fs-touch);
    border: var(--fs-hairline) solid currentColor;
    border-radius: var(--fs-radius-control);
    padding: var(--space-2) var(--space-14px);
    background: var(--fs-paper);
    color: var(--fs-kp-900);
    font: inherit;
    cursor: pointer;
  }
  .fs-analytics-consent [data-fs-analytics-accept] { background: var(--fs-kp-900); color: var(--color-white); }
  .fs-analytics-consent a { color: inherit; text-underline-offset: var(--fs-link-underline-offset); }
  /* A quiet, reachable control beside the legal links, never over page content. */
  .fs-footer__legal .fs-analytics-settings {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    padding: var(--space-1) 0;
    border: 0;
    background: transparent;
    color: var(--fs-on-kp-muted);
    font: inherit;
    line-height: var(--lh-normal);
    text-decoration: underline;
    text-underline-offset: var(--fs-link-underline-offset);
    cursor: pointer;
  }
  @media (hover: hover) {
    .fs-footer__legal .fs-analytics-settings:hover { color: var(--text-on-brand); }
  }
  .fs-footer__legal .fs-analytics-settings:focus-visible {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring-on-kp);
  }
}

/* ── src/sites/fund-site/styles/assistant.css ── */
@layer fs-areas {
.fs-assistant__open { position: fixed; inset-inline-end: var(--space-3); bottom: var(--fs-chat-bottom); z-index: var(--z-overlay); box-sizing: border-box; block-size: var(--fs-floating-button-height); border: 0; border-radius: var(--radius-200); padding: 0 var(--space-3); background: var(--fs-kp-800); color: var(--color-white); font: inherit; cursor: pointer; box-shadow: var(--fs-shadow-md); }
.fs-assistant__lead { position: fixed; inset-inline-end: var(--space-3); bottom: calc(var(--fs-chat-bottom) + var(--fs-floating-button-height) + var(--space-3)); z-index: var(--z-overlay); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; block-size: var(--fs-floating-button-height); padding: 0 var(--space-4); border-radius: var(--radius-200); background: var(--color-primary-500); color: var(--color-black); font-weight: var(--fw-semibold); text-decoration: none; box-shadow: var(--fs-shadow-md); }
@media (hover: hover) { .fs-assistant__lead:hover { background: var(--color-primary-600); color: var(--color-black); text-decoration: none; } }
.fs-assistant__dialog { inline-size: var(--fs-chat-width); max-inline-size: calc(100% - var(--space-4)); block-size: var(--fs-chat-height); max-block-size: calc(100dvh - var(--space-4)); overflow: hidden; border: var(--fs-hairline) solid var(--fs-control-line); border-radius: var(--fs-brand-radius); padding: 0; color: var(--fs-ink); background: var(--fs-brand-ground); box-shadow: var(--fs-shadow-lg); }
.fs-assistant__dialog[open] { display: flex; flex-direction: column; }
.fs-assistant__dialog::backdrop { background: var(--fs-a11y-backdrop); }
.fs-assistant__header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-4); border-block-end: var(--fs-hairline) solid var(--fs-line); background: var(--color-white); }
.fs-assistant__header h2 { margin: 0; font-size: var(--text-lg); }
.fs-assistant__header p { margin: var(--space-1) 0 0; color: var(--fs-muted); font-size: var(--text-xs); }
.fs-assistant__open, .fs-assistant__header h2 { display: inline-flex; align-items: center; gap: var(--space-2); }
.fs-assistant__icon { inline-size: var(--text-lg); block-size: var(--text-lg); flex: none; }
.fs-assistant button { font: inherit; cursor: pointer; }
.fs-assistant__dialog button { border: var(--fs-hairline) solid var(--fs-control-line); background: var(--color-white); color: var(--fs-ink); border-radius: var(--fs-radius-control); padding: var(--space-2) var(--space-3); min-block-size: var(--fs-button-h); }
@media (hover: hover) { .fs-assistant__dialog button:hover { background: var(--fs-kp-50); } }
.fs-assistant__body { flex: 1; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4); }
.fs-assistant__welcome { padding-block: 0; }
.fs-assistant__welcome h3 { font-size: var(--text-2xl); margin-block: 0 var(--space-2); }
.fs-assistant__intro { font-size: var(--text-base); line-height: 1.7; margin-block: 0 var(--space-3); color: var(--fs-muted); }
.fs-assistant__starters { display: grid; gap: var(--space-2); }
.fs-assistant__starters button { display: flex; align-items: center; gap: var(--space-3); text-align: start; padding: var(--space-3); }
.fs-assistant__context { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); margin-block-end: var(--space-3); border-radius: var(--fs-radius-control); background: var(--fs-brand-soft); font-size: var(--text-sm); }
.fs-assistant__context span { flex: 1; }
.fs-assistant__context button { flex: none; font-size: var(--text-xs); }
.fs-assistant__messages { display: grid; gap: var(--space-4); }
.fs-assistant__message { padding: var(--space-3) var(--space-4); border: var(--fs-hairline) solid var(--fs-line); border-radius: var(--fs-radius-control); background: var(--color-white); overflow-wrap: anywhere; min-inline-size: 0; }
.fs-assistant__message[data-role="user"] { margin-inline-start: var(--space-6); background: var(--fs-brand-soft); border-color: transparent; }
.fs-assistant__speaker { display: block; color: var(--fs-muted); font-size: var(--text-xs); margin-block-end: var(--space-2); }
.fs-assistant__text { line-height: 1.8; font-size: var(--text-base); white-space: pre-line; }
.fs-assistant__text p { margin: 0 0 var(--space-3); }
.fs-assistant__text p:last-child { margin-block-end: 0; }
.fs-assistant__text ul { margin-block: var(--space-2); padding-inline-start: var(--space-5); }
.fs-assistant__choices { display: grid; gap: var(--space-2); margin-block-start: var(--space-3); }
.fs-assistant__choices button { text-align: start; background: var(--fs-kp-50); }
.fs-assistant__choices a { display: block; padding: var(--space-2) 0; }
.fs-assistant__sources { border-block-start: var(--fs-hairline) solid var(--fs-line); padding-block-start: var(--space-2); margin-block-start: var(--space-3); font-size: var(--text-sm); }
.fs-assistant__sources summary { cursor: pointer; color: var(--fs-link); }
.fs-assistant__sources div { margin-block: var(--space-3); }
.fs-assistant__sources p { margin-block: var(--space-1); color: var(--fs-muted); line-height: 1.65; white-space: pre-line; }
.fs-assistant__draft { padding: var(--space-3); background: var(--fs-brand-soft); margin-block-start: var(--space-3); border-radius: var(--fs-radius-control); }
.fs-assistant__draft h3 { margin: 0; font-size: var(--text-base); }
.fs-assistant__draft p { line-height: 1.7; }
.fs-assistant__compose { flex: none; padding: var(--space-3) var(--space-4); background: var(--color-white); border-block-start: var(--fs-hairline) solid var(--fs-line); }
.fs-assistant__compose label { display: block; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.fs-assistant__input-row { display: flex; align-items: flex-end; gap: var(--space-2); }
.fs-assistant textarea { display: block; box-sizing: border-box; inline-size: 100%; min-inline-size: 0; resize: none; font: inherit; border: var(--fs-hairline) solid var(--fs-control-line); border-radius: var(--fs-radius-control); padding: var(--space-3); background: var(--color-white); color: var(--fs-ink); }
.fs-assistant [data-fs-chat="send"], .fs-assistant__draft button { background: var(--fs-kp-800); color: var(--color-white); }
@media (hover: hover) { .fs-assistant [data-fs-chat="send"]:hover, .fs-assistant__draft button:hover { background: var(--fs-kp-700); } }
.fs-assistant__buttons { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-block-start: var(--space-2); color: var(--fs-muted); font-size: var(--text-xs); }
.fs-assistant__buttons button { border: 0; padding: var(--space-1); background: transparent; color: var(--fs-link); font-size: var(--text-xs); }
.fs-assistant__feedback { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.fs-assistant__feedback p { flex: 1; margin: 0; line-height: 1.6; }
.fs-assistant__feedback p:not(:empty) { padding-block: var(--space-2); }
.fs-assistant__feedback button { font-size: var(--text-xs); }
.fs-assistant__privacy { flex: none; color: var(--fs-muted); font-size: var(--text-xs); line-height: 1.6; padding: var(--space-2) var(--space-4); background: var(--fs-brand-soft); }
.fs-assistant__privacy p { margin: 0; }
.fs-assistant__privacy summary { cursor: pointer; color: var(--fs-link); }
.fs-assistant__privacy details[open] { max-block-size: var(--fs-chat-privacy-height); overflow: auto; }
.fs-assistant__privacy details[open] summary { margin-block-end: var(--space-2); }
.fs-assistant button:focus-visible, .fs-assistant textarea:focus-visible, .fs-assistant summary:focus-visible, .fs-assistant a:focus-visible { outline: var(--fs-focus-ring-outline); outline-offset: var(--space-2px); }
.fs-assistant button:disabled { opacity: .5; cursor: wait; }
.fs-assistant [hidden] { display: none; }
@media (max-width: 40em) {
  .fs-assistant__dialog { inline-size: 100%; max-inline-size: 100%; block-size: 100dvh; max-block-size: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .fs-assistant__header, .fs-assistant__body, .fs-assistant__compose { padding: var(--space-3); }
  .fs-assistant__welcome { padding-block: var(--space-2); }
  .fs-assistant__message { padding: var(--space-3); }
  .fs-assistant__privacy { padding-block-end: max(var(--space-2), env(safe-area-inset-bottom)); }
}
}

/* ── src/sites/fund-site/styles/autocomplete.css ── */
/* Shared header/hero suggestions. The list overlays the page without moving
   it; its names are links, and the input owns keyboard selection. */
@layer fs-areas {
  .fs-hsearch { position: relative; }
  .fs-hsearch [hidden] { display: none; }

  .fs-hsearch__panel {
    position: absolute;
    inset-block-start: calc(100% + var(--space-2));
    inset-inline-end: 0;
    z-index: var(--z-dropdown);
    inline-size: max(100%, var(--fs-search-w));
    max-inline-size: calc(100vw - var(--space-4) * 2);
    max-block-size: min(var(--fs-suggest-h), 60dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-surface);
    color: var(--fs-ink);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    box-shadow: var(--fs-shadow-md);
    text-align: start;
  }

  .fs-hsearch__status {
    padding: var(--space-12px) var(--space-3);
    font-size: var(--text-13);
    color: var(--text-muted);
    line-height: var(--lh-normal);
    background: var(--fs-kp-50);
  }

  .fs-hsearch__results { list-style: none; margin: 0; padding: 0; }
  .fs-hsearch__results > li + li { border-block-start: var(--fs-hairline) solid var(--fs-line); }
  .fs-hsearch__option {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-block-size: var(--fs-touch);
    padding: var(--space-12px) var(--space-3);
    color: var(--fs-ink);
    font-size: var(--text-15);
    font-weight: var(--fw-medium);
    line-height: var(--lh-normal);
    text-decoration: none;
  }
  .fs-hsearch__option[aria-selected='true'] {
    background: var(--fs-kp-50);
    color: var(--fs-link);
    text-decoration: none;
  }
  .fs-hsearch__option[aria-selected='true'] {
    outline: var(--fs-focus-ring-outline);
    outline-offset: var(--fs-focus-ring-inset-offset);
  }
  @media (hover: hover) {
    .fs-hsearch__option:hover {
      background: var(--fs-kp-50);
      color: var(--fs-link);
      text-decoration: none;
    }
  }
  .fs-hsearch__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    color: var(--text-muted);
    font-size: var(--text-13);
    font-weight: var(--fw-regular);
  }
  .fs-hsearch__all {
    display: flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    padding: var(--space-12px) var(--space-3);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
    color: var(--fs-link);
    font-size: var(--text-15);
    font-weight: var(--fw-medium);
  }
  .fs-hsearch__all:focus-visible {
    outline: var(--fs-focus-ring-outline);
    outline-offset: var(--fs-focus-ring-inset-offset);
  }
  @media (max-width: 47.99em) {
    .fs-header .fs-hsearch__panel { display: none; }
  }
}

/* ── src/sites/fund-site/styles/basket.css ── */
/* Fund site — the comparison basket (client/basket.js; the owner's decision of
   12/10/2026). Nothing here applies until the script runs: the column of
   boxes and the bar are the script's, and the static page holds neither.

   The column: one box per row at the row's start (on a phone the table
   scrolls sideways, and the start is the part in sight), drawn 20px inside a
   44px label that is the target. The same box on every row, and a ticked row
   is not tinted: the box is the mark, and nothing on the table singles a
   track out.

   The bar: while nothing is marked, a line under the table that says what the
   boxes are for. From the first mark it stays at the bottom of the window
   while its table is in view (position: sticky), a white card over the rows
   scrolling under it, and settles in its own place under the table when the
   reader scrolls past — it is a sibling of the table's card, so it never
   leaves the table's section and never reaches the licensee's box or the
   footer below it. */

@layer fs-areas {
  /* ── The column ─────────────────────────────────────────── */
  /* As narrow as the box: on a phone every pixel it takes comes out of the
     figures in sight. The head is the comparison's own icon (its words are for
     a screen reader), and the label — the 44px target — reaches its slop into
     the edge padding on one side and the next cell's padding on the other, so
     the column is the box and the edge, 38px. */
  .fs-table .fs-basket__head,
  .fs-table .fs-basket__cell {
    padding-inline: 0;
    white-space: nowrap;
  }

  .fs-table tr > .fs-basket__head:first-child {
    padding-inline-start: var(--table-edge-pad);
  }

  .fs-table tr > .fs-basket__cell:first-child {
    padding-inline-start: calc(var(--table-edge-pad) - var(--fs-check-slop));
  }

  .fs-table tbody .fs-basket__cell {
    padding-block: 0;
  }

  .fs-basket-table .fs-table__cell--label {
    min-inline-size: var(--fs-label-col-min-basket);
  }

  .fs-basket__head svg {
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
    color: var(--fs-kp-500);
    vertical-align: middle;
  }

  .fs-basket__pick {
    display: inline-grid;
    place-items: center;
    min-inline-size: var(--fs-touch);
    min-block-size: var(--fs-touch);
    margin-inline-end: calc(-1 * var(--fs-check-slop));
    vertical-align: middle;
    cursor: pointer;
  }

  .fs-basket__check {
    inline-size: var(--fs-check);
    block-size: var(--fs-check);
    margin: 0;
    accent-color: var(--fs-kp-700);
    cursor: inherit;
  }

  .fs-basket__check:focus-visible {
    outline: var(--fs-focus-ring-outline);
    outline-offset: var(--fs-focus-offset);
  }

  /* At the cap a box takes no mark (the bar says why): no pointer. */
  .fs-basket__pick:has(.fs-basket__check:disabled) {
    cursor: default;
  }

  /* ── The bar ────────────────────────────────────────────── */

  .fs-basket {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    color: var(--text-muted);
    font-size: var(--fs-small);
  }

  /* Inside a featured tab the table's card is not in a column with a gap. */
  .fs-featured__panel > .fs-basket {
    margin-block-start: var(--space-3);
  }

  .fs-basket:not([data-state='none']) {
    position: sticky;
    inset-block-end: var(--space-2);
    z-index: var(--z-sticky);
    padding-block: var(--space-2);
    padding-inline: var(--space-3) var(--space-2);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-lg);
    color: var(--fs-ink);
  }

  .fs-basket__status {
    flex: 1 1 auto;
    min-inline-size: 0;
    margin: 0;
  }

  .fs-basket__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
  }

  .fs-basket__actions[hidden] {
    display: none;
  }

  /* On a phone, with two or three marked, the link already says how many
     ("השוואת 3 הקופות המסומנות"): the sentence saying it again is left to a
     screen reader, and the bar keeps to one row over the table. The hint, the
     single mark and the cap stay in sight — each says something the link
     does not. */
  @media (max-width: 47.99em) {
    .fs-basket[data-state='some'] .fs-basket__status {
      position: absolute;
      inline-size: var(--fs-hairline);
      block-size: var(--fs-hairline);
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }

    .fs-basket:not([data-state='none']) .fs-basket__actions {
      flex: 1 1 auto;
    }

    .fs-basket__go {
      flex: 1 1 auto;
    }
  }

  /* The link that opens the comparison: the primary button's petrol, at a
     row's size. While fewer than two are marked it opens nothing — no href,
     out of the tab order — and is drawn quiet. */
  .fs-basket__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-3);
    border: var(--fs-hairline) solid transparent;
    border-radius: var(--fs-radius-control);
    background: var(--fs-kp-700);
    color: var(--text-on-brand);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    text-align: center;
    text-decoration: none;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  .fs-basket__go[aria-disabled='true'] {
    background: var(--fs-kp-50);
    color: var(--text-muted);
    border-color: var(--fs-line);
  }

  @media (hover: hover) {
    .fs-basket__go[href]:hover {
      background: var(--fs-kp-800);
      color: var(--text-on-brand);
      text-decoration: none;
    }
  }

  .fs-basket__go[href]:active {
    transform: var(--fs-press);
  }

  .fs-basket__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-3);
    border: 0;
    border-radius: var(--fs-radius-control);
    background: transparent;
    color: var(--fs-link);
    font: inherit;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-basket__clear:hover {
      background: var(--fs-kp-50);
      color: var(--fs-link-hover);
    }
  }

  .fs-basket__clear:active {
    transform: var(--fs-press);
  }

  .fs-basket__clear:focus-visible {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring);
  }
}

/* ── src/sites/fund-site/styles/blog.css ── */
/* Fund site — the blog (pages/blog). Layer fs-areas. The site's one language
   (design/decisions.md, "Kupot is the whole site's accent"): the index is a
   column of cards, each one link — the card itself is lists.css's, shared with
   the hubs, the products and the brands; a post is one reading column
   (--fs-measure) at the running-text size, its headings in the petrol ink, its
   lists on petrol markers, and the site's pages it names as chips at its foot.
   The draft mark is a tag; an approved post's date is muted. Tokens only. */

@layer fs-areas {
  .fs-blog__publication {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-relaxed);
  }

  .fs-blog__image {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
    border-radius: var(--fs-radius-card);
    inline-size: 100%;
    max-inline-size: var(--fs-lede-measure);
    margin-inline: auto;
    margin-block-end: var(--space-6);
  }

  /* ── The index: one column of cards ───────────────────────── */
  .fs-blogcards {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--fs-card-min)), 1fr));
    gap: var(--space-3);
    list-style: none;
  }

  .fs-blogcard__heading {
    margin: 0;
    font-size: inherit;
  }

  .fs-blogcard__summary {
    color: var(--text-body);
    line-height: var(--lh-relaxed);
  }

  /* ── The status: the draft mark, or the approval date ─────── */
  .fs-blog__status {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-blog__pending {
    font-weight: var(--fw-semibold);
  }

  /* ── A post: one reading column ───────────────────────────── */
  .fs-blog__article {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-inline-size: var(--fs-measure);
    min-inline-size: 0;
  }

  .fs-blogcard__image {
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--fs-radius-tile);
  }

  .fs-blog__layout {
    display: grid;
    gap: var(--space-6);
    align-items: start;
  }

  .fs-blog__toc {
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    font-size: var(--fs-small);
  }

  .fs-blog__toc p {
    font-weight: var(--fw-bold);
    margin-block-end: var(--space-3);
    color: var(--fs-ink);
  }

  .fs-blog__toc ol,
  .fs-blog__sources ul {
    display: grid;
    gap: var(--space-3);
    padding-inline-start: var(--space-4);
  }

  .fs-blog__toc a {
    display: inline-block;
    padding-block: var(--space-1);
  }

  .fs-blog__h2,
  .fs-blog__sources li {
    scroll-margin-block-start: var(--fs-anchor-clear);
  }

  .fs-blog__citation {
    display: inline-block;
    margin-inline-start: var(--space-2);
    font-size: var(--fs-small);
    text-decoration: underline;
  }

  .fs-blog__callout {
    padding: var(--space-5);
    border-inline-start: var(--space-1) solid var(--fs-kp-500);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-kp-50);
    color: var(--text-body);
    line-height: var(--lh-relaxed);
  }

  .fs-blog__callout h3 {
    color: var(--fs-ink);
    font-size: var(--text-md);
    margin-block-end: var(--space-2);
  }

  .fs-blog__table-wrap {
    max-inline-size: 100%;
    overflow-x: auto;
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
  }

  .fs-blog__table {
    inline-size: 100%;
    border-collapse: collapse;
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
    background: var(--color-surface);
  }

  .fs-blog__table caption {
    padding: var(--space-3);
    font-weight: var(--fw-semibold);
    text-align: start;
    background: var(--fs-kp-50);
  }

  .fs-blog__table th,
  .fs-blog__table td {
    padding: var(--space-3);
    text-align: start;
    vertical-align: top;
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-blog__faq details {
    padding-block: var(--space-4);
    border-block-end: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-blog__faq summary {
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    min-block-size: var(--fs-touch);
  }

  .fs-blog__faq p {
    line-height: var(--lh-relaxed);
    color: var(--text-body);
  }

  .fs-blog__sources {
    display: grid;
    gap: var(--space-4);
    padding-block-start: var(--space-4);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
    font-size: var(--fs-small);
    overflow-wrap: anywhere;
  }

  @media (min-width: 64em) {
    .fs-blog__layout:has(.fs-blog__toc) {
      grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    }

    .fs-blog__toc {
      position: sticky;
      top: calc(var(--fs-header-h) + var(--space-4));
      max-block-size: calc(100dvh - var(--fs-header-h) - var(--space-6));
      overflow-y: auto;
    }
  }

  .fs-blog__h2 {
    margin-block-start: var(--space-4);
    color: var(--fs-ink);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
  }

  .fs-blog__p,
  .fs-blog__ul {
    color: var(--text-body);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
  }

  .fs-blog__ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-inline-start: var(--space-5);
    list-style: disc;
  }

  .fs-blog__ul li::marker {
    color: var(--fs-kp-500);
  }

  /* ── The site's pages a post names: chips under a hairline ── */
  .fs-blog__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-block-start: var(--space-2);
    padding-block-start: var(--space-4);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-blog__links-title {
    color: var(--text-muted);
    font-size: var(--text-13);
    font-weight: var(--fw-semibold);
  }

  .fs-blog__links-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
  }

  .fs-blog__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-4) var(--space-3);
    border: var(--fs-hairline) solid var(--fs-kp-200);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--fs-link);
    font-weight: var(--fw-semibold);
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-blog__link:hover {
      background: var(--fs-kp-100);
      color: var(--fs-link-hover);
      text-decoration: none;
    }
  }

  .fs-blog__link:active {
    transform: var(--fs-press);
  }

  .fs-blog__link:focus-visible {
    border-radius: var(--radius-full);
  }

  .fs-blog__link-arrow {
    flex: none;
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
    color: var(--fs-kp-500);
  }
}

/* ── src/sites/fund-site/styles/calculator.css ── */
/* Fund site — the fee calculator (pages/calculator/CalculatorPage.tsx,
   client/calculator.ts). Layer fs-areas: the chosen track's name, the fund
   page's fee table, the two amounts side by side on a wide screen, and the
   estimate on the petrol-100 in a size of its own (always "אומדן", with
   ESTIMATE_NOTE beside it); the search page's picker under it, on the
   comparison's add box — a white card on the paper since the direction
   (2026-10-11). Tokens only. */

@layer fs-areas {
  .fs-calc {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .fs-calc [hidden] {
    display: none;
  }

  .fs-calc__block {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  /* The fund page's fee table, five short columns: it fits a phone as it does
     there (fund.css .fs-fund-fees), so the word the fee is judged by, in the
     last column, is never scrolled out of view (the hierarchy pass,
     2026-10-12; it was cut at the screen's edge). */
  .fs-calc .fs-table {
    min-inline-size: 0;
  }

  .fs-calc .fs-table .fs-table__cell--label {
    min-inline-size: 0;
  }

  .fs-calc .fs-table th[scope='col'] {
    white-space: normal;
  }

  @media (max-width: 47.99em) {
    .fs-calc .fs-table th,
    .fs-calc .fs-table td {
      padding-inline: var(--space-2);
    }
  }

  .fs-calc__chosen {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-2);
    color: var(--text-muted);
  }

  .fs-calc__name {
    color: var(--fs-ink);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    text-decoration: none;
  }

  @media (hover: hover) {
    .fs-calc__name:hover {
      color: var(--fs-link);
    }
  }

  .fs-calc__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: var(--text-13);
  }

  .fs-calc__inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-tile-min), 100%), 1fr));
    gap: var(--space-3);
    align-items: end;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }

  .fs-calc__inputs > .fs-estimate {
    grid-column: 1 / -1;
  }

  .fs-calc__inputs .fs-fund-estimate {
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
  }

  .fs-calc__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .fs-calc__status {
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  /* The picker sits on the comparison's add box (compare.css .fs-compare__add),
     so choosing a track looks the same in both tools. */
  .fs-calc__pick {
    margin-block-start: var(--space-2);
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }
}

/* ── src/sites/fund-site/styles/calculators.css ── */
@layer fs-areas {
  .fs-calculators__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-tile-min), 100%), 1fr));
    gap: var(--space-3);
    list-style: none;
  }

  .fs-calculators__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-2) var(--space-3);
    block-size: 100%;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    color: var(--text-body);
    box-shadow: var(--fs-shadow-sm);
    transition: border-color var(--fs-dur) var(--fs-ease), box-shadow var(--fs-dur) var(--fs-ease), transform var(--fs-dur) var(--fs-ease);
  }

  .fs-calculators__card strong,
  .fs-calculators__open {
    color: var(--fs-link);
  }

  .fs-calculators__card > span:not(.fs-calculators__icon) {
    grid-column: 2;
  }

  .fs-calculators__icon {
    display: grid;
    place-items: center;
    grid-row: 1 / span 3;
    inline-size: var(--fs-touch);
    block-size: var(--fs-touch);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-kp-50);
    color: var(--fs-kp-700);
  }

  .fs-calculators__icon svg {
    inline-size: var(--space-5);
    block-size: var(--space-5);
  }

  .fs-calculators__open {
    font-weight: var(--fw-semibold);
  }

  @media (hover: hover) {
    .fs-calculators__card:hover {
      border-color: var(--fs-kp-300);
      box-shadow: var(--fs-shadow-md);
      color: var(--text-body);
      text-decoration: none;
    }
  }

  .fs-calculators__card:active {
    transform: var(--fs-press);
  }

  .fs-projection-section {
    padding-block-start: 0;
  }

  .fs-projection {
    display: grid;
    gap: var(--space-4);
  }

  @media (min-width: 64em) {
    .fs-projection {
      grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
      align-items: start;
    }

    .fs-projection__actions,
    .fs-projection > .fs-note,
    .fs-projection > noscript {
      grid-column: 1 / -1;
    }
  }

  .fs-projection__panel,
  .fs-projection__results {
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }

  .fs-projection__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-col-min-sm), 100%), 1fr));
    gap: var(--space-3);
  }

  .fs-projection__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .fs-projection__field label {
    color: var(--fs-ink);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
  }

  .fs-projection__input-wrap {
    display: flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    border: var(--fs-hairline) solid var(--fs-control-line);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
    overflow: hidden;
  }

  .fs-projection__input-wrap:focus-within {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring);
  }

  .fs-projection__input-wrap input {
    min-inline-size: 0;
    inline-size: 100%;
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-3);
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-body);
    font: inherit;
    direction: ltr;
    text-align: end;
  }

  .fs-projection__input-wrap span {
    padding-inline-end: var(--space-3);
    color: var(--text-muted);
    white-space: nowrap;
  }

  .fs-projection__privacy {
    margin-block-start: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-projection__results {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--fs-kp-50);
  }

  .fs-projection__result-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-block-end: var(--space-3);
    border-block-end: var(--fs-hairline) solid var(--fs-kp-200);
  }

  .fs-projection__result-main strong {
    color: var(--fs-ink);
    font-size: var(--text-3xl);
  }

  .fs-projection__results dl {
    display: grid;
    gap: var(--space-2);
    margin: 0;
  }

  .fs-projection__results dl > div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
  }

  .fs-projection__results dt {
    color: var(--text-muted);
  }

  .fs-projection__results dd {
    margin: 0;
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
  }

  .fs-projection__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .fs-projection__copy {
    display: grid;
    gap: var(--space-3);
    max-inline-size: var(--fs-measure);
  }

  .fs-projection__faq {
    display: grid;
    gap: var(--space-2);
    max-inline-size: var(--fs-measure);
  }

  .fs-projection__faq details {
    padding: var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
  }

  .fs-projection__faq summary {
    min-block-size: var(--fs-touch);
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
    cursor: pointer;
  }

  .fs-projection__faq p {
    padding-block-start: var(--space-2);
  }
}

/* ── src/sites/fund-site/styles/compare.css ── */
/* Fund site — the comparison page (pages/compare/ComparePage.tsx,
   client/compare.js). Layer fs-areas: the DataTable look (.fs-table-card /
   .fs-table), one column per track, its head the track's name with its number
   and a remove link under it; the row labels stay in a column of their own on
   the light petrol. The add box is the search page's picker (.fs-search__*),
   a white card on the paper. Columns remain equal; the best reported value
   in each return/fee row has a small marker (owner, 2026-10-13). Tokens only. */

@layer fs-areas {
  .fs-compare__next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-4); padding: var(--space-4); border: var(--fs-hairline) solid var(--fs-line); border-radius: var(--fs-radius-tile); background: var(--fs-brand-soft); }
  .fs-compare__next p { margin: 0; max-inline-size: var(--fs-measure); }
  .fs-compare {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .fs-compare [hidden] {
    display: none;
  }

  .fs-compare__block {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .fs-compare__hint {
    display: block;
    margin-block-start: var(--space-1);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    white-space: normal;
  }

  .fs-compare__help {
    min-block-size: var(--fs-touch);
    max-inline-size: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-75);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: help;
  }
  .fs-compare__help svg {
    display: inline;
    inline-size: var(--space-4);
    block-size: var(--space-4);
    margin-inline-start: var(--space-1);
    vertical-align: middle;
    color: var(--fs-link);
  }
  .fs-compare__help:focus-visible {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring);
  }
  .fs-compare__tooltip {
    position: fixed;
    z-index: var(--z-toast);
    left: var(--fs-compare-tooltip-x);
    top: var(--fs-compare-tooltip-y);
    box-sizing: border-box;
    inline-size: min(var(--fs-compare-tooltip-width), calc(100vw - 2 * var(--space-4)));
    max-block-size: calc(100dvh - 2 * var(--space-4));
    overflow: auto;
    margin: 0;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-control);
    box-shadow: var(--fs-shadow-lg);
    background: var(--color-surface);
    color: var(--fs-ink);
    font-size: var(--text-15);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    text-align: start;
  }
  .fs-compare__tooltip p { margin-block-start: var(--space-2); }

  .fs-compare__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: var(--space-2);
    min-block-size: var(--fs-touch);
    padding: var(--space-2) var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    color: var(--fs-link);
    font: inherit;
    font-weight: var(--fw-medium);
    cursor: pointer;
  }

  .fs-compare__more svg { inline-size: var(--space-4); block-size: var(--space-4); }
  .fs-compare__more[aria-expanded='true'] svg { transform: rotate(180deg); }
  .fs-compare__more:focus-visible { outline: var(--fs-focus-outline); outline-offset: var(--fs-focus-offset); box-shadow: var(--fs-focus-ring); }

  .fs-compare__table tbody th[scope='row'] {
    background: var(--fs-kp-50);
    color: var(--fs-ink);
    font-weight: var(--fw-medium);
  }

  /* The row names stay put while the tracks scroll under them: a sticky
     first column, at the inline start, so it follows the page's direction
     (UX phase 4, m5). A comparison of four is wider than a phone, and a
     column of figures that has lost its row names is a column of numbers.
     The cells keep borders of their own (separate, not collapsed), so a
     sticky cell carries its hairline with it; a hairline at its end edge
     marks where the scrolling starts. */
  .fs-compare__table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .fs-compare__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border: var(--fs-hairline) solid transparent;
    border-radius: var(--radius-100);
    white-space: nowrap;
  }

  .fs-compare__value--best {
    background: var(--fs-kp-50);
    border-color: var(--fs-kp-200);
    font-weight: var(--fw-medium);
  }

  .fs-compare__best-check {
    color: var(--fs-kp-700);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
  }

  .fs-compare__table tbody th[scope='row'],
  .fs-compare__table thead th:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    border-inline-end: var(--fs-hairline) solid var(--fs-line);
  }

  /* A track's name wraps in its head (a column head is nowrap in the base):
     "מור קרן השתלמות לשכירים ולעצמאים - מניות" on one line made its column
     twice its neighbours' and pushed every other track off a phone. */
  .fs-compare__head {
    vertical-align: top;
    min-inline-size: var(--fs-label-col-min);
    white-space: normal;
  }

  /* From 48em every track's column is as wide as every other's (a fixed
     layout shares what the names' column leaves): a track with a long name
     took twice its neighbours' width, and a wider column reads as a marked
     one — the comparison marks none. */
  @media (min-width: 48em) {
    .fs-compare__table {
      table-layout: fixed;
    }

    .fs-compare__table thead th:first-child {
      inline-size: calc(var(--fs-label-col-min) + var(--table-edge-pad));
    }
  }

  /* On a phone the names' column took close to half the width (m5): it is a
     narrow column of words that wrap, and each track a column such that two
     sit beside it and the third shows its edge — the cut column is what says
     the table scrolls; the third and fourth scroll under the names. An
     amount keeps its unit on its line ("₪14,775 מיליון"). */
  @media (max-width: 47.99em) {
    .fs-compare__table {
      min-inline-size: 0;
    }

    .fs-compare__table .fs-table__cell--label {
      inline-size: var(--fs-compare-label-sm);
      min-inline-size: var(--fs-compare-label-sm);
      padding-inline: var(--space-12px) var(--space-2);
      font-size: var(--text-13);
      line-height: var(--lh-normal);
      white-space: normal;
    }

    .fs-compare__head,
    .fs-compare__table td {
      min-inline-size: var(--fs-compare-col-sm);
      padding-inline: var(--space-2);
    }

    .fs-compare__table tr[data-row='assets'] td {
      white-space: nowrap;
    }
  }

  .fs-compare__name {
    display: block;
    color: var(--fs-link);
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
    text-align: start;
  }

  .fs-compare__id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--fw-regular);
  }

  .fs-compare__remove {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
  }

  .fs-compare__status {
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-compare__add {
    margin-block-start: var(--space-2);
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }

  /* In the add box, while nothing is typed and the comparison's tracks share
     one track: that track's other funds, each a link that adds it (UX phase
     4: phase 1's item 14). In the search results' own rows, by name — no
     order by a figure, and none left out: the first few in sight, the rest
     one tap away in a <details>, so a track of forty does not bury the
     page. */
  .fs-compare__same {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .fs-compare__same-title {
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
  }

  .fs-compare__same-more {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  /* A list-item, so the disclosure marker stays: the one sign it opens. */
  .fs-compare__same-more > summary {
    display: list-item;
    align-self: flex-start;
    padding-block: var(--space-12px);
    color: var(--fs-link);
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
    cursor: pointer;
  }
}

/* ── src/sites/fund-site/styles/fund.css ── */
/* Fund site — the fund page's own blocks (pages/fund/*). Layer fs-areas.

   The page (owner decisions 2026-10-11): the lead box is the deep petrol card,
   the one dark surface in the page's content (the footer is the frame),
   holding the calls to action and no figure; the summary under the intro is
   the page at a glance — its figures set large and, under them, the track's
   skyline with this track's bar (the direction, UX phase 2); the bar of
   section links stays under the header while the page scrolls; and every
   figure block below is a white card on the paper, in the one accent — the
   chart's fund line included (the track's average stays grey and dashed, as
   the average is drawn everywhere, so the two never read as a pair of brand
   colours).

   The hierarchy pass (UX phase 3, 2026-10-12): the summary has one lead, the
   return, a size above the rest; from 64em the lead box stands in the
   summary's row (site.css .fs-intro__row), so the title and the answer come
   before the offer; and on a phone the returns and the ranks per window are a
   list (site.css .fs-kpis--list), not eleven tiles.

   Sizes with no token of their own are built from the spacing scale
   (calc on --space-*); the chart's plot height is --fs-chart-h-sm / --fs-chart-h
   (tokens.site.css). */

@layer fs-areas {
  /* ── Lead box ───────────────────────────────────────────── */
  .fs-leadbox {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--fs-radius-card);
    background: var(--fs-kp-900);
    color: var(--text-on-brand);
    box-shadow: var(--fs-shadow-lg);
  }

  .fs-leadbox__title {
    color: var(--text-on-brand);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    line-height: var(--lh-normal);
  }

  .fs-leadbox__text {
    color: var(--fs-on-kp-muted);
    line-height: var(--lh-relaxed);
  }

  /* The offers, one under the other at the box's full width, the primary
     last: the box reads as a list of next steps, not a cluster of buttons. */
  .fs-leadbox__row {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .fs-leadbox .fs-cta {
    inline-size: 100%;
  }

  /* Between 48em and 64em the box spans the page under the summary, and four
     buttons stacked at its full width were some 670px each: there the other
     offers share one row, the primary still alone and last under them (UX
     phase 4, the hand-off of §10.4). On a phone they stay stacked — at 360px
     "בדיקת דמי ניהול" does not fit a third of the row — and from 64em the box
     is a 360px column beside the summary. */
  @media (min-width: 48em) and (max-width: 63.99em) {
    .fs-leadbox__row {
      flex-direction: row;
    }

    .fs-leadbox__row > .fs-cta {
      flex: 1 1 0;
      min-inline-size: 0;
    }
  }

  /* On the deep petrol the primary button is the light one. */
  .fs-leadbox .fs-cta--primary {
    background: var(--color-surface);
    color: var(--fs-kp-900);
    box-shadow: none;
  }

  @media (hover: hover) {
    .fs-leadbox a.fs-cta--primary:hover {
      background: var(--fs-kp-50);
    }
  }

  /* A live button on the deep petrol keeps a ring it can be seen by: the
     shadow rule above, an area rule, would otherwise outweigh the base's. */
  .fs-leadbox a.fs-cta:focus-visible {
    box-shadow: var(--fs-focus-ring-on-kp);
  }

  /* ── Intro ──────────────────────────────────────────────── */
  /* An amount and its unit word are one figure: "₪5,414 מיליון" never breaks
     between them (it did, at the summary's size, before the hierarchy pass). */
  .fs-assets {
    unicode-bidi: isolate;
    white-space: nowrap;
  }

  /* Each fact under the H1 is a chip. The managing company's registered name
     can run to sixty characters ("החברה המנהלת של קרן השתלמות של עובדי חברת
     החשמל לישראל בע"מ"): it wraps within its chip rather than widen the page
     or lose its end. */
  .fs-fund-meta .fs-meta__item {
    /* every chip, not only one holding a link (:has): a link's ::after
       (below) must never measure itself against a box further out */
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--space-1);
    min-inline-size: 0;
    max-inline-size: 100%;
    min-block-size: var(--space-5);
    padding: var(--space-2px) var(--space-12px);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--radius-full);
    background: var(--color-surface);
  }

  .fs-fund-meta .fs-meta__item:has(.fs-fund-closed) {
    padding: 0;
    border: 0;
    background: none;
  }

  .fs-fund-meta .fs-identity__name {
    font-weight: var(--fw-semibold);
    white-space: normal;
  }

  /* A fact that is a link (the company, the product, the track) answers a
     finger on its whole chip, 44px tall like every chip (next.css
     .fs-chiplink): the link's ::after covers the chip and reaches into a row
     gap of twice the slop. Its words alone were a 20px target (UX phase 4).
     The chip takes the hover frame, the press and the focus ring. */
  .fs-fund-meta {
    row-gap: var(--fs-chip-row-gap);
  }

  .fs-fund-meta .fs-meta__item:has(> a) {
    transition:
      border-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  .fs-fund-meta .fs-meta__item > a::after {
    content: '';
    position: absolute;
    inset-block: calc(-1 * (var(--fs-touch-slop) + var(--fs-hairline)));
    inset-inline: calc(-1 * var(--fs-hairline));
    border-radius: var(--radius-full);
  }

  @media (hover: hover) {
    .fs-fund-meta .fs-meta__item:has(> a:hover) {
      border-color: var(--fs-kp-300);
    }

    .fs-fund-meta a:hover .fs-identity__name {
      color: var(--fs-link);
    }
  }

  .fs-fund-meta .fs-meta__item:has(> a:active) {
    transform: var(--fs-press);
  }

  .fs-fund-meta .fs-meta__item:has(> a:focus-visible) {
    box-shadow: var(--fs-focus-ring);
  }

  /* The link hands its ring to the chip only where the chip can take it: a
     browser without :has() keeps the link's own ring rather than none. */
  @supports selector(:has(*)) {
    .fs-fund-meta .fs-meta__item > a:focus-visible {
      box-shadow: none;
    }
  }

  .fs-fund-closed {
    min-block-size: var(--space-5);
    padding-inline: var(--space-12px);
    border-color: var(--fs-kp-300);
    background: var(--fs-kp-100);
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
  }

  .fs-fund-status {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  /* Why a track is compared with nothing, or why its figures are not shown:
     said in a quiet card, so the absence reads as a rule, not a gap. */
  .fs-fund-status__excluded,
  .fs-fund .fs-note--withheld {
    max-inline-size: var(--fs-lede-measure);
    padding: var(--space-2) var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
    color: var(--text-body);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
  }

  /* ── At a glance ───────────────────────────────────────── */
  .fs-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-md);
  }

  /* The answer's title and against whom it is: the figures below say
     "ממוצע המסלול" and "מקום 1 מתוך 11", and this line names the track. */
  .fs-summary__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .fs-summary__title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
  }

  .fs-summary__context {
    color: var(--text-body);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
  }

  /* What to do with the answer: the next actions, last in the card. */
  .fs-summary__actions {
    padding-block-start: var(--space-3);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  /* The figures: the lead (the return) across the whole row below 64em, the
     others two to a row under it; from 64em one row, the lead the widest
     column, a hairline between them (the hierarchy pass, 2026-10-12). Flex
     there rather than a grid: a withheld track has one figure, a track in no
     group two, and the row is shared by whatever there is. */
  .fs-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-3);
    margin: 0;
  }

  .fs-summary__cell--lead {
    grid-column: 1 / -1;
  }

  @media (min-width: 64em) {
    .fs-summary__grid {
      display: flex;
      gap: var(--space-3);
    }

    .fs-summary__cell {
      flex: 1 1 0;
    }

    .fs-summary__cell--lead {
      flex-grow: var(--fs-lead-grow);
    }

    .fs-summary__cell + .fs-summary__cell {
      padding-inline-start: var(--space-4);
      border-inline-start: var(--fs-hairline) solid var(--fs-line);
    }
  }

  .fs-summary__cell {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-inline-size: 0;
  }

  .fs-summary__label {
    color: var(--text-muted);
    font-size: var(--text-13);
    font-weight: var(--fw-medium);
  }

  /* The answer's figures, the largest on the page but the home H1: they are
     what the reader came for (the direction, 2026-10-11). The lead a clear
     step above the rest: 32 : 24 below 64em, 40 : 28 from it. */
  .fs-summary__value {
    margin: 0;
    color: var(--fs-ink);
    font-size: var(--fs-figure-sm);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    text-wrap: balance;
  }

  .fs-summary__cell--lead .fs-summary__value {
    font-size: var(--fs-figure-lg);
  }

  @media (min-width: 64em) {
    .fs-summary__value {
      font-size: var(--fs-figure-md);
    }

    .fs-summary__cell--lead .fs-summary__value {
      font-size: var(--fs-figure-xl);
    }
  }

  .fs-summary__value .num {
    letter-spacing: var(--fs-display-tracking);
  }

  /* A rank is a sentence ("מקום 1 מתוך 11"), not one figure: a step smaller.
     Where a half-width cell breaks it, the value's balanced wrap (above)
     breaks it as "מקום 1 / מתוך 11", never leaving the "11" alone. */
  .fs-summary__rank {
    font-size: var(--text-lg);
  }

  /* The track's skyline under the figures: this track's bar among them all,
     its legend and what a bar is on one line beside it from 48em. */
  .fs-summary__sky {
    display: flex;
    flex-direction: column;
    gap: var(--space-12px);
    padding-block-start: var(--space-3);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-summary__sky-legend {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  @media (min-width: 48em) {
    .fs-summary__sky-legend {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: var(--space-1) var(--space-4);
    }
  }

  .fs-summary__sky-caption {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  .fs-summary__sub {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  .fs-summary__cover {
    white-space: nowrap;
  }

  .fs-summary__notes {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-block-start: var(--space-3);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-summary__notes .fs-note {
    font-size: var(--text-13);
  }

  /* ── Returns and ranks (KpiCard §5.14) ──────────────────── */
  /* Tiles in a row from 48em (the base grid). On a phone each is a list
     (site.css .fs-kpis--list, the hierarchy pass of 2026-10-12, m8): a row
     per window, read down in order. As two tiles a row they were eleven tiles,
     close to two screens, the fifth return alone in its row. */
  .fs-fund-ranks .fs-kpi__sub:empty {
    display: none;
  }

  .fs-fund-cover {
    white-space: nowrap;
  }

  /* A rank is a sentence ("מקום 1 מתוך 11"), not a figure: product body
     scale, never the 28px figure. */
  .fs-fund-rank {
    color: var(--text-strong);
    font-size: var(--text-md);
    font-weight: var(--fw-medium);
    line-height: var(--lh-snug);
  }

  /* ── Fees ───────────────────────────────────────────────── */
  .fs-fund-fee {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2px);
  }

  .fs-fund-fee__source,
  .fs-fund-fee__reason {
    color: var(--text-muted);
    font-size: var(--text-11);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
  }

  .fs-fund-fee__reason {
    display: inline-block;
    max-inline-size: var(--fs-label-col-min);
    white-space: normal;
  }

  /* Five short columns, the fee word the one a reader came for: the table
     fits the phone instead of scrolling the word out of view. */
  .fs-fund-fees .fs-table {
    min-inline-size: 0;
  }

  .fs-fund-fees .fs-table .fs-table__cell--label {
    min-inline-size: 0;
  }

  .fs-fund-fees .fs-table th[scope='col'] {
    white-space: normal;
  }

  @media (max-width: 47.99em) {
    .fs-fund-fees .fs-table th,
    .fs-fund-fees .fs-table td {
      padding-inline: var(--space-2);
    }
  }

  .fs-fund-estimate {
    font-weight: var(--fw-medium);
  }

  /* ── Growth chart (§5.23) ───────────────────────────────── */
  .fs-chart {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
    min-inline-size: 0;
  }

  .fs-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--chart-legend-gap);
    list-style: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
  }

  .fs-chart__key {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-6px);
    min-inline-size: 0;
  }

  .fs-chart__key .num {
    color: var(--text-strong);
    font-weight: var(--fw-medium);
  }

  .fs-chart__key .fs-missing {
    color: var(--text-muted);
  }

  /* The legend's keys are the lines themselves: the fund's solid petrol, the
     average's dashed grey (the direction: the average is dashed wherever it
     is drawn). */
  .fs-chart__swatch {
    display: inline-block;
    inline-size: var(--fs-sky-key-w);
    block-size: 0;
    flex: none;
  }

  .fs-chart__swatch--fund {
    border-block-start: var(--chart-line-width) solid var(--fs-kp-600);
    border-radius: var(--radius-full);
  }

  .fs-chart__swatch--peer {
    border-block-start: var(--fs-avg-w) dashed var(--fs-avg-ink);
  }

  .fs-chart__frame {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-inline-size: 0;
  }

  .fs-chart__plot {
    display: block;
    inline-size: 100%;
    block-size: var(--fs-chart-h-sm);
    overflow: visible;
  }

  @media (min-width: 48em) {
    .fs-chart__plot {
      block-size: var(--fs-chart-h);
    }
  }

  .fs-chart__line {
    fill: none;
    stroke-width: var(--chart-line-width);
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .fs-chart__line--fund {
    stroke: var(--fs-kp-600);
  }

  .fs-chart__line--peer {
    stroke: var(--fs-avg-ink);
    stroke-width: var(--fs-avg-w);
    stroke-dasharray: var(--fs-avg-dash);
  }

  /* A run's last point: a zero-length subpath whose round cap is the dot. */
  .fs-chart__end {
    fill: none;
    stroke-width: calc(var(--chart-dot-r) * 2);
    stroke-linecap: round;
  }

  .fs-chart__end--fund {
    stroke: var(--fs-kp-600);
  }

  .fs-chart__end--peer {
    stroke: var(--fs-avg-ink);
  }

  .fs-chart__base {
    stroke: var(--fs-kp-300);
    stroke-width: var(--fs-hairline);
    stroke-dasharray: var(--chart-axis-dash);
    stroke-linecap: round;
  }

  /* The months: a second SVG with no viewBox, placed by percentage, read left
     to right (time runs that way on the plot whatever the page direction). */
  .fs-chart__ticks {
    display: block;
    inline-size: 100%;
    block-size: calc(var(--chart-tick-size) + var(--space-1));
    overflow: visible;
    direction: ltr;
  }

  .fs-chart__tick {
    fill: var(--chart-tick-color);
    font-family: var(--font-sans);
    font-size: var(--chart-tick-size);
    font-variant-numeric: tabular-nums;
  }

  .fs-chart__tick--minor {
    display: none;
  }

  @media (min-width: 48em) {
    .fs-chart__tick--minor {
      display: inline;
    }
  }

  .fs-chart__caption {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    max-inline-size: var(--fs-lede-measure);
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-relaxed);
  }

  .fs-chart__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  /* A list-item, so the disclosure marker stays: the one sign it opens. */
  .fs-chart__summary {
    display: list-item;
    padding-block: var(--space-14px);
    color: var(--fs-link);
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
    cursor: pointer;
  }

  .fs-chart__summary:focus-visible {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring);
    border-radius: var(--radius-50);
  }

  /* ── Risk and flows: two panels side by side on a wide screen ── */
  .fs-fund-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 var(--space-4);
    align-items: start;
  }

  @media (min-width: 64em) {
    .fs-fund-pair {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* Two or three columns of short figures: the panel's own width is enough,
     so the 640px table floor does not apply inside it. */
  .fs-fund-panel .fs-table {
    min-inline-size: 0;
  }

  .fs-fund-panel .fs-table .fs-table__cell--label {
    min-inline-size: 0;
  }
}

/* ── src/sites/fund-site/styles/home.css ── */
/* Fund site — the home page, the methodology page and the 404 page
   (pages/home/*, pages/methodology/*, pages/notFound/*). Layer fs-areas, so it
   builds on the base without depending on file order.

   The home page (owner decisions 2026-10-11, and the direction of the UX
   pass's phase 2 the same night, design/decisions.md "The agency fund site —
   the direction"): one accent (petrol), the data as the visual, and a
   different layout for each section:
     - the hero, the one deep band on the page: what the site is, the search,
       the ways in, and beside them the board — each featured track's first
       by 3 years over the track's skyline — a white card standing on the
       band's edge;
     - the products, a bento of families;
     - the featured rankings, in tabs;
     - rates and inflation, a band of figures;
     - how we compare, one card in two parts: what the figures are (the
       trust lines) and the rules they follow;
     - the closing licensee box (styles/next.css).
   No section repeats another's shape. The list of tools that stood fifth
   became the hero's ways in (the UX pass, 2026-10-11); the trust strip that
   stood under the hero joined "how we compare" (phase 2).

   Sizes with no token of their own are built from the spacing scale (calc on
   --space-*), never a bare px. */

@layer fs-areas {
  /* ── Home: hero ──────────────────────────────────────────── */
  /* The deep band is the text column's own ground, drawn full bleed behind
     the whole row (a pseudo-element under it): it ends a little below the
     words, so the board beside them — taller than they are — stands on its
     edge, half on the deep petrol and half on the paper, on a phone as on a
     desktop. */
  .fs-hero {
    position: relative;
    isolation: isolate;
    /* The band's paint reaches past the container to the window's edges; the
       clip keeps it from widening the page (clip, not hidden: no scroll box). */
    overflow-x: clip;
  }

  .fs-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
    padding-block: var(--space-5) var(--space-3);
  }

  @media (min-width: 64em) {
    .fs-hero__inner {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
      gap: var(--space-6);
      padding-block: var(--space-7) var(--space-4);
    }

    /* No leaders this month: the text takes the row alone. */
    .fs-hero__inner:not(:has(.fs-leaders)) {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .fs-hero__text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    min-inline-size: 0;
    color: var(--fs-on-kp-muted);
  }

  .fs-hero__text::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-block: calc(-1 * var(--space-5)) calc(-1 * (var(--space-5) + var(--space-6)));
    inset-inline: calc(-1 * var(--fs-bleed));
    background: var(--fs-deep-wash);
  }

  @media (min-width: 64em) {
    .fs-hero__text::before {
      inset-block: calc(-1 * var(--space-7)) calc(-1 * var(--space-7));
    }
  }

  .fs-hero__eyebrow {
    max-inline-size: 100%;
  }

  .fs-hero__eyebrow .fs-fresh {
    color: var(--fs-on-kp-muted);
  }

  .fs-hero__eyebrow .fs-fresh__icon {
    color: var(--fs-on-kp-accent);
  }

  .fs-hero__eyebrow .fs-fresh__sep {
    background: var(--fs-on-kp-line);
  }

  /* A pill from 48em, where the stamp fits on one line; on a phone it wraps,
     and a two-line pill reads as a broken one. */
  @media (min-width: 48em) {
    .fs-hero__eyebrow {
      padding: var(--space-6px) var(--space-12px);
      border: var(--fs-hairline) solid var(--fs-on-kp-line);
      border-radius: var(--radius-full);
      background: var(--fs-on-kp-fill);
    }
  }

  .fs-hero__title {
    max-inline-size: var(--fs-hero-measure);
    color: var(--text-on-brand);
    font-size: var(--fs-display-sm);
    font-weight: var(--fw-bold);
    line-height: var(--fs-display-lh);
    letter-spacing: var(--fs-display-tracking);
  }

  .fs-hero__sub {
    max-inline-size: var(--fs-hero-measure);
    color: var(--fs-on-kp-muted);
    font-size: var(--text-lg);
    line-height: var(--lh-relaxed);
  }

  @media (min-width: 48em) {
    .fs-hero__title {
      font-size: var(--fs-display);
    }
  }

  @media (min-width: 64em) {
    .fs-hero__title {
      font-size: var(--fs-display-xl);
    }
  }

  .fs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--space-2);
    inline-size: 100%;
    max-inline-size: var(--fs-hero-measure);
    padding-block-start: var(--space-2);
  }

  .fs-hsearch--hero {
    display: flex;
    flex: 1 1 var(--fs-tile-min);
    min-inline-size: 0;
  }

  .fs-hsearch--hero .fs-hsearch__link,
  .fs-hsearch--hero .fs-hsearch__field {
    min-block-size: var(--fs-search-h-lg);
    padding-inline: var(--space-3);
    border-color: var(--fs-kp-500);
    border-radius: var(--fs-radius-control);
    box-shadow: var(--fs-shadow-md);
    font-size: var(--fs-body);
  }

  /* On the deep band the white field is its own frame. */
  .fs-hero .fs-hsearch--hero .fs-hsearch__link,
  .fs-hero .fs-hsearch--hero .fs-hsearch__field {
    border-color: var(--color-surface);
    box-shadow: var(--fs-shadow-lg);
  }

  @media (hover: hover) {
    .fs-hero .fs-hsearch--hero .fs-hsearch__link:hover {
      border-color: var(--fs-kp-300);
    }
  }

  .fs-hero .fs-hsearch--hero .fs-hsearch__field:focus-within {
    border-color: var(--color-surface);
    box-shadow: var(--fs-focus-ring-on-kp);
  }

  .fs-hsearch--hero .fs-hsearch__input {
    block-size: var(--fs-search-h-lg);
  }

  /* Its shadow above is an area rule, which outweighs the base's focus ring
     (a later layer): the ring is named again here — the site's on the paper
     (the 404 page), the white one on the deep band. */
  .fs-hsearch--hero .fs-hsearch__link:focus-visible {
    box-shadow: var(--fs-focus-ring);
  }

  .fs-hero .fs-hsearch--hero .fs-hsearch__link:focus-visible {
    box-shadow: var(--fs-focus-ring-on-kp);
  }

  .fs-hero__actions .fs-cta {
    min-block-size: var(--fs-search-h-lg);
  }

  /* On the deep band the primary button is the light one (the lead box's). */
  .fs-hero .fs-cta--primary {
    background: var(--color-surface);
    color: var(--fs-kp-900);
    box-shadow: none;
  }

  @media (hover: hover) {
    .fs-hero a.fs-cta--primary:hover {
      background: var(--fs-kp-50);
      color: var(--fs-kp-900);
    }
  }

  /* A live button there (cta mode 'lead_form'): the white ring, which the
     shadow rule above would otherwise take away. */
  .fs-hero a.fs-cta:focus-visible {
    box-shadow: var(--fs-focus-ring-on-kp);
  }

  @media (max-width: 47.99em) {
    .fs-hero__actions .fs-cta {
      flex: 1 1 100%;
    }
  }

  /* ── Home: the ways in beside the search ─────────────────── */
  /* Three rows of one panel under the search, each row one link: the label
     in white and one muted line, the arrow at the end — on the deep band, a
     panel a shade lighter than it. A list, not three cards abreast: beside
     the board the column is too narrow for three labels to stay on one line
     each. Quieter than the search and the call to action above it. */
  .fs-hero__paths {
    display: flex;
    flex-direction: column;
    inline-size: 100%;
    max-inline-size: var(--fs-hero-measure);
    border: var(--fs-hairline) solid var(--fs-on-kp-line);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-on-kp-fill);
    list-style: none;
    overflow: hidden;
  }

  .fs-hero__paths > li + li {
    border-block-start: var(--fs-hairline) solid var(--fs-on-kp-line);
  }

  .fs-hero-path {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-block-size: var(--fs-search-h-lg);
    padding: var(--space-2) var(--space-3);
    color: var(--fs-on-kp-muted);
    text-decoration: none;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-hero-path:hover {
      background: var(--fs-on-kp-fill-hover);
      color: var(--fs-on-kp-muted);
      text-decoration: none;
    }
  }

  .fs-hero-path:active {
    transform: var(--fs-press);
  }

  /* The panel clips (overflow: hidden), so the ring is drawn inside the row. */
  .fs-hero-path:focus-visible {
    border-radius: 0;
    outline: var(--fs-focus-ring-on-kp-outline);
    outline-offset: var(--fs-focus-ring-inset-offset);
    box-shadow: none;
  }

  .fs-hero-path__icon {
    flex: none;
    inline-size: var(--space-20px);
    block-size: var(--space-20px);
    color: var(--fs-on-kp-accent);
  }

  .fs-hero-path__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--space-2px);
    min-inline-size: 0;
  }

  @media (min-width: 48em) {
    .fs-hero-path__text {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: baseline;
      column-gap: var(--space-2);
    }
  }

  .fs-hero-path__label {
    color: var(--text-on-brand);
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
  }

  .fs-hero-path__line {
    color: var(--fs-on-kp-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  .fs-hero-path__arrow {
    flex: none;
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
    color: var(--fs-on-kp-accent);
    transition: transform var(--fs-dur) var(--fs-ease);
  }

  /* Toward the end of the line, the left on these pages (next.css
     .fs-next__arrow). */
  @media (hover: hover) {
    .fs-hero-path:hover .fs-hero-path__arrow {
      transform: translateX(calc(-1 * var(--space-1)));
    }
  }

  /* ── Home: the board (the leaders card) ──────────────────── */
  /* A white card on the deep band's edge: in each featured track, its first
     by 3 years, the figure set large, and under it the track's skyline —
     every bar a peer's, none singled out (the hierarchy pass, 2026-10-12: the
     first's solid bar read as a podium), the dashed line the track's average.
     The skylines draw themselves once on arrival. */
  .fs-leaders {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-inline-size: 0;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-lg);
    color: var(--text-body);
  }

  @media (min-width: 64em) {
    .fs-leaders {
      margin-block-start: calc(-1 * var(--space-3));
    }
  }

  .fs-leaders__title {
    color: var(--fs-ink);
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
  }

  .fs-leaders__list {
    display: flex;
    flex-direction: column;
    list-style: none;
  }

  .fs-leader {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-block: var(--space-3);
  }

  .fs-leader + .fs-leader {
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-leader:first-child {
    padding-block-start: var(--space-1);
  }

  .fs-leader__track {
    color: var(--fs-kp-700);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
  }

  .fs-leader__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
  }

  .fs-leader__who {
    display: flex;
    flex-direction: column;
    gap: var(--space-2px);
    min-inline-size: 0;
    font-size: var(--text-13);
  }

  .fs-leader__name {
    color: var(--fs-ink);
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-normal);
  }

  /* A fund's name is a line tall; its target reaches the 44px a finger needs
     above and below it, over the words around it (none of them a link), so
     the board keeps its height (UX phase 4). */
  a.fs-leader__name {
    position: relative;
  }

  a.fs-leader__name::after {
    content: '';
    position: absolute;
    inset-block: calc((1lh - var(--fs-touch)) / 2);
    inset-inline: 0;
  }

  @media (hover: hover) {
    a.fs-leader__name:hover {
      color: var(--fs-link);
    }
  }

  .fs-leader__figure {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: none;
    gap: var(--space-2px);
  }

  .fs-leader__figure > .num {
    color: var(--fs-ink);
    font-size: var(--fs-figure-md);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    letter-spacing: var(--fs-display-tracking);
  }

  .fs-leader__rank {
    color: var(--text-muted);
    font-size: var(--text-sm);
    white-space: nowrap;
  }

  .fs-leader__avg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--space-6px);
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  /* The average's key: the skyline's own dashed line, in words' size. */
  .fs-leader__key {
    display: inline-block;
    inline-size: var(--fs-sky-key-w);
    block-size: 0;
    border-block-start: var(--fs-avg-w) dashed var(--fs-avg-ink);
  }

  .fs-leader__cover {
    white-space: nowrap;
  }

  .fs-leaders__notes {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-block-start: var(--space-3);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-leaders__notes .fs-note {
    font-size: var(--text-13);
  }

  /* ── Home: the products, by family (a bento) ─────────────── */
  .fs-home-products__lede {
    max-inline-size: var(--fs-measure);
    color: var(--text-muted);
    font-size: var(--fs-small);
  }

  .fs-families {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  /* Three cells: the savings family (four main products) across the row, the
     pension and policy families side by side under it. */
  @media (min-width: 48em) {
    .fs-families {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fs-family--none {
      grid-column: 1 / -1;
    }
  }

  .fs-family {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-inline-size: 0;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }

  /* The policies' cell on the light petrol: the bento's cells are not three
     white planes (taste-skill §4.7), and the deep petrol stays the hero's. */
  .fs-family--polisot {
    background: var(--fs-kp-50);
  }

  .fs-family__head {
    display: flex;
    align-items: center;
    gap: var(--space-12px);
  }

  .fs-family__icon {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: var(--fs-touch);
    block-size: var(--fs-touch);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-kp-700);
    color: var(--text-on-brand);
  }

  .fs-family__icon svg {
    inline-size: var(--space-20px);
    block-size: var(--space-20px);
  }

  .fs-family__title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
  }

  /* auto-fit: a family with one or two products fills its cell rather than
     leaving a ghost column beside them. */
  .fs-family__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-tile-min), 100%), 1fr));
    gap: var(--space-2);
    list-style: none;
  }

  .fs-home-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--space-2);
    row-gap: var(--space-2px);
    block-size: 100%;
    min-block-size: var(--fs-touch);
    padding: var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-paper);
    color: var(--text-body);
    transition:
      border-color var(--fs-dur) var(--fs-ease),
      background-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-home-tile:hover {
      border-color: var(--fs-kp-400);
      background: var(--color-surface);
      color: var(--text-body);
      text-decoration: none;
    }
  }

  .fs-home-tile:active {
    transform: var(--fs-press);
  }

  .fs-home-tile:focus-visible {
    border-radius: var(--fs-radius-tile);
  }

  .fs-family--polisot .fs-home-tile {
    background: var(--color-surface);
  }

  .fs-home-tile__label {
    grid-column: 1;
    color: var(--fs-ink);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
  }

  .fs-home-tile__meta {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-home-tile__tracks {
    color: var(--text-body);
    font-weight: var(--fw-medium);
  }

  .fs-home-tile__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
    color: var(--fs-kp-500);
    transition: transform var(--fs-dur) var(--fs-ease);
  }

  /* Toward the end of the line, the left on these pages (next.css
     .fs-next__arrow). */
  @media (hover: hover) {
    .fs-home-tile:hover .fs-home-tile__arrow {
      transform: translateX(calc(-1 * var(--space-1)));
    }
  }

  .fs-home-others {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-relaxed);
  }

  .fs-home-others__label {
    color: var(--text-body);
    font-weight: var(--fw-medium);
  }

  .fs-family__hub {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    align-self: flex-start;
    min-block-size: var(--fs-touch);
    margin-block-start: auto;
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
  }

  .fs-family__hub svg {
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
  }

  /* ── Home: the featured rankings (CSS radio tabs) ────────── */
  .fs-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-inline-size: 0;
  }

  /* Visually hidden but focusable: the label shows its state and its focus. */
  .fs-featured__radio {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: var(--fs-hairline);
    block-size: var(--fs-hairline);
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* The bar wraps at every width; it never scrolls. The radios sit outside it,
     so a tab chosen with the arrow keys would not be scrolled into view, and
     on a phone it would be off-screen. Wrapped, every row's tabs share its
     width. */
  .fs-featured__bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding: var(--space-1);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-kp-100);
  }

  @media (min-width: 48em) {
    .fs-featured__bar {
      align-self: flex-start;
    }
  }

  .fs-featured__tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-3);
    border-radius: var(--fs-radius-control);
    color: var(--text-body);
    font-size: var(--text-15);
    font-weight: var(--fw-medium);
    /* A track's name can outgrow a phone's row; it wraps inside its chip. */
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  /* The checked tab is set a weight heavier, and a heavier label is a wider
     one: choosing a track shifted every tab after it by up to 14px (measured,
     UX phase 4). Each tab holds its label once more, in the heavier weight,
     never painted and no taller than nothing (data-label, FeaturedTables), so
     a tab is as wide checked as not and nothing moves. Its alternative text
     is empty, and it is hidden, so it is never read. */
  .fs-featured__tab::after {
    content: attr(data-label);
    content: attr(data-label) / '';
    block-size: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: var(--fw-semibold);
  }

  @media (hover: hover) {
    .fs-featured__tab:hover {
      background: var(--fs-kp-50);
      color: var(--fs-ink);
    }
  }

  .fs-featured__tab:active {
    transform: var(--fs-press);
  }

  .fs-featured__panel {
    display: none;
    min-inline-size: 0;
  }

  .fs-featured__radio--f0:checked ~ .fs-featured__panel--f0,
  .fs-featured__radio--f1:checked ~ .fs-featured__panel--f1,
  .fs-featured__radio--f2:checked ~ .fs-featured__panel--f2,
  .fs-featured__radio--f3:checked ~ .fs-featured__panel--f3 {
    display: block;
  }

  /* The checked tab: the white chip with the accent ink and its shadow — a
     mark that is not the tint alone. */
  .fs-featured__radio--f0:checked ~ .fs-featured__bar .fs-featured__tab--f0,
  .fs-featured__radio--f1:checked ~ .fs-featured__bar .fs-featured__tab--f1,
  .fs-featured__radio--f2:checked ~ .fs-featured__bar .fs-featured__tab--f2,
  .fs-featured__radio--f3:checked ~ .fs-featured__bar .fs-featured__tab--f3 {
    background: var(--color-surface);
    color: var(--fs-link);
    font-weight: var(--fw-semibold);
    box-shadow: var(--fs-shadow-md);
  }

  .fs-featured__radio--f0:focus-visible ~ .fs-featured__bar .fs-featured__tab--f0,
  .fs-featured__radio--f1:focus-visible ~ .fs-featured__bar .fs-featured__tab--f1,
  .fs-featured__radio--f2:focus-visible ~ .fs-featured__bar .fs-featured__tab--f2,
  .fs-featured__radio--f3:focus-visible ~ .fs-featured__bar .fs-featured__tab--f3 {
    box-shadow: var(--fs-focus-ring);
  }

  @media (forced-colors: active) {
    .fs-featured__radio--f0:checked ~ .fs-featured__bar .fs-featured__tab--f0,
    .fs-featured__radio--f1:checked ~ .fs-featured__bar .fs-featured__tab--f1,
    .fs-featured__radio--f2:checked ~ .fs-featured__bar .fs-featured__tab--f2,
    .fs-featured__radio--f3:checked ~ .fs-featured__bar .fs-featured__tab--f3 {
      outline: var(--fs-forced-mark-w) solid CanvasText;
    }

    .fs-featured__radio--f0:focus-visible ~ .fs-featured__bar .fs-featured__tab--f0,
    .fs-featured__radio--f1:focus-visible ~ .fs-featured__bar .fs-featured__tab--f1,
    .fs-featured__radio--f2:focus-visible ~ .fs-featured__bar .fs-featured__tab--f2,
    .fs-featured__radio--f3:focus-visible ~ .fs-featured__bar .fs-featured__tab--f3 {
      outline: var(--fs-forced-mark-w) solid Highlight;
    }
  }

  /* The whole track, and the comparison of its first: two links, one row
     that wraps — each a full touch target (.fs-link-row), so two lines of
     them need no gap between. */
  .fs-featured__more {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-4);
  }

  .fs-featured__more a {
    font-weight: var(--fw-semibold);
  }

  .fs-featured__unranked {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
  }

  /* ── Home: rates and inflation (a band of figures) ───────── */
  .fs-macro-strip {
    margin-block-start: var(--space-6);
    padding: var(--space-4);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    border: var(--fs-hairline) solid var(--fs-line);
    box-shadow: var(--fs-shadow-sm);
  }

  @media (min-width: 64em) {
    .fs-macro-strip {
      display: grid;
      grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
      align-items: center;
      gap: var(--space-2) var(--space-5);
      padding: var(--space-5);
    }

    .fs-macro-strip > .fs-section__title {
      grid-column: 1;
    }

    .fs-macro-strip > .fs-facts {
      grid-column: 2;
      grid-row: 1 / span 2;
    }

    .fs-macro-strip > .fs-note {
      grid-column: 1;
      grid-row: 2;
    }
  }

  .fs-macro-strip > .fs-section__title {
    font-size: var(--text-lg);
  }

  /* The strip is the card: its figures sit on it, not in a box of their own
     (lists.css frames a company page's product figures, a section's direct
     .fs-facts, and this strip is a section too: hence both classes, to
     outweigh that rule whatever order the files load in). */
  .fs-section.fs-macro-strip > .fs-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-col-min-sm), 100%), 1fr));
    align-self: stretch;
    gap: var(--space-3);
    padding: 0;
    border: 0;
    background: transparent;
  }

  .fs-macro-strip .fs-facts__item {
    gap: var(--space-1);
    padding-inline-start: var(--space-3);
    border-inline-start: var(--space-2px) solid var(--fs-kp-300);
  }

  .fs-macro-strip .fs-facts__value .num {
    font-size: var(--text-xl);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--fs-display-tracking);
  }

  .fs-macro-strip__figure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2px);
  }

  .fs-macro-strip__since {
    color: var(--text-muted);
    font-size: var(--text-13);
    font-weight: var(--fw-regular);
  }

  /* The date a figure holds since sits at the date's size, not the figure's:
     the rule above reaches every .num in the value, so this one names the
     strip too to outweigh it (phase 1's m4, found while restyling the band). */
  .fs-macro-strip .fs-macro-strip__since .num {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
  }

  /* ── Home: how we compare (one card in two parts) ────────── */
  /* The trust lines that stood under the hero (what the figures are, how
     often they are read, whose the details are) and the rules every
     comparison follows, in one white card: the lines first, the rules beside
     them in a grid from 64em, the methodology link under both. */
  .fs-home-compare__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }

  @media (min-width: 64em) {
    .fs-home-compare__card {
      grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
      gap: var(--space-5);
      padding: var(--space-5);
    }

    .fs-home-compare__card > .fs-home-compare__list {
      padding-inline-start: var(--space-5);
      border-inline-start: var(--fs-hairline) solid var(--fs-line);
    }
  }

  .fs-home-trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    list-style: none;
  }

  .fs-home-trust__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12px);
  }

  .fs-home-trust__icon {
    flex: none;
    inline-size: var(--fs-icon-tile);
    block-size: var(--fs-icon-tile);
    padding: var(--space-1);
    border-radius: var(--radius-100);
    background: var(--fs-kp-100);
    color: var(--fs-kp-700);
  }

  .fs-home-trust__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-2px);
    min-inline-size: 0;
  }

  .fs-home-trust__title {
    color: var(--fs-ink);
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-normal);
  }

  .fs-home-trust__body {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-relaxed);
  }

  .fs-home-trust__body a {
    text-decoration: underline;
    text-decoration-color: var(--fs-kp-300);
    text-underline-offset: var(--space-2px);
  }

  /* A line the agency has not approved: it looks unfinished on purpose. */
  .fs-home-trust__pending {
    display: inline-block;
    margin-inline-end: var(--space-1);
    padding: 0 var(--space-1);
    border: var(--fs-hairline) dashed var(--color-neutral-300);
    border-radius: var(--radius-50);
    background: var(--color-surface-faint);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
  }

  .fs-home-compare__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-tile-min), 100%), 1fr));
    gap: var(--space-4) var(--space-5);
    list-style: none;
  }

  .fs-home-compare__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12px);
  }

  .fs-home-compare__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: var(--fs-icon-tile);
    block-size: var(--fs-icon-tile);
    flex: none;
    border-radius: var(--radius-100);
    background: var(--fs-kp-700);
    color: var(--text-on-brand);
  }

  .fs-home-compare__icon svg {
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
  }

  .fs-home-compare__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-inline-size: 0;
  }

  .fs-home-compare__title {
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-normal);
  }

  .fs-home-compare__body {
    color: var(--text-body);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
  }

  .fs-home-compare__more {
    font-weight: var(--fw-semibold);
  }

  .fs-home-compare__more a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    text-decoration: none;
  }

  /* ── Methodology: contents ───────────────────────────────── */
  .fs-method-toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
  }

  .fs-method-toc__link {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    padding: 0 var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--text-body);
    font-size: var(--text-13);
    font-weight: var(--fw-medium);
    transition:
      border-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-method-toc__link:hover {
      border-color: var(--fs-kp-400);
      color: var(--fs-link);
      text-decoration: none;
    }
  }

  .fs-method-toc__link:active {
    transform: var(--fs-press);
  }

  .fs-method-toc__link:focus-visible {
    border-radius: var(--radius-full);
  }

  .fs-method .fs-intro .fs-kpis {
    margin-block: var(--space-2);
  }

  /* Four short tiles: two abreast on a phone rather than a column of four,
     so a label may take a second line instead of an ellipsis. */
  .fs-method .fs-intro .fs-kpis__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-col-min-sm), 100%), 1fr));
  }

  .fs-method .fs-intro .fs-kpi__label {
    white-space: normal;
  }

  /* ── Methodology: sources table ──────────────────────────── */
  .fs-method-portal {
    display: flex;
    flex-direction: column;
    gap: var(--space-2px);
  }

  .fs-method-portal__name {
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
  }

  .fs-method-portal__products {
    display: block;
    max-inline-size: var(--fs-col-min);
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
  }

  /* ── Methodology: cards (updates) and rules ──────────────── */
  .fs-method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-tile-min), 100%), 1fr));
    gap: var(--space-3);
    list-style: none;
  }

  .fs-method-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
  }

  .fs-method-card__title,
  .fs-method-rule__title,
  .fs-method-limit__title {
    color: var(--fs-ink);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-normal);
  }

  .fs-method-card__body,
  .fs-method-limit__body {
    color: var(--text-body);
    line-height: var(--lh-relaxed);
  }

  .fs-method-now {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
  }

  .fs-method-now__label {
    color: var(--text-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
  }

  .fs-method-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-col-min), 100%), 1fr));
    gap: var(--space-3);
    margin: 0;
  }

  .fs-method-rule {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-inline-size: 0;
    padding: var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }

  .fs-method-rule__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    color: var(--text-body);
    line-height: var(--lh-relaxed);
  }

  .fs-method-rule__figures,
  .fs-method-rule__estimate {
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  /* ── Methodology: what is not shown ──────────────────────── */
  .fs-method-reasons {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    list-style: none;
  }

  .fs-method-reason {
    display: grid;
    grid-template-columns: var(--space-8) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
  }

  .fs-method-reason__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .fs-method-reason__count .num {
    color: var(--fs-ink);
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
  }

  .fs-method-reason__count .fs-missing {
    color: var(--text-muted);
  }

  .fs-method-reason__unit {
    color: var(--text-muted);
    font-size: var(--text-11);
  }

  .fs-method-reason__text {
    color: var(--text-body);
    line-height: var(--lh-relaxed);
  }

  /* ── Methodology: what the site does not compute ─────────── */
  .fs-method-limits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-col-min), 100%), 1fr));
    gap: var(--space-3) var(--space-4);
    list-style: none;
  }

  .fs-method-limit {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-inline-start: var(--space-3);
    border-inline-start: var(--space-2px) solid var(--fs-kp-200);
  }

  /* ── Methodology: disclosure ─────────────────────────────── */
  .fs-method-disclosure .fs-section__title {
    color: var(--fs-ink);
  }

  /* ── 404 ─────────────────────────────────────────────────── */
  .fs-notfound {
    gap: var(--space-5);
    padding-block: var(--space-6);
  }

  .fs-notfound__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-inline-size: var(--fs-lede-measure);
  }

  /* The search first (a lost address is most often a track the regulator
     stopped listing): the hero's field, at the hero's size. Home is the
     second way out, so it is the outline button, not a second primary. */
  .fs-notfound__search {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  /* The hero's field grows along its row there; in this column it keeps its own height. */
  .fs-notfound__search .fs-hsearch--hero {
    flex: none;
  }

  .fs-notfound__search-title {
    color: var(--fs-ink);
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
  }

  .fs-notfound__home {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-block-size: var(--fs-button-h);
    padding: 0 var(--space-4);
    border: var(--fs-hairline) solid var(--fs-control-line);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
    color: var(--fs-link);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      border-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-notfound__home:hover {
      border-color: var(--fs-kp-600);
      background: var(--fs-kp-50);
      color: var(--fs-link-hover);
      text-decoration: none;
    }
  }

  .fs-notfound__home:active {
    transform: var(--fs-press);
  }

  .fs-notfound__home:focus-visible {
    border-radius: var(--fs-radius-control);
  }

  .fs-notfound__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .fs-notfound__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--fs-tile-min), 100%), 1fr));
    gap: var(--space-2);
    list-style: none;
  }

  .fs-notfound__link {
    display: flex;
    align-items: center;
    block-size: 100%;
    min-block-size: var(--fs-touch);
    padding: var(--space-2) var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
    color: var(--text-body);
    font-weight: var(--fw-medium);
    transition:
      border-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-notfound__link:hover {
      border-color: var(--fs-kp-400);
      color: var(--fs-link);
      text-decoration: none;
    }
  }

  .fs-notfound__link:active {
    transform: var(--fs-press);
  }

  .fs-notfound__link:focus-visible {
    border-radius: var(--fs-radius-control);
  }
}

/* ── src/sites/fund-site/styles/lead-overlay.css ── */
@layer fs-areas {
  .fs-lead-overlay {
    inline-size: min(var(--fs-lead-overlay-width), calc(100% - var(--space-4)));
    block-size: min(var(--fs-chat-height), calc(100dvh - var(--space-4)));
    max-inline-size: 100%;
    max-block-size: 100dvh;
    padding: 0;
    overflow: hidden;
    border: var(--fs-hairline) solid var(--fs-control-line);
    border-radius: var(--fs-brand-radius);
    background: var(--color-white);
    color: var(--fs-ink);
    box-shadow: var(--fs-shadow-lg);
  }
  .fs-lead-overlay[open] { display: flex; flex-direction: column; }
  .fs-lead-overlay::backdrop { background: var(--fs-a11y-backdrop); }
  .fs-lead-overlay__header { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-block-end: var(--fs-hairline) solid var(--fs-line); }
  .fs-lead-overlay__header h2 { margin: 0; font-size: var(--text-xl); }
  .fs-lead-overlay__header p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--fs-muted); }
  .fs-lead-overlay__header button { flex: none; display: grid; place-items: center; inline-size: var(--fs-touch); block-size: var(--fs-touch); border: var(--fs-hairline) solid var(--fs-control-line); border-radius: var(--fs-radius-control); background: var(--color-white); color: var(--fs-ink); cursor: pointer; }
  .fs-lead-overlay__header button svg { inline-size: var(--text-lg); block-size: var(--text-lg); }
  .fs-lead-overlay__header button:focus-visible, .fs-assistant__lead:focus-visible { outline: var(--fs-focus-ring-outline); outline-offset: var(--space-2px); }
  .fs-lead-overlay__frame { flex: 1; min-block-size: 0; inline-size: 100%; border: 0; background: var(--fs-brand-ground); }
  @media (max-width: 40em) {
    .fs-lead-overlay { inline-size: 100%; block-size: 100dvh; max-block-size: 100dvh; margin: 0; border: 0; border-radius: 0; }
    .fs-lead-overlay__header { padding: var(--space-3); }
    .fs-lead-overlay__header h2 { font-size: var(--text-lg); }
  }

  html[data-fs-lead-embed] .fs-skip,
  html[data-fs-lead-embed] .fs-header,
  html[data-fs-lead-embed] .fs-footer,
  html[data-fs-lead-embed] .fs-intro,
  html[data-fs-lead-embed] .fs-a11y,
  html[data-fs-lead-embed] .fs-lead__done a:not([data-fs-lead-continue]) { display: none; }
  html[data-fs-lead-embed] body.fs-body { background: var(--color-white); }
  html[data-fs-lead-embed] .fs-lead { padding: 0; }
  html[data-fs-lead-embed] .fs-lead__card { max-inline-size: none; padding: var(--space-4); border: 0; border-radius: 0; box-shadow: none; }
  html[data-fs-lead-simple] .fs-lead__context,
  html[data-fs-lead-simple] .fs-lead__heading { display: none; }
  html[data-fs-lead-simple] .fs-lead__card,
  html[data-fs-lead-simple] .fs-lead__form { gap: var(--space-3); }
}

/* ── src/sites/fund-site/styles/lead.css ── */
/* Fund site — the lead form (pages/lead/LeadPage.tsx, client/lead.js), built
   only in cta mode 'lead_form'. Layer fs-areas: one card, at most a form's
   width — the request it is about (a petrol chip), the fields, the consent,
   Cloudflare's check, the button and a status line; the thank-you in its
   place once sent. Tokens only.

   [hidden] is the browser's own: the form carries it until the script runs,
   and the fallback gets it once the script has mounted. */

@layer fs-areas {
  .fs-lead [hidden] {
    display: none;
  }

  .fs-lead__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-inline-size: var(--fs-form-w);
    padding: var(--space-5) var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }

  @media (min-width: 48em) {
    .fs-lead__card {
      padding: var(--space-5);
    }
  }

  .fs-lead__context {
    align-self: flex-start;
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--fs-radius-control);
    background: var(--fs-kp-50);
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
  }

  .fs-lead__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  .fs-lead__heading { margin: 0; color: var(--fs-ink); font-size: var(--text-lg); }
  .fs-lead__optional { padding: var(--space-3); border: var(--fs-hairline) solid var(--fs-line); border-radius: var(--fs-radius-control); background: var(--fs-brand-soft); }
  .fs-lead__optional summary { cursor: pointer; color: var(--fs-link); font-weight: var(--fw-semibold); }
  .fs-lead__optional[open] { display: grid; gap: var(--space-3); }
  .fs-lead__optional .fs-lead__question { margin-block-start: var(--space-3); }
  .fs-lead__form [data-fs-lead-step] { display: flex; flex-direction: column; gap: var(--space-4); }
  .fs-lead__form [data-fs-lead-step][hidden] { display: none; }
  .fs-lead__question { border: 0; padding: 0; margin: 0; }
  .fs-lead__choices { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
  .fs-lead__choice { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: var(--fs-hairline) solid var(--fs-control-line); border-radius: var(--fs-radius-control); cursor: pointer; }
  .fs-lead__choice:has(input:checked) { border-color: var(--fs-kp-500); background: var(--fs-kp-50); }
  .fs-lead__navigation { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .fs-lead__progress { margin: 0; font-size: var(--fs-small); color: var(--text-muted); }

  .fs-lead__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .fs-lead__label {
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
  }

  .fs-lead__hint {
    color: var(--text-muted);
    font-size: var(--fs-small);
    font-weight: var(--fw-regular);
  }

  .fs-lead__input {
    inline-size: 100%;
    min-block-size: var(--fs-button-h);
    padding: var(--space-2) var(--space-3);
    border: var(--fs-hairline) solid var(--fs-control-line);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
    color: var(--fs-ink);
    font: inherit;
    font-size: var(--text-md);   /* 16px: a smaller box makes iOS zoom in on focus */
    transition: box-shadow var(--fs-dur) var(--fs-ease), border-color var(--fs-dur) var(--fs-ease);
  }

  /* A phone and an address are written left to right; on this right-to-left
     form they still sit against its right edge, under their labels. */
  .fs-lead__input--ltr {
    text-align: end;
  }

  .fs-lead__input:focus-visible,
  .fs-lead__checkbox:focus-visible {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring);
  }

  .fs-lead__input[aria-invalid='true'],
  .fs-lead__checkbox[aria-invalid='true'] {
    border-color: var(--color-danger-strong);
    outline-color: var(--color-danger-strong);
  }

  .fs-lead__error {
    margin: 0;
    color: var(--color-danger-strong);
    font-size: var(--fs-small);
  }

  /* The box, then the sentence beside it; the sentence's error under it. */
  .fs-lead__consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--space-2) var(--space-12px);
  }

  .fs-lead__checkbox {
    inline-size: var(--space-20px);
    block-size: var(--space-20px);
    margin: var(--space-2px) 0 0;
    accent-color: var(--fs-kp-700);
  }

  .fs-lead__consent-text {
    color: var(--text-body);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
  }

  .fs-lead__consent-text a {
    color: var(--fs-link);
    text-decoration: underline;
  }

  .fs-lead__consent > .fs-lead__error {
    grid-column: 2;
  }

  /* Cloudflare's widget: its height held before it draws, so the button
     below it does not jump. */
  .fs-lead__check {
    min-block-size: var(--fs-turnstile-h);
  }

  .fs-lead__submit {
    align-self: flex-start;
    font: inherit;
    cursor: pointer;
  }

  @media (max-width: 47.99em) {
    .fs-lead__submit {
      align-self: stretch;
    }
  }

  .fs-lead__submit:disabled {
    cursor: progress;
    opacity: 0.7;
  }

  .fs-lead__submit:focus-visible {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring);
  }

  .fs-lead__status {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-small);
  }

  .fs-lead__status:empty {
    display: none;
  }

  .fs-lead__done {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-kp-50);
  }

  .fs-lead__done p {
    margin: 0;
  }

  .fs-lead__done-title {
    margin: 0;
    color: var(--fs-ink);
    font-size: var(--fs-h2-sm);
  }

  .fs-lead__fallback {
    margin: 0;
    color: var(--text-muted);
  }

  /* The field a bot fills and a person never meets: out of sight and out of
     the tab order (tabindex -1), its wrapper aria-hidden. Not display: none —
     a bot skips a field that is not drawn. */
  .fs-lead__trap {
    position: absolute;
    inline-size: var(--fs-hairline);
    block-size: var(--fs-hairline);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ── src/sites/fund-site/styles/lists.css ── */
/* Fund site — the list pages' own blocks: the track page (pages/track/*), the
   product page (pages/product/*), the family hubs (pages/hub/*) and the
   managing companies (pages/companies/*, pages/company/*). Layer fs-areas.

   The site's one language (design/decisions.md, "Kupot is the whole site's
   accent"): white cards on the petrol hairline, the petrol ink for what is
   linked or chosen, the KPI tiles and DataTables of the base. A card that is
   one link is framed on hover and sinks on a press (never lifted: UX phase
   4); a missing value keeps --text-muted.

   The period selector works with no JavaScript: the radios come first, and a
   sibling `:checked ~` selector shows the checked radio's panel and marks its
   tab — the same segmented control as the home page's featured rankings. Each
   key (PERIOD_KEYS in pages/track/PeriodTabs.tsx) is named in the three
   selector lists below; __tests__/listPages.test.tsx holds the two together.
   Without this stylesheet every panel simply shows. */

@layer fs-areas {
  /* ── Track rows (ranking panels, closed members) ─────────── */
  .fs-trackrow {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2px);
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  .fs-trackrow__name {
    font-weight: var(--fw-medium);
  }

  .fs-trackrow__id {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
  }

  .fs-trackrow__tag {
    padding-block: 0;
    font-size: var(--text-11);
  }

  /* A company's legal name ("החברה המנהלת של … בע״מ") wraps inside a bounded
     column instead of squeezing the track's own name. */
  .fs-trackcompany {
    display: inline-block;
    max-inline-size: var(--fs-label-col-max);
  }

  .fs-trackcompany .fs-identity {
    align-items: flex-start;
  }

  .fs-trackcompany .fs-idbar {
    margin-block-start: var(--space-2px);
  }

  .fs-trackcompany .fs-identity__logo {
    margin-block-start: calc((1lh - var(--fs-icon)) / 2);
  }

  .fs-trackcompany .fs-identity__name {
    white-space: normal;
  }

  .fs-trackcell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2px);
  }

  .fs-trackcell__sub {
    max-inline-size: var(--fs-label-col-min);
    color: var(--text-muted);
    font-size: var(--text-11);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    white-space: normal;
  }

  .fs-trackcell--assets {
    unicode-bidi: isolate;
    white-space: nowrap;
  }


  /* ── Period selector (CSS radio tabs, §5.41 pills) ───────── */
  .fs-periods {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-inline-size: 0;
  }

  /* Visually hidden but focusable: the label shows its state and its focus. */
  .fs-periods__radio {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: var(--fs-hairline);
    block-size: var(--fs-hairline);
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .fs-periods__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
  }

  .fs-periods__legend {
    color: var(--text-muted);
    font-size: var(--text-13);
    font-weight: var(--fw-semibold);
  }

  /* The strip wraps; it never scrolls. The radios sit outside it, so neither
     the page's default (3 years, the fourth tab) nor a period chosen with the
     arrow keys would be scrolled into view: on a phone the checked tab would
     be off-screen. Wrapped, every row's tabs share its width. */
  .fs-periods__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    max-inline-size: 100%;
    padding: var(--space-1);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-kp-100);
  }

  .fs-periods__tab {
    display: inline-flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-block-size: var(--fs-touch);
    /* 12px, not 16: with each tab as wide as its checked self (::after,
       below), 16 tipped the first row of a 390px phone into a third. */
    padding-inline: var(--space-12px);
    border-radius: var(--fs-radius-control);
    color: var(--text-body);
    font-size: var(--text-15);
    font-weight: var(--fw-medium);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  /* The checked tab's heavier weight would widen it and shift the tabs after
     it (up to 9px, measured; UX phase 4): each tab holds its label once more in
     that weight, never painted and no taller than nothing (data-label,
     PeriodTabs), so it is as wide checked as not — home.css
     .fs-featured__tab::after, the same control. */
  .fs-periods__tab::after {
    content: attr(data-label);
    content: attr(data-label) / '';
    block-size: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: var(--fw-semibold);
  }

  @media (hover: hover) {
    .fs-periods__tab:hover {
      background: var(--fs-kp-50);
      color: var(--fs-ink);
    }
  }

  .fs-periods__tab:active {
    transform: var(--fs-press);
  }

  .fs-periods__panel {
    display: none;
    min-inline-size: 0;
  }

  .fs-periods__radio--month:checked ~ .fs-periods__panel--month,
  .fs-periods__radio--ytd:checked ~ .fs-periods__panel--ytd,
  .fs-periods__radio--12m:checked ~ .fs-periods__panel--12m,
  .fs-periods__radio--3y:checked ~ .fs-periods__panel--3y,
  .fs-periods__radio--5y:checked ~ .fs-periods__panel--5y,
  .fs-periods__radio--fee:checked ~ .fs-periods__panel--fee {
    display: block;
  }

  .fs-periods__radio--month:checked ~ .fs-periods__bar .fs-periods__tab--month,
  .fs-periods__radio--ytd:checked ~ .fs-periods__bar .fs-periods__tab--ytd,
  .fs-periods__radio--12m:checked ~ .fs-periods__bar .fs-periods__tab--12m,
  .fs-periods__radio--3y:checked ~ .fs-periods__bar .fs-periods__tab--3y,
  .fs-periods__radio--5y:checked ~ .fs-periods__bar .fs-periods__tab--5y,
  .fs-periods__radio--fee:checked ~ .fs-periods__bar .fs-periods__tab--fee {
    background: var(--color-surface);
    color: var(--fs-link);
    font-weight: var(--fw-semibold);
    /* A mark that is not the tint alone: the white chip lifted off the bar. */
    box-shadow: var(--fs-shadow-md);
  }

  .fs-periods__radio--month:focus-visible ~ .fs-periods__bar .fs-periods__tab--month,
  .fs-periods__radio--ytd:focus-visible ~ .fs-periods__bar .fs-periods__tab--ytd,
  .fs-periods__radio--12m:focus-visible ~ .fs-periods__bar .fs-periods__tab--12m,
  .fs-periods__radio--3y:focus-visible ~ .fs-periods__bar .fs-periods__tab--3y,
  .fs-periods__radio--5y:focus-visible ~ .fs-periods__bar .fs-periods__tab--5y,
  .fs-periods__radio--fee:focus-visible ~ .fs-periods__bar .fs-periods__tab--fee {
    box-shadow: var(--fs-focus-ring);
  }

  /* Forced colours drop the tint and the ring (both a background or a shadow):
     the checked tab gets a frame in the text colour and the focused one in the
     highlight colour, so which period is shown — and which tab has the keyboard
     — still reads. */
  @media (forced-colors: active) {
    .fs-periods__radio--month:checked ~ .fs-periods__bar .fs-periods__tab--month,
    .fs-periods__radio--ytd:checked ~ .fs-periods__bar .fs-periods__tab--ytd,
    .fs-periods__radio--12m:checked ~ .fs-periods__bar .fs-periods__tab--12m,
    .fs-periods__radio--3y:checked ~ .fs-periods__bar .fs-periods__tab--3y,
    .fs-periods__radio--5y:checked ~ .fs-periods__bar .fs-periods__tab--5y,
    .fs-periods__radio--fee:checked ~ .fs-periods__bar .fs-periods__tab--fee {
      outline: var(--fs-forced-mark-w) solid CanvasText;
    }

    .fs-periods__radio--month:focus-visible ~ .fs-periods__bar .fs-periods__tab--month,
    .fs-periods__radio--ytd:focus-visible ~ .fs-periods__bar .fs-periods__tab--ytd,
    .fs-periods__radio--12m:focus-visible ~ .fs-periods__bar .fs-periods__tab--12m,
    .fs-periods__radio--3y:focus-visible ~ .fs-periods__bar .fs-periods__tab--3y,
    .fs-periods__radio--5y:focus-visible ~ .fs-periods__bar .fs-periods__tab--5y,
    .fs-periods__radio--fee:focus-visible ~ .fs-periods__bar .fs-periods__tab--fee {
      outline: var(--fs-forced-mark-w) solid Highlight;
      outline-offset: var(--fs-focus-offset);
    }
  }

  /* ── The track in figures (KpiCard tiles) ────────────────── */
  /* Two tiles abreast on a phone, so the summary does not push the ranking a
     screen and a half down; the figure steps down one size there to fit. The
     average return per window is a list there instead (site.css
     .fs-kpis--list): five windows read in order down one column, not
     zig-zagging across two with the fifth left alone. */
  .fs-trackstats .fs-kpis:not(.fs-kpis--list) .fs-kpis__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-label-col-min), 100%), 1fr));
  }

  .fs-trackstats .fs-kpi__value > .num {
    font-size: var(--text-xl);
  }

  /* A label may take two lines rather than lose its end to an ellipsis. */
  .fs-trackstats .fs-kpi__label {
    white-space: normal;
  }

  @media (min-width: 48em) {
    .fs-trackstats .fs-kpis__grid {
      grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-kpi-min), 100%), 1fr));
    }

    .fs-trackstats .fs-kpi__value > .num {
      font-size: var(--fs-kpi-figure);
    }

    /* Eight risk and exposure tiles: two even rows rather than six and two. */
    .fs-trackrisk .fs-kpis__grid {
      grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-kpi-wide-min), 100%), 1fr));
    }
  }
  /* ── Product page and hubs: the group and product cards ───── */
  .fs-groupset {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .fs-groupset + .fs-groupset {
    padding-block-start: var(--space-4);
  }

  /* The whole card is one link (its title's ::after covers it), lifted on hover:
     a peer group on its product page, a product on its hub, a brand on the
     companies index, a post on the blog's index (blog.css lays that list out). */
  .fs-groupcards,
  .fs-hubcards,
  .fs-brandcards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--fs-card-min), 100%), 1fr));
    gap: var(--space-3);
    list-style: none;
  }

  .fs-groupcard,
  .fs-hubcard,
  .fs-brandcard,
  .fs-blogcard {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-inline-size: 0;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
    transition:
      border-color var(--fs-dur) var(--fs-ease),
      box-shadow var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  /* Hover frames the card and deepens its shadow; it no longer lifts it a
     pixel (UX phase 4: hover never lifts or grows, design/decisions.md "the
     states pass"). A press sinks it, as every card that is one link does. */
  @media (hover: hover) {
    .fs-groupcard:has(a.fs-groupcard__title):hover,
    .fs-hubcard:has(a.fs-hubcard__title):hover,
    .fs-brandcard:has(a.fs-brandcard__title):hover,
    .fs-blogcard:has(a.fs-blogcard__title):hover {
      border-color: var(--fs-kp-300);
      box-shadow: var(--fs-shadow-md);
    }
  }

  .fs-groupcard:has(a.fs-groupcard__title:active),
  .fs-hubcard:has(a.fs-hubcard__title:active),
  .fs-brandcard:has(a.fs-brandcard__title:active),
  .fs-blogcard:has(a.fs-blogcard__title:active) {
    transform: var(--fs-press);
  }

  .fs-groupcard__title,
  .fs-hubcard__title,
  .fs-brandcard__title,
  .fs-blogcard__title {
    color: var(--fs-ink);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
  }

  @media (hover: hover) {
    a.fs-groupcard__title:hover,
    a.fs-hubcard__title:hover,
    a.fs-brandcard__title:hover,
    a.fs-blogcard__title:hover {
      color: var(--fs-link);
      text-decoration: none;
    }
  }

  a.fs-groupcard__title::after,
  a.fs-hubcard__title::after,
  a.fs-brandcard__title::after,
  a.fs-blogcard__title::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--fs-radius-card);
  }

  a.fs-groupcard__title:focus-visible,
  a.fs-hubcard__title:focus-visible,
  a.fs-brandcard__title:focus-visible,
  a.fs-blogcard__title:focus-visible {
    box-shadow: none;
  }

  a.fs-groupcard__title:focus-visible::after,
  a.fs-hubcard__title:focus-visible::after,
  a.fs-brandcard__title:focus-visible::after,
  a.fs-blogcard__title:focus-visible::after {
    box-shadow: var(--fs-focus-ring);
  }

  .fs-groupcard .fs-facts,
  .fs-hubcard .fs-facts,
  .fs-brandcard .fs-facts {
    gap: var(--space-2) var(--space-5);
  }

  .fs-groupcard .fs-facts__value,
  .fs-hubcard .fs-facts__value,
  .fs-brandcard .fs-facts__value {
    font-size: var(--text-lg);
  }

  .fs-groupcard__status {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  .fs-groupcard__status--ranked {
    align-self: flex-start;
    padding: var(--space-2px) var(--space-12px);
    border-radius: var(--radius-full);
    background: var(--fs-kp-100);
    color: var(--fs-kp-800);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
  }

  /* The group's first track by 3 years, over the group's skyline: under a
     hairline at the card's foot, on the card's own white (the skyline's pale
     bars need it). */
  .fs-groupcard__leader {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-block-start: auto;
    padding-block-start: var(--space-3);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-groupcard__leader-label {
    color: var(--fs-kp-700);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
  }

  .fs-groupcard__leader-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
  }

  .fs-groupcard__leader-name {
    min-inline-size: 0;
    color: var(--fs-ink);
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-normal);
  }

  .fs-groupcard__leader-figure {
    flex: none;
    color: var(--fs-ink);
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
  }

  .fs-groupcard__leader-avg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--space-6px);
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  /* The average's key: the skyline's own dashed line. */
  .fs-groupcard__key {
    display: inline-block;
    inline-size: var(--fs-sky-key-w);
    block-size: 0;
    border-block-start: var(--fs-avg-w) dashed var(--fs-avg-ink);
  }

  /* A group that ranks with no first by 3 years this month: the reason, in
     the first's place at the card's foot (the hierarchy pass, 2026-10-12), so
     a row of cards ends on one line and no card's foot is a hole. */
  .fs-groupcard__leader-why {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  .fs-hubcard__text {
    color: var(--text-body);
    line-height: var(--lh-relaxed);
  }

  .fs-hubcard__closed {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  /* ── Product page: the tracks it does not compare ───────── */
  .fs-notcompared {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .fs-notcompared__reason {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
  }

  .fs-notcompared__why {
    max-inline-size: var(--fs-lede-measure);
    color: var(--text-body);
    line-height: var(--lh-relaxed);
  }

  .fs-notcompared__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--fs-card-min), 100%), 1fr));
    gap: 0 var(--space-4);
    list-style: none;
  }

  .fs-notcompared__item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-block: var(--space-2);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-notcompared__item a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    font-weight: var(--fw-semibold);
  }

  .fs-notcompared__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  /* ── Managing companies ─────────────────────────────────── */
  .fs-company-products a {
    font-weight: var(--fw-medium);
  }

  /* Two brands abreast on a phone, three on a tablet, four from 64em: a column
     of sixteen cards a phone screen high each would be a long scroll to the
     brand one came for. On a phone the card and its figures step down a size. */
  .fs-brandcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fs-brandcard {
    gap: var(--space-2);
    padding: var(--space-3);
  }

  .fs-brandcard__title,
  .fs-brandcard .fs-facts__value {
    font-size: var(--text-md);
  }

  .fs-brandcard .fs-facts {
    gap: var(--space-1) var(--space-4);
  }

  @media (min-width: 48em) {
    .fs-brandcards {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fs-brandcard {
      gap: var(--space-3);
      padding: var(--space-4);
    }

    .fs-brandcard__title,
    .fs-brandcard .fs-facts__value {
      font-size: var(--text-lg);
    }
  }

  @media (min-width: 64em) {
    .fs-brandcards {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  .fs-brandcard__heading {
    margin: 0;
    font-size: inherit;
  }

  /* The brand's name takes the title's ink and wraps; its bar keeps its colour
     and stays on the name's first line. */
  .fs-brandcard__title .fs-identity {
    align-items: flex-start;
  }

  .fs-brandcard__title .fs-idbar {
    margin-block-start: calc((1lh - var(--id-bar-height)) / 2);
  }

  .fs-brandcard__title .fs-identity__logo {
    block-size: var(--fs-logo-in-text);
    margin-block-start: calc((1lh - var(--fs-logo-in-text)) / 2);
  }

  .fs-brandcard__title .fs-identity__name {
    color: inherit;
    white-space: normal;
  }

  .fs-brandcard__products {
    margin-block-start: auto;
    padding-block-start: var(--space-2);
    border-block-start: var(--fs-hairline) solid var(--fs-line);
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  /* A sentence ("החברות המנהלות: …, …"), not a row of items: the base meta
     line's flex gap would open a second space after the colon. */
  .fs-company-legal {
    display: block;
    color: var(--text-muted);
  }

  /* A product's figures on a company page: a white card on the paper above its table. */
  .fs-section > .fs-facts {
    align-self: flex-start;
    gap: var(--space-2) var(--space-5);
    padding: var(--space-12px) var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
  }

  /* A product's section on a company page: its title links to the product,
     in the heading's ink until it is pointed at. */
  .fs-section__title a {
    color: inherit;
  }

  @media (hover: hover) {
    .fs-section__title a:hover {
      color: var(--fs-link);
    }
  }

  /* ── Product: how a reader compares (pages/product/HowToCompare) ── */
  /* Three numbered steps, three abreast from 64em; the first carries the
     product's tracks as chips that wrap, the way in. Below 64em the first
     takes the row and the other two, which only say what comes next, share
     the row under it (the hierarchy pass, 2026-10-12; phase 1's item 15):
     stacked, they pushed the track cards some 330px further down a phone. */
  .fs-howto__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-12px);
    list-style: none;
    counter-reset: fs-howto;
  }

  .fs-howto__step:first-child {
    grid-column: 1 / -1;
  }

  @media (min-width: 64em) {
    .fs-howto__steps {
      grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
      gap: var(--space-3);
      align-items: start;
    }

    .fs-howto__step:first-child {
      grid-column: auto;
    }
  }

  .fs-howto__step {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-inline-size: 0;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    counter-increment: fs-howto;
  }

  .fs-howto__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--fs-ink);
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
  }

  .fs-howto__title::before {
    content: counter(fs-howto);
    display: grid;
    place-items: center;
    flex: none;
    inline-size: var(--space-5);
    block-size: var(--space-5);
    border-radius: var(--radius-full);
    background: var(--fs-kp-100);
    color: var(--fs-kp-800);
    font-size: var(--text-13);
    font-weight: var(--fw-bold);
    font-variant-numeric: tabular-nums;
  }

  .fs-howto__text {
    color: var(--text-body);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
  }

  .fs-howto__chips {
    padding-block-start: var(--space-1);
  }

  /* On a phone the two half-width steps set their words a step down, so a
     line still holds a phrase in half the width. */
  @media (max-width: 47.99em) {
    .fs-howto__step {
      padding: var(--space-3);
    }

    .fs-howto__step:not(:first-child) {
      padding-inline: var(--space-12px);
    }

    .fs-howto__step:not(:first-child) .fs-howto__title {
      font-size: var(--text-15);
    }

    .fs-howto__step:not(:first-child) .fs-howto__text {
      font-size: var(--text-13);
      line-height: var(--lh-normal);
    }
  }

  /* ── Track: its portrait, beside the title (pages/track/TrackPortrait) ── */
  /* A white card on the paper holding the track's skyline by 3 years — every
     bar in the mid petrol, no bar the page's own — its caption and the
     average's key. Beside the title from 64em (PageIntro's aside), under it
     on a phone. Compact since the hierarchy pass (2026-10-12): the board's
     48px skyline, the key on the title's line, so on a phone the ranking it
     pictures starts about 70px sooner. */
  .fs-portrait {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'title key'
      'sky sky'
      'caption caption';
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-md);
  }

  @media (min-width: 48em) {
    .fs-portrait {
      padding: var(--space-3) var(--space-4) var(--space-4);
    }
  }

  .fs-portrait__title {
    grid-area: title;
    color: var(--fs-ink);
    font-size: var(--text-15);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
  }

  .fs-portrait .fs-skyline {
    grid-area: sky;
    margin-block: var(--space-1);
  }

  .fs-portrait__caption,
  .fs-portrait__key {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  .fs-portrait__caption {
    grid-area: caption;
  }

  .fs-portrait__key {
    grid-area: key;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
  }

  .fs-portrait__dash {
    flex: none;
    inline-size: var(--fs-sky-key-w);
    block-size: 0;
    border-block-start: var(--fs-avg-w) dashed var(--fs-avg-ink);
  }

  /* ── Track: the comparison of the first, above the period tabs ── */
  .fs-track-compare {
    padding-block-end: var(--space-1);
  }
}

/* ── src/sites/fund-site/styles/next.css ── */
/* Fund site — the end of a content page (components/NextSteps): where a
   reader goes from here. Layer fs-base: every page kind ends on it.

   The steps are cards that are one link each (the brand card's and the tool
   list's grammar: an icon tile, the label, one muted line, the arrow), two
   abreast from 48em, white on the paper. The licensee's box beside them is a
   light petrol panel, never the deep petrol card: the deep petrol is the
   fund page's lead box and the footer right under this box (design/
   decisions.md, "Kupot is the whole site's accent" and "— the direction").
   From 64em the steps and the box share one row.

   Interface details (UX phase 4, 2026-10-12): a card tints and frames on
   hover (where there is one) and nudges its arrow; it sinks on a press. The
   compact actions (StepLinks) are link rows with an arrow, no longer framed
   controls; the chips are drawn smaller and keep their 44px target. */

@layer fs-base {
  /* The section rule over its heading marks where it starts (site.css); the
     extra room above it is the pause before the page's last word. */
  .fs-next {
    margin-block-start: var(--space-6);
  }

  .fs-next__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
  }

  @media (min-width: 64em) {
    .fs-next__body--split {
      grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
      gap: var(--space-5);
    }
  }

  .fs-next__steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    list-style: none;
  }

  @media (min-width: 48em) {
    .fs-next__steps {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .fs-next__steps > li {
    display: flex;
    min-inline-size: 0;
  }

  .fs-next__step {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--space-3);
    min-inline-size: 0;
    min-block-size: calc(var(--fs-touch) + var(--space-5));
    padding: var(--space-3) var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
    color: var(--text-body);
    text-decoration: none;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      border-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-next__step:hover {
      border-color: var(--fs-kp-300);
      background: var(--fs-kp-50);
      color: var(--text-body);
      text-decoration: none;
    }
  }

  .fs-next__step:active {
    transform: var(--fs-press);
  }

  /* The ring follows the card's own corners (the base ring rounds a link to 4px). */
  .fs-next__step:focus-visible {
    border-radius: var(--fs-radius-tile);
  }

  /* A destination's tile in the full petrol, as the home page's families and
     its rules (white on 700: 7.7:1); a statement's tile is the light one. */
  .fs-next__icon {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: var(--fs-touch);
    block-size: var(--fs-touch);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-kp-700);
    color: var(--text-on-brand);
  }

  .fs-next__icon svg {
    inline-size: var(--space-20px);
    block-size: var(--space-20px);
  }

  .fs-next__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--space-2px);
    min-inline-size: 0;
  }

  .fs-next__label {
    color: var(--fs-ink);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
  }

  .fs-next__line {
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  .fs-next__arrow {
    flex: none;
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
    color: var(--fs-kp-500);
    transition: transform var(--fs-dur) var(--fs-ease);
  }

  /* The arrow points where the link goes, toward the end of the line: the
     left, on these right-to-left pages (checkSite holds dir="rtl" on every
     one), so its nudge is a physical step left, chosen for that and not
     inherited from a left-to-right recipe. */
  @media (hover: hover) {
    .fs-next__step:hover .fs-next__arrow {
      transform: translateX(calc(-1 * var(--space-1)));
    }
  }

  /* The licensee: the facts end here, and so does the page. */
  /* On the petrol-100, a step deeper than the paper so the box reads as the
     page's last word (the 50 is all but the paper's own tint); its ink keeps
     AA there: body 9.7:1, the heading ink 14.2:1. */
  .fs-next__advisor {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-kp-200);
    border-radius: var(--fs-radius-card);
    background: var(--fs-kp-100);
  }

  .fs-next__advisor-title {
    color: var(--fs-ink);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
  }

  .fs-next__advisor-text {
    max-inline-size: var(--fs-lede-measure);
    color: var(--text-body);
    line-height: var(--lh-relaxed);
  }

  .fs-next__advisor .fs-cta {
    margin-block-start: var(--space-2);
  }

  @media (max-width: 47.99em) {
    .fs-next__advisor .fs-cta {
      align-self: stretch;
    }
  }

  .fs-next__more {
    color: var(--text-muted);
    font-size: var(--fs-small);
  }

  .fs-next__more a {
    font-weight: var(--fw-medium);
  }

  /* The compact actions (StepLinks): the fund page's summary, the
     calculator's next actions, the track page's comparison of the first.
     Link rows, each an icon, its label and the arrow — a list read down on a
     phone, a hairline between rows, the arrow at the row's end; from 48em
     one line of links that wraps, an icon before each, the arrow left out (a
     row's end is where it points; inline, three arrows only crowded the
     line). Not framed (UX phase 4, the hand-off of §10.4): framed, the
     summary's three actions read as three buttons, and on a phone the lead
     box's four buttons came straight after them — seven buttons in a row,
     where now the lead box's are the only ones. */
  .fs-steplinks {
    display: flex;
    flex-direction: column;
    list-style: none;
  }

  .fs-steplinks > li {
    display: flex;
    min-inline-size: 0;
  }

  .fs-steplinks > li + li {
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  @media (min-width: 48em) {
    .fs-steplinks {
      flex-direction: row;
      flex-wrap: wrap;
      column-gap: var(--space-4);
    }

    .fs-steplinks > li + li {
      border-block-start: 0;
    }
  }

  .fs-steplink {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: var(--space-2);
    min-inline-size: 0;
    min-block-size: var(--fs-touch);
    padding-block: var(--space-2);
    color: var(--fs-link);
    font-size: var(--text-15);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    text-decoration: none;
    transition:
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  /* On a phone the label takes the row and the arrow stands at its end. */
  .fs-steplink__label {
    flex: 1 1 auto;
    min-inline-size: 0;
  }

  @media (min-width: 48em) {
    .fs-steplink__label {
      flex: 0 1 auto;
    }

    .fs-steplink__arrow {
      display: none;
    }
  }

  .fs-steplink__icon,
  .fs-steplink__arrow {
    flex: none;
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
    color: var(--fs-kp-500);
  }

  .fs-steplink__arrow {
    transition: transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-steplink:hover {
      color: var(--fs-link-hover);
      text-decoration: none;
    }

    .fs-steplink:hover .fs-steplink__label {
      text-decoration: underline;
      text-decoration-color: var(--fs-kp-300);
      text-underline-offset: var(--space-2px);
    }

    /* Toward the end of the line, the left: see .fs-next__arrow. */
    .fs-steplink:hover .fs-steplink__arrow {
      transform: translateX(calc(-1 * var(--space-1)));
    }
  }

  .fs-steplink:active {
    transform: var(--fs-press);
  }

  .fs-steplink:focus-visible {
    border-radius: var(--fs-radius-control);
  }

  /* A row of chips that are links (the product page's tracks, the search
     page's products): pills on white that wrap. Drawn 32px tall since UX
     phase 4 (they were 44: fifteen tracks took some 500px of a phone); the
     target is still 44px — the ::after reaches --fs-touch-slop above and
     below the pill, into a row gap of twice that, so a finger's target never
     shrinks and two rows' targets never overlap. */
  .fs-chiplinks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fs-chip-row-gap) var(--space-2);
    list-style: none;
  }

  .fs-chiplink {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-chip-h);
    padding: var(--space-1) var(--space-12px);
    border: var(--fs-hairline) solid var(--fs-control-line);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--fs-link);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    text-decoration: none;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      border-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  /* From the padding box, so past the hairline border too: the pill's 32px
     and the slop either side make the 44. */
  .fs-chiplink::after {
    content: '';
    position: absolute;
    inset-block: calc(-1 * (var(--fs-touch-slop) + var(--fs-hairline)));
    inset-inline: calc(-1 * var(--fs-hairline));
  }

  @media (hover: hover) {
    .fs-chiplink:hover {
      border-color: var(--fs-kp-600);
      background: var(--fs-kp-50);
      color: var(--fs-link-hover);
      text-decoration: none;
    }
  }

  .fs-chiplink:active {
    transform: var(--fs-press);
  }

  .fs-chiplink:focus-visible {
    border-radius: var(--radius-full);
  }

  /* A chip that leads somewhere on the same page, not to another one. */
  .fs-chiplink--more {
    border-style: dashed;
  }
}

/* ── src/sites/fund-site/styles/search.css ── */
/* Fund site — the search page (pages/search/SearchPage.tsx, client/search.js),
   and the picker the comparison and the calculator reuse (.fs-search__*).
   Layer fs-areas: the hero's search field, a status line, and the results as
   a list of rows, each the track's name (a link) over its number, company,
   product and group (client/search.js trackMeta, hairlines between them).

   [hidden] is the browser's own: the controls carry it until the script runs,
   and the fallback gets it once the script has the directory. */

@layer fs-areas {
  .fs-search {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .fs-search [hidden] {
    display: none;
  }

  .fs-search__controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-inline-size: var(--fs-lede-measure);
  }

  .fs-search__label {
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
  }

  .fs-search__input {
    inline-size: 100%;
    min-block-size: var(--fs-search-h-lg);
    padding: var(--space-2) var(--space-3);
    border: var(--fs-hairline) solid var(--fs-kp-500);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
    color: var(--fs-ink);
    font: inherit;
    font-size: var(--text-md);   /* 16px: a smaller box makes iOS zoom in on focus */
    box-shadow: var(--fs-shadow-md);
    transition: box-shadow var(--fs-dur) var(--fs-ease);
  }

  /* The icon sits at the field's start (site.css .fs-field); the text clears it. */
  .fs-field > .fs-search__input {
    padding-inline-start: var(--fs-field-icon-pad);
  }

  .fs-search__input:focus-visible {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring);
  }

  .fs-search__status {
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-search__results {
    display: flex;
    flex-direction: column;
    list-style: none;
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    overflow: hidden;
  }

  .fs-search__results:empty {
    display: none;
  }

  /* A row: the track's name over its facts, and on the search page its way
     into the comparison at the row's end (client/search.js resultItem; UX
     phase 4: phase 1's item 13), the same quiet link a ranking row has
     (site.css .fs-rowcompare). */
  .fs-search__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2px) var(--space-3);
    padding: var(--space-2) var(--space-4);
    transition: background-color var(--fs-dur) var(--fs-ease);
  }

  /* The way into the comparison stands on the name's line, so the facts
     under it keep the row's whole width (beside both, they wrapped on a
     phone). */
  .fs-search__item:has(> .fs-search__compare) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'name compare'
      'meta meta';
  }

  .fs-search__item:has(> .fs-search__compare) > .fs-search__name {
    grid-area: name;
  }

  .fs-search__item:has(> .fs-search__compare) > .fs-search__meta {
    grid-area: meta;
  }

  .fs-search__compare {
    grid-area: compare;
  }

  .fs-search__item + .fs-search__item {
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  @media (hover: hover) {
    .fs-search__item:hover {
      background: var(--fs-kp-50);
    }
  }

  /* Its words are one inline run inside the link (client/search.js
     nameLink): as flex items, a name's digit range stood apart from its
     words and took the space before it ("כלל תמר50-60"). */
  .fs-search__name {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-block-size: var(--fs-touch);
    font-size: var(--text-md);
    font-weight: var(--fw-semibold);
  }

  .fs-search__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) 0;
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-search__tag {
    margin-inline-start: var(--space-2);
  }

  .fs-search__fallback {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-inline-size: var(--fs-lede-measure);
    line-height: var(--lh-relaxed);
  }

}

/* ── src/sites/fund-site/styles/site.css ── */
/* Fund site — the base: layout, type, the shell (header, menus, search,
   footer), the calls to action and the shared data primitives (KPI tiles,
   DataTable, freshness, identity bar, notes). Plain semantic CSS on the design
   system's tokens and the site's own (tokens.site.css); every class is fs-*
   (never a Tailwind utility). Mobile first, a 16px gutter, and the page never
   scrolls sideways: a table scrolls inside its own wrapper.

   The language (owner decisions 2026-10-11, design/decisions.md "Kupot is the
   whole site's accent"): petrol is the one accent — links, the active page,
   headings' ink, the primary button, the light surfaces; green and red only
   say a fee is below or above its average. One radius system (card 16px,
   tile 12px, control 10px, chip a pill), shadows tinted to the petrol, 16px
   running text, and motion only as feedback (160ms, none when reduced).

   The direction (UX phase 2, the same night, design/decisions.md "The agency
   fund site — the direction"): three grounds and nothing else — the paper
   every page stands on, the white of every card a figure is read in, and the
   deep petrol of the frame (the home hero, the fund page's lead box, the
   footer). One device per job: the section rule over every section heading,
   and the skyline (components/Skyline) wherever a track is placed among its
   peers.

   Breakpoints are in em (48em = --bp-mobile, 64em = --bp-tablet, 75em = the
   width the header's full navigation needs): a custom property cannot sit in
   a media query.

   Interface details (UX phase 4, 2026-10-12; docs/plans/fund-site-ux-2026-10.md
   §11), one grammar for everything a reader presses:
     - hover only where there is one: every :hover sits in @media (hover:
       hover), so a tap never leaves a row, a chip or a section link lit up
       as if it were chosen (tokensParity.test.ts holds it);
     - hover never lifts or grows: it tints, frames, underlines, or nudges an
       arrow toward where the link goes;
     - a press sinks by --fs-press, on what is drawn as a thing to press (a
       card, a row, a chip, a tab, a button) — never on a link in a sentence;
     - focus is always a ring: the petrol one, the white one on the deep
       petrol, drawn inside where an ancestor clips;
     - a transition names its properties, at --fs-dur on --fs-ease. */

@layer fs-base {
  /* ── Document ─────────────────────────────────────────────── */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-block-start: var(--fs-anchor-clear);
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  body.fs-body {
    margin: 0;
    background: var(--fs-paper);
    color: var(--text-body);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    overflow-x: hidden;
  }

  h1,
  h2,
  h3 {
    margin: 0;
    color: var(--fs-ink);
    font-family: inherit;
    text-wrap: balance;
  }

  p {
    margin: 0;
  }

  a {
    color: var(--fs-link);
    text-decoration: none;
    transition: color var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    a:hover {
      color: var(--fs-link-hover);
      text-decoration: underline;
    }
  }

  /* A link inside a sentence is underlined: its petrol against the body ink is
     under 3:1, so colour alone would not tell it apart (WCAG 1.4.1). */
  p a,
  .fs-note a {
    text-decoration: underline;
    text-decoration-color: var(--fs-kp-300);
    text-underline-offset: var(--space-2px);
  }

  @media (hover: hover) {
    p a:hover,
    .fs-note a:hover {
      text-decoration-color: currentColor;
    }
  }

  /* A link that stands alone on its line (a "the whole ranking" under a
     table, the methodology under the next steps): a line tall, it gets the
     44px a finger needs from its own padding. An inline-block, not a flex
     box: its words and a count inside them (<Counted>) stay one line of text
     with their spaces. */
  .fs-link-row {
    display: inline-block;
    padding-block: calc((var(--fs-touch) - 1lh) / 2);
  }

  a:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible {
    outline: var(--fs-focus-outline);
    outline-offset: var(--fs-focus-offset);
    box-shadow: var(--fs-focus-ring);
    border-radius: var(--radius-50);
  }

  /* Inside a box that clips, the outward ring would be cut off — on a table's
     scroll region (its card is overflow: hidden, and a table with no head fills
     it edge to edge) entirely. The same ring, drawn inside. */
  .fs-table-wrap:focus-visible,
  .fs-nav__link:focus-visible {
    outline: var(--fs-focus-ring-outline);
    outline-offset: var(--fs-focus-ring-inset-offset);
    box-shadow: none;
  }

  /* On the deep petrol (the hero, the footer, the lead box) the petrol ring
     would vanish into the ground: the same ring in white. A white card on it
     (the hero's board) takes the petrol ring back. */
  .fs-on-deep a:focus-visible,
  .fs-on-deep summary:focus-visible,
  .fs-on-deep [tabindex]:focus-visible {
    box-shadow: var(--fs-focus-ring-on-kp);
  }

  .fs-on-deep .fs-on-light a:focus-visible {
    box-shadow: var(--fs-focus-ring);
  }

  ul,
  ol {
    margin: 0;
    padding: 0;
  }

  .fs-visually-hidden {
    position: absolute;
    inline-size: var(--fs-hairline);
    block-size: var(--fs-hairline);
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .fs-skip {
    position: absolute;
    inset-inline-start: var(--space-3);
    inset-block-start: var(--fs-skip-offset);
    z-index: var(--z-overlay);
    padding: var(--space-2) var(--space-3);
    background: var(--color-surface);
    color: var(--fs-ink);
    border: var(--fs-hairline) solid var(--fs-control-line);
    border-radius: var(--fs-radius-control);
  }

  .fs-skip:focus {
    inset-block-start: var(--space-2);
  }

  .fs-container {
    inline-size: 100%;
    max-inline-size: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--space-3);
  }

  @media (min-width: 48em) {
    .fs-container {
      padding-inline: var(--space-4);
    }
  }

  .fs-main {
    display: block;
    padding-block-end: var(--space-7);
  }

  /* Motion is feedback only, and none at all when the reader asked for less. */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      transition-duration: 0s !important;
      animation-duration: 0s !important;
    }
  }

  /* ── Numbers ─────────────────────────────────────────────── */
  .num {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .fs-missing {
    color: var(--text-muted);
  }

  /* ── Header ──────────────────────────────────────────────── */
  .fs-header {
    position: sticky;
    inset-block-start: 0;
    z-index: var(--z-sticky);
    background: var(--color-surface);
    border-block-end: var(--fs-hairline) solid var(--fs-line);
    box-shadow: var(--fs-shadow-sm);
  }

  .fs-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-block-size: var(--fs-header-h);
  }

  .fs-personal-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-2);
    /* The handoff to MoneyFlow carries its own brand green. */
    background: var(--color-primary-500);
    color: var(--color-black);
    border-radius: var(--fs-radius-control);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
    text-decoration: none;
    transition: background-color var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-personal-area:hover {
      background: var(--color-primary-600);
      color: var(--color-black);
      text-decoration: none;
    }
  }

  .fs-personal-area:focus-visible {
    outline: var(--fs-focus-ring-outline);
    outline-offset: var(--fs-focus-offset);
  }

  @media (min-width: 48em) {
    .fs-header__inner {
      gap: var(--space-3);
    }
  }

  .fs-brand {
    display: flex;
    align-items: center;
    flex: none;
    min-block-size: var(--fs-touch);
  }

  @media (hover: hover) {
    .fs-brand:hover {
      text-decoration: none;
    }
  }

  /* The mark (components/KupotMark): FlowSocial's lockup — tile, then the name
     over the byline. */
  .fs-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--fs-logo-gap);
  }

  .fs-logo__tile {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: var(--fs-logo-tile);
    block-size: var(--fs-logo-tile);
    border-radius: var(--fs-logo-radius);
    background: var(--fs-kupot-tint);
    color: var(--fs-kupot);
  }

  .fs-logo__tile svg {
    display: block;
    inline-size: var(--fs-logo-glyph);
    block-size: var(--fs-logo-glyph);
  }

  .fs-logo__text {
    display: flex;
    flex-direction: column;
    line-height: var(--fs-logo-lh);
  }

  .fs-logo__name {
    color: var(--fs-ink);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    letter-spacing: var(--fs-num-tracking);
  }

  /* --text-muted, not FlowSocial's #8a8a8a: that grey is 3.45:1 on white, and
     this is 12px text. */
  .fs-logo__byline {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
  }

  /* The full navigation needs 75em; below it, the menu button holds it. */
  .fs-nav {
    display: none;
  }

  @media (min-width: 75em) {
    .fs-nav {
      display: block;
      flex: none;
    }
  }

  .fs-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    white-space: nowrap;
  }

  .fs-nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-12px);
    border-radius: var(--fs-radius-control);
    color: var(--text-body);
    font-size: var(--text-15);
    font-weight: var(--fw-medium);
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-nav__link:hover {
      background: var(--fs-kp-50);
      color: var(--fs-ink);
      text-decoration: none;
    }
  }

  .fs-nav__link:active {
    transform: var(--fs-press);
  }

  .fs-nav__link[aria-current='page'],
  .fs-nav__link[data-current] {
    background: var(--fs-kp-50);
    color: var(--fs-link);
    font-weight: var(--fw-semibold);
  }

  /* ── Menus (<details>) ───────────────────────────────────── */
  .fs-menu {
    position: relative;
  }

  .fs-menu > summary {
    list-style: none;
    cursor: pointer;
  }

  .fs-menu > summary::-webkit-details-marker {
    display: none;
  }

  .fs-menu__chevron {
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
    transition: transform var(--fs-dur) var(--fs-ease);
  }

  .fs-menu[open] .fs-menu__chevron {
    transform: rotate(180deg);
  }

  .fs-menu[open] > .fs-menu__trigger {
    background: var(--fs-kp-50);
    color: var(--fs-ink);
  }

  .fs-menu__panel {
    position: absolute;
    inset-block-start: calc(100% + var(--space-2));
    inset-inline-start: 0;
    z-index: var(--z-dropdown);
    display: grid;
    grid-template-columns: repeat(3, minmax(var(--fs-menu-col), 1fr));
    gap: var(--space-4);
    inline-size: max-content;
    max-inline-size: var(--fs-menu-w);
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-lg);
    white-space: normal;
  }

  .fs-menu__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-inline-size: 0;
  }

  .fs-menu__group-title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-block-size: var(--space-5);
    color: var(--fs-ink);
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    letter-spacing: var(--fs-num-tracking);
  }

  /* A family's title that is a link (its hub) is a target like its links. */
  a.fs-menu__group-title {
    min-block-size: var(--fs-touch);
  }

  @media (hover: hover) {
    a.fs-menu__group-title:hover {
      color: var(--fs-link);
    }
  }

  .fs-menu__group-arrow {
    inline-size: var(--fs-icon-sm);
    block-size: var(--fs-icon-sm);
  }

  .fs-menu__list {
    display: flex;
    flex-direction: column;
    list-style: none;
  }

  .fs-menu__link {
    display: flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-2);
    margin-inline: calc(-1 * var(--space-2));
    border-radius: var(--fs-radius-control);
    color: var(--text-body);
    font-size: var(--text-15);
    line-height: var(--lh-normal);
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-menu__link:hover {
      background: var(--fs-kp-50);
      color: var(--fs-ink);
      text-decoration: none;
    }
  }

  .fs-menu__link:active {
    transform: var(--fs-press);
  }

  .fs-menu__link[aria-current='page'] {
    color: var(--fs-link);
    font-weight: var(--fw-semibold);
  }

  /* The menu button, below 75em: an icon, the open state an X. */
  .fs-menu--site {
    position: static;
    flex: none;
  }

  @media (min-width: 75em) {
    .fs-menu--site {
      display: none;
    }
  }

  .fs-menu__button {
    display: grid;
    place-items: center;
    inline-size: var(--fs-touch);
    block-size: var(--fs-touch);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-control);
    color: var(--fs-ink);
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  .fs-menu--site[open] > .fs-menu__button {
    background: var(--fs-kp-50);
  }

  @media (hover: hover) {
    .fs-menu__button:hover {
      background: var(--fs-kp-50);
    }
  }

  .fs-menu__button:active {
    transform: var(--fs-press);
  }

  .fs-menu__button svg {
    inline-size: var(--space-20px);
    block-size: var(--space-20px);
  }

  .fs-menu__close,
  .fs-menu--site[open] .fs-menu__open {
    display: none;
  }

  .fs-menu--site[open] .fs-menu__close {
    display: block;
  }

  /* The site menu drops the full width of the header, under it, and scrolls
     inside itself when it is taller than the screen. */
  .fs-menu__panel--site {
    inset-block-start: 100%;
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    inline-size: auto;
    max-inline-size: none;
    max-block-size: calc(100dvh - var(--fs-header-h));
    overflow-y: auto;
    padding: var(--space-4) var(--space-3) var(--space-5);
    border-width: var(--fs-hairline) 0;
    border-radius: 0;
  }

  .fs-menu__nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--fs-menu-col), 100%), 1fr));
    gap: var(--space-4);
  }

  @media (min-width: 48em) {
    .fs-menu__panel--site {
      padding-inline: var(--space-4);
    }
  }

  .fs-menu__cta {
    display: flex;
  }

  /* ── The search field (header and hero) ──────────────────── */
  /* In the header it shares the row: it takes the room the navigation leaves,
     up to --fs-search-w. */
  .fs-header .fs-hsearch {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    min-inline-size: 0;
  }

  @media (min-width: 48em) {
    .fs-header .fs-hsearch {
      justify-content: flex-start;
      max-inline-size: var(--fs-search-w);
      margin-inline-start: auto;
    }
  }

  .fs-hsearch__link,
  .fs-hsearch__field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    inline-size: 100%;
    min-block-size: var(--fs-search-h);
    padding-inline: var(--space-12px);
    border: var(--fs-hairline) solid var(--fs-control-line);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
    color: var(--text-muted);
    font-size: var(--text-15);
    transition:
      border-color var(--fs-dur) var(--fs-ease),
      box-shadow var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-hsearch__link:hover {
      border-color: var(--fs-kp-600);
      color: var(--text-body);
      text-decoration: none;
    }
  }

  .fs-hsearch__field:focus-within {
    border-color: var(--fs-kp-600);
    box-shadow: var(--fs-focus-ring);
  }

  .fs-hsearch__icon {
    flex: none;
    inline-size: var(--space-20px);
    block-size: var(--space-20px);
    color: var(--fs-link);
  }

  .fs-hsearch__hint {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fs-hsearch__input {
    flex: 1 1 auto;
    min-inline-size: 0;
    block-size: var(--fs-search-h);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fs-ink);
    font: inherit;
    outline: var(--fs-focus-outline);
  }

  .fs-hsearch__input::placeholder {
    color: var(--text-muted);
    opacity: 1;
  }

  /* In the header on a phone the field is an icon that opens the search page. */
  @media (max-width: 47.99em) {
    .fs-header .fs-hsearch {
      min-inline-size: var(--fs-touch);
    }

    .fs-header .fs-hsearch__link {
      inline-size: var(--fs-touch);
      min-block-size: var(--fs-touch);
      justify-content: center;
      padding: 0;
      border-color: var(--fs-line);
    }

    .fs-header .fs-hsearch__hint,
    .fs-header .fs-hsearch__field {
      display: none;
    }
  }

  /* Keep all header controls usable beside the MoneyFlow entry on narrow phones. */
  @media (max-width: 23em) {
    .fs-header__inner {
      gap: var(--space-1);
    }

    .fs-header .fs-logo__tile {
      display: none;
    }
  }

  /* Once client/nav.js has made the field real, the link steps aside — in the
     hero always, in the header from 48em (on a phone the icon stays the way in). */
  .fs-hsearch--hero[data-ready] .fs-hsearch__link {
    display: none;
  }

  @media (min-width: 48em) {
    .fs-header .fs-hsearch[data-ready] .fs-hsearch__link {
      display: none;
    }
  }

  /* ── Calls to action ─────────────────────────────────────── */
  .fs-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-block-size: var(--fs-button-h);
    padding: var(--space-1) var(--space-4);
    border: var(--fs-hairline) solid transparent;
    border-radius: var(--fs-radius-control);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    text-align: center;
    white-space: nowrap;
    cursor: default;
    user-select: none;
  }

  .fs-cta__label {
    font-size: var(--fs-body);
  }

  .fs-cta__note {
    font-size: var(--text-11);
    font-weight: var(--fw-regular);
    opacity: 0.9;
  }

  .fs-cta--primary {
    background: var(--fs-kp-700);
    color: var(--text-on-brand);
    box-shadow: var(--fs-shadow-md);
  }

  .fs-cta--secondary {
    background: var(--color-surface);
    color: var(--fs-link);
    border-color: var(--fs-control-line);
  }

  /* On the deep petrol (the lead box): the light button is the primary one. */
  .fs-cta--on-dark {
    background: transparent;
    color: var(--text-on-brand);
    border-color: var(--fs-on-kp-line);
  }

  /* Inside a ranking table: a product outline button (sm), no shadow. Each
     part keeps to one line, so a row's button never makes the row three lines
     tall. */
  .fs-cta--row {
    min-block-size: var(--fs-button-row-h);
    padding: var(--space-2px) var(--space-14px);
    background: var(--color-surface);
    color: var(--fs-link);
    border-color: var(--fs-line);
    font-weight: var(--fw-medium);
  }

  .fs-cta--row .fs-cta__label {
    font-size: var(--text-13);
  }

  /* A live call to action (cta mode 'lead_form'): a link to the form, or the
     form's own button. It takes the pointer, and its hover deepens the ground
     instead of recolouring the label — a:hover would turn the primary's white
     label petrol, on petrol. */
  a.fs-cta,
  button.fs-cta {
    cursor: pointer;
    user-select: auto;
    font-family: inherit;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    a.fs-cta:hover {
      text-decoration: none;
    }

    a.fs-cta--primary:hover,
    button.fs-cta--primary:hover:not(:disabled) {
      background: var(--fs-kp-800);
      color: var(--text-on-brand);
    }

    a.fs-cta--secondary:hover,
    a.fs-cta--row:hover {
      background: var(--fs-kp-50);
      color: var(--fs-link-hover);
    }

    a.fs-cta--on-dark:hover {
      background: var(--fs-on-kp-line);
      color: var(--text-on-brand);
    }
  }

  a.fs-cta:active,
  button.fs-cta:active:not(:disabled) {
    transform: var(--fs-press);
  }

  /* ── Page intro ──────────────────────────────────────────── */
  /* On the paper, as the page is: the white is kept for the cards that hold
     figures (the fund page's summary, a page's figures), so they stand out of
     the intro instead of being one more white plane on it. */
  .fs-intro {
    background: transparent;
  }

  .fs-intro__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-block: var(--space-3) var(--space-5);
  }

  /* The title block, then (the fund page) its summary, then the aside — the
     order a phone reads them in. From 64em the aside takes a column of its
     own: beside the title (a track page's portrait), or, where there is a
     summary, beside the summary, with the title across the whole row above
     both (the hierarchy pass, 2026-10-12). Beside the title, the fund page's
     lead box was the darkest and the first thing on the screen, above the
     answer; now the title leads, then the answer and the offer side by side,
     the answer first in reading order. */
  .fs-intro__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-4);
  }

  @media (min-width: 64em) {
    .fs-intro__row:has(> .fs-intro__aside) {
      grid-template-columns: minmax(0, 1fr) var(--fs-leadbox-w);
      column-gap: var(--space-5);
    }

    .fs-intro__aside {
      grid-column: 2;
      grid-row: 1 / span 2;
    }

    .fs-intro__main,
    .fs-intro__summary {
      grid-column: 1;
    }

    .fs-intro__row:has(> .fs-intro__summary) > .fs-intro__main {
      grid-column: 1 / -1;
    }

    .fs-intro__row:has(> .fs-intro__summary) > .fs-intro__aside {
      grid-row: 2;
    }
  }

  .fs-intro__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-12px);
    min-inline-size: 0;
  }

  .fs-intro__summary,
  .fs-intro__aside {
    min-inline-size: 0;
  }

  .fs-h1 {
    font-size: var(--fs-h1-sm);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    letter-spacing: var(--fs-display-tracking);
  }

  @media (min-width: 48em) {
    .fs-h1 {
      font-size: var(--fs-h1);
    }
  }

  .fs-lede {
    max-inline-size: var(--fs-lede-measure);
    color: var(--text-body);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
  }

  .fs-crumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 var(--space-2);
    list-style: none;
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-crumbs__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }

  .fs-crumbs__item + .fs-crumbs__item::before {
    content: '›';
    color: var(--fs-kp-400);
  }

  .fs-crumbs a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    color: var(--text-muted);
  }

  @media (hover: hover) {
    .fs-crumbs a:hover {
      color: var(--fs-link);
    }
  }

  .fs-crumbs [aria-current='page'] {
    color: var(--text-body);
  }

  /* The current page's crumb is the H1 right below it: it takes what is left
     of the line and is cut with an ellipsis there, rather than wrapping a long
     post title or fund name onto a line of its own. */
  .fs-crumbs__item:last-child {
    flex: 1 1 0;
    min-inline-size: 0;
  }

  .fs-crumbs__item:last-child > [aria-current='page'] {
    min-inline-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    color: var(--text-body);
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
  }

  /* The parts of a meta line (a track's number, company, product; a table's
     counts and order), set apart by a hairline, never a run of middle dots. */
  /* inline-block, not flex: a flex item drops the space after "קופה". */
  .fs-meta-part {
    display: inline-block;
  }

  .fs-meta-part + .fs-meta-part {
    margin-inline-start: var(--space-1);
    padding-inline-start: var(--space-2);
    border-inline-start: var(--fs-hairline) solid var(--fs-kp-200);
  }

  .fs-meta__legal {
    margin-inline-start: var(--space-1);
    color: var(--text-muted);
  }

  /* ── Section links (components/SectionLinks), sticky under the header ── */
  /* Full bleed: the white and the rule run past the container to the edges
     of the window, as the header's do (a shadow paints, it never widens the
     page; the clip keeps it to the bar's own height). */
  .fs-anchors {
    position: sticky;
    inset-block-start: var(--fs-header-h);
    z-index: var(--z-sticky);
    margin-block-start: var(--space-3);
    background: var(--color-surface);
    box-shadow:
      0 0 0 var(--fs-bleed) var(--color-surface),
      0 var(--fs-hairline) 0 var(--fs-bleed) var(--fs-line);
    clip-path: inset(0 calc(-1 * var(--fs-bleed)) calc(-1 * var(--fs-hairline)));
  }

  /* On a phone the list scrolls sideways with its scrollbar hidden, and its
     last link was simply cut at the edge, or the edge fell between two links
     and nothing said there was more (m7). Now an edge with links behind it
     fades them out (UX phase 4, 2026-10-12): client/nav.js says which edges
     (data-edges="start end"), on load and as the list scrolls; without the
     script a phone, where the list nearly always runs past the screen, fades
     its end. The fades sit on the bar, which does not scroll, at its logical
     edges; the gradients are physical, written for these right-to-left pages
     (checkSite holds dir="rtl" on every one): the start is the right. A
     CSS-only cue was tried first — a cover carried by the content over a
     shade the box holds (background-attachment: local) — and Chromium draws a
     local background mirrored in a right-to-left scroller: it said "more" at
     the edge that had none. */
  .fs-anchors::before,
  .fs-anchors::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset-block: 0;
    inline-size: var(--fs-scroll-fade-w);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--fs-dur) var(--fs-ease);
  }

  .fs-anchors::before {
    inset-inline-start: 0;
    background: linear-gradient(to left, var(--color-surface), transparent);
  }

  .fs-anchors::after {
    inset-inline-end: 0;
    background: linear-gradient(to right, var(--color-surface), transparent);
  }

  @media (max-width: 47.99em) {
    .fs-anchors:not([data-edges])::after {
      opacity: 1;
    }
  }

  .fs-anchors[data-edges~='start']::before,
  .fs-anchors[data-edges~='end']::after {
    opacity: 1;
  }

  .fs-anchors__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    min-block-size: var(--fs-anchors-h);
    overflow-x: auto;
    list-style: none;
    white-space: nowrap;
    scrollbar-width: none;
  }

  /* client/nav.js keeps the marked link in view: smoothly, unless the reader
     asked for less motion. */
  @media (prefers-reduced-motion: no-preference) {
    .fs-anchors__list {
      scroll-behavior: smooth;
    }
  }

  .fs-anchors__link {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-12px);
    border-radius: var(--radius-full);
    color: var(--text-body);
    font-size: var(--text-15);
    font-weight: var(--fw-medium);
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-anchors__link:hover {
      background: var(--fs-kp-50);
      color: var(--fs-ink);
      text-decoration: none;
    }
  }

  .fs-anchors__link:active {
    transform: var(--fs-press);
  }

  /* The section the reader is in (client/nav.js marks it with
     aria-current="location"; without the script there is no mark rather than
     a wrong one): the light petrol, and an underline in the page's own bar
     colour, so the mark is not the tint alone (WCAG 1.4.1). The weight does
     not change: a heavier label would widen it and shift every link after it.
     Forced colours keep the underline. */
  .fs-anchors__link[aria-current='location'] {
    background: var(--fs-kp-100);
    color: var(--fs-ink);
    text-decoration: underline;
    text-decoration-color: var(--fs-kp-600);
    text-decoration-thickness: var(--fs-current-mark-w);
    text-underline-offset: var(--fs-current-mark-offset);
  }

  .fs-anchors__link:focus-visible {
    outline: var(--fs-focus-ring-outline);
    outline-offset: var(--fs-focus-ring-inset-offset);
    box-shadow: none;
    border-radius: var(--radius-full);
  }

  /* ── A page's figures at a glance (components/StatStrip) ──── */
  /* One card, a cell per figure; from 64em the cells sit abreast with a
     hairline between them, on a phone two to a row. */
  .fs-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-3);
    margin: 0;
    padding: var(--space-4);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-card);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-md);
  }

  @media (min-width: 64em) {
    .fs-stats {
      grid-template-columns: repeat(auto-fit, minmax(var(--fs-stat-min), 1fr));
      gap: var(--space-3);
    }

    .fs-stats__cell + .fs-stats__cell {
      padding-inline-start: var(--space-4);
      border-inline-start: var(--fs-hairline) solid var(--fs-line);
    }
  }

  .fs-stats__cell {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-inline-size: 0;
  }

  .fs-stats__label {
    color: var(--text-muted);
    font-size: var(--text-13);
    font-weight: var(--fw-medium);
    line-height: var(--lh-normal);
  }

  .fs-stats__value {
    margin: 0;
    color: var(--fs-ink);
    font-size: var(--text-xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
  }

  .fs-stats__value .num {
    letter-spacing: var(--fs-num-tracking);
  }

  .fs-stats__sub {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
  }

  /* ── A product that takes no new members, said where it applies ── */
  .fs-closed-product {
    max-inline-size: var(--fs-lede-measure);
    padding: var(--space-2) var(--space-3);
    border-inline-start: var(--space-2px) solid var(--fs-kp-400);
    border-radius: var(--fs-radius-control);
    background: var(--color-surface);
    color: var(--fs-ink);
  }

  /* ── A search field with its icon (search, compare, calculator) ── */
  .fs-field {
    position: relative;
    display: flex;
    align-items: center;
  }

  .fs-field__icon {
    position: absolute;
    inset-inline-start: var(--space-3);
    inline-size: var(--space-20px);
    block-size: var(--space-20px);
    color: var(--fs-link);
    pointer-events: none;
  }

  .fs-field > input,
  .fs-field > .fs-search__input {
    padding-inline-start: var(--fs-field-icon-pad);
  }

  /* ── Freshness (§5.15) ───────────────────────────────────── */
  /* Its parts are set apart by a hairline, not a run of middle dots. */
  /* Where one row cannot hold its parts (a phone, the footer's column) they
     stack beside the icon, so a hairline is never left hanging at the end of
     a wrapped line; from 48em they sit in one row, apart by the hairline. */
  .fs-fresh {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-1) var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-13);
    font-weight: var(--fw-medium);
    line-height: var(--lh-normal);
  }

  .fs-fresh > :not(.fs-fresh__icon) {
    grid-column: 2;
  }

  .fs-fresh__icon {
    inline-size: var(--fs-icon-sm);
    block-size: var(--fs-icon-sm);
    flex: none;
    color: var(--fs-kp-600);
  }

  .fs-fresh__sep {
    display: none;
    inline-size: var(--fs-hairline);
    block-size: var(--space-3);
    overflow: hidden;
    background: var(--fs-kp-200);
    color: transparent;
  }

  @media (min-width: 48em) {
    .fs-fresh {
      display: flex;
      flex-wrap: wrap;
    }

    .fs-fresh__sep {
      display: inline-block;
    }

    .fs-footer .fs-fresh {
      display: grid;
    }

    .fs-footer .fs-fresh__sep {
      display: none;
    }
  }

  /* ── Identity (§5.22) ────────────────────────────────────── */
  .fs-idbar {
    inline-size: var(--id-bar-width);
    block-size: var(--id-bar-height);
    flex: none;
    border-radius: var(--radius-full);
  }

  /* A brand's logo in the bar's place (logos/manifest.ts, the system's own
     file): an icon's height in a row, its own width, never wider than a tile.
     In a heading it takes the heading's size (lists.css keeps it on the first
     line of a name that wraps). */
  .fs-identity__logo {
    block-size: var(--fs-icon);
    inline-size: auto;
    max-inline-size: var(--fs-kpi-min);
    flex: none;
    border-radius: var(--radius-50);
    object-fit: contain;
  }

  .fs-h1 .fs-identity__logo {
    block-size: var(--fs-logo-in-text);
  }

  .fs-idbar__fallback {
    fill: var(--id-fallback);
  }

  .fs-identity {
    display: inline-flex;
    align-items: center;
    gap: var(--space-6px);
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  .fs-identity__name {
    color: var(--text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fs-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2px) var(--space-2);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--radius-full);
    background: var(--fs-kp-50);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
  }

  /* ── Sections and notes ──────────────────────────────────── */
  .fs-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-block-start: var(--space-6);
  }

  .fs-section__title {
    font-size: var(--fs-h2-sm);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    letter-spacing: var(--fs-display-tracking);
    scroll-margin-block-start: var(--fs-anchor-clear);
  }

  @media (min-width: 48em) {
    .fs-section__title {
      font-size: var(--fs-h2);
    }
  }

  /* The section rule: the mark's bar laid down over every section heading of
     a page — the one sign, on a long page of figures, that a new part starts.
     A heading inside a card (h3) has none. */
  h2.fs-section__title::before {
    content: '';
    display: block;
    inline-size: var(--fs-rule-w);
    block-size: var(--fs-rule-h);
    margin-block-end: var(--space-12px);
    border-radius: var(--radius-full);
    background: var(--fs-kp-500);
  }

  @media (forced-colors: active) {
    h2.fs-section__title::before {
      background: CanvasText;
    }
  }

  .fs-subtitle {
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
  }

  .fs-note {
    max-inline-size: var(--fs-lede-measure);
    color: var(--text-muted);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
  }

  /* The advisor pointer ends every comparison (CLAUDE.md, compliance
     framing). It is the same sentence each time, so it reads as one quiet
     line set off by a rule, never as another paragraph to read. */
  .fs-note--advisor {
    padding-inline-start: var(--space-12px);
    border-inline-start: var(--space-2px) solid var(--fs-kp-200);
    font-size: var(--text-13);
  }

  .fs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-inline-start: var(--space-4);
    line-height: var(--lh-relaxed);
  }

  .fs-rules {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-inline-size: var(--fs-lede-measure);
    padding-inline-start: var(--space-4);
    line-height: var(--lh-relaxed);
  }

  .fs-excluded {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .fs-excluded__why {
    color: var(--text-body);
  }

  /* ── Labelled figures ────────────────────────────────────── */
  .fs-facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: 0;
  }

  .fs-facts__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2px);
  }

  .fs-facts__label {
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-facts__value {
    margin: 0;
    color: var(--fs-ink);
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
  }

  /* ── Fee words and the ₪ estimate ────────────────────────── */
  .fs-delta {
    font-weight: var(--fw-semibold);
  }

  .fs-delta--below {
    color: var(--color-success-strong);
  }

  .fs-delta--above {
    color: var(--color-danger-strong);
  }

  .fs-delta--near,
  .fs-delta--none {
    color: var(--text-muted);
  }

  /* On the petrol-100, so the ₪ estimate stands out of the paper and of a
     white card alike (the ink 14.2:1, body 9.7:1 on it). */
  .fs-estimate {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: var(--fs-hairline) solid var(--fs-kp-200);
    border-radius: var(--fs-radius-tile);
    background: var(--fs-kp-100);
  }

  .fs-estimate__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    color: var(--fs-ink);
  }

  /* ── KPI tiles (§5.14) ───────────────────────────────────── */
  .fs-kpis {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .fs-kpis__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--fs-kpi-min), 100%), 1fr));
    gap: var(--space-3);
  }

  /* Each tile spans three rows of its grid and shares them (subgrid): label,
     figure and sub-line each sit on one line across a row of tiles, whatever a
     label or a sub-line wraps to, so the figures of a row line up. */
  .fs-kpi {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: var(--space-10px);
    min-inline-size: 0;
    padding: var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
  }

  .fs-kpi__head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-inline-size: 0;
  }

  .fs-kpi__tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: var(--fs-icon-tile);
    block-size: var(--fs-icon-tile);
    flex: none;
    border-radius: var(--radius-100);
  }

  .fs-kpi__tile svg {
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
  }

  /* The four categories in the one accent: what the regulator published on
     the light tint, what the site computed on the full petrol — the
     distinction is the tile's weight, not a second hue. */
  .fs-kpi__tile--source {
    background: var(--fs-kp-100);
    color: var(--fs-kp-800);
  }

  .fs-kpi__tile--computed {
    background: var(--fs-kp-700);
    color: var(--text-on-brand);
  }

  .fs-kpi__tile--record,
  .fs-kpi__tile--people {
    background: var(--color-neutral-50);
    color: var(--text-muted);
  }

  .fs-kpi__label {
    overflow: hidden;
    color: var(--text-body);
    font-size: var(--text-13);
    font-weight: var(--fw-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fs-kpi__value {
    color: var(--fs-ink);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
  }

  .fs-kpi__value > .num {
    font-size: var(--fs-kpi-figure);
    line-height: var(--lh-tight);
    letter-spacing: var(--fs-num-tracking);
  }

  .fs-kpi__sub {
    min-block-size: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  /* A group that is a sequence (one figure per return window) as one card of
     rows on a phone (KpiGroup `list`; the hierarchy pass, 2026-10-12): the
     label at the start, the figure at the end of the same line like a table's,
     the sub-line under both at the row's full width (so the average and its
     coverage stay on one line), a hairline between rows — read down in order,
     rather than zig-zagging across two tiles a row with the fifth alone.
     Tiles from 48em. */
  @media (max-width: 47.99em) {
    .fs-kpis--list .fs-kpis__grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      padding-inline: var(--space-3);
      border: var(--fs-hairline) solid var(--fs-line);
      border-radius: var(--fs-radius-tile);
      background: var(--color-surface);
      box-shadow: var(--fs-shadow-sm);
    }

    .fs-kpis--list .fs-kpi {
      grid-row: auto;
      grid-template-rows: none;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        'head value'
        'sub sub';
      align-items: center;
      gap: var(--space-1) var(--space-3);
      padding: var(--space-10px) 0;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
    }

    .fs-kpis--list .fs-kpi + .fs-kpi {
      border-block-start: var(--fs-hairline) solid var(--fs-line);
    }

    .fs-kpis--list .fs-kpi__head {
      grid-area: head;
    }

    .fs-kpis--list .fs-kpi__value {
      grid-area: value;
      text-align: end;
    }

    .fs-kpis--list .fs-kpi__value > .num {
      font-size: var(--text-xl);
    }

    .fs-kpis--list .fs-kpi__sub {
      grid-area: sub;
      min-block-size: 0;
    }

    .fs-kpis--list .fs-kpi__sub:empty {
      display: none;
    }
  }

  /* ── DataTable (§5.16) ───────────────────────────────────── */
  .fs-table-card {
    display: flex;
    flex-direction: column;
    min-inline-size: 0;
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    box-shadow: var(--fs-shadow-sm);
    overflow: hidden;
  }

  .fs-table-card__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) var(--table-edge-pad);
    background: var(--fs-kp-50);
    border-block-end: var(--fs-hairline) solid var(--fs-line);
  }

  .fs-table-card__title {
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
  }

  .fs-table-card__meta {
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  .fs-table-card__lead,
  .fs-table-card__notes {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--table-edge-pad);
  }

  .fs-table-card__notes {
    border-block-start: var(--fs-hairline) solid var(--fs-line);
  }

  /* Positioned, so the visually hidden caption (position: absolute) is held and
     clipped by the scroll box instead of widening the page. */
  .fs-table-wrap {
    position: relative;
    overflow-x: auto;
  }

  .fs-table {
    inline-size: 100%;
    min-inline-size: var(--table-min-width);
    border-collapse: collapse;
    font-family: var(--font-brand);
    font-size: var(--fs-small);
  }

  /* The head row stands on a heavier rule than the rows below it: the line
     a printed table draws under its heads. */
  .fs-table th[scope='col'] {
    padding: var(--table-head-pad);
    background: var(--color-surface);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    text-align: center;
    white-space: nowrap;
    border-block-end: var(--space-2px) solid var(--fs-kp-200);
  }

  .fs-table tbody th,
  .fs-table tbody td {
    padding: var(--table-cell-pad);
    color: var(--table-cell-color);
    font-weight: var(--fw-regular);
    text-align: center;
    vertical-align: middle;
    border-block-end: var(--fs-hairline) solid var(--color-neutral-50);
  }

  .fs-table tbody tr:last-child th,
  .fs-table tbody tr:last-child td {
    border-block-end: 0;
  }

  .fs-table tbody tr {
    transition: var(--table-row-transition);
  }

  @media (hover: hover) {
    .fs-table tbody tr:hover {
      background: var(--fs-kp-50);
    }
  }

  /* The page's own row: the light petrol, and a bar at its start in the
     skyline's own colour (the bar is the mark that is not colour alone,
     beside the row's tag). */
  .fs-table .fs-table__row--current {
    background: var(--fs-kp-100);
  }

  @media (hover: hover) {
    .fs-table .fs-table__row--current:hover {
      background: var(--fs-kp-100);
    }
  }

  .fs-table .fs-table__row--current > :first-child {
    position: relative;
  }

  .fs-table .fs-table__row--current > :first-child::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: var(--space-1);
    background: var(--fs-sky-own);
  }

  /* A place in a ranking: the rank as a quiet chip, every rank alike — a
     position, never a medal; the page's own row's chip in the full petrol. */
  .fs-table .fs-table__cell--rank .num:not(.fs-missing) {
    display: inline-grid;
    place-items: center;
    min-inline-size: var(--space-4);
    block-size: var(--space-4);
    padding-inline: var(--space-6px);
    border-radius: var(--radius-full);
    background: var(--fs-kp-50);
    color: var(--fs-kp-800);
    font-size: var(--text-13);
    font-weight: var(--fw-semibold);
  }

  .fs-table .fs-table__row--current .fs-table__cell--rank .num:not(.fs-missing) {
    background: var(--fs-kp-700);
    color: var(--text-on-brand);
  }

  /* The figure the table is ranked by, a weight above the others in its row. */
  .fs-table tbody .fs-table__cell--key .num {
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
  }

  .fs-table .fs-table__cell--label {
    min-inline-size: var(--fs-label-col-min);
    text-align: start;
  }

  .fs-table tr > :first-child {
    padding-inline-start: var(--table-edge-pad);
  }

  .fs-table tr > :last-child {
    padding-inline-end: var(--table-edge-pad);
  }

  .fs-table .fs-table__cell--num .num {
    letter-spacing: var(--fs-num-tracking);
  }

  /* The average row: dashed above, as the average is dashed in every skyline
     and in the growth chart — the site's one sign for "the track's average". */
  .fs-table tfoot th,
  .fs-table tfoot td {
    padding: var(--table-cell-pad);
    background: var(--fs-kp-50);
    color: var(--fs-ink);
    font-weight: var(--fw-semibold);
    text-align: center;
    border-block-start: var(--fs-hairline) dashed var(--fs-kp-300);
  }

  .fs-table tfoot .fs-table__cell--label {
    text-align: start;
  }

  .fs-avg {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2px);
  }

  .fs-avg__cover {
    color: var(--text-muted);
    font-size: var(--text-11);
    font-weight: var(--fw-regular);
    white-space: nowrap;
  }

  .fs-fundcell {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2px);
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  .fs-fundcell__name {
    font-weight: var(--fw-semibold);
  }

  /* A ranking row's way into the comparison (components/RowCompare, UX phase
     4: phase 1's item 13): the same quiet link on every row — an arrow pair
     and the word, the petrol of a link, no frame, so it is never mistaken for
     the row's call to action beside it and singles no row out. A full touch
     target, inside the row's own height. */
  .fs-rowcompare {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-block-size: var(--fs-touch);
    padding-inline: var(--space-2);
    border-radius: var(--fs-radius-control);
    color: var(--fs-link);
    font-size: var(--text-13);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
    text-decoration: none;
    transition:
      background-color var(--fs-dur) var(--fs-ease),
      color var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  .fs-rowcompare svg {
    flex: none;
    inline-size: var(--fs-icon);
    block-size: var(--fs-icon);
    color: var(--fs-kp-500);
  }

  /* Underlined on hover rather than tinted: the row under it is tinted
     already (and the page's own row is petrol-100). */
  @media (hover: hover) {
    .fs-rowcompare:hover {
      color: var(--fs-link-hover);
      text-decoration: underline;
      text-underline-offset: var(--space-2px);
    }
  }

  .fs-rowcompare:active {
    transform: var(--fs-press);
  }

  .fs-rowcompare:focus-visible {
    border-radius: var(--fs-radius-control);
  }

  /* ── The skyline (components/Skyline) ───────────────────── */
  /* A track's public tracks as rounded bars, rank 1 at the reading edge.
     Stretched to its box's width, drawn to its height in pixels (the size's
     token, which the component's viewBox repeats); the lines in screen
     pixels whatever the stretch. */
  .fs-skyline {
    display: block;
    inline-size: 100%;
    block-size: var(--fs-sky-h);
    overflow: visible;
  }

  .fs-skyline--sm {
    block-size: var(--fs-sky-h-sm);
  }

  .fs-skyline--md {
    block-size: var(--fs-sky-h-md);
  }

  .fs-skyline__bar {
    fill: var(--fs-sky-peer);
  }

  /* No bar is the page's (a track's own portrait): every bar in the mid petrol. */
  .fs-skyline--all .fs-skyline__bar {
    fill: var(--fs-sky-all);
  }

  .fs-skyline__bar--own {
    fill: var(--fs-sky-own);
  }

  .fs-skyline__avg,
  .fs-skyline__base {
    fill: none;
    vector-effect: non-scaling-stroke;
  }

  .fs-skyline__avg {
    stroke: var(--fs-avg-ink);
    stroke-width: var(--fs-avg-w);
    stroke-dasharray: var(--fs-avg-dash);
  }

  .fs-skyline__base {
    stroke: var(--fs-kp-200);
    stroke-width: var(--fs-sky-base-w);
  }

  /* The one entrance: a skyline that is a page's answer draws itself once, in
     reading order (from the first bar at the right), on arrival. Before it
     starts it is clipped away; once it ends the clip is gone. */
  @media (prefers-reduced-motion: no-preference) {
    .fs-skyline--enter {
      animation: fs-skyline-in var(--fs-enter-dur) var(--fs-ease) var(--fs-enter-delay) backwards;
    }
  }

  @keyframes fs-skyline-in {
    from {
      clip-path: inset(0 0 0 100%);
    }

    to {
      clip-path: inset(0);
    }
  }

  @media (forced-colors: active) {
    .fs-skyline__bar {
      fill: GrayText;
    }

    .fs-skyline__bar--own {
      fill: CanvasText;
    }

    .fs-skyline__avg {
      stroke: CanvasText;
    }
  }

  /* Its legend, where a bar is the page's: a key and a word for each. */
  .fs-skyline-keys {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    list-style: none;
    color: var(--text-muted);
    font-size: var(--text-13);
    line-height: var(--lh-normal);
  }

  .fs-skyline-keys__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }

  .fs-skyline-keys__key {
    flex: none;
    inline-size: var(--fs-sky-key-w);
    block-size: 0;
    border-block-start: var(--fs-sky-key-h) solid var(--fs-sky-own);
    border-radius: var(--radius-50);
  }

  .fs-skyline-keys__key--avg {
    border-block-start: var(--fs-avg-w) dashed var(--fs-avg-ink);
    border-radius: 0;
  }

  /* ── Tiles (product lists) ───────────────────────────────── */
  .fs-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--fs-tile-min), 100%), 1fr));
    gap: var(--space-3);
    list-style: none;
  }

  .fs-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    block-size: 100%;
    padding: var(--space-3);
    border: var(--fs-hairline) solid var(--fs-line);
    border-radius: var(--fs-radius-tile);
    background: var(--color-surface);
    color: var(--text-body);
    box-shadow: var(--fs-shadow-sm);
    transition:
      border-color var(--fs-dur) var(--fs-ease),
      box-shadow var(--fs-dur) var(--fs-ease),
      transform var(--fs-dur) var(--fs-ease);
  }

  @media (hover: hover) {
    .fs-tile:hover {
      border-color: var(--fs-kp-300);
      box-shadow: var(--fs-shadow-md);
      color: var(--text-body);
      text-decoration: none;
    }
  }

  a.fs-tile:active {
    transform: var(--fs-press);
  }

  .fs-tile__label {
    color: var(--fs-ink);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
  }

  .fs-tile__meta {
    color: var(--text-muted);
    font-size: var(--text-13);
  }

  /* ── Footer ──────────────────────────────────────────────── */
  /* The deep petrol (the direction, 2026-10-11): every page lands on the
     site's colour, the frame the home hero opens. Its words in white and the
     80% white (10.9:1), its keys in the light petrol (8.5:1); the mark keeps
     its own pale tile, which reads on the deep as it does on white. */
  .fs-footer {
    background: var(--fs-deep);
    color: var(--fs-on-kp-muted);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
  }

  .fs-footer .fs-logo__name {
    color: var(--text-on-brand);
  }

  .fs-footer .fs-logo__byline,
  .fs-footer .fs-fresh {
    color: var(--fs-on-kp-muted);
  }

  .fs-footer .fs-fresh__icon {
    color: var(--fs-on-kp-accent);
  }

  .fs-footer .fs-fresh__sep {
    background: var(--fs-on-kp-line);
  }

  .fs-footer__map {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    padding-block: var(--space-6) var(--space-5);
  }

  @media (min-width: 64em) {
    .fs-footer__map {
      grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
      gap: var(--space-6);
    }
  }

  .fs-footer__about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .fs-footer__lede {
    max-inline-size: var(--fs-lede-measure);
    color: var(--fs-on-kp-muted);
  }

  .fs-footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--fs-col-min-sm), 100%), 1fr));
    gap: var(--space-4) var(--space-3);
  }

  @media (min-width: 48em) {
    .fs-footer__nav {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }

  .fs-footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-inline-size: 0;
  }

  .fs-footer__title {
    color: var(--text-on-brand);
    font-size: var(--text-13);
    font-weight: var(--fw-bold);
  }

  .fs-footer__list,
  .fs-footer__legal {
    display: flex;
    flex-direction: column;
    list-style: none;
  }

  .fs-footer__legal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 var(--space-4);
  }

  /* A label that wraps (a product named by its years, "פוליסות שהונפקו בשנים
     1992-2003", in a phone's half-width column) reads as one item: its lines
     close together, a little air before the next link. Its words are one
     inline run inside the link (SiteFooter), so the years stay on the words'
     line instead of standing beside a three-line column of them (m6). */
  .fs-footer__list a,
  .fs-footer__legal a {
    display: inline-flex;
    align-items: center;
    min-block-size: var(--fs-touch);
    padding-block: var(--space-1);
    color: var(--fs-on-kp-muted);
    line-height: var(--lh-normal);
  }

  @media (hover: hover) {
    .fs-footer__list a:hover,
    .fs-footer__legal a:hover {
      color: var(--text-on-brand);
    }
  }

  @media (min-width: 48em) {
    .fs-footer__list a {
      min-block-size: var(--space-5);
    }
  }

  .fs-footer__fine {
    border-block-start: var(--fs-hairline) solid var(--fs-on-kp-line);
  }

  .fs-footer__fine-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-block: var(--space-4) var(--space-5);
    font-size: var(--text-13);
  }

  /* The agency's fields: a hairline between them, not a run of dots. */
  .fs-footer__agency {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-3);
  }

  .fs-footer__agency > span + span {
    padding-inline-start: var(--space-3);
    border-inline-start: var(--fs-hairline) solid var(--fs-on-kp-line);
  }

  .fs-footer__disclaimer {
    max-inline-size: var(--fs-measure);
  }

  .fs-notfound {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-block: var(--space-5);
  }
}

/* ── src/sites/fund-site/styles/visual.css ── */
/* The approved whole-site art direction. Shared geometry stays in the base
   and area files; this layer supplies the brand's paper, marker and rhythm.
   Sources: MoneyFlow Highlight/TexturedGround; Figma P17nomDXWJ8nLz4QwVyV7F,
   white landing 568:155152. Rubik and logical properties keep it native RTL. */
@layer fs-areas {
  .fs-container { max-inline-size: var(--fs-brand-width); }
  .fs-header { box-shadow: none; background: var(--color-white); }

  .fs-kicker, .fs-board-label {
    display: flex; align-items: center; gap: var(--space-10px);
    color: var(--fs-kp-700); font-size: var(--text-13); font-weight: var(--fw-medium); line-height: 1.5;
  }
  .fs-kicker::before { content: ''; inline-size: var(--space-4); block-size: var(--space-2px); background: var(--fs-kp-500); }
  .fs-marker {
    background: var(--fs-kp-600); color: var(--color-white); padding: var(--fs-brand-marker-pad);
    border-radius: var(--space-2px); -webkit-box-decoration-break: clone; box-decoration-break: clone; font-weight: inherit;
  }

  /* The homepage: the data itself is the illustration. */
  .fs-hero { background: var(--fs-brand-ground); border-block-end: var(--fs-hairline) solid var(--fs-line); }
  .fs-hero__inner { padding-block: var(--space-7); grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: var(--space-6); }
  .fs-hero__text { gap: var(--space-4); color: var(--text-body); }
  .fs-hero__text::before { display: none; }
  .fs-hero__title { font-size: clamp(var(--fs-brand-title-sm), 4.8vw, var(--fs-brand-title)); font-weight: var(--fw-medium); line-height: 1.23; letter-spacing: var(--fs-brand-tracking); color: var(--fs-ink); max-inline-size: none; text-wrap: initial; }
  .fs-hero__sub { font-size: var(--text-md); color: var(--text-muted); line-height: 1.8; max-inline-size: 48ch; }
  .fs-hero__sub strong { font-size: var(--text-18); font-weight: var(--fw-medium); color: var(--fs-ink); line-height: 2.1; }
  .fs-hero__actions { gap: var(--space-10px); padding-block-start: 0; max-inline-size: none; flex-direction: column; align-items: flex-start; }
  .fs-hsearch--hero { flex: 0 0 auto; inline-size: 100%; }
  .fs-hero .fs-hsearch--hero .fs-hsearch__field, .fs-hero .fs-hsearch--hero .fs-hsearch__link { border: var(--fs-hairline) solid var(--fs-control-line); box-shadow: var(--fs-brand-shadow); border-radius: var(--fs-radius-tile); min-block-size: var(--fs-search-h-lg); background: var(--color-white); }
  .fs-hero .fs-hsearch--hero .fs-hsearch__field:focus-within { border-color: var(--fs-kp-600); box-shadow: var(--fs-focus-ring); }
  .fs-hero .fs-cta--primary { display: inline-flex; flex-direction: row; align-items: center; background: var(--fs-kp-700); color: var(--color-white); border: var(--fs-hairline) solid var(--fs-kp-700); border-radius: var(--fs-radius-control); min-block-size: var(--fs-button-h); padding-inline: var(--space-4); box-shadow: var(--fs-shadow-sm); }
  .fs-hero .fs-cta--primary::after { content: '←'; margin-inline-start: var(--space-10px); font-size: var(--text-22); font-weight: var(--fw-regular); }
  .fs-hero a.fs-cta:focus-visible { box-shadow: var(--fs-focus-ring); }
  .fs-hero__paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); border: 0; background: none; border-radius: 0; }
  .fs-hero__paths > li + li { border: 0; }
  .fs-hero-path { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; padding: 0; color: var(--fs-ink); border: 0; background: none; border-radius: 0; }
  .fs-hero-path__icon { color: var(--fs-kp-700); inline-size: var(--space-4); block-size: var(--space-4); }
  .fs-hero-path__text { display: flex; flex-direction: column; gap: var(--space-1); }
  .fs-hero-path__label { color: var(--fs-ink); font-weight: var(--fw-medium); font-size: var(--text-base); }
  .fs-hero-path__line { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.55; }
  .fs-hero-path__arrow { display: none; }
  .fs-hero__eyebrow { border: 0; background: none; padding: 0; border-radius: 0; max-inline-size: 100%; }
  .fs-hero__eyebrow .fs-fresh { color: var(--text-muted); line-height: 1.6; font-size: var(--text-sm); flex-wrap: wrap; }
  .fs-hero__eyebrow .fs-fresh__icon { color: var(--fs-kp-700); }
  .fs-hero__eyebrow .fs-fresh__sep { background: var(--fs-line); }

  .fs-brand-stage { position: relative; isolation: isolate; padding: var(--space-4); min-inline-size: 0; }
  .fs-brand-stage::before { content: ''; position: absolute; inset: calc(-1 * var(--space-4)) 0; z-index: -2; background-image: var(--fs-brand-grid-paint); background-size: var(--fs-brand-grid-size) var(--fs-brand-grid-size); mask-image: var(--fs-brand-grid-mask); pointer-events: none; }
  .fs-brand-cell { position: absolute; inline-size: var(--fs-brand-grid-size); block-size: var(--fs-brand-grid-size); background: var(--fs-brand-cell); z-index: -1; pointer-events: none; }
  .fs-brand-cell--a { inset-inline-end: 0; inset-block-start: var(--space-6); }
  .fs-brand-cell--b { inset-inline-start: 0; inset-block-start: 35%; }
  .fs-brand-cell--c { inset-inline-end: var(--fs-brand-grid-size); inset-block-end: var(--space-5); }
  .fs-leaders { background: transparent; border: 0; box-shadow: none; padding: 0; gap: var(--space-12px); margin-block-start: 0; border-radius: 0; }
  .fs-board-label { padding-inline: var(--space-2); }
  .fs-board-label::after { content: ''; flex: 1; block-size: var(--fs-hairline); background: var(--fs-kp-200); }
  .fs-leaders__title { font-weight: var(--fw-regular); font-size: var(--text-13); line-height: 1.6; padding-inline: var(--space-2); color: var(--text-muted); }
  .fs-leaders__list { gap: var(--space-12px); }
  .fs-leader, .fs-leader:first-child { padding: var(--space-3); gap: var(--space-6px); border: var(--fs-hairline) solid var(--fs-line); border-radius: var(--fs-radius-card); background: var(--color-white); box-shadow: var(--fs-brand-shadow); position: relative; }
  .fs-leader:nth-child(2) { margin-inline-start: var(--space-4); margin-inline-end: calc(-1 * var(--space-12px)); }
  .fs-leader:nth-child(3) { margin-inline-start: var(--space-1); margin-inline-end: var(--space-12px); }
  .fs-leader__track { font-size: var(--text-sm); font-weight: var(--fw-regular); color: var(--text-muted); }
  .fs-leader__row { gap: var(--space-12px); align-items: center; }
  .fs-leader__name { font-size: var(--text-base); font-weight: var(--fw-medium); }
  .fs-leader__figure > .num { font-size: var(--text-2xl); font-weight: var(--fw-medium); letter-spacing: var(--fs-brand-tracking); }
  .fs-leader__rank, .fs-leader .fs-identity-name, .fs-leader__avg { font-size: var(--text-sm); }
  .fs-leader .fs-skyline { block-size: var(--fs-icon-tile); }
  .fs-leaders__notes { gap: var(--space-1); padding: var(--space-2px) var(--space-2) 0; }
  .fs-leaders__notes .fs-note { font-size: var(--text-sm); line-height: 1.6; }
  .fs-leaders__notes .fs-note--advisor { border: 0; padding: 0; }

  /* Page openings echo the grid at the edge, leaving all text on clean paper. */
  .fs-intro { position: relative; isolation: isolate; background: var(--fs-brand-ground); border-block-end: var(--fs-hairline) solid var(--fs-line); }
  .fs-intro::before { content: ''; position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: min(34%, var(--fs-form-w)); z-index: -1; background-image: var(--fs-brand-grid-paint); background-size: var(--fs-brand-grid-size) var(--fs-brand-grid-size); mask-image: var(--fs-brand-grid-fade); opacity: .65; pointer-events: none; }
  .fs-intro__inner { padding-block: var(--space-3) var(--space-6); gap: var(--space-4); }
  .fs-intro__main { gap: var(--space-3); }
  .fs-h1 { font-size: var(--text-3xl); font-weight: var(--fw-medium); line-height: 1.3; letter-spacing: var(--fs-display-tracking); max-inline-size: var(--fs-brand-title-measure); }
  .fs-h1::before { content: ''; display: block; inline-size: var(--fs-brand-title-mark); block-size: var(--space-6px); background: var(--fs-kp-600); margin-block-end: var(--space-3); }
  .fs-intro .fs-lede { color: var(--text-muted); line-height: 1.85; }
  .fs-intro .fs-fresh { font-size: var(--text-sm); }
  .fs-summary, .fs-portrait { box-shadow: var(--fs-brand-shadow); border-radius: var(--fs-brand-radius); }
  .fs-summary__title { font-weight: var(--fw-medium); }
  .fs-leadbox { box-shadow: none; border-radius: var(--fs-brand-radius); background: var(--fs-kp-900); }

  /* A calmer reading rhythm, with distinct surfaces for navigation and data. */
  .fs-section { padding-block: var(--space-6); gap: var(--space-4); }
  .fs-section__title { font-weight: var(--fw-medium); font-size: var(--fs-brand-section-title); line-height: 1.3; letter-spacing: var(--fs-display-tracking); }
  h2.fs-section__title::before { display: none; }
  .fs-family { border: 0; border-radius: var(--fs-brand-radius); box-shadow: none; padding: var(--space-4); gap: var(--space-3); }
  .fs-family--none { background: var(--fs-brand-soft); }
  .fs-family--pensia { background: var(--fs-brand-warm); }
  .fs-family--polisot { background: var(--fs-brand-slate); }
  .fs-family__icon { background: var(--color-white); color: var(--fs-kp-700); inline-size: var(--fs-touch); block-size: var(--fs-touch); border-radius: var(--fs-radius-tile); }
  .fs-family__title { font-weight: var(--fw-medium); font-size: var(--text-22); }
  .fs-home-tile { background: var(--color-white); border: var(--fs-hairline) solid transparent; min-block-size: calc(var(--space-6) * 2); padding: var(--space-3); box-shadow: var(--fs-brand-shadow); }
  .fs-home-tile__label { font-size: var(--text-15); font-weight: var(--fw-medium); }
  .fs-home-tile__meta { font-size: var(--text-sm); gap: var(--space-10px); }
  .fs-home-others, .fs-family__hub { font-size: var(--text-13); }
  .fs-home-tile__arrow { border-radius: 50%; inline-size: var(--fs-icon-tile); block-size: var(--fs-icon-tile); padding: var(--space-1); background: var(--fs-kp-50); }
  .fs-home-products__lede { max-inline-size: 76ch; font-size: var(--text-base); line-height: 1.8; }
  .fs-groupcard, .fs-hubcard, .fs-brandcard, .fs-blogcard { padding: var(--space-4); border-radius: var(--fs-brand-radius); box-shadow: var(--fs-brand-shadow); }
  .fs-groupcard__title, .fs-hubcard__title, .fs-brandcard__title, .fs-blogcard__title { font-weight: var(--fw-medium); }
  .fs-groupcard__leader { border-radius: var(--fs-radius-tile); background: var(--fs-brand-soft); padding: var(--space-3); }
  .fs-stats { background: var(--fs-brand-soft); border: 0; border-radius: var(--fs-brand-radius); box-shadow: none; }
  .fs-table-card { box-shadow: var(--fs-brand-shadow); }
  .fs-table thead .fs-table__cell { background: var(--fs-brand-soft); }
  .fs-home-featured .fs-table .fs-table__cell--num { text-align: right; }
  .fs-kpi { box-shadow: none; }
  .fs-kpi__tile { border-radius: var(--space-2); }
  .fs-next__advisor { background: var(--fs-brand-warm); border-color: transparent; padding: var(--space-5); }
  .fs-next__step { box-shadow: none; background: var(--fs-brand-soft); border-color: transparent; }
  .fs-next__icon { background: var(--color-white); color: var(--fs-kp-700); }
  .fs-next__advisor-title { font-size: var(--text-xl); font-weight: var(--fw-medium); }
  .fs-search__controls, .fs-calc__inputs { background: var(--fs-brand-soft); border-radius: var(--fs-brand-radius); box-shadow: none; }
  .fs-calc__inputs .fs-estimate { background: var(--color-white); }
  .fs-compare__head { border-block-start: var(--space-1) solid var(--fs-kp-600); }
  .fs-compare__table td > .fs-trackcell__sub { display: block; margin-block-start: var(--space-1); white-space: normal; }
  .fs-compare__table [data-row^='ret-'] .fs-table__cell--num { font-size: var(--text-18); }
  .fs-number-key { max-inline-size: var(--fs-measure); line-height: 1.8; }
  .fs-method-card, .fs-method-rule { background: var(--fs-brand-soft); border-color: transparent; border-radius: var(--fs-brand-radius); }
  .fs-blog__article { line-height: 1.9; }
  .fs-blog__h2 { font-weight: var(--fw-medium); }
  .fs-blog__links { background: var(--fs-brand-warm); border-radius: var(--fs-brand-radius); padding: var(--space-4); border: 0; }
  .fs-blog__toc { background: var(--fs-brand-soft); border-color: transparent; border-radius: var(--fs-brand-radius); }
  .fs-blogcards { align-items: stretch; gap: var(--space-4); }
  .fs-blogcard__read { display: flex; align-items: center; gap: var(--space-2); margin-block-start: auto; padding-block-start: var(--space-2); color: var(--fs-link); font-weight: var(--fw-medium); }
  .fs-blogcard__read svg { inline-size: var(--fs-icon); block-size: var(--fs-icon); }
  .fs-lead__card { box-shadow: var(--fs-brand-shadow); border-radius: var(--fs-brand-radius); border-block-start: var(--space-1) solid var(--fs-kp-600); }

  /* Sign and cost polarity are set from typed model values, never CSS text
     matching. Equal, unavailable, risk, assets and identifiers stay neutral. */
  .num.fs-num--positive { color: var(--color-success-strong); }
  .num.fs-num--negative { color: var(--color-danger-strong); }

  @media (hover: hover) {
    .fs-hero a.fs-cta--primary:hover { background: var(--fs-kp-800); color: var(--color-white); }
    .fs-hero-path:hover { background: none; color: var(--fs-kp-700); }
    .fs-hero-path:hover .fs-hero-path__label { text-decoration: underline; text-underline-offset: var(--space-1); }
    .fs-home-tile:hover { border-color: var(--fs-kp-300); background: var(--color-white); }
  }
  @media (min-width: 64em) {
    .fs-family--none .fs-family__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fs-home-products, .fs-home-featured { padding-block: var(--space-7); }
  }
  @media (max-width: 63.99em) {
    .fs-hero__inner { gap: var(--space-20px); padding-block: var(--space-6); }
    .fs-hero__title { font-size: var(--fs-brand-title-sm); }
    .fs-brand-stage { padding: var(--space-20px) var(--space-6px); }
    .fs-leader:nth-child(2) { margin-inline-start: var(--space-12px); margin-inline-end: 0; }
    .fs-leader__figure > .num { font-size: var(--text-28); }
  }
  @media (max-width: 47.99em) {
    .fs-hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-5); }
    .fs-hero__text { gap: var(--space-4); }
    .fs-hero__sub strong { font-size: var(--text-md); }
    .fs-hero__actions { inline-size: 100%; align-items: stretch; }
    .fs-hero__actions .fs-cta { flex: 0 0 auto; align-self: flex-start; }
    .fs-hero__paths { gap: var(--space-12px); }
    .fs-hero-path__label { font-size: var(--text-13); }
    .fs-brand-stage { padding: var(--space-4) var(--space-12px) var(--space-2); }
    .fs-h1 { font-size: var(--text-2xl); }
    .fs-intro__inner { padding-block-end: var(--space-5); }
    .fs-intro::before { inline-size: 28%; opacity: .4; }
    .fs-section { padding-block: var(--space-5); gap: var(--space-20px); }
    .fs-section__title { font-size: var(--text-28); }
    .fs-family { padding: var(--space-20px); }
    .fs-family__title { font-size: var(--text-lg); }
    .fs-groupcard, .fs-hubcard, .fs-brandcard, .fs-blogcard { padding: var(--space-20px); }
    .fs-next__advisor { padding: var(--space-4); }
    .fs-compare__table [data-row^='ret-'] .fs-table__cell--num { font-size: var(--text-md); }
  }
  @media (max-width: 23em) {
    .fs-hero__title { font-size: var(--text-3xl); }
    .fs-hero__paths { gap: var(--space-2); }
    .fs-hero-path__label { font-size: var(--text-sm); }
  }
}
