/* Longhand — site styles.
   Words are set in the serif, numbers in the sans.
   One deep blue block for the lead, one yellow for the figure that matters;
   everything else sits on the page with hairlines. Light and dark themes. */

:root {
  --bg: #ffffff;
  --tint: #f4f5f7;
  --text: #14161a;
  --muted: #5d636e;
  --rule: #14161a;
  --hair: #dcdfe5;
  --brand: #17358f;
  --brand-ink: #ffffff;
  --brand-soft: #c3cff5;
  --brand-panel: rgba(255, 255, 255, 0.09);
  --link: #17358f;
  --sun: #ffcf40;
  --sun-ink: #221a00;
  --up: #0b7a4b;
  --down: #c0281e;
  --bar: #cfd5e2;
  --bar-hl: #17358f;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --wrap: 77.5rem;
  --gutter: clamp(1rem, 4vw, 1.75rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418; --tint: #191d24; --text: #ecebe6; --muted: #a0a6b2; --rule: #ecebe6; --hair: #2a2f39;
    --brand: #1f3fae; --link: #9db5ff; --up: #4fd19a; --down: #ff8a80; --bar: #363c49; --bar-hl: #ffcf40;
  }
}
:root[data-theme="dark"] {
  --bg: #111418; --tint: #191d24; --text: #ecebe6; --muted: #a0a6b2; --rule: #ecebe6; --hair: #2a2f39;
  --brand: #1f3fae; --link: #9db5ff; --up: #4fd19a; --down: #ff8a80; --bar: #363c49; --bar-hl: #ffcf40;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.5 var(--sans); font-kerning: normal; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.up { color: var(--up); }
.down { color: var(--down); }

.skip { position: absolute; left: -999rem; top: 0; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- Masthead ---------- */

.mast-row { display: flex; align-items: flex-end; gap: 0.75rem 2.25rem; padding-block: 1.5rem 1rem; }
.logo {
  display: inline-flex; align-items: stretch; flex: none;
  border-top: 3px solid currentColor; padding-right: 0.11em;
  font: 700 2.75rem/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -0.02em;
}
.logo svg { flex: none; height: 1.14em; width: 0.3em; margin-top: -3px; overflow: visible; }
.logo span { padding: 0.08em 0 0 0.1em; }

.nav ul { display: flex; gap: 0.25rem 1.6rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 0 0.4rem; }
.nav a { display: block; padding-bottom: 0.3rem; font-weight: 600; font-size: 0.91rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--hair); }
.nav a[aria-current="page"] { border-bottom-color: var(--bar-hl); }
.mast-right { margin-left: auto; display: flex; align-items: center; gap: 0.9rem; padding-bottom: 0.4rem; font-size: 0.81rem; color: var(--muted); white-space: nowrap; }
.toggle {
  font: 600 0.78rem/1 var(--sans); background: transparent; color: var(--text);
  border: 1px solid var(--hair); border-radius: 4px; padding: 0.45rem 0.7rem; cursor: pointer;
}
.toggle:hover { border-color: var(--text); }

.markets {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 3px double var(--rule);
  font-variant-numeric: tabular-nums lining-nums; margin: 0;
}
.markets > div { padding: 0.7rem 1rem; font-size: 0.78rem; color: var(--muted); min-width: 0; }
.markets > div + div { border-left: 1px solid var(--hair); }
.markets > div:first-child { padding-left: 0; }
.markets dt { white-space: nowrap; }
.markets dd { margin: 0; }
.markets .fig { font-size: 1.06rem; font-weight: 700; color: var(--text); margin-top: 1px; white-space: nowrap; }
.markets .chg { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.markets-date { font-size: 0.75rem; color: var(--muted); padding-top: 0.45rem; }

/* ---------- Shared pieces ---------- */

.tag { display: inline-block; font: 700 0.75rem/1 var(--sans); color: var(--link); }
a.tag:hover { text-decoration: underline; }
.byline { display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; font-size: 0.81rem; color: var(--muted); }
.byline strong { color: var(--text); font-weight: 600; }
.btn { display: inline-block; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 0.91rem; padding: 0.75rem 1.1rem; border-radius: 5px; }
.btn:hover { filter: brightness(0.96); }
mark { background: var(--sun); color: var(--sun-ink); padding: 1px 0.4em; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 2.5rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--rule); }
.section-head h2 { font: 700 0.875rem/1 var(--sans); }
.section-head a { font-weight: 600; font-size: 0.84rem; color: var(--link); }

/* The working: every story's arithmetic */
.working {
  margin: 0; background: var(--tint); border-radius: 8px; padding: 1rem 1.15rem 0.9rem;
  font: 400 0.94rem/1.4 var(--sans); font-variant-numeric: tabular-nums lining-nums;
}
.working figcaption { font-weight: 700; padding-bottom: 0.6rem; border-bottom: 2px solid var(--rule); }
.working dl { margin: 0; }
.working dl > div { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--hair); }
.working dd { margin: 0; text-align: right; white-space: nowrap; font-weight: 600; }
.working .neg dd { color: var(--down); }
.working .total { border-bottom: 0; padding-bottom: 0.15rem; }
.working .total dt { font-weight: 700; }
.working .total dd { font-weight: 800; }
.working .total mark { padding: 2px 0.5em; }
.working-note { font-size: 0.8rem; color: var(--muted); line-height: 1.45; margin-top: 0.55rem; }

