/*
 * Centricity MF Screener Dashboard — Fund Detail page CSS
 * Source of truth: Dashboard/Claude Design Dashboard Data/Mockups/Screen_03_Fund_Report.html
 *
 * This file ports the mockup's self-contained CSS into the deployed
 * page, depending on centricity.css for the shared palette + typography
 * and the appbar / footer / toast / empty-state primitives. Only colour
 * variables not in centricity.css are introduced here (--brown,
 * --brown-deep, --amber).
 *
 * Cowork 2026-05-06 — Fund Detail full rebuild (Sheet 3 review).
 */

/* Fix-List 5 §C1 — `[hidden]` was being overridden by `.not-found {
 * display: flex; }` further down because attribute-style hiding has
 * lower specificity than element-style display. Pin it at the top so
 * any element with the hidden attribute disappears regardless of any
 * later rule that sets display. */
[hidden] { display: none !important; }

/* Local variable extensions (centricity.css already declares the rest) */
:root {
  --brown:      #6B3F1A;
  --brown-deep: #4A2C12;
  --amber:      #B08800;
}

/* Faint warm body background — matches the mockup's #fafaf7 paper feel */
html, body { background: #fafaf7; }

/* ============ BREADCRUMB ============ */
/* §7.80 (Batch-17 item 6) — moved to the shared css/centricity.css so all pages
   share one styled breadcrumb (gold "›" separator). Kept here as a marker only. */

/* ============ HERO ============ */
.hero {
  background: #fff; border-bottom: 1px solid var(--rule);
  padding: 30px 56px 26px;
}
.hero-inner {
  max-width: 1740px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px;
}
.hero .eyebrow {
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  /* Fix-List 5 §C3 — black for legibility on the white hero, was gold */
  color: #000;
  font-weight: 700; display: block; margin-bottom: 8px;
}
.hero .hero-eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
}
.hero .hero-eyebrow-row .eyebrow { margin-bottom: 0; }
.hero .hero-eyebrow-row .hero-cycle { margin-top: 0; }
.hero h1 {
  margin: 0; font-size: 34px; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.1;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.hero .meta {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 0;
  font-size: 13px; color: var(--text-mid);
}
.hero .meta span {
  padding: 0 14px; border-right: 1px solid var(--rule);
}
.hero .meta span:first-child { padding-left: 0; }
.hero .meta span:last-child { border-right: 0; }
.hero .meta b { color: var(--black); font-weight: 700; }

.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  font-family: inherit; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 16px; border-radius: 3px; border: 1px solid var(--gold);
  background: #fff; color: var(--gold); font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.btn:hover { background: var(--tan-soft); }
.btn.primary { background: var(--gold); color: #fff; }
.btn.primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn.ghost { border-color: var(--grey-light); color: var(--black); }
.btn.ghost:hover { background: var(--tan-soft); border-color: var(--gold); }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
/* Deferred-button caption — Fix-List 2 §I parity */
.btn.deferred { position: relative; opacity: .45; }
.btn.deferred::after {
  content: "Coming after web design lock-in";
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px; letter-spacing: .08em; text-transform: none;
  color: var(--text-mid); font-weight: 400;
  white-space: nowrap; pointer-events: none;
}

/* ============ SCORE CARD ============ */
.score-card {
  background: #000; color: #fff; border-radius: 6px; padding: 24px 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  border: 1px solid var(--brown);
}
.score-card .lbl {
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.score-card .big {
  font-size: 60px; font-weight: 700; line-height: 1;
  letter-spacing: -.02em; margin-top: 6px;
}
.score-card .big em {
  font-style: normal; color: var(--gold);
  font-size: .5em; font-weight: 400; margin-left: 6px;
}
.score-card .delta { font-size: 12.5px; color: rgba(255, 255, 255, .7); margin-top: 8px; }
.score-card .delta b { color: var(--gold); }
/* F6 — two-row change line. Row 1 (rank) prominent white; Row 2 (cycle) muted. */
.score-card .delta .score-rank-line { font-size: 14px; color: #fff; font-weight: 600; line-height: 1.45; }
.score-card .delta .score-rank-line:empty { display: none; }
.score-card .delta .score-cycle-line { font-size: 12px; color: rgba(255, 255, 255, .7); margin-top: 3px; line-height: 1.5; }
.score-card .conviction {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.verdict-pill {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 8px 14px; border-radius: 3px; display: inline-block;
}
.verdict-pill.recommended { background: var(--gold); color: #fff; }
.verdict-pill.watch {
  background: rgba(176, 136, 0, .18); color: #FFD46A;
  border: 1px solid rgba(176, 136, 0, .5);
}
.verdict-pill.exit {
  background: rgba(147, 22, 33, .20); color: #FF8B95;
  border: 1px solid rgba(147, 22, 33, .5);
}
.verdict-pill.new {
  background: rgba(189, 149, 104, .20); color: #FFD9B0;
  border: 1px solid rgba(189, 149, 104, .55);
}

.score-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.score-grid .cell { font-size: 11px; letter-spacing: .04em; }
.score-grid .cell .k {
  color: rgba(255, 255, 255, .55); text-transform: uppercase;
  letter-spacing: .14em; font-size: 9.5px; font-weight: 700;
  display: block; margin-bottom: 4px;
}
.score-grid .cell .v { color: #fff; font-size: 14px; font-weight: 700; }

/* ============ DEBT QUALITY SNAPSHOT CARD ============
 * Replaces the .score-card big-number layout for MF_Debt funds. Uses the
 * same black/gold .score-card shell — only the interior swaps.
 */
.debt-quality-card .debt-snap-head {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 10px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.debt-quality-card .debt-snap-dominant {
  font-size: 18px; font-weight: 700; color: #fff;
  letter-spacing: -.005em; line-height: 1.15;
}
.debt-quality-card .debt-snap-dominant-pct {
  font-size: 28px; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.debt-quality-card .debt-snap-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.debt-quality-card .debt-snap-grid .cell { font-size: 11px; letter-spacing: .04em; }
.debt-quality-card .debt-snap-grid .cell .k {
  color: rgba(255, 255, 255, .55); text-transform: uppercase;
  letter-spacing: .14em; font-size: 9.5px; font-weight: 700;
  display: block; margin-bottom: 4px;
}
.debt-quality-card .debt-snap-grid .cell .v { color: #fff; font-size: 14px; font-weight: 700; }
.debt-quality-card .debt-snap-grid .cell .v.warn { color: #FF8B95; }

/* ============ DEBT % IN DEFAULT BADGE ============ */
.debt-default-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(147, 22, 33, .10);
  color: var(--red);
  border: 1px solid rgba(147, 22, 33, .45);
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em;
  margin: 6px 0 12px;
}
.debt-default-badge .badge-pip {
  display: inline-block;
  width: 16px; height: 16px; line-height: 16px;
  text-align: center;
  background: var(--red); color: #fff;
  border-radius: 50%; font-size: 10px;
}

/* Negative-row marker for credit/asset legend (negative cash & equiv) */
.donut-legend .dlegend-row.debt-neg-row { background: rgba(147, 22, 33, .04); }
.donut-legend .dlegend-pct.neg { color: var(--red); }

/* ============ MAIN GRID ============ */
.report {
  max-width: 1740px; margin: 0 auto;
  padding: 32px 56px 64px;
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
}
.report-content { min-width: 0; }

/* ============ TOC ============ */
aside.toc {
  position: sticky; align-self: flex-start; top: 104px;
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  padding: 18px 18px;
}
aside.toc h6 {
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; font-weight: 700;
}
aside.toc ol {
  list-style: none; padding: 0; margin: 0; counter-reset: toc;
}
aside.toc li {
  counter-increment: toc; font-size: 13px; padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: baseline; gap: 10px;
}
aside.toc li:last-child { border-bottom: 0; }
aside.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gold); font-weight: 700; font-size: 11px;
  letter-spacing: .05em; min-width: 22px;
}
aside.toc li a {
  flex: 1; color: var(--black); transition: color .15s;
}
aside.toc li a:hover { color: var(--brown); }
aside.toc .toc-disclaimer {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px; color: var(--text-mid); line-height: 1.55;
}
aside.toc .toc-disclaimer b {
  color: var(--gold); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  display: block; margin-bottom: 6px;
}

/* ============ SECTIONS ============ */
section.block {
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  padding: 26px 30px 28px; margin-bottom: 22px;
  scroll-margin-top: 104px;
}
section.block h2 {
  margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.005em;
  display: flex; align-items: baseline; gap: 14px;
}
section.block h2 em {
  font-style: italic; font-weight: 400; color: var(--gold-deep); font-size: .78em;
}
section.block .h-sub {
  font-size: 13px; color: var(--text-mid); margin: 0 0 22px;
}
section.block .block-sub-h {
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 8px; font-weight: 700;
}
.rule { height: 1px; background: var(--rule); margin: 22px 0; }

/* ============ PERFORMANCE TABLE ============ */
.perf-table-wrap { overflow-x: auto; }
table.perf {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
table.perf thead th {
  background: #000; color: #fff; text-align: right;
  padding: 12px 14px; font-weight: 700;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
table.perf thead th:first-child { text-align: left; }
table.perf tbody td {
  padding: 13px 14px; text-align: right;
  border-bottom: 1px solid var(--rule);
}
table.perf tbody td:first-child {
  text-align: left; font-weight: 700;
}
table.perf tbody tr:hover { background: var(--tan-soft); }
table.perf .row-fund td:first-child { color: var(--brown); font-weight: 700; }
table.perf .row-bench td { color: var(--text-mid); }
table.perf .row-cat td { color: var(--text-mid); font-style: italic; }
/* Fix-List 6 §2A — Excess Return is the 4th row, with a gold separator above */
table.perf .row-excess { border-top: 2px solid var(--gold); }
table.perf .row-excess td:first-child { color: var(--black); font-weight: 700; font-style: normal; }
table.perf .row-excess td { font-weight: 700; }
/* Fix-List 7 §1A — explicit colour rules pinned with !important so the
 * Excess Return cells override the table-default colour cascade. */
table.perf .row-excess .pos,
.row-excess .pos { color: #0F5132 !important; font-weight: 700; }
table.perf .row-excess .neg,
.row-excess .neg { color: #931621 !important; font-weight: 700; }

/* Fix-List 7 §1B — footnote below the returns table */
.perf-table-foot {
  margin: 8px 0 0; font-size: 11px;
  color: #666; font-style: italic; line-height: 1.4;
}
table.perf .delta-pos { color: var(--green); font-weight: 700; }
table.perf .delta-neg { color: var(--red); font-weight: 700; }
table.perf .neg { color: var(--red); }

/* ============ RETURNS BAR CHART (Fix-List 5 §C7) ============ */
.returns-chart-wrap {
  margin-top: 18px; border: 1px solid var(--rule); border-radius: 4px;
  padding: 18px 20px; background: #fafaf7;
}
.returns-chart-wrap .chart-canvas-wrap { height: 280px; }

/* ============ NAV CHART ============ */
.nav-chart-wrap {
  margin-top: 18px; border: 1px solid var(--rule); border-radius: 4px;
  padding: 18px 20px; background: #fafaf7;
}
.chart-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 12px; flex-wrap: wrap; gap: 10px;
}
.chart-head .chart-caption {
  font-size: 11.5px; color: var(--text-mid); margin-top: 2px;
}
.chart-head .legend {
  display: flex; gap: 18px; font-size: 11.5px; color: var(--text-mid);
}
.chart-head .legend i {
  display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px;
}
/* Fix-List 8 §2 + Fix-List 9 §4 — legend uses solid horizontal line
 * swatches mirroring the chart's three datasets. Swatches widened from
 * 24 → 32 px and the fund label gains font-weight: 600 so partners can
 * read "Fund" as the dominant series at a glance. Cat Avg recolored
 * grey → deep green for clearer distinction from Benchmark blue. */
.chart-head .legend { font-size: 13px; }
.chart-head .legend span { display: inline-flex; align-items: center; }
.chart-head .legend span:first-child { font-weight: 600; }
.chart-head .legend .lswatch {
  display: inline-block; width: 32px; height: 0; vertical-align: middle;
  margin-right: 7px; background: transparent; border-top: 3px solid #BD9568;
}
.chart-head .legend .lswatch-fund  { border-top: 3px solid #BD9568; }
.chart-head .legend .lswatch-bench { border-top: 2px solid #5B8DB8; }
.chart-head .legend .lswatch-cat   { border-top: 2px solid #2E7D32; }
.chart-head .toggles {
  display: flex; gap: 0; border: 1px solid var(--grey-light);
  border-radius: 3px; overflow: hidden; background: #fff;
}
.chart-head .toggles button {
  border: 0; background: transparent;
  padding: 7px 13px; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700; color: var(--text-mid);
  border-right: 1px solid var(--grey-light); cursor: pointer;
}
.chart-head .toggles button:last-child { border-right: 0; }
.chart-head .toggles button.active { background: var(--gold); color: #fff; }
.chart-head .toggles button:hover:not(.active) { background: var(--tan-soft); }

.chart-canvas-wrap { position: relative; height: 240px; width: 100%; }
.nav-chart-wrap .chart-canvas-wrap { height: 240px; }
.dd-chart-wrap .chart-canvas-wrap { height: 180px; }

.chart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; gap: 16px; color: var(--text-mid);
}
.chart-empty[hidden] { display: none; }
.chart-empty .ring-motif {
  width: 90px; height: 90px;
}
.chart-empty p {
  margin: 0; font-size: 13px; color: var(--text-mid);
}

/* ============ ROLLING RETURNS ============ */
.roll-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 14px;
}
.roll-card {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 14px 16px; background: #fafaf7;
}
.roll-card .lbl {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.roll-card .v {
  font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -.01em;
}
.roll-card .v.neg { color: var(--red); }
.roll-card .sub {
  font-size: 11.5px; color: var(--text-mid); margin-top: 4px;
}
.roll-bar {
  margin-top: 10px; height: 6px;
  background: var(--grey-light); border-radius: 99px; overflow: hidden;
}
.roll-bar i { display: block; height: 100%; background: var(--gold); }
.roll-bar i.neg { background: var(--red); }
/* Rolling-view segmented toggle (V1 3Y/5Y · V2 3Y/10Y · V3 5Y/10Y) */
.roll-toggle {
  display: inline-flex; gap: 0; margin-top: 10px;
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
}
.roll-toggle:empty { display: none; }
.roll-toggle button {
  font-family: inherit; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; padding: 6px 14px; border: none; cursor: pointer;
  background: #fff; color: var(--text-mid); border-right: 1px solid var(--rule);
  transition: background .2s ease, color .2s ease;
}
.roll-toggle button:last-child { border-right: none; }
.roll-toggle button:hover:not(:disabled):not(.active) { background: var(--tan); }
.roll-toggle button.active { background: var(--gold); color: #fff; }
.roll-toggle button:disabled { color: var(--grey); cursor: not-allowed; opacity: .55; }

/* ============ RISK GRID ============
 * Fix-List 7 §7A — 7 cards now (Sharpe, Down/Up/Capture, MaxDD, Beta,
 * Portfolio Turnover). Slight font-size trim on .v to keep each card legible. */
.risk-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 18px;
}
.risk-card {
  border: 1px solid var(--rule); border-radius: 4px; padding: 14px 14px;
  background: #fafaf7; display: flex; flex-direction: column; gap: 6px;
}
.risk-card .lbl {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.risk-card .v {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}
.risk-card .v.neg { color: var(--red); }
.risk-card .sub { font-size: 11.5px; color: var(--text-mid); }
.risk-card .bench-cmp {
  margin-top: auto; font-size: 11px; color: var(--text-mid);
  padding-top: 8px; border-top: 1px dashed var(--rule);
  line-height: 1.5;
}
.risk-card .bench-cmp b { color: var(--black); }

.dd-chart-wrap {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 16px 18px; background: #fafaf7;
}

/* ============ MANAGER ============ */
.mgr-row {
  display: grid; grid-template-columns: 90px 1fr 320px; gap: 22px;
  align-items: flex-start;
}
.mgr-avatar {
  width: 90px; height: 90px; border-radius: 4px;
  background: var(--gold); color: #fff;
  font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}
.mgr-name { font-size: 18px; font-weight: 700; }
.mgr-title { font-size: 13px; color: var(--text-mid); margin-top: 2px; }
.mgr-bio {
  font-size: 13.5px; margin-top: 10px; line-height: 1.6; color: var(--ink);
}
.mgr-bio.placeholder { color: var(--text-mid); font-style: italic; }
/* Fix-List 9 §2 — co-manager + "Also managing" rows below the lead
 * manager card. Each row carries a small grey separator above. Names
 * render as gold links to manager-profiles.html; tenures sit beside
 * each name in 13px Cambria. */
.mgr-co,
.mgr-also-managing {
  display: grid; grid-template-columns: 130px 1fr; gap: 14px;
  align-items: baseline;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-family: 'Cambria', Georgia, serif;
  font-size: 13px;
}
.mgr-co .co-label,
.mgr-also-managing .co-label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.mgr-co .co-body,
.mgr-also-managing .co-body {
  color: #000; line-height: 1.55;
}
.mgr-also-managing .also-overflow {
  color: var(--text-mid); font-style: italic;
}
/* Fix-List 9 Feature B — the gold link style applied to every manager
 * name and "Also managing" fund name. No underline at rest, underline
 * on hover. */
.manager-link {
  color: var(--gold); font-weight: 600; text-decoration: none;
}
.manager-link:hover { text-decoration: underline; }
.mgr-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
/* A4 (Batch-4) — 3-up grid after "No. of Stocks" was dropped (no empty hole) */
.mgr-stats.mgr-stats-3 { grid-template-columns: repeat(3, 1fr); }
/* Item 5 (Batch-5) — Tenure + Fund Tenure on top, AUM on its own wide row below */
.mgr-stats.mgr-stats-2 { grid-template-columns: 1fr 1fr; }
.mgr-stats .cell.mgr-stat-wide { grid-column: 1 / -1; }
.mgr-stats .cell.mgr-stat-wide .v {
  font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mgr-stats .cell .k { white-space: nowrap; }
.mgr-stats .cell .v { font-variant-numeric: tabular-nums; }
.mgr-stats .cell {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 10px 12px; background: #fafaf7;
}
.mgr-stats .cell .k {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.mgr-stats .cell .v {
  font-size: 16px; font-weight: 700; margin-top: 3px;
}

/* Fix-List 9 §1 — Manager history timeline (redesigned).
 *
 * Two-zone layout:
 *   • Pre-history pill (left of the title row) labels the "+ N earlier
 *     managers" the 10-year window omits.
 *   • The track itself shows only the last 10 years, so short-tenure
 *     managers stay legible. Each segment has a 6 % minimum width so
 *     a 3-month tenure stays clickable.
 *   • Optional co-manager row sits below the main row when current
 *     co-managers exist, on the same time axis.
 *
 * "Show full history" expand panel reveals every segment with explicit
 * date labels for partners who want the complete record. */
/* ============ MANAGER HISTORY TABLE — Fix-List 10 §3 ============
 * Replaces the Fix-List 9 "Lead Manager" sub-table inside .prior-funds
 * (which read screener manager_tenure_longest — a stale, wrong number
 * for current managers and the same data the §2 LEAD MANAGER bar was
 * surfacing). New table lists every manager from the manager-history
 * JSON, newest first, with Lead / Co badges. */
/* Batch-12 item B — full-width sub-section under the mgr-row (the old
 * collapsed <details> squeezed into the bio column never sat right).
 * The block mirrors the page's other sub-sections (.rule + .block-sub-h). */
.mgr-history-block { margin-top: 18px; }
.mgr-history-table-wrap { margin: 8px 0 12px; overflow-x: auto; }
.mgr-count { color: #aaa; font-weight: 400; margin-left: 4px; font-size: 12px; }

/* Batch-10 item 3 — restyled to the dashboard table idiom (bold ALL-CAPS
 * black header bar, zebra rows, brand vars) so it matches .holdings-tbl-v2 /
 * .comp-peer-tbl instead of the thin Fix-List-10 strip it shipped with. */
.mgr-history-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px; font-family: 'Cambria', Georgia, serif;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.mgr-history-table th {
  background: var(--black, #000); color: #fff;
  padding: 8px 10px; text-align: left;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
/* Batch-12 item B five columns → §7.68 item 7 SEVEN (benchmark + alpha) */
.mgr-history-table th:nth-child(1) { width: 24%; }
.mgr-history-table th:nth-child(2) { width: 12%; }
.mgr-history-table th:nth-child(3) { width: 12%; }
.mgr-history-table th:nth-child(4) { width: 10%; text-align: right; }
.mgr-history-table th:nth-child(5) { width: 16%; text-align: right; }
.mgr-history-table th:nth-child(6) { width: 14%; text-align: right; }
.mgr-history-table th:nth-child(7) { width: 12%; text-align: right; }
.mgr-history-table td {
  padding: 6px 10px; border-bottom: 1px solid var(--rule);
  vertical-align: middle; height: 28px; line-height: 1.2;
}
.mgr-history-table td:nth-child(4),
.mgr-history-table td:nth-child(5),
.mgr-history-table td:nth-child(6),
.mgr-history-table td:nth-child(7) {
  text-align: right; font-variant-numeric: tabular-nums;
}
/* zebra first, then the semantic-row overrides — equal specificity, source
 * order decides, so row-main/row-curr MUST stay below the zebra rules */
.mgr-history-table tbody tr:nth-child(odd) td  { background: #ffffff; }
.mgr-history-table tbody tr:nth-child(even) td { background: #F9F7F4; }
.mgr-history-table tbody tr.row-main td {
  background: #FFF8EE; font-weight: 700;
  border-top: 2px solid var(--gold, #BD9568);
}
.mgr-history-table tbody tr.row-curr td { background: #FAFAFA; }
.mgr-history-table tbody tr:hover td { background: var(--tan-soft, rgba(219,200,178,.30)); }
.badge-lead {
  background: #BD9568; color: #fff; font-size: 9px;
  padding: 1px 5px; border-radius: 3px;
  margin-left: 4px; font-weight: 700;
}
.badge-co {
  background: #DBC8B2; color: #000; font-size: 9px;
  padding: 1px 5px; border-radius: 3px; margin-left: 4px;
}
.curr-tag { color: #0F5132; font-weight: 600; }   /* brand Deep Green (was #2E7D32) */

/* Fix-List 11 §2 — manager timeline removed entirely. The collapsible
 * Manager History table above (§1) replaces it. Removed rules:
 * .manager-timeline, .tl-wrap, .tl-line, .tl-annotations, .tl-ann (and
 * .tl-above / .tl-below variants), .tl-ann-stem, .tl-ann-label,
 * .tl-name, .tl-dur, .ann-main / .ann-curr / .ann-past, .tl-axis,
 * .tl-year, .tl-foot. */

/* ============ PORTFOLIO — Fix-List 6 §3 rebuild ============ */
.portfolio-grid-v2 {
  display: grid; grid-template-columns: 38% 62%; gap: 24px;
}
.port-left, .port-right {
  display: flex; flex-direction: column; gap: 16px;
}
.port-card {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 16px 18px; background: #fafaf7;
}
.port-card-h {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.donut-wrap {
  position: relative; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.donut-wrap canvas { max-height: 200px; }
.donut-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-mid);
}
.donut-empty[hidden] { display: none; }
.donut-empty .ring-motif { width: 70px; height: 70px; }
.donut-empty p { margin: 0; font-size: 12px; }

.donut-legend {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.dlegend-row {
  display: grid; grid-template-columns: 14px 1fr auto auto;
  gap: 10px; align-items: center;
  font-size: 12px; padding: 3px 0;
}
.dlegend-sw {
  display: block; width: 14px; height: 14px; border-radius: 2px;
}
.dlegend-lbl { color: var(--ink); }
/* F4 — # of stocks per m-cap bucket (muted, to the left of the %) */
.dlegend-n {
  font-variant-numeric: tabular-nums; color: #888; font-size: 11px;
  white-space: nowrap;
}
.dlegend-pct {
  font-variant-numeric: tabular-nums;
  color: var(--black); font-weight: 700;
}

/* Fix-List 10 §6 — sector ranked list (text-only). Fix-List 9's
 * proportional gold-on-tan bars retired; the numeric percent is
 * itself the magnitude channel. Top 10 sectors + always-last
 * "Others (N sectors)" row. */
.sector-list { width: 100%; margin-top: 4px; }
.sector-row {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0; font-size: 12px;
  font-family: 'Cambria', Georgia, serif;
}
.sector-rank {
  width: 18px; color: #888; text-align: right; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.sector-name {
  flex: 1; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; color: #000;
}
/* F3 — # of distinct stocks the fund holds in this sector (muted, before the %) */
.sector-count {
  width: 64px; text-align: right; flex-shrink: 0;
  font-variant-numeric: tabular-nums; color: #888; font-size: 11px;
}
.sector-pct {
  width: 56px; text-align: right; font-variant-numeric: tabular-nums;
  flex-shrink: 0; color: #000;
}
/* Batch-14 O1 — benchmark sector-weight column (muted, next to the fund %) */
.sector-bench-pct {
  width: 52px; text-align: right; font-variant-numeric: tabular-nums;
  flex-shrink: 0; color: #8a8a8a;
}
.sector-row.sector-head {
  padding: 1px 0 4px; margin-bottom: 2px; cursor: default;
  border-bottom: 1px solid var(--rule, #E4DED4);
}
.sector-row.sector-head span {
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #999; font-weight: 700;
}
/* when the bench column is shown the stock-count is dropped to keep it airy */
.sector-row.sector-head + .sector-row .sector-count,
.sector-list:has(.sector-head) .sector-count { width: 46px; font-size: 10.5px; }
.sector-bench-note {
  font-size: 10.5px; color: #666; margin-top: 9px; line-height: 1.45; font-style: italic;
}

/* §7.80 (Batch-17 item 2b) — benchmark-overlap + cash-trend mini-elements */
.bc-overlap .bc-big { font-size: 26px; font-weight: 700; color: #000; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bc-bar { height: 7px; background: #EFE9DF; border-radius: 4px; margin: 6px 0 2px; overflow: hidden; }
.bc-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.bc-note { font-size: 10.5px; color: #666; margin-top: 6px; line-height: 1.45; }
.bc-divider { border-top: 1px solid var(--rule); margin: 12px 0; }
.bc-cash { display: flex; align-items: flex-end; gap: 14px; height: 78px; padding: 6px 2px 0; }
.bc-cbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; flex: 0 0 auto; }
.bc-cbar i { display: block; width: 26px; background: var(--tan); border: 1px solid var(--gold); border-radius: 3px 3px 0 0; }
.bc-cbar .bc-cval { font-size: 10.5px; font-weight: 700; color: #000; font-variant-numeric: tabular-nums; }
.bc-cbar .bc-clbl { font-size: 10px; color: #888; }

/* Compact holdings table (right column) */
.holdings-pending {
  font-size: 12.5px; color: var(--text-mid); font-style: italic; padding: 8px 0;
}
.holdings-table-wrap-v2 { overflow-x: auto; }
table.holdings-tbl-v2 {
  width: 100%; border-collapse: collapse; font-size: 12px;
  font-variant-numeric: tabular-nums;
}
table.holdings-tbl-v2 thead th {
  background: var(--black); color: #fff;
  text-align: left; padding: 8px 10px; font-weight: 700;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
table.holdings-tbl-v2 thead th.num { text-align: right; }
table.holdings-tbl-v2 tbody td {
  padding: 5px 10px; border-bottom: 1px solid var(--rule);
  height: 28px; line-height: 1.2;
}
table.holdings-tbl-v2 tbody td.num { text-align: right; }
table.holdings-tbl-v2 tbody td.rank { color: var(--text-mid); width: 28px; }
table.holdings-tbl-v2 tbody td.weight { color: var(--black); white-space: nowrap; }
table.holdings-tbl-v2 tbody td.sector,
table.holdings-tbl-v2 tbody td.mcap { color: var(--text-mid); }
table.holdings-tbl-v2 tbody tr:nth-child(odd)  td { background: #ffffff; }
table.holdings-tbl-v2 tbody tr:nth-child(even) td { background: #F9F7F4; }
table.holdings-tbl-v2 tbody tr:hover td { background: var(--tan-soft); }

.holdings-callout-v2 {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(189, 149, 104, .10);
  border-left: 3px solid var(--gold);
  font-size: 12.5px; color: var(--ink);
  border-radius: 0 3px 3px 0;
}
.holdings-callout-v2 b { font-weight: 700; }
.holdings-callout-v2[hidden] { display: none; }

/* P3.4 — clickable holding → stock profile. Subtle until hover. */
a.stock-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--gold); transition: color .2s ease; }
a.stock-link:hover { color: var(--gold-deep); border-bottom-style: solid; }

/* F1 — m-cap mix caption (shown when the historical toggle uses a holdings-
   derived split because no month-end Monitor exists for that date). */
.mcap-caption { font-size: 10.5px; color: var(--text-mid); margin-top: 6px; font-style: italic; text-align: center; }
.mcap-caption[hidden] { display: none; }

/* P2.5 — instrument breakdown table (Portfolio left column). */
#instrumentCard[hidden] { display: none; }
table.instrument-tbl {
  width: 100%; border-collapse: collapse; font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
table.instrument-tbl thead th {
  background: var(--black); color: #fff;
  text-align: left; padding: 8px 10px; font-weight: 700;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
table.instrument-tbl thead th.num { text-align: right; }
table.instrument-tbl tbody td {
  padding: 6px 10px; border-bottom: 1px solid var(--rule);
  height: 28px; line-height: 1.2; color: var(--ink);
}
table.instrument-tbl tbody td.num { text-align: right; }
table.instrument-tbl tbody td.neg { color: var(--red); font-weight: 700; }
table.instrument-tbl tbody td.pos { color: var(--green); font-weight: 700; }
table.instrument-tbl tbody td.ib-flat { color: var(--text-mid); }
table.instrument-tbl tbody tr.ib-total td {
  border-top: 2px solid var(--black); border-bottom: none;
  background: #F9F7F4;
}

/* Fix-List 8 Feature 3 — Similar Funds by Holdings card.
 * Sits below the holdings table in the right column of the Portfolio
 * grid; renders a 5-row mini-table with name, category, overlap %, and
 * a proportional bar (same gold-on-tan visual as the sector list). */
.similar-funds-card { margin-top: 16px; }
.similar-funds-card[hidden] { display: none; }
.similar-funds-list { display: flex; flex-direction: column; gap: 4px; }
.similar-row {
  display: grid;
  grid-template-columns: 1fr 130px 56px 80px;
  gap: 10px; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.similar-row:last-child { border-bottom: 0; }
.similar-name {
  color: var(--gold); font-weight: 600;
  text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.similar-name:hover { text-decoration: underline; }
.similar-cat {
  color: var(--text-mid); font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.similar-pct {
  color: var(--ink); font-weight: 700; text-align: right;
  font-variant-numeric: tabular-nums;
}
.similar-bar-wrap {
  width: 80px; height: 6px; background: #DBC8B2;
  border-radius: 3px; overflow: hidden;
}
.similar-bar-fill {
  height: 100%; background: #BD9568; border-radius: 3px;
}
.similar-funds-foot {
  margin: 10px 0 0; font-size: 11px; color: var(--text-mid);
  font-style: italic; line-height: 1.4;
}
.similar-funds-link {
  display: inline-block; margin-top: 6px;
  font-size: 12px; color: var(--gold); text-decoration: none;
  font-weight: 600;
}
.similar-funds-link:hover { text-decoration: underline; }
.similar-funds-pending {
  font-size: 12.5px; color: var(--text-mid);
  font-style: italic; padding: 8px 0;
}

@media (max-width: 1280px) {
  .portfolio-grid-v2 { grid-template-columns: 1fr; }
}

/* Legacy bar-chart portfolio rules (Fix-List 5 §C8) — superseded by donuts */
.portfolio-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px;
}
.holdings-placeholder .empty-state {
  border: 1px dashed var(--rule);
  border-radius: 4px;
  padding: 40px 28px;
  background: #fafaf7;
}
.holdings-placeholder .empty-state .ring-motif {
  width: 110px; height: 110px;
  margin-bottom: 18px;
}
.holdings-placeholder .empty-state h3 {
  font-size: 15px; margin-bottom: 8px;
}
.holdings-placeholder .empty-state p {
  font-size: 12.5px; line-height: 1.6;
}
.holdings-placeholder .empty-state code {
  background: rgba(189, 149, 104, .14);
  padding: 1px 5px; border-radius: 2px; font-size: 11.5px;
}

/* Fix-List 11 §5 — Fix-List 5 §C9 sector horizontal-bars block deleted.
 * It was overriding the Fix-List 10 text-only flex layout (defined
 * earlier in this file under .sector-row at L598) with a 3-column
 * grid that reserved a 1fr middle column for a `.sector-bar` element
 * that no longer exists in the markup, leaving residual blank space
 * to the right of the percentage. The .sector-label / .sector-bar /
 * .sector-bar i rules are gone too — none of those classes appear
 * anywhere in the rendered HTML since Fix-List 8 §3. */

/* Top-N holdings table — Fix-List 5 §C9 */
.holdings-table-wrap { overflow-x: auto; }
table.holdings-tbl {
  width: 100%; border-collapse: collapse; font-size: 12.5px;
}
table.holdings-tbl thead th {
  background: #000; color: #fff; text-align: left;
  padding: 10px 10px; font-weight: 700;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}
table.holdings-tbl thead th.num { text-align: right; }
table.holdings-tbl tbody td {
  padding: 9px 10px; border-bottom: 1px solid var(--rule);
}
table.holdings-tbl tbody td.num {
  text-align: right; font-variant-numeric: tabular-nums;
}
table.holdings-tbl tbody tr:nth-child(even) td { background: rgba(247, 246, 244, 1); }
table.holdings-tbl tbody tr:hover td { background: var(--tan-soft); }

.holdings-callout {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(189, 149, 104, .10);
  border-left: 3px solid var(--gold);
  font-size: 12.5px; color: var(--ink);
  border-radius: 0 3px 3px 0;
}
.holdings-callout b { font-weight: 700; }
.holdings-asof {
  margin-top: 10px; font-size: 11px; color: var(--text-mid);
  font-style: italic;
}

/* Cost-card sub-line: shrink the footnote slightly */
.cost-card .sub .footnote {
  display: block; margin-top: 6px;
  font-size: 10.5px; color: var(--text-mid);
}

.mc-bars {
  display: flex; gap: 0; height: 38px; margin-top: 8px;
  border-radius: 3px; overflow: visible; border: 1px solid var(--rule);
  /* outside labels overflow below — reserve room so they don't collide with the legend */
  margin-bottom: 24px;
}
.mc-bars .seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .04em;
  white-space: nowrap; overflow: visible;            /* allow .seg-out overflow */
  min-width: 4px;                                    /* Fix-List 5 §C8: keep colour visible */
  position: relative;
}
.mc-bars .seg.outside {
  /* Hide any inside text on small segments; the .seg-out overlay carries the label */
  color: transparent;
}
.mc-bars .seg .seg-out {
  position: absolute; top: 100%;
  left: 50%; transform: translateX(-50%);
  margin-top: 6px;
  font-size: 10.5px; letter-spacing: .04em; color: var(--text-mid); font-weight: 700;
  background: #fff; padding: 1px 4px; border-radius: 2px;
  white-space: nowrap;
}
.mc-bars .seg.large    { background: #0E0E0E; }
.mc-bars .seg.mid      { background: var(--brown); }
.mc-bars .seg.small    { background: var(--gold); }
.mc-bars .seg.cash     { background: var(--grey-light); color: var(--black); }
.mc-bars .seg.equity   { background: var(--brown); }
.mc-bars .seg.debt     { background: #0E0E0E; }
.mc-bars .seg.others-h { background: var(--grey-light); color: var(--black); }
.mc-bars .seg.zero     { display: none; }

.mc-legend {
  display: flex; gap: 18px; font-size: 11px; color: var(--text-mid); margin-top: 8px;
  flex-wrap: wrap;
}
.mc-legend i {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 1px; margin-right: 5px; vertical-align: middle;
}

/* ============ COST ============ */
.cost-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.cost-card {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 18px 18px; background: #fafaf7;
}
.cost-card .lbl {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.cost-card .v {
  /* Item 4 (Batch-5) — normalised from 26px to match the one-pager scale
     (risk/manager cards use 16px); exit-load/LTCG carry sentence-length values. */
  font-size: 16px; font-weight: 700; margin-top: 6px; letter-spacing: 0; line-height: 1.35;
}
.cost-card .sub {
  font-size: 11.5px; color: var(--text-mid); margin-top: 6px; line-height: 1.45;
}
.cost-card .sub .pos { color: var(--green); font-weight: 700; }
.cost-card .sub .neg { color: var(--red); font-weight: 700; }

/* ============ WHAT CHANGED ============ */
.changed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.changed-grid .empty-state {
  border: 1px dashed var(--rule);
  background: #fafaf7;
}

/* E6 — cycle-over-cycle "vs last cycle" block */
.cm-delta { font-weight: 700; margin-left: 4px; }
.cm-good { color: var(--green, #0F5132); }
.cm-bad  { color: var(--red, #931621); }

/* F3 — score-card cycle-change movement chips. White-on-brand-colour (matches
   the buy/avoid pill convention) so green ▲ / red ▼ stay legible on the black
   score card, where plain brand red/green text would be ~2:1 contrast. */
.score-card .sc-chip {
  display: inline-block; padding: 0 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff; line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.score-card .sc-chip.up   { background: var(--green, #0F5132); }
.score-card .sc-chip.down { background: var(--red, #931621); }
.cm-flat { color: var(--text-mid); font-weight: 600; }
.cm-note {
  grid-column: 1 / -1; font-size: 12px; color: var(--text-mid);
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
}
.cm-holdings { margin-top: 16px; }
.cm-h-head { font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.cm-h-head .cm-h-sub { font-weight: 400; color: var(--text-mid); font-size: 11.5px; }
.cm-h-col {
  border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; background: #fff;
}
.cm-h-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-mid); margin-bottom: 6px;
}
.cm-h-row {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12.5px; padding: 3px 0; border-bottom: 1px dotted var(--rule);
}
.cm-h-row:last-child { border-bottom: none; }
.cm-h-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-h-val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
@media (max-width: 1100px) {
  .cm-h-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* F1 (Batch-4) — sole-fund-in-category marker on the landing Top-25 */
.sole-cat {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .02em;
  color: var(--gold-deep, #6B3F1A); background: var(--tan-softer, #f3ece2);
  border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: middle;
  text-transform: uppercase;
}

/* C (Batch-4) — full-portfolio movement boxes (Added/Reduced/New/Exited) */
.cm-portfolio-moves { margin-top: 16px; }
.cm-pm-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 10px;
}
@media (max-width: 1100px) { .cm-pm-grid { grid-template-columns: 1fr; } }
.cm-pm-box { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; background: #fff; }
.cm-pm-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-mid); margin-bottom: 6px; font-weight: 700;
}
.cm-pm-tip { color: var(--gold); cursor: help; font-weight: 400; }
.cm-pm-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.cm-pm-tbl th, .cm-pm-tbl td {
  text-align: right; padding: 4px 6px; border-bottom: 1px dotted var(--rule);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cm-pm-tbl th { font-size: 10px; text-transform: uppercase; color: var(--text-mid); font-weight: 700; }
.cm-pm-tbl th:first-child, .cm-pm-tbl td.cm-pm-name { text-align: left; }
.cm-pm-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.cm-pm-tbl tbody tr:last-child td { border-bottom: none; }
.cm-pm-tbl .pos { color: var(--green, #0F5132); font-weight: 600; }
.cm-pm-tbl .neg { color: var(--red, #931621); font-weight: 600; }

/* ============ VERDICT — Fix-List 7 §5 white / black + gold theme ============
 * Reverts the dark v6 treatment. White card, black text, gold accent
 * (h2 em, column headings, bullets). All selectors lead with `section.`
 * so they win the cascade against `section.block` without !important. */
section.verdict-block {
  background: #fff; color: #000; border-radius: 6px;
  padding: 32px 34px; border: 2px solid var(--gold);
}
section.verdict-block h2 { color: #000; }
section.verdict-block h2 em { color: var(--gold); }
section.verdict-block .h-sub { color: #444; }

/* Verdict insights grid */
.verdict-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin-top: 8px;
}
.verdict-grid .v-col h4 {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; font-weight: 700;
  padding-bottom: 6px; border-bottom: 1px solid var(--gold);
}
.verdict-grid .v-col ul {
  margin: 0; padding: 0; list-style: none;
}
/* D10 — continuous-prose verdict. The old `display:flex; gap:12px` turned each
 * text run + inline <b> into a separate flex item, so values "floated between
 * stems" (finding #13). Render every bullet as a normal flowing list-item with
 * an absolute-positioned dot. Brand (§7.7): gold for strong values, dark-red
 * for negatives. */
.verdict-grid .v-col li {
  font-size: 13.5px; padding: 10px 0 10px 18px; line-height: 1.6;
  border-bottom: 1px solid var(--rule);
  color: #000;
  display: list-item; list-style: none; position: relative; text-align: left;
}
.verdict-grid .v-col li:last-child { border-bottom: 0; }
.verdict-grid .v-col li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--gold);
}
.verdict-grid .v-col.cons li::before { background: var(--red); }
.verdict-grid .v-col li b { color: var(--gold-deep, #8a6d43); font-weight: 700; }
.verdict-grid .v-col li b.neg { color: var(--red, #931621); }

/* Fix-List 8 §4 — Areas to Watch word-gap fix.
 * The default `.v-col li { display: flex; gap: 12px }` rule treats the
 * bullet ::before as one flex item and the text content as another;
 * inside that text item, inline `<b>` tags pick up subtle white-space
 * artefacts on certain Chromium widths (the gold-bullet column doesn't
 * exhibit it because its phrases rarely contain mid-sentence <b>).
 * Switch the concerns column to standard list-item flow + absolute-
 * positioned bullet so the prose renders as plain left-aligned text. */
.verdict-grid .v-col.cons li,
.concerns-list li {
  display: list-item;
  list-style: none;
  position: relative;
  padding: 10px 0 10px 18px;
  text-align: left;
  line-height: 1.55;
  gap: 0;
}
.verdict-grid .v-col.cons li::before,
.concerns-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  flex: none;
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--red);
  margin-top: 0;
}
.verdict-grid .v-col.cons li b,
.verdict-grid .v-col.cons li strong,
.concerns-list li b,
.concerns-list li strong {
  display: inline;
  font-weight: 700;
  color: var(--red, #931621);   /* D10 — dark-red for areas-to-watch values */
}
.verdict-grid .v-col .v-empty {
  font-style: italic; color: var(--text-mid);
  font-size: 12.5px; margin: 0;
}
.verdict-foot {
  margin: 22px 0 0; font-size: 11.5px; color: #666;
  letter-spacing: .04em;
}

.verdict-empty {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 30px 20px;
  text-align: center;
}
.verdict-empty .ring-motif {
  width: 120px; height: 120px;
  background: rgba(189, 149, 104, .10);
}
.verdict-empty .ring-motif::before { background: rgba(189, 149, 104, .18); }
.verdict-empty .ring-motif::after { border-color: var(--gold); }
.verdict-empty p {
  font-size: 14px; line-height: 1.6;
  color: #444; max-width: 56ch; margin: 0;
}

/* ============ COMPETITION ANALYSIS (v4.1 Item L) ============ */
.comp-peer-wrap { overflow-x: auto; margin-top: 14px; }
.comp-peer-tbl {
  width: 100%; border-collapse: collapse;
  font-size: 13px; font-feature-settings: "tnum";
  font-family: Cambria, Georgia, 'Times New Roman', serif;
}
.comp-peer-tbl thead th {
  background: var(--ink); color: #fff; text-align: center;
  padding: 11px 12px; font-weight: 700;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.comp-peer-tbl tbody td {
  padding: 11px 12px; text-align: center;
  border-bottom: 1px solid var(--rule);
}
.comp-peer-tbl td.comp-fund-cell { text-align: left; font-weight: 600; }
.comp-peer-tbl td.comp-rank { color: var(--text-mid); font-weight: 700; width: 36px; }
.comp-peer-tbl tr.comp-row-avg {
  background: #F5F5F5; font-weight: 700;
  border-top: 1.5px solid var(--rule);
}
.comp-peer-tbl tr.comp-row-current {
  background: #FFF8EE;
  border-top: 2px solid #BD9568;
}
.comp-peer-tbl tr.comp-row-current td { font-weight: 700; }
.comp-peer-tbl tr.comp-row-current .comp-fund-cell { color: #6B4F2A; }
.comp-peer-tbl td a { color: #6B4F2A; text-decoration: none; }
.comp-peer-tbl td a:hover { text-decoration: underline; }
.comp-peer-foot {
  margin: 8px 0 0; font-size: 11.5px; color: var(--text-mid); font-style: italic;
}

.comp-overlap-wrap { overflow-x: auto; margin-top: 8px; }
.comp-overlap-tbl {
  width: 100%; border-collapse: collapse;
  font-size: 12px; font-feature-settings: "tnum";
}
.comp-overlap-tbl thead th {
  padding: 10px 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  border-bottom: 1px solid var(--rule);
  background: #FAFAFA; color: var(--ink);
  text-align: center; vertical-align: bottom;
  white-space: normal; max-width: 120px;
}
.comp-overlap-tbl thead th.comp-overlap-corner {
  background: transparent; border-bottom: 0;
}
.comp-overlap-tbl thead th a { color: #6B4F2A; text-decoration: none; }
.comp-overlap-tbl thead th a:hover { text-decoration: underline; }
.comp-overlap-tbl tbody th.comp-overlap-corner {
  text-align: left;
  font-size: 11.5px; font-weight: 700; color: var(--ink);
  padding: 10px 12px;
  background: #FAFAFA;
  border-right: 1px solid var(--rule);
}
.comp-overlap-tbl td.comp-overlap-cell {
  padding: 16px 8px; text-align: center;
  font-weight: 700; font-size: 13px;
  border: 1px solid #fff;
  cursor: help;
}
.comp-overlap-tbl td.comp-overlap-cell[data-empty="1"] {
  background: #F5F5F5; color: var(--text-mid); font-weight: normal;
}
.comp-overlap-empty {
  padding: 20px; text-align: center; color: var(--text-mid);
  font-size: 12.5px; font-style: italic;
  border: 1px dashed var(--rule); border-radius: 4px;
  margin-top: 10px;
}

/* ============ DOWNLOAD STRIP ============ */
.dl-strip {
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  padding: 22px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.dl-strip .meta { flex: 1; min-width: 240px; }
.dl-strip h3 {
  margin: 0; font-size: 18px; font-weight: 700;
}
.dl-strip h3 em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
.dl-strip p {
  margin: 4px 0 0; font-size: 12.5px; color: var(--text-mid);
}
.dl-strip .dl-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  /* Batch-14 O3 — anchor the With/Without-Score variant menu inside this strip
     (mirrors .hero-actions), so the footer buttons pop their chooser correctly. */
  position: relative;
}

/* Batch-14 O4 — "View this fund on {AMC}" link (end of the one-pager) */
.amc-fund-link { margin: 16px 0 2px; }
.amc-link {
  font-size: 13px; color: var(--gold-deep, #9A6C38); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease;
}
.amc-link:hover { border-bottom-color: var(--gold-deep, #9A6C38); }
.amc-link-note { display: block; font-size: 11px; color: #666; margin-top: 3px; }

/* ============ NOT-FOUND SHELL ============ */
.not-found {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 80px 24px; max-width: 540px;
  margin: 0 auto;
}
.not-found .ring-motif {
  width: 140px; height: 140px; margin-bottom: 24px;
}
.not-found h3 {
  font-size: 22px; font-weight: 700; margin: 0 0 8px;
}
.not-found p {
  font-size: 14px; color: var(--text-mid); margin: 0 0 18px;
  line-height: 1.6;
}

/* ============ RESPONSIVE NUDGES ============ */
@media (max-width: 1280px) {
  .hero-inner { grid-template-columns: 1fr; }
  .report { grid-template-columns: 1fr; }
  aside.toc { position: static; order: -1; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: repeat(3, 1fr); }
  .risk-card .v { font-size: 20px; }
  .cost-grid { grid-template-columns: repeat(2, 1fr); }
  .changed-grid { grid-template-columns: 1fr; }
  .mgr-row { grid-template-columns: 80px 1fr; gap: 18px; }
  .mgr-row .mgr-stats { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hero, .crumb { padding-left: 24px; padding-right: 24px; }
  .report { padding-left: 24px; padding-right: 24px; }
  .roll-grid { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ Batch-8 4.9 — Score Drivers & Detractors ============ */
/* Batch-14 Part-B — Score Drivers three-block rework */
.sd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.sd-total { font-size: 15px; color: #222; margin: 0 0 4px; }
.sd-total b { font-size: 22px; color: var(--black); font-variant-numeric: tabular-nums; }
.sd-col h4 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 10px;
}
.sd-col.sd-detr h4 { color: var(--text-mid); }
.sd-subnote { font-size: 11.5px; color: var(--text-mid); margin: -4px 0 10px; font-style: italic; }
.sd-row { margin-bottom: 13px; }
.sd-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sd-row .sd-name { font-size: 13px; font-weight: 700; color: var(--black); }
.sd-row .sd-pts { font-size: 14px; font-weight: 700; color: var(--gold-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sd-col.sd-detr .sd-row .sd-pts { color: var(--black); }
.sd-row .sd-pts .sd-cap { font-size: 11.5px; font-weight: 400; color: var(--text-mid); }
.sd-bar { height: 7px; background: rgba(217, 217, 217, .5); border-radius: 4px; margin: 5px 0 4px; overflow: hidden; }
.sd-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.sd-col.sd-detr .sd-bar i { background: #C9BCA6; }
.sd-row .sd-pctl { font-size: 11.5px; color: #555; font-variant-numeric: tabular-nums; }
/* per-factor "since last month" move line under each contributor (arrow carries direction) */
.sd-row .sd-reason { font-size: 12px; color: #666; margin-top: 3px; font-style: italic; }
.sd-row .sd-reason .sd-arw { font-style: normal; font-weight: 700; margin-right: 4px; }
.sd-row .sd-reason .sd-arw.sd-up { color: #0F5132; }
.sd-row .sd-reason .sd-arw.sd-down { color: #931621; }
.sd-row .sd-reason .sd-arw.sd-flat { color: #aaa; }
.sd-foot { font-size: 11.5px; color: var(--text-mid); margin-top: 8px; line-height: 1.5; }
@media (max-width: 1100px) { .sd-grid { grid-template-columns: 1fr; } }

/* Block 3 — Month-on-Month movement */
.sd-mom { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule, #E4DED4); }
.sd-mom-h { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 6px; }
.sd-mom-total { font-size: 13.5px; color: #222; margin: 0 0 12px; }
.sd-mom-total b { font-variant-numeric: tabular-nums; }
.sd-mom-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.sd-mom-cols h5 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mid); margin: 0 0 8px; font-weight: 700; }
.sd-mom-row { display: grid; grid-template-columns: 62px 1fr; column-gap: 10px; row-gap: 1px; margin-bottom: 9px; align-items: baseline; }
.sd-mom-row .sd-mom-pts { grid-row: 1 / span 2; align-self: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sd-mom-row .sd-name { font-size: 12.5px; font-weight: 700; color: var(--black); }
.sd-mom-row .sd-mom-pctl { grid-column: 2; font-size: 11.5px; color: #666; font-variant-numeric: tabular-nums; }
/* Rahul: MoM reasons were too small & faint — bumped a size up + darker */
.sd-mom-row .sd-mom-reason { grid-column: 2; font-size: 12.5px; color: #555; font-style: italic; margin-top: 1px; }
.sd-mom-pos { color: #0F5132; }
.sd-mom-neg { color: #931621; }
@media (max-width: 1100px) { .sd-mom-cols { grid-template-columns: 1fr; } }

/* ============ Batch-8 4.10 — The Final Read (authored rationale) ============ */
.verdict-lead {
  background: rgba(219, 200, 178, .28);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.verdict-lead .vl-h {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 6px;
}
.verdict-lead p { font-size: 14.5px; line-height: 1.65; margin: 0; color: #222; }
.verdict-lead.pending { background: #faf9f7; border-left-color: var(--rule); }
.verdict-lead.pending p { font-size: 12.5px; color: var(--text-mid); font-style: italic; }

/* ============ Batch-8 4.6 — shared holdings look-through overlay ============ */
.hv-overlay { position: fixed; inset: 0; z-index: 1200; }
.hv-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); }
.hv-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 48px)); max-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gold); border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
}
.hv-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 22px 10px; }
.hv-head h3 { margin: 0; font-size: 18px; }
.hv-sub { margin: 4px 0 0; font-size: 12px; color: var(--text-mid); }
.hv-close {
  font-family: inherit; font-size: 20px; line-height: 1; padding: 2px 10px;
  background: none; border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; color: #444;
}
.hv-close:hover { border-color: var(--gold); color: #000; }
.hv-chips { padding: 0 22px 8px; display: flex; gap: 8px; }
.hv-chip {
  font-family: inherit; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff; cursor: pointer; color: #444;
}
.hv-chip.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.hv-body { overflow-y: auto; padding: 0 22px; }
table.hv-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.hv-tbl th {
  position: sticky; top: 0; background: #000; color: #fff; text-align: left;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px;
}
table.hv-tbl th.num, table.hv-tbl td.num { text-align: right; }
table.hv-tbl td { padding: 7px 10px; border-bottom: 1px solid rgba(217, 217, 217, .5); }
table.hv-tbl tbody tr:nth-child(even) td { background: #faf9f7; }
.hv-foot { padding: 10px 22px 16px; margin: 0; font-size: 11.5px; color: var(--text-mid); }
.sector-row-drill { cursor: pointer; }
.sector-row-drill:hover .sector-name { color: var(--gold-deep); text-decoration: underline; }

/* ============ Batch-8 4.8 — movement "See more" + wider moves overlay ============ */
.cm-pm-more {
  font-family: inherit; font-size: 11px; padding: 2px 10px; margin-left: 8px;
  border: 1px solid var(--gold); border-radius: 999px; background: #fff;
  color: var(--gold-deep); cursor: pointer; vertical-align: middle;
}
.cm-pm-more:hover { background: var(--gold); color: #fff; }
#pmOverlay .hv-panel { width: min(1020px, calc(100vw - 48px)); }

/* ============ §7.65 — one-pager download variant menu ============ */
/* Anchored absolutely INSIDE .hero-actions (a transform on <body> from
   transitions.css makes body the containing block for position:fixed, so
   fixed anchoring would drift — same lesson as the Compare overlays). */
.hero-actions { position: relative; }
.op-variant-menu {
  position: absolute; z-index: 80; min-width: 265px;
  background: #fff; border: 1px solid var(--gold);
  border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  padding: 4px;
}
.op-variant-menu button {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 0; border-radius: 3px; padding: 8px 10px;
  font-family: inherit; color: var(--black);
}
.op-variant-menu button:hover { background: var(--tan-soft); }
.op-variant-menu button .t { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.op-variant-menu button .sub { display: block; font-size: 11px; color: #666; margin-top: 2px; text-transform: none; }

/* ============ §7.66 — holdings overlay download buttons ============ */
.hv-actions { display: flex; gap: 8px; margin-left: auto; margin-right: 12px; align-self: flex-start; }
.hv-actions[hidden] { display: none; }   /* display:flex otherwise beats the [hidden] UA rule on pages without the export suite */
.hv-dl {
  font-family: inherit; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; padding: 7px 12px; border: 1px solid var(--gold); border-radius: 3px;
  background: #fff; color: var(--gold); cursor: pointer;
  transition: background .2s, color .2s;
}
.hv-dl:hover { background: var(--tan-soft); }
.hv-dl[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ============ §7.68 — MoM see-more (always rendered; dead at 0) + manager links ============ */
.cm-pm-more[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.mgr-history-table a.mgr-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--gold); }
.mgr-history-table a.mgr-link:hover { color: var(--gold-deep); }
