:root {
  color-scheme: dark;
  --ink: #f4f8ff;
  --muted: #bdd1ea;
  --line: #30527b;
  --navy: #08172f;
  --surface: #0d223e;
  --tile: #102c51;
  --active: #1b416e;
  --sky: #9ed6ff;
  --link: var(--sky);
  --accent: #4c99ff;
  --rise: #70e4b2;
  --fall: #ff9cae;
  font: 100%/1.5 Arial, Helvetica, sans-serif;
  background: var(--navy);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .wordmark { font-weight: 900; line-height: 1.04; letter-spacing: -.045em; }
.wrap { width: min(91%, 84.625rem); margin-inline: auto; }
.skip { position: absolute; inset: .5rem auto auto .5rem; padding: .5rem; background: var(--sky); color: var(--navy); transform: translateY(-180%); z-index: 1; }
.skip:focus { transform: none; }
.skip:hover { color: var(--navy); }
.brand-shell { background: var(--surface); border-bottom: 2px solid var(--accent); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.75rem; gap: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; font-size: clamp(1.35rem, 2.5vw, 2.05rem); }
.wordmark img { flex: none; inline-size: 3.1rem; block-size: 3.1rem; }
.brand-shell a:hover, .brand-shell .social { color: var(--sky); }
.brand-shell a:focus-visible { outline-color: var(--sky); }
.masthead nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(.7rem, 2.8vw, 2.6rem); font-size: 1.2rem; font-weight: 800; }
.masthead nav [aria-current] { color: var(--sky); text-decoration: underline; text-underline-offset: .4em; }
.social, .read, .back, .sources a, .not-found a { color: var(--link); font-weight: 700; }
.social { justify-self: end; font-size: 1.15rem; }
.read, .sources a, .not-found a { text-decoration: underline; text-underline-offset: .15em; }
.market { margin-top: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; scroll-margin-top: 1rem; }
.market-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; padding: .8rem 1rem; background: var(--tile); border-radius: .5rem .5rem 0 0; }
.market-head h2 { font-size: 1.4rem; }
.market-head p, .market-freshness { font-size: .875rem; color: var(--muted); }
.market-head p a { text-decoration: underline; text-underline-offset: .15em; }
.market-freshness { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.market-freshness time:not(:empty) { margin-inline-start: .25rem; font-weight: 700; }
.market-more { color: var(--link); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.market-quotes { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.market-quotes button { font: inherit; color: var(--ink); text-align: left; background: transparent; border: 0; padding: .65rem 1rem; line-height: 1.25; cursor: pointer; }
.market-quotes button + button { border-inline-start: 1px solid var(--line); }
.market-quotes button[aria-expanded="true"], .market-quotes button:not(:disabled):hover { background: var(--active); }
.market-quotes button:focus-visible { outline: 2px solid var(--link); outline-offset: -3px; }
.market-quotes button:disabled { cursor: default; }
.market-quotes strong, .market-quotes span { display: block; }
.market-quotes strong { font-size: .88rem; }
.market-quotes [data-price] { margin-top: .22rem; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.08rem; }
.market-quotes [data-change] { margin-top: .16rem; font-size: .86rem; font-variant-numeric: tabular-nums; }
.market-quotes [data-direction="1"] { color: var(--rise); }
.market-quotes [data-direction="-1"] { color: var(--fall); }
.market-detail { border-top: 1px solid var(--line); background: var(--tile); padding: .8rem 1rem .72rem; border-radius: 0 0 .5rem .5rem; }
.range-title, .range-values { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.range-title span, .range-values { font-size: .875rem; color: var(--muted); }
.range-line { position: relative; margin: .7rem .4rem .65rem; height: .32rem; border-radius: 1rem; background: #557eab; }
.range-line::after { content: ""; position: absolute; top: 50%; left: var(--position,50%); width: .85rem; height: .85rem; border-radius: 50%; background: var(--link); transform: translate(-50%,-50%); }
.range-values strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.range-values :last-child { text-align: right; }
.market noscript { display: block; padding: .5rem 1rem; }
.section-head { padding: 1.3rem 0 1.4rem; }
.section-head h1 { font-size: clamp(2.55rem, 4.35vw, 3.85rem); }
.section-head p { margin-top: .25rem; font-size: clamp(1.06rem, 1.7vw, 1.5rem); line-height: 1.35; color: var(--muted); }
.edition { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(0, 1fr); gap: 1.65rem; }
.lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.crop { display: block; overflow: hidden; border-radius: .45rem; }
.crop img { height: 100%; object-fit: cover; object-position: center var(--focus, 42%); }
.lead-art { aspect-ratio: 1.2; }
.lead-copy { padding-top: .42rem; }
.lead-copy h2 { font-size: clamp(2.15rem, 4.25vw, 3.9rem); }
.lead-copy p { margin: .75rem 0 1.55rem; font-size: clamp(1rem, 1.55vw, 1.43rem); line-height: 1.43; color: var(--muted); }
.lead-copy .read { font-size: clamp(1rem, 1.8vw, 1.55rem); }
.rail { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.rail h2 { font-size: clamp(1.55rem, 2.25vw, 2rem); margin-bottom: .7rem; }
.rail-story { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 1rem; align-items: center; font-size: clamp(1rem, 1.7vw, 1.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.13; padding: .55rem 0; }
.rail-story:first-of-type { padding-top: 0; }
.rail-story + .rail-story { border-top: 1px solid var(--line); }
.rail-story .crop { aspect-ratio: 1.49; }
.archive { border-top: 1px solid var(--line); margin-top: 1.7rem; padding: 1.15rem 0 1.6rem; scroll-margin-top: 1rem; }
.archive h2 { font-size: clamp(2rem, 3.55vw, 3rem); margin-bottom: 1rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.archive h3 { font-size: clamp(1.15rem, 1.85vw, 1.6rem); margin-top: .2rem; }
.archive article p { color: var(--muted); margin-top: .4rem; font-size: .98rem; }
.archive-art { aspect-ratio: 2.2; }
.archive-page .archive:first-of-type { margin-top: 0; }
.section-links { display: flex; flex-wrap: wrap; gap: .15rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: .95rem; }
.section-links h2 { margin-bottom: 0; }
.series-panel { background: var(--surface); margin-top: 1.8rem; border-radius: .8rem;
  padding: clamp(1rem, 3.1vw, 2.6rem); box-shadow: inset 0 3px var(--accent); }
.series-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.4rem; }
.series-head .eyebrow { color: var(--sky); letter-spacing: .135em; font-weight: 800; font-size: .75rem; margin: 0 0 .5rem; }
.series-head h1, .series-head h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.series-head p { color: var(--muted); max-width: 40rem; margin-top: .65rem; }
.series-button { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; border-radius: .35rem; padding: .5rem .85rem;
  color: var(--navy); background: var(--sky); font-weight: 800; }
.series-button:hover { color: var(--navy); background: #c8e9ff; }
.lesson-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lesson-card { height: 100%; display: flex; flex-direction: column; border-radius: .5rem; background: var(--tile); border: 1px solid var(--line); overflow: hidden; }
.lesson-card:hover, .lesson-card:focus-visible { border-color: var(--sky); color: var(--sky); }
.lesson-art { aspect-ratio: 1.75; border-radius: 0; }
.lesson-label, .lesson-card strong, .lesson-deck { margin-inline: .85rem; }
.lesson-label { color: var(--sky); font-size: .75rem; font-weight: 800; margin-top: .75rem; letter-spacing: .065em; }
.lesson-label span { color: var(--muted); letter-spacing: 0; }
.lesson-card strong { margin-top: .25rem; font-size: clamp(1.22rem, 2.2vw, 1.73rem); letter-spacing: -.025em; line-height: 1.12; }
.lesson-deck { margin-top: .4rem; margin-bottom: .85rem; color: var(--muted); font-size: .95rem; }
.market-page { padding-bottom: 2rem; }
.market-page .market { margin-top: 0; }
.trend { margin-top: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; padding: clamp(.85rem, 2.4vw, 1.7rem); }
.trend-head { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; justify-content: space-between; margin-bottom: .8rem; }
.trend-head h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin-bottom: .28rem; }
.trend-head p, .trend-status, .trend figcaption, .plot-y, .plot-x { color: var(--muted); font-size: .88rem; }
.trend-head a { text-decoration: underline; text-underline-offset: .15em; }
.pair-select { display: flex; flex-wrap: wrap; gap: .35rem; }
.pair-select button { min-width: 44px; min-height: 44px; padding: .4rem .7rem; background: var(--tile); color: var(--ink); border: 1px solid var(--line); border-radius: .35rem; font: inherit; font-weight: 700; cursor: pointer; }
.pair-select button[aria-pressed="true"] { background: var(--sky); color: var(--navy); }
.pair-select button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.trend-status:empty { display: none; }
.trend figcaption { margin-bottom: .75rem; font-weight: 700; }
.plot { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: stretch; gap: .55rem; }
.plot-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-variant-numeric: tabular-nums; }
.plot svg { width: 100%; height: clamp(8rem, 23vw, 15rem); overflow: visible; }
.plot-grid, .plot-line { fill: none; vector-effect: non-scaling-stroke; }
.plot-grid { stroke: var(--line); shape-rendering: crispEdges; }
.plot-line { stroke: var(--link); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.plot-x { display: flex; justify-content: space-between; gap: .5rem; margin-top: .45rem; }
.date { display: block; margin-top: .42rem; color: var(--muted); font-size: .94rem; }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: .8rem 0 1.1rem; }
.footer .wordmark { font-size: 1.5rem; }
.footer .wordmark img { inline-size: 2rem; block-size: 2rem; }
.article-page { max-width: 74rem; margin-inline: auto; }
body:has(.article-page) .wrap { max-width: 74rem; }
.story-head { margin: 1.1rem 0 1.6rem; }
.back { display: inline-block; font-size: 1rem; margin-bottom: 1.1rem; }
.story-nav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.archive-note { color: var(--muted); margin-top: .85rem; font-size: .92rem; }
.story-head time { display: block; color: var(--muted); font-size: 1rem; }
.story-head h1 { font-size: clamp(2.65rem, 5.55vw, 4.5rem); margin: .45rem 0 .65rem; }
.standfirst { font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.3; max-width: 59rem; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.25vw, 3rem); align-items: start; }
.prose { font: 1.19rem/1.65 Georgia, serif; }
.prose p + p { margin-top: .85em; }
.story-layout img { border-radius: .55rem; }
.sources { margin: 1.45rem 0; border-top: 1px solid var(--line); padding-top: .85rem; }
.sources h2 { font-size: 1.4rem; }
.sources ul { margin: .45rem 0 0; padding-left: 1.3rem; }
.sources li { margin-top: .18rem; overflow-wrap: anywhere; }
.not-found { padding: 4rem 0; min-height: 50vh; }
.not-found h1 { margin-bottom: 1rem; }
@media (max-width: 870px) {
  .edition { grid-template-columns: 1fr; }
  .rail { border-left: 0; padding: 1rem 0 0; border-top: 1px solid var(--line); }
  .rail-story { grid-template-columns: 7rem 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: auto; margin-inline: 1rem; }
  .masthead { grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .7rem 0 .6rem; }
  .masthead .social { grid-column: 2; grid-row: 1; }
  .masthead nav { grid-column: 1 / -1; font-size: 1rem; }
  .masthead .wordmark img { inline-size: 2.4rem; block-size: 2.4rem; }
  .masthead .social { font-size: 1rem; }
  .market { margin-top: 1rem; }
  .market-head { padding: .65rem .75rem; gap: .15rem .65rem; }
  .market-head h2 { font-size: 1.2rem; }
  .market-freshness { margin-inline-start: 0; width: 100%; }
  .market-quotes { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .market-quotes button { grid-column: span 2; padding: .45rem .65rem; }
  .market-quotes button:nth-child(4) { border-inline-start: 0; }
  .market-quotes button:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .market-quotes [data-price] { font-size: .93rem; }
  .lead, .archive-grid, .story-layout { grid-template-columns: 1fr; gap: 1.05rem; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-art { aspect-ratio: 1.95; }
  .archive-grid { gap: 1.4rem; }
  .lead-art { aspect-ratio: 1.22; }
  .lead-copy { padding: 0; }
  .lead-copy p { margin: .55rem 0 .75rem; }
  .story-layout figure { grid-row: 1; max-width: 30rem; }
  .prose { font-size: 1.12rem; }
}
@media (max-width: 350px) {
  .masthead nav { font-size: .94rem; }
}
