/* Three Peaks Management · website v4.3 · generated by build.py from system/v1.6 and src/site.css. Do not edit here. */

/* ===== tokens.css ===== */
/* Three Peaks Management — design tokens v1
   Typeface: Antarctica (newglyph, v3.001), self-hosted WOFF2 from ../../fonts/.
   No CDN, no Google Fonts. */

@font-face { font-family: "Antarctica"; src: url("fonts/Antarctica-Book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Antarctica"; src: url("fonts/Antarctica-BookItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Antarctica"; src: url("fonts/Antarctica-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Antarctica"; src: url("fonts/Antarctica-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Antarctica"; src: url("fonts/Antarctica-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Antarctica"; src: url("fonts/Antarctica-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Antarctica Condensed"; src: url("fonts/Antarctica-CondensedMedium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Antarctica Condensed"; src: url("fonts/Antarctica-CondensedSemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Colour: ink and glacier. Contrast ratios are on paper #FFFFFF. */
  --tp-ink: #0D1B2A;          /* 17.39:1 text, marks */
  --tp-ink-2: #3A4A5C;        /*  9.08:1 secondary text */
  --tp-slate: #5C6B7A;        /*  5.47:1 meta text (AA) */
  --tp-glacier: #2F6690;      /*  6.13:1 links, primary action, data series 2 */
  --tp-glacier-deep: #1D4566; /* 10.02:1 hover / pressed */
  --tp-frost: #6F9CC0;        /*  2.92:1 data fill only, never text */
  --tp-ice: #A9C6DE;          /*  1.78:1 data fill only */
  --tp-haze: #C9D6E2;         /*  data track / donut remainder */
  --tp-rule-strong: #8795A3;  /*  3.06:1 input borders (3:1 non-text) */
  --tp-rule: #D3DAE1;         /*  hairlines, dividers */
  --tp-mist: #F2F5F8;         /*  quiet surface */
  --tp-paper: #FFFFFF;        /*  page */
  --tp-signal: #A04A00;       /*  6.04:1 form errors and weight warnings only */

  --tp-data-1: var(--tp-ink);
  --tp-data-2: var(--tp-glacier);
  --tp-data-3: var(--tp-frost);
  --tp-data-4: #4F5D6B;
  --tp-data-5: var(--tp-ice);
  --tp-data-6: var(--tp-glacier-deep);

  /* Type */
  --tp-font: "Antarctica", system-ui, sans-serif;
  --tp-font-cond: "Antarctica Condensed", "Antarctica", system-ui, sans-serif;

  --tp-display: 600 clamp(2.5rem, 1.6rem + 3.2vw, 4rem)/1.06 var(--tp-font);
  --tp-h1: 600 clamp(2.125rem, 1.6rem + 1.8vw, 3rem)/1.1 var(--tp-font);
  --tp-h2: 500 clamp(1.625rem, 1.35rem + 0.9vw, 2rem)/1.2 var(--tp-font);
  --tp-h3: 500 clamp(1.25rem, 1.15rem + 0.3vw, 1.375rem)/1.3 var(--tp-font);
  --tp-lead: 400 clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem)/1.45 var(--tp-font);
  --tp-body: 400 clamp(1.0625rem, 1.02rem + 0.15vw, 1.125rem)/1.6 var(--tp-font);
  --tp-small: 400 0.9375rem/1.45 var(--tp-font);
  --tp-label: 600 0.75rem/1.3 var(--tp-font-cond);
  --tp-data-xl: 500 clamp(2rem, 1.7rem + 1vw, 2.5rem)/1.05 var(--tp-font-cond);
  --tp-data: 500 1rem/1.35 var(--tp-font-cond);
  --tp-quote: italic 400 clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem)/1.4 var(--tp-font);
  --tp-track-label: 0.1em;
  --tp-track-display: -0.02em;
  --tp-measure: 66ch;

  /* Space: 4-point scale */
  --tp-s1: 4px; --tp-s2: 8px; --tp-s3: 12px; --tp-s4: 16px; --tp-s5: 24px;
  --tp-s6: 32px; --tp-s7: 48px; --tp-s8: 64px; --tp-s9: 96px; --tp-s10: 128px;

  /* Grid */
  --tp-max: 1200px;
  --tp-cols: 12;
  --tp-gutter: 24px;
  --tp-margin: clamp(20px, 4vw, 48px);

  /* Shape */
  --tp-radius: 2px;
  --tp-hair: 1px solid var(--tp-rule);
  --tp-focus: 0 0 0 2px var(--tp-paper), 0 0 0 4px var(--tp-glacier);
}


/* ===== components.css ===== */
/* Three Peaks Management — base and components v1. Requires tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tp-paper); color: var(--tp-ink); font: var(--tp-body); font-kerning: normal; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--tp-glacier); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--tp-glacier-deep); }
:focus-visible { outline: none; box-shadow: var(--tp-focus); border-radius: var(--tp-radius); }
h1, h2, h3, h4, p { margin: 0; }
code, kbd, pre { font-family: var(--tp-font-cond); font-weight: 500; font-size: 0.9em; }
button, input, select, textarea { font-family: var(--tp-font); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--tp-s4); top: var(--tp-s4); background: var(--tp-paper); padding: var(--tp-s2) var(--tp-s3); z-index: 70; }
html { scroll-padding-top: calc(var(--tp-hdr, 0px) + 16px); }

/* Layout */
.wrap { max-width: calc(var(--tp-max) + 2 * var(--tp-margin)); margin: 0 auto; padding: 0 var(--tp-margin); }
.grid { display: grid; grid-template-columns: repeat(var(--tp-cols), minmax(0, 1fr)); column-gap: var(--tp-gutter); row-gap: var(--tp-s6); }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-9 { grid-column: span 9; }
@media (max-width: 900px) { .span-9, .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } .span-3 { grid-column: span 6; } }
@media (max-width: 560px) { .span-3 { grid-column: span 12; } }
.section { padding: var(--tp-s9) 0; border-top: var(--tp-hair); }
.section:first-of-type { border-top: 0; }
@media (max-width: 700px) { .section { padding: var(--tp-s8) 0; } }
.measure { max-width: var(--tp-measure); }

/* Type roles */
.t-display { font: var(--tp-display); letter-spacing: var(--tp-track-display); }
.t-h1 { font: var(--tp-h1); letter-spacing: -0.015em; }
.t-h2 { font: var(--tp-h2); letter-spacing: -0.01em; }
.t-h3 { font: var(--tp-h3); }
.t-lead { font: var(--tp-lead); color: var(--tp-ink-2); }
.t-body { font: var(--tp-body); }
.t-small { font: var(--tp-small); color: var(--tp-ink-2); }
.t-label, .kicker { font: var(--tp-label); letter-spacing: var(--tp-track-label); text-transform: uppercase; color: var(--tp-slate); }
.t-data-xl { font: var(--tp-data-xl); letter-spacing: -0.01em; }
.t-data { font: var(--tp-data); }
.t-quote { font: var(--tp-quote); }
.num { font-family: var(--tp-font-cond); font-weight: 500; text-align: right; white-space: nowrap; }

/* Header and nav */
.site-header { border-bottom: var(--tp-hair); background: var(--tp-paper); position: sticky; top: 0; z-index: 50; } /* v1.4: sticky on every page */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--tp-s5); min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--tp-s3); color: var(--tp-ink); text-decoration: none; }
.wordmark:hover { color: var(--tp-ink); }
.wordmark svg { flex: none; }
.wm-text { display: flex; flex-direction: column; line-height: 1; }
.wm-name { font: 600 1.0625rem/1 var(--tp-font); letter-spacing: 0.01em; }
.wm-sub { font: 600 0.625rem/1 var(--tp-font-cond); letter-spacing: 0.22em; text-transform: uppercase; color: var(--tp-slate); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: var(--tp-s5); }
.nav a { font: 500 0.9375rem/1 var(--tp-font); color: var(--tp-ink-2); text-decoration: none; padding: var(--tp-s2) 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--tp-ink); border-bottom-color: var(--tp-rule-strong); }
.nav a[aria-current="page"] { color: var(--tp-ink); border-bottom-color: var(--tp-ink); }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .header-row { flex-wrap: wrap; min-height: 0; padding-top: var(--tp-s4); }
  .nav { order: 3; width: 100%; overflow-x: auto; justify-content: space-between; gap: 10px; padding: var(--tp-s2) 0 var(--tp-s1); scrollbar-width: none; }
  .nav a { white-space: nowrap; font-size: 0.8125rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--tp-s2); min-height: 44px; padding: 0 var(--tp-s5); font: 600 0.9375rem/1 var(--tp-font); border-radius: var(--tp-radius); border: 1px solid var(--tp-ink); background: var(--tp-ink); color: var(--tp-paper); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--tp-glacier-deep); border-color: var(--tp-glacier-deep); color: var(--tp-paper); }
