/* ============================================================
 * White Brook Capital — factsheet.css
 * Additive component layer for fact sheet pages.
 * Loads ALONGSIDE site.css — inherits all tokens & typography.
 * ============================================================ */

/* ---------- Page intro / eyebrow row ---------- */
.fs-intro {
  padding: var(--space-6) var(--gutter) var(--space-4);
  max-width: var(--max);
  margin: 0 auto;
}
.fs-intro__eyebrow { display: block; margin-bottom: 14px; color: var(--signal); }
.fs-intro h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 20ch;
}
.fs-intro__objective {
  font-size: 17px;
  line-height: 1.6;
  max-width: 62ch;
  color: var(--body);
  margin: 0 0 22px;
}
.fs-intro__asof {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Strategy facts strip (key/value chips) ---------- */
.fs-keyfacts {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.fs-keyfacts__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fs-keyfacts__item {
  padding: 22px 18px;
  border-right: 1px solid var(--rule);
}
.fs-keyfacts__item:last-child { border-right: 0; }
.fs-keyfacts__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fs-keyfacts__value {
  font-family: var(--serif-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ---------- Highlights grid ---------- */
.fs-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fs-highlights__item { background: var(--bg); padding: 30px 26px; }
.fs-highlights__item h3 {
  font-family: var(--serif-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
  margin: 0 0 12px;
}
.fs-highlights__item p { font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---------- Philosophy & Process prose ---------- */
.fs-philosophy {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-4);
}
.fs-philosophy h2 {
  font-size: 28px;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.fs-philosophy p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.fs-philosophy p:last-child { margin-bottom: 0; }

/* ---------- Collapsible data section (uses native <details>) ---------- */
.fs-data {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter);
}
.fs-data__heading {
  font-family: var(--serif-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 6px;
  padding-top: var(--space-3);
}
.fs-collapse {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.fs-collapse:last-child { border-bottom: 1px solid var(--rule); }
.fs-collapse[open] { padding-bottom: 26px; }
.fs-collapse summary {
  cursor: pointer;
  font-family: var(--serif-display);
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 36px;
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.fs-collapse summary::-webkit-details-marker { display: none; }
.fs-collapse summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--signal);
  font-family: var(--serif-display);
  font-size: 26px;
  line-height: 1;
}
.fs-collapse[open] summary::after { content: '–'; }
.fs-collapse__hint {
  font-family: var(--serif-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 400;
  font-style: italic;
}
.fs-collapse__body { margin-top: 18px; }

/* ---------- Tables (live inside .fs-collapse__body) ---------- */
.fs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fs-table th, .fs-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
.fs-table thead th {
  font-family: var(--serif-body);
  font-weight: 500;
  background: var(--bg-card);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fs-table td.num, .fs-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fs-table td.neg { color: var(--signal); }

/* ---------- Monthly returns (wider, tighter) ---------- */
.fs-returns__year { margin-bottom: var(--space-3); }
.fs-returns__year:last-child { margin-bottom: 0; }
.fs-returns__year-label {
  font-family: var(--serif-display);
  font-size: 18px;
  color: var(--signal);
  margin: 0 0 8px;
}
.fs-returns table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.fs-returns th, .fs-returns td {
  padding: 7px 5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--rule);
}
.fs-returns th:first-child, .fs-returns td:first-child {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  width: 88px;
}
.fs-returns thead th {
  font-family: var(--serif-body);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  background: var(--bg-card);
}
.fs-returns td.neg { color: var(--signal); }
.fs-returns td.year-total {
  font-weight: 500;
  color: var(--ink);
  border-left: 1px solid var(--rule);
}

/* ---------- Asset allocation table with proportional bars ---------- */
.fs-allocation {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fs-allocation td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.fs-allocation tr:last-child td { border-bottom: 0; }
.fs-allocation td:first-child {
  width: 130px;
  font-weight: 500;
  color: var(--ink);
}
.fs-allocation__bar-cell { width: auto; padding-left: 8px; padding-right: 12px; }
.fs-allocation__bar {
  height: 10px;
  background: var(--bg-card);
  border-radius: 1px;
  overflow: hidden;
}
.fs-allocation__bar-fill {
  height: 100%;
  background: var(--ink);
  transition: width .3s ease;
}
.fs-allocation td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 80px;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Uniqueness / 3-up callouts ---------- */
.fs-uniqueness {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: var(--max);
  margin: var(--space-5) auto 0;
}
.fs-uniqueness__item { background: var(--bg-card); padding: 32px 28px; }
.fs-uniqueness__no {
  font-family: var(--serif-display);
  font-size: 36px;
  color: var(--signal);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}
.fs-uniqueness__item p { font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---------- Qualified-investor / accreditation block ---------- */
.fs-qualified {
  max-width: var(--max);
  margin: var(--space-5) auto 0;
  padding: 28px var(--gutter);
  background: var(--signal-bg-tint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fs-qualified h3 {
  font-family: var(--serif-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 12px;
  font-weight: 500;
}
.fs-qualified ol {
  padding-left: 22px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  column-count: 2;
  column-gap: 32px;
}
.fs-qualified li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- Disclosures footer ---------- */
.fs-disclosures {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter) var(--space-5);
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.fs-disclosures p { margin: 0 0 10px; }
.fs-disclosures p:last-child { margin-bottom: 0; }

/* ---------- Placeholder / data-mismatch banner ---------- */
.fs-banner {
  max-width: var(--max);
  margin: 0 auto var(--space-3);
  padding: 18px var(--gutter);
  background: var(--signal-bg-tint);
  border-top: 2px solid var(--signal);
  border-bottom: 2px solid var(--signal);
  font-size: 14px;
  line-height: 1.55;
}
.fs-banner strong { color: var(--signal); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .fs-intro { padding: var(--space-5) var(--gutter) var(--space-3); }
  .fs-intro h1 { font-size: 32px; }
  .fs-keyfacts__grid { grid-template-columns: repeat(2, 1fr); }
  .fs-keyfacts__item:nth-child(2) { border-right: 0; }
  .fs-keyfacts__item:nth-child(odd):not(:last-child) { border-right: 1px solid var(--rule); }
  .fs-keyfacts__item { border-bottom: 1px solid var(--rule); }
  .fs-keyfacts__item:nth-last-child(-n+1) { border-bottom: 0; }
  .fs-highlights { grid-template-columns: 1fr; }
  .fs-uniqueness { grid-template-columns: 1fr; }
  .fs-philosophy { padding: var(--space-4) var(--gutter); }
  .fs-returns table { font-size: 11px; }
  .fs-returns th, .fs-returns td { padding: 6px 3px; }
  .fs-returns th:first-child, .fs-returns td:first-child { width: 60px; }
  .fs-qualified ol { column-count: 1; }
}
