/* ════════════════════════════════════════════════════════════
   fund-detail.css · v9 split-out
   ────────────────────────────────────────────────────────────
   Extracted from css/funds.css (lines 3405-4077) on 2026-05-15
   as part of Phase 1.2 CSS reorganisation.

   Contents:
     • v8 Deep Metrics (Section 04b · logged-in tier · rendered by
       scorecard.js when body.is-logged-in · Phase 4.1 gate split)
     • v8.5 Fund-Detail masthead + metric-strip + verdict-vault

   Load order on fund-detail.html:
       css/main.css → css/funds.css → css/fund-detail.css → css/v8-tokens.css

   Only fund-detail.html loads this file. All selectors here are
   either fund-detail-page-specific (e.g. .fund-ident, .metric-strip,
   .verdict-vault) or rendered dynamically by scorecard.js into the
   fund-detail DOM (e.g. .dm-*, .deep-metrics).
   ════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   v8 · Deep Metrics (Section 04b · client-only)
   ════════════════════════════════════════════════════════════ */
.deep-metrics { padding-top: 4px; }
.dm-head { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.dm-h {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  display: inline-block;
  margin-right: 14px;
}
.dm-h-mt { margin-top: 28px; display: block; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.dm-h-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--neutral-grey);
  text-transform: uppercase;
}

/* Rolling returns + drawdown tables */
.dm-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 12px;
}
.dm-table th {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-grey);
  text-align: right;
  padding: 8px 12px;
  border-bottom: 1.5px solid var(--ink);
}
.dm-table th.left { text-align: left; }
.dm-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.dm-table td.left { text-align: left; color: var(--ink); }
.dm-table td.fund-num { color: var(--ink); font-weight: 600; }
.dm-delta.pos { color: var(--strong); font-weight: 600; }
.dm-delta.neg { color: var(--monitor); font-weight: 600; }
.dm-table td.mono { color: var(--neutral-grey); }
.dm-dd-table { margin-top: 10px; }

/* Two-column grid: peers + drawdown */
.dm-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  margin-top: 18px;
}
@media (max-width: 1024px) { .dm-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Peer overlap rows */
.dm-peer-list { display: grid; gap: 10px; margin-top: 14px; }
.dm-peer-row {
  display: grid;
  grid-template-columns: 1.6fr 2fr 38px auto;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
}
.dm-peer-name {
  font-family: var(--serif);
  font-size: 13.5px;
  font-variation-settings: "SOFT" 40, "opsz" 36;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.dm-peer-track {
  height: 4px;
  background: var(--rule);
  position: relative;
  display: block;
}
.dm-peer-fill { display: block; height: 100%; background: var(--ink-soft); }
.dm-peer-pct { color: var(--ink); font-weight: 600; text-align: right; }
.dm-peer-verdict {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 2px 7px;
  text-transform: uppercase;
}
.dm-peer-verdict.v-strong    { color: var(--strong);    background: var(--strong-soft); }
.dm-peer-verdict.v-selective { color: var(--selective); background: var(--selective-soft); }
.dm-peer-verdict.v-satellite { color: var(--satellite); background: var(--satellite-soft); }
.dm-peer-verdict.v-fallback  { color: var(--fallback);  background: var(--fallback-soft); }
.dm-peer-verdict.v-monitor   { color: var(--monitor);   background: var(--monitor-soft); }

/* Placeholder cards */
.dm-placeholders {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 900px) { .dm-placeholders { grid-template-columns: 1fr; } }
.dm-ph-card {
  background: var(--paper-warm);
  border: 1px dashed var(--rule-strong);
  padding: 18px 18px 14px;
}
.dm-ph-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--satellite);
  margin-bottom: 8px;
}
.dm-ph-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "opsz" 36;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 6px;
}
.dm-ph-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 10px;
}
.dm-ph-status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-grey);
  padding-top: 8px;
  border-top: 1px dotted var(--rule);
}

/* ════════════════════════════════════════════════════════════
   v8.5 · Fund-Detail masthead + metric-strip + verdict-vault
   Ported from new design (trw-mockup 2 / fund-detail.html)
   ════════════════════════════════════════════════════════════ */