.btn-secondary { background: transparent; color: var(--tp-ink); }
.btn-secondary:hover { background: var(--tp-mist); color: var(--tp-ink); border-color: var(--tp-ink); }
.btn-text { min-height: 44px; padding: 0; border: 0; background: none; color: var(--tp-glacier); font: 600 0.9375rem/1 var(--tp-font); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--tp-mist); border-color: var(--tp-rule); color: var(--tp-slate); cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 0 var(--tp-s4); font-size: 0.875rem; }
.arrow::after { content: "→"; font-weight: 400; }

/* Forms */
.field { display: grid; gap: var(--tp-s2); margin-bottom: var(--tp-s5); }
.field label { font: 600 0.875rem/1.3 var(--tp-font); }
.field .hint { font: var(--tp-small); color: var(--tp-slate); }
.input, .field input[type="text"], .field input[type="email"], .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; font: 400 1rem/1.4 var(--tp-font); color: var(--tp-ink); background: var(--tp-paper); border: 1px solid var(--tp-rule-strong); border-radius: var(--tp-radius); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--tp-glacier); box-shadow: 0 0 0 1px var(--tp-glacier); }
.field.is-error input { border-color: var(--tp-signal); }
.field .error { font: 500 0.875rem/1.3 var(--tp-font); color: var(--tp-signal); }
.check { display: flex; gap: var(--tp-s3); align-items: flex-start; font: var(--tp-small); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--tp-ink); }

