/* style.css — base typography, layout, index page (tile grid). */

/* Ampersand override — Playfair Display's italic-swash ampersand is hard
   to read (looks like a stylised "et" ligature). Substitute a clean sans
   glyph for U+0026 only; everything else stays in Playfair. Browsers pick
   this @font-face for "&" because its unicode-range is more specific and
   it's defined later than the Google-Fonts faces. */
@font-face {
  font-family: "Playfair Display";
  src: local("Georgia"), local("Cambria"), local("Times New Roman"), local("Times");
  font-weight: 100 900;
  font-style: normal;
  unicode-range: U+0026;
}
@font-face {
  font-family: "Playfair Display";
  src: local("Georgia"), local("Cambria"), local("Times New Roman"), local("Times");
  font-weight: 100 900;
  font-style: italic;
  unicode-range: U+0026;
}

/* Ampersand sizing — amp.js wraps every "&" character in a span so we
   can pull it back a notch in size from the surrounding text. */
.amp {
  font-size: 0.94em;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
             font-family: var(--font-sans); font-size: 14px; line-height: 1.55; }
/* Smooth anchor scrolling — the "Jump to" pills + every in-page nav link
   now glide to their target instead of snapping. Pairs with the existing
   scroll-margin-top on .horizon-section so the sticky topbar doesn't
   cover the landing position. Respects prefers-reduced-motion. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.dot-sep { color: var(--muted); margin: 0 6px; }

/* ── Topbar styles live in _topbar.css (shared partial) ────────────── */
/* The only topbar-related rules that stay here are page-specific extras
   that aren't part of the shared partial: brand-mark glyph, brand-name,
   topbar-tag. */
.brand-mark {
  display: inline-block; width: 14px; height: 14px;
  background: var(--brand-red); transform: rotate(-12deg);
  border-radius: 2px;
}
.brand-mark.inline { width: 10px; height: 10px; vertical-align: -1px; margin-right: 8px; }
.brand-name { font-size: 13px; letter-spacing: 0.02em; }
.topbar-tag { font-family: var(--font-display); font-size: 14px;
              letter-spacing: 0.18em; color: var(--ink-soft); }

/* ── Container ──────────────────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ── Lede / hero ────────────────────────────────────────────────────── */
.lede { padding: 48px 0 24px; }
.lede h1, .lede-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 36px; margin: 0 0 4px; letter-spacing: -0.01em;
  line-height: 1.15;
}
.lede-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.lede p { margin: 0; font-size: 14px; max-width: 660px; }

/* ── Filter chips ───────────────────────────────────────────────────── */
/* "Jump to" rail at the top of the index. Pill-shaped chips, each
   horizon-tinted via `--accent-soft`, with the horizon name set in
   Playfair italic to echo the sheet h2s + caption typography. */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 22px 0 30px; border-bottom: 1px solid var(--line);
}
.filters > .muted.small {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.01em;
  margin-right: 4px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--accent-soft);
  background: var(--paper); color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}
