/* ===========================================================================
   AZ-305 Exam Prep Microsite — Microsoft Certification inspired theme
   =========================================================================== */
:root {
  --ms-blue: #0078d4;
  --ms-blue-dark: #005a9e;
  --ms-blue-darker: #004578;
  --ms-bg: #faf9f8;
  --ms-surface: #ffffff;
  --ms-border: #e1dfdd;
  --ms-border-strong: #c8c6c4;
  --ms-text: #201f1e;
  --ms-text-secondary: #605e5c;
  --ms-text-tertiary: #8a8886;
  --ms-green: #107c10;
  --ms-green-bg: #dff6dd;
  --ms-red: #d13438;
  --ms-red-bg: #fde7e9;
  --ms-amber: #ca5010;
  --ms-amber-bg: #fff4ce;
  --ms-purple: #5c2d91;
  --shadow-sm: 0 1.6px 3.6px rgba(0,0,0,.13), 0 .3px .9px rgba(0,0,0,.11);
  --shadow-md: 0 3.2px 7.2px rgba(0,0,0,.13), 0 .6px 1.8px rgba(0,0,0,.11);
  --shadow-lg: 0 6.4px 14.4px rgba(0,0,0,.13), 0 1.2px 3.6px rgba(0,0,0,.11);
  --radius: 4px;
  --radius-lg: 8px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ms-bg);
  color: var(--ms-text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ms-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: var(--ms-text); }
