/* =====================================================
   How to Bet on NBA Games — style.css
   Soft UI Evolution · Rose × Deep Court Dark
   ===================================================== */

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

/* ---- Tokens ---- */
:root {
  --rose: #eb879c;
  --rose-light: #ffb6c1;
  --court: #26171a;
  --court-mid: #3a1f24;
  --court-soft: #4d2a30;
  --court-muted: #7a5460;
  --surface: #1e1215;
  --card-bg: #2e1a1f;
  --card-hover: #38202a;
  --text: #f5e8eb;
  --text-muted: #c9a8b2;
  --border: rgba(235,135,156,0.18);
  --border-soft: rgba(255,182,193,0.10);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.32), 0 1px 2px rgba(235,135,156,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.40), 0 2px 6px rgba(235,135,156,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.50), 0 4px 12px rgba(235,135,156,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 50px;
  --font-body: 'Rubik', system-ui, sans-serif;
  --font-head: 'Outfit', system-ui, sans-serif;
  --max-prose: 720px;
  --max-page: 1200px;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

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

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

body {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rose-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--rose); }
a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Announce Strip ---- */
.announce-strip {
  background: var(--court-mid);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 6px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  font-family: var(--font-head);
}
.announce-strip strong { color: var(--rose-light); }

/* ---- Site Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(38,23,26,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rose-light);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.brand:hover { color: var(--rose); }

/* ---- Primary Nav (details/summary pattern) ---- */
.primary-nav { flex: 1; }

.nav-details { position: relative; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--court-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { display: none; }
.nav-toggle:hover { background: var(--court-soft); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rose-light);
  border-radius: 2px;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rose-light);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform var(--transition);
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Desktop nav: pill/capsule group */
.nav-details menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-details menu li a {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  min-height: 34px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-details menu li a:hover,
.nav-details menu li a[aria-current="page"] {
  color: var(--rose-light);
  background: rgba(235,135,156,0.10);
  border-color: var(--border);
}

/* ---- Header CTAs ---- */
.header-ctas {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
}

.cta-signup {
  background: var(--rose);
  color: var(--court);
  border: 2px solid var(--rose);
  box-shadow: var(--shadow-sm);
}
.cta-signup:hover {
  background: var(--rose-light);
  border-color: var(--rose-light);
  color: var(--court);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.cta-login {
  background: transparent;
  color: var(--rose-light);
  border: 2px solid var(--rose);
}
.cta-login:hover {
  background: rgba(235,135,156,0.12);
  color: var(--rose-light);
}

/* ---- Hero (Home) ---- */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--court);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.6);
}

.hero-bg-text {
  position: absolute;
  right: -0.05em;
  bottom: -0.1em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(8rem, 22vw, 22rem);
  color: rgba(235,135,156,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: -0.04em;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 600px;
  padding: 80px 48px 100px 40px;
  text-align: right;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rose);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--rose);
  color: var(--court);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
}
.btn-primary:hover {
  background: var(--rose-light);
  color: var(--court);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Slanted / curved bottom edge */
.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--surface);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* ---- Guide Hero ---- */
.guide-hero,
.inner-hero {
  position: relative;
  background: var(--court);
  overflow: hidden;
  padding: 60px 48px 80px;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}

.guide-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.guide-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.guide-hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--court-mid) 0%, var(--court-soft) 100%);
}

.guide-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(38,23,26,0.3) 0%, rgba(38,23,26,0.75) 100%);
  z-index: 1;
}

.guide-hero-bg-text,
.inner-hero-bg-text {
  position: absolute;
  right: -0.02em;
  bottom: -0.08em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 14rem);
  color: rgba(235,135,156,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  letter-spacing: -0.04em;
}

.guide-hero-content,
.inner-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-page);
  width: 100%;
  margin: 0 auto;
}

.guide-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rose);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.guide-hero h1,
.inner-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 750px;
}

