:root {
  --navy-950: #0a0e17;
  --navy-900: #0f1420;
  --navy-800: #151b2c;
  --navy-700: #1c2438;
  --navy-600: #263049;
  --charcoal: #1a1d24;
  --border: #2a3348;
  --border-light: #e5e7eb;

  --text-hi: #eef1f8;
  --text-mid: #b6bfd4;
  --text-low: #7d879e;

  --accent: #2dd4bf;
  --accent-dark: #0e9488;
  --accent-blue: #3b82f6;

  --white: #ffffff;
  --off-white: #f7f8fb;

  --red: #ef4444;
  --red-bg: #3a1418;

  --orange: #f59e0b;
  --orange-bg: #3a2a0e;

  --yellow: #eab308;

  --green: #22c55e;
  --green-bg: #0f3520;

  --radius: 10px;
  --radius-sm: 6px;

  --shadow: 0 4px 20px rgba(0,0,0,0.25);

  --font:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--off-white);
  color: #1f2430;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =========================================================
   Navbar
   ========================================================= */

.navbar {
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-700);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-hi);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  font-weight: 900;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links button.linklike {
  color: var(--text-mid);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.nav-links a:hover,
.nav-links button.linklike:hover {
  color: var(--text-hi);
  background: var(--navy-800);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy-950) !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
}


/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 18px;

  border-radius: var(--radius-sm);
  border: 1px solid transparent;

  font-weight: 600;
  font-size: 0.92rem;

  cursor: pointer;
  font-family: var(--font);

  min-height: 42px;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}


/* ---------------- Primary Button ---------------- */

.btn-primary {
  background: #2DD4BF;
  color: #0a0e17;
  border-color: #2DD4BF;
}

.btn-primary:hover {
  background: #0a0e17;
  color: #2DD4BF;
  border-color: #0a0e17;
}


/* ---------------- Accent Button ---------------- */

.btn-accent {
  background: #2DD4BF;
  color: #0a0e17;
  border-color: #2DD4BF;
}

.btn-accent:hover {
  background: #0a0e17;
  color: #2DD4BF;
  border-color: #0a0e17;
}


/* ---------------- Outline Button ---------------- */

.btn-outline {
  background: #2DD4BF;
  color: #0a0e17 !important;
  border-color: #2DD4BF;
}

.btn-outline:hover {
  background: #0a0e17 !important;
  color: #2DD4BF !important;
  border-color: #0a0e17 !important;
}


/* ---------------- Danger Button ---------------- */

.btn-danger {
  background: #2DD4BF;
  color: #0a0e17;
  border-color: #2DD4BF;
}

.btn-danger:hover {
  background: #0a0e17;
  color: #2DD4BF;
  border-color: #0a0e17;
}


/* ---------------- Ghost Button ---------------- */

.btn-ghost {
  background: #2DD4BF;
  color: #0a0e17;
  border-color: #2DD4BF;
}

.btn-ghost:hover {
  background: #0a0e17;
  color: #2DD4BF;
  border-color: #0a0e17;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  min-height: 32px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* =========================================================
   Cards
   ========================================================= */

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
}

.card-dark {
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text-hi);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
}

.stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy-950);
}

.stat-card .stat-label {
  color: var(--text-low);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 4px;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
  background:
    radial-gradient(
      circle at 20% 20%,
      #16213a 0%,
      var(--navy-950) 60%
    );

  color: var(--white);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      var(--navy-700) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      var(--navy-700) 1px,
      transparent 1px
    );

  background-size: 42px 42px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-disclaimer {
  display: inline-block;
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  color: var(--text-mid);

  padding: 6px 14px;

  border-radius: 100px;
  font-size: 0.8rem;
  margin-bottom: 22px;
}


/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 6px;
}

.section-sub {
  color: var(--text-low);
  margin-bottom: 30px;
}

.domain-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.domain-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);

  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.domain-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.domain-num {
  display: inline-block;
  background: var(--navy-950);
  color: var(--accent);

  font-weight: 800;
  font-size: 0.75rem;

  padding: 3px 9px;

  border-radius: 100px;
  margin-bottom: 10px;
}

.domain-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--navy-950);
}

.domain-card p {
  margin: 0;
  color: var(--text-low);
  font-size: 0.86rem;
}


/* =========================================================
   Forms
   ========================================================= */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #1f2430;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-low);
  margin-top: 4px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=search],