/* Charts */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 5.25rem; }
.bars i { flex: 1; background: var(--bar); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars i.hl { background: var(--bar-hl); }
.viz { background: var(--tint); border-radius: 8px; padding: 0.9rem 0.9rem 0.7rem; }
.viz .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-top: 0.65rem; font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.viz .cap b { font: 800 1.35rem/1 var(--sans); letter-spacing: -0.02em; color: var(--text); white-space: nowrap; font-variant-numeric: lining-nums; }
.viz .cap b.down { color: var(--down); }
.keyfig { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin: 0.7rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.keyfig dd { margin: 0; font: 800 1.2rem/1 var(--sans); letter-spacing: -0.02em; color: var(--text); white-space: nowrap; font-variant-numeric: lining-nums; }

.plot .t { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.84rem; font-weight: 600; margin-bottom: 0.4rem; }
.plot .t span { font-weight: 400; color: var(--muted); }
.plot svg { width: 100%; height: auto; display: block; }
.plot .grid-line { stroke: var(--hair); }
.plot .s-main { stroke: var(--bar-hl); }
.plot .s-2 { stroke: var(--muted); }
.plot .s-3 { stroke: var(--bar); }
.plot .l-main { fill: var(--link); }
.plot .l-2, .plot .l-3 { fill: var(--muted); }
.plot .dot { fill: var(--bar-hl); }
.plot .axis { fill: var(--muted); }

/* ---------- Home: hero ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.4rem; padding-top: 1.5rem; }
.lead { background: var(--brand); color: var(--brand-ink); border-radius: 10px; padding: clamp(1.4rem, 3vw, 2rem) clamp(1.25rem, 3.2vw, 2.25rem) clamp(1.25rem, 2.6vw, 1.75rem); }
.lead .tag { color: var(--sun); }
.lead h1 { font: 600 clamp(2rem, 1.1rem + 2.9vw, 3.25rem)/1.04 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -0.022em; margin: 0.75rem 0 0.85rem; max-width: 17em; }
.lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
.lead .dek { font: italic 400 clamp(1.1rem, 1rem + 0.5vw, 1.28rem)/1.4 var(--serif); color: var(--brand-soft); max-width: 34em; }
.lead .row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem; margin-top: 1.25rem; font-size: 0.81rem; color: var(--brand-soft); }
.lead .plot, .lead .working { background: var(--brand-panel); border-radius: 8px; padding: 1rem 1.15rem 0.65rem; margin-top: 1.5rem; color: var(--brand-ink); }
.lead .plot .t span { color: var(--brand-soft); }
.lead .plot .grid-line { stroke: rgba(255, 255, 255, 0.16); }
.lead .plot .s-main { stroke: var(--sun); }
.lead .plot .s-2 { stroke: rgba(255, 255, 255, 0.75); }
.lead .plot .s-3 { stroke: rgba(255, 255, 255, 0.4); }
.lead .plot .l-main, .lead .plot .dot { fill: var(--sun); }
.lead .plot .l-2 { fill: rgba(255, 255, 255, 0.85); }
.lead .plot .l-3 { fill: rgba(255, 255, 255, 0.6); }
.lead .plot .axis { fill: rgba(255, 255, 255, 0.55); }
.lead .working figcaption { border-bottom-color: rgba(255, 255, 255, 0.5); }
.lead .working dl > div { border-bottom-color: rgba(255, 255, 255, 0.16); }
.lead .working .neg dd { color: #ffb0a8; }
.lead .working-note { color: var(--brand-soft); }

.stack { display: grid; gap: 1.4rem; grid-template-rows: 1fr 1fr; }
.tile { border-radius: 10px; padding: 1.5rem 1.6rem 1.4rem; display: flex; flex-direction: column; min-height: 15rem; }
.tile.sun { background: var(--sun); color: var(--sun-ink); }
.tile.sun .tag, .tile.sun .lab { color: var(--sun-ink); }
.tile.plain { border: 1px solid var(--hair); }
.tile .big { font: 800 clamp(3rem, 2rem + 3.2vw, 4.5rem)/0.95 var(--sans); letter-spacing: -0.045em; margin: 0.75rem 0 0.35rem; font-variant-numeric: lining-nums; white-space: nowrap; }
.tile .lab { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.tile h2 { font: 600 1.4rem/1.16 var(--serif); letter-spacing: -0.01em; margin-top: auto; padding-top: 1.1rem; }
.tile:hover h2 { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }

/* ---------- Home: cards, list, picks ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 1.4rem; }
.card { padding: 0 1.5rem; display: flex; flex-direction: column; min-width: 0; }
.card:first-child { padding-left: 0; }
.card:last-child { padding-right: 0; }
.card + .card { border-left: 1px solid var(--hair); }
.card h3 { font: 600 1.42rem/1.15 var(--serif); letter-spacing: -0.01em; margin: 0.5rem 0 1rem; }
.card h3 a:hover, .item h3 a:hover, .row h2 a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.card .summary { font-size: 0.91rem; color: var(--muted); margin: -0.4rem 0 1rem; }
.card .viz, .card .keyfig { margin-top: auto; }
.card .keyfig { padding-top: 0.7rem; border-top: 1px solid var(--hair); }

.lower { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); margin-top: 2.1rem; border-top: 3px double var(--rule); padding-top: 1.4rem; }
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.75rem; padding-right: 2rem; align-content: start; }
.item { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--hair); min-width: 0; }
.item h3 { font: 600 1.3rem/1.17 var(--serif); letter-spacing: -0.008em; margin: 0.45rem 0 0.45rem; }
.item p { font-size: 0.91rem; color: var(--muted); line-height: 1.5; }
.picks { border-left: 1px solid var(--hair); padding-left: 1.75rem; }
.picks h2 { font: 700 0.875rem/1 var(--sans); padding-bottom: 0.6rem; border-bottom: 2px solid var(--rule); }
.five { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.five li { counter-increment: n; display: grid; grid-template-columns: 2.1rem 1fr; padding: 0.75rem 0; border-bottom: 1px solid var(--hair); font: 500 1.12rem/1.24 var(--serif); }
.five li::before { content: counter(n); font: 800 1.25rem/1.1 var(--sans); color: var(--link); }
.five a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }

.work { margin: 2.25rem 0 0; background: var(--tint); border-radius: 10px; padding: 1.75rem 2rem; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.5rem 2.5rem; align-items: center; }
.work h2 { font: 600 1.9rem/1.1 var(--serif); letter-spacing: -0.014em; margin: 0.5rem 0; }
.work p { color: var(--muted); font-size: 0.94rem; }
.work p a { color: var(--link); font-weight: 600; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0.85rem; align-items: center; }
.step { background: var(--bg); border: 1px solid var(--hair); border-radius: 8px; padding: 0.95rem 1.05rem; }
.step span { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.step b { display: block; font: 800 1.8rem/1.1 var(--sans); letter-spacing: -0.03em; margin-top: 0.35rem; font-variant-numeric: tabular-nums lining-nums; }
.step.res { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.step.res span { color: var(--sun-ink); opacity: 0.75; }
.op { font: 700 1.5rem/1 var(--sans); color: var(--muted); }

/* ---------- Section pages ---------- */

.section-top { padding-block: clamp(1.75rem, 4vw, 2.75rem) 0.25rem; }
.section-top h1 { font: 600 clamp(2.2rem, 1.4rem + 3vw, 3.4rem)/1.05 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -0.022em; }
.section-top p { margin-top: 0.7rem; max-width: 38rem; color: var(--muted); font: italic 400 1.2rem/1.4 var(--serif); }
.rows { margin-top: 1.5rem; border-top: 3px double var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem clamp(1.5rem, 5vw, 4rem); align-items: start; padding-block: 1.9rem; border-bottom: 1px solid var(--hair); }
.row h2 { font: 600 clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem)/1.13 var(--serif); letter-spacing: -0.012em; }
.row .summary { margin-top: 0.65rem; color: var(--muted); }
.row .byline { margin-top: 0.8rem; }

/* ---------- Article ---------- */

.article-head { padding-top: clamp(1.75rem, 4vw, 3rem); }
.article-head h1 { margin-top: 0.7rem; max-width: 21em; font: 600 clamp(2rem, 1.2rem + 3vw, 3.3rem)/1.06 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -0.022em; }
.article-head .dek { margin-top: 1rem; max-width: 40rem; font: italic 400 clamp(1.15rem, 1rem + 0.6vw, 1.4rem)/1.4 var(--serif); color: var(--muted); }
.article-head .byline { margin-top: 1.4rem; padding-block: 0.8rem; border-top: 1px solid var(--rule); border-bottom: 3px double var(--rule); }

.article-body { padding-block: 2rem 1rem; font: 400 1.25rem/1.6 var(--serif); display: flow-root; }
.article-body > * { max-width: 41rem; }
.article-body > p { margin-bottom: 1.2em; }
.article-body > h2 { font: 600 1.75rem/1.16 var(--serif); letter-spacing: -0.012em; margin: 1.9em 0 0.55em; }
.article-body > ul, .article-body > ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.article-body li { margin-bottom: 0.45em; }
.article-body a { color: var(--link); text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.16em; }
.article-body strong { font-weight: 600; }
.article-body > .working, .article-body > .plot { margin: 1.75rem 0 2rem; }
.article-body > .plot { font-family: var(--sans); background: var(--tint); border-radius: 8px; padding: 1rem 1.15rem 0.7rem; }
.article-body > .plot .note { font-size: 0.8rem; color: var(--muted); line-height: 1.45; margin-top: 0.4rem; }

.article-body blockquote { margin: 1.9rem 0 2rem; padding-left: 1.3rem; border-left: 4px solid var(--sun); }
.article-body blockquote p { font: italic 500 clamp(1.5rem, 1.25rem + 1vw, 1.95rem)/1.25 var(--serif); letter-spacing: -0.008em; }
.article-body blockquote footer { margin-top: 0.7rem; font: 400 0.84rem/1.4 var(--sans); color: var(--muted); }

.table-scroll { overflow-x: auto; margin: 1.75rem 0 2rem; }
.article-body table { width: 100%; border-collapse: collapse; font: 400 0.97rem/1.35 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.article-body caption { text-align: left; font-weight: 700; padding-bottom: 0.55rem; }
.article-body th, .article-body td { padding: 0.55rem 0.9rem 0.55rem 0; text-align: left; white-space: nowrap; }
.article-body th:last-child, .article-body td:last-child { padding-right: 0; }
.article-body thead th { font-weight: 600; font-size: 0.84rem; color: var(--muted); border-bottom: 2px solid var(--rule); }
.article-body tbody tr { border-bottom: 1px solid var(--hair); }
.article-body tbody th { font-weight: 700; }
.article-body .num { text-align: right; }

.sources { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 3px double var(--rule); font: 400 0.94rem/1.45 var(--sans); }
.sources h2 { font: 700 0.875rem/1.3 var(--sans); margin: 0 0 0.65rem; }
.sources ul { margin: 0; padding-left: 1.1em; }
.sources li { margin-bottom: 0.4em; }
.fineprint { margin-top: 1.5rem; padding: 0.95rem 1.1rem; background: var(--tint); border-radius: 8px; font: 400 0.86rem/1.5 var(--sans); }

@media (min-width: 76rem) {
  .article-body > .working { float: right; clear: right; width: 24rem; margin: 0.4rem 0 1.75rem 3rem; }
}

.more { padding-bottom: 0.5rem; }
.page-body h2 { font-size: 1.5rem; }

/* Brand sheet */
.brand-logos { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.5rem 0 2.5rem; max-width: none; }
.brand-logos > div { padding: 1.75rem 2.25rem; display: flex; align-items: center; border-radius: 10px; border: 1px solid var(--hair); }
.brand-logos .logo { font-size: 3rem; }
.brand-logos .on-brand { background: #17358f; color: #fff; border-color: #17358f; }
.brand-logos .on-dark { background: #111418; color: #ecebe6; border-color: #111418; }
.brand-logos .on-sun { background: #ffcf40; color: #221a00; border-color: #ffcf40; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; margin: 1.25rem 0 2.5rem; max-width: none; font: 400 0.88rem/1.4 var(--sans); }
.swatches b { display: block; height: 5rem; border: 1px solid var(--hair); border-radius: 8px; margin-bottom: 0.5rem; }
.type-sample { font: 600 2.6rem/1.06 var(--serif); letter-spacing: -0.022em; margin: 1rem 0; }
.type-sample-num { font: 800 3.5rem/1 var(--sans); letter-spacing: -0.045em; margin: 0.5rem 0 1rem; }

/* ---------- Footer ---------- */

.foot { margin-top: 3.5rem; border-top: 3px double var(--rule); padding-block: 2.5rem 2rem; font-size: 0.91rem; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2.5rem; }
.foot .logo { font-size: 1.9rem; border-top-width: 2px; }
.foot .logo svg { margin-top: -2px; }
.foot-about { margin-top: 1rem; max-width: 27rem; color: var(--muted); }
.foot h2 { font: 700 0.84rem/1.3 var(--sans); margin-bottom: 0.65rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.38rem; }
.foot a:hover { text-decoration: underline; }
.foot-legal { margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid var(--hair); font-size: 0.8rem; line-height: 1.5; color: var(--muted); max-width: 60rem; }
.foot-legal p + p { margin-top: 0.55rem; }

/* ---------- Smaller screens ---------- */

@media (max-width: 64rem) {
  .mast-right time { display: none; }
  .hero, .lower { grid-template-columns: minmax(0, 1fr); }
  .stack { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list { padding-right: 0; }
  .picks { border-left: 0; padding-left: 0; margin-top: 0.75rem; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 46rem) {
  .mast-row { flex-wrap: wrap; align-items: center; padding-block: 1rem 0.5rem; gap: 0.6rem 1rem; }
  .logo { font-size: 2.1rem; }
  .mast-right { padding-bottom: 0; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { flex-wrap: nowrap; gap: 1.3rem; padding: 0.2rem var(--gutter) 0.5rem; width: max-content; }

  .markets-wrap { overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .markets-wrap::-webkit-scrollbar { display: none; }
  .markets { grid-template-columns: repeat(6, max-content); width: max-content; min-width: 100%; }
  .markets > div { padding-inline: 0.9rem; }

  .stack, .cards, .list, .row { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
  .cards { gap: 1.6rem; }
  .card { padding: 0; }
  .card + .card { border-left: 0; border-top: 1px solid var(--hair); padding-top: 1.4rem; }
  .work { padding: 1.4rem 1.25rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .op { text-align: center; }
  .article-body { font-size: 1.16rem; }
  .article-body table { font-size: 0.9rem; }
  .article-body thead th { white-space: normal; vertical-align: bottom; }
  .article-body th, .article-body td { padding-right: 0.6rem; }
  .article-body tbody th, .article-body td:not(.num) { white-space: normal; }
  .foot-cols { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media print {
  .nav, .mast-right, .markets-wrap, .more, .foot { display: none; }
  body { background: #fff; color: #000; }
}

/* YouTube-style preview card (Eden article) */
.ytcard { display: block; margin: 1.7rem 0; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; background: var(--bg); }
.ytthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b0b0b; }
.ytthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytdur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .85); color: #fff; font: 700 0.78rem/1 var(--sans); padding: 3px 5px; border-radius: 4px; letter-spacing: .02em; }
.ytplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; min-width: 68px; background: rgba(12, 12, 12, .72); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.ytcard:hover .ytplay { background: #c00; }
.ytbody { display: block; padding: .85rem 1rem 1rem; }
.yttitle { display: block; font: 600 1.02rem/1.4 var(--sans); color: var(--text); }
.ytchan { display: flex; align-items: center; gap: .45rem; margin-top: .5rem; font: 400 0.85rem/1.3 var(--sans); color: var(--muted); flex-wrap: wrap; }
.ytav { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: #0b0b0b; border: 1px solid var(--hair); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ytverify { display: inline-flex; align-items: center; }

/* in-article beta CTA panel */
.lhcta { background: var(--tint); border: 1px solid var(--hair); border-radius: 10px; padding: 1.15rem 1.25rem; margin: 1.7rem 0; }
.lhcta strong { font: 700 1.05rem/1.4 var(--sans); display: block; }
.lhsteps { margin: .7rem 0 0; padding-left: 1.15rem; font: 400 0.95rem/1.6 var(--sans); color: var(--text); }
.lhcta .btn { display: inline-block; margin-top: .9rem; }
.lhcta small { display: block; margin-top: .65rem; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
