/* Fantoss — Editorial Mint Scorecard Stylesheet
 * Loaded AFTER variables.css (Pitfall 23/37).
 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--background);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
h1 { font-size: 46px; line-height: 1.1; }
h2 { font-size: 32px; line-height: 1.16; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -100px; left: 8px; z-index: 9999;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-card); font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ---------- Header (utility masthead) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 250;
  background: var(--surface);
  border-bottom: var(--rule);
}
.masthead-top {
  background: var(--ink);
  color: #d4e7df;
  font-size: 12px;
  padding: 6px 0;
}
.masthead-top .container {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.masthead-top a { color: #ffd9b8; text-decoration: none; }
.masthead-top a:hover { color: #fff; text-decoration: underline; }
.masthead-top .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border: 1px solid #2c4a42; border-radius: var(--radius-pill);
}
.masthead-top .dot { width: 6px; height: 6px; background: var(--primary-300); border-radius: 50%; }
.masthead-top .dot.live { background: var(--accent); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.masthead-main {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: var(--radius-card);
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.primary-nav {
  display: flex; align-items: center; gap: 18px;
}
.primary-nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
  padding: 8px 4px; position: relative;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--primary); text-decoration: none; }
.primary-nav a.current { color: var(--primary); }
.primary-nav a.current::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: -2px;
  height: 2px; background: var(--primary);
}

.header-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: var(--radius-card);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em; border: 1px solid transparent;
  white-space: nowrap; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-700); border-color: var(--primary-700); color: #fff; text-decoration: none; }
.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-700); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-card);
  position: relative; z-index: 300;
}
.hamburger span {
  display: block; position: absolute; left: 10px; right: 10px;
  height: 2px; background: var(--ink); border-radius: 1px;
  transition: transform .2s, opacity .2s, top .2s;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.mobile-drawer {
  position: fixed; inset: 0; background: var(--surface);
  z-index: 220; padding: 88px 24px 24px;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y: auto; visibility: hidden;
}
.mobile-drawer.is-open { transform: translateX(0); visibility: visible; }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0 0 24px; }
.mobile-drawer ul li { border-bottom: var(--rule); }
.mobile-drawer ul a {
  display: block; padding: 14px 0; color: var(--ink); font-weight: 600; font-size: 17px;
  text-decoration: none;
}
.mobile-drawer ul a:hover { color: var(--primary); }
.mobile-drawer .drawer-cta { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Mobile sticky CTA bar (affiliate) ---------- */
.sticky-mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 230;
  background: var(--ink); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: none; gap: 8px; align-items: center; justify-content: space-between;
  border-top: 1px solid #2c4a42;
}
.sticky-mobile-cta .label {
  color: #d4e7df; font-size: 12px; line-height: 1.2; max-width: 50%;
}
.sticky-mobile-cta .label strong { color: #ffd9b8; display: block; font-size: 13px; }
.sticky-mobile-cta .btn { flex: 1; max-width: 60%; }
body.has-mobile-cta { padding-bottom: 76px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--surface);
  border-bottom: var(--rule);
  padding: 56px 0 48px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: 56px; line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 16px;
}
.hero h1 .accent { color: var(--primary); }
.hero h1 .display-rule {
  display: inline-block; border-bottom: 4px solid var(--accent); padding-bottom: 2px;
}
.hero-lede { font-size: 19px; color: var(--ink-soft); margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-size: 13px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .check { color: var(--primary); font-weight: 700; }

.hero-figure {
  position: relative;
}
.hero-figure img {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
.hero-trust {
  position: absolute; right: -16px; bottom: -16px;
  background: var(--ink); color: #fff; padding: 14px 16px; max-width: 220px;
  border-left: 4px solid var(--accent);
}
.hero-trust h4 { color: #fff; margin: 0 0 4px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-trust p { color: #cfe7df; font-size: 13px; margin: 0; line-height: 1.5; }

/* ---------- Score strip ---------- */
.score-strip {
  background: var(--surface-2);
  border-bottom: var(--rule);
  padding: 16px 0;
  overflow: hidden;
}
.score-strip-inner {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; align-items: center;
}
.score-card {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-left: 3px solid var(--primary);
  background: var(--surface); border-radius: var(--radius-card);
}
.score-card .flag {
  font-size: 11px; font-weight: 700; padding: 2px 6px;
  background: var(--accent-100); color: var(--accent-700);
  border-radius: var(--radius-card);
}
.score-card .label { font-size: 12px; color: var(--muted); }
.score-card .value { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.score-card .sub { font-size: 11px; color: var(--muted); }

/* ---------- Section primitives ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.paper { background: var(--surface); border-top: var(--rule); border-bottom: var(--rule); }
.section.band  { background: var(--surface-2); border-top: var(--rule); border-bottom: var(--rule); }
.section.ink   { background: var(--ink); color: #cfe7df; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section.ink a { color: #ffd9b8; }

.section-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 110px; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--border); margin: 0 0 -28px;
}
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 8px; display: block;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px;
}
.section-head h2 { margin: 0; max-width: 760px; }
.section-head .lead { color: var(--muted); max-width: 540px; }

/* ---------- Hub card grid ---------- */
.hub-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hub-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-card {
  display: block; padding: 22px;
  background: var(--surface); border: var(--rule); border-radius: var(--radius-card);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.hub-card:hover {
  border-color: var(--primary); text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}
.hub-card .eyebrow { font-size: 11px; color: var(--primary); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hub-card h3 { font-size: 22px; margin: 8px 0 10px; color: var(--ink); }
.hub-card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.hub-card .arrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Numbered lists ---------- */
.numbered-list { counter-reset: num; }
.numbered-list > li {
  list-style: none; counter-increment: num;
  display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 16px 0; border-top: var(--rule);
}
.numbered-list > li:first-child { border-top: none; }
.numbered-list > li::before {
  content: counter(num, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; color: var(--primary); letter-spacing: -0.02em;
  padding-top: 4px;
}

/* ---------- Stat tile rail ---------- */
.stat-rail {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-tile {
  background: var(--surface); border: var(--rule); border-radius: var(--radius-card);
  padding: 18px;
}
.stat-tile .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-tile .value { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--ink); line-height: 1.1; margin: 4px 0 4px; }
.stat-tile .delta { font-size: 12px; color: var(--primary); font-weight: 700; }
.stat-tile .delta.down { color: var(--accent-700); }

/* ---------- Data table ---------- */
.data-table-wrap {
  border: var(--rule); border-radius: var(--radius-card); overflow: hidden;
  background: var(--surface);
}
.data-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.data-table th, .data-table td {
  text-align: left; padding: 12px 14px; border-bottom: var(--rule);
  vertical-align: middle;
}
.data-table th {
  background: var(--surface-2); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- Evidence gallery (3+2 masonry) ---------- */
.evidence-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.evidence-gallery figure {
  margin: 0; background: var(--surface); border: var(--rule);
  border-radius: var(--radius-card); overflow: hidden;
}
.evidence-gallery figure img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.evidence-gallery figure figcaption {
  padding: 12px 14px; font-size: 13px; color: var(--muted);
}
.evidence-gallery .span-wide { grid-column: span 2; }
.evidence-gallery .span-wide img { aspect-ratio: 16/7; }

/* ---------- Comparison desk ---------- */
.comparison-desk { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 24px; }
.comparison-card {
  background: var(--surface); border: var(--rule); border-radius: var(--radius-card);
  padding: 22px;
}
.comparison-card.winner { border-color: var(--primary); border-width: 2px; position: relative; }
.comparison-card.winner::before {
  content: "RECOMMENDED"; position: absolute; top: -10px; right: 14px;
  background: var(--primary); color: #fff; font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 8px; border-radius: var(--radius-card); font-weight: 700;
}

/* ---------- News stream ---------- */
.news-stream { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  padding: 16px; background: var(--surface); border: var(--rule); border-radius: var(--radius-card);
  text-decoration: none; color: var(--ink);
}
.news-item:hover { border-color: var(--primary); text-decoration: none; }
.news-item .date { font-size: 12px; color: var(--muted); font-family: var(--font-display); font-weight: 700; }
.news-item .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-700); background: var(--accent-100);
  padding: 2px 8px; border-radius: var(--radius-card); margin-bottom: 6px;
}
.news-item h3 { font-size: 18px; margin: 4px 0 6px; }
.news-item p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: var(--rule); border-radius: var(--radius-card);
  padding: 0;
}
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-width: 0; overflow-wrap: anywhere;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--primary); font-family: var(--font-display); font-size: 22px; font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 18px 18px; color: var(--ink-soft); }

/* ---------- Asymmetric lead ---------- */
.asymmetric-lead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.asymmetric-lead .lead-art { position: relative; border: var(--rule); border-radius: var(--radius-card); overflow: hidden; }
.asymmetric-lead .lead-art img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.asymmetric-lead .lead-meta { display: grid; grid-template-rows: auto auto auto 1fr; gap: 14px; }
.asymmetric-lead .kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.asymmetric-lead .pullquote { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 22px; line-height: 1.3; border-left: 3px solid var(--accent); padding-left: 14px; }
.asymmetric-lead .byline { font-size: 13px; color: var(--muted); }

/* ---------- Trust footer ---------- */
.site-footer { background: var(--ink); color: #cfe7df; padding: 64px 0 32px; margin-top: 0; }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
}
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #cfe7df; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-blurb { font-size: 14px; line-height: 1.6; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #2c4a42;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12px; color: #8aa59d;
}
.disclaimer {
  background: var(--surface-3); border: var(--rule); border-radius: var(--radius-card);
  padding: 16px 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.5;
  margin-top: 24px;
}
.disclaimer strong { color: var(--ink); }

/* ---------- Page content shell ---------- */
.page-hero {
  background: var(--surface); border-bottom: var(--rule);
  padding: 48px 0 36px;
}
.page-hero .breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.page-hero .breadcrumbs a { color: var(--muted); }
.page-hero .breadcrumbs a:hover { color: var(--primary); }
.page-hero h1 { font-size: 44px; margin-bottom: 8px; max-width: 820px; }
.page-hero p { color: var(--ink-soft); font-size: 18px; max-width: 760px; }

.content {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px;
  align-items: start;
  padding-top: 32px;
}
.content > main { min-width: 0; }
.content > aside { position: sticky; top: 88px; }

.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 4px 0; }
.prose blockquote {
  border-left: 3px solid var(--accent); margin: 18px 0; padding: 6px 18px;
  color: var(--ink-soft); font-style: italic;
}
.prose img { border: var(--rule); border-radius: var(--radius-card); margin: 16px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 24px 0; }
.prose figure img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose .inline-image-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin: 24px 0; }
.prose .inline-image-row img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }

