/* ============================================
   Water Operator Practice Test — Global Styles
   Brand: Deep Ocean (primary) + Amber (CTA)
   ============================================ */

:root {
  /* Brand */
  --ocean-50:  #f0f9ff;
  --ocean-100: #e0f2fe;
  --ocean-200: #bae6fd;
  --ocean-300: #7dd3fc;
  --ocean-400: #38bdf8;
  --ocean-500: #0ea5e9;
  --ocean-600: #0284c7;   /* Action Blue — links, secondary */
  --ocean-700: #0369a1;
  --ocean-800: #075985;
  --ocean-900: #0c4a6e;   /* Deep Ocean — primary brand */

  --teal-500:  #14b8a6;
  --teal-600:  #0d9488;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;   /* CTA Amber — reserved for primary CTAs */
  --amber-600: #d97706;
  --amber-700: #b45309;

  --green-500: #22c55e;
  --green-600: #16a34a;
  --red-500:   #ef4444;
  --red-600:   #dc2626;

  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-width: 1200px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ocean-700); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--gray-900); margin-top: 0; letter-spacing: -0.01em; }

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

/* ===== Navigation ===== */
.site-nav {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img {
  width: 34px; height: 34px;
}
.nav-brand .brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-brand .brand-text small {
  font-size: 0.66rem; font-weight: 500;
  color: var(--gray-500); letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--gray-700);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav-links a:hover { background: var(--gray-100); text-decoration: none; }
.nav-links .btn { margin-left: 6px; }

.streak-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff7ed; color: var(--amber-700);
  padding: 5px 10px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700;
  border: 1px solid #fed7aa;
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-700); margin: 4px 0; }

@media (max-width: 960px) {
  .nav-brand .brand-text small { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--gray-200);
    flex-direction: column; align-items: stretch;
    padding: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}

/* ===== Trust bar (just under nav) ===== */
.trust-bar {
  background: var(--ocean-900);
  color: var(--ocean-100);
  font-size: 0.85rem;
  padding: 8px 16px;
}
.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; justify-content: center; gap: 22px;
  flex-wrap: wrap; text-align: center;
}
.trust-bar span {
  display: inline-flex; align-items: center; gap: 6px;
}
.trust-bar svg { fill: var(--ocean-300); }
@media (max-width: 700px) {
  .trust-bar { font-size: 0.78rem; padding: 6px 12px; }
  .trust-bar-inner { gap: 12px; }
  .trust-bar-inner span:nth-child(n+3) { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }

/* PRIMARY = amber (reserved strictly for primary CTAs) */
.btn-primary {
  background: var(--amber-500); color: #3a2200;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), inset 0 -2px 0 rgba(0,0,0,0.08);
}
.btn-primary:hover { background: var(--amber-400); transform: translateY(-1px); }

/* SECONDARY = ocean (links, navigation, less critical actions) */
.btn-ocean {
  background: var(--ocean-900); color: white;
}
.btn-ocean:hover { background: var(--ocean-800); }

.btn-secondary {
  background: white; color: var(--gray-800);
  border-color: var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-100); }

.btn-ghost {
  background: transparent; color: var(--ocean-700);
}
.btn-ghost:hover { background: var(--ocean-50); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(circle at 18% 0%, rgba(20,184,166,.12), transparent 55%),
    radial-gradient(circle at 82% 100%, rgba(2,132,199,.14), transparent 55%),
    linear-gradient(180deg, var(--ocean-50) 0%, #ffffff 100%);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(12,74,110,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,74,110,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}
.hero .container { position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  color: var(--ocean-900);
  font-size: 0.82rem; font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ocean-200);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ocean-900);
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--gray-600);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.hero .hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-stats {
  display: flex; justify-content: center; gap: 36px;
  margin-top: 32px; flex-wrap: wrap;
  color: var(--gray-600);
  font-size: .92rem;
}
.hero-stats strong { color: var(--ocean-900); font-weight: 700; }

