/* ════════════════════════════════════════════════════════════════════
   BUYTHE200 — "THE LINE"
   Avant-garde concept page · /the-line/

   Type system v2 (post-feedback):
     Display + body  Inter (opsz variable, weights 200–900)
     Italic accent   Instrument Serif (italic-only, scoped to em)
     Mono            JetBrains Mono (numbers, axis, technical)

   Why: Inter at extreme sizes, weight contrast, and negative space
   does the heavy lifting. The single editorial face — Instrument
   Serif italic — appears only on the accent words ("line",
   "200-week moving average", "time"). One serif moment per screen.

   Palette:
     Ink      #0A0A0A       (true black, paper-printed black)
     Bone     #F2EEE5       (warm bone, old-money paper)
     Bone-2   #E8E2D3
     Signal   #E25A1C       (CRT amber, the line)
     Smoke    #1A1A1A       (one step off black)
     Mute     #6B6358       (typographic gray, warm)

   Rule: one accent color, one display face, one italic face. Money
   rendered grayscale. The signal color is the only color.
   ════════════════════════════════════════════════════════════════════ */

/* Reset within scope ─ we do not inherit from main.css. */
.tl, .tl *, .tl *::before, .tl *::after {
  box-sizing: border-box;
}
.tl {
  margin: 0;
  padding: 0;
  --pg:     8vw;              /* horizontal page gutter — overridden at small viewports */
  --ink:    #0A0A0A;
  --bone:   #F2EEE5;
  --bone-2: #E8E2D3;
  --signal: #E25A1C;
  --signal-glow: rgba(226, 90, 28, 0.18);
  --smoke:  #1A1A1A;
  --mute:   #6B6358;
  --mute-2: #948A7C;

  --display: 'Inter', 'Inter Tight', system-ui, -apple-system, sans-serif;
  --sans:    'Inter', 'Inter Tight', system-ui, -apple-system, sans-serif;
  --serif:   'Instrument Serif', 'GT Sectra', Georgia, serif;
  --mono:    'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', monospace;

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
}

/* Body-level hooks: when this template renders, paint the body too,
   so the WP admin bar and any fringe elements blend, and there's no
   white flash on initial paint. */
body.bt200-line {
  background: var(--ink, #0A0A0A) !important;
  color: var(--bone, #F2EEE5);
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Universal paper-grain overlay — adds tactility no clean CSS can fake */
.tl::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  background-size: 200px 200px;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 1000;
}

.tl a { color: inherit; text-decoration: none; }
.tl em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-feature-settings: "ss01";
}
.tl ::selection { background: var(--signal); color: var(--bone); }

/* ── PIN (top-left logo, top-right escape) ───────────────────────── */
.tl-pin {
  position: fixed;
  top: 28px; left: 32px; right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}
.tl-pin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 0;
}
.tl-pin-logo {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);            /* render logo as pure bone */
  -webkit-filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.2s;
}
.tl-pin-brand:hover .tl-pin-logo { opacity: 1; }

/* On the bone-coloured Munger section, the pin needs to render dark */
.tl-pin.is-on-bone .tl-pin-logo {
  filter: none;
  -webkit-filter: none;
}
.tl-pin.is-on-bone { color: var(--ink); }
.tl-pin.is-on-bone .tl-pin-back { border-color: var(--ink); }
.tl-pin.is-on-bone .tl-pin-back:hover { background: var(--ink); color: var(--bone); }

.tl-pin-back {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  border: 1px solid currentColor;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  color: inherit;
}
.tl-pin-back:hover { background: var(--bone); color: var(--ink); }

.tl-pin-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 120px;
  transition: opacity 0.6s ease;
}
.tl-pin-nav .tl-pin-back {
  text-align: center;
}
.tl-pin.is-scrolled .tl-pin-nav {
  opacity: 0.18;
}
.tl-pin.is-scrolled .tl-pin-nav:hover {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════
   ACT I — HERO  ·  "There is a line."
   ════════════════════════════════════════════════════════════════════ */

.tl-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px var(--pg) 80px;
  background: var(--ink);
  overflow: hidden;
}
.tl-hero::after {
  /* faint radial glow behind the title */
  content: '';
  position: absolute;
  top: 35%; left: 40%;
  width: 60vw; height: 60vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}
.tl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}
.tl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 64px;
}
.tl-hero-eyebrow .tl-rule {
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.tl-hero-title {
  font-family: var(--display);
  font-weight: 500;                       /* extra-light Inter at huge sizes */
  font-style: normal;
  font-size: clamp(72px, 14vw, 232px);
  line-height: 0.92;
  letter-spacing: -0.05em;                /* tight */
  color: var(--bone);
  margin: 0 0 56px;
  font-feature-settings: "ss01", "ss02";
  font-variation-settings: "opsz" 32;
}
.tl-hero-title em {
  /* Instrument Serif italic, at the same display size — the single
     editorial moment in the headline */
  color: var(--signal);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.tl-hero-deck {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--bone-2);
  max-width: 720px;
  margin: 0;
  letter-spacing: -0.02em;
}
.tl-hero-deck em {
  color: var(--mute-2);
  font-weight: 400;
}
.tl-hero-scroll {
  position: absolute;
  bottom: 48px; right: var(--pg);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute-2);
  animation: tl-pulse 2.6s ease-in-out infinite;
}
.tl-hero-scroll-rule {
  width: 48px; height: 1px;
  background: var(--mute);
  position: relative;
  overflow: hidden;
}
.tl-hero-scroll-rule::after {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: var(--bone);
  animation: tl-scroll-line 2.6s ease-in-out infinite;
}
@keyframes tl-scroll-line {
  0%   { transform: translateX(0%);   }
  50%  { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}
@keyframes tl-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════════
   ACT II — THE 503  ·  the moment
   ════════════════════════════════════════════════════════════════════ */

.tl-503 {
  position: relative;
  background: var(--ink);
  padding: 8vh 0 14vh;
  border-top: 1px solid var(--smoke);
}
.tl-503-canvas-wrap {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 540px;
  overflow: hidden;
}
.tl-503-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.tl-503-axis {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: none;
  transform: translateY(-50%);
}
.tl-503-axis-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(242, 238, 229, 0.18) 30%, rgba(242, 238, 229, 0.18) 70%, transparent 100%);
}
.tl-503-axis-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute-2);
  white-space: nowrap;
}
.tl-503-readout {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--bone);
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid rgba(242, 238, 229, 0.16);
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.12s ease;
  backdrop-filter: blur(4px);
  z-index: 4;
}
.tl-503-readout.is-on { opacity: 1; }
.tl-503-readout-sym {
  color: var(--signal);
  font-weight: 500;
  margin-right: 10px;
}
.tl-503-readout-dist { color: var(--bone); }
.tl-503-cap {
  text-align: center;
  margin-top: 80px;
  padding: 0 var(--pg);
}
.tl-503-cap-1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--bone);
  margin: 0 0 24px;
}
.tl-503-cap-1 em { color: var(--signal); font-weight: 400; }
.tl-503-cap-2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--bone-2);
  margin: 0 0 40px;
  letter-spacing: -0.02em;
}
.tl-503-cap-num {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--signal);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
  margin: 0 4px;
}
.tl-503-cap-3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
   ACT III — THE QUOTE  ·  Munger
   ════════════════════════════════════════════════════════════════════ */