.filter-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.filter-chip.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.filter-chip.is-active .chip-count { color: #ffffff; opacity: 0.85; }
.filter-chip.is-active .chip-dot { background: #ffffff; }
.chip-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent, #888);
  flex-shrink: 0;
}

/* ── Tile grid ──────────────────────────────────────────────────────── */
.tile-grid {
  display: grid; gap: 18px; padding: 28px 0 64px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.tile {
  background: var(--paper); border: 1px solid var(--line);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative; overflow: hidden;
  color: var(--ink);
}
.tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}
.tile.is-pending { opacity: 0.7; }
.tile.is-pending::before { background: var(--line); }

.tile-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--muted); text-transform: uppercase;
}
.tile-code { font-weight: 600; color: var(--accent); }
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
}
.status-dot.status-ok { background: #15803d; }
.status-dot.status-pending { background: #cbd5e0; }

.tile-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 16px; line-height: 1.3; margin: 4px 0 0;
}
.tile-blurb {
  font-size: 12px; color: var(--ink-soft); line-height: 1.55;
  margin: 0; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 11px;
}
.tile-horizon {
  font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.page-foot {
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.page-foot .container { display: flex; align-items: center; gap: 4px; }

/* Logo + divider + tagline pattern — mirrors the individual sheet footer. */
.page-foot-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-foot-logo {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.page-foot-divider {
  width: 1px;
  height: 18px;
  background: var(--ink);
  flex-shrink: 0;
}
.page-foot-lede {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.page-foot-links {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: var(--muted);
}
.page-foot-links a {
  color: var(--muted);
  text-decoration: none;
}
.page-foot-links a:hover { color: var(--brand-red); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.lede-intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 78ch;
  margin: 10px 0 6px;
}

/* ── Mid-page conversion banner ─────────────────────────────────────── */
.cta-banner {
  margin: 26px 0 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #faf6f3 0%, #f4e6dd 100%);
  border-left: 4px solid var(--brand-red);
  border-radius: 6px;
}
.cta-banner-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.cta-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  max-width: 540px;
  color: var(--ink);
}
.cta-banner .contact-btn { flex-shrink: 0; }

@media (max-width: 700px) {
  .cta-banner-inner { gap: 16px; }
}

/* Count after each horizon name — small monospace number tinted in the
   horizon's accent. Sits as plain text inside the pill (no nested badge)
   so the chip reads as one cohesive label. */
.filter-chip .chip-count {
  display: inline-block;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--accent);
  opacity: 0.85;
  margin-left: 2px;
}

/* ── Horizon section heading ─────────────────────────────────────────── */
.horizon-section {
  margin: 36px 0 4px;
  scroll-margin-top: 80px;     /* offset for sticky topbar when jumping */
}
/* Sticky stack (top → bottom). Each layer sits just below the previous so
   they don't overlap. Heights are approximate but stable as long as the
   topbar/header rhythm doesn't change.
     topbar           ≈ 92px  (logo 56 + 18px×2 padding + border)
     horizon-section-head ≈ 50px
     fund-row-head    ≈ 36px
     fund-subhead     ≈ 50px  (rotates per section automatically) */
.horizon-section-head {
  position: sticky;
  top: 92px;
  z-index: 12;
  background: var(--bg);
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 4px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.horizon-section-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.hsec-swatch {
  display: inline-block; width: 14px; height: 14px;
  background: var(--accent); border-radius: 3px;
}

/* ── Fund rows (one row per fund, table-like) ────────────────────────── */
.fund-table { display: flex; flex-direction: column; }
.fund-row {
  display: grid;
  grid-template-columns:
      80px                       /* code chip */
      minmax(260px, 3.6fr)       /* fund name + ISIN (+50% wider) */
      minmax(120px, 1.0fr)       /* strategy + asset class (slightly narrower) */
      70px                       /* Sustainability (SFDR) */
      54px                       /* TER */
      62px 62px 62px 62px 62px 62px  /* returns */
      72px                       /* expected return */
      54px;                      /* portfolio share hex */
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.12s;
}
/* Hover tints the whole row edge-to-edge, including the Allocation Cap
   column. The grey background ring of the hex would now overlap the
   accent-soft hover tint and read as visual noise — so we flip it to
   white during the hover so only the accent-coloured allocation arc
   shows. The arc itself is unaffected (it's the second <path>). */
.fund-row:not(.fund-row-head):hover { background: var(--accent-soft); }
.fund-row:not(.fund-row-head):hover .portfolio-hex polygon:first-of-type {
  stroke: var(--bg);
}
.portfolio-hex polygon { transition: stroke 0.12s; }
.fund-row-head {
  position: sticky;
  top: calc(92px + 50px);      /* below topbar + horizon-section-head */
  z-index: 11;
  background: var(--bg);
  font-family: "Exo 2", var(--font-sans);
  font-weight: 200;             /* ExtraLight — matches the brand spec */
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding-top: 6px; padding-bottom: 8px;
  line-height: 1.2;
}
.fund-row-head small {
  display: block;
  font-family: "Exo 2", var(--font-sans);
  font-weight: 200;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: none; letter-spacing: 0;
}
.fund-row.is-pending { opacity: 0.55; }

/* Subheading row inside a horizon — matches the PDF's bar+label motif
   (a coloured vertical pill on the left, then the section name in
   small-caps italic). Spans the full table width, not the column grid. */
.fund-subhead {
  position: sticky;
  top: calc(92px + 50px + 36px);  /* below topbar + section-head + col-head */
  z-index: 10;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 14px 8px;
}
.fund-subhead-bar {
  display: inline-block;
  width: 3px;
  align-self: stretch;
  min-height: 18px;
  background: var(--accent, var(--ink));
  border-radius: 2px;
}
.fund-subhead-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
@media (max-width: 700px) {
  .fund-subhead { padding: 16px 12px 6px; }
  .fund-subhead-label { font-size: 14px; }
}

/* Code label — coloured text, no background, centred in its column */
.col-code { text-align: center; }
.code-chip {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;        /* "Portfolio 1-F" etc. stays on one line */
  text-align: center;
}

.col-fund { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fund-name-text {
  font-weight: 600; font-size: 13px; color: var(--ink);
  line-height: 1.25;
}
.fund-isin {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--accent);
  letter-spacing: 0.03em;
}
/* Suffix chips (-I / -F / -A, (ACC) / (DIST)) ride at half opacity so
   they read as secondary metadata — the primary code / ISIN stays the
   visual anchor. */
.code-suffix, .dist-tag { opacity: 0.7; }

.col-desc { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.desc-strat { font-weight: 600; font-size: 12px; color: var(--ink); }
.desc-asset { font-size: 11px; color: var(--ink-soft); }

.col-sfdr {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.2;
  text-align: center;
}

.col-num, .col-ter, .col-exp {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ink);
}
.fund-row-head .col-num,
.fund-row-head .col-ter,
.fund-row-head .col-exp {
  text-align: right;
}
.fund-row-head .col-sfdr { text-align: center; }

.num.num-neg, .num-neg { color: var(--negative-red); }
.num-na { color: var(--muted); }

/* Possible portfolio share hexagon */
.col-share {
  display: flex;
  justify-content: center;
  align-items: center;
}
.fund-row-head .col-share {
  /* Wrap "Portfolio Share" onto two lines when the column is narrow,
     keep on one line on wider screens. */
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}
.portfolio-hex { display: block; }

/* Progressive column reveal/hide. Each breakpoint below drops ONE column
   from the right (least-detailed first) and shrinks the grid template to
   match — so columns never wrap, they just disappear. Order of removal:
     1400 → last-month return
     1300 → YTD return
     1200 → 1y return
     1100 → SFDR
      980 → 10y return
      920 → Portfolio Share hex
      870 → Expected p.a.
      820 → 5y return
   <800 → mobile: only Code + Fund (full strip). */

@media (max-width: 1400px) {
  .fund-row {
    grid-template-columns:
      80px minmax(260px, 3.6fr) minmax(120px, 1.0fr)
      70px 54px 62px 62px 62px 62px 62px 72px 54px;
  }
  .fund-row .col-ret-mo { display: none; }
}
@media (max-width: 1300px) {
  .fund-row {
    grid-template-columns:
      80px minmax(260px, 3.6fr) minmax(120px, 1.0fr)
      70px 54px 62px 62px 62px 62px 72px 54px;
  }
  .fund-row .col-ret-ytd { display: none; }
}
@media (max-width: 1200px) {
  .fund-row {
    grid-template-columns:
      80px minmax(260px, 3.6fr) minmax(120px, 1.0fr)
      70px 54px 62px 62px 62px 72px 54px;
  }
  .fund-row .col-ret-1y { display: none; }
}
@media (max-width: 1100px) {
  .fund-row {
    grid-template-columns:
      80px minmax(260px, 3.6fr) minmax(120px, 1.0fr)
      54px 62px 62px 62px 72px 54px;
  }
  .fund-row .col-sfdr { display: none; }
}
@media (max-width: 980px) {
  .fund-row {
    grid-template-columns:
      80px minmax(240px, 3.6fr) minmax(110px, 0.9fr)
      54px 62px 62px 72px 54px;
  }
  .fund-row .col-ret-10y { display: none; }
}
@media (max-width: 920px) {
  .fund-row {
    grid-template-columns:
      80px minmax(240px, 3.6fr) minmax(110px, 0.9fr)
      54px 62px 62px 72px;
  }
  .fund-row .col-share { display: none; }
}
@media (max-width: 870px) {
  .fund-row {
    grid-template-columns:
      80px minmax(240px, 3.6fr) minmax(110px, 0.9fr)
      54px 62px 62px;
  }
  .fund-row .col-exp { display: none; }
}
@media (max-width: 820px) {
  .fund-row {
    grid-template-columns:
      80px minmax(240px, 3.6fr) minmax(110px, 0.9fr)
      54px 62px;
  }
  .fund-row .col-ret-5y { display: none; }
}
/* ── Mobile sticky-stack rebase ────────────────────────────────────────
   The default top:92px / 142px / 178px values assume the desktop topbar
   (56px logo + 18px*2 padding ≈ 92px). On mobile the topbar shrinks to
   ~58px (36px logo + 10px*2 padding), which leaves a 34px gap above the
   sticky horizon-section-head — scrolling fund rows visibly bleed through
   that gap. These overrides re-stack each sticky layer flush against the
   actual mobile topbar so nothing leaks. Adjust together if either the
   topbar logo height or the topbar padding-y changes. */
@media (max-width: 800px) {
  .horizon-section-head { top: 58px; }
  .fund-row-head        { top: calc(58px + 46px); }   /* below topbar + section-head */
  .fund-subhead         { top: calc(58px + 46px + 34px); }  /* + col-header row */
}

@media (max-width: 800px) {
  /* Mobile: scrolling a many-column table is unusable. Strip down to:
     Code · Fund (name + ISIN) · Max Allocation hex.
     - Code column matches the 80px used at every desktop breakpoint above
       so "Portfolio 1" through "Portfolio 6" never wrap.
     - Max Allocation lives at the right edge because the hex is a quick
       visual cue (no reading needed); fits the recovered ~64px of width
       freed by the negative-margin escape below. */
  .fund-row {
    grid-template-columns: 80px minmax(0, 1fr) 52px;
    gap: 10px; padding: 14px 12px;
  }
  .fund-row > *:not(.col-code):not(.col-fund):not(.col-share) { display: none; }
  /* The blurb under the fund name was hidden previously; bring it back
     since horizontal space is no longer at a premium. */
  .fund-name-text { white-space: normal; }
  /* Column-header row label "Max Allocation" is verbose for the 52px slot
     and the hex's percentage label is self-evident — hide just the text
     so the column still aligns. */
  .fund-row-head .col-share { font-size: 9.5px; letter-spacing: 0.02em; }
  /* Let the entire master-table block use the natural viewport width — the
     32px container side-padding burns ~64px on a 390px phone (16% of the
     viewport) and forces fund names to wrap to 3+ lines. We escape on the
     section root rather than just the fund-table so the FairHorizon
     section heading ("FairHorizon Blue · 22 funds") and the column-header
     row both line up flush with the data rows below them. The page lede,
     filter chips and CTA banner keep their normal container indent. */
  .horizon-section { margin-left: -32px; margin-right: -32px; }
  /* The section heading + column header sit inside the escaped section,
     so they inherit the full viewport width but still need a small left
     gutter (matching the row's 12px inset) so the title text doesn't kiss
     the screen edge. */
  .horizon-section-head { padding-left: 14px; padding-right: 14px; }
  /* Subheading bar gets a slightly tighter inset so the coloured left bar
     sits flush at the screen edge but the label aligns with the row's
     code chip below it. */
  .fund-subhead { padding-left: 12px; padding-right: 12px; }
}

/* Topbar / brand-logo / topbar-nav / topbar-burger / contact-btn /
   cta-banner .contact-btn — all live in _topbar.css (shared partial). */

/* ──────────────────────────────────────────────────────────────────────
   Content pages (about, methodology, glossary, compare) — longform reading
   ────────────────────────────────────────────────────────────────────── */
.content-page article {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 0 64px;
}
.content-page h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 32px 0 10px;
  letter-spacing: -0.005em;
}
.content-page p { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0 0 12px; max-width: 72ch; }
.content-page ul, .content-page ol { font-size: 15px; line-height: 1.6; max-width: 72ch; padding-left: 22px; }
.content-page li { margin-bottom: 6px; }
.content-page a { color: var(--brand-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.content-page a:hover { text-decoration-thickness: 2px; }
.content-page section { margin-bottom: 8px; }

/* ──────────────────────────────────────────────────────────────────────
   Methodology — "Three Successful Strategies" intro cards
   ────────────────────────────────────────────────────────────────────── */
.strategy-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0 6px;
}
.strategy-card,
.strategy-head {
  display: grid;
  grid-template-columns: 70px 84px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
}
.strategy-card { background: var(--paper); border-radius: 6px; border: 1px solid var(--line); }

/* Numbered side badge — vertical "STRATEGY" + big serif numeral */
.strategy-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  position: relative;
}
.strategy-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 1px;
  height: 64%;
  background: var(--line);
  transform: translateY(-50%);
}
.strategy-badge strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: #b3b3a9;
}

/* Circular portrait — wraps an <img> sketch of the strategist, falls back
   to the beige gradient if the image is missing or still loading. */
.strategy-portrait {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9e3d4 0%, #cdb89e 100%);
  color: #5b4a36;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.strategy-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Faces sit in the upper third of each sketch — shift the crop down
     slightly so the eyes land near the centre of the circle. */
  object-position: 50% 22%;
  display: block;
}
.strategy-portrait-caption {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.strategy-meta { line-height: 1.55; }
.strategy-attrib {
  margin: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.strategy-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.strategy-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
}

/* Closing note after the three intro cards — single muted paragraph,
   no boxed footnote, no bold flourish. */
.strategy-note {
  margin: 18px 0 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 72ch;
  font-style: italic;
}

/* ──────────────────────────────────────────────────────────────────────
   Methodology — strategy chart sections (1 per strategy)
   ────────────────────────────────────────────────────────────────────── */
.strategy-section {
  margin: 36px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.strategy-head {
  padding: 0 0 18px 0;
  margin-bottom: 12px;
}
.strategy-head .strategy-portrait { width: 60px; height: 60px; font-size: 18px; }
.strategy-section-attrib {
  margin: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.strategy-section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.strategy-section-sub {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 70ch;
}

.chart-wrap-strategy {
  height: 340px;
  margin: 4px 0 18px;
  position: relative;
}

.strategy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 4px 0 0;
}
.strategy-table thead th {
  text-align: right;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.strategy-table thead th:nth-child(1),
.strategy-table thead th:nth-child(2) { text-align: left; }
.strategy-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.strategy-table tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.strategy-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}

@media (max-width: 760px) {
  .strategy-card,
  .strategy-head { grid-template-columns: 60px 1fr; gap: 12px; }
  .strategy-card .strategy-portrait,
  .strategy-head .strategy-portrait { display: none; }
  .chart-wrap-strategy { height: 280px; }
}

/* Methodology — horizons table */
.meth-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.meth-table th, .meth-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.meth-table thead th { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.meth-table tbody tr { border-left: 3px solid var(--accent); }
.meth-table tbody tr td:first-child { font-family: var(--font-mono); }

/* Glossary index */
.glossary-horizon { margin: 24px 0; padding-left: 16px; border-left: 3px solid var(--accent); }
.glossary-horizon h2 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.glossary-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.glossary-list a {
  display: block; padding: 4px 0;
  color: var(--ink); text-decoration: none;
  font-size: 13px;
}
.glossary-list a:hover { color: var(--brand-red); }
@media (max-width: 700px) { .glossary-list { grid-template-columns: 1fr; } }

/* Compare table */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
  background: var(--paper);
}
.compare-table th, .compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.compare-table thead th {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg);
}
.compare-table thead th a { color: var(--ink); text-decoration: none; }
.compare-table thead th a:hover { color: var(--brand-red); text-decoration: underline; }
.compare-table tbody th {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); white-space: nowrap;
  width: 200px;
}
.compare-table tbody td { font-variant-numeric: tabular-nums; }
.d-block { display: block; }

/* ──────────────────────────────────────────────────────────────────────
   Insights / Monthly Reviews
   ────────────────────────────────────────────────────────────────────── */
.insights-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.insight-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.12s, transform 0.06s;
}
.insight-card a:hover {
  background: #faf6f3;
  transform: translateX(2px);
}
.insight-thumb {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.insight-body { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 700px) {
  .insight-card a { grid-template-columns: 1fr; }
  .insight-thumb { height: 180px; }
}

/* Inline body styles for the proxied article HTML — neutralises the
   target site's WP markup so it reads as our own content. */
.insight-article .insight-body { display: block; margin-top: 18px; }
.insight-article .insight-body h2,
.insight-article .insight-body h3,
.insight-article .insight-body h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}
.insight-article .insight-body h2 { font-size: 22px; }
.insight-article .insight-body h3 { font-size: 18px; }
.insight-article .insight-body h4 { font-size: 16px; }
.insight-article .insight-body p {
  font-size: 15px; line-height: 1.65; color: var(--ink);
  margin: 0 0 14px; max-width: 72ch;
}
.insight-article .insight-body img {
  max-width: 100%; height: auto;
  display: block; margin: 18px auto;
  border-radius: 4px;
}
.insight-article .insight-body ul,
.insight-article .insight-body ol {
  font-size: 15px; line-height: 1.6; max-width: 72ch;
  padding-left: 22px; margin: 0 0 14px;
}
.insight-article .insight-body li { margin-bottom: 6px; }
.insight-article .insight-body a {
  color: var(--brand-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.insight-article .insight-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 16px;
  margin: 18px 0;
  font-style: italic;
  color: var(--ink-soft);
}
.insight-article .insight-body figure { margin: 18px 0; }
.insight-article .insight-body figcaption {
  font-size: 12px; color: var(--ink-soft);
  text-align: center; margin-top: 6px;
}
.insight-article .insight-body table {
  width: 100%; border-collapse: collapse;
  margin: 18px 0; font-size: 13px;
}
.insight-article .insight-body th,
.insight-article .insight-body td {
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.insight-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.insight-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.insight-summary {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 8px;
  color: var(--ink);
}
.insight-date {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Content page <h3> styling (used in monthly review sub-sections) */
.content-page h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--ink);
}

/* Content page <em> blockquote-style for closing signatures */
.content-page em { color: var(--ink-soft); }

/* ──────────────────────────────────────────────────────────────────────
   Glossary — unified FairHorizon block (profile + asset classes)
   ────────────────────────────────────────────────────────────────────── */
.fh-block {
  margin: 28px 0;
  padding: 22px 24px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  background: var(--paper);
  scroll-margin-top: 80px;       /* sticky topbar offset for jump links */
}
.fh-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.fh-block-swatch {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
}
.fh-block-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin: 0;
  line-height: 1.1;
}
.fh-block-risk {
  margin: 2px 0 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.fh-block-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0 0 16px;
  font-size: 13px;
}
.fh-block-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fh-block-list dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.fh-block-classes {
  margin: 14px 0 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.fh-block-classes h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.fh-block-cta {
  margin: 10px 0 0;
  font-size: 13px;
}
.fh-block-cta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.fh-block-cta a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .fh-block { padding: 18px 18px 14px; }
  .fh-block-list { grid-template-columns: 1fr; gap: 2px 0; }
  .fh-block-list dt { margin-top: 8px; }
}

