/* Read Achilles — shared styles for homepage and archive pages.
   Issue pages keep their own inline styles; this file is for the site shell only.
   No external dependencies, no frameworks. */
:root {
  /* Dark-only site shell: native form controls (inputs, selects,
     scrollbars) render dark so they never flash light on dark pages. */
  color-scheme: dark;
  --bg: #0E1116;
  --card: #151A21;
  --card-2: #1B222B;
  --text: #E8EAED;
  --muted: #BAC3CD;
  --line: rgba(255, 255, 255, 0.07);
  --amber: #D29922;
  --accent: #56B4E9;
  --green: #3FB950;
  --red: #F85149;
  --line-strong: #3a3a3a;
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; }
.wrap { max-width: 860px; margin: 0 auto; padding: 32px 22px 64px; }

/* Global button system — every .btn gets the base; scoped variants
 * (.card .btn, .cta .btn) layer on top via higher specificity. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:10px 20px;border-radius:8px;border:1px solid transparent;
  background:var(--amber);color:#0E1116;font-size:14px;font-weight:700;cursor:pointer;
  text-decoration:none;white-space:nowrap;
  transition:filter .15s ease,border-color .15s ease,color .15s ease,background-color .15s ease}
.btn:hover{filter:brightness(1.12);text-decoration:none}
.btn:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
.btn:disabled{opacity:.5;cursor:not-allowed;filter:none}
/* .btn-ghost is self-sufficient (H8.4): bare `.btn-ghost` without `.btn`
 * used to render as plain text because it set only border-color
 * (border-style defaults to none, no padding). It now carries the full
 * button box so it looks like a button standalone or with .btn. */
.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:10px 20px;border-radius:8px;border:1px solid var(--line-strong);
  background:transparent;color:var(--text);font-size:14px;font-weight:700;cursor:pointer;
  text-decoration:none;white-space:nowrap;
  transition:filter .15s ease,border-color .15s ease,color .15s ease,background-color .15s ease}
.btn-ghost:hover{border-color:var(--amber);color:var(--amber);filter:none;text-decoration:none}
.btn-ghost:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
.btn-ghost:disabled{opacity:.5;cursor:not-allowed;filter:none}

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 28px; }
.masthead .brand { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); }
.masthead h1 { font-size: 38px; margin: 8px 0 4px; letter-spacing: -0.5px; }
.masthead .tagline { color: var(--muted); font-size: 16px; margin: 0; }
.masthead a.home { color: var(--amber); }

/* Newsletter cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.card h2 { font-size: 19px; margin: 0 0 4px; }
.card h2 a { color: var(--text); }
.card h2 a:hover { color: var(--accent); }
.card .lede { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.card .latest { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.card .latest a { font-weight: 600; }
.card .btn {
  display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 6px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text);
  font-size: 13px; font-weight: 600;
}
.card .btn:hover { border-color: var(--amber); color: var(--amber); text-decoration: none; }

/* Archive list */
.archive-head h1 { font-size: 30px; margin: 8px 0 4px; }
.archive-head p { color: var(--muted); margin: 0 0 20px; }
.issue-list { list-style: none; padding: 0; margin: 0; }
.issue-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.issue-list .date { font-weight: 700; font-size: 15px; }
.issue-list .meta { color: var(--muted); font-size: 13px; }
.back { display: inline-block; margin-bottom: 18px; font-size: 14px; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; }
footer.site p { color: var(--muted); font-size: 13px; }