select,
textarea {
  width: 100%;

  padding: 10px 12px;

  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);

  font-size: 0.94rem;
  font-family: var(--font);

  background: var(--white);
  color: #1f2430;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(45,212,191,0.18);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
}

fieldset {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

legend {
  font-weight: 700;
  padding: 0 6px;
  font-size: 0.88rem;
}

.option-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.pill-select {
  display: block;
}

.pill-select input {
  position: absolute;
  opacity: 0;
}

.pill-select span {
  display: block;
  text-align: center;

  padding: 10px 8px;

  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);

  cursor: pointer;

  font-weight: 600;
  font-size: 0.88rem;

  color: #444;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.pill-select input:checked + span {
  border-color: var(--accent);
  background: rgba(45,212,191,0.1);
  color: var(--accent-dark);
}


/* =========================================================
   Alerts / Flash
   ========================================================= */

.flash-wrap {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 0 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-error {
  background: #fdecec;
  color: #9b1c1c;
  border-color: #f5b5b5;
}

.alert-success {
  background: #eafaf1;
  color: #14532d;
  border-color: #a7e6bc;
}

.alert-warning {
  background: #fff8e6;
  color: #7a5b00;
  border-color: #f5deA0;
}

.alert-info {
  background: #eaf2ff;
  color: #1e3a8a;
  border-color: #b7d0ff;
  word-break: break-word;
}


/* =========================================================
   Badges
   ========================================================= */

.badge {
  display: inline-block;

  padding: 3px 10px;

  border-radius: 100px;

  font-size: 0.74rem;
  font-weight: 700;

  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-easy {
  background: #e6f8ec;
  color: #1a7f37;
}

.badge-intermediate {
  background: #fff6db;
  color: #8a6d00;
}

.badge-hard {
  background: #ffe9df;
  color: #b1440e;
}

.badge-expert {
  background: #fbe3ef;
  color: #a3134f;
}

.badge-domain {
  background: var(--navy-950);
  color: var(--accent);
}

.badge-status-draft {
  background: #eee;
  color: #555;
}

.badge-status-review {
  background: #fff6db;
  color: #8a6d00;
}

.badge-status-approved {
  background: #e6f2ff;
  color: #14508a;
}

.badge-status-published {
  background: #e6f8ec;
  color: #1a7f37;
}

.badge-status-archived {
  background: #f2f2f2;
  color: #888;
}


/* =========================================================
   Tables
   ========================================================= */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

th {
  color: var(--text-low);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}

tr:hover td {
  background: #fafbfd;
}

.table-wrap {
  overflow-x: auto;
}


/* =========================================================
   Progress Bars
   ========================================================= */

.progress-track {
  background: #eef0f5;
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent);
}

.progress-fill.red {
  background: var(--red);
}

.progress-fill.orange {
  background: var(--orange);
}

.progress-fill.yellow {
  background: var(--yellow);
}

.progress-fill.green {
  background: var(--green);
}


/* =========================================================
   Dashboard
   ========================================================= */

.readiness-ring-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.domain-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.domain-bar-row .label {
  width: 220px;
  font-size: 0.86rem;
  font-weight: 600;
  flex-shrink: 0;
}

.domain-bar-row .track {
  flex: 1;
}

.domain-bar-row .pct {
  width: 48px;
  text-align: right;
  font-weight: 700;
  font-size: 0.86rem;
}

.weak-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 0;

  border-bottom: 1px solid var(--border-light);
}

.weak-item:last-child {
  border-bottom: none;
}

.flag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.flag-dot.red {
  background: var(--red);
}

.flag-dot.orange {
  background: var(--orange);
}

.flag-dot.yellow {
  background: var(--yellow);
}

.flag-dot.green {
  background: var(--green);
}


/* =========================================================
   Exam Interface
   ========================================================= */

.exam-shell {
  display: flex;
  min-height: calc(100vh - 60px);
  background: var(--off-white);
}

.exam-main {
  flex: 1;
  padding: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.exam-topbar {
  position: sticky;
  top: 60px;
  z-index: 20;

  background: var(--white);
  border-bottom: 1px solid var(--border-light);

  padding: 12px 0;
  margin-bottom: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  flex-wrap: wrap;
  gap: 10px;
}


/* =========================================================
   Exam Timer
   ========================================================= */

.timer-display {
  font-variant-numeric: tabular-nums;

  font-weight: 800;
  font-size: 1.15rem;

  background: var(--navy-950);
  color: var(--accent);

  padding: 8px 16px;

  border-radius: var(--radius-sm);
}

.timer-display.warn {
  color: var(--orange);
}

.timer-display.critical {
  color: var(--red);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

.q-progress {
  font-size: 0.86rem;
  color: var(--text-low);
  font-weight: 600;
}


/* =========================================================
   Question Card
   ========================================================= */

.question-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);

  padding: 24px;
  margin-bottom: 20px;
}