/* ── fund-ident · masthead with NAV display ───────────── */
.fund-ident {
  padding: 24px 0 22px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
}
.fund-ident-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1024px) { .fund-ident-grid { grid-template-columns: 1fr; gap: 20px; } }
.fund-ident-main .verdict-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fund-ident-main .verdict-eyebrow .swatch {
  width: 9px;
  height: 9px;
  background: var(--signal);
  display: inline-block;
}
.fund-ident-main .verdict-eyebrow .label { font-weight: 600; color: var(--signal-deep); }
.fund-ident-main .verdict-eyebrow .meta {
  color: var(--neutral-grey);
  padding-left: 10px;
  border-left: 1px solid var(--rule-strong);
}
.fund-ident-main h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 360;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin-bottom: 14px;
  color: var(--ink);
}
.fund-ident-main h1 .plan {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--ink-soft);
  font-size: 0.62em;
  font-weight: 400;
  display: block;
  margin-top: 6px;
  letter-spacing: -0.025em;
}
.fund-ident-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.fund-ident-meta > span {
  padding: 0 12px;
  border-right: 1px solid var(--rule);
  white-space: nowrap;
}
.fund-ident-meta > span:first-child { padding-left: 0; }
.fund-ident-meta > span:last-child { border-right: none; }
.fund-ident-meta strong { color: var(--ink); font-weight: 600; }

/* ── NAV display card ─────────────────────────────────── */
.nav-display {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.nav-display::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--signal-light);
}
.nav-display .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,252,249,0.55);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-display .lbl .live {
  width: 6px;
  height: 6px;
  background: var(--signal-light);
  border-radius: 50%;
  animation: pulse 1.6s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1)) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.nav-display .val {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 360;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  line-height: 0.95;
  color: var(--paper);
}
.nav-display .val .sym {
  color: rgba(255,252,249,0.6);
  font-size: 0.7em;
  margin-right: 4px;
}
.nav-display .delta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,252,249,0.15);
}
.nav-display .delta .val-d {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-display .delta.pos .val-d { color: var(--signal-light); }
.nav-display .delta.neg .val-d { color: #D88B92; }
.nav-display .delta .lbl-d {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,252,249,0.5);
}
.nav-display .as-of {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,252,249,0.45);
  margin-top: 12px;
}

/* ── Metric strip · 4 decision-KPI tiles (council #1) ──── */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  margin: 0 0 var(--s-6);
}
@media (max-width: 1024px) { .metric-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .metric-strip { grid-template-columns: repeat(2, 1fr); } }
.metric-tile {
  padding: 16px 18px;
  border-right: 1px solid var(--rule);
  font-family: var(--mono);
  position: relative;
}
.metric-tile:last-child { border-right: none; }
@media (max-width: 1024px) {
  .metric-tile:nth-child(4n) { border-right: none; }
}
@media (max-width: 600px) {
  .metric-tile:nth-child(2n) { border-right: none; }
}
.metric-tile .lbl {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neutral);
  margin-bottom: 6px;
}
.metric-tile .val {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "SOFT" 50, "opsz" 80;
  color: var(--ink);
}
.metric-tile .val.pos { color: var(--strong); }
.metric-tile .val.neg { color: var(--monitor); }
.metric-tile .val .unit {
  font-family: var(--mono);
  font-size: 0.45em;
  font-weight: 500;
  color: var(--neutral-grey);
  letter-spacing: 0.06em;
  margin-left: 3px;
}
.metric-tile .sub {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--neutral);
  margin-top: 5px;
  text-transform: uppercase;
}

/* ── Verdict Vault · Section 07 locked / unlocked ──────── */
.verdict-vault {
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  margin-top: 18px;
}
.verdict-vault-head {
  padding: 18px 26px;
  border-bottom: 1px solid var(--night-rule, rgba(255,252,249,0.18));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.verdict-vault-head .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--signal-light);
  font-weight: 600;
}
.verdict-vault-head .label::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--signal-light);
}
.verdict-vault-head .access { color: rgba(255,252,249,0.5); }
.verdict-vault-head .access .lock-mini {
  margin-right: 6px;
  display: inline-block;
}