/* ===== Guides / blog pages ===== */
.article-meta {
  color: var(--gray-600);
  font-size: .9rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.article-meta strong { color: var(--ocean-900); font-weight: 700; }
.guide-body {
  color: var(--gray-800);
  font-size: 1.05rem;
  line-height: 1.75;
}
.guide-body h2 {
  font-size: 1.45rem;
  color: var(--ocean-900);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.guide-body h3 {
  font-size: 1.15rem;
  color: var(--ocean-900);
  margin: 28px 0 8px;
  font-weight: 700;
}
.guide-body p { margin: 0 0 16px; }
.guide-body ul, .guide-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.guide-body li { margin: 4px 0; }
.guide-body a {
  color: var(--ocean-700);
  text-decoration: underline;
  text-decoration-color: var(--ocean-300);
  text-underline-offset: 3px;
}
.guide-body a:hover { color: var(--ocean-900); text-decoration-color: var(--ocean-700); }
.guide-body code {
  background: var(--ocean-50);
  border: 1px solid var(--ocean-200);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  color: var(--ocean-900);
}
.guide-body pre {
  background: var(--ocean-50);
  border: 1px solid var(--ocean-200);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
}
.guide-body pre code {
  background: transparent;
  border: none;
  padding: 0;
}
.guide-body blockquote {
  border-left: 4px solid var(--ocean-500);
  padding: 6px 16px;
  margin: 18px 0;
  background: var(--ocean-50);
  border-radius: 0 8px 8px 0;
  color: var(--gray-700);
  font-style: italic;
}
.guide-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
  font-size: .95rem;
}
.guide-body th, .guide-body td {
  border: 1px solid var(--gray-200);
  padding: 8px 12px;
  text-align: left;
}
.guide-body th {
  background: var(--ocean-50);
  color: var(--ocean-900);
  font-weight: 700;
}
.guide-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 14px auto;
  display: block;
}
.guide-body hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 32px 0;
}

