/* ===================================================
   BET ON SPORTS WITH BITCOIN — style.css
   Gen Z Maximalist · Acid Green on Dark · Fira Code
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&display=swap');

/* --- RESET & BASE ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #80ff00;
  --neon: #00ff00;
  --dark: #1f2617;
  --dark2: #272e1c;
  --dark3: #161c0f;
  --ink: #1f2617;
  --text: #e8f5d0;
  --text-muted: #a8c070;
  --border: #3a4a28;
  --rail-w: 220px;
  --rail-w-mobile: 60px;
  --transition: 0.18s ease;
  --radius: 4px;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Fira Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- SCREEN READER ONLY --------------------------- */
.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;
}

/* --- PAGE SHELL ----------------------------------- */
.page-shell {
  display: flex;
  min-height: 100vh;
}

/* --- LEFT RAIL NAV -------------------------------- */
.rail-nav {
  position: fixed;
  top: 0; left: 0;
  width: var(--rail-w);
  height: 100vh;
  background: var(--dark3);
  border-right: 2px solid var(--green);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 1rem;
}

.rail-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.rail-logo {
  display: block;
  border-radius: 50%;
  border: 2px solid var(--green);
}

.rail-logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  background: var(--dark2);
  border: 2px solid var(--green);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.05em;
}

/* Rail menu details/summary */
.rail-menu-details {
  flex: 1;
}

.rail-toggle {
  display: none; /* hidden on desktop; shown on mobile */
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  cursor: pointer;
  min-height: 44px;
  list-style: none;
}

.rail-toggle::-webkit-details-marker { display: none; }

.toggle-icon { font-size: 1.8rem; line-height: 1; }

.rail-links {
  list-style: none;
  padding: 0.75rem 0;
  display: block;
}

.rail-links li { display: block; }

.rail-links li a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.4;
  border-left: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.rail-links li a:hover,
.rail-links li a[aria-current="page"] {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(128, 255, 0, 0.07);
}

/* Rail CTA buttons */
.rail-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius);
  min-height: 44px;
  transition: filter var(--transition), transform var(--transition);
  text-align: center;
  cursor: pointer;
}

.cta:hover { filter: brightness(1.15); transform: translateY(-1px); }

.cta-signup {
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--green);
}

.cta-login {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

/* --- MAIN WRAP ------------------------------------ */
.main-wrap {
  margin-left: var(--rail-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

/* --- MARQUEE BAR ---------------------------------- */
.marquee-bar {
  background: var(--green);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.35rem 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --- HERO (HOME) ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark3);
  text-align: center;
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 700;
  color: rgba(128, 255, 0, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(150%) hue-rotate(20deg);
  z-index: 0;
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  border: 1px solid var(--green);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
}

.hero-h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2rem;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--green);
  transition: filter var(--transition), transform var(--transition);
  min-height: 48px;
}

.hero-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }

.hero-slant {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background: var(--dark);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

/* --- INNER HERO (non-home) ----------------------- */
.inner-hero {
  position: relative;
  background: var(--dark3);
  border-bottom: 2px solid var(--green);
  padding: 3.5rem 2rem 2.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.inner-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.inner-hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
  display: block;
}

/* Ranking decoration */
.rank-stickers-cluster {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 1;
  pointer-events: none;
}

.rank-sticker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--green);
  color: var(--ink);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius);
  margin: 0.15rem;
}

.rank-sticker--1 { transform: rotate(-3deg); font-size: 0.95rem; }
.rank-sticker--2 { transform: rotate(2deg); }
.rank-sticker--3 { transform: rotate(-1.5deg); }
.rank-sticker--4 { transform: rotate(3deg); font-size: 0.65rem; }
.rank-sticker--5 { transform: rotate(-2deg); font-size: 0.65rem; }

/* Compare VS badge */
.compare-vs-badge {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(128, 255, 0, 0.12);
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 1;
}

/* FAQ question mark */
.faq-q-mark {
  position: absolute;
  top: 0.5rem; right: 2rem;
  font-family: var(--font-mono);
  font-size: 7rem;
  font-weight: 700;
  color: rgba(128, 255, 0, 0.08);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

/* Review meta */
.review-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.review-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.review-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(150%);
  mix-blend-mode: screen;
}

