:root {
  --bg: #0b0f1a;
  --surface: #151b2b;
  --surface-2: #1d2436;
  --border: #2a3348;
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --primary: #c2410c;
  --primary-strong: #9c3105;
  --ember: #e8622d;
  --accent: #f5b301;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: 40px; margin: 0 0 12px; }
h2 { font-size: 28px; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 22px; }

.shell { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 20; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 26, .88);
  backdrop-filter: blur(8px);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand .gf-site-icon { width: 30px; height: 30px; border-radius: 7px; }
.brand b { color: var(--accent); font-weight: 700; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 48px 20px 8px; text-align: center; }
.hero-left { text-align: left; max-width: 720px; margin: 0 auto; }
.hero-kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: 44px; max-width: 17ch; margin: 0 auto 14px; }
.hero-left h1 { margin: 0 0 12px; }
.hero-sub { color: var(--muted); max-width: 64ch; margin: 0 auto; font-size: 17px; }
.hero-left .hero-sub { margin: 0; }

/* Tool container */
.tool-wrap { max-width: 720px; margin: 28px auto 0; padding: 0 20px; }
.quiz-app {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.quiz-screen { text-align: center; }
.quiz-screen[hidden] { display: none; }

.quiz-kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.quiz-start-sub { color: var(--muted); margin: 0 auto 26px; max-width: 42ch; font-size: 16px; }
.quiz-meta { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

.quiz-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: background .15s ease, transform .05s ease;
}
.quiz-btn:active { transform: translateY(1px); }
.quiz-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-btn-primary { background: var(--primary); color: #fff; }
.quiz-btn-primary:hover { background: var(--primary-strong); }
.quiz-btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.quiz-btn-ghost:hover { border-color: var(--muted); }
.quiz-btn-text { background: transparent; color: var(--muted); }
.quiz-btn-text:hover { color: var(--text); text-decoration: underline; }

/* Question screen */
.quiz-progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.quiz-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--accent)); border-radius: 999px; transition: width .25s ease; }
.quiz-question-count { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.quiz-question { font-family: 'Space Grotesk', sans-serif; font-size: 24px; line-height: 1.3; font-weight: 700; margin: 0 auto 24px; max-width: 26ch; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  text-align: left; width: 100%;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; font-family: 'Inter', sans-serif; font-size: 16px;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.quiz-option:hover { border-color: var(--primary); background: #212a40; }
.quiz-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Result screen */
.quiz-result-seal {
  width: 104px; height: 104px; margin: 8px auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2a2230, var(--surface-2));
  border: 2px solid var(--accent);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; color: var(--accent);
  box-shadow: inset 0 0 0 6px var(--surface), 0 0 0 1px var(--border), var(--shadow-lg);
}
.quiz-result-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px; margin: 0 0 6px; }
.quiz-result-industry { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.quiz-result-traits { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 18px; }
.quiz-trait { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; }
.quiz-result-blurb { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; font-size: 16px; }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quiz-result-note { color: var(--accent); font-size: 14px; margin: 14px 0 0; }

/* Match breakdown */
.quiz-matches-block { max-width: 440px; margin: 0 auto 24px; text-align: left; }
.quiz-matches-heading { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; margin: 0 0 12px; color: var(--text); }
.quiz-matches { list-style: none; margin: 0; padding: 0; }
.quiz-match { display: grid; grid-template-columns: 22px 1fr auto; column-gap: 8px; row-gap: 6px; align-items: center; margin: 0 0 12px; }
.quiz-match-rank { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.quiz-match-name { color: var(--text); font-weight: 600; font-size: 15px; }
.quiz-match-pct { color: var(--accent); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.quiz-match-bar { grid-column: 2 / 4; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.quiz-match-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ember), var(--accent)); }
.quiz-match.is-top .quiz-match-name, .quiz-match.is-top .quiz-match-pct { color: var(--accent); }
.quiz-matches-note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* Prose (page body) */
.prose { max-width: 720px; margin: 52px auto 0; padding: 0 20px; }
.prose-page { margin-top: 24px; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 28px; }
.prose li { margin-bottom: 10px; }
.prose li strong { color: var(--text); }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--accent); }
.prose code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: .9em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 72px; padding: 44px 0 40px; background: var(--surface); }
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.footer-disclaimer { color: var(--muted); font-size: 14px; max-width: 72ch; margin-bottom: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1, .hero h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero { padding-top: 36px; }
  .site-nav { gap: 16px; }
  .quiz-app { padding: 26px 18px; }
  .quiz-question { font-size: 21px; }
  .quiz-option { padding: 13px 14px; }
  .quiz-result-actions { flex-direction: column; }
  .quiz-btn { width: 100%; }
}


/* District pages: breadcrumbs + nav */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumb-sep { margin: 0 6px; color: var(--border); }
.district-nav { display: flex; gap: 16px; align-items: center; max-width: 720px; margin: 44px auto 0; padding: 0 20px; }
.district-nav a { font-weight: 600; color: var(--accent); }
.district-nav a.district-nav-primary { margin-left: auto; }


.quiz-result-more { display: inline-block; color: var(--accent); font-weight: 600; margin: 0 0 20px; }
.quiz-result-more:hover { text-decoration: underline; }


.quiz-result-also { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
