/* ===================================================
   NC Sportsbook — Style Sheet
   Exaggerated Minimalism · IBM Plex Sans
   =================================================== */

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

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

:root {
  --black: #000000;
  --white: #ffffff;
  --ink: #000000;
  --accent: #1a1a1a;
  --muted: #666666;
  --muted-bg: #f5f5f5;
  --border: #e0e0e0;
  --radius: 18px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --max-prose: 780px;
  --max-wrap: 1280px;
  --shadow: 0 4px 32px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lift: 0 16px 48px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.7;
}

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

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  height: var(--header-h);
  border-bottom: 2px solid var(--white);
}

.header-inner {
  max-width: var(--max-wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.8;
}

/* --- Nav Details / Hamburger --- */
.nav-details {
  position: static;
  flex: 1;
  min-width: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}

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

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-details[open] .nav-toggle .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-details[open] .nav-toggle .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-details[open] .nav-toggle .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen overlay menu */
.nav-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--black);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3rem 2rem;
  gap: 0;
  list-style: none;
  overflow-y: auto;
}

.nav-menu li {
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu li a {
  display: block;
  padding: 1rem 0;
  color: var(--white);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  min-height: 44px;
  transition: opacity 0.15s;
}

.nav-menu li a:hover {
  opacity: 0.6;
}

/* --- Header CTAs --- */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.125rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  min-width: 44px;
}

.cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

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

.cta-login {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

/* ===================================================
   HERO (Home)
   =================================================== */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg-numeral {
  position: absolute;
  top: 50%;
  left: -0.1em;
  transform: translateY(-50%);
  font-size: clamp(12rem, 40vw, 32rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-wrap);
  width: 100%;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
  text-align: right;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.hero-h1 {
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 16ch;
  margin-left: auto;
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 45ch;
  margin-left: auto;
  line-height: 1.7;
}

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

/* ===================================================
   PAGE BANNER (inner pages)
   =================================================== */
.page-banner {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-wrap);
  margin: 0 auto;
}

.page-type-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.page-banner h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  max-width: 22ch;
}

.banner-bg-text {
  position: absolute;
  top: 50%;
  right: -0.05em;
  transform: translateY(-50%);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ===================================================
   BYLINE
   =================================================== */
.byline {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.byline time {
  color: rgba(255,255,255,0.5);
}

/* ===================================================
   STAGE LABEL
   =================================================== */
.stage-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.stage-awareness  { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }
.stage-consideration { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.8); }
.stage-decision   { background: rgba(255,255,255,0.25); color: var(--white); }

/* ===================================================
   REVIEW HERO
   =================================================== */
.review-hero-wrap {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.review-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

/* ===================================================
   MAIN CONTENT LAYOUT
   =================================================== */
.main-content {
  flex: 1;
  max-width: var(--max-wrap);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.content-article {
  width: 100%;
}

/* --- Prose Section (aside + body) --- */
.prose-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar to the LEFT */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.sidebar-inner {
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.sidebar-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-toc li a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.sidebar-toc li a:hover {
  opacity: 0.6;
}

.sidebar-rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.rank-pos {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  min-width: 1.5rem;
}

.rank-name {
  font-size: 0.8125rem;
  font-weight: 500;
}

.rank-item-1 .rank-pos { color: var(--black); }
.rank-item-2 .rank-pos { color: #444; }
.rank-item-3 .rank-pos { color: #777; }

.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-related a {
  display: flex;
  flex-direction: column;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.15s;
  min-height: 44px;
  justify-content: center;
}

.sidebar-related a:hover { opacity: 0.6; }

.sidebar-related a strong {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
}

.sidebar-related a span {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ===================================================
   PROSE BODY
   =================================================== */
.prose-body {
  max-width: var(--max-prose);
  min-width: 0;
}

.prose-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 3rem;
  margin-bottom: 0;
}

.prose-body h2 + p,
.prose-body h2 + p.subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.prose-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-body p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.prose-body ul,
.prose-body ol {
  margin: 0 0 1.25rem 1.5rem;
  line-height: 1.7;
}

.prose-body li {
  margin-bottom: 0.4rem;
}

.prose-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.prose-body th {
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose-body tr:nth-child(even) td {
  background: var(--muted-bg);
}

.prose-body blockquote {
  border-left: 4px solid var(--black);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--muted-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* Subtitle / subheading in prose */
.subtitle,
p.subtitle,
p.subhead,
p.lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}

/* ===================================================
   CHILD CARDS (Home)
   =================================================== */
.child-pages-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 2px solid var(--black);
}

.child-pages-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

.child-pages-section .subtitle {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  color: var(--muted);
}

.child-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.child-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 140px;
}

.child-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
  opacity: 1;
}

.child-card > strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: block;
}

.child-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.child-card-img {
  display: block;
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

/* ===================================================
   AUTHOR SECTION (About)
   =================================================== */
.author-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--black);
}

.author-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.author-section .subtitle {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.author-card {
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 680px;
}

.author-name {
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.author-credentials {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.author-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  margin-top: auto;
}

.site-footer > div {
  max-width: var(--max-wrap);
  margin: 0 auto;
}

.footer-rg {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1rem;
}

.rg-notice {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  font-weight: 400;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--white);
  opacity: 1;
}

.footer-copy p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

/* ===================================================
   MOTION / MICRO-INTERACTIONS
   =================================================== */
@media (prefers-reduced-motion: no-preference) {
  .child-card {
    will-change: transform;
  }

  /* Stagger animation for child cards */
  .child-cards-row .child-card {
    animation: cardFadeUp 0.5s ease both;
  }

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

  @keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .sidebar-toc li a,
  .cta {
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
}

/* ===================================================
   RESPONSIVE — TABLET (≤1024px)
   =================================================== */
@media (max-width: 1024px) {
  .prose-section {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }
}

/* ===================================================
   RESPONSIVE — MOBILE (≤768px)
   =================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .brand {
    font-size: 1rem;
  }

  /* Collapse nav behind details toggle — already done via details */
  /* On mobile, nav-menu is already overlay — just ensure it's correct */

  .hero-content {
    padding: 4rem 1rem 5rem;
    text-align: left;
  }

  .hero-h1 {
    margin-left: 0;
  }

  .hero-lead {
    margin-left: 0;
  }

  .prose-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .sidebar-inner {
    border-radius: 10px;
  }

  .main-content {
    padding: 2rem 1rem 4rem;
  }

  .page-banner {
    padding: 3rem 1rem 2.5rem;
  }

  .child-pages-section {
    margin-top: 3rem;
    padding-top: 2rem;
  }

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

  .cta {
    padding: 0 0.75rem;
    font-size: 0.8125rem;
  }

  .header-ctas {
    gap: 0.375rem;
  }

  .author-card {
    padding: 1.25rem;
  }

  .site-footer {
    padding: 1.5rem 1rem 1rem;
  }

  .footer-links {
    gap: 0.1rem 1rem;
  }
}

/* ===================================================
   PRINT
   =================================================== */
@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .header-ctas { display: none; }
  .prose-section { display: block; }
  body { font-size: 12pt; color: #000; }
}

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