/* Placeholder (open content) */
.ph { position: relative; border: 1px dashed var(--tp-rule-strong); border-radius: var(--tp-radius); padding: var(--tp-s5) var(--tp-s4) var(--tp-s4); color: var(--tp-ink-2); }
.ph-tag { position: absolute; top: -9px; left: 10px; background: var(--tp-paper); padding: 0 6px; font: 600 0.6875rem/1.4 var(--tp-font-cond); letter-spacing: 0.06em; color: var(--tp-slate); }
.ph-inline { border-bottom: 1px dashed var(--tp-rule-strong); color: var(--tp-ink-2); }

/* Illustrative label and disclaimer */
.illu { display: inline-flex; align-items: center; gap: 6px; font: 600 0.6875rem/1 var(--tp-font-cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-glacier-deep); border: 1px solid var(--tp-glacier); padding: 4px 6px; border-radius: var(--tp-radius); white-space: nowrap; }
.illu::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.disclaimer { display: flex; gap: var(--tp-s3); align-items: flex-start; border-left: 2px solid var(--tp-ink); background: var(--tp-mist); padding: var(--tp-s3) var(--tp-s4); font: 500 0.9375rem/1.45 var(--tp-font); color: var(--tp-ink); }
.disclaimer-bar { position: sticky; bottom: 0; z-index: 5; background: var(--tp-ink); color: var(--tp-paper); font: 500 0.875rem/1.4 var(--tp-font); }
.disclaimer-bar .wrap { display: flex; gap: var(--tp-s4); align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.disclaimer-bar .legal-flag { font: 600 0.6875rem/1.2 var(--tp-font-cond); letter-spacing: 0.06em; color: var(--tp-ice); white-space: nowrap; }
@media (max-width: 700px) { .disclaimer-bar .wrap { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* Cards */
.card { display: flex; flex-direction: column; gap: var(--tp-s3); padding: var(--tp-s5) 0; border-top: 1px solid var(--tp-ink); }
.card-meta { display: flex; flex-wrap: wrap; gap: var(--tp-s3); align-items: baseline; }
.card h3 a, .card h2 a { color: var(--tp-ink); text-decoration: none; }
.card h3 a:hover, .card h2 a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.card-foot { margin-top: auto; }
.tag { font: 500 0.8125rem/1 var(--tp-font); color: var(--tp-ink-2); border: var(--tp-hair); padding: 5px 8px; border-radius: 999px; }

/* Note (Insights) anatomy */
.note-cover { aspect-ratio: 1 / 1; background: var(--tp-mist); display: grid; place-items: center; border: var(--tp-hair); }
.note-cover svg { width: 72%; height: auto; color: var(--tp-ink); }
.note-num { font: 600 0.75rem/1 var(--tp-font-cond); letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-ink); }
.note-dek { font: var(--tp-lead); color: var(--tp-ink-2); }
.note-byline { font: var(--tp-small); color: var(--tp-slate); }
.toc { border-top: 1px solid var(--tp-ink); padding-top: var(--tp-s3); font: var(--tp-small); }
.toc ol { margin: var(--tp-s2) 0 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: var(--tp-s3); padding: 6px 0; border-bottom: var(--tp-hair); }
.toc li::before { content: counter(toc, decimal-leading-zero); font: 600 0.75rem/1.9 var(--tp-font-cond); color: var(--tp-slate); }
.prose { max-width: var(--tp-measure); }
.prose p + p { margin-top: 1em; }
.prose h2 { font: var(--tp-h3); margin: 1.8em 0 0.6em; }
.pull { font: var(--tp-quote); border-top: 1px solid var(--tp-ink); padding-top: var(--tp-s4); margin: var(--tp-s7) 0; max-width: 34ch; }
.footnote { font: var(--tp-small); color: var(--tp-slate); border-top: var(--tp-hair); padding-top: var(--tp-s3); }

/* Charts */
.chart { border-top: 1px solid var(--tp-ink); padding-top: var(--tp-s4); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: var(--tp-s3); flex-wrap: wrap; margin-bottom: var(--tp-s4); }
.chart-head h3 { font: 600 1rem/1.3 var(--tp-font); }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font-family: var(--tp-font-cond); font-weight: 500; }
.chart-source { margin-top: var(--tp-s3); font: var(--tp-small); color: var(--tp-slate); }
.legend { list-style: none; margin: var(--tp-s4) 0 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: var(--tp-s3); align-items: center; font: var(--tp-data); }
.swatch { width: 12px; height: 12px; display: inline-block; }
.donut-wrap { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: var(--tp-s5); align-items: center; }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: 1fr; } .donut-wrap svg { max-width: 200px; } }
.bars { display: grid; gap: var(--tp-s3); }
.bar-row { display: grid; grid-template-columns: 64px 1fr 56px; gap: var(--tp-s3); align-items: center; font: var(--tp-data); }
.bar-track { height: 10px; background: var(--tp-mist); position: relative; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--tp-ink); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font: 400 0.9375rem/1.4 var(--tp-font); }
table.data th { font: var(--tp-label); letter-spacing: var(--tp-track-label); text-transform: uppercase; color: var(--tp-slate); text-align: left; padding: var(--tp-s2) var(--tp-s3) var(--tp-s2) 0; border-bottom: 1px solid var(--tp-ink); white-space: nowrap; }
table.data td { padding: var(--tp-s3) var(--tp-s3) var(--tp-s3) 0; border-bottom: var(--tp-hair); vertical-align: top; }
table.data th.num, table.data td.num { text-align: right; padding-right: 0; padding-left: var(--tp-s3); }
table.data td.tick { font: 600 0.9375rem/1.4 var(--tp-font-cond); letter-spacing: 0.02em; }
table.data td.num + td, table.data th.num + th:not(.num) { padding-left: var(--tp-s5); }
table.data tfoot td { border-top: 1px solid var(--tp-ink); border-bottom: 0; font-weight: 600; }

