/* =====================================================================
   Parlay Logic AI — Learn Center master article stylesheet.
   Every Learn article inherits this file. No per-article CSS.
   ===================================================================== */

:root {
  color-scheme: dark;
  --navy: #070b18;
  --black: #05060a;
  --purple: #8b5cf6;
  --purple-deep: #5b32c9;
  --gold: #f4b942;
  --white: #f8fafc;
  --text: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --glass: rgba(255, 255, 255, 0.035);
  --read: 900px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 8% -4%, rgba(139, 92, 246, 0.22), transparent 38rem),
    radial-gradient(circle at 96% 6%, rgba(244, 185, 66, 0.1), transparent 32rem),
    linear-gradient(180deg, #070b18 0%, #05060a 60%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(90deg, transparent 0 6%, rgba(139, 92, 246, 0.16) 6% 6.12%, transparent 6.12%),
    linear-gradient(0deg, transparent 0 14%, rgba(244, 185, 66, 0.08) 14% 14.1%, transparent 14.1%);
  background-size: 300px 260px;
}

h1, h2, h3, h4 {
  font-family: Sora, Manrope, sans-serif;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

p { margin: 0 0 1.15rem; }
a { color: #c4b5fd; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
code {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.9em;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  color: #e9d5ff;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ chrome */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: rgba(255, 255, 255, 0.06);
}
.reading-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  box-shadow: 0 0 14px rgba(244, 185, 66, 0.6);
  transition: width 0.12s linear;
}

.sitebar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 10, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.sitebar-inner {
  max-width: 1180px; margin: auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sitebrand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; }
.sitebrand img { width: 34px; height: 34px; }
.sitenav { display: flex; align-items: center; gap: 20px; }
.sitenav a { color: #cbd5e1; text-decoration: none; font-size: 0.86rem; font-weight: 600; }
.sitenav a:hover { color: var(--gold); }
.sitenav .join {
  background: linear-gradient(90deg, var(--purple), #a855f7);
  color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35);
}
.sitenav .join:hover { color: #fff; filter: brightness(1.08); }

.page { max-width: 1180px; margin: 0 auto; padding: 0 20px 80px; }

.crumbs { padding: 16px 0 6px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 0.78rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: rgba(148, 163, 184, 0.6); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--white); }

/* ------------------------------------------------------------ hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px; align-items: center;
  margin: 18px 0 40px; padding: 34px;
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.14), rgba(5, 6, 10, 0.6) 45%, rgba(244, 185, 66, 0.08));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(139, 92, 246, 0.45);
  color: #ddd6fe; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 18px 0 14px; }
.hero-sub { color: var(--gold); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 40ch; }
.hero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 18px; margin: 22px 0 0; }
.hero-meta div { min-width: 0; }
.hero-meta dt { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 2px 0 0; font-size: 0.86rem; font-weight: 700; color: var(--white); }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(139, 92, 246, 0.35)); }

/* ------------------------------------------------------------ quick answer */
.quick-answer {
  display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid rgba(244, 185, 66, 0.35); border-left: 5px solid var(--gold);
  border-radius: var(--radius); padding: 26px 28px; margin: 0 0 44px;
  background: linear-gradient(120deg, rgba(244, 185, 66, 0.1), rgba(139, 92, 246, 0.08));
}
.qa-icon { flex: 0 0 74px; }
.qa-icon svg { width: 74px; height: 74px; border-radius: 16px; }
.qa-label { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.qa-body p { margin: 0; font-size: 1.16rem; color: var(--white); line-height: 1.7; }

/* ------------------------------------------------------------ layout */
.article-grid { display: grid; grid-template-columns: 270px minmax(0, var(--read)); gap: 46px; align-items: start; justify-content: center; }
.article-column { min-width: 0; max-width: var(--read); }

.sidebar { position: sticky; top: 84px; display: grid; gap: 14px; }
.sidebar-panel { border: 1px solid var(--line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(12px); overflow: hidden; }
.sidebar-panel summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-panel summary::-webkit-details-marker { display: none; }
.sidebar-panel summary::after { content: "+"; color: var(--gold); font-weight: 800; }
.sidebar-panel[open] summary::after { content: "–"; }
.side-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.jumplinks { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 2px; }
.jumplinks a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 0.84rem; line-height: 1.4; }
.jumplinks a span { color: var(--purple); font-weight: 800; font-size: 0.72rem; min-width: 22px; }
.jumplinks a:hover { background: rgba(139, 92, 246, 0.14); color: var(--white); }
.side-progress { border-top: 1px solid var(--line); padding: 12px 22px 16px; display: flex; justify-content: space-between; align-items: center; }
.side-progress-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.side-progress strong { color: var(--gold); font-size: 0.9rem; }
.side-takeaways { margin: 0; padding: 0 22px 18px 34px; display: grid; gap: 10px; font-size: 0.85rem; }
.side-takeaways li::marker { color: var(--gold); }

/* ------------------------------------------------------------ sections */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.section-card {
  margin: 0 0 64px; padding: 32px clamp(20px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(10px);
  scroll-margin-top: 90px;
}
.section-head { display: flex; align-items: center; gap: 16px; }
.section-number {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(140deg, var(--purple), var(--purple-deep));
  color: #fff; font-family: Sora, sans-serif; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}
.section-icon { flex: 0 0 auto; width: 46px; height: 46px; }
.section-icon svg { width: 46px; height: 46px; border-radius: 12px; }
.section-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
.section-rule { height: 1px; margin: 20px 0 22px; background: linear-gradient(90deg, rgba(244, 185, 66, 0.6), rgba(139, 92, 246, 0.35), transparent); }

.direct-answer {
  border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0;
  background: rgba(244, 185, 66, 0.08); padding: 16px 20px; margin: 0 0 24px;
}
.direct-answer span { display: block; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 6px; }
.direct-answer p { margin: 0; color: var(--white); font-weight: 600; }

.section-body > * + * { margin-top: 1.1rem; }
.article-list { padding-left: 1.3rem; display: grid; gap: 0.55rem; }
.article-list li::marker { color: var(--purple); }
blockquote {
  margin: 0; padding: 18px 24px; border-left: 4px solid var(--purple);
  background: rgba(139, 92, 246, 0.09); border-radius: 0 16px 16px 0;
  font-size: 1.08rem; color: var(--white);
}
blockquote p:last-child { margin: 0; }
blockquote cite { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--muted); font-style: normal; }

.checklist { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: rgba(16, 185, 129, 0.06); }
.checklist h4 { margin: 0 0 10px; font-size: 1rem; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #34d399; font-weight: 800; }

/* ------------------------------------------------------------ insight cards */
.insight { border-radius: 18px; padding: 20px 22px; border: 1px solid; }
.insight-label { display: block; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; margin-bottom: 6px; }
.insight h4 { margin: 0 0 8px; font-size: 1.06rem; }
.insight p { margin: 0; }
.insight-purple { border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.1); }
.insight-purple .insight-label { color: #c4b5fd; }
.insight-gold { border-color: rgba(244, 185, 66, 0.4); background: rgba(244, 185, 66, 0.09); }
.insight-gold .insight-label { color: var(--gold); }
.insight-blue { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.09); }
.insight-blue .insight-label { color: #7dd3fc; }
.insight-green { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.09); }
.insight-green .insight-label { color: #6ee7b7; }

/* ------------------------------------------------------------ state pills */
.state-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.state-hold { color: #93c5fd; border-color: rgba(147, 197, 253, 0.45); background: rgba(59, 130, 246, 0.12); }
.state-watch { color: var(--gold); border-color: rgba(244, 185, 66, 0.45); background: rgba(244, 185, 66, 0.12); }
.state-actionable { color: #fca5a5; border-color: rgba(252, 165, 165, 0.45); background: rgba(239, 68, 68, 0.14); }
.state-cash-out-floor { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.4); background: rgba(56, 189, 248, 0.12); }
.state-original-stake-protection { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.45); background: rgba(139, 92, 246, 0.14); }
.state-maximum-upside-floor { color: #f0abfc; border-color: rgba(240, 171, 252, 0.4); background: rgba(217, 70, 239, 0.12); }
.state-guaranteed-profit { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.45); background: rgba(16, 185, 129, 0.14); }
.state-unavailable, .state-expired { color: var(--muted); border-color: var(--line); background: rgba(148, 163, 184, 0.1); }

/* ------------------------------------------------------------ tables */
.math-table { margin: 0; }
.table-title { font-family: Sora, sans-serif; color: var(--white); font-weight: 700; margin-bottom: 10px; font-size: 1.02rem; }
.table-scroll { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(7, 11, 24, 0.7); }
.math-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.math-table thead th {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.28), rgba(139, 92, 246, 0.1));
  color: #ede9fe; text-align: left; padding: 13px 16px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.math-table tbody th, .math-table td { padding: 13px 16px; border-top: 1px solid var(--line); text-align: left; font-weight: 500; color: var(--text); }
.math-table tbody th { color: var(--white); font-weight: 700; }
.math-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.math-table tbody tr:hover { background: rgba(139, 92, 246, 0.12); }
.math-table .row-total { background: rgba(244, 185, 66, 0.12) !important; }
.math-table .row-total th, .math-table .row-total td { color: var(--gold); font-weight: 800; }
.table-caption { margin: 10px 2px 0; font-size: 0.82rem; color: var(--muted); }

/* ------------------------------------------------------------ worked example */
.worked-example { border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 22px; padding: 26px; background: linear-gradient(150deg, rgba(139, 92, 246, 0.12), rgba(5, 6, 10, 0.5)); }
.worked-example header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.we-eyebrow { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.worked-example h3 { margin: 0; flex: 1 1 220px; font-size: 1.25rem; }
.we-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.we-cell { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: rgba(5, 6, 10, 0.55); }
.we-cell span { display: block; font-size: 0.64rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.we-cell strong { display: block; margin-top: 4px; color: var(--white); font-family: Sora, sans-serif; font-size: 1rem; line-height: 1.35; }
.we-verdict { margin: 18px 0 0; padding: 14px 18px; border-left: 4px solid var(--gold); background: rgba(244, 185, 66, 0.08); border-radius: 0 14px 14px 0; color: var(--white); }
.we-note { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }

/* ------------------------------------------------------------ alert preview */
.alert-preview { border: 1px solid rgba(244, 185, 66, 0.32); border-radius: 22px; padding: 24px; background: linear-gradient(160deg, rgba(7, 11, 24, 0.95), rgba(139, 92, 246, 0.1)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.alert-preview header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.22); }
.alert-kicker { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fca5a5; font-weight: 800; flex: 1; }
.alert-preview h3 { margin: 0 0 8px; font-size: 1.2rem; }
.alert-reason { color: var(--text); }
.alert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.alert-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; background: rgba(255, 255, 255, 0.03); }
.alert-row span { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.alert-row strong { color: var(--white); font-size: 0.92rem; }
.alert-cta { display: inline-block; padding: 11px 22px; border-radius: 999px; background: linear-gradient(90deg, var(--purple), #a855f7); color: #fff; font-weight: 800; font-size: 0.86rem; }
.alert-disclaimer { margin: 12px 0 0; font-size: 0.76rem; color: var(--muted); }

/* ------------------------------------------------------------ protection comparison */
.protection-comparison h3 { margin: 0 0 16px; font-size: 1.25rem; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.pc-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: rgba(255, 255, 255, 0.035); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.pc-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 18px 40px rgba(139, 92, 246, 0.22); }
.pc-recommended { border-color: rgba(244, 185, 66, 0.5); background: rgba(244, 185, 66, 0.08); }
.pc-flag { position: absolute; top: -11px; left: 16px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #21130a; font-size: 0.6rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.pc-card h4 { margin: 6px 0 10px; font-size: 1.05rem; }
.pc-card dl { display: grid; gap: 6px; margin: 14px 0; }
.pc-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; }
.pc-card dt { color: var(--muted); }
.pc-card dd { margin: 0; color: var(--white); font-weight: 700; text-align: right; }
.pc-card p { margin: 0; font-size: 0.88rem; }

/* ------------------------------------------------------------ decision timeline */
.decision-timeline { border: 1px solid rgba(139, 92, 246, 0.32); border-radius: 24px; padding: 28px; background: linear-gradient(170deg, rgba(139, 92, 246, 0.12), rgba(5, 6, 10, 0.7)); }
.dt-eyebrow { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.decision-timeline h3 { margin: 6px 0 12px; font-size: 1.32rem; }
.dt-intro { color: var(--text); }
.dt-list { list-style: none; margin: 18px 0 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 18px; }
.dt-list::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--purple), var(--gold)); opacity: 0.55; }
.dt-step { position: relative; }
.dt-marker { position: absolute; left: -26px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--black); border: 3px solid var(--gold); box-shadow: 0 0 14px rgba(244, 185, 66, 0.5); }
.dt-body { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: rgba(5, 6, 10, 0.55); }
.dt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dt-clock { font-family: ui-monospace, monospace; color: var(--gold); font-size: 0.84rem; }
.dt-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0; font-size: 0.78rem; color: var(--muted); }
.dt-facts strong { color: var(--white); }
.dt-changed, .dt-why { margin: 6px 0 0; font-size: 0.9rem; }
.dt-changed span, .dt-why span { display: block; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); font-weight: 800; }
.dt-why span { color: var(--gold); }

/* ------------------------------------------------------------ inline illustration */
.inline-illo { margin: 0; }
.inline-illo svg { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; border-radius: 20px; border: 1px solid var(--line); }
.inline-illo figcaption { margin-top: 10px; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* ------------------------------------------------------------ faq */
.faq { margin: 0 0 64px; }
.faq h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 20px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; gap: 14px; color: var(--white); font-weight: 700; font-family: Sora, sans-serif; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 16px 22px 20px; }
.faq-answer p { margin: 0; }

/* ------------------------------------------------------------ related */
.related { margin: 0 0 64px; }
.related h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.related-card { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: var(--glass); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.related-card:hover { transform: translateY(-5px); border-color: rgba(244, 185, 66, 0.45); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); }
.related-art svg { width: 100%; height: auto; border-radius: 14px; margin-bottom: 12px; }
.related-cat { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.related-card h3 { margin: 8px 0 10px; font-size: 1.02rem; color: var(--white); }
.related-meta { font-size: 0.78rem; color: var(--muted); }
.related-btn { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(139, 92, 246, 0.5); color: #ddd6fe; font-size: 0.78rem; font-weight: 700; }

/* ------------------------------------------------------------ cta */
.article-cta {
  text-align: center; border-radius: 26px; padding: 40px 30px; margin: 0 0 48px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(91, 50, 201, 0.85) 55%, rgba(244, 185, 66, 0.85));
  box-shadow: 0 26px 60px rgba(139, 92, 246, 0.3);
}
.cta-eyebrow { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: #21130a; font-weight: 900; }
.article-cta h2 { margin: 10px 0 12px; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.article-cta p { color: rgba(255, 255, 255, 0.92); max-width: 56ch; margin: 0 auto 22px; }
.cta-button { display: inline-block; padding: 14px 30px; border-radius: 999px; background: #05060a; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.cta-button:hover { color: var(--gold); }

/* ------------------------------------------------------------ article footer */
.article-footer { border-top: 1px solid var(--line); padding-top: 26px; }
.footer-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 18px; }
.footer-meta dt { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-meta dd { margin: 3px 0 0; font-size: 0.86rem; color: var(--white); font-weight: 600; }
.footer-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.footer-tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.72rem; color: var(--muted); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ghost-btn { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(139, 92, 246, 0.45); background: transparent; color: #ddd6fe; font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.ghost-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-disclaimer { font-size: 0.78rem; color: var(--muted); margin: 0; }

.sitefoot { border-top: 1px solid var(--line); background: rgba(5, 6, 10, 0.85); }
.sitefoot-inner { max-width: 1180px; margin: auto; padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.sitefoot a { color: var(--muted); text-decoration: none; }
.sitefoot a:hover { color: var(--gold); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sidebar { position: static; }
  .sidebar-panel[open] summary { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 22px; }
  .hero-art { order: -1; max-width: 320px; }
  .quick-answer { flex-direction: column; gap: 14px; padding: 22px; }
  .qa-icon svg { width: 56px; height: 56px; }
  .section-card { padding: 24px 18px; margin-bottom: 48px; }
  .sitenav { gap: 12px; }
  .sitenav a:not(.join) { display: none; }
  .cta-button, .alert-cta, .related-btn { display: block; width: 100%; text-align: center; }
  .ghost-btn { flex: 1 1 100%; }

  /* tables restack as cards */
  .math-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .math-table table, .math-table tbody, .math-table tr, .math-table th, .math-table td { display: block; width: 100%; }
  .math-table tbody tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .math-table tbody th, .math-table td { border: 0; padding: 6px 16px; display: flex; justify-content: space-between; gap: 16px; }
  .math-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
}

@media print {
  body { background: #fff; color: #111; }
  .sitebar, .sitefoot, .sidebar, .reading-progress, .article-cta, .footer-actions, .related { display: none !important; }
  .section-card, .hero, .quick-answer { border-color: #ccc; background: #fff; box-shadow: none; }
  h1, h2, h3, h4, .direct-answer p, .we-cell strong { color: #111; }
}
