:root {
  --fg: #17181a;
  --fg-2: #4a4946;
  --muted: #6b6a66;
  --bg: #f7f5f0;
  --band: #ebe9e3;
  --rule: #dcd7cc;
  --rule-2: #c9c4b8;
  --pill-on: #dedbd3;
  --alarm: #8c2f20;
  --font: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
body { border-top: 4px solid var(--fg); }

a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--rule-2); }
a:hover { border-bottom-color: var(--fg); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 56px; padding-right: 56px; }

/* ---- header / footer ---- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  border: 0; color: var(--fg);
}
.signal-nav { display: flex; gap: 32px; font-size: 14px; }
.signal-nav a, .signal-nav span { color: var(--muted); border: 0; }
.signal-nav a:hover { color: var(--fg); }
.signal-nav .disabled { color: var(--rule-2); }

footer { border-top: 1px solid var(--rule); margin-top: 8px; }
footer .wrap { padding-top: 20px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }
footer p { margin: 0; max-width: 640px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }

/* ---- type ---- */

.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
h1 {
  margin: 12px 0 0;
  font-size: 56px; line-height: 1.02; font-weight: 500; letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  margin: 0;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
h2 svg { color: var(--fg); flex: none; }
.dek { margin: 16px 0 0; font-size: 17px; color: var(--fg-2); max-width: 560px; text-wrap: pretty; }

/* ---- hero band with headline forecasts ---- */

.hero { background: var(--band); border-bottom: 1px solid var(--rule); }
.hero .wrap { padding-top: 52px; padding-bottom: 48px; }

.headlines { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.headline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tile { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--fg); padding-top: 16px; }
.tile .big { font-size: 72px; line-height: 0.95; font-weight: 300; letter-spacing: -0.04em; }
.tile .big span { font-size: 30px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tile .window { font-size: 14px; color: var(--fg-2); margin-top: -4px; font-variant-numeric: tabular-nums; }
.tile .ci { font-size: 14px; color: var(--fg-2); }
.headline-note {
  margin: 18px 0 0; font-size: 13px; color: var(--muted); max-width: 720px; text-wrap: pretty;
}
.headline-empty {
  margin: 0; font-size: 15px; color: var(--muted);
  border-top: 1px solid var(--rule-2); padding-top: 14px; max-width: 560px;
}

/* ---- portfolio variant toggles ---- */

.variant-toggles {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px;
  padding: 32px 0 36px;
}
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer;
}
.pill:hover { color: var(--fg); border-color: var(--muted); }
.pill[aria-pressed="true"] {
  background: var(--pill-on); border-color: var(--pill-on); color: var(--fg); font-weight: 500;
}
.pill:disabled { opacity: 0.4; cursor: not-allowed; }
.paper-note { font-size: 14px; color: var(--muted); margin: -20px 0 32px; max-width: 640px; }
.paper-note strong { color: var(--fg); font-weight: 500; }

/* ---- sections ---- */

.section {
  border-top: 1px solid var(--rule);
  padding: 30px 0 44px;
  display: flex; flex-direction: column; gap: 14px;
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.caption { font-size: 14px; color: var(--muted); }
.chart { width: 100%; height: 300px; }

.val-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.paper-note.thin-note {
  display: flex; align-items: flex-start; gap: 8px;
  border-left: 2px solid var(--alarm); padding-left: 12px;
}
.paper-note.thin-note svg { flex: none; color: var(--alarm); margin-top: 1px; }

.chart-note {
  margin: 10px 0 0; max-width: 78ch;
  font-size: 13px; line-height: 1.5; color: var(--fg-2);
  border-left: 2px solid var(--alarm); padding-left: 12px;
}
.chart-note .skull { color: var(--alarm); font-size: 15px; margin-right: 6px; }

.tables {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px;
  padding-bottom: 40px;
}
.table-block { display: flex; flex-direction: column; gap: 14px; }

table { border-collapse: collapse; width: 100%; }
th, td { padding: 13px 0 13px 16px; text-align: right; border-bottom: 1px solid var(--rule); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--fg);
}
td { font-size: 17px; }
td.note { text-align: left; color: var(--muted); font-size: 14px; }

/* ---- metadata row ---- */

.meta-row {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--rule); padding: 24px 0 48px;
}
.meta { display: flex; align-items: flex-start; gap: 12px; }
.meta svg { color: var(--muted); flex: none; margin-top: 2px; }
.meta .val { margin-top: 4px; }