/* Guides index grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: white;
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--ocean-600);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--ocean-300);
  border-top-color: var(--ocean-700);
  box-shadow: 0 6px 18px rgba(12, 74, 110, 0.08);
}
/* Category accent variants — top border color encodes primary topic */
.guide-card[data-cat="math"]         { border-top-color: #d97706; }
.guide-card[data-cat="math"]:hover   { border-top-color: #b45309; }
.guide-card[data-cat="regulations"]  { border-top-color: #6d28d9; }
.guide-card[data-cat="regulations"]:hover { border-top-color: #5b21b6; }
.guide-card[data-cat="filtration"]   { border-top-color: #0f766e; }
.guide-card[data-cat="filtration"]:hover { border-top-color: #115e59; }
.guide-card[data-cat="chemistry"]    { border-top-color: #be185d; }
.guide-card[data-cat="chemistry"]:hover { border-top-color: #9d174d; }
.guide-card[data-cat="distribution"] { border-top-color: #047857; }
.guide-card[data-cat="distribution"]:hover { border-top-color: #065f46; }

.guide-card-category {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ocean-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.guide-card[data-cat="math"] .guide-card-category         { color: #92400e; }
.guide-card[data-cat="regulations"] .guide-card-category  { color: #5b21b6; }
.guide-card[data-cat="filtration"] .guide-card-category   { color: #115e59; }
.guide-card[data-cat="chemistry"] .guide-card-category    { color: #9d174d; }
.guide-card[data-cat="distribution"] .guide-card-category { color: #065f46; }

.guide-card-title {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ocean-900);
  margin: 0 0 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card-excerpt {
  color: var(--gray-600);
  margin: 0 0 18px;
  font-size: .92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card-meta {
  margin-top: auto;
  color: var(--gray-500);
  font-size: .78rem;
  font-weight: 500;
}

/* Search bar */
.guide-search-wrap {
  position: relative;
  margin: 28px 0 0;
  max-width: 520px;
}
.guide-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
  display: flex;
}
.guide-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--gray-900);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.guide-search-input::placeholder {
  color: var(--gray-500);
}
.guide-search-input:focus {
  border-color: var(--ocean-500);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.guide-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}
.guide-search-empty {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 28px 0 0;
  padding: 18px 20px;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: 10px;
}

/* Pagination */
.guide-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 0;
  flex-wrap: wrap;
}
.guide-page-btn {
  background: white;
  border: 1px solid var(--gray-300);
  color: var(--ocean-900);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.guide-page-btn:hover:not(:disabled) {
  border-color: var(--ocean-500);
  background: var(--ocean-50);
}
.guide-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.guide-page-numbers {
  display: flex;
  gap: 6px;
}
.guide-page-num {
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.guide-page-num:hover:not(.is-active) {
  border-color: var(--ocean-300);
  background: var(--ocean-50);
}
.guide-page-num.is-active {
  background: var(--ocean-600);
  border-color: var(--ocean-600);
  color: white;
}

/* ===== Calculator pages ===== */
.calc-card {
  background: linear-gradient(180deg, var(--ocean-50) 0%, #ffffff 100%);
  border: 1px solid var(--ocean-200);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(12, 74, 110, 0.05);
}
.calc-section {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean-700);
  margin: 0 0 14px;
}
.calc-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.calc-input-row input {
  flex: 1;
  min-width: 0;
}
.calc-unit {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--ocean-100);
  color: var(--ocean-900);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--ocean-200);
  white-space: nowrap;
}
.calc-unit-select {
  padding: 0 12px;
  background: var(--ocean-100);
  color: var(--ocean-900);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--ocean-200);
  cursor: pointer;
}
.calc-opt {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.82rem;
}
.calc-result {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--ocean-200);
  padding: 14px 16px;
  min-height: 60px;
}
.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}
.calc-line:last-child { border-bottom: none; }
.calc-line-label {
  font-size: .9rem;
  color: var(--gray-700);
}
.calc-line-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ocean-900);
  font-variant-numeric: tabular-nums;
}
.calc-line-value small {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
}
.calc-empty {
  color: var(--gray-500);
  font-style: italic;
  font-size: .92rem;
  text-align: center;
  padding: 6px 0;
}
.calc-formula summary {
  cursor: pointer;
  color: var(--ocean-700);
  font-weight: 600;
  font-size: .92rem;
}
.calc-callout {
  background: #fef9c3;
  border-left: 4px solid #ca8a04;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: 1rem;
  color: #713f12;
}
.calc-result-banner {
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 700;
  text-align: center;
  margin-top: 12px;
}
.calc-banner-good     { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.calc-banner-warn     { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.calc-banner-bad      { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.calc-banner-neutral  { background: #e0f2fe; color: #0c4a6e; border: 1px solid #bae6fd; }

.calc-table {
  border-collapse: collapse;
  width: 100%;
  margin: 6px 0 8px;
  font-size: 0.92rem;
}
.calc-table th, .calc-table td {
  border: 1px solid var(--gray-200);
  padding: 8px 12px;
  text-align: left;
  color: var(--gray-700);
}
.calc-table th {
  background: var(--ocean-50);
  color: var(--ocean-900);
  font-weight: 700;
  white-space: nowrap;
}
.calc-table tr:nth-child(even) td {
  background: rgba(240, 249, 255, 0.4);
}

/* ===== State page banner ===== */
.state-banner {
  margin: 0 0 28px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ocean-200);
  box-shadow: 0 2px 12px rgba(12, 74, 110, 0.05);
}
.state-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Topic diagram (above quiz on /tests/<topic>.html) ===== */
.topic-diagram {
  position: relative;
  margin: 0 0 32px;
  padding: 28px 24px;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border: 1px solid #bae6fd;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(12,74,108,0.08);
  overflow: hidden;
}
.topic-diagram::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #7dd3fc 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.topic-diagram img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (max-width: 540px) {
  .topic-diagram { padding: 16px; border-radius: 14px; }
}

/* ===== Hero 2-column layout (desktop) ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 480px;
  display: block;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    text-align: left;
    gap: 48px;
  }
  .hero-grid .hero-badge { margin-left: 0; }
  .hero-grid p.lead { margin-left: 0; margin-right: 0; }
  .hero-grid .hero-ctas { justify-content: flex-start; }
  .hero-grid .hero-stats { justify-content: flex-start; }
}

/* ===== State page hero card ===== */
.state-hero {
  position: relative;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border: 1px solid #bae6fd;
  border-radius: 22px;
  padding: 32px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(12,74,108,0.08);
}
.state-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, #7dd3fc 0%, transparent 70%);
  opacity: 0.28;
  pointer-events: none;
}
.state-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #bae6fd 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.state-hero-top {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.state-abbrev {
  flex: 0 0 auto;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
  color: #ffffff;
  border-radius: 18px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(12,74,108,0.28);
}
.state-hero-meta { min-width: 0; flex: 1 1 auto; }
.state-hero-eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #0284c7;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.state-hero-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  color: #0c4a6e;
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.4px;
}
.state-hero-sub {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 64ch;
}
.state-hero-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 999px;
  font-size: .88rem;
  color: #0c4a6e;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(12,74,108,0.07);
}
.hero-chip strong { color: #0c4a6e; font-weight: 800; }
.hero-chip-green {
  border-color: #86efac;
  background: #f0fdf4;
  color: #14532d;
}
.hero-chip-green strong { color: #14532d; }
.hero-chip .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.hero-chip .dot {
  width: 9px;
  height: 9px;
  background: #0284c7;
  border-radius: 50%;
  display: inline-block;
}
@media (max-width: 560px) {
  .state-hero { padding: 22px; }
  .state-abbrev { width: 68px; height: 68px; font-size: 1.9rem; border-radius: 14px; }
  .state-hero-top { gap: 16px; margin-bottom: 14px; }
  .state-hero-eyebrow { font-size: .72rem; }
}
@media (max-width: 440px) {
  .state-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .state-abbrev { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 12px; }
  .state-hero-title { font-size: 1.45rem; }
  .hero-chip { font-size: .82rem; padding: 7px 12px; }
}

/* ===== Course CTA (waitlist) ===== */
.course-cta-section {
  background: var(--ocean-900);
  color: #e0f2fe;
}
.course-cta-section h2 {
  color: #ffffff;
  text-align: left;
  margin: 8px 0 16px;
}
.course-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 880px) {
  .course-cta {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 56px;
  }
}
.course-cta-centered {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.course-cta-centered h2 { text-align: center; }
.course-cta-centered p { margin-left: auto; margin-right: auto; }
.course-cta-text p {
  color: #bae6fd;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 56ch;
}
.course-cta-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.course-cta-fine {
  color: #7dd3fc !important;
  font-size: .92rem;
}
.course-cta-form {
  background: #ffffff;
  color: var(--ocean-900);
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}
.course-cta-label {
  display: block;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ocean-900);
}
.course-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.course-cta-row input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 1rem;
  font-family: inherit;
}
.course-cta-row input[type="email"]:focus {
  outline: none;
  border-color: var(--ocean-600);
  box-shadow: 0 0 0 3px rgba(2,132,199,0.18);
}
.course-cta-row button {
  flex: 0 0 auto;
}
.course-cta-success {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
  font-weight: 600;
}

/* ===== Section ===== */
section.section {
  padding: 64px 0;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 10px;
  text-align: center;
  font-weight: 800;
  color: var(--ocean-900);
}
.section .section-sub {
  text-align: center;
  color: var(--gray-600);
  margin: 0 auto 40px;
  max-width: 720px;
  font-size: 1.02rem;
}

/* ===== Test cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.test-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: inherit;
  position: relative;
}
.test-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  border-color: var(--ocean-300);
}
.test-card .badge {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 9px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.badge-level-1 { background: #dcfce7; color: #166534; }
.badge-level-2 { background: #cffafe; color: #155e75; }
.badge-level-3 { background: var(--ocean-100); color: var(--ocean-900); }
.badge-level-4 { background: #fce7f3; color: #9d174d; }
.badge-topic   { background: var(--gray-100); color: var(--gray-700); }

.test-card h3 {
  font-size: 1.12rem;
  margin: 0 0 6px;
  color: var(--ocean-900);
  font-weight: 700;
}
.test-card .desc {
  color: var(--gray-600);
  font-size: .92rem;
  flex: 1;
  line-height: 1.5;
}
.test-card .meta {
  display: flex; gap: 14px;
  font-size: .82rem;
  color: var(--gray-500);
  margin-top: 14px;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}

/* Per-test progress bar (logged-in users) */
.test-card .progress {
  margin-top: 10px;
}
.test-card .progress-bar {
  height: 5px; background: var(--gray-100); border-radius: 999px;
  overflow: hidden;
}
.test-card .progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-500), var(--ocean-600));
  width: 0%;
  transition: width .35s ease;
}
.test-card .progress-text {
  font-size: 0.74rem; color: var(--gray-500); margin-top: 5px;
  display: flex; justify-content: space-between;
}

/* ===== Why study with us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.why-card {
  text-align: center;
  padding: 16px;
}
.why-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  background: var(--ocean-50);
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  color: var(--ocean-700);
}
.why-card h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--ocean-900);
}
.why-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
}

/* ===== FAQ ===== */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--ocean-300); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ocean-900);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem; font-weight: 400;
  color: var(--gray-500);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a {
  padding: 0 20px 18px;
  color: var(--gray-700);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ===== Auth / forms ===== */
.auth-card {
  max-width: 420px;
  margin: 60px auto;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 1.6rem; margin: 0 0 6px; color: var(--ocean-900); }
.auth-card .sub { color: var(--gray-600); margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus {
  outline: none;
  border-color: var(--ocean-500);
  box-shadow: 0 0 0 3px var(--ocean-100);
}
.divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--gray-400); font-size: .85rem;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--gray-200);
}
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: white; color: var(--gray-800);
  border: 1px solid var(--gray-300);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-google:hover { background: var(--gray-100); }
.auth-foot { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--gray-600); }
.auth-error { color: var(--red-600); font-size: .9rem; margin-top: 8px; min-height: 1.2em; }