.tl-munger {
  background: var(--bone);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px var(--pg);
  overflow: hidden;
}
.tl-munger::before {
  /* paper texture only on the bone section */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(226, 90, 28, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(10, 10, 10, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.tl-munger-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.tl-munger-mark {
  /* Use Instrument Serif italic for the oversized opening quotemark —
     the one editorial moment in the section header. */
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.6;
  color: var(--signal);
  font-weight: 400;
  margin-bottom: -0.42em;
  margin-left: -0.08em;
  user-select: none;
}
.tl-munger-q {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5.4vw, 84px);
  line-height: 1.14;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 0 0 64px;
  max-width: 16ch;
}
.tl-q-line {
  display: block;
}
.tl-q-line-last {
  /* Removed the 5em text-indent — Inter is more compact and the
     flourish was reading awkward (per user feedback). Clean flow. */
}
.tl-q-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1), transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.tl-q-em em {
  /* Italic accent — Instrument Serif at the same size, signal-coloured.
     "200-week moving average" carries the editorial weight. */
  color: var(--signal);
  font-weight: 400;
  letter-spacing: -0.025em;
}
/* When the quote is in view, words progressively reveal.
   Stagger driven by JS via --i custom property. */
.tl-munger-q.is-in .tl-q-w {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.tl-munger-attr {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.tl-munger-attr-rule {
  width: 56px; height: 1px;
  background: var(--ink);
  display: inline-block;
}
.tl-munger-cite {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tl-munger-cite-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ════════════════════════════════════════════════════════════════════
   ACT IV — THE POSTCARD  ·  fillable-sentence alerts form

   The form *is* the headline. Inputs are styled to feel like words
   inside the sentence, not form fields. Underline only, no boxes,
   no labels (the sentence reads itself).
   ════════════════════════════════════════════════════════════════════ */

.tl-postcard {
  background: var(--ink);
  padding: 14vh var(--pg);
  border-top: 1px solid var(--smoke);
  position: relative;
  overflow: hidden;
}
.tl-postcard::before {
  /* faint ambient glow, anchored top-right */
  content: '';
  position: absolute;
  top: 10%; right: 5%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 60%);
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.tl-postcard-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}
.tl-postcard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 56px;
}
.tl-postcard-eyebrow .tl-rule {
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}

.tl-pc-form { margin: 0; }

/* The fillable sentence — display type at scale */
.tl-pc-line {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 76px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin: 0 0 14px;
}
.tl-pc-field {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.tl-pc-field-pct {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.tl-pc-pct-mark {
  color: var(--bone);
  margin-left: 2px;
  font-weight: 500;
}

/* Inputs: borderless, transparent, underlined, sized in ch units to
   match expected content. Placeholder italic + light. */
.tl-pc-input {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--mute);
  font: inherit;
  color: var(--signal);
  font-weight: 400;
  padding: 0 4px 6px;
  outline: none;
  text-align: center;
  letter-spacing: -0.04em;
  transition: border-color 0.2s, color 0.2s;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}
.tl-pc-input::-webkit-outer-spin-button,
.tl-pc-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.tl-pc-input:focus {
  border-color: var(--signal);
}
.tl-pc-input::placeholder {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mute);
  font-weight: 400;
  text-transform: lowercase;
  opacity: 1;
}
.tl-pc-sym {
  width: 8ch;
  text-transform: uppercase;
}
.tl-pc-email {
  width: min(12ch, 60vw);
}
.tl-pc-pct {
  width: 2.5ch;
  text-align: right;
  padding-right: 0;
}

/* Consent row */
.tl-pc-consent {
  margin-top: 64px;
  max-width: 720px;
}
.tl-pc-consent-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}
.tl-pc-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--signal);
  background: transparent;
  cursor: pointer;
}
.tl-pc-consent-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mute-2);
  letter-spacing: 0.005em;
}
.tl-pc-consent-text strong {
  color: var(--bone);
  font-weight: 500;
}

/* Submit */
.tl-pc-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 980px;
}
.tl-pc-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--mute);
  padding: 18px 36px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.tl-pc-submit:hover:not(:disabled) {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  transform: translateY(-1px);
}
.tl-pc-submit:active:not(:disabled) { transform: translateY(0); }
.tl-pc-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tl-pc-submit-rule {
  width: 24px; height: 1px;
  background: var(--signal);
  display: inline-block;
  transition: background 0.2s;
}
.tl-pc-submit:hover:not(:disabled) .tl-pc-submit-rule { background: var(--ink); }
.tl-pc-fine {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--mute);
  margin: 0;
  flex: 1;
  min-width: 280px;
}

/* Status message */
.tl-pc-status {
  margin: 24px 0 0;
  min-height: 1.4em;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--bone-2);
}
.tl-pc-status.is-ok    { color: var(--signal); }
.tl-pc-status.is-error { color: #FF8A65; }     /* warmer than red, palette-coherent */
.tl-pc-status.is-busy  { color: var(--mute-2); font-style: italic; }

/* Success state — replaces form on confirm */
.tl-pc-thanks {
  padding-top: 24px;
  border-top: 1px solid var(--smoke);
  max-width: 720px;
  animation: tl-fade-in 0.6s cubic-bezier(.22,.61,.36,1) both;
}
.tl-pc-thanks-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--bone);
  margin: 0 0 24px;
}
.tl-pc-thanks-d {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: var(--bone-2);
  letter-spacing: -0.015em;
  margin: 0;
}
.tl-pc-thanks-d strong {
  color: var(--signal);
  font-weight: 500;
}
@keyframes tl-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════
   ACT V — THE CLOSE  ·  "Wait for the line."
   ════════════════════════════════════════════════════════════════════ */

.tl-close {
  background: var(--ink);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--pg);
  position: relative;
  border-top: 1px solid var(--smoke);
}
.tl-close::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80vw; height: 80vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 55%);
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}
.tl-close-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.tl-close-line {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(72px, 13vw, 200px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--bone);
  margin: 0 0 64px;
}
.tl-close-line em {
  /* Instrument Serif italic for "line." — the closing accent */
  color: var(--signal);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.tl-close-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--mute);
  padding: 18px 28px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tl-close-cta:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.tl-close-cta-rule {
  width: 24px; height: 1px;
  background: var(--signal);
  display: inline-block;
  transition: background 0.2s;
}
.tl-close-cta:hover .tl-close-cta-rule { background: var(--ink); }

/* ── FOOT ──────────────────────────────────────────────────────────── */

.tl-foot {
  background: var(--ink);
  border-top: 1px solid var(--smoke);
  padding: 32px var(--pg);
}
.tl-foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.tl-foot a { color: var(--mute-2); transition: color 0.15s; }
.tl-foot a:hover { color: var(--signal); }
.tl-foot-brand { color: var(--bone); }
.tl-foot-sep { color: var(--smoke); }