/* ---- landing page ---- */

.landing-hero { background: var(--fg); color: var(--bg); border-bottom: 0; }
.landing-hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.landing-hero .eyebrow { color: #a7a49c; }
.landing-hero h1 { font-size: 64px; max-width: 13ch; }
.landing-hero h1 em { font-style: italic; font-weight: 300; }
.landing-hero .dek { color: #cfcbc2; max-width: 600px; font-size: 18px; margin-top: 22px; }
.landing-hero .dek a { color: var(--bg); border-bottom-color: #6b6a66; }
.landing-hero .dek a:hover { border-bottom-color: var(--bg); }
.landing-hero .dek .cite { font-size: 14px; color: #a7a49c; white-space: nowrap; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: end; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg); font-size: 14px; font-weight: 500; line-height: 1.3;
}
.cta:hover { background: #fff; border-color: #fff; }
.cta.ghost { background: transparent; color: var(--bg); border-color: #6b6a66; }
.cta.ghost:hover { border-color: var(--bg); background: transparent; }
.cta.disabled { background: transparent; color: #8a877f; border-color: #4a4946; cursor: default; }
.cta small { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a877f; margin-left: 2px; }

.stat-strip { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.stat-strip div { border-top: 1px solid #4a4946; padding-top: 10px; }
.stat-strip dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #a7a49c; font-weight: 500; white-space: nowrap; }
.stat-strip dd { margin: 4px 0 0; font-size: 30px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.stat-strip dd small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: #a7a49c; margin-left: 6px; }

/* top performers */
.top-band { background: var(--band); border-bottom: 1px solid var(--rule); }
.top-band .wrap { padding-top: 40px; padding-bottom: 48px; }
.top-band .section-head { margin-bottom: 26px; }
.top-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
}
.top-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 18px 18px 16px; border: 0; border-top: 2px solid var(--fg);
  background: var(--bg); color: var(--fg);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.top-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(23, 24, 26, 0.10); }
.top-card .rank { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); font-weight: 500; }
.top-card .acr { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; margin-top: 4px; }
.top-card .desc { font-size: 13px; color: var(--fg-2); line-height: 1.35; min-height: 2.7em; text-wrap: pretty; }
.top-card .big { margin-top: 10px; font-size: 44px; line-height: 0.95; font-weight: 300; letter-spacing: -0.04em; }
.top-card .big span { font-size: 20px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.top-card .spark { width: 100%; height: 36px; margin-top: 10px; overflow: visible; }
.top-card .spark path { fill: none; stroke: var(--fg); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.top-foot {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px;
  padding-top: 10px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--fg-2);
}

/* catalogue */
.catalogue .wrap { padding-top: 40px; padding-bottom: 48px; }
.cat-head { margin-bottom: 18px; }
.search-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; flex: 1; justify-content: flex-end; }
.search {
  display: flex; align-items: center; gap: 10px;
  width: min(380px, 100%);
  padding: 9px 14px; border: 1px solid var(--rule-2); border-radius: 999px;
  background: #fff; color: var(--muted);
}
.search:focus-within { border-color: var(--fg); color: var(--fg); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--fg);
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.select {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid var(--rule-2); border-radius: 999px; background: #fff; color: var(--muted);
}
.select:hover, .select:focus-within { border-color: var(--fg); color: var(--fg); }
.select.active { background: var(--pill-on); border-color: var(--pill-on); color: var(--fg); }
.select select {
  appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 14px; color: inherit; cursor: pointer;
  padding: 9px 34px 9px 14px; max-width: 220px; text-overflow: ellipsis;
}
.select.active select { font-weight: 500; }
.select svg { position: absolute; right: 12px; pointer-events: none; }

.catalogue-table .cat-link {
  all: unset; cursor: pointer; font: inherit; color: inherit;
  border-bottom: 1px dotted var(--rule-2);
}
.catalogue-table .cat-link:hover { color: var(--fg); border-bottom-color: var(--fg); }

.count { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Sticky headers only work while this box is overflow-visible, because any
   non-visible overflow-x makes the box the scrollport and it never scrolls
   vertically. So the box clips only when the table cannot fit the viewport:
   the 960px breakpoint must stay >= table min-width (820px) + .wrap side
   padding (2 x 56px = 112px) = 932px. Change one, change the others. Below the
   breakpoint the header does not stick; that is the accepted trade on phones. */
.table-scroll { overflow: visible; }
@media (max-width: 960px) { .table-scroll { overflow-x: auto; } }
.catalogue-table { table-layout: fixed; width: 100%; min-width: 820px; }
.catalogue-table th, .catalogue-table td { padding: 12px 0 12px 16px; text-align: left; vertical-align: top; }
.catalogue-table th:first-child, .catalogue-table td:first-child { padding-left: 0; }
.catalogue-table th.num, .catalogue-table td.num { text-align: right; }
.catalogue-table th { position: sticky; top: 0; background: var(--bg); z-index: 1; padding-top: 0; padding-bottom: 10px; }
.catalogue-table th { font-size: 11px; letter-spacing: 0.08em; }
.catalogue-table th button {
  all: unset; cursor: pointer; display: block; width: 100%; box-sizing: border-box;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit;
  white-space: normal;
}
.catalogue-table th button small { display: block; font-size: 10px; letter-spacing: 0.08em; color: var(--rule-2); font-weight: 400; margin-top: 2px; }
.catalogue-table th button:hover { color: var(--fg); }
.catalogue-table th[aria-sort] { color: var(--fg); }
.catalogue-table th[aria-sort] button::after { content: "\2191"; font-size: 11px; margin-left: 5px; }
.catalogue-table th[aria-sort="descending"] button::after { content: "\2193"; }

.catalogue-table td { font-size: 14px; line-height: 1.4; }
.catalogue-table tbody tr { cursor: pointer; }
.catalogue-table tbody tr:hover td { background: var(--band); }
.catalogue-table tbody tr[hidden] { display: none; }
.catalogue-table td.acr { font-weight: 600; overflow-wrap: anywhere; }
.catalogue-table td.acr a { border: 0; }
.catalogue-table .dagger { color: var(--muted); font-weight: 400; margin-left: 2px; cursor: help; }
.catalogue-table tbody tr:hover td.acr a { border-bottom: 1px solid var(--fg); }
.catalogue-table td.desc { color: var(--fg-2); }
.catalogue-table td.paper { color: var(--fg-2); }
.catalogue-table td.paper small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.catalogue-table td.cat { color: var(--fg-2); }
.catalogue-table td.sample { color: var(--muted); white-space: nowrap; }
.catalogue-table td.num { font-size: 15px; white-space: nowrap; }
.empty { margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.table-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); max-width: 720px; }
.table-note sup { font-size: 11px; }

/* ---- responsive ---- */

@media (max-width: 1000px) {
  .top-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .top-card .big { font-size: 38px; }
}

@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 36px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 32px; }
  .headline-grid, .tables { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .table-block { overflow-x: auto; }
  th, td { padding: 11px 0 11px 10px; }
  td { font-size: 15px; }
  .tile .big { font-size: 56px; }
  .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-nav { gap: 16px; }
  .landing-hero .wrap { padding-top: 40px; padding-bottom: 36px; }
  .landing-hero h1 { font-size: 40px; }
  .landing-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .stat-strip dd { font-size: 22px; }
  .top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .top-card { padding: 14px 14px 12px; }
  .top-card .big { font-size: 36px; }
  .search-wrap { width: 100%; justify-content: flex-start; }
  .search { width: 100%; }
  .catalogue-table th, .catalogue-table td { padding-left: 12px; }
  .site-header .wrap { flex-wrap: wrap; gap: 8px 16px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