.question-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.question-text {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1f2430;

  margin: 0 0 14px;

  white-space: pre-wrap;
}

.supporting-block {
  background: var(--navy-950);
  color: #d7e0f5;

  font-family:
    "SF Mono",
    Menlo,
    Consolas,
    monospace;

  font-size: 0.85rem;

  padding: 14px 16px;

  border-radius: var(--radius-sm);

  white-space: pre-wrap;

  margin-bottom: 16px;

  overflow-x: auto;
}


/* =========================================================
   MULTIPLE CHOICE ANSWERS
   ========================================================= */

/*
   Normal state
   ---------------------------------------------------------
   White background
   Dark text
   Subtle gray border
*/

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);

  padding: 13px 14px;
  margin-bottom: 10px;

  cursor: pointer;

  min-height: 44px;

  /*
    Everything transitions together.
    This prevents the "instant dark background /
    delayed text" feeling.
  */
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}


/*
   HOVER STATE
   ---------------------------------------------------------
   This uses the EXACT same teal as your Exam button:
   #2DD4BF

   Background becomes navy.
   Text becomes teal.
*/

.answer-option:hover {
  border-color: var(--accent);

  background: var(--navy-950);

  color: var(--accent);

  box-shadow:
    0 4px 14px rgba(45, 212, 191, 0.12);

  transform: translateY(-1px);
}


/*
   Force text inside the answer to use teal.
   This is important if your HTML contains a
   <span>, <label>, <div>, etc. containing the text.
*/

.answer-option:hover * {
  color: var(--accent);
}


/*
   Selected answer
   ---------------------------------------------------------
   Very subtle teal background.
*/

.answer-option.selected {
  border-color: var(--accent);

  background: rgba(45, 212, 191, 0.08);

  color: var(--accent-dark);

  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.08);
}


/*
   Selected + hover
   ---------------------------------------------------------
   Keeps the same beautiful navy/teal hover treatment.
*/

.answer-option.selected:hover {
  background: var(--navy-950);

  border-color: var(--accent);

  color: var(--accent);

  box-shadow:
    0 4px 14px rgba(45, 212, 191, 0.15);

  transform: translateY(-1px);
}

.answer-option.selected:hover * {
  color: var(--accent);
}


/*
   CORRECT ANSWER
   ---------------------------------------------------------
   Smooth green transition.
*/

.answer-option.correct {
  border-color: var(--green);

  background: var(--green-bg);

  color: #eaffea;

  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.12),
    0 4px 14px rgba(34, 197, 94, 0.08);

  transform: none;
}


/*
   Make all text inside correct answers light green.
*/

.answer-option.correct * {
  color: #eaffea;
}


/*
   WRONG ANSWER
   ---------------------------------------------------------
   Smooth red transition.
*/

.answer-option.incorrect {
  border-color: var(--red);

  background: var(--red-bg);

  color: #ffe8e8;

  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.12),
    0 4px 14px rgba(239, 68, 68, 0.08);

  transform: none;
}


/*
   Make all text inside wrong answers light red/white.
*/

.answer-option.incorrect * {
  color: #ffe8e8;
}


/*
   Hidden radio/checkbox input
*/

.answer-option input {
  display: none;
}


/* =========================================================
   Answer Option Label Circle
   ========================================================= */

.answer-option .opt-label {
  width: 26px;
  height: 26px;

  border-radius: 50%;

  border: 1.5px solid var(--border-light);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 0.8rem;

  flex-shrink: 0;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}


/*
   Hover label
   ---------------------------------------------------------
   Teal circle with dark navy letter.
*/

.answer-option:hover .opt-label {
  background: var(--accent);

  border-color: var(--accent);

  color: var(--navy-950);

  box-shadow:
    0 0 10px rgba(45, 212, 191, 0.2);

  transform: scale(1.03);
}


/*
   Selected label
*/

.answer-option.selected .opt-label {
  background: var(--accent);

  border-color: var(--accent);

  color: var(--navy-950);
}


/*
   Correct label
*/