/* ════════════════════════════════════════════════════════════════════
   ACT III — THE CHART TEMPLE  ·  20Y SPY full-bleed

   Empirical proof: one chart, 20 years, with the 200-week SMA in
   signal-amber and chronologically-pulsing buy signal markers. The
   site's most defensible artifact, given a temple.
   ════════════════════════════════════════════════════════════════════ */

.tl-temple {
  background: var(--ink);
  padding: 14vh 0 12vh;
  border-top: 1px solid var(--smoke);
  position: relative;
  overflow: hidden;
}
.tl-temple::after {
  /* faint glow following the price line */
  content: '';
  position: absolute;
  bottom: 30%; left: 0; right: 0; height: 40%;
  background: radial-gradient(ellipse at 70% 60%, var(--signal-glow) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}
.tl-temple-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.tl-temple-head {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding: 0 var(--pg);
}
.tl-temple-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 28px;
}
.tl-temple-eyebrow .tl-rule {
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.tl-temple-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--bone);
  margin: 0;
}
.tl-temple-title em {
  color: var(--signal);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.tl-temple-canvas-wrap {
  position: relative;
  width: 100%;
  padding: 0 4vw;
  margin-bottom: 56px;
}
.tl-temple-canvas {
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 640px;
  display: block;
  background: var(--ink);
}
.tl-temple-legend {
  position: absolute;
  top: 12px; right: 4vw;
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
  background: rgba(10,10,10,0.7);
  padding: 8px 14px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.tl-temple-leg { display: inline-flex; align-items: center; gap: 8px; }
.tl-temple-leg-line {
  display: inline-block;
  width: 18px; height: 2px;
}
.tl-temple-leg-px  { background: var(--bone); height: 1px; }
.tl-temple-leg-sma { background: var(--signal); height: 2px; box-shadow: 0 0 4px var(--signal-glow); }
.tl-temple-leg-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
}

.tl-temple-yearbar {
  position: absolute;
  bottom: -14px; left: 4vw; right: 4vw;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mute);
}

.tl-temple-stat {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 6vw;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.95vw, 26px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--bone-2);
  text-align: left;
}
.tl-temple-stat-tail {
  /* Keep "Average 12-month return after touch: +XX.X%." together so the
     percentage never wraps onto a line by itself. The earlier · separators
     remain natural break points if the line still has to wrap. */
  white-space: nowrap;
  display: inline-block;
}
.tl-temple-stat em {
  color: var(--bone);
  font-weight: 400;
}
.tl-temple-stat-sep {
  color: var(--mute);
  margin: 0 12px;
  font-family: var(--display);
  font-style: normal;
}
.tl-temple-stat-n,
.tl-temple-stat-r {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════════════════════
   ACT V — THE FLOOR  ·  terminal-style scanner

   Bloomberg-terminal aesthetic. Sorted ascending by absolute distance
   from each ticker's 200-week SMA. Top of the table = act now;
   bottom = ignore. Mono columns, hairline rules, signal-amber dot
   when within threshold. Replaces the candy table on the homepage.
   ════════════════════════════════════════════════════════════════════ */

.tl-floor {
  background: var(--ink);
  padding: 14vh 0;
  border-top: 1px solid var(--smoke);
  position: relative;
}
.tl-floor-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pg);
}
.tl-floor-head {
  margin-bottom: 56px;
  max-width: 880px;
}
.tl-floor-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 28px;
}
.tl-floor-eyebrow .tl-rule {
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.tl-floor-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--bone);
  margin: 0 0 24px;
}
.tl-floor-title em {
  color: var(--signal);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.tl-floor-deck {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--mute-2);
  margin: 0;
  letter-spacing: -0.01em;
}

.tl-floor-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--smoke);
}
.tl-floor-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.tl-floor-th {
  text-align: left;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 18px 16px;
  border-bottom: 1px solid var(--smoke);
}
.tl-floor-th-r { text-align: right; }
.tl-floor-th-c { text-align: center; }
.tl-floor-th-num { width: 48px; padding-left: 0; color: var(--mute); }
.tl-floor-table tbody tr {
  transition: background 0.15s;
}
.tl-floor-table tbody tr:hover { background: rgba(226,90,28,0.04); }
.tl-floor-table tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--smoke);
  vertical-align: baseline;
}
.tl-floor-table tbody tr.is-near {
  background: rgba(226,90,28,0.05);
}
.tl-floor-table tbody tr.is-near:hover {
  background: rgba(226,90,28,0.10);
}
.tl-floor-cell-rank {
  color: var(--mute);
  font-size: 11px;
}
.tl-floor-cell-sym {
  color: var(--bone);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tl-floor-cell-name {
  color: var(--mute-2);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-left: 10px;
}
.tl-floor-cell-r { text-align: right; }
.tl-floor-cell-c { text-align: center; }
.tl-floor-cell-dist {
  color: var(--bone);
  font-weight: 500;
}
.tl-floor-cell-dist.is-near {
  color: var(--signal);
}
.tl-floor-cell-mute {
  color: var(--mute-2);
}
.tl-floor-status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mute);
  vertical-align: middle;
}
.tl-floor-status-dot.is-near {
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: tl-floor-blink 2s ease-in-out infinite;
}
@keyframes tl-floor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.tl-floor-loading td {
  text-align: center;
  padding: 64px 16px !important;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.tl-floor-fine {
  margin: 32px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.tl-floor-fine-amber {
  color: var(--signal);
  margin: 0 4px;
  font-size: 13px;
  vertical-align: middle;
}

/* ════════════════════════════════════════════════════════════════════
   THE LETTERS  ·  /letters/  ·  news + research archive
   3-column compact grid · category filter pills · featured card
   ════════════════════════════════════════════════════════════════════ */

.tl-letters-scope { background: var(--ink); min-height: 100vh; }

.tl-letters-hero {
  padding: 16vh var(--pg) 8vh;
  position: relative;
  overflow: hidden;
}
.tl-letters-hero::after {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  width: 70vw; height: 70vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 60%);
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
}
.tl-letters-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1340px;
  margin: 0 auto;
}
.tl-letters-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 36px;
}
.tl-letters-eyebrow .tl-rule {
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.tl-letters-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: var(--bone);
  margin: 0 0 36px;
}
.tl-letters-title em {
  color: var(--signal);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.tl-letters-deck {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
  color: var(--bone-2);
  max-width: 720px;
  margin: 0 0 40px;
  letter-spacing: -0.018em;
}
.tl-letters-deck em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone-2);
  font-weight: 400;
}
.tl-letters-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 24px;
  border-top: 1px solid var(--smoke);
  margin-top: 8px;
}
.tl-letters-meta-k { color: var(--mute); }
.tl-letters-meta-v { color: var(--bone); margin-right: 4px; }
.tl-letters-meta-sep { color: var(--smoke); margin: 0 4px; }

