/* ──────────────────────────────────────────────────────────────
   My IQ Path — static content-page styles
   Self-contained (no Tailwind build dependency) so generated HTML
   pages render on-brand when served directly by Cloudflare Pages,
   independent of the Vite app's hashed CSS bundle.
   Brand: blue (#2563eb) primary on slate neutrals; rounded cards.
   ────────────────────────────────────────────────────────────── */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --navy: #0f2747;
  --ink: #0f172a;
  --slate: #475569;
  --slate-light: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem; max-width: 1100px;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand svg { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: #fff; text-decoration: none;
  padding: .55rem 1.1rem; border-radius: 9999px; font-weight: 600; font-size: .95rem;
}
.nav-cta:hover { background: var(--blue-dark); }

/* Hero */
.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -.02em; }
.score-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--navy); color: #fff; border-radius: 1.5rem;
  padding: 1.5rem 2.5rem; margin: 1rem 0;
}
.score-badge .num { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.score-badge .band { margin-top: .5rem; font-size: 1rem; opacity: .9; background: rgba(255,255,255,.12); padding: .25rem .9rem; border-radius: 9999px; }
.lead { font-size: 1.15rem; color: var(--slate); }

/* Article */
article { padding: 1.5rem 0 2rem; }
article h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; letter-spacing: -.01em; }
article p { margin: 0 0 1rem; }
article a { color: var(--blue); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.1rem 1.25rem; text-align: center;
}
.stat .v { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.stat .k { font-size: .85rem; color: var(--slate-light); margin-top: .25rem; }
.callout {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 1rem;
  padding: 1rem 1.25rem; margin: 1.5rem 0; color: #1e3a8a;
}
.note { font-size: .95rem; color: var(--slate-light); }

/* CTA block */
.cta {
  background: var(--navy); color: #fff; border-radius: 1.5rem;
  padding: 2rem 1.5rem; text-align: center; margin: 2.5rem 0;
}
.cta h2 { color: #fff; margin: 0 0 .5rem; }
.cta p { color: #cbd5e1; margin: 0 0 1.25rem; }
.cta a {
  display: inline-block; background: #fff; color: var(--navy);
  padding: .8rem 1.75rem; border-radius: 9999px; font-weight: 700; text-decoration: none;
}
.cta a:hover { background: #eff6ff; }

/* Prev/next + related */
.score-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; }
.score-nav a {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: .9rem;
  padding: .9rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600;
}
.score-nav a.next { text-align: right; }
.score-nav a:hover { border-color: var(--blue); }
.related { margin: 2rem 0; }
.related ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.related a {
  display: inline-block; background: var(--card); border: 1px solid var(--line);
  border-radius: 9999px; padding: .4rem .9rem; text-decoration: none; color: var(--slate); font-size: .9rem;
}
.related a:hover { border-color: var(--blue); color: var(--blue); }

/* Footer */
.site-footer {
  background: var(--card); border-top: 1px solid var(--line);
  margin-top: 3rem; padding: 2rem 0; color: var(--slate-light); font-size: .9rem;
}
.site-footer .wrap { max-width: 1100px; text-align: center; }
.site-footer a { color: var(--slate); text-decoration: none; margin: 0 .5rem; }
.site-footer a:hover { color: var(--blue); }

@media (min-width: 640px) {
  .hero h1 { font-size: 2.5rem; }
}