h1 { font-size: 2rem; margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.175rem; margin: 1.5rem 0 .5rem; }
code { background: #f3f2f1; padding: .1em .35em; border-radius: 3px; font-size: .9em; font-family: "Cascadia Code", Consolas, monospace; }

/* ---------- Top navigation ---------- */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--ms-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 56px; gap: 28px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; color: var(--ms-text); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 28px; height: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.brand .logo span { display: block; }
.brand .logo .s1 { background: #f25022; }
.brand .logo .s2 { background: #7fba00; }
.brand .logo .s3 { background: #00a4ef; }
.brand .logo .s4 { background: #ffb900; }
.brand .badge { font-size: .7rem; background: var(--ms-blue); color: #fff; padding: 2px 7px; border-radius: 10px; font-weight: 600; letter-spacing: .03em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius); color: var(--ms-text-secondary);
  font-weight: 500; font-size: .92rem; transition: background .15s;
}
.nav-links a:hover { background: #f3f2f1; text-decoration: none; color: var(--ms-text); }
.nav-links a.active { color: var(--ms-blue-dark); background: #eff6fc; }

/* ---------- Mobile nav (CSS-only hamburger) ---------- */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }

@media (max-width: 720px) {
  .topbar-inner { gap: 12px; height: 52px; }
  .brand { font-size: .95rem; gap: 8px; white-space: nowrap; flex-shrink: 0; }
  .brand .logo { width: 24px; height: 24px; }

  .nav-toggle-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 40px; height: 40px; padding: 9px;
    border-radius: var(--radius); cursor: pointer; box-sizing: border-box;
  }
  .nav-toggle-btn:hover { background: #f3f2f1; }
  .nav-toggle-btn span {
    display: block; width: 100%; height: 2px; background: var(--ms-text);
    border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
  }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin-left: 0;
    background: #fff; border-bottom: 1px solid var(--ms-border);
    box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links a {
    padding: 14px 24px; border-top: 1px solid var(--ms-border);
    border-radius: 0; font-size: 1rem;
  }
  .nav-toggle:checked ~ .nav-links { max-height: 320px; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }
.container-narrow { max-width: 900px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, #004578 0%, #0078d4 55%, #2899f5 100%);
  color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; opacity: .9; font-weight: 600; }
.hero h1 { color: #fff; font-size: 2.5rem; max-width: 760px; margin: 10px 0 14px; }
.hero p { font-size: 1.1rem; max-width: 620px; opacity: .95; margin: 0 0 24px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta .item { }
.hero-meta .num { font-size: 1.7rem; font-weight: 700; }
.hero-meta .lbl { font-size: .82rem; opacity: .9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius); padding: 9px 20px;
  font-family: var(--font); font-size: .95rem; font-weight: 600; transition: all .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ms-blue); color: #fff; }
.btn-primary:hover { background: var(--ms-blue-dark); }
.btn-light { background: #fff; color: var(--ms-blue-dark); }
.btn-light:hover { background: #f3f2f1; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-secondary { background: #fff; color: var(--ms-text); border-color: var(--ms-border-strong); }
.btn-secondary:hover { background: #f3f2f1; }
.btn-ghost { background: transparent; color: var(--ms-blue-dark); }
.btn-ghost:hover { background: #eff6fc; }
.btn-danger { background: var(--ms-red); color: #fff; }
.btn-danger:hover { background: #a4262c; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 12px 28px; font-size: 1.02rem; }
.btn-sm { padding: 6px 14px; font-size: .85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--ms-surface); border: 1px solid var(--ms-border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card-grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.feature-card { transition: box-shadow .15s, transform .15s; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 14px; background: #eff6fc; color: var(--ms-blue-dark);
}
.feature-card h3 { margin: 0 0 8px; }
.feature-card p { color: var(--ms-text-secondary); margin: 0 0 14px; font-size: .93rem; }

/* ---------- Domain progress ---------- */
.domain-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ms-border); }
.domain-row:last-child { border-bottom: none; }
.domain-row .dnum {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--ms-blue);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.domain-row .dinfo { flex: 1; min-width: 0; }
.domain-row .dinfo strong { display: block; font-size: .98rem; }
.domain-row .dinfo span { font-size: .82rem; color: var(--ms-text-tertiary); }
.weight-pill { background: #eff6fc; color: var(--ms-blue-dark); padding: 3px 10px; border-radius: 12px; font-size: .8rem; font-weight: 600; white-space: nowrap; }

.progress-track { height: 8px; background: #edebe9; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--ms-green); border-radius: 4px; transition: width .4s; }

/* ---------- Badges / pills ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .78rem; font-weight: 600; }
.pill-blue { background: #eff6fc; color: var(--ms-blue-dark); }
.pill-green { background: var(--ms-green-bg); color: var(--ms-green); }
.pill-amber { background: var(--ms-amber-bg); color: var(--ms-amber); }
.pill-red { background: var(--ms-red-bg); color: var(--ms-red); }
.pill-gray { background: #f3f2f1; color: var(--ms-text-secondary); }

/* ===========================================================================
   STUDY GUIDE
   =========================================================================== */
.study-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .study-layout { grid-template-columns: 1fr; } }
.study-toc { position: sticky; top: 80px; }
.study-toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ms-text-tertiary); margin: 0 0 10px; }
.study-toc a { display: block; padding: 7px 12px; border-radius: var(--radius); color: var(--ms-text-secondary); font-size: .9rem; border-left: 2px solid transparent; }
.study-toc a:hover { background: #f3f2f1; text-decoration: none; }
.study-toc a.active { color: var(--ms-blue-dark); border-left-color: var(--ms-blue); background: #eff6fc; font-weight: 600; }

.study-content section { margin-bottom: 48px; scroll-margin-top: 80px; }
.study-content p { color: var(--ms-text); }
.study-content ul { padding-left: 22px; }
.study-content li { margin: 6px 0; }

.callout { border-left: 4px solid var(--ms-blue); background: #eff6fc; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.callout.tip { border-color: var(--ms-green); background: var(--ms-green-bg); }
.callout.warn { border-color: var(--ms-amber); background: var(--ms-amber-bg); }
.callout.exam { border-color: var(--ms-purple); background: #f5f0fb; }
.callout strong { display: block; margin-bottom: 4px; }

table.ref { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
table.ref th, table.ref td { text-align: left; padding: 10px 14px; border: 1px solid var(--ms-border); vertical-align: top; }
table.ref th { background: #f3f2f1; font-weight: 600; }
table.ref tr:nth-child(even) td { background: #faf9f8; }

/* ===========================================================================
   EXAM SIMULATOR — Pearson VUE inspired UI
   =========================================================================== */
.exam-shell { min-height: 100vh; display: flex; flex-direction: column; background: #f3f2f1; }
.exam-topbar {
  background: #1b1a19; color: #fff; display: flex; align-items: center; padding: 0 20px; height: 52px; gap: 20px;
}
.exam-topbar .e-title { font-weight: 600; font-size: .95rem; }
.exam-topbar .e-spacer { flex: 1; }
.exam-topbar .e-timer { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 600; background: #323130; padding: 6px 14px; border-radius: var(--radius); }
.exam-topbar .e-timer.warning { background: #5c1f00; color: #ffb780; }
.exam-topbar .e-timer.danger { background: #6e0811; color: #ff9ba1; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.exam-topbar .e-qcount { font-size: .9rem; color: #d2d0ce; }

.exam-body { flex: 1; display: flex; max-width: 1280px; width: 100%; margin: 0 auto; }
.exam-main { flex: 1; padding: 28px 36px; background: #fff; min-width: 0; }
.casestudy-panel { width: 46%; border-right: 1px solid var(--ms-border); padding: 24px 28px; overflow-y: auto; max-height: calc(100vh - 110px); background: #fbfbfb; }
.casestudy-panel h3 { margin-top: 0; }
.casestudy-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ms-border); margin-bottom: 16px; flex-wrap: wrap; }
.casestudy-tabs button {
  border: none; background: transparent; padding: 9px 14px; cursor: pointer; font-family: var(--font);
  font-size: .88rem; color: var(--ms-text-secondary); border-bottom: 2px solid transparent;
}
.casestudy-tabs button.active { color: var(--ms-blue-dark); border-bottom-color: var(--ms-blue); font-weight: 600; }
.casestudy-content { font-size: .92rem; }
.casestudy-content h4 { margin: 16px 0 6px; }

.q-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; color: var(--ms-text-tertiary); font-size: .85rem; }
.q-instruction { color: var(--ms-text-secondary); font-style: italic; margin: 4px 0 18px; font-size: .92rem; }
.q-stem { font-size: 1.05rem; line-height: 1.6; margin-bottom: 22px; }
.q-stem p { margin: 0 0 12px; }

/* Multiple choice / multi-select options */
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--ms-border-strong);
  border-radius: var(--radius); cursor: pointer; transition: all .12s; background: #fff;
}
.option:hover { border-color: var(--ms-blue); background: #f9fcff; }
.option.selected { border-color: var(--ms-blue); background: #eff6fc; box-shadow: inset 0 0 0 1px var(--ms-blue); }
.option input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--ms-blue); }
.option .opt-text { flex: 1; }
.option.correct { border-color: var(--ms-green); background: var(--ms-green-bg); }
.option.incorrect { border-color: var(--ms-red); background: var(--ms-red-bg); }
.option .opt-mark { margin-left: auto; font-weight: 700; }
.option.correct .opt-mark { color: var(--ms-green); }
.option.incorrect .opt-mark { color: var(--ms-red); }

/* Dropdown (build solution / hot area) */
.dropdown-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.dropdown-table td { padding: 12px 14px; border: 1px solid var(--ms-border); }
.dropdown-table td:first-child { background: #f3f2f1; font-weight: 500; width: 55%; }
.dropdown-table select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--ms-border-strong); border-radius: var(--radius);
  font-family: var(--font); font-size: .92rem; background: #fff;
}
.dropdown-table select.correct { border-color: var(--ms-green); background: var(--ms-green-bg); }
.dropdown-table select.incorrect { border-color: var(--ms-red); background: var(--ms-red-bg); }

/* Drag and drop */
.dnd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .dnd-wrap { grid-template-columns: 1fr; } }
.dnd-col h4 { margin: 0 0 10px; font-size: .92rem; }
.dnd-source, .dnd-targets { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.dnd-item {
  padding: 11px 14px; background: #fff; border: 1px solid var(--ms-border-strong); border-radius: var(--radius);
  cursor: grab; font-size: .92rem; box-shadow: var(--shadow-sm);
}
.dnd-item:active { cursor: grabbing; }
.dnd-item.dragging { opacity: .4; }
.dnd-target {
  border: 2px dashed var(--ms-border-strong); border-radius: var(--radius); padding: 8px; min-height: 52px;
  display: flex; flex-direction: column; gap: 6px; background: #faf9f8;
}
.dnd-target.over { border-color: var(--ms-blue); background: #eff6fc; }
.dnd-target .target-label { font-size: .8rem; color: var(--ms-text-tertiary); padding: 2px 4px; }
.dnd-target .dnd-item.correct { border-color: var(--ms-green); background: var(--ms-green-bg); }
.dnd-target .dnd-item.incorrect { border-color: var(--ms-red); background: var(--ms-red-bg); }

/* Explanation box (review mode) */
.explanation {
  margin-top: 22px; border: 1px solid var(--ms-border); border-radius: var(--radius-lg); overflow: hidden;
}
.explanation .exp-head { padding: 12px 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.explanation.pass .exp-head { background: var(--ms-green-bg); color: var(--ms-green); }
.explanation.fail .exp-head { background: var(--ms-red-bg); color: var(--ms-red); }
.explanation .exp-body { padding: 16px 18px; font-size: .93rem; }
.explanation .exp-body p { margin: 0 0 10px; }
.explanation .ref-link { font-size: .85rem; }

/* Exam footer / nav */
.exam-footer {
  background: #fff; border-top: 1px solid var(--ms-border); padding: 12px 36px; display: flex;
  align-items: center; gap: 12px; position: sticky; bottom: 0;
}
.exam-footer .flag-btn { margin-right: auto; }
.flag-btn.flagged { color: var(--ms-amber); }

/* Question navigator grid */
.navigator-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: none; align-items: center; justify-content: center;
}
.navigator-overlay.open { display: flex; }
.navigator {
  background: #fff; border-radius: var(--radius-lg); padding: 28px; max-width: 720px; width: 92%; max-height: 84vh; overflow-y: auto;
}
.nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; margin: 18px 0; }
.nav-cell {
  aspect-ratio: 1; border: 1px solid var(--ms-border-strong); border-radius: var(--radius); display: grid; place-items: center;
  cursor: pointer; font-size: .85rem; font-weight: 600; background: #fff; position: relative;
}
.nav-cell:hover { border-color: var(--ms-blue); }
.nav-cell.answered { background: #eff6fc; border-color: var(--ms-blue); color: var(--ms-blue-dark); }
.nav-cell.flagged::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; background: var(--ms-amber); border-radius: 50%; }
.nav-cell.current { outline: 2px solid var(--ms-blue); outline-offset: 1px; }
.nav-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--ms-text-secondary); }
.nav-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--ms-border-strong); }

/* ---------- Exam start / config screen ---------- */
.exam-config { max-width: 720px; margin: 40px auto; }
.config-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--ms-border); border-radius: var(--radius-lg); margin-bottom: 12px; cursor: pointer; }
.config-option:hover { border-color: var(--ms-blue); }
.config-option.selected { border-color: var(--ms-blue); background: #eff6fc; }
.config-option input { width: 18px; height: 18px; accent-color: var(--ms-blue); }
.config-option .co-info { flex: 1; }
.config-option .co-info strong { display: block; }
.config-option .co-info span { font-size: .85rem; color: var(--ms-text-secondary); }

/* ---------- Results screen ---------- */
.score-hero { text-align: center; padding: 40px 0; }
.score-ring { width: 200px; height: 200px; margin: 0 auto 24px; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .score-num { position: absolute; inset: 0; display: grid; place-items: center; flex-direction: column; }
.score-ring .score-num .big { font-size: 3rem; font-weight: 700; line-height: 1; }
.score-ring .score-num .small { font-size: .85rem; color: var(--ms-text-secondary); }
.verdict { font-size: 1.5rem; font-weight: 700; margin: 8px 0; }
.verdict.pass { color: var(--ms-green); }
.verdict.fail { color: var(--ms-red); }

.breakdown-bar { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.breakdown-bar .bd-label { width: 280px; flex: 0 0 280px; font-size: .9rem; }
.breakdown-bar .bd-track { flex: 1; height: 22px; background: #edebe9; border-radius: 4px; overflow: hidden; position: relative; }
.breakdown-bar .bd-fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 8px; color: #fff; font-size: .78rem; font-weight: 600; }
.breakdown-bar .bd-pct { width: 70px; flex: 0 0 70px; text-align: right; font-weight: 600; font-size: .9rem; }
@media (max-width: 700px) { .breakdown-bar .bd-label { width: 130px; flex-basis: 130px; } }

/* ---------- Lab exercises ---------- */
.lab-card { border-left: 4px solid var(--ms-purple); }
.lab-steps { counter-reset: step; padding-left: 0; list-style: none; }
.lab-steps li { position: relative; padding: 0 0 18px 44px; }
.lab-steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; background: var(--ms-purple); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.lab-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: #e6dcf2;
}

.task-check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.task-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--ms-purple); }

/* ---------- Misc ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.muted { color: var(--ms-text-secondary); }
.divider { height: 1px; background: var(--ms-border); margin: 28px 0; border: none; }
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--ms-border-strong); border-bottom-width: 2px; border-radius: 4px; font-size: .8rem; background: #fff; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 18px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mt-sm { margin-top: 14px; } .mt-xs { margin-top: 8px; }
.hidden { display: none !important; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.fine-print { font-size: .82rem; }
.full-btn { width: 100%; justify-content: center; }
.config-select { padding: 9px 12px; border: 1px solid var(--ms-border-strong); border-radius: 4px; font-size: .95rem; width: 100%; max-width: 320px; }
.config-error { color: var(--ms-red, #d13438); background: var(--ms-red-bg, #fde7e9); border: 1px solid var(--ms-red, #d13438); border-radius: 4px; padding: 8px 12px; font-size: .88rem; margin-top: 8px; }
.footer-title { color: #fff; }
.legend-dot.answered-dot { background: #eff6fc; border-color: #0078d4; }
.legend-dot.unanswered-dot { background: #fff; }
.legend-dot.flagged-dot { background: #fff; position: relative; }

footer.site-footer { background: #1b1a19; color: #c8c6c4; padding: 32px 0; margin-top: 40px; }
footer.site-footer .container { padding-top: 0; padding-bottom: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.site-footer a { color: #8ec8ff; }
footer.site-footer .disclaimer { font-size: .8rem; max-width: 560px; line-height: 1.5; }

/* Prominent disclaimer banner */
.disclaimer-banner {
  background: var(--ms-amber-bg); border: 1px solid #f0c36d; border-left: 5px solid var(--ms-amber);
  color: #5a3a08; padding: 14px 0;
}
.disclaimer-banner .container { padding-top: 0; padding-bottom: 0; }
.disclaimer-banner strong { color: var(--ms-amber); }
.disclaimer-banner p { margin: 0; font-size: .9rem; line-height: 1.55; }
.disclaimer-banner .title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; }
