/* fund.css — Scheme page (/mf/scheme/:code) and shared fund-data components.
   Loaded after theme.css + cms.css. All colour via tokens; no hex here.

   Design intent: a fund page should read like a front page about one fund, not
   a spec sheet. One ink hero, three loud numbers, a real chart, then quieter
   reference material. Numbers are always mono (--font-data). */

/* ── Hero band ───────────────────────────────────────────────────────────── */
.fh {
  background: var(--ink);
  color: var(--paper);
  padding: 1.6rem 0 2rem;
  margin-bottom: 0;
}
.fh-crumb {
  font-family: var(--font-data);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(248,244,236,0.55); margin-bottom: 1.5rem;
}
.fh-crumb a { color: rgba(248,244,236,0.75); text-decoration: none; }
.fh-crumb a:hover { color: var(--green-light); }
.fh-crumb span { opacity: 0.4; margin: 0 0.15rem; }

.fh-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end;
}
.fh-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 3.1rem); line-height: 1.06;
  letter-spacing: -0.025em; color: var(--paper); margin: 0 0 1rem;
  max-width: 22ch;
}
.fh-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
/* Named .fchip, NOT .chip: cms.css already owns .chip with a white background
   for on-paper filter pills. Reusing the name here rendered the category label
   white-on-ink — invisible. Page-scoped name avoids the collision entirely. */
.fchip {
  display: inline-block;
  font-family: var(--font-data); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border-radius: 2px;
  border: 1px solid rgba(248,244,236,0.22);
  background: transparent; color: rgba(248,244,236,0.8);
  text-decoration: none;
}
a.fchip:hover { border-color: var(--green-light); color: var(--green-light); }
.fchip-g { background: var(--green); border-color: var(--green); color: var(--paper); }
.fchip-r { border-color: rgba(201,150,26,0.5); color: var(--gold-d); }

.fh-nav { text-align: right; }
.fh-navlbl {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(248,244,236,0.5); margin-bottom: 0.3rem;
}
.fh-navv {
  font-family: var(--font-data); font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1;
  color: var(--paper); letter-spacing: -0.02em;
}
.fh-navd {
  font-family: var(--font-data); font-size: 0.7rem;
  color: rgba(248,244,236,0.55); margin-top: 0.45rem;
}
.dlt { font-weight: 500; }
.dlt.up { color: var(--green-light); }
.dlt.dn { color: var(--red-light); }
/* "since previous close" / "since 12 Aug" — quieter than the figure itself,
   because the caveat matters but should not compete with the number. */
.fh-navd-s { color: rgba(248,244,236,0.4); }

/* ── Sticky section tabs (the Tata-style rail) ───────────────────────────── */
.ftabs {
  position: sticky; top: 0; z-index: 40;
  /* Page stock, not --surf: a lighter bar here reads as an unexplained pale
     band between the ink hero and the warm page below it. */
  background: var(--bg); border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
/* Tabs scroll horizontally on a narrow screen; the search sits beside them and
   does not scroll away with them. */
.ftabs-in { display: flex; gap: 1rem; align-items: center; }
.ftabs-t { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.ftabs-t::-webkit-scrollbar { display: none; }
/* .mfsearch carries a 2rem bottom margin for the landing page hero; inside a
   tab bar that pushes the row open. */
.ftabs-s { flex: 0 0 280px; position: relative; margin: 0; max-width: none; }
.ftabs-s.mfsearch { margin: 0; max-width: none; }
/* Search in the tab bar. It was a plain grey rectangle with no icon, which on
   a warm-paper band read as an empty field rather than as search. Now: a
   magnifier, a real border, and the surface lifted off the band so it looks
   like a control. */
.ftabs-s .mfsearch-ic {
  position: absolute; left: 0.72rem; top: 50%; transform: translateY(-50%);
  width: 0.92rem; height: 0.92rem; color: var(--text3); pointer-events: none;
}
.ftabs-s .mfsearch-ic svg { width: 100%; height: 100%; display: block; }
.ftabs-s .mfsearch-i {
  width: 100%; font-family: var(--font); font-size: 0.84rem;
  padding: 0.52rem 0.8rem 0.52rem 2.2rem;
  border: 1px solid var(--border-s); border-radius: 999px;
  background: var(--bg); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ftabs-s .mfsearch-i::placeholder { color: var(--text3); }
.ftabs-s .mfsearch-i:hover { border-color: var(--text3); }
.ftabs-s .mfsearch-i:focus {
  outline: none; border-color: var(--green); background: var(--surf);
  box-shadow: 0 0 0 3px var(--green-bg);
}
.ftabs-s:focus-within .mfsearch-ic { color: var(--green); }
.ftabs-s .mfsearch-r { top: calc(100% + 4px); }
/* Below the tab row on a phone, where 280px of search would crush the tabs. */
@media (max-width: 860px) {
  .ftabs-in { flex-wrap: wrap; gap: 0.5rem; padding-bottom: 0.5rem; }
  .ftabs-t { flex: 1 1 100%; order: 1; }
  .ftabs-s { flex: 1 1 100%; order: 2; }
}
.ftab {
  flex: 0 0 auto; padding: 0.95rem 1.15rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text3);
  text-decoration: none; border-bottom: 3px solid transparent;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.ftab:hover { color: var(--text); }
.ftab.on { color: var(--green); border-bottom-color: var(--green); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.fsec { margin-bottom: 3.25rem; scroll-margin-top: 4.5rem; }
.fintro { color: var(--text2); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.25rem; max-width: 62ch; }
.fnote {
  font-size: 0.78rem; line-height: 1.6; color: var(--text3);
  margin-top: 1rem; max-width: 68ch;
}
.r-amber { border-left-color: var(--amber) !important; }
.r-red   { border-left-color: var(--red) !important; }

/* ── Hero 3-card strip ───────────────────────────────────────────────────── */
.hero3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 2rem;
}
.h3c {
  background: var(--surf2); border-top: 3px solid var(--ink);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--lift);
}
.h3l {
  font-family: var(--font-data); font-size: 0.64rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.55rem;
}
.h3v {
  font-family: var(--font-data); font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--text);
}
.h3v.up { color: var(--green); }
.h3v.dn { color: var(--red); }
.h3s { font-size: 0.74rem; color: var(--text3); margin-top: 0.45rem; }

/* ── Chart ───────────────────────────────────────────────────────────────── */
.fcard {
  background: var(--surf); border: 1px solid var(--rule); padding: 1.35rem 1.4rem 1.1rem;
  box-shadow: var(--lift);
}
.fcard-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.fcard-h .r-lbl-loud { margin: 0; }
.fc-toggle { display: flex; gap: 0; border: 1px solid var(--border-s); }
.fc-toggle button {
  font-family: var(--font-data); font-size: 0.68rem; letter-spacing: 0.08em;
  padding: 0.32rem 0.7rem; background: none; border: 0; cursor: pointer;
  color: var(--text3);
}
.fc-toggle button.on { background: var(--ink); color: var(--paper); }
.fc-hold { width: 100%; }
.fc-svg { width: 100%; height: 260px; display: block; }
.fc-grid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fc-axis {
  display: flex; justify-content: space-between; margin-top: 0.6rem;
  font-family: var(--font-data); font-size: 0.66rem; color: var(--text3);
}

/* ── Returns bars ────────────────────────────────────────────────────────── */
.rtab { border-top: 1px solid var(--rule); }
.rrow {
  display: grid; grid-template-columns: 8.5rem 1fr 5.5rem 2.5rem;
  align-items: center; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--rule);
}
.rrow-l { font-size: 0.88rem; font-weight: 600; color: var(--text2); }
.rbar { height: 8px; background: var(--surf2); position: relative; }
.rbar-f { position: absolute; left: 0; top: 0; bottom: 0; background: var(--muted); }
.rbar-f.up { background: var(--green); }
.rbar-f.dn { background: var(--red); }
.rrow-v {
  font-family: var(--font-data); font-weight: 500; font-size: 1.3rem;
  text-align: right; color: var(--text);
}
.rrow-v.up { color: var(--green); }
.rrow-v.dn { color: var(--red); }
.rrow-n { font-family: var(--font-data); font-size: 0.66rem; color: var(--text3); }