/* ---- Byline ---- */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-head);
}
.byline strong { color: var(--rose-light); }
.byline time { color: var(--text-muted); }
.byline-sep { color: var(--rose); }
.stage-badge {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: capitalize;
}
.stage-awareness { background: rgba(235,135,156,0.15); color: var(--rose-light); }
.stage-consideration { background: rgba(255,182,193,0.12); color: var(--rose-light); }
.stage-decision { background: rgba(235,135,156,0.25); color: var(--rose); }

/* ---- Main / Wrap / Content Layout ---- */
main {
  padding: 48px 0 72px;
}

.wrap {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 24px;
}

/* Structure contract: main > div.wrap > section > article */
.wrap > section {
  width: 100%;
}

.page-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

/* ---- Sidebar Left ---- */
.sidebar-left {
  flex: 0 0 240px;
  min-width: 0;
  order: -1;
}

.sidebar-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.sidebar-inner h2 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.sidebar-inner h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.sidebar-inner ul {
  list-style: none;
  padding: 0;
}
.sidebar-inner ul li {
  margin-bottom: 2px;
}
.sidebar-inner ul li a {
  display: block;
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.sidebar-inner ul li a:hover {
  background: rgba(235,135,156,0.10);
  color: var(--rose-light);
}

.toc-list { counter-reset: toc; }
.toc-list li a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose);
  margin-right: 8px;
  font-family: var(--font-head);
  opacity: 0.7;
}

/* ---- Content Main ---- */
.content-main {
  flex: 1;
  min-width: 0;
  max-width: var(--max-prose);
}

/* ---- Body Copy ---- */
.body-copy {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.body-copy h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 2em 0 0.6em;
  letter-spacing: -0.01em;
}
.body-copy h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rose-light);
  margin: 1.6em 0 0.5em;
}
.body-copy h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.4em 0 0.4em;
  font-family: var(--font-head);
}
.body-copy p { margin-bottom: 1.2em; }
.body-copy ul,
.body-copy ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
.body-copy li { margin-bottom: 0.4em; }
.body-copy a {
  color: var(--rose-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.body-copy a:hover { color: var(--rose); }
.body-copy strong { color: var(--rose-light); font-weight: 600; }
.body-copy blockquote {
  border-left: 3px solid var(--rose);
  padding: 12px 20px;
  background: rgba(235,135,156,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}
.body-copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}
.body-copy th {
  background: var(--court-mid);
  color: var(--rose-light);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--rose);
}
.body-copy td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.body-copy tr:nth-child(even) td {
  background: rgba(255,182,193,0.03);
}
.body-copy code {
  background: var(--court-mid);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.88em;
  color: var(--rose-light);
}
.body-copy pre {
  background: var(--court-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.body-copy pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Heading decoration: h2 > span */
.body-copy h2 > span,
.body-copy h3 > span,
.sidebar-inner h2 > span,
.child-cards h2 > span,
.author-profile h2 > span {
  display: inline;
}

/* ---- Cards / Child Pages ---- */
.child-cards {
  margin-top: 40px;
}
.child-cards > h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose-light);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* Structure contract: section > article×n (no wrapping div) */
.child-cards {
  display: block;
}
.child-cards > article.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
  position: relative;
}
.child-cards > article.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: var(--card-hover);
}
.card-body {
  padding: 20px 20px 16px;
  flex: 1;
}
.card-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.card-body h3 a {
  color: #fff;
  text-decoration: none;
}
.card-body h3 a:hover { color: var(--rose-light); }
.card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.card-date {
  display: block;
  font-size: 0.75rem;
  color: var(--court-muted);
  margin-top: 8px;
  font-family: var(--font-head);
}
.card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--rose) 0%, var(--rose-light) 100%);
  border-radius: 0 0 0 0;
}