.answer-option.correct .opt-label {
  background: var(--green);

  border-color: var(--green);

  color: #062e12;

  box-shadow:
    0 0 10px rgba(34, 197, 94, 0.15);
}


/*
   Wrong label
*/

.answer-option.incorrect .opt-label {
  background: var(--red);

  border-color: var(--red);

  color: #ffffff;

  box-shadow:
    0 0 10px rgba(239, 68, 68, 0.15);
}


/*
   Remove the old .correct-text rule.
   The .correct state now controls the text.
*/


/* =========================================================
   Exam Actions
   ========================================================= */

.exam-actions {
  display: flex;
  justify-content: space-between;

  gap: 10px;
  flex-wrap: wrap;

  margin-top: 8px;
}

.exam-actions-left,
.exam-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* =========================================================
   Explanation Box
   ========================================================= */

.explain-box {
  margin-top: 16px;

  padding: 16px;

  border-radius: var(--radius-sm);

  background: #f5f8ff;
  border: 1px solid #d5e2ff;

  font-size: 0.9rem;
}

.explain-box h4 {
  margin: 0 0 6px;

  font-size: 0.86rem;

  text-transform: uppercase;
  letter-spacing: 0.3px;

  color: var(--accent-dark);
}

.explain-box + .explain-box {
  margin-top: 10px;
}


/* =========================================================
   Exam Navigation Panel
   ========================================================= */

.nav-panel {
  width: 260px;

  background: var(--white);

  border-left: 1px solid var(--border-light);

  padding: 20px;

  position: sticky;
  top: 60px;

  align-self: flex-start;

  height: calc(100vh - 60px);

  overflow-y: auto;
}

.nav-panel h4 {
  font-size: 0.8rem;

  text-transform: uppercase;

  color: var(--text-low);

  margin: 0 0 10px;
}

.nav-grid {
  display: grid;

  grid-template-columns:
    repeat(5, 1fr);

  gap: 6px;

  margin-bottom: 18px;
}

.nav-cell {
  aspect-ratio: 1;

  border-radius: 6px;

  border: 1.5px solid var(--border-light);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.76rem;
  font-weight: 700;

  cursor: pointer;

  background: var(--white);
  color: #555;

  position: relative;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.nav-cell.answered {
  background: rgba(45,212,191,0.15);

  border-color: var(--accent);

  color: var(--accent-dark);
}

.nav-cell.current {
  border-color: var(--navy-950);
  border-width: 2px;
}

.nav-cell.marked::after {
  content: "\2022";

  position: absolute;

  top: -2px;
  right: 2px;

  color: var(--orange);

  font-size: 1.1rem;
}

.legend-item {
  display: flex;
  align-items: center;

  gap: 8px;

  font-size: 0.78rem;
  color: var(--text-low);

  margin-bottom: 6px;
}

.legend-swatch {
  width: 12px;
  height: 12px;

  border-radius: 3px;

  border: 1.5px solid var(--border-light);
}

.legend-swatch.answered {
  background: rgba(45,212,191,0.15);

  border-color: var(--accent);
}


/* =========================================================
   Responsive Exam Layout
   ========================================================= */

@media (max-width: 900px) {
  .exam-shell {
    flex-direction: column;
  }

  .nav-panel {
    width: 100%;

    height: auto;

    position: static;

    border-left: none;

    border-top: 1px solid var(--border-light);
  }

  .nav-grid {
    grid-template-columns:
      repeat(8, 1fr);
  }
}


/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--navy-950);

  color: var(--text-mid);

  padding: 40px 0 24px;

  margin-top: 60px;

  font-size: 0.86rem;
}

.footer a {
  color: var(--text-mid);
}

.footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;

  grid-template-columns:
    2fr 1fr 1fr;

  gap: 30px;

  margin-bottom: 24px;
}