/* ── FILTER PILLS ──────────────────────────────────────────── */
.tl-letters-filters {
  padding: 0 var(--pg) 36px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 70%, transparent 100%);
}
.tl-letters-filters-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--smoke);
  border-bottom: 1px solid var(--smoke);
}
.tl-letters-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--smoke);
  padding: 8px 14px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute-2);
  cursor: pointer;
  transition: all 0.15s;
}
.tl-letters-pill:hover {
  color: var(--bone);
  border-color: var(--mute);
}
.tl-letters-pill.is-on {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.tl-letters-pill-n {
  font-size: 9px;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.tl-letters-pill.is-on .tl-letters-pill-n { opacity: 0.7; }

/* ── FEATURED CARD ─────────────────────────────────────────── */
.tl-letters-featured {
  padding: 8px var(--pg) 56px;
}
.tl-letters-featured-inner {
  max-width: 1340px;
  margin: 0 auto;
}
.tl-feat {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 0;
  position: relative;
  border-top: 1px solid var(--smoke);
  border-bottom: 1px solid var(--smoke);
  padding-block: 32px;
}
.tl-feat:hover .tl-feat-title { color: var(--signal); }
.tl-feat:hover .tl-feat-img img { transform: scale(1.02); }
.tl-feat-img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(242,238,229,0.06);
}
.tl-feat-img img {
  width: 100%; height: 100%;
  object-fit: contain;       /* never crop baked-in titles */
  display: block;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.tl-feat-text { display: flex; flex-direction: column; gap: 18px; }
.tl-feat-meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-feat-flag { color: var(--signal); font-weight: 500; }
.tl-feat-cat { color: var(--bone); }
.tl-feat-sep { color: var(--smoke); }
.tl-feat-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin: 0;
  transition: color 0.2s;
  max-width: 22ch;
}
.tl-feat-deck {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--bone-2);
  margin: 0;
  letter-spacing: -0.005em;
  max-width: 56ch;
}
.tl-feat-deck em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone-2);
}
.tl-feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  margin-top: 4px;
}
.tl-feat-cta-rule {
  width: 24px; height: 1px;
  background: var(--signal);
  display: inline-block;
}

/* ── GRID ──────────────────────────────────────────────────── */
.tl-letters-index {
  padding: 8vh var(--pg) 16vh;
  background: var(--ink);
}
.tl-letters-index-inner {
  max-width: 1340px;
  margin: 0 auto;
}
.tl-letters-index-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 32px;
}
.tl-letters-index-eyebrow .tl-rule {
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}

.tl-letters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  border-top: 1px solid var(--smoke);
  padding-top: 40px;
}
.tl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.2s;
}
.tl-card:hover .tl-card-title { color: var(--signal); }
.tl-card:hover .tl-card-img img { transform: scale(1.04); }

.tl-card-img {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid rgba(242,238,229,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.tl-card-img img {
  width: 100%; height: 100%;
  /* contain — never crop the user's baked-in titles, even when source
     image isn't perfectly 16:9. Letterbox/pillarbox if needed. */
  object-fit: contain;
  display: block;
  transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
}
.tl-card-img-empty {
  background: linear-gradient(135deg, var(--smoke) 0%, var(--ink) 100%);
}
.tl-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 2px;
}
.tl-card-meta {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tl-card-cat { color: var(--signal); }
.tl-card-sep { color: var(--smoke); }
.tl-card-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin: 0;
  transition: color 0.2s;
}

.tl-letters-grid-empty {
  padding: 80px 0;
  text-align: center;
  font-family: var(--display);
  font-size: 18px;
  color: var(--mute-2);
}
.tl-letters-empty {
  padding: 80px 0;
  font-family: var(--display);
  font-size: 22px;
  color: var(--mute-2);
  text-align: center;
}
.tl-letters-empty a { color: var(--signal); text-decoration: none; }

/* ════════════════════════════════════════════════════════════════════
   SINGLE LETTER  ·  single.php  ·  the actual post view

   Editorial reading. Bone-on-ink long-form. Inter 400 body, display
   500 with Instrument Serif italic accents on heads. Mono micro-caps.
   16:9 hero contained at max-width 1080px. Sticky rail with TOC +
   live watchlist + optional live-signal card.
   ════════════════════════════════════════════════════════════════════ */

.tl-letter-single { background: var(--ink); min-height: 100vh; }

/* ── Reading progress bar ─────────────────────────────────────── */
.tl-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(242,238,229,0.04);
  z-index: 90;
}
.tl-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal-glow);
  transition: width 0.06s linear;
}

/* ── HEADER ──────────────────────────────────────────────────── */
.tl-letter-head {
  padding: 18vh var(--pg) 0;
  position: relative;
  overflow: hidden;
}
.tl-letter-head::after {
  content: '';
  position: absolute;
  top: 25%; left: 60%;
  width: 50vw; height: 50vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 60%);
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}
.tl-letter-head-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}
.tl-letter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 56px;
}
.tl-letter-eyebrow .tl-rule {
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.tl-letter-eyebrow-no   { color: var(--signal); font-weight: 500; }
.tl-letter-eyebrow-cat  { color: var(--bone); }
.tl-letter-eyebrow-date { color: var(--bone); }
.tl-letter-eyebrow-time { color: var(--mute-2); }
.tl-letter-eyebrow-sep  { color: var(--smoke); }

.tl-letter-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--bone);
  margin: 0 0 32px;
  max-width: 22ch;
}
.tl-letter-headline em {
  color: var(--signal);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.tl-letter-deck {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.45;
  color: var(--bone-2);
  margin: 0 0 56px;
  max-width: 60ch;
  letter-spacing: -0.018em;
}
.tl-letter-deck em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone-2);
  font-weight: 400;
}

/* ── BYLINE ──────────────────────────────────────────────────── */
.tl-letter-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--smoke);
}
.tl-byline-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tl-byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--smoke);
  position: relative;
}
.tl-byline-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tl-byline-initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--bone);
}
.tl-byline-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.tl-byline-from {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.tl-byline-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--bone);
  letter-spacing: -0.005em;
}
.tl-byline-role {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.tl-byline-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tl-byline-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}
.tl-byline-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: tl-floor-blink 2s ease-in-out infinite;
}
.tl-byline-share {
  background: transparent;
  border: 1px solid var(--mute);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.tl-byline-share:hover {
  background: var(--bone);
  color: var(--ink);
}
.tl-byline-share-rule {
  width: 16px; height: 1px;
  background: var(--signal);
  display: inline-block;
  transition: background 0.2s;
}
.tl-byline-share:hover .tl-byline-share-rule { background: var(--ink); }
.tl-byline-share.is-copied {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.tl-byline-share.is-copied .tl-byline-share-rule { background: var(--ink); }

/* ── HERO IMAGE (16:9, contained, premium frame) ─────────────── */
.tl-letter-herowrap {
  padding: 64px var(--pg) 0;
}
.tl-letter-heroframe {
  max-width: 1080px;
  margin: 0 auto;
}
.tl-letter-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--smoke);
  border: 1px solid rgba(242,238,229,0.06);
  position: relative;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.4),
    0 32px 80px -24px rgba(0,0,0,0.5),
    0 12px 28px -8px rgba(0,0,0,0.3);
}
.tl-letter-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.tl-letter-hero-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.tl-letter-herocap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 0 4px;
}
.tl-letter-herocap-rule {
  flex: 0 0 32px;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
}
.tl-letter-herocap-w {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute-2);
  line-height: 1.5;
}

/* ── BODY GRID (prose + sticky rail) ─────────────────────────── */
.tl-letter-body {
  padding: 96px 6vw 0;
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}
.tl-letter-main { min-width: 0; max-width: 840px; }