/* ===== Quiz UI ===== */
.quiz-shell {
  max-width: 780px;
  margin: 32px auto;
  padding: 0 20px;
}
.quiz-header {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.quiz-header h1 { font-size: 1.2rem; margin: 0; color: var(--ocean-900); }
.quiz-progress-bar {
  height: 6px; background: var(--gray-200); border-radius: 999px;
  overflow: hidden; margin-top: 10px;
}
.quiz-progress-bar > div {
  height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--ocean-600));
  width: 0%; transition: width .25s ease;
}
.q-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.q-meta {
  display: flex; justify-content: space-between;
  font-size: .85rem; color: var(--gray-500);
  margin-bottom: 12px;
}
.q-text {
  font-size: 1.12rem;
  margin: 0 0 20px;
  color: var(--gray-900);
  line-height: 1.5;
}
.q-choice {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  background: white;
  transition: border-color .12s ease, background .12s ease;
}
.q-choice:hover { border-color: var(--ocean-300); background: var(--ocean-50); }
.q-choice input { margin-right: 10px; accent-color: var(--ocean-700); }
.q-choice.selected { border-color: var(--ocean-600); background: var(--ocean-50); }
.q-choice.correct { border-color: var(--green-500); background: #ecfdf5; }
.q-choice.incorrect { border-color: var(--red-500); background: #fef2f2; }

.q-actions {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 20px;
}

/* ===== Results page ===== */
.score-circle {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--green-500) calc(var(--score) * 1%), var(--gray-200) 0);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  position: relative;
}
.score-circle::before {
  content: ""; position: absolute;
  inset: 12px; background: white; border-radius: 50%;
}
.score-circle span {
  position: relative; font-size: 2.2rem; font-weight: 800; color: var(--ocean-900);
}
.result-summary { text-align: center; margin: 32px 0 24px; }
.review-list .q-card { margin-bottom: 14px; }