/* Grid layout for cards when ≥2 */
.child-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.child-cards > h2 {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .child-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .child-cards > h2 {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .child-cards > article.card {
    margin-bottom: 0;
  }
}
@media (min-width: 960px) {
  .child-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- FAQ Layout ---- */
.faq-intro {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-body details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-body details[open] { box-shadow: var(--shadow-md); }
.faq-body details summary {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-head);
}
.faq-body details summary::-webkit-details-marker { display: none; }
.faq-body details summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--rose);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition);
}
.faq-body details[open] summary::after {
  content: '−';
  transform: none;
}
.faq-body details > *:not(summary) {
  padding: 0 18px 16px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Changelog ---- */
.changelog-intro {
  background: rgba(235,135,156,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.changelog-body h2 { border-bottom: 1px solid var(--border-soft); padding-bottom: 6px; }

/* ---- About / Author ---- */
.author-profile { margin-bottom: 32px; }
.author-profile h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.author-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.author-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.author-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.author-credentials {
  font-size: 0.82rem;
  color: var(--rose);
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.author-bio {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--court-mid);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-wordmark {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--rose-light);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.footer-contact {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}
.footer-contact a:hover { color: var(--rose-light); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: center;
  list-style: none;
  padding: 0;
}
.footer-links li a {
  font-size: 0.82rem;
  color: var(--court-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--rose-light); }

.rg-notice {
  font-size: 0.78rem;
  color: var(--court-muted);
  max-width: 600px;
  line-height: 1.55;
  font-family: var(--font-head);
}

.copyright {
  font-size: 0.75rem;
  color: var(--court-muted);
  font-family: var(--font-head);
}

/* ---- Scroll Reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 280ms ease, transform 280ms ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-copy {
    max-width: 500px;
    padding: 60px 32px 80px 28px;
  }
  .guide-hero, .inner-hero {
    padding: 48px 32px 70px;
  }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 14px;
    gap: 8px;
  }
  .brand {
    font-size: 0.88rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Show toggle, hide inline menu */
  .nav-toggle {
    display: flex;
  }

  .nav-details menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--court-mid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    z-index: 200;
    flex-wrap: nowrap;
  }
  .nav-details[open] menu {
    display: flex;
  }
  .nav-details menu li {
    width: 100%;
  }
  .nav-details menu li a {
    padding: 12px 14px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    width: 100%;
    white-space: normal;
    font-size: 0.88rem;
  }

  .header-ctas { gap: 6px; }
  .cta {
    padding: 0 10px;
    font-size: 0.75rem;
    min-height: 44px;
  }

  /* Hero */
  .hero-section { min-height: 65vh; }
  .hero-copy {
    padding: 48px 20px 72px;
    text-align: left;
    margin-left: 0;
    max-width: 100%;
  }
  .hero-bg-text { font-size: 6rem; }

  /* Guide hero */
  .guide-hero, .inner-hero {
    padding: 36px 20px 60px;
    min-height: 220px;
  }
  .guide-hero-bg-text,
  .inner-hero-bg-text { font-size: 4rem; }

  /* Content layout: stack on mobile */
  .page-content {
    flex-direction: column;
  }
  .sidebar-left {
    flex: none;
    width: 100%;
    order: 1;
  }
  .sidebar-inner {
    position: static;
  }
  .content-main {
    order: 0;
    max-width: 100%;
  }

  main { padding: 32px 0 48px; }
  .wrap { padding: 0 14px; }

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

  .body-copy h2 { font-size: 1.25rem; }
  .body-copy h3 { font-size: 1.05rem; }

  .footer-inner { padding: 28px 16px 20px; }
  .footer-wordmark { font-size: 1.3rem; }
  .footer-links { gap: 4px 12px; }
}

/* Very small */
@media (max-width: 400px) {
  .cta { padding: 0 8px; font-size: 0.72rem; }
  .brand { font-size: 0.82rem; }
  .hero-copy h1 { font-size: 1.5rem; }
}

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