/* ETF builder elements */
.ticker-list, .holding-list { list-style: none; margin: 0; padding: 0; }
.ticker-list li { display: grid; grid-template-columns: 1fr auto; gap: var(--tp-s3); align-items: center; padding: var(--tp-s3) 0; border-bottom: var(--tp-hair); }
.ticker { font: 600 0.9375rem/1.2 var(--tp-font-cond); letter-spacing: 0.03em; }
.ticker-name { display: block; font: var(--tp-small); color: var(--tp-slate); }
.ticker-search { position: relative; margin-bottom: var(--tp-s3); }
.add-btn { min-height: 36px; padding: 0 var(--tp-s3); font: 600 0.8125rem/1 var(--tp-font); background: var(--tp-paper); color: var(--tp-ink); border: 1px solid var(--tp-ink); border-radius: var(--tp-radius); cursor: pointer; }
.add-btn:hover { background: var(--tp-ink); color: var(--tp-paper); }
.add-btn[disabled] { border-color: var(--tp-rule); color: var(--tp-slate); background: var(--tp-mist); cursor: default; }
.holding { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--tp-s2) var(--tp-s3); padding: var(--tp-s4) 0; border-bottom: var(--tp-hair); }
.holding-weights { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 84px; gap: var(--tp-s3); align-items: center; }
.remove-btn { min-height: 32px; padding: 0; border: 0; background: none; font: 500 0.8125rem/1 var(--tp-font); color: var(--tp-ink-2); text-decoration: underline; cursor: pointer; }
input[type="range"].weight { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; }
input[type="range"].weight::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--tp-ink) 0, var(--tp-ink) var(--fill, 0%), var(--tp-haze) var(--fill, 0%)); border-radius: 2px; }
input[type="range"].weight::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--tp-paper); border: 2px solid var(--tp-ink); }
input[type="range"].weight::-moz-range-track { height: 4px; background: var(--tp-haze); }
input[type="range"].weight::-moz-range-progress { height: 4px; background: var(--tp-ink); }
input[type="number"].weight-num { width: 100%; min-height: 40px; padding: 6px 8px; font: 500 1rem/1 var(--tp-font-cond); text-align: right; border: 1px solid var(--tp-rule-strong); border-radius: var(--tp-radius); color: var(--tp-ink); background: var(--tp-paper); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: var(--tp-s2); align-items: center; padding: var(--tp-s4) 0; border-top: 1px solid var(--tp-ink); }
.totals .t-data-xl { text-align: right; }
.totals-meter { grid-column: 1 / -1; height: 6px; background: var(--tp-mist); position: relative; }
.totals-meter span { position: absolute; inset: 0 auto 0 0; background: var(--tp-ink); max-width: 100%; }
.totals-status { grid-column: 1 / -1; font: var(--tp-small); color: var(--tp-slate); }
.totals.is-off .totals-meter span { background: var(--tp-signal); }
.totals.is-off .totals-status { color: var(--tp-signal); font-weight: 500; }
.result-head { display: grid; gap: var(--tp-s3); padding-bottom: var(--tp-s5); border-bottom: 1px solid var(--tp-ink); }
.result-head .row { display: flex; gap: var(--tp-s3); flex-wrap: wrap; align-items: center; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--tp-hair); }
.figure { display: grid; justify-items: start; gap: var(--tp-s2); padding: var(--tp-s5) var(--tp-s4) var(--tp-s5) 0; }
.figure + .figure { border-left: var(--tp-hair); padding-left: var(--tp-s4); }
.figure-name { font: var(--tp-small); color: var(--tp-ink-2); }
@media (max-width: 640px) { .figures { grid-template-columns: 1fr; } .figure + .figure { border-left: 0; border-top: var(--tp-hair); padding-left: 0; } }