.verdict-vault-body {
  padding: 32px 28px 28px;
  position: relative;
  min-height: 280px;
}
.verdict-vault-locked,
.verdict-vault-unlocked {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.verdict-vault-unlocked {
  position: absolute;
  inset: 32px 28px 28px;
  opacity: 0;
  pointer-events: none;
}
.verdict-vault.unlocked .verdict-vault-locked {
  display: none;
  /* was opacity: 0 — stayed in flow and stole vertical space. display: none collapses it. */
}
.verdict-vault.unlocked .verdict-vault-unlocked {
  opacity: 1;
  pointer-events: auto;
}
/* When unlocked, hide the locked-state head banner ("Verdict · Client-Only · Sign in to unlock").
   This was bleeding into the unlocked render and confusing the visual hierarchy. */
.verdict-vault.unlocked .verdict-vault-head {
  display: none;
}

/* Research-pending state (Phase 2.1.b · 2026-05-15) — rendered when client is
   authenticated but the fund has no scorecard payload. Honest about coverage. */
.verdict-pending {
  padding: 36px 32px;
  text-align: left;
  max-width: 540px;
  margin: 0 auto;
}
.verdict-pending .vp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.verdict-pending .vp-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "opsz" 60;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1.25;
  margin: 0 0 16px;
}
.verdict-pending .vp-body {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,252,249,0.72);
  margin: 0 0 20px;
}
.verdict-pending .vp-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--signal);
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.verdict-pending .vp-cta:hover {
  background: var(--signal);
  color: var(--ink);
}

/* Locked state */
.verdict-vault-locked .v-band {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verdict-vault-locked .v-band .blur-name {
  filter: blur(8px);
  user-select: none;
  background: rgba(255,252,249,0.12);
  padding: 2px 14px;
  letter-spacing: 0.15em;
  color: var(--paper);
}
.verdict-vault-locked .v-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "opsz" 80;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 4px;
  line-height: 1.1;
}
.verdict-vault-locked .v-role {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80, "opsz" 60;
  font-size: 15px;
  color: rgba(255,252,249,0.7);
  margin-bottom: 18px;
  filter: blur(7px);
  user-select: none;
  display: inline-block;
}
.verdict-vault-locked .v-rationale { position: relative; margin-bottom: 22px; max-width: 60ch; }
.verdict-vault-locked .v-rationale .lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verdict-vault-locked .v-rationale .lines > div {
  height: 11px;
  background: linear-gradient(90deg, rgba(255,252,249,0.14), rgba(255,252,249,0.08));
  filter: blur(0.5px);
}
.verdict-vault-locked .v-rationale .lines > div:nth-child(2) { width: 92%; }
.verdict-vault-locked .v-rationale .lines > div:nth-child(3) { width: 78%; }
.verdict-vault-locked .v-rationale .lines > div:nth-child(4) { width: 86%; }
.verdict-vault-locked .v-rationale .lines > div:nth-child(5) { width: 64%; }

/* Lock seal */
.lock-seal {
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--signal-light);
  border-radius: 50%;
  opacity: 0.3;
  animation: seal-pulse 3s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.lock-seal::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--signal-light);
  border-radius: 50%;
  opacity: 0.5;
}
.lock-seal svg {
  position: relative;
  z-index: 1;
  color: var(--signal-light);
}
@keyframes seal-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* CTA strip below the locked content */
.verdict-vault-cta {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--night-rule, rgba(255,252,249,0.18));
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.verdict-vault-cta p {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80;
  font-size: 14px;
  color: rgba(255,252,249,0.75);
  flex: 1;
  min-width: 220px;
  line-height: 1.45;
  margin: 0;
}
.verdict-vault-cta .btn {
  padding: 9px 14px;
  font-size: 10.5px;
  background: var(--signal);
  border-color: var(--signal);
  color: var(--paper);
}
.verdict-vault-cta .btn:hover { background: var(--signal-deep); }
.verdict-vault-cta .btn-ghost-d {
  background: transparent;
  border: 1px solid rgba(255,252,249,0.3);
  color: var(--paper);
}
.verdict-vault-cta .btn-ghost-d:hover { border-color: var(--paper); }