.section-index {
  background: var(--surface); border: var(--rule); border-radius: var(--radius-card);
  padding: 16px;
}
.section-index h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.section-index ul { list-style: none; padding: 0; margin: 0; }
.section-index li { margin: 4px 0; }
.section-index a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.section-index a:hover { color: var(--primary); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--ink); color: #cfe7df; padding: 36px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px; align-items: center;
  border-radius: var(--radius-card);
}
.cta-strip h2 { color: #fff; margin: 0 0 6px; }
.cta-strip p { color: #cfe7df; margin: 0; }
.cta-strip .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .asymmetric-lead { grid-template-columns: 1fr; }
  .comparison-desk { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { grid-template-columns: 1fr; }
  .content > aside { position: static; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .score-strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-strip { grid-template-columns: 1fr; }
  .section-num { font-size: 64px; margin-bottom: -16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .section { padding: 48px 0; }
}
@media (max-width: 720px) {
  .primary-nav, .header-cta .btn-ghost { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .sticky-mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
  .hero { padding: 32px 0 24px; min-height: 480px; max-height: 720px; }
  .hero h1 { font-size: 32px; }
  .hero-lede { font-size: 16px; line-height: 1.5; }
  .hero-trust { position: static; margin-top: 16px; max-width: 100%; }
  .hub-grid, .hub-grid.two, .evidence-gallery { grid-template-columns: 1fr; }
  .evidence-gallery .span-wide { grid-column: span 1; }
  .evidence-gallery .span-wide img { aspect-ratio: 16/10; }
  /* minmax(0,1fr) prevents content (long stat values) from forcing column past viewport (Pitfall stat-rail-news-430) */
  .stat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tile, .score-card { min-width: 0; }
  .stat-tile > *, .score-card > * { min-width: 0; overflow-wrap: anywhere; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .masthead-top .container { font-size: 11px; gap: 8px; }
  .section-num { font-size: 56px; margin-bottom: -12px; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .date { padding-bottom: 4px; }
  .cta-strip { padding: 24px; }
  .cta-strip .cta-row { flex-direction: column; }
  .cta-strip .btn { width: 100%; }
  /* Stop brand-tag 'Fantasy Cricket Reimagined' from stretching the brand block at narrow widths (header overflow root cause) */
  .brand-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
}
@media (max-width: 560px) {
  /* At ≤560 the 'Get Started' btn-primary competes with the hamburger for the right edge.
     Hide it earlier than the prior 420 cutoff so the 320–430 viewports fit comfortably. */
  .header-cta .btn-primary { display: none; }
}
@media (max-width: 420px) {
  .score-strip-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .header-cta .btn-primary { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .stat-rail { grid-template-columns: 1fr; }
  .masthead-top .container { flex-direction: column; align-items: flex-start; }
}
/* Mobile drawer safety: unbreakable menu strings must not overflow the viewport when the drawer is open. */
.mobile-drawer, .mobile-drawer ul, .mobile-drawer li, .mobile-drawer a {
  max-width: 100%;
  min-width: 0;
}
.mobile-drawer a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 720px) {
  .mobile-drawer { width: 100vw; max-width: 100vw; }
}