/* ── Risk cards ──────────────────────────────────────────────────────────── */
.rk3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rkc { border: 1px solid var(--rule); padding: 1.1rem 1.15rem; background: var(--surf);   box-shadow: var(--lift);
}
.rkl {
  font-family: var(--font-data); font-size: 0.63rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.5rem;
}
.rkv { font-family: var(--font-data); font-weight: 500; font-size: 1.9rem; line-height: 1; color: var(--text); }
.rkv.up { color: var(--green); }
.rkv.dn { color: var(--red); }
.rks { font-size: 0.73rem; color: var(--text3); margin-top: 0.5rem; line-height: 1.45; }

/* ── Fund facts list ─────────────────────────────────────────────────────── */
.fdl { margin: 0; border-top: 1px solid var(--rule); }
.fdl-r {
  display: grid; grid-template-columns: 13rem 1fr; gap: 1rem;
  padding: 0.72rem 0; border-bottom: 1px solid var(--rule);
}
.fdl-r dt { font-size: 0.82rem; color: var(--text3); font-weight: 500; }
.fdl-r dd {
  margin: 0; font-size: 0.92rem; color: var(--text); font-weight: 600;
}
.fdl-r dd a { color: var(--green); text-decoration: none; }
.fdl-r dd a:hover { text-decoration: underline; }
.fdl-r dd code {
  font-family: var(--font-data); font-size: 0.84rem; font-weight: 400;
  background: var(--surf2); padding: 0.1rem 0.4rem;
}
.fasof {
  font-family: var(--font-data); font-size: 0.68rem; font-weight: 400;
  color: var(--text3); margin-left: 0.4rem;
}

/* ── Potential Risk Class matrix ─────────────────────────────────────────── */
/* Reproduces the layout used on scheme factsheets — banded title, descriptor-
   first class labels, filled cell for the declared class — so a reader who has
   seen the disclosure in a factsheet recognises it here. Ink band rather than
   the red one AMCs use: red on this site means negative market data only. */
.prc { overflow-x: auto; }
.prc-t { width: 100%; border-collapse: collapse; min-width: 560px; }
.prc-cap {
  caption-side: top; background: var(--ink); color: var(--paper);
  font-family: var(--font); font-weight: 700; font-size: 0.92rem;
  padding: 0.6rem 0.8rem; text-align: center; letter-spacing: -0.01em;
}
.prc-cap span { font-weight: 500; opacity: 0.75; }
.prc-t th, .prc-t td {
  border: 1px solid var(--border-s); padding: 0.65rem 0.8rem;
  text-align: center; vertical-align: middle;
}
.prc-t thead th {
  background: var(--surf2); font-family: var(--font);
  font-size: 0.85rem; font-weight: 500; color: var(--text2);
}
.prc-corner { text-align: left !important; background: var(--surf2); }
.prc-cr, .prc-ir {
  display: block; font-family: var(--font); font-size: 0.8rem;
  font-weight: 700; color: var(--text);
}
.prc-cr { text-align: right; }
.prc-ir { text-align: left; }
.prc-cls { font-size: 0.9em; color: var(--text3); font-weight: 400; }
.prc-t tbody th {
  text-align: left !important; background: var(--surf2);
  font-family: var(--font); font-size: 0.85rem; font-weight: 700; color: var(--text);
}
.prc-t tbody td { height: 3rem; background: var(--surf); }
/* The declared class. Grey fill matches the factsheet convention; the label is
   ink so it reads as a statement of fact rather than a warning. */
.prc-on { background: var(--border-s) !important; }
.prc-on span {
  font-family: var(--font-data); font-weight: 500; font-size: 1rem; color: var(--ink);
}
.prc-t tfoot td {
  background: var(--surf2); font-family: var(--font); font-size: 0.85rem;
  font-weight: 500; color: var(--text2); padding: 0.7rem 0.8rem;
}
.prc-t tfoot strong { color: var(--ink); font-weight: 700; }

/* ── Peer list ───────────────────────────────────────────────────────────── */
.plist { border-top: 1px solid var(--rule); }
.prow {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.72rem 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--text);
}
.prow:hover .prow-n { color: var(--green); }
.prow-n { font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.prow-v { font-family: var(--font-data); font-size: 0.9rem; color: var(--text2); flex: 0 0 auto; }
.fmore {
  display: inline-block; margin-top: 1rem; font-size: 0.82rem; font-weight: 700;
  color: var(--green); text-decoration: none;
}
.fmore:hover { text-decoration: underline; }

.notice-warn { border-left: 3px solid var(--amber); background: var(--amber-bg); }

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

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero3, .rk3 { grid-template-columns: 1fr; }
  .fh-grid { grid-template-columns: 1fr; align-items: start; gap: 1.4rem; }
  .fh-nav { text-align: left; }
  .fdl-r { grid-template-columns: 1fr; gap: 0.15rem; }
  .rrow { grid-template-columns: 6.5rem 1fr 4.5rem; }
  .rrow-n { display: none; }
  .fc-svg { height: 200px; }
}

/* ── Scheme links + list filter (category / AMC / landing tables) ─────────── */
.sch-link {
  color: var(--text); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid transparent;
}
.sch-link:hover { color: var(--green); border-bottom-color: var(--green); }

.lfilter {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 1rem; flex-wrap: wrap;
}
.lfilter-q {
  flex: 1 1 22rem; min-width: 0;
  font-family: var(--font); font-size: 0.92rem;
  /* 16px on touch: iOS zooms the viewport on focus for anything smaller. */
  padding: 0.7rem 0.85rem 0.7rem 2.4rem;
  border: 1px solid var(--border-s); border-radius: 2px;
  background: var(--paper-2) no-repeat left 0.8rem center;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%238C8C8C' stroke-width='1.8'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l4 4'/%3E%3C/svg%3E");
  color: var(--text); transition: border-color .12s, box-shadow .12s;
}
.lfilter-q::placeholder { color: var(--muted); }
.lfilter-q:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
/* The native clear "x" is invisible against this ground in Safari. */
.lfilter-q::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.lfilter-n {
  font-family: var(--font-data); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--text3); flex: 0 0 auto; white-space: nowrap;
}
@media (max-width: 640px) { .lfilter-q { font-size: 16px; } }