.footer-disclaimer {
  border-top: 1px solid var(--navy-700);

  padding-top: 18px;

  font-size: 0.78rem;

  color: var(--text-low);

  line-height: 1.6;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Disclaimer
   ========================================================= */

.disclaimer-box {
  background: #fff8e6;

  border: 1px solid #f5deA0;

  border-radius: var(--radius-sm);

  padding: 12px 16px;

  font-size: 0.84rem;

  color: #7a5b00;

  margin: 16px 0;
}


/* =========================================================
   Utility
   ========================================================= */

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-gap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 36px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.text-low {
  color: var(--text-low);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.86rem;
}

.grid-2 {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 20px;
}

.grid-3 {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;
}

@media (max-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  text-align: center;

  padding: 50px 20px;

  color: var(--text-low);
}

.page-header {
  padding: 34px 0 10px;
}

.page-header h1 {
  margin: 0 0 6px;

  font-size: 1.8rem;

  color: var(--navy-950);
}

hr.sep {
  border: none;

  border-top: 1px solid var(--border-light);

  margin: 24px 0;
}


/* =========================================================
   Website Logo
   ========================================================= */

.navbar .brand {
  display: flex;

  align-items: center;

  height: 50px;

  flex-shrink: 0;
}

.navbar .brand-logo {
  display: block;

  width: 170px;
  height: 42px;

  object-fit: contain;
  object-position: left center;

  max-width: 170px;
  max-height: 42px;
}


/* =========================================================
   Footer Logo
   ========================================================= */

.footer .brand {
  display: flex;

  align-items: center;
}

.footer .brand-logo,
.footer .footer-logo {
  display: block;

  width: 170px;
  height: 42px;

  max-width: 170px;
  max-height: 42px;

  object-fit: contain;
}


/* =========================================================
   Mobile Logo
   ========================================================= */

@media (max-width: 768px) {

  .navbar .brand-logo {
    width: 140px;
    height: 38px;

    max-width: 140px;
    max-height: 38px;
  }

  .footer .brand-logo,
  .footer .footer-logo {
    width: 150px;
    height: 40px;

    max-width: 150px;
    max-height: 40px;
  }

}

/* =========================================================
   Responsive
   ========================================================= */

/* ---------------------------------------------------------
   Prevent horizontal overflow everywhere
   --------------------------------------------------------- */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}


/* ---------------------------------------------------------
   Container
   --------------------------------------------------------- */

.container,
.container-narrow {
  width: 100%;
}