/* Unlocked state */
.verdict-vault-unlocked .v-band {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--signal-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.verdict-vault-unlocked .v-band .pip {
  width: 10px;
  height: 10px;
  background: var(--signal-light);
}
.verdict-vault-unlocked .v-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "opsz" 80;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 6px;
  line-height: 1.05;
}
.verdict-vault-unlocked .v-role {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80, "opsz" 60;
  font-size: 17px;
  color: var(--signal-light);
  margin-bottom: 16px;
}
.verdict-vault-unlocked .v-rationale {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,252,249,0.88);
  margin-bottom: 16px;
  max-width: 60ch;
}
.verdict-vault-unlocked .v-rationale strong { color: var(--paper); font-weight: 600; }
.verdict-vault-unlocked .v-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,252,249,0.55);
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--night-rule, rgba(255,252,249,0.18));
}
.verdict-vault-unlocked .v-meta span strong { color: var(--paper); }

/* ── Rolling-returns chart frame (Section 01) ─────────── */
.chart-frame-roll .chart-roll-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  margin-top: 8px;
}
.chart-frame-roll .rs {
  padding: 0 16px;
  border-right: 1px solid var(--rule);
}
.chart-frame-roll .rs:first-child { padding-left: 0; }
.chart-frame-roll .rs:last-child { border-right: none; }
.chart-frame-roll .rs-lbl {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-grey);
  margin-bottom: 4px;
}
.chart-frame-roll .rs-val {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-variation-settings: "SOFT" 50, "opsz" 60;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.chart-frame-roll .chart-legend .swatch.cat { background: var(--neutral-grey); }
.chart-frame-roll .chart-legend .swatch.alpha {
  background: var(--signal-light);
  opacity: 0.4;
}
.chart-frame-roll .chart-legend .alpha-shade { color: var(--signal-deep); }
@media (max-width: 720px) {
  .chart-frame-roll .chart-roll-stats { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .chart-frame-roll .rs:nth-child(2) { border-right: none; }
  .chart-frame-roll .rs:nth-child(3) { padding-left: 0; }
}

/* ════════════════════════════════════════════════════════════
   TRW Score Hero — Phase 2.1.b council-mandated cover block.
   Big number + verdict descriptor + one-line author note (left)
   + 5 sub-score rows (right). MFD-safe public layer.
   ════════════════════════════════════════════════════════════ */
.trw-score-hero {
  margin: var(--s-4) 0 0;
  padding: 26px 28px;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
}
/* Tone is carried by the score figure + band colour (.tsh-num /
   .tsh-band below), not a coloured side stripe. */

.tsh-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(280px, 1.6fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) {
  .tsh-grid { grid-template-columns: 1fr; gap: 24px; }
}
.tsh-left, .tsh-right { min-width: 0; }
.tsh-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--neutral-grey);
  margin-bottom: 12px;
}
.tsh-eyebrow--sub { color: var(--ink-soft); }
.tsh-num-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.tsh-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 350;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.trw-score-hero--high .tsh-num { color: var(--strong); }
.trw-score-hero--mid  .tsh-num { color: var(--ink); }
.trw-score-hero--low  .tsh-num { color: var(--monitor); }
.tsh-denom {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--neutral-grey);
}
.tsh-band {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-variation-settings: "SOFT" 70;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.2;
}
.trw-score-hero--high .tsh-band { color: var(--strong); }
.trw-score-hero--low  .tsh-band { color: var(--monitor); }
.tsh-author-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36ch;
}

.tsh-right { display: flex; flex-direction: column; gap: 10px; }
.tsh-sub-row {
  display: grid;
  grid-template-columns: 130px 1fr 56px;
  gap: 14px;
  align-items: center;
}
.tsh-sub-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.tsh-sub-bar {
  height: 6px;
  background: var(--rule);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.tsh-sub-fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--ink);
  transition: width 600ms cubic-bezier(.2,.6,.2,1) 100ms;
}
.trw-score-hero--high .tsh-sub-fill { background: var(--strong); }
.trw-score-hero--mid  .tsh-sub-fill { background: var(--selective); }
.trw-score-hero--low  .tsh-sub-fill { background: var(--neutral-grey); }
.tsh-sub-val {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: right;
}