/* Footer */
.site-footer { border-top: 1px solid var(--tp-ink); padding: var(--tp-s7) 0 var(--tp-s6); font: var(--tp-small); color: var(--tp-ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--tp-s5); }
.footer-grid a { color: var(--tp-ink-2); }
.footer-legal { margin-top: var(--tp-s6); padding-top: var(--tp-s4); border-top: var(--tp-hair); display: flex; flex-wrap: wrap; gap: var(--tp-s2) var(--tp-s5); justify-content: space-between; color: var(--tp-slate); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Icons: 24px grid, 1.5px stroke, round joins */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Sample-data and news labels (v1.1: real constituents, sample figures) */
.sample { display: inline-flex; align-items: center; gap: 6px; font: 600 0.6875rem/1.2 var(--tp-font-cond); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tp-glacier-deep); border: 1px dashed var(--tp-glacier); padding: 4px 6px; border-radius: var(--tp-radius); }
.sample::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.chart-head .sample { justify-self: start; }
.data-panel { border-top: 1px solid var(--tp-ink); padding-top: var(--tp-s4); }
.exch { font: 500 0.75rem/1 var(--tp-font-cond); letter-spacing: 0.04em; color: var(--tp-slate); margin-left: 6px; }
.constituent { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--tp-s3); align-items: center; padding: var(--tp-s3) 0; border-bottom: var(--tp-hair); }
table.constituents td { font-size: 0.9375rem; }
table.constituents .cell-sub { display: none; font: var(--tp-small); color: var(--tp-slate); margin-top: 4px; }
@media (max-width: 560px) { table.data .col-sub { display: none; } table.constituents .cell-sub { display: block; } }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-slot { padding: var(--tp-s3) 0; border-bottom: 1px dashed var(--tp-rule-strong); }
.news-head { font: 500 1rem/1.35 var(--tp-font); color: var(--tp-ink-2); }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; border-top: 1px solid var(--tp-ink); padding-top: var(--tp-s3); font: var(--tp-small); }
.meta-list dt { color: var(--tp-slate); } .meta-list dd { margin: 0; font-weight: 500; }
.t-data-xl.range { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== v1.2 additions ===================================================== */
/* Peaks hero: Möbius ring over the three-peak ridge; topics = pages */
.peaks-hero { padding: var(--tp-s8) 0 var(--tp-s7); border-bottom: var(--tp-hair); }
.peaks-hero .hero-title { max-width: 20ch; margin: var(--tp-s3) 0 0; }
.stage { position: relative; margin-top: var(--tp-s5); }
.stage { max-width: 1040px; margin-left: auto; margin-right: auto; }
.stage-svg { display: block; width: 100%; height: auto; overflow: hidden; }
.pk-ridge { fill: none; stroke: var(--tp-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pk-contour { fill: none; stroke: var(--tp-rule-strong); stroke-width: 1; stroke-linejoin: round; }
.pk-seg { fill: none; stroke: var(--tp-glacier); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.pk-ruling { stroke: var(--tp-frost); stroke-width: 1.25; stroke-linecap: round; }
.peaks-hero:not([data-topic="idle"]) .pk-ruling { stroke: var(--tp-glacier); }
.pk-edge { fill: none; stroke: var(--tp-ink); stroke-width: 1.5; stroke-linejoin: round; }
.pk-tether { stroke: var(--tp-glacier); stroke-width: 1; stroke-dasharray: 3 4; }
.pk-node { fill: var(--tp-paper); stroke: var(--tp-ink); stroke-width: 1.5; }
.pk-node.is-on { fill: var(--tp-glacier); stroke: var(--tp-glacier); }
.pk-topics { position: absolute; inset: 0; pointer-events: none; }
.pk-topic { pointer-events: auto; position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, 14px); display: inline-flex; align-items: baseline; gap: 6px;
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--tp-rule-strong); border-radius: var(--tp-radius); background: var(--tp-paper);
  font: 600 1rem/1 var(--tp-font); color: var(--tp-ink); cursor: pointer; }
.pk-topic .pk-num { font: 600 0.6875rem/1 var(--tp-font-cond); letter-spacing: 0.08em; color: var(--tp-slate); }
.pk-topic:hover { border-color: var(--tp-ink); }
.pk-topic[aria-selected="true"] { background: var(--tp-ink); border-color: var(--tp-ink); color: var(--tp-paper); }
.pk-topic[aria-selected="true"] .pk-num { color: var(--tp-ice); }
.pk-topic:focus-visible { outline: none; box-shadow: var(--tp-focus); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--tp-s5); align-items: start; margin-top: var(--tp-s6); border-top: 1px solid var(--tp-ink); padding-top: var(--tp-s5); min-height: 196px; }
.teaser-item { display: grid; gap: var(--tp-s3); max-width: 62ch; }
.teaser-item[hidden] { display: none; }
.teaser-keys { color: var(--tp-slate); }
.motion-toggle { gap: 6px; }
.motion-toggle .icon { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .peaks-hero { padding: var(--tp-s6) 0 var(--tp-s6); }
  .stage { margin-top: var(--tp-s4); }
  .pk-topics { position: static; display: flex; justify-content: space-between; gap: 8px; margin-top: var(--tp-s3); }
  .pk-topic { position: static; transform: none; flex: 1 1 0; justify-content: center; }
  .hero-foot { grid-template-columns: 1fr; min-height: 0; }
  .motion-toggle { justify-self: start; }
}

/* Interactive price chart */
.ichart-tabs { display: inline-flex; border: 1px solid var(--tp-rule-strong); border-radius: var(--tp-radius); margin-bottom: var(--tp-s3); }
.ichart-tab { font: 600 0.8125rem/1 var(--tp-font-cond); letter-spacing: 0.04em; padding: 9px 14px; min-width: 48px; border: 0; background: transparent; color: var(--tp-ink-2); cursor: pointer; }
.ichart-tab + .ichart-tab { border-left: 1px solid var(--tp-rule); }
.ichart-tab[aria-pressed="true"] { background: var(--tp-ink); color: var(--tp-paper); }
.ichart-tab:focus-visible, .ichart-stage:focus-visible { outline: none; box-shadow: var(--tp-focus); }
.ichart-stage { position: relative; cursor: crosshair; touch-action: pan-y; }
.ichart-stage svg { display: block; width: 100%; height: auto; }
.ic-grid { stroke: var(--tp-rule); }
.ic-axis { font: 500 11px/1 var(--tp-font-cond); fill: var(--tp-slate); }
.ic-line { fill: none; stroke: var(--tp-ink); stroke-width: 2; stroke-linejoin: round; }
.ic-area { fill: var(--tp-haze); fill-opacity: 0.45; }
.ic-vline { stroke: var(--tp-ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.ic-dot { fill: var(--tp-paper); stroke: var(--tp-ink); stroke-width: 2; }
.ic-tip { position: absolute; pointer-events: none; display: grid; gap: 2px; padding: 8px 10px; background: var(--tp-ink); color: var(--tp-paper); border-radius: var(--tp-radius); white-space: nowrap; }
.ic-tip[hidden] { display: none; }
.ic-tip-v { font: 600 1rem/1.1 var(--tp-font-cond); }
.ic-tip-d { font: 0.75rem/1.2 var(--tp-font); color: var(--tp-ice); }
.ic-tip-s { font: 600 0.625rem/1.2 var(--tp-font-cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-ice); }
.ichart-help { color: var(--tp-slate); margin-top: var(--tp-s2); }

/* Quote head and key data (profile) */
.quote-price { margin: 0; }
.quote-change { font: 600 1rem/1.2 var(--tp-font-cond); margin: 6px 0 8px; }
.quote-change.is-down { color: var(--tp-ink-2); }
.quote-change.is-up { color: var(--tp-glacier-deep); }
.keydata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--tp-s6); margin: 0; }
.keydata > div { display: flex; justify-content: space-between; gap: var(--tp-s3); padding: 10px 0; border-bottom: var(--tp-hair); font: var(--tp-small); }
.keydata dt { color: var(--tp-slate); } .keydata dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 640px) { .keydata { grid-template-columns: 1fr; } }