/* ── KEY TAKEAWAYS ───────────────────────────────────────────── */
.tl-takeaways {
  border-top: 1px solid var(--signal);
  border-bottom: 1px solid var(--smoke);
  padding: 28px 0 32px;
  margin-bottom: 56px;
}
.tl-takeaways-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 20px;
}
.tl-takeaways-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tl-takeaways-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--bone);
  letter-spacing: -0.01em;
}
.tl-takeaways-bullet {
  color: var(--signal);
  font-weight: 500;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 16px;
}

/* ── PROSE ───────────────────────────────────────────────────── */
.tl-prose {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
  color: var(--bone-2);
  letter-spacing: -0.005em;
}
.tl-prose > * { margin: 0 0 26px; }
.tl-prose h2,
.tl-prose h3,
.tl-prose h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--bone);
  margin: 64px 0 20px;
  scroll-margin-top: 100px;
}
.tl-prose h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
}
.tl-prose h2 em {
  color: var(--signal);
  font-weight: 400;
}
.tl-prose h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
}
.tl-prose h4 {
  font-size: 18px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--mute-2);
  margin: 48px 0 14px;
}
.tl-prose p {
  font-size: 20px;
  line-height: 1.7;
  color: var(--bone-2);
}
.tl-prose strong {
  color: var(--bone);
  font-weight: 600;
}
.tl-prose em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bone);
}
.tl-prose a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid var(--signal-glow);
  transition: border-color 0.2s, color 0.2s;
}
.tl-prose a:hover {
  border-bottom-color: var(--signal);
}
.tl-prose ul, .tl-prose ol {
  padding-left: 28px;
}
.tl-prose li {
  margin-bottom: 10px;
  padding-left: 6px;
}
.tl-prose ul { list-style: none; padding-left: 0; }
.tl-prose ul li {
  position: relative;
  padding-left: 28px;
}
.tl-prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--mono);
  font-weight: 500;
}
.tl-prose blockquote {
  border-left: 2px solid var(--signal);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--bone);
  letter-spacing: -0.018em;
}
.tl-prose blockquote em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone);
}
.tl-prose blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-style: normal;
}
.tl-prose img,
.tl-prose figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 32px 0;
  border: 1px solid rgba(242,238,229,0.06);
}
.tl-prose figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: -16px;
  margin-bottom: 32px;
}
.tl-prose hr {
  border: 0;
  border-top: 1px solid var(--smoke);
  margin: 48px 0;
}
.tl-prose code {
  font-family: var(--mono);
  font-size: 14px;
  background: rgba(242,238,229,0.06);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--bone);
  letter-spacing: 0;
}
.tl-prose pre {
  background: rgba(242,238,229,0.04);
  border: 1px solid var(--smoke);
  border-radius: 6px;
  padding: 18px 22px;
  overflow-x: auto;
  margin: 28px 0;
}
.tl-prose pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* WordPress core block accommodation */
.tl-prose .wp-block-image,
.tl-prose .wp-block-quote,
.tl-prose .wp-block-gallery {
  margin: 32px 0;
}

/* ── AUTHOR BIO ──────────────────────────────────────────────── */
.tl-author-bio {
  margin-top: 96px;
  padding: 40px 0;
  border-top: 1px solid var(--smoke);
  border-bottom: 1px solid var(--smoke);
}
.tl-author-bio-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}
.tl-author-bio-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--smoke);
  position: relative;
}
.tl-author-bio-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tl-author-bio-avatar span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--bone);
}
.tl-author-bio-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 6px;
}
.tl-author-bio-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin: 0 0 4px;
}
.tl-author-bio-role {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 12px;
}
.tl-author-bio-body {
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone-2);
  margin: 0;
  letter-spacing: -0.005em;
  max-width: 60ch;
}

/* ════════════════════════════════════════════════════════════════════
   THE RAIL  ·  sticky sidebar — TOC + watchlist + live signal
   ════════════════════════════════════════════════════════════════════ */

.tl-letter-rail {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: start;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--smoke) transparent;
  padding-right: 4px;
}
.tl-letter-rail::-webkit-scrollbar { width: 4px; }
.tl-letter-rail::-webkit-scrollbar-thumb { background: var(--smoke); border-radius: 4px; }

.tl-rail-card {
  background: rgba(242,238,229,0.02);
  border: 1px solid var(--smoke);
  border-radius: 8px;
  padding: 20px 22px;
}
.tl-rail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tl-rail-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0;
}
.tl-rail-card-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  transition: color 0.15s;
}
.tl-rail-card-link:hover { color: var(--bone); }

/* ── TOC ──────────────────────────────────────────────────── */
.tl-rail-toc-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-left: 1px solid var(--smoke);
}
.tl-rail-toc-empty {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 8px 14px;
}
.tl-rail-toc-item {
  position: relative;
  padding: 6px 0;
}
.tl-rail-toc-item a {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute-2);
  padding: 4px 14px;
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.tl-rail-toc-item a:hover { color: var(--bone); }
.tl-rail-toc-item.is-h3 a { padding-left: 26px; font-size: 12px; color: var(--mute); }
.tl-rail-toc-item.is-active a {
  color: var(--bone);
}
.tl-rail-toc-item.is-active::before {
  content: '';
  position: absolute;
  left: -1px; top: 50%;
  width: 2px; height: 16px;
  background: var(--signal);
  transform: translateY(-50%);
  box-shadow: 0 0 6px var(--signal-glow);
}

/* ── Watchlist ─────────────────────────────────────────────── */
.tl-rail-watchlist {
  margin-top: 12px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.tl-rail-loading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
  padding: 8px 0;
}
.tl-rail-wl-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--smoke);
}
.tl-rail-wl-row:last-child { border-bottom: 0; }
.tl-rail-wl-sym {
  font-size: 12px;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: 0.04em;
}
.tl-rail-wl-r {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.tl-rail-wl-px {
  font-size: 12px;
  font-weight: 500;
  color: var(--bone);
}
.tl-rail-wl-chg {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--mute-2);
}
.tl-rail-wl-chg.is-up   { color: var(--signal); }
.tl-rail-wl-chg.is-down { color: var(--mute-2); }
.tl-rail-wl-na { color: var(--mute); font-style: italic; font-size: 10px; }
.tl-rail-watchlist-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--smoke);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.tl-rail-watchlist-note a { color: var(--signal); }