/* ===== Tables (dashboards) ===== */
.table-wrap {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
table.data {
  width: 100%; border-collapse: collapse;
  font-size: .92rem;
}
table.data th, table.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
table.data thead { background: var(--gray-50); }
table.data th { font-weight: 700; color: var(--ocean-900); }
table.data tbody tr:hover { background: var(--gray-50); }

.stat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.stat-card .label {
  font-size: .8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em;
}
.stat-card .value {
  font-size: 1.8rem; font-weight: 700; color: var(--ocean-900); margin-top: 4px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ocean-900);
  color: var(--ocean-200);
  margin-top: 80px;
  padding: 48px 0 24px;
}
.site-footer a { color: var(--ocean-100); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-grid h4 { color: white; font-size: 1rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; font-size: .92rem; }
.copyright {
  text-align: center; padding-top: 28px; margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--ocean-300); font-size: .85rem;
}

/* ===== Ad slot styling =====
   Hidden by default until ads are actually wired up. Remove the display:none
   below (and add the AdSense / network script) when you're ready to monetize. */
.ad-slot { display: none; }
.ad-slot.ad-live {
  display: block;
  margin: 32px auto;
  max-width: var(--max-width);
  background: repeating-linear-gradient(
    45deg, #f3f4f6, #f3f4f6 6px, #e5e7eb 6px, #e5e7eb 12px
  );
  color: var(--gray-500);
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: .85rem;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.muted { color: var(--gray-500); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.hidden { display: none !important; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--ocean-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Test-mode chooser (full vs quick) ===== */
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .start-grid { grid-template-columns: 1fr; }
}
.start-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-sm);
}
.start-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.start-card-full {
  border-color: var(--amber-500);
  border-width: 2px;
}
.start-card-full:hover { border-color: var(--amber-500); background: #fffbeb; }
.start-card-short:hover { border-color: var(--ocean-400); background: var(--ocean-50); }
.start-card .start-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gray-500);
}
.start-card-full .start-label { color: var(--amber-700); }
.start-card .start-count {
  font-size: 1.5rem; font-weight: 800; color: var(--ocean-900); letter-spacing: -0.01em;
}
.start-card .start-meta {
  font-size: 0.9rem; color: var(--gray-600);
}
.start-card .start-cta {
  margin-top: 6px;
  font-weight: 700; font-size: 0.95rem;
  color: var(--ocean-700);
}
.start-card-full .start-cta { color: var(--amber-700); }