/* ── /mf landing: ink masthead ───────────────────────────────────────────── */
.mfh { background: var(--ink); color: var(--paper); padding: 2.4rem 0 2rem; margin-bottom: 2.75rem; }
.mfh-k {
  display: inline-block; font-family: var(--font-data); font-size: 0.64rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-light);
  margin-bottom: 0.9rem;
}
.mfh-t {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.02; letter-spacing: -0.03em;
  color: var(--paper); margin: 0 0 1.1rem;
}
.mfh-s {
  font-size: 1rem; line-height: 1.6; color: rgba(248,244,236,0.72);
  max-width: 62ch; margin: 0 0 2rem;
}
.mfh-s strong { color: var(--paper); font-family: var(--font-data); font-weight: 500; }
.mfh-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(248,244,236,0.16); border-top: 1px solid rgba(248,244,236,0.16);
}
.mfh-c { background: var(--ink); padding: 1.1rem 1rem 0.2rem; }
.mfh-cl {
  font-family: var(--font-data); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(248,244,236,0.5); margin-bottom: 0.4rem;
}
.mfh-cv {
  font-family: var(--font-data); font-weight: 500; font-size: 1.65rem;
  line-height: 1.1; color: var(--paper);
}
.mfh-cs { font-size: 0.7rem; color: rgba(248,244,236,0.45); margin-top: 0.3rem; line-height: 1.4; }