/* ── Live signal card ──────────────────────────────────────── */
.tl-rail-live {
  border-color: var(--signal);
  background: rgba(226,90,28,0.04);
}
.tl-rail-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}
.tl-rail-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 6px var(--signal);
  animation: tl-floor-blink 2s ease-in-out infinite;
}
.tl-rail-live-sym {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--signal);
  margin: 12px 0 8px;
}
.tl-rail-live-detail {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--bone-2);
  margin: 0 0 14px;
  background: transparent;
  white-space: pre-line;
  overflow: visible;
}
.tl-rail-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--mute);
  padding: 10px 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tl-rail-card-cta:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.tl-rail-card-cta-rule {
  width: 14px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.tl-rail-card-cta:hover .tl-rail-card-cta-rule { background: var(--ink); }

/* ════════════════════════════════════════════════════════════════════
   MORE LETTERS (related grid)
   ════════════════════════════════════════════════════════════════════ */
.tl-letter-more {
  padding: 12vh var(--pg) 8vh;
  border-top: 1px solid var(--smoke);
  margin-top: 80px;
}
.tl-letter-more-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.tl-letter-more-eyebrow {
  color: var(--signal);
  margin-bottom: 40px;
}
.tl-letter-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tl-more-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--smoke);
  transition: border-color 0.2s;
}
.tl-more-card:hover { border-top-color: var(--signal); }
.tl-more-card:hover .tl-more-card-title { color: var(--signal); }
.tl-more-card:hover .tl-more-card-img img { transform: scale(1.02); }
.tl-more-card-img {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
}
.tl-more-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;       /* never crop baked-in titles */
  display: block;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.tl-more-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-more-card-cat { color: var(--signal); }
.tl-more-card-sep { color: var(--smoke); }
.tl-more-card-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin: 0;
  transition: color 0.2s;
}

/* ════════════════════════════════════════════════════════════════════
   THE DISTANCE INDEX  ·  /the-index/
   The market's pulse, in one number.
   ════════════════════════════════════════════════════════════════════ */

.tl-idx-scope { background: var(--ink); min-height: 100vh; }

.tl-idx-hero {
  padding: 18vh var(--pg) 6vh;
  position: relative;
  overflow: hidden;
}
.tl-idx-hero::after {
  content: '';
  position: absolute;
  top: 35%; left: 50%;
  width: 70vw; height: 70vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 60%);
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.tl-idx-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.tl-idx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 auto 56px;
}
.tl-idx-eyebrow .tl-rule {
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}

.tl-idx-headline {
  display: block;
  margin: 0 0 36px;
}
.tl-idx-headline-pre,
.tl-idx-headline-post {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.4;
  color: var(--bone-2);
  letter-spacing: -0.018em;
  margin: 0;
}
.tl-idx-headline-post em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--signal);
  font-weight: 400;
}
.tl-idx-number {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(96px, 18vw, 280px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--bone);
  margin: 18px 0;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px rgba(226, 90, 28, 0.25);
}
.tl-idx-number .tl-idx-unit {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  color: var(--signal);
  letter-spacing: -0.02em;
  vertical-align: 0.45em;
  margin-left: -0.05em;
}

.tl-idx-subline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.6;
  color: var(--mute-2);
  max-width: 640px;
  margin: 0 auto 36px;
  letter-spacing: -0.005em;
}

.tl-idx-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 24px;
  border-top: 1px solid var(--smoke);
  margin: 0 auto;
  font-variant-numeric: tabular-nums;
}
.tl-idx-meta-k { color: var(--mute); margin-right: 6px; }
.tl-idx-meta-v { color: var(--bone); margin-right: 4px; font-weight: 500; }
.tl-idx-meta-sep { color: var(--smoke); margin: 0 6px; }

/* ── CHART ───────────────────────────────────────────────── */
.tl-idx-chart-wrap {
  background: var(--ink);
  padding: 4vh 4vw 10vh;
  position: relative;
}
.tl-idx-canvas-wrap {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
}
.tl-idx-canvas {
  width: 100%;
  height: 56vh;
  min-height: 360px;
  max-height: 560px;
  display: block;
}
.tl-idx-legend {
  position: absolute;
  top: 16px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
  background: rgba(10,10,10,0.7);
  padding: 8px 14px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.tl-idx-leg { display: inline-flex; align-items: center; gap: 8px; }
.tl-idx-leg-line {
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--signal);
  box-shadow: 0 0 4px var(--signal-glow);
}
.tl-idx-leg-rule {
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--mute-2);
  border-top: 1px dashed var(--mute-2);
}
.tl-idx-leg-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 0 8px var(--bone-2);
}
.tl-idx-yearbar {
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mute);
}
.tl-idx-caption {
  max-width: 1340px;
  margin: 56px auto 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}

/* ── EXPLAINER ───────────────────────────────────────────── */
.tl-idx-explain {
  padding: 8vh var(--pg) 14vh;
  border-top: 1px solid var(--smoke);
  background: var(--ink);
}
.tl-idx-explain-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.tl-idx-h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin: 0 0 56px;
}
.tl-idx-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.tl-idx-three-item {
  border-top: 1px solid var(--smoke);
  padding-top: 24px;
}
.tl-idx-three-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 16px;
}
.tl-idx-three-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin: 0 0 12px;
}
.tl-idx-three-d {
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone-2);
  margin: 0;
  letter-spacing: -0.005em;
}

/* Today's marker on the chart — shown when not enough data */
.tl-idx-cold {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  text-align: center;
  padding: 80px 0;
}

/* ════════════════════════════════════════════════════════════════════
   "WILL IT HIT?" MODAL
   Click any ticker → modal slides in over a blur-darkened backdrop.
   Same Chart Temple treatment, but with a glint that dramatically
   slows in proportion to proximity to the line. The closer the price
   is to its 200-week SMA, the more held-breath the final approach.
   ════════════════════════════════════════════════════════════════════ */

.tl-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s cubic-bezier(.22,.61,.36,1);
}
.tl-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.tl-modal[hidden] { display: none; }

.tl-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  cursor: pointer;
}

.tl-modal-card {
  position: relative;
  width: 100%;
  max-width: 1180px;
  max-height: calc(100vh - 64px);
  background: #0d0d0d;
  border: 1px solid var(--smoke);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.4),
    0 60px 120px -20px rgba(0,0,0,0.7),
    0 24px 48px -12px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.42s cubic-bezier(.22,.61,.36,1);
}
.tl-modal.is-open .tl-modal-card {
  transform: translateY(0) scale(1);
}
.tl-modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 80% 20%, var(--signal-glow) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

/* Close button */
.tl-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  background: transparent;
  border: 1px solid var(--smoke);
  color: var(--mute-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.tl-modal-close:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.tl-modal-close-x {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  font-weight: 300;
}

/* Head */
.tl-modal-head {
  padding: 56px 56px 24px;
  position: relative;
  z-index: 1;
}
.tl-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 24px;
}
.tl-modal-eyebrow .tl-rule {
  width: 40px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.tl-modal-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--bone);
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.tl-modal-sym {
  font-family: var(--display);
  font-weight: 500;
  color: var(--bone);
}
.tl-modal-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  color: var(--mute-2);
}
.tl-modal-deck {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--bone-2);
  margin: 0;
  max-width: 64ch;
  letter-spacing: -0.005em;
  min-height: 1.5em;
}
.tl-modal-deck em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone-2);
  font-weight: 400;
}
.tl-modal-deck .tl-modal-deck-amber {
  color: var(--signal);
  font-weight: 500;
}

/* Canvas wrap */
.tl-modal-canvas-wrap {
  position: relative;
  padding: 12px 56px 32px;
}
.tl-modal-canvas {
  width: 100%;
  height: 46vh;
  min-height: 320px;
  max-height: 480px;
  display: block;
}
.tl-modal-yearbar {
  position: absolute;
  bottom: 12px;
  left: 56px;
  right: 56px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mute);
  pointer-events: none;
}