.stage-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  background: var(--border);
  color: var(--green);
  border: 1px solid var(--green);
}

.stage-badge--awareness { background: rgba(0,255,0,0.1); }
.stage-badge--consideration { background: rgba(128,255,0,0.1); }
.stage-badge--decision { background: rgba(0,200,0,0.15); }

/* --- BYLINE --------------------------------------- */
.byline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.byline-author {
  color: var(--green);
  font-weight: 600;
}

.byline time { color: var(--text-muted); }

/* --- CONTENT LAYOUT ------------------------------- */
/* main > article.wrap > section > div (mandatory nesting) */
main {
  flex: 1;
  position: relative;
}

main > article.wrap {
  display: flex;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

main > article.wrap > section {
  flex: 1;
  min-width: 0;
}

main > article.wrap > section > div.prose {
  min-width: 0;
}

/* --- SIDEBAR (ASIDE) ------------------------------ */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  position: relative;
}

.aside-inner {
  position: sticky;
  top: 1.5rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.aside-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  display: block;
}

.aside-heading span { display: inline; }

.aside-heading--sm {
  margin-top: 1.2rem;
  font-size: 0.63rem;
}

.aside-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.aside-links li a {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  border-radius: var(--radius);
  transition: color var(--transition), text-decoration-color var(--transition), background var(--transition);
  min-height: 36px;
  line-height: 1.35;
}

.aside-links li a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
  background: rgba(128, 255, 0, 0.05);
}

.aside-sticker {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--green);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}

.aside-sticker--accent {
  background: var(--neon);
  transform: rotate(3deg);
}

.aside-trust {
  margin-top: 1rem;
  font-size: 0.65rem;
}

/* --- PROSE (BODY COPY) ---------------------------- */
.prose {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 75ch;
}

.prose h2 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  margin: 2.2rem 0 0.85rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.prose h2 > span { display: inline; }

.prose h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--neon);
  margin: 1.8rem 0 0.6rem;
  line-height: 1.35;
}

.prose h3 > span { display: inline; }

.prose p { margin-bottom: 1.1rem; }

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(128,255,0,0.5);
  transition: text-decoration-color var(--transition), color var(--transition);
}

.prose a:hover {
  color: var(--neon);
  text-decoration-color: var(--neon);
}

.prose ul, .prose ol {
  margin: 0 0 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.prose li { line-height: 1.65; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
  display: block;
}

.prose th {
  background: var(--dark3);
  color: var(--green);
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 2px solid var(--green);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.prose td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.prose tr:hover td { background: rgba(128,255,0,0.04); }

.prose blockquote {
  border-left: 3px solid var(--green);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(128,255,0,0.05);
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--green);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.prose strong { color: var(--green); font-weight: 700; }

/* --- SECTION LABEL -------------------------------- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

/* --- CHILD CARD ROW ------------------------------- */
/* Child-page list: row of sibling <a> blocks with <strong> inside */
.child-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 2rem;
}

.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 0.9rem 1rem 1.1rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--green);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-bottom-color var(--transition), transform var(--transition);
}

.child-card:hover {
  border-bottom-color: var(--neon);
  transform: translateY(-2px);
}

.child-card strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  display: block;
}

