/* ============================================================
   Parlay App Hub — Editorial Grid stylesheet
   Varela Round (headings) + Nunito Sans (body)
   Primary: #000 / Secondary: #fff / Ink: #000
   ============================================================ */

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

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: #111;
  background: #fff;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Varela Round', system-ui, sans-serif;
  line-height: 1.2;
  color: #000;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-top: 2rem; margin-bottom: 0.4rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-top: 1.5rem; margin-bottom: 0.3rem; }
h4 { font-size: 1.05rem; margin-top: 1.2rem; }

p { margin-bottom: 1.1rem; }
a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  border-left: 4px solid #000;
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
  font-style: italic;
  background: #f7f7f7;
  border-radius: 0 6px 6px 0;
}

figure { margin: 1.5rem 0; }
figcaption { font-size: 0.82rem; color: #555; margin-top: 0.4rem; }

img { max-width: 100%; height: auto; display: block; border-radius: 6px; }

table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
th { background: #000; color: #fff; padding: 0.6rem 0.8rem; text-align: left; font-family: 'Varela Round', sans-serif; }
td { padding: 0.55rem 0.8rem; border-bottom: 1px solid #e5e5e5; }
tr:nth-child(even) td { background: #fafafa; }

/* ---- Dot-matrix texture ---- */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #ccc 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* ---- Site wrapper ---- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #000;
  color: #fff;
  border-bottom: 2px solid #333;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  font-family: 'Varela Round', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.brand:hover { opacity: 0.85; }

/* Primary nav */
.primary-nav {
  flex: 1;
  overflow: hidden;
}

.primary-nav p {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav p::-webkit-scrollbar { display: none; }

.primary-nav p a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.55rem;
  white-space: nowrap;
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}

.primary-nav p a:hover,
.primary-nav p a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* CTA buttons */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Varela Round', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  min-height: 44px;
  padding: 0 0.9rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cta-signup {
  background: #fff;
  color: #000;
  border: 2px solid #fff;
}
.cta-signup:hover { background: #e0e0e0; border-color: #e0e0e0; color: #000; opacity: 1; }

.cta-login {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cta-login:hover { background: rgba(255,255,255,0.1); opacity: 1; }

/* ---- Hero sections ---- */
.hero--home,
.page-hero {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.hero--home {
  min-height: 45vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.hero-icon {
  flex-shrink: 0;
}

.hero-icon svg { display: block; filter: drop-shadow(0 2px 8px rgba(255,255,255,0.15)); }

.hero-copy {
  flex: 1;
}

.hero-copy h1 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.hero-lead {
  color: #ccc;
  font-size: 1.05rem;
  max-width: 540px;
}

.page-hero {
  min-height: 38vh;
  display: flex;
  align-items: center;
}

.page-hero--ranking { background: #000; }
.page-hero--compare { background: #111; }
.page-hero--review  { background: #0a0a0a; }
.page-hero--faq     { background: #000; }
.page-hero--inner   { background: #111; }
.page-hero--data    { background: #000; }

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
  text-align: center;
}

.page-hero-inner h1 { color: #fff; margin-bottom: 0.5rem; }

.page-hero-inner .subtitle {
  color: #bbb;
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 0;
}

.eyebrow {
  display: inline-block;
  font-family: 'Varela Round', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #fff;
  color: #000;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

/* ---- Byline ---- */
.byline {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0.4rem 0 0.5rem;
}
.byline strong { color: #ddd; }
.byline time { color: #aaa; }

/* ---- Content sections ---- */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  width: 100%;
}

.layout-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas: "primary aside";
  gap: 3rem;
  align-items: start;
}

.content-primary {
  grid-area: primary;
  min-width: 0;
}

.content-aside {
  grid-area: aside;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---- Body copy ---- */
.body-copy {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 72ch;
}

.body-copy > p:first-child::first-letter,
.drop-cap > p:first-child::first-letter {
  font-family: 'Varela Round', sans-serif;
  font-size: 3.4rem;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em 0 0;
  color: #000;
  font-weight: 700;
}

.body-copy a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.body-copy h2 { margin-top: 2.2rem; }
.body-copy h3 { margin-top: 1.8rem; }

/* Subtitle / subhead pattern: h2 + p.subtitle */
p.subtitle {
  color: #555;
  font-size: 0.95rem;
  margin-top: -0.2rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ---- Compare strip ---- */
.compare-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem 0.8rem;
  background: #000;
  color: #fff;
  border-radius: 6px;
}

.compare-vs-label {
  font-family: 'Varela Round', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Aside widgets ---- */
.aside-widget {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-bottom: 4px solid #000;
  border-radius: 10px;
  padding: 1.2rem 1.1rem;
}

.aside-heading {
  font-family: 'Varela Round', sans-serif;
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 0.2rem;
  color: #000;
  letter-spacing: 0.01em;
}

.aside-sub {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.aside-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aside-links li { margin-bottom: 0; border-bottom: 1px solid #eee; }
.aside-links li:last-child { border-bottom: none; }

.aside-links a {
  display: block;
  padding: 0.5rem 0;
  color: #000;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}
.aside-links a:hover { opacity: 0.6; text-decoration: underline; }

.verdict-lead {
  font-size: 0.9rem;
  color: #333;
  font-style: italic;
  border-left: 3px solid #000;
  padding-left: 0.7rem;
  margin: 0;
}

/* ---- Accent cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0 2rem;
}

.accent-card {
  border: 1px solid #e0e0e0;
  border-bottom: 4px solid #000;
  border-radius: 10px;
  padding: 1.1rem 1rem;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.accent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.09);
}

.accent-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.accent-card h3 a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}
.accent-card h3 a:hover { text-decoration: underline; opacity: 1; }

.accent-card p { font-size: 0.88rem; color: #444; margin-bottom: 0.5rem; }

.card-date { font-size: 0.78rem; color: #888; }

/* ---- Featured cards section ---- */
.featured-cards { margin: 2.5rem 0; }
.all-pages { margin: 2rem 0; }

/* ---- Child list (ol > li > a + small pattern) ---- */
.child-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  counter-reset: child-counter;
}

.child-list li {
  counter-increment: child-counter;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  grid-template-rows: auto auto;
  gap: 0 0.6rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e8e8e8;
  align-items: start;
}

.child-list li:last-child { border-bottom: none; }

.child-list li::before {
  content: counter(child-counter);
  font-family: 'Varela Round', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #000;
  color: #fff;
  border-radius: 50%;
  margin-top: 0.1rem;
}

.child-list li a {
  grid-column: 2;
  grid-row: 1;
  font-weight: 700;
  color: #000;
  font-size: 0.98rem;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.child-list li a:hover { text-decoration: underline; }

.child-list li small {
  grid-column: 2;
  grid-row: 2;
  color: #666;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ---- Author section ---- */
.author-section {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #000;
  border-radius: 0 10px 10px 0;
  background: #fafafa;
}

.author-section h2 { margin-top: 0; }
.author-name { font-size: 1rem; margin: 0.6rem 0 0.5rem; }
.author-bio { font-size: 0.92rem; color: #333; line-height: 1.65; margin: 0; }

/* ---- FAQ body ---- */
.faq-body details {
  border-bottom: 1px solid #e8e8e8;
  padding: 0.5rem 0;
}

.faq-body details summary {
  cursor: pointer;
  font-weight: 700;
  font-family: 'Varela Round', sans-serif;
  padding: 0.6rem 0;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-body details summary::-webkit-details-marker { display: none; }

.faq-body details[open] summary { color: #000; }

/* ---- Hero figure ---- */
.hero-figure { margin: 1.2rem auto 0; max-width: 480px; }
.hero-img { border-radius: 8px; }

/* ---- Footer ---- */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  margin-top: auto;
  border-top: 3px solid #222;
}

.footer-brand {
  font-family: 'Varela Round', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.footer-links {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #bbb;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.2rem;
}
.footer-links a:hover { color: #fff; opacity: 1; }

.rg-notice {
  display: block;
  font-size: 0.78rem;
  color: #888;
  max-width: 560px;
  margin: 0 auto 0.5rem;
  line-height: 1.5;
}

.copyright {
  display: block;
  font-size: 0.78rem;
  color: #666;
}

/* ---- Stagger reveal animation ---- */
@media (prefers-reduced-motion: no-preference) {
  .accent-card,
  .child-list li,
  .aside-widget {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .accent-card.revealed,
  .child-list li.revealed,
  .aside-widget.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive: ≤768px ---- */
@media (max-width: 768px) {
  /* Header */
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #111;
    border-bottom: 2px solid #333;
    padding: 0.5rem 0;
    z-index: 190;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .primary-nav.is-open {
    max-height: 420px;
  }

  .primary-nav p {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav p a {
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem;
    min-height: 48px;
    border-radius: 0;
    border-bottom: 1px solid #222;
  }

  /* CTA labels: shorten on very small */
  .cta { font-size: 0.75rem; padding: 0 0.65rem; }

  /* Layout */
  .layout-with-aside {
    grid-template-columns: 1fr;
    grid-template-areas: "primary" "aside";
    gap: 2rem;
  }

  .content-aside { position: static; }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    padding: 2rem 1rem;
  }

  .hero-copy h1 { font-size: 1.7rem; }

  .page-hero-inner { padding: 2rem 1rem; }

  /* Ensure no horizontal scroll */
  .site-wrapper { overflow-x: hidden; }

  .cards-grid { grid-template-columns: 1fr; }

  /* Drop cap off on small screens to avoid weird reflow */
  .body-copy > p:first-child::first-letter,
  .drop-cap > p:first-child::first-letter {
    font-size: 2.4rem;
  }
}

/* ---- Very small: 375px ---- */
@media (max-width: 400px) {
  .brand { font-size: 0.9rem; }
  .cta { font-size: 0.7rem; padding: 0 0.5rem; min-height: 44px; }
  h1 { font-size: 1.5rem; }
  .footer-brand { font-size: 1.4rem; }
}

/* ---- Utilities ---- */
.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;
}

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