/* Foot — stats strip */
.tl-modal-foot {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--smoke);
  background: rgba(242,238,229,0.015);
}
.tl-modal-stat {
  padding: 22px 24px;
  border-right: 1px solid var(--smoke);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tl-modal-stat:last-child { border-right: 0; }
.tl-modal-stat-k {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}
.tl-modal-stat-v {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--bone);
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-modal-stat-v.is-near {
  color: var(--signal);
  /* Pulsing dot before the value when within 5% — the "held breath" */
  animation: tl-modal-near-pulse 2.4s ease-in-out infinite;
}
@keyframes tl-modal-near-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* Loading state */
.tl-modal[data-state="loading"] .tl-modal-canvas-wrap::before {
  content: 'Loading the chart…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  z-index: 1;
}
.tl-modal[data-state="error"] .tl-modal-canvas-wrap::before {
  content: 'Chart data unavailable for this ticker.';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF8A65;
  z-index: 1;
}

/* Body lock when modal open */
body.tl-modal-locked { overflow: hidden; }

/* Make Floor rows + canvas clickable */
.tl-floor-table tbody tr { cursor: pointer; }
.tl-503-canvas-wrap { cursor: crosshair; }

/* ════════════════════════════════════════════════════════════════════
   LEGAL  ·  Terms of Use + Privacy Policy
   Same visual system as The Line: ink + bone + signal-amber, Inter
   display, Instrument Serif italic accents, mono micro-caps, sticky
   TOC rail.
   ════════════════════════════════════════════════════════════════════ */

.tl-legal-scope { background: var(--ink); min-height: 100vh; }

.tl-legal-main {
  display: block;
  padding-bottom: 80px;
}
.tl-legal-main article { display: block; }

/* ── HERO ──────────────────────────────────────────────────────── */
.lg-hero {
  padding: 16vh var(--pg) 8vh;
  position: relative;
  overflow: hidden;
}
.lg-hero::after {
  content: '';
  position: absolute;
  top: 30%; left: 60%;
  width: 60vw; height: 60vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 60%);
  filter: blur(100px);
  opacity: 0.32;
  pointer-events: none;
}
.lg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}
.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 40px;
}
.lg-eyebrow::before {
  content: '';
  width: 56px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.lg-h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--bone);
  margin: 0 0 32px;
}
.lg-h1 .accent {
  /* Use Instrument Serif italic for the accent word — matches the rest
     of the Line aesthetic. Even though the markup is a span, we apply
     the serif class via this scoped rule. */
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--signal);
  letter-spacing: -0.04em;
}
.lg-sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.95vw, 24px);
  line-height: 1.55;
  color: var(--bone-2);
  max-width: 60ch;
  margin: 0 0 40px;
  letter-spacing: -0.012em;
}
.lg-sub strong { color: var(--bone); font-weight: 500; }
.lg-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 20px;
  border-top: 1px solid var(--smoke);
}
.lg-meta strong { color: var(--bone); font-weight: 500; }

/* ── BODY GRID (TOC rail + content) ─────────────────────────── */
.lg-wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* ── TOC (sticky left rail) ─────────────────────────────────── */
.lg-toc {
  position: sticky;
  top: 28px;
  background: rgba(242,238,229,0.02);
  border: 1px solid var(--smoke);
  border-radius: 8px;
  padding: 20px 22px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--smoke) transparent;
}
.lg-toc::-webkit-scrollbar { width: 4px; }
.lg-toc::-webkit-scrollbar-thumb { background: var(--smoke); border-radius: 4px; }
.lg-toc-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 0 0 14px;
}
.lg-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--smoke);
  counter-reset: toc;
}
.lg-toc li {
  position: relative;
  padding: 0;
  counter-increment: toc;
}
.lg-toc li a {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mute-2);
  padding: 6px 12px 6px 14px;
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.lg-toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-right: 10px;
}
.lg-toc li a:hover { color: var(--bone); }
.lg-toc li a:hover::before { color: var(--signal); }

/* ── CONTENT ───────────────────────────────────────────────── */
.lg-content {
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--bone-2);
  letter-spacing: -0.005em;
  max-width: 760px;
}
.lg-content > * { margin: 0 0 22px; }
.lg-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--bone-2);
}
.lg-content strong {
  color: var(--bone);
  font-weight: 500;
}
.lg-content em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bone);
}
.lg-content a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid var(--signal-glow);
  transition: border-color 0.2s, color 0.2s;
}
.lg-content a:hover { border-bottom-color: var(--signal); }
.lg-content h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--bone);
  margin: 64px 0 22px;
  scroll-margin-top: 80px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.lg-content h2 em {
  color: var(--signal);
  font-weight: 400;
}
.lg-content h2:first-child { margin-top: 0; }
.lg-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--signal);
  flex-shrink: 0;
  /* Lift it slightly so the number reads as a margin marker */
  position: relative;
  top: -0.2em;
}
.lg-content h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 32px 0 12px;
}
.lg-content h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin: 28px 0 12px;
}
.lg-content ul, .lg-content ol {
  padding-left: 0;
  list-style: none;
}
.lg-content ul li,
.lg-content ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.lg-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--mono);
  font-weight: 500;
}
.lg-content ol {
  counter-reset: lg-ol;
}
.lg-content ol li {
  counter-increment: lg-ol;
}
.lg-content ol li::before {
  content: counter(lg-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  top: 0.35em;
}
.lg-content blockquote {
  border-left: 2px solid var(--signal);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--bone);
}
.lg-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(242,238,229,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--bone);
  letter-spacing: 0;
}
.lg-content hr {
  border: 0;
  border-top: 1px solid var(--smoke);
  margin: 40px 0;
}

/* ── KV TABLE ─────────────────────────────────────────────── */
.lg-kv {
  background: rgba(242,238,229,0.02);
  border: 1px solid var(--smoke);
  border-radius: 8px;
  padding: 4px 0;
  margin: 28px 0 32px;
  overflow: hidden;
}
.lg-kv-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 12px 22px;
  border-bottom: 1px solid var(--smoke);
}
.lg-kv-row:last-child { border-bottom: 0; }
.lg-kv-key {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.lg-kv-val {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.005em;
}
.lg-kv-val a { color: var(--signal); border-bottom: 1px solid var(--signal-glow); }

/* ── CALLOUTS ─────────────────────────────────────────────── */
.lg-callout {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  background: rgba(226,90,28,0.04);
  border: 1px solid rgba(226,90,28,0.18);
  border-left: 3px solid var(--signal);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 28px 0 32px;
}
.lg-callout-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
}
.lg-callout-body {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone);
  letter-spacing: -0.005em;
}
.lg-callout-body p { margin: 0 0 10px; color: var(--bone); font-size: 15px; }
.lg-callout-body p:last-child { margin-bottom: 0; }
.lg-callout-body strong { color: var(--bone); font-weight: 500; }
.lg-callout-body em { font-family: var(--serif); font-style: italic; color: var(--bone); }
.lg-callout-body a { color: var(--signal); border-bottom: 1px solid var(--signal-glow); }
.lg-callout-body ul li::before { color: var(--signal); }

