/* PaperPicks site design system.
   Dark trading-terminal aesthetic: ink black, mint signal color,
   mono numerals, dot-grid texture, glow accents. Shared by every
   page on paperpicks.app. */

/* MARK: Fonts */

@font-face {
  font-family: "Inter Display";
  src: url("/fonts/inter-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("/fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "PP Mono";
  src: url("/fonts/robotomono-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* MARK: Tokens */

:root {
  --bg: #07080a;
  --surface: #0d0f13;
  --raised: #14171d;
  --mint: #28cc95;
  --mint-hi: #46eab4;
  --mint-dim: rgba(40, 204, 149, 0.14);
  --rose: #ff5165;
  --sky: #6aa6ff;
  --amber: #efa106;
  --text: #f2f5f7;
  --text2: #9ba3ab;
  --text3: #626a72;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --display: "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "PP Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shell: 1128px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
}

/* MARK: Base */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(40, 204, 149, 0.3); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* MARK: Type */

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--mint);
  opacity: 0.6;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .kicker { font-size: 10px; letter-spacing: 0.16em; }
  .kicker::before { width: 14px; }
}

.display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2.display { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.06; }

.grad {
  background: linear-gradient(92deg, var(--mint-hi) 0%, var(--mint) 45%, var(--sky) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead { color: var(--text2); font-size: 17px; line-height: 1.6; max-width: 58ch; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* MARK: Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--hairline-soft);
}
.site-head .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  box-shadow: 0 0 18px rgba(40, 204, 149, 0.22);
}
.brand em { color: var(--mint); font-style: normal; }
.site-head nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; font-weight: 500; color: var(--text2); }
.site-head nav a:hover { color: var(--text); }
.site-head nav .navlink { transition: color 0.15s ease; }
@media (max-width: 760px) { .site-head nav .navlink { display: none; } }

/* MARK: Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
  border: 0;
  font-family: var(--body);
}
.btn.primary {
  background: linear-gradient(180deg, var(--mint-hi), var(--mint));
  color: #04120c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 28px rgba(40, 204, 149, 0.28);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 36px rgba(40, 204, 149, 0.42); }
.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.btn.small { padding: 9px 16px; font-size: 13px; }
.btn .icon { width: 17px; height: 17px; }

/* MARK: Hero scaffolding */

.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap::before {
  /* dot grid, faded at the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 10%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 10%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-wrap::after {
  /* mint aurora */
  content: "";
  position: absolute;
  top: -340px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  background:
    radial-gradient(closest-side, rgba(40, 204, 149, 0.16), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(106, 166, 255, 0.08), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-wrap > * { position: relative; z-index: 1; }

/* MARK: Ticker tape */

.tape {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  background: rgba(13, 15, 19, 0.6);
  overflow: hidden;
  position: relative;
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.tape::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tape::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.tape-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: tape-scroll 60s linear infinite;
  will-change: transform;
}
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  border-right: 1px solid var(--hairline-soft);
  transition: background 0.15s ease;
}
a.tape-item:hover { background: rgba(40, 204, 149, 0.06); }
.tape-item b { color: var(--text); font-weight: 500; }
.tape-item .pct { color: var(--mint); font-weight: 500; }
.tape-item .pct.down { color: var(--rose); }
.tape-item .live-dot {
  width: 5px; height: 5px; border-radius: 99px; background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* MARK: Panels (cards with pointer glow) */

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)), var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), rgba(40, 204, 149, 0.09), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.panel:hover::before { opacity: 1; }
.panel > * { position: relative; }

/* MARK: Stats strip */

.stats { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.stats .row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-left: 1px solid var(--hairline-soft); }
.stat:first-child { border-left: 0; }
.stat .n { font-family: var(--mono); font-size: 27px; font-weight: 500; letter-spacing: -0.02em; }
.stat .n em { color: var(--mint); font-style: normal; }
.stat .l { font-size: 12px; color: var(--text3); margin-top: 5px; }
@media (max-width: 720px) {
  .stats .row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--hairline-soft); }
  .stat:nth-child(-n + 2) { border-top: 0; }
}

/* MARK: Bento grid */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bento .panel { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.bento .span3 { grid-column: span 3; }
.bento .span2 { grid-column: span 2; }
.bento .span4 { grid-column: span 4; }
.bento h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.bento p { font-size: 13.5px; line-height: 1.6; color: var(--text2); }
.bento .art { margin-top: auto; }
.bento .ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mint);
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .span3, .bento .span2, .bento .span4 { grid-column: span 2; }
}

/* MARK: Odds board (shared with /m pages) */