.tsh-pending {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.tsh-pending-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--neutral-grey);
}
.tsh-pending-value {
  font-family: var(--serif);
  font-size: 32px;
  font-variation-settings: "SOFT" 50;
  color: var(--neutral-grey);
}
.tsh-pending-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ── Locked (logged-out) score card ──────────────────────── */
.tsh-locked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
}
.tsh-locked-eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--neutral-grey);
}
.tsh-locked-value {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 350;
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 50, "opsz" 80;
  color: var(--ink);
}
.tsh-locked-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin: 22px 0 20px;
}
.tsh-locked-factors {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--neutral);
  line-height: 1.8;
}
.tsh-locked-desc {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
}
.tsh-signin-btn {
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.tsh-signin-btn:hover { opacity: 0.8; }

/* ════════════════════════════════════════════════════════════
   R3 · REDESIGN — headline, score framing, provenance, returns
   ════════════════════════════════════════════════════════════ */

/* ── Score caveat · full-width footer of the score card ───
   "What this score does not capture" sits below both score
   columns, so neither column carries it and the rule reads as
   a true card-wide divider. */
.tsh-caveat {
  margin: var(--s-5) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--neutral);
  max-width: 76ch;
}

/* ── Factual headline · the page's one true claim ─────────
   Boxed: a defined container separates it cleanly as the single
   editorial verdict. The heavier ink border (vs the score card's
   --rule-strong) marks it as the claim, not just another panel. */
.fund-headline {
  margin: var(--s-6) 0;
  padding: 24px 28px;
  background: var(--paper-card);
  border: 1px solid var(--ink);
}
.fh-claim {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fp-step-3);
  font-weight: 420;
  line-height: 1.24;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 50, "opsz" 90;
  color: var(--ink);
  text-wrap: balance;
}
.fh-tail {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ── Provenance + commission disclosure ─────────────────── */
.fund-provenance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  margin: var(--s-3) 0 var(--s-5);
  padding: 12px 0 0;
  border-top: 1px solid var(--rule);
}
.fp-asof {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral);
  white-space: nowrap;
}
.fp-asof.data-stale { color: var(--warning); }
.fp-disc {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--neutral);
  max-width: 88ch;
}

/* ── Per-section "why this matters to you" line (Ogilvy) ── */
.fsec-why {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
}
@media (max-width: 600px) { .fsec-why { font-size: 12.5px; } }

/* ── Returns table · "deepest fall" column ──────────────── */
.perf-period-table td.dd-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--neutral-grey);
}
.perf-period-table td.dd-num.neg { color: var(--monitor); }

.fh-locked-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.fh-locked-btn:hover { opacity: 0.8; }

@media (max-width: 600px) {
  .fund-headline { margin: var(--s-5) 0; padding: 18px 20px; }
  .fh-claim { font-size: var(--fp-step-2); }
}

/* ════════════════════════════════════════════════════════════
   R4 · MOBILE — the page must hold down to 360px (most TRW
   traffic is phones). The grid items below must be allowed to
   shrink past their content's min-content size, or the 1fr
   column inflates to the widest child and the page scrolls
   sideways. min-width:0 is the fix and is harmless at desktop.
   ════════════════════════════════════════════════════════════ */
.f4-content,
.f4-content .fsec,
.f4-content .fsec-body { min-width: 0; }

@media (max-width: 720px) {
  /* Section chapter header stacks: number + title, meta on its
     own line, nothing forced onto one non-wrapping row. */
  .fsec-chapter {
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
  }
  .fsec-chapter .chap-meta {
    grid-column: 1 / -1;
    text-align: left;
    white-space: normal;
    padding-bottom: 0;
  }

  /* Returns table compresses to fit a phone: lighter type,
     tight padding, wrapping headers — never a sideways scroll. */
  .perf-period-table thead th {
    font-size: 8.5px;
    letter-spacing: 0.04em;
    padding: 7px 5px;
    white-space: normal;
  }
  .perf-period-table tbody td { padding: 10px 5px; font-size: 12.5px; }
  .perf-period-table tbody td.left { font-size: 11px; }

  /* Score hero + headline ease their padding on small screens. */
  .trw-score-hero { padding: 20px 18px; }
  .tsh-caveat { max-width: none; }
  .fund-provenance { gap: 6px 0; }
}

/* ════════════════════════════════════════════════════════════
   IMPECCABLE AUDIT FIXES — a11y, contrast, distill, polish
   ════════════════════════════════════════════════════════════ */

/* Section titles are now <h2>; reset the UA heading margin so the
   .fsec-chapter grid baseline is unchanged. */
.fsec-chapter h2.chap-title { margin: 0; }