/* ===== v1.3 additions ===================================================== */
/* Home point field. Default (no JS / reduced motion) = static labels + static peaks. */
.home-scroll { position: relative; border-bottom: var(--tp-hair); }
.home-sticky { position: relative; padding: var(--tp-s8) var(--tp-margin) var(--tp-s7); text-align: center; }
.home-canvas { display: none; }
.home-kicker { margin-bottom: var(--tp-s6); }
.home-menu ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--tp-s4) var(--tp-s8); }
.home-link { display: inline-block; font: 600 clamp(3.25rem, 2rem + 6vw, 8.5rem)/1 var(--tp-font); letter-spacing: -0.02em; color: var(--tp-ink); text-decoration: none; padding: 4px 8px; border-radius: var(--tp-radius); }
.home-link:hover { color: var(--tp-glacier); }
.home-link:focus-visible { outline: 2px solid var(--tp-glacier); outline-offset: 6px; }
.home-static { display: block; width: min(100%, 960px); height: auto; margin: var(--tp-s7) auto 0; }
.ps-ridge { fill: none; stroke: var(--tp-ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ps-contour { fill: none; stroke: var(--tp-rule-strong); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: calc(1 - var(--k) * 0.14); }
.ps-node { fill: var(--tp-paper); stroke: var(--tp-ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.home-hint, .home-pause { display: none; }

/* Motion mode (home.js adds .is-motion) */
.home-scroll.is-motion { height: 290vh; height: 290svh; }
.is-motion .home-sticky { position: sticky; top: var(--tp-hdr, 0px); height: calc(100vh - var(--tp-hdr, 0px)); height: calc(100svh - var(--tp-hdr, 0px)); padding: 0; overflow: hidden; text-align: left; }
.is-motion .home-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.is-motion .home-static { display: none; }
.is-motion .home-kicker { position: absolute; left: max(var(--tp-margin), calc((100% - var(--tp-max)) / 2)); top: var(--tp-s5); margin: 0; z-index: 2; opacity: calc(1 - var(--p, 0) * 1.4); }
.is-motion .home-menu ul { display: block; }
.is-motion .home-link { position: absolute; z-index: 3; transform: translate(-50%, -50%); padding: 0.08em 0.2em; line-height: 1;
  color: rgba(13, 27, 42, var(--text-a, 0)); background: transparent; transition: background-color var(--tp-dur, 200ms) ease, box-shadow 200ms ease; white-space: nowrap; }
.is-motion .home-link:hover { color: rgba(47, 102, 144, var(--text-a, 0)); }
.is-motion .home-link.at-peaks { padding: 8px 10px; }
.is-motion .home-link:focus-visible { outline: 2px solid var(--tp-glacier); outline-offset: 4px; }
.is-motion .home-hint { display: block; position: absolute; left: 50%; bottom: var(--tp-s6); transform: translateX(-50%); margin: 0; z-index: 2;
  font: 600 0.6875rem/1 var(--tp-font-cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-slate); opacity: calc(1 - var(--p, 0) * 4); }
.is-motion .home-hint span::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: var(--tp-rule-strong); }
.is-motion .home-pause { display: inline-flex; position: absolute; right: var(--tp-margin); bottom: var(--tp-s5); z-index: 4; gap: 6px; }
.is-motion .home-pause[hidden] { display: none; }
.home-pause .icon { width: 16px; height: 16px; }
/* v1.4: faded by home.js on the transition clock (--leave, 1 -> 0 over 380 ms), not by a CSS transition */
.is-motion.is-leaving .home-link, .is-motion.is-leaving .home-kicker, .is-motion.is-leaving .home-hint, .is-motion.is-leaving .home-pause { opacity: var(--leave, 0); pointer-events: none; }
.home-intro { padding: var(--tp-s8) 0; }
@media (max-width: 640px) {
  .home-link { font-size: 3.25rem; }
  .home-menu ul { flex-direction: column; align-items: center; gap: var(--tp-s3); }
  .is-motion .home-link { min-width: 44px; min-height: 44px; }
  .is-motion .home-pause { left: var(--tp-margin); right: auto; }
  .is-motion .home-hint { bottom: var(--tp-s7); }
}

/* ===== v1.4 additions ===================================================== */
/* Möbius page transition overlay (transition.js): below the sticky header, so the header stays put while the
   strip builds on the leaving page and dissolves on the arriving page. */
:root { --tp-hdr: 73px; }
@media (max-width: 640px) { :root { --tp-hdr: 113px; } }
#tp-mobius { position: fixed; left: 0; top: var(--tp-hdr); width: 100%; height: calc(100% - var(--tp-hdr)); z-index: 40; pointer-events: none; }
/* Arriving after a transition: hide the page body (not the header) until the overlay's first frame; a CSS safety
   net reveals it after 1.6 s even if the script fails. */
html.tp-settling body > :not(.site-header):not(#tp-mobius):not(script) { opacity: 0; animation: tp-reveal 0s 1.6s forwards; }
/* The boot script paints a snapshot of the leaving page's last Möbius frame on the root background, so the strip is
   on screen from the very first paint of the new page (no blank frame before transition.js runs). */
html.tp-settling body { background: transparent; }
html.tp-settling { background-color: var(--tp-paper); }
@keyframes tp-reveal { to { opacity: 1; } }
html.tp-leaving body { cursor: progress; }
@media (prefers-reduced-motion: reduce) { #tp-mobius { display: none; } html.tp-settling body > * { opacity: 1 !important; animation: none !important; } }


/* ===== site.css ===== */
/* website-v2 page layouts (components live in ../system/v1/components.css) */
.hero { padding: var(--tp-s9) 0 var(--tp-s8); position: relative; overflow: hidden; }
.hero-mark { color: var(--tp-ink); margin-bottom: var(--tp-s7); }
.hero-mark svg { width: min(560px, 100%); height: auto; display: block; }
.hero-title { max-width: 21ch; margin: var(--tp-s4) 0 var(--tp-s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--tp-s3); margin-top: var(--tp-s6); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--tp-s2) var(--tp-s5); margin-bottom: var(--tp-s6); }
.section-head .kicker { flex-basis: 100%; }
.section-head .link-arrow { margin-left: auto; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 600 0.9375rem/1 var(--tp-font); color: var(--tp-ink); text-decoration: none; }
.link-arrow:hover { color: var(--tp-glacier-deep); }
.link-arrow .icon { width: 18px; height: 18px; }
.feature { align-items: start; }
.feature-body { display: grid; gap: var(--tp-s4); align-content: start; }
.feature .note-cover svg { width: 78%; }
.portrait { aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--tp-ink-2); }
.contact-rows { display: grid; }
.contact-row { display: grid; grid-template-columns: 24px 160px 1fr; gap: var(--tp-s4); align-items: center; padding: var(--tp-s4) 0; border-bottom: var(--tp-hair); }
.contact-row:first-child { border-top: 1px solid var(--tp-ink); }
@media (max-width: 560px) { .contact-row { grid-template-columns: 24px 1fr; } .contact-row > :last-child { grid-column: 2; } }
.teaser { background: var(--tp-paper); }
.page-head { padding: var(--tp-s8) 0 var(--tp-s7); border-bottom: var(--tp-hair); }
.filters .tag { display: inline-block; margin: 0 4px 8px 0; }
.tag.is-on { background: var(--tp-ink); color: var(--tp-paper); border-color: var(--tp-ink); }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--tp-s5); align-items: start; padding: var(--tp-s5) 0; border-top: var(--tp-hair); }
.note-row:first-child { border-top: 1px solid var(--tp-ink); }
.note-row-body { display: grid; gap: var(--tp-s3); }
.note-cover.sm svg { width: 86%; }
.note-row h2 a { color: var(--tp-ink); text-decoration: none; }
.note-read { padding-top: 2px; }
@media (max-width: 640px) { .note-row { grid-template-columns: 72px minmax(0, 1fr); } .note-read { grid-column: 2; } }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--tp-s8); }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; gap: var(--tp-s7); } }
.builder-col { min-width: 0; }
.step { font: 600 0.75rem/1 var(--tp-font-cond); width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--tp-ink); border-radius: 50%; margin-bottom: var(--tp-s4); }
.ticker-search { display: flex; align-items: center; gap: var(--tp-s2); border: 1px solid var(--tp-rule-strong); border-radius: var(--tp-radius); padding: 0 var(--tp-s3); }
.ticker-search .input { border: 0; padding-left: 0; min-height: 42px; }
.ticker-search .input:focus { outline: none; box-shadow: none; }
.ticker-search:focus-within { border-color: var(--tp-glacier); box-shadow: 0 0 0 1px var(--tp-glacier); }
.ticker-search .icon { color: var(--tp-slate); width: 20px; height: 20px; flex: none; }
.result { background: var(--tp-paper); }
.result-head .t-display { overflow-wrap: anywhere; }
.result-grid { margin-top: var(--tp-s6); row-gap: var(--tp-s7); }
.disclaimer .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.hero-mark path { stroke-width: 2px; }
.figure .illu, .chart-head .illu { justify-self: start; }
@media (max-width: 560px) { table.data .col-sub { display: none; } }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list a { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--tp-s3); padding: 10px 0; border-bottom: var(--tp-hair); color: var(--tp-ink); text-decoration: none; }
.mini-list a:hover { background: var(--tp-mist); }
.picker-list { list-style: none; padding: 0; margin-top: 24px; } .picker-list li { padding: 10px 0; border-bottom: var(--tp-hair); }
/* ---- website-v3 layouts ---- */
.crumb { margin-bottom: var(--tp-s4); color: var(--tp-slate); }
.quote-head { padding: var(--tp-s7) 0 var(--tp-s6); border-bottom: var(--tp-hair); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--tp-s7); align-items: end; }
.quote-box .chart-head { margin-bottom: var(--tp-s2); }
.quote-label { font-weight: 600; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--tp-s7); align-items: start; }
.profile-main { display: grid; gap: var(--tp-s7); min-width: 0; }
.profile-side { display: grid; gap: var(--tp-s6); min-width: 0; }
.side-block h2 { margin-bottom: var(--tp-s3); }
.side-block .mini-list a { grid-template-columns: 52px minmax(0, 1fr); }
.side-block .mini-list .exch { display: none; }
@media (max-width: 900px) { .quote-grid, .profile-grid { grid-template-columns: 1fr; gap: var(--tp-s5); } }
.co-link { color: var(--tp-ink); text-decoration: none; font-weight: 500; }
.co-link:hover { text-decoration: underline; }
table.constituents td.tick a { font-weight: 600; }
/* Blog article: numbered-note anatomy */
.note-head { padding: var(--tp-s8) 0 var(--tp-s7); border-bottom: 1px solid var(--tp-ink); }
.note-num-big { font: 600 clamp(4rem, 3rem + 6vw, 9rem)/0.9 var(--tp-font-cond); color: var(--tp-ice); letter-spacing: -0.02em; }
.note-head .note-byline { margin-top: var(--tp-s5); }
.note-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--tp-s8); padding-top: var(--tp-s7); padding-bottom: var(--tp-s8); }
.note-aside { position: sticky; top: var(--tp-s5); align-self: start; display: grid; gap: var(--tp-s5); }
.note-aside .note-cover svg { width: 70%; }
.toc a { color: var(--tp-ink); text-decoration: none; display: inline-flex; gap: 10px; }
.toc a:hover { color: var(--tp-glacier-deep); }
.note-head .kicker { margin-bottom: var(--tp-s4); }
.note-body { max-width: 68ch; display: grid; gap: var(--tp-s6); min-width: 0; }
.note-sec { display: grid; gap: var(--tp-s4); scroll-margin-top: 24px; }
.note-sec-n { font: 600 0.8125rem/1 var(--tp-font-cond); letter-spacing: 0.1em; color: var(--tp-glacier); border-top: 1px solid var(--tp-ink); padding-top: var(--tp-s3); }
.note-sources ol { padding-left: 1.2em; display: grid; gap: 6px; margin-top: var(--tp-s3); }
.note-next { display: flex; justify-content: space-between; border-top: var(--tp-hair); padding-top: var(--tp-s4); }
@media (max-width: 860px) { .note-layout { grid-template-columns: 1fr; gap: var(--tp-s6); } .note-aside { position: static; } .note-aside .note-cover { display: none; } .note-num-big { font-size: 4rem; } }

/* Logo primary-v3 lockup (viewBox 0 0 250.418 55.2). Height only; width follows the viewBox. Colours stay in the file (#000/#FFF). */
.site-header .header-lockup, .site-footer .header-lockup { display: block; height: 28px; width: auto; flex: none; }
.site-header .wordmark, .site-footer .wordmark { padding: 7px; } /* clear space: a quarter of the 28px badge */
/* Nav removal leftover: the 880px header-row wrap (min-height: 0; padding-top) was for a second nav row,
   which made the header top-heavy (59px) on small screens. Keep the single-row 72px header.
   The 113px --tp-hdr fallback was for that two-row header; JS still measures the real height. */
@media (max-width: 880px) { .header-row { flex-wrap: nowrap; min-height: 72px; padding-top: 0; } }
@media (max-width: 640px) { :root { --tp-hdr: 73px; } .is-motion .home-pause { min-height: 44px; } }