@media (max-width: 700px) {
  .container,
  .container-narrow {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* =========================================================
   NAVBAR
   ========================================================= */

/*
   Desktop stays essentially unchanged.
   On mobile the navbar becomes a two-row layout instead
   of forcing everything into the 60px height.
*/

.navbar-inner {
  min-width: 0;
}

.nav-links {
  min-width: 0;
}

.nav-links a,
.nav-links button.linklike {
  white-space: nowrap;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {

  .navbar-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar .brand-logo {
    width: 135px;
    height: 38px;
  }

  .nav-links a,
  .nav-links button.linklike {
    padding: 7px 9px;
    font-size: 0.85rem;
  }
}


/* ---------------------------------------------------------
   Mobile navbar
   --------------------------------------------------------- */

@media (max-width: 768px) {

  .navbar-inner {
    height: auto;
    min-height: 60px;

    padding: 8px 12px;

    display: flex;
    flex-wrap: wrap;

    row-gap: 4px;
  }

  .navbar .brand {
    height: 42px;
    flex: 0 0 auto;
  }

  .navbar .brand-logo {
    width: 120px;
    height: 36px;
    max-width: 120px;
  }

  /*
     Navigation gets its own row.
  */

  .nav-links {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 2px;

    overflow-x: auto;
    overflow-y: hidden;

    flex-wrap: nowrap;

    padding: 2px 0 4px;

    /*
       Hide scrollbar while keeping horizontal scrolling.
    */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a,
  .nav-links button.linklike {
    flex: 0 0 auto;

    padding: 6px 8px;

    font-size: 0.78rem;
  }

  .nav-cta {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* ---------------------------------------------------------
   Very small phones
   --------------------------------------------------------- */

@media (max-width: 480px) {

  .navbar-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar .brand-logo {
    width: 110px;
    max-width: 110px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a,
  .nav-links button.linklike {
    font-size: 0.75rem;
    padding: 6px 7px;
  }
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  width: 100%;
}

@media (max-width: 900px) {

  .hero {
    padding: 64px 0 52px;
  }

  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .hero p.lead {
    font-size: 1.05rem;
    max-width: 600px;
  }
}


@media (max-width: 700px) {

  .hero {
    padding: 52px 0 44px;
  }

  .hero-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .badge-disclaimer {
    max-width: 100%;
    font-size: 0.72rem;
    padding: 6px 11px;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.4px;
    margin-bottom: 16px;
  }

  .hero p.lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-buttons {
    width: 100%;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
}


@media (max-width: 400px) {

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero p.lead {
    font-size: 0.94rem;
  }
}


/* =========================================================
   SECTIONS
   ========================================================= */

@media (max-width: 700px) {

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-sub {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }
}


/* =========================================================
   CARD GRIDS
   ========================================================= */

.card-grid,
.domain-grid {
  width: 100%;
  min-width: 0;
}

@media (max-width: 700px) {

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .domain-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    min-width: 0;
    padding: 16px;
  }

  .stat-card .stat-value {
    font-size: 1.65rem;
    overflow-wrap: anywhere;
  }

  .stat-card .stat-label {
    font-size: 0.72rem;
  }

  .card {
    padding: 17px;
  }
}


@media (max-width: 420px) {

  .card-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   GENERIC GRIDS
   ========================================================= */

@media (max-width: 700px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* =========================================================
   DOMAIN PROGRESS BARS
   ========================================================= */

/*
   The desktop .label has width: 220px.
   That can force horizontal overflow on phones.
*/

@media (max-width: 700px) {

  .domain-bar-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    margin-bottom: 16px;
  }

  .domain-bar-row .label {
    width: auto;
    min-width: 0;
    font-size: 0.8rem;
  }

  .domain-bar-row .pct {
    width: auto;
    font-size: 0.8rem;
  }

  .domain-bar-row .track {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* =========================================================
   FORMS
   ========================================================= */

@media (max-width: 600px) {

  .option-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pill-select span {
    padding: 9px 6px;
    font-size: 0.8rem;
  }

  fieldset {
    padding: 12px;
  }

  input[type=text],
  input[type=email],
  input[type=password],
  input[type=number],
  input[type=search],
  select,
  textarea {
    font-size: 16px;
  }
}


@media (max-width: 400px) {

  .option-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   BUTTONS
   ========================================================= */

@media (max-width: 600px) {

  .btn {
    min-height: 44px;
    padding: 10px 15px;
  }

  .btn-block-mobile {
    width: 100%;
  }
}


/* =========================================================
   EXAM INTERFACE
   ========================================================= */

@media (max-width: 900px) {

  .exam-shell {
    min-height: auto;
  }

  .exam-main {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .nav-panel {
    width: 100%;
  }
}


@media (max-width: 700px) {

  .exam-main {
    padding: 14px;
  }

  .exam-topbar {
    position: sticky;
    top: 0;

    padding: 10px 0;
    margin-bottom: 14px;

    flex-direction: column;
    align-items: stretch;
  }

  .question-card {
    padding: 17px;
    margin-bottom: 14px;
  }

  .question-text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .supporting-block {
    font-size: 0.78rem;
    padding: 12px;
  }
}


/* =========================================================
   ANSWER OPTIONS
   ========================================================= */

@media (max-width: 600px) {

  .answer-option {
    gap: 9px;
    padding: 12px;
    margin-bottom: 8px;
  }

  .answer-option .opt-label {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}


/* =========================================================
   EXAM ACTIONS
   ========================================================= */

@media (max-width: 600px) {

  .exam-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .exam-actions-left,
  .exam-actions-right {
    width: 100%;
    flex-direction: column;
  }

  .exam-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   EXAM NAVIGATION
   ========================================================= */

@media (max-width: 900px) {

  .nav-panel {
    padding: 16px;
  }

  .nav-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}


@media (max-width: 600px) {

  .nav-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }

  .nav-cell {
    font-size: 0.7rem;
  }
}


@media (max-width: 400px) {

  .nav-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* =========================================================
   TABLES
   ========================================================= */

@media (max-width: 700px) {

  .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

@media (max-width: 700px) {

  .page-header {
    padding: 26px 0 8px;
  }

  .page-header h1 {
    font-size: 1.5rem;
    line-height: 1.25;
  }
}


/* =========================================================
   FOOTER
   ========================================================= */

@media (max-width: 700px) {

  .footer {
    padding: 32px 0 20px;
    margin-top: 40px;
  }

  .footer-grid {
    gap: 22px;
  }

  .footer .brand-logo,
  .footer .footer-logo {
    width: 135px;
    height: 38px;
  }
}


/* =========================================================
   UTILITY: FLEX ELEMENTS
   ========================================================= */

@media (max-width: 600px) {

  .flex-between {
    flex-wrap: wrap;
    gap: 10px;
  }

  .flex {
    min-width: 0;
  }

  .flex-gap {
    gap: 8px;
  }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

  .container,
  .container-narrow {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p.lead {
    font-size: 0.9rem;
  }

  .card,
  .stat-card,
  .question-card {
    padding: 14px;
  }
}