/* Contrast — the small mono labels measured 4.07:1 on paper
   (--neutral-grey); --neutral clears the 4.5:1 AA floor. */
.fsec-chapter .chap-meta,
.perf-period-table thead th,
.f4-content .h4-mono { color: var(--neutral); }

/* Touch targets — primary actions must clear 44px on phones. */
@media (max-width: 600px) {
  .f5-actions-buttons .btn,
  .f5-actions-buttons .tool-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* PCI block — styles distilled out of fund-detail.js inline cssText. */
.pci-gate { position: relative; overflow: hidden; }
.pci-body--locked {
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}
/* Overlay: radial cream gradient so blurred chart ghost shows at periphery */
.pci-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse 72% 65% at 50% 50%,
    rgba(250, 248, 243, 0.96) 0%,
    rgba(250, 248, 243, 0.88) 50%,
    rgba(250, 248, 243, 0.68) 100%
  );
  z-index: 2;
}
/* Centered card inside the overlay */
.pci-lock-card {
  background: var(--paper-card);
  border: 1px solid var(--rule-strong, var(--ink));
  padding: 28px 36px;
  max-width: 400px;
  width: calc(100% - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}
.pci-lock-eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral);
  line-height: 1.6;
}
.pci-lock-heading {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 420;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 50;
  color: var(--ink);
}
.pci-lock-desc {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34ch;
}
.pci-lock-btn {
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pci-lock-btn:hover { opacity: 0.8; }
@media (max-width: 600px) {
  .pci-lock-card { padding: 22px 24px; width: calc(100% - 40px); }
}

.pci-block { margin-top: 14px; }
.pci-line { margin-top: 8px; }
.pci-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}
.pci-big {
  font-family: var(--serif);
  font-size: var(--fp-step-4);
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "opsz" 80;
}
.pci-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.pci-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 4px 0 2px;
  max-width: 70ch;
}
.pci-strip-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral);
  margin: 14px 0 5px;
}
.chart-roll-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: 16px;
}
.chart-roll-stats .rs {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chart-roll-stats .rs-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral);
}
.chart-roll-stats .rs-val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.chart-foot-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--neutral);
  margin-top: 8px;
  text-align: center;
}

/* Replace the banned side-stripe on the locked card with a full
   1px border (the card already carries border: 1px elsewhere). */
.analyst-locked-card,
.deep-metrics-locked-card {
  border-left-width: 1px;
  border-left-color: var(--rule-strong);
}

/* Clamp horizontal scroll — body already hides overflow-x; html must
   too, or the off-canvas header drawer leaves a phantom scrollbar. */
html { overflow-x: hidden; }

/* Visible, on-brand focus ring for keyboard users. */
.f4-content a:focus-visible,
.f4-content button:focus-visible,
.f5-action-row a:focus-visible,
.f5-action-row button:focus-visible,
.f4-toc a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════
   Manager & mandate · flowing fact grid
   Two labelled blocks stacked; each block's facts reflow to fill
   the row, so a 3-fact group and a 7-fact group both sit clean.
   ════════════════════════════════════════════════════════════ */
.fact-block + .fact-block { margin-top: var(--s-6); }
.fact-block .h4-mono { margin-bottom: 10px; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.fact-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fact-cell .fl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral);
}
.fact-cell .fv {
  font-family: var(--serif);
  font-size: 18px;
  font-variation-settings: "SOFT" 40, "opsz" 40;
  line-height: 1.25;
  color: var(--ink);
}

/* ════════════════════════════════════════════════════════════
   FAQ · numbered accordion with a smooth grid-rows expand
   ════════════════════════════════════════════════════════════ */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 12px;
  margin: 0 -12px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.faq-q:hover { background: var(--paper-card); }