.board {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
}
.board .live { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.board .live .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--mint);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(40, 204, 149, 0.5); }
  100% { box-shadow: 0 0 0 16px rgba(40, 204, 149, 0); }
}
.board .kicker::before { display: none; }
.board h1, .board .board-title { font-family: var(--display); font-size: 21px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.board .row { padding: 10px 0; border-top: 1px solid var(--hairline-soft); }
.board .line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.board .name { font-size: 14.5px; font-weight: 600; }
.board .pct { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--mint); }
.board .track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); margin-top: 8px; overflow: hidden; }
.board .fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #17795a, var(--mint)); box-shadow: 0 0 10px rgba(40, 204, 149, 0.35); }
.board .boardmeta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text3); margin-top: 14px; }

/* MARK: Receipt (bet slip mock) */

.receipt {
  width: 330px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #ba0c2f 0%, #7d1024 34%, #12233f 78%, #00205b 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.receipt .inner {
  margin: 18px;
  border-radius: 15px;
  background: rgba(8, 9, 12, 0.74);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.receipt .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; }
.receipt .rule { height: 1px; background: rgba(255, 255, 255, 0.12); }
.receipt .r-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
.receipt .logo { color: var(--mint); font-family: var(--display); font-weight: 900; font-size: 13px; }
.receipt .market { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); padding: 12px 15px 0; }
.receipt .outcome { font-family: var(--display); font-size: 20px; font-weight: 900; letter-spacing: -0.01em; padding: 4px 15px 2px; }
.receipt .terms { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); padding: 0 15px 12px; }
.receipt .strip-tape {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(40, 204, 149, 0.08);
  border-top: 1px solid rgba(40, 204, 149, 0.25);
  border-bottom: 1px solid rgba(40, 204, 149, 0.25);
  padding: 6px 15px;
  white-space: nowrap; overflow: hidden;
}
.receipt .strip-tape b { color: var(--mint); font-weight: 500; }
.receipt .figures { display: flex; justify-content: space-between; padding: 13px 15px 15px; }
.receipt .cell .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.55); }
.receipt .cell .v { font-family: var(--mono); font-size: 22px; font-weight: 500; margin-top: 4px; }
.receipt .v.pay { color: var(--mint); }

/* MARK: Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step { padding: 26px; position: relative; counter-increment: step; }
.step::after {
  content: "0" counter(step);
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text3);
}
.step h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13.5px; line-height: 1.6; color: var(--text2); }
.step .glyph { color: var(--mint); margin-bottom: 14px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* MARK: Comparison table */

.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--hairline-soft); }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp thead th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); font-weight: 500; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { color: var(--text2); font-weight: 500; }
.cmp .you { background: rgba(40, 204, 149, 0.05); }
.cmp thead th.you { color: var(--mint); }
.cmp .yes { color: var(--mint); font-weight: 600; }
.cmp .no { color: var(--text3); }
.cmp .meh { color: var(--amber); }

/* MARK: FAQ */

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
@media (min-width: 900px) {
  .faq { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
}
.faq details {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(40, 204, 149, 0.3); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-size: 15px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--mint);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; font-size: 14px; line-height: 1.65; color: var(--text2); }
.faq .a a { color: var(--mint); }
.faq .a a:hover { text-decoration: underline; }

/* MARK: Sections */

section { padding: 76px 0 8px; }
.sec-head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }

/* MARK: Closer */

.closer { text-align: center; padding: 110px 0 120px; position: relative; overflow: hidden; }
.closer::before {
  content: "";
  position: absolute;
  bottom: -320px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(closest-side, rgba(40, 204, 149, 0.18), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
.closer > * { position: relative; }
.closer h2 { font-size: clamp(34px, 5.2vw, 56px); }
.closer p { color: var(--text2); margin: 16px auto 30px; max-width: 46ch; line-height: 1.6; }

/* MARK: Footer */

.foot { border-top: 1px solid var(--hairline-soft); padding: 44px 0 52px; background: rgba(13, 15, 19, 0.4); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text3); font-weight: 500; margin-bottom: 14px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot ul a { font-size: 13.5px; color: var(--text2); transition: color 0.15s ease; }
.foot ul a:hover { color: var(--text); }
.foot .blurb { font-size: 13px; color: var(--text3); line-height: 1.6; margin-top: 12px; max-width: 34ch; }
.foot .legal { font-size: 11.5px; color: var(--text3); line-height: 1.6; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline-soft); }
@media (max-width: 820px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* MARK: Prose (guide pages) */

.page-hero { padding: 64px 0 20px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); max-width: 21ch; }
.page-hero .lead { margin-top: 18px; }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 22px; display: flex; gap: 8px; text-transform: uppercase; }
.crumbs a { color: var(--text3); }
.crumbs a:hover { color: var(--mint); }