.child-card .card-desc {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- AUTHOR CARD ---------------------------------- */
.author-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.author-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-card-meta { flex: 1; }

.author-name {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.2rem;
  display: block;
}

.author-name span { display: inline; }

.author-credentials {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.author-bio {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

/* --- FOOTER --------------------------------------- */
.site-footer {
  background: var(--dark3);
  border-top: 2px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Footer nav: required direct child is a section/nav container */
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: block;
  border-radius: 50%;
  border: 2px solid var(--green);
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
}

.footer-blurb {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-trust-links {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.footer-trust-links a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-trust-links a:hover { color: var(--neon); }

.footer-links-col {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links-col li a {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  min-height: 44px;
  transition: color var(--transition);
}

.footer-links-col li a:hover { color: var(--green); }

/* Footer subscribe block */
.footer-subscribe {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.subscribe-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 240px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.55rem 0.75rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  outline: none;
  transition: border-color var(--transition);
  min-height: 44px;
}

.subscribe-form input[type="email"]:focus { border-color: var(--green); }

.subscribe-form button {
  padding: 0.55rem 1.1rem;
  background: var(--green);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: filter var(--transition);
}

.subscribe-form button:hover { filter: brightness(1.1); }

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

.rg-notice {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--border);
  letter-spacing: 0.02em;
}

/* --- STAGGER LIST ANIMATION ----------------------- */
.rail-links li {
  animation: staggerIn 0.25s ease both;
}

.rail-links li:nth-child(1) { animation-delay: 0.05s; }
.rail-links li:nth-child(2) { animation-delay: 0.10s; }
.rail-links li:nth-child(3) { animation-delay: 0.15s; }
.rail-links li:nth-child(4) { animation-delay: 0.20s; }
.rail-links li:nth-child(5) { animation-delay: 0.25s; }
.rail-links li:nth-child(6) { animation-delay: 0.30s; }

@keyframes staggerIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rail-links li { animation: none; }
}

/* --- JITTER MICRO INTERACTION --------------------- */
.aside-sticker:hover {
  animation: jitter 0.25s linear;
}

@keyframes jitter {
  0%   { transform: rotate(-4deg) translate(0,0); }
  25%  { transform: rotate(5deg) translate(2px,-2px); }
  50%  { transform: rotate(-3deg) translate(-2px,1px); }
  75%  { transform: rotate(4deg) translate(1px,-1px); }
  100% { transform: rotate(-4deg) translate(0,0); }
}

@media (prefers-reduced-motion: reduce) {
  .aside-sticker:hover { animation: none; }
}

/* --- MOBILE (≤768px) ------------------------------ */
@media (max-width: 768px) {

  .page-shell { flex-direction: column; }

  /* Rail becomes fixed top header on mobile */
  .rail-nav {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 2px solid var(--green);
    padding: 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    overflow: visible;
    flex-wrap: nowrap;
    z-index: 300;
  }

  .rail-brand {
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
  }

  /* Rail menu details: full width drawer */
  .rail-menu-details {
    flex: 1;
    position: relative;
  }

  .rail-toggle {
    display: flex;
    border-bottom: none;
    border-right: 1px solid var(--border);
    min-width: 44px;
    padding: 0.5rem 0.75rem;
  }

  /* The open menu slides down */
  .rail-menu-details[open] .rail-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: var(--dark3);
    border: 2px solid var(--green);
    border-top: none;
    z-index: 400;
    padding: 0.5rem 0;
  }

  .rail-links {
    display: none;
  }

  .rail-menu-details[open] .rail-links {
    display: block;
  }

  .rail-cta-group {
    flex-direction: row;
    padding: 0.4rem 0.6rem;
    border-top: none;
    border-left: none;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  .cta {
    padding: 0.4rem 0.6rem;
    font-size: 0.65rem;
    min-height: 44px;
    white-space: nowrap;
  }

  .main-wrap {
    margin-left: 0;
    margin-top: 60px; /* account for fixed rail height */
  }

  /* Hero on mobile */
  .hero { min-height: 85vh; }
  .hero-bg-text { display: none; }

  /* Content layout: stack prose + sidebar */
  main > article.wrap {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .sidebar {
    width: 100%;
  }

  .aside-inner { position: static; }

  /* Footer */
  .footer-nav { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer-subscribe {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .subscribe-form { min-width: 0; width: 100%; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Child cards: allow wrapping */
  .child-cards-row { gap: 0.75rem; }
  .child-card { min-width: 140px; }
}

/* --- VERY SMALL (≤400px) -------------------------- */
@media (max-width: 400px) {
  .hero-h1 { font-size: 1.3rem; }
  .inner-hero { padding: 2.5rem 1rem 1.75rem; }
  .prose h2 { font-size: 1.05rem; }
}

/* --- CONTENT IMAGES ------------------------------- */
.review-hero-img,
.hero-img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- UTILITY -------------------------------------- */
.prose--ranking table th:first-child { width: 3rem; }

/* Ensure h2/h3 in prose always have the span structure honored */
.prose h2 span,
.prose h3 span {
  display: inline;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}