/* ===== Cookie consent banner ===== */
#wopt-cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  max-width: 880px;
  margin: 0 auto;
}
.wopt-cookie-inner {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.wopt-cookie-text {
  flex: 1; min-width: 240px;
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.wopt-cookie-text strong { color: var(--ocean-900); display: block; margin-bottom: 2px; }
.wopt-cookie-text a { color: var(--ocean-700); }
.wopt-cookie-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
@media (max-width: 560px) {
  #wopt-cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; }
  .wopt-cookie-text { font-size: .88rem; }
  .wopt-cookie-actions { width: 100%; }
  .wopt-cookie-actions .btn { flex: 1; }
}

/* ===== Print-friendly results ===== */
@media print {
  .site-nav, .trust-bar, .site-footer, .ad-slot, .q-actions, #wopt-cookie-banner { display: none !important; }
  body { background: white; }
}

/* ===== Lead-magnet email capture (lead-magnet.js) ===== */
.lead-magnet { margin: 28px 0; }
.lm-card {
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--ocean-50) 0%, #fff 100%);
  border: 1px solid var(--ocean-200);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(12,74,110,.06);
}
.lm-icon {
  flex: 0 0 48px; width: 48px; height: 48px;
  background: var(--ocean-600); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.lm-icon-success { background: var(--green-600, #16a34a); }
.lm-body { flex: 1; min-width: 240px; }
.lm-headline {
  margin: 0 0 6px;
  color: var(--ocean-900);
  font-size: 1.2rem; font-weight: 800; line-height: 1.25;
}
.lm-sub {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: .97rem; line-height: 1.55;
}
.lm-form {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 0 8px;
}
.lm-input {
  flex: 1; min-width: 220px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid var(--gray-300, #cbd5e1);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  color: var(--gray-900);
}
.lm-input:focus {
  outline: none;
  border-color: var(--ocean-600);
  box-shadow: 0 0 0 3px var(--ocean-100);
}
.lm-btn {
  padding: 10px 18px;
  background: var(--amber-500);
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.lm-btn:hover { background: #d97706; }
.lm-btn:disabled { opacity: .6; cursor: not-allowed; }
.lm-btn-download {
  display: inline-flex; align-items: center;
  text-decoration: none;
  background: var(--ocean-600);
  color: #fff;
}
.lm-btn-download:hover { background: var(--ocean-700); color: #fff; }
.lm-fineprint {
  margin: 4px 0 0;
  font-size: .82rem;
  color: var(--gray-600);
}
.lm-error {
  margin: 6px 0 0;
  color: #dc2626;
  font-size: .9rem;
  min-height: 1em;
}
@media (max-width: 520px) {
  .lm-form { flex-direction: column; }
  .lm-btn { width: 100%; }
}

/* ============================================================
   Discipline IA: nav dropdown, homepage chooser, hub heroes,
   and per-state discipline tabs.
   ============================================================ */

/* ----- Nav: "Practice Tests" dropdown ----- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-dropdown-toggle .caret {
  width: 9px; height: 9px; transition: transform .15s ease;
}
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  margin-top: 8px;
  min-width: 250px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md, 0 8px 24px rgba(12,74,110,.12));
  padding: 6px; z-index: 60;
}
/* Transparent bridge over the visual gap so the cursor keeps :hover while
   travelling from the toggle down into the menu (fixes the menu vanishing). */
.nav-dropdown-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown:hover .nav-dropdown-toggle .caret { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: .92rem; line-height: 1.25;
}
.nav-dropdown-menu a small {
  display: block; color: var(--gray-500); font-weight: 400; font-size: .76rem; margin-top: 1px;
}
.nav-dropdown-menu a.soon { color: var(--gray-500); }
.nav-dropdown-menu a .soon-pill {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .04em;
  background: var(--gray-100); color: var(--gray-600);
  padding: 1px 6px; border-radius: 999px; margin-left: 6px; font-weight: 700;
}
@media (max-width: 960px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static; display: block; box-shadow: none; border: none;
    min-width: 0; padding: 0 0 0 12px; margin-top: 2px;
  }
  .nav-dropdown:hover .nav-dropdown-toggle .caret { transform: none; }
}

/* ----- Homepage discipline chooser ----- */
.discipline-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 20px;
}
@media (max-width: 720px) { .discipline-grid { grid-template-columns: 1fr; } }
.discipline-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--ocean-200); border-radius: 16px;
  padding: 24px; background: #fff; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
a.discipline-card:hover {
  text-decoration: none; box-shadow: 0 10px 30px rgba(12,74,110,.10);
  transform: translateY(-2px); border-color: var(--ocean-400, #38bdf8);
}
.discipline-card .dc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.discipline-card .dc-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ocean-600); color: #fff;
}
.discipline-card h3 { margin: 0; font-size: 1.2rem; color: var(--ocean-900); }
.discipline-card p { margin: 0 0 16px; color: var(--gray-700); font-size: .95rem; line-height: 1.55; }
.discipline-card .dc-cta { margin-top: auto; font-weight: 700; color: var(--ocean-700); font-size: .95rem; }
.discipline-card.is-soon { background: var(--gray-50, #f8fafc); border-style: dashed; }
.discipline-card.is-soon h3 { color: var(--gray-700); }
.discipline-card.is-soon .dc-icon { opacity: .85; }
.dc-pill {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; margin-left: auto;
}
.dc-pill.live { background: #dcfce7; color: #15803d; }
.dc-pill.soon { background: var(--gray-100); color: var(--gray-600); }

/* ----- Per-state discipline tabs (pure CSS, radio-driven) ----- */
.disc-tabs { margin-top: 16px; }
.disc-tabs input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.disc-tablist { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--gray-200); }
.disc-tablist label {
  cursor: pointer; padding: 9px 16px; font-weight: 600; font-size: .95rem;
  color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.disc-tablist label:hover { color: var(--ocean-700); }
.disc-tablist label .soon-pill {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .04em;
  background: var(--gray-100); color: var(--gray-500); padding: 1px 6px;
  border-radius: 999px; margin-left: 5px; font-weight: 700;
}
.disc-panel { display: none; padding-top: 18px; }
#disc-dw:checked    ~ .disc-tablist label[for="disc-dw"],
#disc-ww:checked    ~ .disc-tablist label[for="disc-ww"],
#disc-dist:checked  ~ .disc-tablist label[for="disc-dist"],
#disc-coll:checked  ~ .disc-tablist label[for="disc-coll"] {
  color: var(--ocean-900); border-bottom-color: var(--ocean-600);
}
#disc-dw:checked    ~ .disc-panels #panel-dw,
#disc-ww:checked    ~ .disc-panels #panel-ww,
#disc-dist:checked  ~ .disc-panels #panel-dist,
#disc-coll:checked  ~ .disc-panels #panel-coll { display: block; }