.faq-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--neutral);
  transition: color var(--t-fast);
}
.faq-text {
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 40, "opsz" 60;
  color: var(--ink);
  line-height: 1.3;
}
.faq-icon {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
  align-self: center;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.28s var(--ease-out);
}
.faq-icon::before { top: 10px; left: 0; right: 0; height: 1.5px; }
.faq-icon::after  { left: 10px; top: 0; bottom: 0; width: 1.5px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-item.open .faq-num { color: var(--ink); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner p {
  margin: 0;
  padding: 2px 0 24px 51px;
  max-width: 70ch;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .faq-q { gap: 14px; padding: 16px 10px; margin: 0 -10px; }
  .faq-a-inner p { padding-left: 0; }
}

/* ── Capture chart · plain-English translation ──────────── */
.capture-explain {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--rule);
}
.capture-explain p {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 74ch;
}
.capture-explain p:last-child { margin-bottom: 0; }
.capture-explain .capture-verdict {
  margin-top: 10px;
  font-weight: 600;
  color: var(--ink);
}

/* ════════════════════════════════════════════════════════════
   Metric glossary · info icon + hover / focus definition popover
   ════════════════════════════════════════════════════════════ */
.metric-info {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 5px;
}
.mi-btn {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: none;
  color: var(--neutral);
  font-family: var(--serif);
  font-size: 9.5px;
  font-style: italic;
  line-height: 1;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.mi-btn:hover,
.metric-info:focus-within .mi-btn {
  border-color: var(--ink);
  color: var(--ink);
}
.mi-pop {
  position: absolute;
  top: calc(100% + 9px);
  left: -10px;
  z-index: 30;
  width: 248px;
  padding: 13px 15px 14px;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 30px rgba(40, 62, 45, 0.28);
  text-transform: none;
  letter-spacing: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              visibility var(--t-base);
  pointer-events: none;
}
.metric-info:hover .mi-pop,
.metric-info:focus-within .mi-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mi-pop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 14px;
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  transform: rotate(45deg);
}
.mi-pop-term {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-light);
  margin-bottom: 6px;
}
.mi-pop p {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.52;
  color: var(--paper);
}
.mi-pop p:last-child { margin-bottom: 0; }
.mi-pop .mi-pop-good { color: var(--signal-light); font-weight: 500; }
.mi-pop .mi-pop-range { color: rgba(244, 235, 217, 0.66); }

/* Flip the popover leftward for right-side tiles / cells so it never
   runs off the page edge. */
.metric-strip .metric-tile:nth-child(3) .mi-pop,
.metric-strip .metric-tile:nth-child(4) .mi-pop,
.specs-sheet .spec-cell:nth-child(3n) .mi-pop {
  left: auto;
  right: -10px;
}
.metric-strip .metric-tile:nth-child(3) .mi-pop::before,
.metric-strip .metric-tile:nth-child(4) .mi-pop::before,
.specs-sheet .spec-cell:nth-child(3n) .mi-pop::before {
  left: auto;
  right: 14px;
}
@media (max-width: 720px) {
  .specs-sheet .spec-cell:nth-child(3n) .mi-pop { left: -10px; right: auto; }
  .specs-sheet .spec-cell:nth-child(3n) .mi-pop::before { left: 14px; right: auto; }
  .specs-sheet .spec-cell:nth-child(2n) .mi-pop { left: auto; right: -10px; }
  .specs-sheet .spec-cell:nth-child(2n) .mi-pop::before { left: auto; right: 14px; }
}
@media (max-width: 600px) {
  .metric-strip .metric-tile:nth-child(2n-1) .mi-pop { left: -10px; right: auto; }
  .metric-strip .metric-tile:nth-child(2n-1) .mi-pop::before { left: 14px; right: auto; }
  .metric-strip .metric-tile:nth-child(2n) .mi-pop { left: auto; right: -10px; }
  .metric-strip .metric-tile:nth-child(2n) .mi-pop::before { left: auto; right: 14px; }
  .mi-pop { width: 232px; }
}

/* ════════════════════════════════════════════════════════════
   Risk profile · spec-cell legibility
   The shared .spec-cell label + note ran at 9.5px in --neutral-grey
   (4.07:1, below AA). Within the Risk section, lift them.
   ════════════════════════════════════════════════════════════ */
.specs-sheet .spec-lbl {
  font-size: 10px;
  color: var(--neutral);
}
.specs-sheet .spec-note {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--neutral);
}

/* Returns-table header info-icons: flip the popover leftward for the
   right-hand columns so it never runs off the page edge. */
.perf-period-table thead th:nth-last-child(-n+2) .mi-pop {
  left: auto;
  right: -10px;
}
.perf-period-table thead th:nth-last-child(-n+2) .mi-pop::before {
  left: auto;
  right: 14px;
}