/* ── Asset-class mix bar ─────────────────────────────────────────────────── */
.mixbar { display: flex; height: 42px; overflow: hidden; margin-bottom: 1rem; }
.mixseg { display: block; height: 100%; }
.mixleg { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.mixl { display: flex; align-items: baseline; gap: 0.45rem; padding: 0.3rem 0; }
.mixdot { width: 10px; height: 10px; flex: 0 0 auto; }
.mixn { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.mixv { font-family: var(--font-data); font-size: 0.85rem; color: var(--text2); }
.mixp { font-family: var(--font-data); font-size: 0.72rem; color: var(--text3); }

/* ── Category cards ──────────────────────────────────────────────────────── */
/* 1px gap over a rule-coloured ground draws the hairlines between cards. An
   incomplete last row leaves a hole in that ground, so the grid paints the
   card colour and the hairlines come from borders instead — a short last row
   then just ends, with no empty cell. */
.catgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.catc {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--surf); padding: 1rem 1.1rem 1.05rem 1.35rem;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  text-decoration: none; min-height: 5.4rem; transition: background .12s;
  box-shadow: var(--lift);
}
.catc:hover { background: var(--surf2); }
.catc-cls { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.catc-n {
  font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catc:hover .catc-n { color: var(--green); }
.catc-m { font-family: var(--font-data); font-size: 0.72rem; color: var(--text3); margin-top: auto; }
.catc-m strong { color: var(--text2); font-weight: 500; }
.chip-n { font-family: var(--font-data); opacity: 0.6; font-size: 0.9em; }

/* ── Fund-house bars ─────────────────────────────────────────────────────── */
.amcgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.amcc {
  display: grid; grid-template-columns: 1fr 5rem 2.5rem; align-items: center; gap: 0.85rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.amcc-n { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.amcc:hover .amcc-n { color: var(--green); }
.amcc-b { height: 6px; background: var(--surf2); }
.amcc-b > span { display: block; height: 100%; background: var(--green); }
.amcc-v { font-family: var(--font-data); font-size: 0.8rem; color: var(--text3); text-align: right; }

@media (max-width: 900px) {
  .mfh-strip { grid-template-columns: repeat(2, 1fr); }
  .catgrid { grid-template-columns: 1fr; }
  .amcgrid { grid-template-columns: 1fr; gap: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THE SIGNATURE MODULE — rolling-return distribution
   The one thing a broker structurally will not publish: the spread of outcomes
   behind the single trailing number they advertise. Given the loudest treatment
   on the page because it is the reason to read us instead of them.
   ══════════════════════════════════════════════════════════════════════════ */
.sig {
  background: var(--ink); color: var(--paper);
  padding: 2.5rem 2.5rem 2.25rem; margin: 0 0 3.25rem;
  position: relative; overflow: hidden;
}
.sig::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: var(--green);
}
.sig-k {
  font-family: var(--font-data); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-light);
  margin-bottom: 1.2rem;
}
.sig-h {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 3.1vw, 2.35rem); line-height: 1.12;
  letter-spacing: -0.025em; color: var(--paper); margin: 0 0 1rem;
  max-width: 26ch;
}
.sig-lo { color: var(--red-light); font-family: var(--font-data); font-weight: 500; }
.sig-hi { color: var(--green-light); font-family: var(--font-data); font-weight: 500; }
.sig-s {
  font-size: 0.95rem; line-height: 1.6; color: rgba(248,244,236,0.72);
  max-width: 66ch; margin: 0 0 2rem;
}
.sig-s strong { color: var(--paper); font-family: var(--font-data); font-weight: 500; }

.sig-chart { margin-bottom: 2rem; }
.sig-bars {
  position: relative; display: flex; align-items: flex-end; gap: 3px;
  height: 130px; padding-top: 1.6rem;   /* room for the marker label */
}
.sig-bar {
  flex: 1; background: rgba(78,203,125,0.42); min-height: 4px;
  transition: background .15s;
}
.sig-bar:hover { background: var(--green-light); }
.sig-bar.neg { background: rgba(240,158,158,0.5); }
/* Today's quoted figure, dropped into the distribution it came from. */
.sig-mark {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--paper); pointer-events: none;
}
.sig-mark-l {
  position: absolute; top: -0.1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
  background: var(--paper); color: var(--ink); padding: 0.14rem 0.4rem;
}
.sig-axis {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 0.55rem; font-family: var(--font-data); font-size: 0.64rem;
  color: rgba(248,244,236,0.5);
}
.sig-axis-m { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.6rem; }

/* Versus-table value cell: the fund's own return, with its rank beneath.
   The return is the fact and leads; the rank is context and follows. */
.vsret {
  font-family: var(--font-data); font-weight: 600; font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.vsof {
  display: block; font-family: var(--font-data); font-size: 0.66rem;
  color: var(--text3); margin-top: 0.15rem; white-space: nowrap;
  font-weight: 400;
}
/* .vsrow-v carries up/dn, which colours the return. The rank underneath must
   not inherit that green or red — it is a position, not a gain. */
.vsrow-v.up .vsof, .vsrow-v.dn .vsof { color: var(--text3); }

/* Sub-line under the returns-range heading, distinguishing it from the
   chart's own Custom window. */
.rng-sub {
  font-size: 0.78rem; line-height: 1.5; color: var(--text3);
  margin: -0.35rem 0 0.75rem; max-width: 46ch;
}

.sig-read {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(248,244,236,0.14);
}
.sig-rv {
  font-family: var(--font-data); font-weight: 500; font-size: 2.1rem;
  line-height: 1; color: var(--paper); letter-spacing: -0.03em;
}
.sig-ru { font-size: 0.45em; color: var(--green-light); margin-left: 0.1em; }
/* Two of these three cells now read as words ("About usual", "1 in 20") rather
   than digits. Mono at 2.1rem wraps those across two lines in a third-width
   column, so the word variant drops a step and uses the display face. */
.sig-rv.word {
  font-family: var(--font-head); font-size: 1.65rem; letter-spacing: -0.01em;
  line-height: 1.1;
}
.sig-rl {
  font-size: 0.8rem; line-height: 1.45; color: rgba(248,244,236,0.6);
  margin-top: 0.5rem;
}
.sig-rl strong, .sig-rl em { color: var(--green-light); font-style: normal; font-weight: 600; }
.sig .fnote { color: rgba(248,244,236,0.45); }
.sig .fnote strong { color: rgba(248,244,236,0.7); }

/* ── SEBI riskometer ─────────────────────────────────────────────────────── */
.rmo { border: 1px solid var(--rule); padding: 1.15rem 1.2rem; margin-bottom: 1.5rem; }
.rmo-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.rmo-k {
  font-family: var(--font-data); font-size: 0.63rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text3);
}
.rmo-v { font-family: var(--font-data); font-size: 1.05rem; font-weight: 500; color: var(--text); }
.rmo-bar { display: flex; gap: 3px; }
.rmo-s { flex: 1; height: 12px; background: var(--surf2); }
/* Steps up to and including the declared level fill; the level itself is ink.
   A gradient would imply precision this six-label scale does not have. */
.rmo-s.fill { background: var(--amber-bg); }
.rmo-s.on { background: var(--ink); }
.rmo-ax {
  display: flex; justify-content: space-between; margin-top: 0.4rem;
  font-family: var(--font-data); font-size: 0.62rem; color: var(--text3);
}
.rmo-n { font-size: 0.76rem; line-height: 1.5; color: var(--text3); margin: 0.75rem 0 0; }

@media (max-width: 900px) {
  .sig { padding: 1.75rem 1.35rem 1.6rem; }
  .sig-read { grid-template-columns: 1fr; gap: 1.1rem; }
  .sig-bars { height: 100px; }
}

/* ── Plan switcher (hero) ────────────────────────────────────────────────── */
/* Native <select> on purpose: correct keyboard and screen-reader behaviour for
   free, and on mobile it opens the OS picker rather than a custom menu. */
.fsw { display: inline-flex; }
.fsw-s {
  font-family: var(--font-data); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.3rem 1.6rem 0.3rem 0.6rem; border-radius: 2px;
  background: var(--green) no-repeat right 0.5rem center;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23F8F4EC'/%3E%3C/svg%3E");
  border: 1px solid var(--green); color: var(--paper);
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.fsw-s:focus { outline: 2px solid var(--green-light); outline-offset: 1px; }
.fsw-s option { background: var(--paper-2); color: var(--ink); }

/* ── Interactive chart cursor ────────────────────────────────────────────── */
.fc-hold { position: relative; touch-action: none; cursor: crosshair; }
.fc-cursor { position: absolute; top: 0; bottom: 22px; left: 0; width: 0; pointer-events: none; }
.fc-line { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--ink); opacity: 0.35; }
.fc-dot {
  position: absolute; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--surf);
  transform: translate(-50%, -50%);
}
.fc-tip {
  position: absolute; top: 0; z-index: 3; pointer-events: none;
  background: var(--ink); color: var(--paper);
  padding: 0.45rem 0.65rem; min-width: 8.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}
.fc-tip span { display: block; font-family: var(--font-data); line-height: 1.35; }
.fc-tip-d { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(248,244,236,0.55); }
.fc-tip-n { font-size: 1rem; font-weight: 500; margin-top: 0.1rem; }
.fc-tip-c { font-size: 0.68rem; margin-top: 0.1rem; }
.fc-tip-c.up { color: var(--green-light); }
.fc-tip-c.dn { color: var(--red-light); }
.fc-hint { font-size: 0.6rem !important; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
@media (hover: none) { .fc-hint::before { content: 'Touch and '; } }

/* ── Direct vs Regular cost module ───────────────────────────────────────── */
.cost {
  border: 1px solid var(--border-s); border-left: 4px solid var(--amber);
  background: var(--surf); padding: 1.6rem 1.75rem 1.4rem;
}
.cost-k {
  font-family: var(--font-data); font-size: 0.63rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem;
}
.cost-grid { display: grid; grid-template-columns: 1fr 15rem; gap: 2rem; align-items: center; }
.cost-h {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.75rem;
}
.cost-n { font-family: var(--font-data); color: var(--red); white-space: nowrap; }
.cost-s { font-size: 0.88rem; line-height: 1.6; color: var(--text2); margin: 0; }
.cost-s strong { font-family: var(--font-data); font-weight: 500; color: var(--ink); }
.cost-s em { font-style: normal; font-weight: 700; color: var(--amber); }
.cost-bars { display: grid; gap: 0.75rem; }
.cost-bar { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.5rem 0.6rem; align-items: center; }
.cost-bl { font-family: var(--font-data); font-size: 0.66rem; text-transform: uppercase; color: var(--text3); }
.cost-bt { height: 20px; background: var(--surf2); }
.cost-bt > span { display: block; height: 100%; background: var(--green); }
.cost-bt > span.reg { background: var(--muted); }
.cost-bv {
  grid-column: 2; font-family: var(--font-data); font-size: 0.78rem;
  color: var(--text2); margin-top: -0.35rem;
}
@media (max-width: 900px) { .cost-grid { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ── Fund search (hero) ──────────────────────────────────────────────────── */
/* Search leads the section: readers arrive with a fund name, not a question
   about how many categories exist. */
.mfsearch { position: relative; max-width: 44rem; margin: 0 0 2rem; }
/* The /mf hero search. Its own markup has no icon element, so the padding
   here stays symmetric; the tab-bar variant overrides both below. */
.mfsearch-i {
  width: 100%; font-family: var(--font); font-size: 1rem;
  padding: 0.95rem 1.1rem; border: 0; border-radius: 2px;
  background: var(--paper-2); color: var(--ink);
}
/* When the shared component supplies an icon, make room for it. */
.mfsearch-ic + .mfsearch-i { padding-left: 2.6rem; }
.mfsearch { position: relative; }
.mfsearch-ic {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.05rem; height: 1.05rem; color: var(--muted); pointer-events: none; z-index: 1;
}
.mfsearch-ic svg { width: 100%; height: 100%; display: block; }
.mfsearch-i::placeholder { color: var(--muted); }
.mfsearch-i:focus { outline: 3px solid var(--green); outline-offset: 0; }
.mfsearch-r {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
  background: var(--paper-2); max-height: 22rem; overflow-y: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.mfsearch-o {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 1.1rem; text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.mfsearch-o:last-child { border-bottom: 0; }
.mfsearch-o:hover, .mfsearch-o.on { background: var(--mint); }
.mfsearch-n { font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mfsearch-v {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text3); flex: 0 0 auto;
}

/* ── Biggest categories by money ─────────────────────────────────────────── */
.bigcats { border-top: 1px solid var(--rule); }
.bigc {
  display: grid; grid-template-columns: 14rem 1fr 7rem 8rem;
  align-items: center; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.bigc-n { font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.bigc:hover .bigc-n { color: var(--green); }
.bigc-bar { height: 10px; background: var(--surf2); }
.bigc-bar > span { display: block; height: 100%; }
.bigc-v {
  font-family: var(--font-data); font-size: 1rem; font-weight: 500;
  color: var(--text); text-align: right;
}
.bigc-v em { font-style: normal; font-size: 0.62em; color: var(--text3); }
.bigc-f {
  font-family: var(--font-data); font-size: 0.7rem; color: var(--text3); text-align: right;
}
@media (max-width: 860px) {
  .bigc { grid-template-columns: 1fr 5.5rem; gap: 0.3rem 0.75rem; }
  .bigc-bar { grid-column: 1 / -1; }
  .bigc-f { grid-column: 1 / -1; text-align: left; }
  .mfsearch-i { font-size: 16px; }   /* iOS zooms below 16px */
}

/* ── PRC: the two risks, explained before the grid ───────────────────────── */
/* The factsheet grid is a compliance artefact — accurate and unreadable. These
   two cards carry the meaning; the grid sits below in a <details> as evidence.
   The permanent/temporary distinction is the point of the whole module. */
.prc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.prc-dial {
  border: 1px solid var(--border-s); border-top: 4px solid var(--muted);
  background: var(--surf); padding: 1.1rem 1.2rem 1rem;
  display: flex; flex-direction: column;
}
.prc-dial-low      { border-top-color: var(--green); }
.prc-dial-moderate { border-top-color: var(--amber); }
.prc-dial-high     { border-top-color: var(--red); }
/* Unknown is a real state, not a failure: the fund's declared class has not
   been read off its filing yet. Deliberately grey — colouring it would imply
   a risk level we have not established. */
.prc-dial-unknown  { border-top-color: var(--border-s); border-top-style: dashed; }
.prc-dl {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.45rem;
}
.prc-dv {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
}
.prc-dial-low .prc-dv      { color: var(--green); }
.prc-dial-moderate .prc-dv { color: var(--amber); }
.prc-dial-high .prc-dv     { color: var(--red); }
.prc-dial-unknown .prc-dv  { color: var(--text3); font-size: 1.15rem; }
.prc-dc {
  font-family: var(--font-data); font-size: 0.68rem; color: var(--text3);
  margin-top: 0.2rem;
}
.prc-dp { font-size: 0.85rem; line-height: 1.55; color: var(--text2); margin: 0.7rem 0 0.9rem; }
.prc-dtag {
  margin-top: auto; font-family: var(--font-data); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.5rem; border-radius: 2px; align-self: flex-start;
}
.prc-perm { background: var(--red-bg); color: var(--red); }
.prc-temp { background: var(--surf2); color: var(--text3); }

.prc-verdict {
  font-size: 0.95rem; line-height: 1.65; color: var(--text2);
  padding-left: 0.9rem; border-left: 3px solid var(--amber);
  margin: 0 0 1.25rem; max-width: 68ch;
}
.prc-verdict strong { color: var(--ink); }

/* Grid demoted to evidence — available, not in the way. */
.prc-det { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.prc-det summary {
  cursor: pointer; font-family: var(--font-data); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3);
  margin-bottom: 1rem;
}
.prc-det summary:hover { color: var(--green); }

/* Reality check — the declared ceiling vs what the NAV actually did. */
.prc-check { margin-top: 1.25rem; padding: 1rem 1.2rem; border: 1px solid var(--border-s); }
.prc-check.ok   { border-left: 4px solid var(--green); background: var(--green-bg); }
.prc-check.flag { border-left: 4px solid var(--amber); background: var(--amber-bg); }
.prc-check-h {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.prc-check.ok .prc-check-h   { color: var(--green); }
.prc-check.flag .prc-check-h { color: var(--amber); }
.prc-check p { font-size: 0.88rem; line-height: 1.6; color: var(--text2); margin: 0; }
.prc-check strong { color: var(--ink); font-family: var(--font-data); font-weight: 500; }

@media (max-width: 760px) { .prc-two { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   "IN PLAIN WORDS" — the decoder box
   The single best idea in the design review: every technical concept gets a
   concrete analogy. This is what "decoded" has to mean in practice, and it is
   the component that most separates us from a data terminal.
   ══════════════════════════════════════════════════════════════════════════ */
.plain {
  background: var(--green-bg); border: 1px solid var(--green-border);
  border-left: 4px solid var(--green);
  padding: 1.15rem 1.35rem; margin: 1.75rem 0;
}
.plain-k {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 0.5rem;
}
.plain p { font-size: 0.95rem; line-height: 1.7; color: var(--text2); margin: 0; }
.plain p + p { margin-top: 0.7rem; }
.plain strong { color: var(--ink); }
.plain em { font-style: normal; color: var(--green); font-weight: 600; }

/* ── "Is this right for you?" — the fit test ─────────────────────────────── */
/* Green/amber, never green/red: the right-hand column is "probably not for
   you", which is a fit judgement, not a warning about the fund. Red would read
   as "this fund is bad", which is a verdict we do not make. */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.fitc { border: 1px solid var(--border-s); background: var(--surf); padding: 1.2rem 1.3rem;   box-shadow: var(--lift);
}
.fitc-good { border-top: 3px solid var(--green); }
.fitc-bad  { border-top: 3px solid var(--amber); }
.fitc h4 {
  font-family: var(--font); font-size: 0.95rem; font-weight: 700;
  margin: 0 0 0.85rem; display: flex; align-items: center; gap: 0.5rem;
}
.fitc-good h4 { color: var(--green); }
.fitc-bad h4  { color: var(--amber); }
.fitc ul { margin: 0; padding-left: 1.1rem; }
.fitc li { font-size: 0.88rem; line-height: 1.55; color: var(--text2); margin-bottom: 0.55rem; }
.fitc li:last-child { margin-bottom: 0; }

/* ── Fund vs category ────────────────────────────────────────────────────── */
.vscat { border-top: 1px solid var(--rule); }
.vsrow {
  display: grid; grid-template-columns: 6rem 1fr 5rem;
  align-items: center; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule);
}
.vsrow-l { font-size: 0.85rem; font-weight: 600; color: var(--text2); }
/* A scale, not a bar: the fund's position is marked against the category's
   observed range, so "good" is relative to peers rather than to zero. */
.vsscale { position: relative; height: 26px; }
.vstrack {
  position: absolute; left: 0; right: 0; top: 11px; height: 4px;
  background: var(--surf2);
}
.vsmid { position: absolute; top: 4px; width: 2px; height: 18px; background: var(--muted); }
.vsdot {
  position: absolute; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--surf); transform: translateX(-50%);
}
.vsdot.below { background: var(--red); }
.vsrow-v { font-family: var(--font-data); font-size: 1rem; font-weight: 500; text-align: right; }
.vsrow-v.up { color: var(--green); }
.vsrow-v.dn { color: var(--red); }
.vslegend {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.8rem;
  font-family: var(--font-data); font-size: 0.66rem; color: var(--text3);
}
.vslegend span { display: flex; align-items: center; gap: 0.35rem; }
.vskey { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.vskey.mid { border-radius: 0; width: 2px; height: 12px; background: var(--muted); }

@media (max-width: 760px) {
  .fit { grid-template-columns: 1fr; }
  .vsrow { grid-template-columns: 4.5rem 1fr 4rem; gap: 0.6rem; }
}

/* ── Category stat strip ─────────────────────────────────────────────────── */
/* Four stats, each answering a question a reader actually has. The count of
   "fund houses offering one" was cut — nobody has ever needed that number. */
.catstats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  margin: 0 0 1.75rem;
}
.cstat { background: var(--surf); padding: 1rem 1.1rem 1.05rem;   box-shadow: var(--lift);
}
.cstat-l {
  font-family: var(--font-data); font-size: 0.6rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.4rem;
}
.cstat-v {
  font-family: var(--font-data); font-weight: 500; font-size: 1.5rem;
  line-height: 1.1; color: var(--ink); letter-spacing: -0.02em;
}
.cstat-s { font-size: 0.7rem; color: var(--text3); margin-top: 0.3rem; line-height: 1.4; }

/* Breadcrumb on paper (the fund page has its own on ink). */
.crumb {
  font-family: var(--font-data); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 1rem;
}
.crumb a { color: var(--green); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { opacity: 0.5; margin: 0 0.25rem; }
.crumb b { color: var(--text2); font-weight: 500; }

@media (max-width: 860px) { .catstats { grid-template-columns: repeat(2, 1fr); } }

/* ── Write-for-us invite ─────────────────────────────────────────────────── */
/* Carries the coming-soon call-out into the live site. Ink, because it is an
   invitation rather than page furniture, and it should stop the eye once. */
.writeus {
  background: var(--ink); color: var(--paper);
  padding: 1.9rem 2rem; margin: 2.5rem 0;
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center;
  border-top: 3px solid var(--green);
}
.writeus-k {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green-light); margin-bottom: 0.7rem;
}
.writeus h3 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--paper); margin: 0 0 0.6rem;
}
.writeus p {
  font-size: 0.9rem; line-height: 1.6; color: rgba(248,244,236,0.72);
  margin: 0; max-width: 56ch;
}
.writeus-a {
  display: inline-block; background: var(--green); color: var(--paper);
  font-family: var(--font-data); font-size: 0.88rem; font-weight: 500;
  padding: 0.8rem 1.3rem; text-decoration: none; border-radius: 2px;
  white-space: nowrap; transition: background .15s;
}
.writeus-a:hover { background: var(--green-light); color: var(--ink); }
/* The mailto in the body copy had no colour of its own and fell through to the
   browser default — a blue link on warm paper, on every page carrying this
   block. Scoped to .writeus p so any future link in here is covered too. */
.writeus p a { color: var(--green); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--green-bg); }
.writeus p a:hover { border-bottom-color: var(--green); }
@media (max-width: 720px) { .writeus { grid-template-columns: 1fr; } }

/* ── Methodology: numbered steps ─────────────────────────────────────────── */
.method { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.method li {
  counter-increment: step; position: relative;
  padding: 1.15rem 0 1.15rem 3.25rem; border-bottom: 1px solid var(--rule);
}
.method li:last-child { border-bottom: none; }
.method li::before {
  content: counter(step); position: absolute; left: 0; top: 1.2rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-data); font-size: 0.8rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.method h3 {
  font-family: var(--font-head); font-size: 1.08rem; font-weight: 800;
  color: var(--ink); margin: 0 0 0.4rem; letter-spacing: -0.015em;
}
.method p { font-size: 0.92rem; line-height: 1.65; color: var(--text2); margin: 0; }
.method code {
  font-family: var(--font-data); font-size: 0.86em;
  background: var(--surf2); padding: 0.1rem 0.35rem;
}

/* ── Pillar cards: honest about which are live ───────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pcard {
  background: var(--surf); border: 1px solid var(--rule);
  border-top: 3px solid var(--border-s);
  padding: 1.2rem 1.3rem; box-shadow: var(--lift);
}
.pcard-live { border-top-color: var(--green); }
.pcard-soon { border-top-color: var(--amber); }
.pcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.pcard-n {
  font-family: var(--font-data); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.pcard-s {
  font-family: var(--font-data); font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.15rem 0.4rem; border-radius: 2px;
}
.pcard-live .pcard-s { background: var(--green-bg); color: var(--green); }
.pcard-soon .pcard-s { background: var(--amber-bg); color: var(--amber); }
.pcard h3 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 800;
  color: var(--ink); margin: 0 0 0.5rem; line-height: 1.25; letter-spacing: -0.015em;
}
.pcard p { font-size: 0.86rem; line-height: 1.6; color: var(--text2); margin: 0; }

@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ── Provenance strip ────────────────────────────────────────────────────── */
/* On every page carrying computed figures. The claim "we compute this
   ourselves" is the product; repeating it where the numbers are, and linking
   to the working, is what makes it credible rather than a slogan. */
.prov {
  display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
  border-left: 3px solid var(--green); background: var(--surf);
  padding: 0.6rem 0.9rem; margin: 0 0 1.5rem;
  font-size: 0.78rem; line-height: 1.5; color: var(--text3);
}
.prov strong { color: var(--text2); font-weight: 600; }
.prov a { color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.prov a:hover { text-decoration: underline; }

/* ── Story lede: bigger measure, for pages that are prose not data ───────── */
.lede {
  font-size: 1.08rem; line-height: 1.75; color: var(--text2);
  max-width: 66ch; margin: 0 0 1.15rem;
}
.lede strong { color: var(--ink); }
.lede a { color: var(--green); font-weight: 600; }

/* ── Numbered principles ─────────────────────────────────────────────────── */
.prin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.princ {
  background: var(--surf); border: 1px solid var(--rule);
  border-top: 3px solid var(--green); padding: 1.3rem 1.4rem;
  box-shadow: var(--lift);
}
.prin-n {
  font-family: var(--font-data); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; color: var(--green); margin-bottom: 0.6rem;
}
.princ h3 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 800;
  color: var(--ink); margin: 0 0 0.5rem; line-height: 1.25; letter-spacing: -0.015em;
}
.princ p { font-size: 0.9rem; line-height: 1.65; color: var(--text2); margin: 0; }
.princ a { color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.princ a:hover { text-decoration: underline; }

/* ── People ──────────────────────────────────────────────────────────────── */
/* Two people, real photographs — a masthead, not a staff directory. The
   portrait leads and the card carries it edge-to-edge; initials in a circle
   were right when there were three names and no pictures. */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 780px) { .people { grid-template-columns: 1fr; } }
.person {
  display: flex; flex-direction: column;
  background: var(--surf); border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  padding: 0; box-shadow: var(--lift); overflow: hidden;
}
/* height:auto is required: the intrinsic width/height attributes on the img
   (kept for layout stability) otherwise win over aspect-ratio, and a 1065x1600
   portrait renders full height. */
.person-ph {
  width: 100%; height: auto; aspect-ratio: 4/3;
  object-fit: cover; object-position: center 20%;
  display: block; background: var(--surf2);
}
.person-b { padding: 1.3rem 1.4rem 1.45rem; }
/* Photograph not in yet: the same 4:3 frame as a real photo, so cards stay
   the same height side by side, with the initials large in the middle. */
.person-ph-empty { display: flex; align-items: center; justify-content: center; }
.person-ph-empty span {
  font-family: var(--font-head); font-size: clamp(3rem, 7vw, 5rem); font-weight: 900;
  color: var(--green); opacity: 0.55; letter-spacing: -0.03em;
}
/* Fallback for anyone without a photograph yet. */
.person-av {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-data); font-size: 1.2rem; font-weight: 500;
  letter-spacing: 0.02em; margin: 1.4rem 1.4rem 0;
}
.person h2 {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 800;
  color: var(--ink); margin: 0 0 0.2rem; letter-spacing: -0.02em;
}
.person-r {
  font-family: var(--font-data); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem;
}
.person-c { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.person-c span {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.2rem 0.5rem;
  background: var(--surf2); color: var(--text2); border-radius: 2px;
}
.person p { font-size: 0.92rem; line-height: 1.7; color: var(--text2); margin: 0; max-width: 62ch; }
.person .mono { font-family: var(--font-data); color: var(--ink); }

/* ── Contact routes ──────────────────────────────────────────────────────── */
.routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.route {
  display: block; text-decoration: none;
  background: var(--surf); border: 1px solid var(--rule);
  border-top: 3px solid var(--ink); padding: 1.3rem 1.4rem;
  box-shadow: var(--lift); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.route:hover { box-shadow: var(--lift-hover); transform: translateY(-1px); border-top-color: var(--green); }
.route-k {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.55rem;
}
.route h2 {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
  color: var(--ink); margin: 0 0 0.5rem; letter-spacing: -0.018em;
}
.route p { font-size: 0.88rem; line-height: 1.6; color: var(--text2); margin: 0 0 0.9rem; }
.route-a { font-family: var(--font-data); font-size: 0.82rem; color: var(--green); font-weight: 500; }

@media (max-width: 760px) {
  .prin, .routes { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; gap: 1rem; }
  .person-av { width: 3.5rem; height: 3.5rem; font-size: 1rem; }
}

/* ── Grid children must be allowed to shrink ─────────────────────────────── */
/* Same min-width:auto trap as .tbl-wrap: without this the main column refuses
   to go below its widest child, and a wide table drags the page sideways. */
.art-grid > * { min-width: 0; }

/* ── Plan switcher ───────────────────────────────────────────────────────────
   A real <select> sits underneath and keeps the control keyboard- and
   screen-reader-correct; the trigger and menu are what a sighted mouse user
   sees. On a coarse pointer (.psw-native) we hide our menu and put the select
   back on top, because the OS picker beats anything we would draw. */
.psw { position: relative; display: inline-flex; }
.psw > select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.psw.psw-native > select { pointer-events: auto; z-index: 2; cursor: pointer; }
.psw.psw-native .psw-m { display: none; }

/* The plan switcher sits on the dark masthead. A pale box with a hairline
   border read as a form field dropped into a headline — it now carries the
   brand green as a solid control, which is both more legible on ink and
   obviously the thing you press. */
.psw-t {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.85rem; cursor: pointer;
  background: var(--green); border: 1px solid var(--green); border-radius: 3px;
  color: var(--paper); transition: background .15s, box-shadow .15s;
}
.psw-t:hover { background: var(--green-light); border-color: var(--green-light); }
.psw-t:hover .psw-p, .psw-t:hover .psw-o, .psw-t:hover .psw-c { color: var(--ink); }
.psw-t[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(78,203,125,0.3); }
.psw-v { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.psw-p {
  font-family: var(--font-data); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper);
}
.psw-o { font-family: var(--font-data); font-size: 0.62rem; color: rgba(248,244,236,0.72); }
.psw-c { width: 0.62rem; height: 0.62rem; color: rgba(248,244,236,0.8); flex: none; }

.psw-m {
  /* Above .ftabs, which is sticky at z-index 40. At an equal z-index the tab
     bar wins on document order and paints over the open menu — the dropdown
     appeared to be "not visible" when it was in fact being covered from the
     third item down. */
  position: absolute; top: calc(100% + 5px); left: 0; z-index: 60;
  min-width: 100%; max-height: 17rem; overflow-y: auto;
  background: var(--surf); border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: var(--lift-hover); padding: 0.25rem;
}
.psw-i {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem;
  width: 100%; padding: 0.45rem 0.7rem; cursor: pointer; text-align: left;
  background: none; border: 0; border-radius: 2px; white-space: nowrap;
}
/* The menu sits on a WHITE surface; the trigger sits on the dark masthead.
   .psw-p and .psw-o were coloured for the trigger, so inside the menu every
   unselected row rendered near-white on white and only the selected one was
   visible. Reset them here. */
.psw-i .psw-p { color: var(--ink); }
.psw-i .psw-o { color: var(--text2); }
.psw-i:hover { background: var(--green-bg); }
.psw-i:hover .psw-p { color: var(--green); }
.psw-i.on { background: var(--green); }
.psw-i.on .psw-p, .psw-i.on .psw-o { color: #fff; }


/* ── Intention entry (/mf) ───────────────────────────────────────────────────
   The page used to open on industry AUM, which answers "what do you have" when
   a first-time visitor is asking "where do I start". These six cards put the
   job before the taxonomy; the category grid still sits below for anyone who
   already knows what they want. */
.intent-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .intent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .intent-grid { grid-template-columns: 1fr; } }
.intent {
  display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none;
  background: var(--surf); border: 1px solid var(--rule);
  border-top: 3px solid var(--green); border-radius: 2px;
  padding: 1.15rem 1.1rem 1.25rem; box-shadow: var(--lift);
  transition: box-shadow .15s, transform .15s;
}
.intent:hover { box-shadow: var(--lift-hover); transform: translateY(-2px); }
.intent-k {
  font-family: var(--font-data); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green);
}
.intent-h {
  font-family: var(--font-head); font-size: 1.08rem; font-weight: 700;
  color: var(--ink); line-height: 1.25;
}
.intent-d { font-size: 0.85rem; line-height: 1.6; color: var(--text2); }

/* ── Caveats ─────────────────────────────────────────────────────────────────
   A figure plus a plain-English reason not to read it at face value. Sits
   above the numbers rather than under them: a reader who has already absorbed
   a three-year return will not go back and requalify it.

   Deliberately quiet — an amber wall would read as a warning about the FUND,
   when most of these are warnings about the MEASUREMENT. The badge carries the
   weight; the sentence does the work. */
.cav { display: flex; flex-direction: column; gap: 0.55rem; margin: 0 0 1.6rem; }
.cav-i {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: baseline;
  padding: 0.7rem 0.9rem; border-radius: 2px;
  background: var(--surf); border: 1px solid var(--rule); border-left: 3px solid var(--text3);
}
.cav-warn { border-left-color: var(--gold); }
.cav-note { border-left-color: var(--text3); }
.cav-b {
  font-family: var(--font-data); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); background: var(--surf2);
  padding: 0.16rem 0.42rem; border-radius: 2px;
}
.cav-warn .cav-b { background: rgba(201,150,26,0.14); color: #8a6510; }
.cav-t { font-size: 0.87rem; line-height: 1.6; color: var(--text2); }
@media (max-width: 560px) {
  .cav-i { grid-template-columns: 1fr; gap: 0.4rem; }
  .cav-b { justify-self: start; }
}

/* ── More about this fund ────────────────────────────────────────────────────
   Where a reader goes after the numbers. The rail carries other people's
   coverage of the fund; this is our own material — the category, the house,
   and an explainer that helps read what is above. */
.fmore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 0.4rem; }
@media (max-width: 860px) { .fmore-grid { grid-template-columns: 1fr; } }
.fmore-c {
  display: flex; flex-direction: column; gap: 0.28rem; text-decoration: none;
  background: var(--surf); border: 1px solid var(--rule);
  border-top: 3px solid var(--green); border-radius: 2px;
  padding: 1rem 1.05rem 1.1rem; box-shadow: var(--lift);
  transition: box-shadow .15s, transform .15s;
}
.fmore-c:hover { box-shadow: var(--lift-hover); transform: translateY(-2px); }
.fmore-k {
  font-family: var(--font-data); font-size: 0.58rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green);
}
.fmore-h { font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--ink); line-height: 1.25; }
.fmore-d { font-size: 0.83rem; line-height: 1.55; color: var(--text2); }
.fmore-arts { margin-top: 1.4rem; }
.fmore-arts .fmore-k { display: block; margin-bottom: 0.5rem; }

/* Period label under the Direct/Regular bars — the figure means nothing
   without the window it was measured over, which is the error this section
   was corrected for. */
.cost-note {
  font-family: var(--font-data); font-size: 0.6rem; line-height: 1.5;
  color: var(--text3); margin-top: 0.6rem;
}

/* ── The other plan ──────────────────────────────────────────────────────────
   Regular-plan pages only, near the foot. Two figures and a sentence — the
   earlier version led the page with a fee comparison, which put a cost
   argument ahead of the fund's own numbers and read as a case against the
   distributor who sold it. Quiet by design. */
.plans { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.plans-p { font-size: 0.92rem; line-height: 1.7; color: var(--text2); max-width: 62ch; margin: 0 0 1rem; }
.plans-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.plans-c {
  flex: 1 1 200px; min-width: 0;
  background: var(--surf); border: 1px solid var(--rule);
  border-left: 3px solid var(--green); border-radius: 2px;
  padding: 0.85rem 1rem 0.95rem;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.plans-l {
  font-family: var(--font-data); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3);
}
.plans-v { font-family: var(--font-data); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.plans-s { font-family: var(--font-data); font-size: 0.62rem; color: var(--text3); }

/* ── MF Times says ───────────────────────────────────────────────────────────
   A labelled editorial note. Everything else on a fund page is arithmetic from
   the NAV file; this is a judgement, and it is set apart so a reader can tell
   the difference at a glance. Gold rule, because gold is reserved for
   editorial voice. */
/* The note sits between the plan comparison above and "More about this fund"
   below. It had no bottom margin, so it ran flush into the next heading —
   a 0px gap between two distinct sections. */
.says {
  border: 1px solid var(--rule); border-left: 3px solid var(--gold);
  border-radius: 2px; background: var(--surf);
  padding: 1.4rem 1.5rem 1.3rem; margin: 1.6rem 0 3.25rem;
}
.says-k {
  font-family: var(--font-data); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.45rem;
}
.says-h {
  font-family: var(--font-head); font-size: 1.22rem; font-weight: 700;
  line-height: 1.25; margin: 0 0 0.6rem; color: var(--ink);
}
.says-i { font-size: 0.93rem; line-height: 1.7; color: var(--text2); margin: 0 0 1rem; max-width: 64ch; }
.says-list { display: flex; flex-direction: column; gap: 0.85rem; }
.says-p { font-size: 0.9rem; line-height: 1.7; color: var(--text2); max-width: 64ch; }
.says-p strong { color: var(--ink); }
.says-c {
  font-size: 0.93rem; line-height: 1.7; color: var(--ink); max-width: 64ch;
  margin: 1.1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--rule);
}
.says-n { font-size: 0.72rem; line-height: 1.55; color: var(--text3); margin: 0.9rem 0 0; }

/* Category chip: a quiet link, not a bordered badge. It sits beside the plan
   control, which is the actual interactive element in that row — giving both
   the same visual weight made neither read as primary. */
.fchip-cat {
  border: 0; background: none; padding: 0.3rem 0;
  color: rgba(248,244,236,0.62); letter-spacing: 0.09em;
  border-bottom: 1px solid rgba(248,244,236,0.2);
  border-radius: 0; margin-left: 0.4rem;
}
.fchip-cat:hover { color: var(--paper); border-bottom-color: var(--green-light); }
.fh-chips { align-items: center; }

/* Article rows under "More about this fund". These used .rail-i, a sidebar
   style whose spans run inline in a wide column — three articles fused into a
   single unreadable link. */
.fmore-a {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.fmore-a:last-child { border-bottom: 0; }
.fmore-at {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  line-height: 1.35; color: var(--ink);
}
.fmore-a:hover .fmore-at { color: var(--green); }
.fmore-ab {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text3);
}

/* Sortable table headings. The category table was locked to three-year return
   with no way to reorder it, and nothing indicated the order at all. */
th.sortable { cursor: pointer; user-select: none; position: relative; white-space: nowrap; }
th.sortable:hover { color: var(--green); }
th.sortable::after {
  content: '↕'; margin-left: 0.3rem; opacity: 0.28; font-size: 0.85em;
}
th.sortable.on { color: var(--green); }
th.sortable.on::after { content: '↓'; opacity: 1; }
th.sortable.on.asc::after { content: '↑'; }

/* ── Any two dates ───────────────────────────────────────────────────────────
   The fixed 1Y/3Y/5Y windows answer the question a site wants to ask; this
   answers the one a reader actually has, which is what their own holding
   period did. */
/* Custom date window on the growth chart. Borrows the returns widget's field
   styling on purpose — same control, same question, so it should not look
   like a different feature. */
.fc-dates {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end;
  margin: 0.9rem 0 0.2rem;
}
/* `display` beats the `hidden` ATTRIBUTE, so a bare `display: flex` above
   left the date fields on screen under 1Y/3Y/Max with dates pre-filled —
   they read as a live filter that was not filtering anything. Any element
   given a display value needs this alongside it. */
.fc-dates[hidden] { display: none; }
.fc-dates label {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text3);
}
.fc-dates input[type="date"] {
  font-family: var(--font-data); font-size: 0.84rem; color: var(--ink);
  padding: 0.45rem 0.6rem; border: 1px solid var(--border-s);
  border-radius: 2px; background: var(--bg);
}
.fc-dates input[type="date"]:focus { outline: none; border-color: var(--green); }
.fc-dmsg {
  font-size: 0.78rem; line-height: 1.45; color: var(--text3);
  flex: 1 1 14rem; min-width: 0; padding-bottom: 0.15rem;
}
@media (max-width: 560px) {
  /* Two date fields side by side, the note beneath — at 390px they will not
     share a row with the message without the fields becoming unusable. */
  .fc-dates label { flex: 1 1 8rem; }
  .fc-dmsg { flex: 1 1 100%; }
}

.rng {
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule);
}
.rng-h {
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.7rem;
}
.rng-f { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; }
.rng-f label {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-family: var(--font-data); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text3);
}
.rng-f input[type="date"] {
  font-family: var(--font-data); font-size: 0.84rem; color: var(--ink);
  padding: 0.45rem 0.6rem; border: 1px solid var(--border-s);
  border-radius: 2px; background: var(--bg);
}
.rng-f input[type="date"]:focus { outline: none; border-color: var(--green); }
.rng-out { margin-top: 0.9rem; min-height: 1.2rem; font-size: 0.88rem; color: var(--text2); }
.rng-out.err { color: var(--red); }
.rng-v {
  font-family: var(--font-data); font-size: 1.65rem; font-weight: 600;
  display: block; line-height: 1.1; color: var(--ink);
}
.rng-v.up { color: var(--green); }
.rng-v.dn { color: var(--red); }
.rng-s { display: block; font-size: 0.8rem; color: var(--text3); margin-top: 0.2rem; }
.rng-n {
  display: block; font-family: var(--font-data); font-size: 0.62rem;
  color: var(--text3); margin-top: 0.35rem;
}