.prose { max-width: 720px; }
.prose h2 { font-family: var(--display); font-size: 26px; font-weight: 900; letter-spacing: -0.02em; margin: 46px 0 14px; line-height: 1.15; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 30px 0 10px; }
.prose p { font-size: 15.5px; line-height: 1.7; color: var(--text2); margin-bottom: 16px; }
.prose strong { color: var(--text); }
.prose a { color: var(--mint); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.prose li { font-size: 15px; line-height: 1.65; color: var(--text2); }
.prose li::marker { color: var(--mint); }
.prose .callout {
  border: 1px solid rgba(40, 204, 149, 0.25);
  background: rgba(40, 204, 149, 0.05);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 22px 0;
}
.prose .callout p { margin: 0; font-size: 14.5px; }
.prose .callout .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); display: block; margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 20px 0; }
.prose table th, .prose table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--hairline-soft); }
.prose table thead th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); font-weight: 500; }

/* Related-guides rail */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related .panel { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.related .panel .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text3); }
.related .panel h3 { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.related .panel p { font-size: 13px; color: var(--text2); line-height: 1.55; }
.related .panel .go { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--mint); }
@media (max-width: 820px) { .related { grid-template-columns: 1fr; } }

/* MARK: Article layout v2 (markdown pipeline) */

.article-band {
  background: rgba(13, 15, 19, 0.55);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 34px 0 26px;
}
.band-inner { max-width: 768px; }
.meta-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.meta-row .crumbs { margin-bottom: 0; }
.article-band h1 { font-size: clamp(28px, 3.8vw, 40px); }
.article-band .lead { margin-top: 14px; font-size: 16px; }
.byline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text3);
}
.byline .dot { opacity: 0.5; }
.byline time { color: var(--text2); }

.toc-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.chip {
  font-size: 12.5px; font-weight: 500;
  color: var(--text2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.chip.active {
  color: var(--mint-hi);
  border-color: rgba(40, 204, 149, 0.45);
  background: var(--mint-dim);
}
@media (max-width: 720px) {
  .toc-chips {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -24px; margin-right: -24px;
    padding-left: 24px; padding-right: 24px;
  }
  .toc-chips::-webkit-scrollbar { display: none; }
}

.article-col { max-width: 768px; padding-top: 34px; padding-bottom: 30px; }

.tldr {
  border-left: 2px solid rgba(40, 204, 149, 0.55);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 13px 16px;
  margin: 0 0 28px;
}
.tldr .tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mint);
  display: block; margin-bottom: 6px;
}
.tldr p { font-size: 14px; line-height: 1.6; color: var(--text2); margin: 0; }

.prose h2 .hlink {
  margin-left: 10px; color: var(--text3); opacity: 0;
  font-family: var(--mono); font-weight: 500; font-size: 0.8em;
  transition: opacity 0.15s ease;
}
.prose h2:hover .hlink { opacity: 1; }
.prose h2 .hlink:hover { color: var(--mint); text-decoration: none; }
.prose blockquote {
  border-left: 2px solid rgba(40, 204, 149, 0.5);
  padding: 4px 0 4px 18px;
  margin: 20px 0;
  color: var(--text2);
  font-size: 15px;
}
.prose code {
  font-family: var(--mono); font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline-soft);
  border-radius: 6px; padding: 1px 6px;
}
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 34px 0; }

figure.fig { margin: 26px 0; }
figure.fig img {
  width: 100%; height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
figure.fig.portrait { max-width: 320px; margin-left: auto; margin-right: auto; }
figure.fig.portrait img { border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
figure.fig figcaption {
  margin-top: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--text3); line-height: 1.5;
}
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.fig-pair figure.fig { margin: 0; }
@media (max-width: 640px) { .fig-pair { grid-template-columns: 1fr; } }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--surface);
  margin: 20px 0;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; margin: 0; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--hairline-soft); }
.table-wrap thead th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); font-weight: 500; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--text2); font-weight: 500; }

.sources {
  margin-top: 44px; padding: 20px 22px;
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--surface);
}
.sources-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 12px;
}
.sources ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.sources li { font-size: 13.5px; color: var(--text2); }
.sources .checked { margin: 14px 0 0; font-family: var(--mono); font-size: 11px; color: var(--text3); }

/* MARK: Reveal on scroll */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tape-track { animation: none; }
  html { scroll-behavior: auto; }
}