/* Homepage CTA banner */
.cta {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid #D29922;
  border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 24px 28px; margin: 8px 0 8px; display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
/* MBTI banner sits outside <main>; constrain it to the education tab column width */
.cta.mbti-banner { max-width: 640px; margin: 8px auto 8px; text-align: center; justify-content: center; }
.cta.mbti-banner > div { width: 100%; }
.cta h2 { font-size: 22px; margin: 0; }
.cta p { color: var(--muted); font-size: 14.5px; margin: 4px 0 0; flex: 1 1 220px; }
.cta .btn {
  display: inline-block; padding: 10px 20px; border-radius: 6px; background: var(--amber);
  color: #0E1116; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.cta .btn:hover { filter: brightness(1.1); text-decoration: none; }

/* Brand logo */
.brand-row { display: flex; align-items: center; gap: 16px; }
/* Logo: standard asset is logo-icon.png (transparent). Sizing: 44px on
 * desktop, SMALLER (36px) on narrow screens — the old query grew it to
 * 52px on mobile, which was backwards. */
.logo-mark { height: 44px; width: auto; display: block; flex: none; }
.brand-lg { font-size: 36px !important; letter-spacing: 2px !important; }
@media (max-width: 680px) {
  .logo-mark { height: 36px; }
  .brand-lg { font-size: 22px !important; }
}

/* Shared global nav (H8.1): one consistent site nav on every shell page
 * (homepage, archives). Issue pages get the same link set via
 * inject_issue_chrome.py (their nav is inline-styled, not this class). */
.site-global-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.site-global-nav a { color: var(--text); font-size: 14px; font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.site-global-nav a:hover { color: var(--amber); text-decoration: none; }
.site-global-nav a[aria-current="page"] { color: var(--amber); }

/* Phone breakpoint: 375–414px phones previously got desktop wrap padding.
 * 640px rule first so the 360px rule below still wins on the smallest phones. */
@media (max-width: 640px) {
  .wrap { padding: 24px 16px 48px; }
}

/* Narrow-phone breakpoint (was missing below 360px): keep the shell
 * readable on 320–360px devices. */
@media (max-width: 360px) {
  .wrap { padding: 20px 14px 48px; }
  .masthead h1 { font-size: 30px; }
  .brand-lg { font-size: 20px !important; }
  .site-global-nav { gap: 2px 12px; }
  .site-global-nav a { font-size: 13px; }
  .cta { padding: 18px 16px; }
}

/* Homepage tabs */
.tabs { display: flex; gap: 4px; margin: 18px 0 26px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 600; min-height: 44px;
  padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px; }
/* Tab-row links (MBTI / Profile): plain links styled as tabs. Separate class
 * so tab JS (which selects .tab / [data-tab]) never treats them as panels. */
.tab-link { background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 600; min-height: 44px;
  padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.tab:hover, .tab-link:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--amber); }
.tab:focus-visible, .tab-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.coming-soon { border: 1px solid var(--line); border-radius: 12px; padding: 40px 32px;
  text-align: center; background: var(--card); }
.coming-soon h2 { margin: 0 0 12px; font-size: 24px; }
.coming-soon p { color: var(--muted); max-width: 520px; margin: 0 auto 12px; }

/* Trading Simulation signup form */
.signup-form { max-width: 420px; margin: 28px auto 0; text-align: left;
  border-top: 1px solid var(--line); padding-top: 24px; }
.signup-form h3 { margin: 0 0 16px; font-size: 17px; text-align: center; }
.signup-form label { display: block; margin-bottom: 14px; }
.signup-form label > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.signup-form input[type="text"], .signup-form input[type="email"], .signup-form select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 15px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; }
.signup-form input:focus, .signup-form select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.signup-form .btn { width: 100%; margin-top: 4px; }
.signup-form .form-note { text-align: center; margin-top: 12px; font-size: 13px; }
.signup-form .form-msg { text-align: center; min-height: 20px; font-size: 14px; margin: 8px 0 0; }
.form-msg.ok { color: #3FB950; }
.form-msg.err { color: #F85149; }

/* Trend Indicators cards */
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; text-align: left; }
.trend-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: rgba(255,255,255,.02); }
.trend-card h3 { margin: 0 0 10px; font-size: 17px; }
.trend-card .hook { color: var(--text); font-size: 14px; margin: 0 0 12px; }
.trend-card .why-care { color: var(--muted); font-size: 13px; font-style: italic; margin: 12px 0 0; }
.signal-preview { border-left: 2px solid var(--amber); background: rgba(210,153,34,.06); border-radius: 0 8px 8px 0; padding: 12px 14px; }
.signal-preview p { color: var(--muted); font-size: 13.5px; margin: 0; }
.signal-preview .src { font-size: 13px; opacity: .75; margin-top: 8px; }
.signal-preview .src a { color: var(--amber); }
.signal-preview .spark { display: block; width: 100%; height: 48px; margin-top: 10px; }
.signal-preview .spark polyline { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signal-preview .spark polygon { fill: rgba(210,153,34,.12); stroke: none; }
.preview-badge { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--amber); margin-bottom: 8px !important; }
.eyebrow { margin: 0 0 8px; }
.hype-sub { font-size: 16px; color: var(--text); max-width: 620px; margin: 0 auto 8px; }
.cadence { font-size: 13px; color: var(--amber); font-weight: 600; margin-bottom: 8px; }
.coverage { border: none; padding: 0; margin: 0 0 14px; }
.coverage legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.coverage .check { display: block; font-size: 14px; margin-bottom: 8px; cursor: pointer; }
.coverage .check input { margin-right: 8px; accent-color: var(--amber); }
.beta-wire { font-size: 13px; margin: 0 0 16px; }
.drop-zero { max-width: 560px; margin: 28px auto 0; text-align: left; border-top: 1px solid var(--line); padding-top: 24px; }
.drop-zero .drop-kicker { color: #3FB950; font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.drop-zero h3 { margin: 0 0 16px; font-size: 20px; text-align: center; }
.drop-signal { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; background: rgba(255,255,255,.02); }
.drop-signal h4 { margin: 0 0 8px; font-size: 15px; color: var(--amber); }
.drop-signal p { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.drop-signal .src { font-size: 13px; color: var(--muted); opacity: .75; }
.drop-footnote { font-size: 13px; text-align: center; margin-top: 16px; }

/* Trend Indicators — Redacted Dossier */


.hero-capture { margin-top: 20px; }
.unlock-row { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.unlock-row input[type="email"] { flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text); font-size: 15px; }
.unlock-row input[type="email"]::placeholder { color: var(--muted); opacity: .7; }
.unlock-row input[type="email"]:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.unlock-row .btn { white-space: nowrap; }
.dossier-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dossier-top h3 { margin: 0; }
.sig-badge { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--amber); border: 1px solid rgba(210,153,34,.5); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.trend-card.dossier .src { font-size: 13px; color: var(--muted); opacity: .8; margin: 10px 0 0; }
.trend-card.dossier .src a { color: var(--amber); }
.trend-card.dossier > p { color: var(--muted); font-size: 14px; }
.take-wrap { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.take.blurred { filter: blur(6px); user-select: none; pointer-events: none; color: var(--text); font-size: 14px; }
#dossier-grid.unlocked .take.blurred { filter: none; user-select: text; pointer-events: auto; }
.unlock-link { display: inline-block; margin-top: 10px; background: none; border: none; color: var(--amber); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
#dossier-grid.unlocked .unlock-link { display: none; }

/* Trend Indicators — countdown (editorial spec: Meta PM + LVMH approved 10/10) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.countdown-module { --cd-gold: #d29922; --cd-white: #f5f5f7; --cd-muted: #8e95a2;
  display: flex; flex-direction: column; align-items: center; margin: 12px auto 28px; width: 100%; max-width: 420px; }
.cd-header { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.beacon { position: relative; width: 6px; height: 6px; display: inline-flex; align-items: center; justify-content: center; }
.beacon-core { width: 5px; height: 5px; border-radius: 50%; background-color: var(--cd-gold); }
.beacon-ring { position: absolute; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--cd-gold); opacity: .8; animation: beacon-pulse 2.2s cubic-bezier(.215,.61,.355,1) infinite; }
.cd-title { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--cd-gold); text-transform: uppercase; }
.cd-display { display: flex; align-items: flex-start; justify-content: center; width: 100%; }
.cd-unit { display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 44px; }
.cd-val { font-size: clamp(1.875rem, 6.5vw, 2.5rem); font-weight: 500; line-height: 1; color: var(--cd-white);
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
.cd-lbl { margin-top: 8px; font-size: 9px; font-weight: 600; line-height: 1; letter-spacing: .18em; color: var(--cd-muted); text-transform: uppercase; }
.cd-sep { flex: 0 0 auto; font-size: clamp(1.25rem, 4.5vw, 1.75rem); font-weight: 200; line-height: 1.1; color: var(--cd-gold); opacity: .45; user-select: none; }
.cd-live { display: none; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--cd-gold); }
.cd-live span:last-child { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--cd-white); text-transform: uppercase; }
.countdown-module.is-live .cd-display, .countdown-module.is-live .cd-header { display: none; }
.countdown-module.is-live .cd-live { display: inline-flex; }
@keyframes beacon-pulse { 0% { transform: scale(.6); opacity: .9; } 70% { transform: scale(1.8); opacity: 0; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .beacon-ring { animation: none; display: none; } }
@media (max-width: 360px) { .cd-unit { min-width: 38px; } .cd-val { font-size: 30px; } }
.hero-capture .btn { width: auto; margin-top: 0; }

/* Quick wins: editorial serif + capture bar + inline unlock */
.brand, .brand-lg, .coming-soon h2, .card h2, .cta h2, .archive-head h1 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
}
.masthead-capture { display: flex; gap: 8px; max-width: 460px; margin: 14px auto 0; }
.masthead-capture input[type="email"] { flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 15px; }
.masthead-capture input[type="email"]:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.masthead-capture .btn { white-space: nowrap; }
.masthead-capture .form-msg { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; }
.masthead-capture { flex-wrap: wrap; }
.capture-note { text-align: center; font-size: 13px; margin: 6px 0 0; }
.inline-unlock { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.inline-unlock input[type="email"] { flex: 1; min-width: 140px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--text); font-size: 14px; }
.inline-unlock input[type="email"]:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.inline-unlock .btn { padding: 9px 16px; font-size: 14px; }
.inline-unlock .form-msg { flex-basis: 100%; margin: 0; font-size: 13px; }
.unlocked-note { font-size: 13px; color: var(--amber); font-weight: 600; margin: 10px 0 0; }

@media (min-width: 641px) {
  .tab { white-space: nowrap; }
}

/* ---- Footer nav (J3/J8) ---- */
.footnav { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.footnav a { color: var(--muted); text-decoration: none; }
.footnav a:hover { color: var(--text); }

/* ---- Education tab lesson ---- */
.edu-tab { max-width: 640px; margin: 0 auto; text-align: center; }
.edu-tab .eyebrow { font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin: 0 0 12px; }
.edu-tab h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 32px; line-height: 36px; margin: 0 0 12px; }
.edu-tab .hype-sub { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.edu-tab .hook-taste { font-family: 'Newsreader', Georgia, serif; font-size: 21px; line-height: 30px; color: var(--text); max-width: 520px; margin: 0 auto 28px; }
.edu-tab .hook-taste .quiet { font-family: inherit; font-size: 15px; }
.edu-tab .btn {
  display: inline-block; padding: 12px 28px; border-radius: 6px; background: var(--amber);
  color: #0E1116; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.edu-tab .btn:hover { filter: brightness(1.1); text-decoration: none; }
.edu-tab-lesson { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 32px 24px; text-align: left; }
.edu-tab .predict-q { font-size: 17px; line-height: 26px; color: var(--text); margin: 0 0 16px; }
.edu-tab .opts { display: flex; gap: 8px; margin: 0 0 8px; }
.edu-tab .opt { flex: 1; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 2px; color: var(--text);
  font-size: 15px; cursor: pointer; transition: border-color 320ms cubic-bezier(.2,0,0,1); }
.edu-tab .opt:hover { border-color: var(--text); }
.edu-tab .opt.selected { border: 2px solid var(--amber); color: var(--amber); }
.edu-tab .opt .tickmark { color: var(--amber); }
.edu-tab .opt.answered { border-color: var(--amber); }
.edu-tab .opt.dimmed { color: var(--muted); opacity: .55; }
.edu-tab .opt .answerline { display: block; font-size: 13px; line-height: 16px; color: var(--text); }
.edu-tab .opt[aria-disabled="true"] { cursor: not-allowed; }
.edu-tab .opt[aria-disabled="true"]:hover { border-color: var(--line); }
.edu-tab .opt.selected[aria-disabled="true"]:hover { border-color: var(--amber); }
.edu-tab .statusline { font-size: 13px; letter-spacing: .04em; color: var(--text); min-height: 16px; margin: 12px 0; }
.edu-tab .see-line { font-size: 17px; line-height: 26px; color: var(--text); margin: 12px 0; }
.edu-tab .live-label { font-size: 13px; letter-spacing: .04em; color: var(--muted); margin: 16px 0 4px; text-transform: uppercase; }
.edu-tab .huge { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 72px; line-height: 1;
  color: var(--amber); font-variant-numeric: tabular-nums lining-nums; min-width: 5ch; display: block; margin: 0 0 8px; }
.edu-tab .ctl label { font-size: 13px; letter-spacing: .04em; color: var(--text); display: block; margin-bottom: 8px; }
.edu-tab input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.edu-tab input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--line); }
.edu-tab input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--text); margin-top: -13.5px; border: none; }
.edu-tab input[type="range"]::-moz-range-track { height: 1px; background: var(--line); }
.edu-tab input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--text); border: none; }
.edu-tab input[type="range"]:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.edu-tab .ticks { position: relative; height: 1.5em; margin-top: 4px; }
.edu-tab .ticks span { position: absolute; transform: translateX(-50%); font-size: 13px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.edu-tab .formula { font-size: 15px; color: var(--muted); margin: 16px 0 8px; }
.edu-tab .meat { font-size: 17px; line-height: 26px; color: var(--muted); margin: 0 0 12px; }
.edu-tab .takeaway { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 22px; line-height: 28px; color: var(--amber); margin: 0 0 8px; }
.edu-tab .handoff { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.edu-tab .progress { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.edu-tab .teaser { font-size: 14px; color: var(--muted); font-style: italic; margin: 8px 0 16px; }
.edu-tab .quiet { color: var(--muted); font-size: 14px; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.edu-tab .quiet:hover { color: var(--text); }
.edu-tab .cfa-tab-card{margin-top:20px;background:var(--card);border:1px solid var(--line);border-left:4px solid #D29922;border-radius:10px;box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);padding:24px 28px;}
.edu-tab .cfa-tab-card p{margin:0 0 10px;font-size:15px;line-height:24px;}
.edu-tab .cfa-tab-card .dim{font-size:13px;color:var(--muted);}
.edu-tab [data-browserow] { margin: 16px 0 0; }
.edu-tab [data-replayrow] { margin: 16px 0 0; }
/* JS-gated visibility: hidden until the script reveals (no flash, no-JS keeps content) */
.js [data-tick], .js [data-learn], .js [data-handoff] { display: none; }
.js .te-show { display: block; }
.js span.te-show { display: inline; }
/* correct-guess beat */
@keyframes te-pop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes te-pulse { 0% { filter: brightness(1); } 50% { filter: brightness(1.35); } 100% { filter: brightness(1); } }
.edu-tab .opt.pop .tickmark { display: inline-block; animation: te-pop 200ms; }
.edu-tab .huge.pulse { animation: te-pulse 150ms; }
@media (prefers-reduced-motion: reduce) {
  .edu-tab .opt.pop .tickmark, .edu-tab .huge.pulse { animation: none; }
  .edu-tab .opt { transition: none; }
}
/* focus never boxed on programmatic panel focus */
.tab-panel:focus:not(:focus-visible), .tab-panel h2:focus:not(:focus-visible) { outline: none; }

/* ---- Mobile tab bar: four short labels, dot, overflow fade (§11) ---- */
.tl-short { display: none; }
@media (max-width: 640px) {
  .tl-full { display: none; }
  .tl-short { display: inline-flex; align-items: center; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 2px; scroll-padding-inline-end: 24px; padding-inline-end: 24px; }
  .tabs.is-overflowing:not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; white-space: nowrap; font-size: 14px; padding: 10px 10px; min-height: 44px; }
  .edu-tab .huge { font-size: 48px; }
  .edu-tab-lesson { padding: 24px 16px; }
}

/* 500-bot fixes (2026-10-13): skip link, SVG overflow guard, table scroll wrapper,
   masthead brand link. */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--amber); color: #0E1116; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; z-index: 100; }
.skip-link:focus { position: absolute; left: 0; top: 0; }
svg { max-width: 100%; height: auto; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.masthead h1.brand { margin: 0; }
.masthead h1 a { color: inherit; text-decoration: none; }
.masthead h1 a:hover { color: inherit; text-decoration: none; }