/* warn = signal amber (default already is); danger = stronger amber tint;
   ok = mute bone for "what we don't collect" */
.lg-callout--danger {
  background: rgba(226,90,28,0.08);
  border-color: rgba(226,90,28,0.32);
  border-left-color: var(--signal);
}
.lg-callout--ok {
  background: rgba(242,238,229,0.03);
  border-color: var(--smoke);
  border-left-color: var(--bone);
}
.lg-callout--ok .lg-callout-icon {
  background: var(--bone);
  color: var(--ink);
}

/* ── END OF DOC ──────────────────────────────────────────── */
.lg-end {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--smoke);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.lg-end a {
  color: var(--bone);
  border-bottom: 1px solid var(--signal-glow);
}
.lg-end a:hover { color: var(--signal); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */

/* ── 13" laptop / 90% zoom (≤1366px) ────────────────────────────────
   Logo is 5:1 ratio. At height:38px it's 190px wide, right edge ~222px.
   At height:24px it's 120px wide, right edge ~144px from left:20px.
   --pg min of 165px ensures content always starts clear of the logo.
   ─────────────────────────────────────────────────────────────────── */
@media (max-width: 1366px) {
  .tl          { --pg: max(8vw, 165px); }
  .tl-pin      { top: 20px; left: 20px; right: 20px; }
  .tl-pin-logo { height: 24px; }
  .tl-pin-nav  { width: 90px; }
  .tl-pin-back { padding: 5px 10px; }
}

@media (max-width: 900px) {
  .tl-pin { top: 16px; left: 20px; right: 20px; font-size: 10px; }
  .tl-pin-logo { height: 30px; }
  .tl-pin-back { padding: 4px 9px; font-size: 9px; }

  .tl-hero { padding: 96px 24px 80px; }
  .tl-hero-eyebrow { margin-bottom: 36px; gap: 10px; }
  .tl-hero-eyebrow .tl-rule { width: 32px; }
  .tl-hero-title { margin-bottom: 32px; }
  .tl-hero-deck br { display: none; }
  .tl-hero-scroll { right: 24px; bottom: 28px; }

  .tl-503 { padding: 4vh 0 10vh; }
  .tl-503-canvas-wrap { height: 60vh; min-height: 380px; }
  .tl-503-cap { margin-top: 48px; padding: 0 24px; }

  .tl-munger { padding: 80px 24px; }
  .tl-munger-mark { font-size: clamp(80px, 22vw, 160px); margin-bottom: -0.34em; }
  .tl-munger-q { font-size: clamp(28px, 7vw, 56px); }

  .tl-postcard { padding: 12vh 24px; }
  .tl-postcard-eyebrow { margin-bottom: 36px; }
  .tl-pc-line { font-size: clamp(24px, 6.5vw, 44px); line-height: 1.4; margin-bottom: 18px; }
  .tl-pc-input { padding-bottom: 4px; }
  .tl-pc-sym { width: 6ch; }
  .tl-pc-pct { width: 2ch; }
  .tl-pc-actions { flex-direction: column; align-items: stretch; gap: 24px; }
  .tl-pc-submit { justify-content: center; }
  .tl-pc-fine { min-width: 0; }

  .tl-temple { padding: 12vh 0 10vh; }
  .tl-temple-head { padding: 0 24px; margin-bottom: 36px; }
  .tl-temple-canvas-wrap { padding: 0 16px; margin-bottom: 36px; }
  .tl-temple-canvas { height: 50vh; min-height: 320px; }
  .tl-temple-legend { font-size: 9px; gap: 14px; right: 16px; padding: 6px 10px; }
  .tl-temple-yearbar { left: 16px; right: 16px; font-size: 9px; }
  .tl-temple-stat { padding: 0 24px; font-size: 17px; line-height: 1.5; }
  .tl-temple-stat-sep { display: block; height: 4px; visibility: hidden; }
  .tl-temple-stat-tail { white-space: normal; display: inline; }

  .tl-floor { padding: 12vh 0; }
  .tl-floor-inner { padding: 0 24px; }
  .tl-floor-head { margin-bottom: 36px; }
  .tl-floor-table { font-size: 12px; }
  .tl-floor-th, .tl-floor-table tbody td { padding: 14px 10px; }
  .tl-floor-th-hide-sm, .tl-floor-cell-hide-sm { display: none; }
  .tl-floor-cell-name { display: block; margin-left: 0; margin-top: 2px; }

  .tl-close { padding: 96px 24px; min-height: 70vh; }
  .tl-close-line { margin-bottom: 40px; }

  .tl-foot { padding: 24px; }
  .tl-foot-inner { gap: 8px; }

  /* Single Letter */
  .tl-letter-head { padding: 14vh 24px 0; }
  .tl-letter-eyebrow { gap: 8px; font-size: 10px; margin-bottom: 36px; }
  .tl-letter-byline { flex-direction: column; align-items: stretch; gap: 16px; }
  .tl-byline-actions { justify-content: space-between; }
  .tl-letter-herowrap { padding: 36px 16px 0; }
  .tl-letter-body {
    padding: 56px 24px 0;
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .tl-letter-rail {
    position: static;
    max-height: none;
    order: 2;
  }
  .tl-prose p { font-size: 17px; }
  .tl-takeaways-item { font-size: 16px; }
  .tl-author-bio-inner { grid-template-columns: 60px 1fr; gap: 18px; }
  .tl-author-bio-avatar { width: 60px; height: 60px; }
  .tl-letter-more { padding: 8vh 24px 6vh; }
  .tl-letter-more-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Legal (Terms / Privacy) */
  .lg-hero { padding: 14vh 24px 6vh; }
  .lg-eyebrow { margin-bottom: 24px; }
  .lg-h1 { margin-bottom: 24px; }
  .lg-meta { gap: 12px; font-size: 9px; }
  .lg-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  .lg-toc {
    position: static;
    max-height: none;
  }
  .lg-content h2 { margin-top: 40px; }
  .lg-kv-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 18px;
  }
  .lg-callout { padding: 18px 18px; gap: 14px; }

  /* Letters archive (news/research) */
  .tl-letters-hero { padding: 14vh 24px 6vh; }
  .tl-letters-eyebrow { margin-bottom: 24px; }
  .tl-letters-title { margin-bottom: 24px; }
  .tl-letters-deck br { display: none; }

  .tl-letters-filters { padding: 0 24px 24px; }
  .tl-letters-filters-inner { padding-top: 14px; padding-bottom: 14px; }
  .tl-letters-pill { padding: 6px 12px; font-size: 9px; }

  .tl-letters-featured { padding: 8px 24px 36px; }
  .tl-feat { grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
  .tl-feat-text { gap: 14px; }

  .tl-letters-index { padding: 4vh 24px 12vh; }
  .tl-letters-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
}

@media (min-width: 540px) and (max-width: 900px) {
  .tl-letters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .tl-hero-eyebrow { font-size: 10px; }
  .tl-503-cap-3 { font-size: 9px; }
  .tl-pin-logo { height: 27px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .tl-hero-scroll, .tl-hero-scroll-rule::after { animation: none !important; }
  .tl-q-w { transition: none !important; opacity: 1 !important; transform: none !important; }
}
