:root {
  --ink: #172025;
  --muted: #5d686d;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #d7dcda;
  --yellow: #f2c230;
  --yellow-dark: #a77a00;
  --teal: #0c6f68;
  --teal-pale: #dff0ed;
  --red: #a63b32;
  --red-pale: #f7e8e5;
  --shadow: 0 14px 30px rgba(23, 32, 37, 0.12);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #151d20;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
}

.brand-short {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #edf0ef;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav > a:not(.nav-action):hover,
.site-nav > a:not(.nav-action):focus-visible {
  color: var(--yellow);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--yellow);
  border-radius: 6px;
}

.mobile-nav-link {
  display: none;
}

.nav-action:hover,
.nav-action:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(88vh - var(--header-height));
  max-height: 800px;
  overflow: hidden;
  background-image: url("assets/electrician-training-lab.png");
  background-position: center center;
  background-size: cover;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 21, 0.64);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(1180px, 92vw);
  min-height: calc(88vh - var(--header-height) - 98px);
  max-height: 702px;
  margin: 0 auto;
  padding: 76px 0 54px;
}

.hero-copy {
  width: min(680px, 66vw);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff1b4;
}

.eyebrow span {
  width: 34px;
  height: 3px;
  background: var(--yellow);
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 610px;
  margin: 24px 0 0;
  color: #edf0ef;
  font-size: 1.22rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #ffdc5c;
  background: #ffdc5c;
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(15, 23, 26, 0.3);
  color: var(--white);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--white);
  background: rgba(15, 23, 26, 0.72);
}

.hero-stats {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 98px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 22, 25, 0.82);
}

.hero-stats div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  color: var(--yellow);
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  color: #d8dedc;
  font-size: 0.92rem;
}

.section-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.builder-band {
  padding: 92px 0;
  background: var(--white);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 112px;
}

.section-intro h2,
.section-heading-row h2,
.progress-layout h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-intro > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.05rem;
}

.builder-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
}

.builder-tool {
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 6px;
  background: #fbfcfb;
  box-shadow: var(--shadow);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 850;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.topic-options label,
.segmented-control label {
  min-width: 0;
  cursor: pointer;
}

.topic-options input,
.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topic-options label span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
}

.topic-options label span svg {
  flex: 0 0 auto;
}

.topic-options input:checked + span {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: #084f4b;
}

.topic-options input:focus-visible + span,
.segmented-control input:focus-visible + span,
.answer-option input:focus-visible + span {
  outline: 3px solid rgba(12, 111, 104, 0.25);
  outline-offset: 2px;
}

.text-action {
  margin-top: 12px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.builder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.count-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented-control label span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.segmented-control label:last-child span {
  border-right: 0;
}

.segmented-control input:checked + span {
  background: var(--ink);
  color: var(--white);
}

.form-error {
  min-height: 1.4em;
  margin: 18px 0 6px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
}

.builder-submit {
  width: 100%;
}

.quiz-band {
  padding: 76px 0;
  background: #e8ecea;
}

.quiz-shell {
  width: min(850px, 92vw);
  min-height: 580px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quiz-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.quiz-topline h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.icon-button {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--ink);
  background: #eef1ef;
}

.quiz-progress {
  width: 100%;
  height: 7px;
  margin: 22px 0 36px;
  overflow: hidden;
  border-radius: 6px;
  background: #e3e7e5;
}

.quiz-progress span {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--teal);
  transition: width 180ms ease;
}

.question-topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.question-text {
  margin: 0 0 26px;
  font-size: 1.45rem;
  line-height: 1.38;
  letter-spacing: 0;
}

.question-visual {
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef1ef;
}

.question-visual img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f7f8f6;
}

.question-visual figcaption,
.glossary-visual figcaption {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.answers {
  display: grid;
  gap: 10px;
}

.answer-option {
  cursor: pointer;
}

.answer-option input {
  position: absolute;
  opacity: 0;
}

.answer-option > span {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
}

.answer-letter {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #c6ccca;
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.answer-option input:checked + span {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.answer-option.correct > span {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.answer-option.incorrect > span {
  border-color: var(--red);
  background: var(--red-pale);
}

.answer-option.is-locked {
  cursor: default;
}

.feedback {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: #edf6f4;
}

.feedback.incorrect {
  border-left-color: var(--red);
  background: var(--red-pale);
}

.feedback strong {
  display: block;
  margin-bottom: 4px;
}

.feedback p {
  margin: 0;
  color: #374449;
}

.question-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.question-actions .button {
  min-width: 170px;
}

.results-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 18px;
}

.score-ring {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 16px solid var(--yellow);
  border-radius: 50%;
  background: #fffdf4;
  text-align: center;
}

.score-ring strong {
  display: block;
  font-size: 2.8rem;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.results-copy h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0;
}

.results-copy > p {
  color: var(--muted);
}

.topic-results {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.topic-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.topics-band {
  padding: 100px 0;
  background: var(--paper);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading-row > p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic-card {
  position: relative;
  min-height: 290px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.topic-card > svg {
  width: 28px;
  height: 28px;
  margin: 22px 0 20px;
  color: var(--teal);
}

.topic-number {
  color: #88918e;
  font-size: 0.76rem;
  font-weight: 850;
}

.topic-card h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.topic-start {
  position: absolute;
  bottom: 26px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.topic-start:hover,
.topic-start:focus-visible {
  color: var(--ink);
}

.glossary-band {
  padding: 100px 0;
  background: var(--white);
}

.glossary-heading {
  margin-bottom: 34px;
}

.glossary-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px auto;
  gap: 10px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 6px;
  background: #f5f7f5;
}

.glossary-search,
.glossary-filter {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #cbd1ce;
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
}

.glossary-search:focus-within,
.glossary-filter:focus-within {
  border-color: var(--teal);
  outline: 3px solid rgba(12, 111, 104, 0.18);
}

.glossary-search > svg {
  position: absolute;
  left: 16px;
  pointer-events: none;
}

.glossary-search input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px 0 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.glossary-search input::placeholder {
  color: #737d79;
  opacity: 1;
}

.glossary-filter select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 44px 0 14px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.glossary-filter > svg {
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.glossary-clear {
  min-width: 104px;
  border-color: #cbd1ce;
  background: var(--white);
  color: var(--ink);
}

.glossary-clear:hover,
.glossary-clear:focus-visible {
  border-color: var(--ink);
  background: #e9eeeb;
}

.glossary-status {
  display: flex;
  justify-content: flex-end;
  min-height: 58px;
  padding: 18px 0 14px;
}

.glossary-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.glossary-status strong {
  color: var(--ink);
}

.glossary-list {
  border-bottom: 1px solid var(--line);
}

.glossary-group {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.glossary-letter {
  padding: 25px 18px;
  background: var(--ink);
  color: var(--yellow);
}

.glossary-letter h3 {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  margin: 0;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: 0;
}

.glossary-group dl {
  min-width: 0;
  margin: 0;
}

.glossary-entry {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr) 150px;
  gap: 28px;
  align-items: start;
  min-height: 90px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.glossary-entry:last-child {
  border-bottom: 0;
}

.glossary-entry dt {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.glossary-entry dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.glossary-definition.has-visual {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.glossary-visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef1ef;
}

.glossary-visual a {
  display: block;
}

.glossary-visual a:focus-visible {
  outline: 3px solid rgba(12, 111, 104, 0.3);
  outline-offset: -3px;
}

.glossary-visual img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: contain;
  background: #f7f8f6;
}

.glossary-entry {
  scroll-margin-top: calc(var(--header-height) + 16px);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.glossary-entry:target,
.glossary-entry:focus {
  background: #fff8d8;
  box-shadow: inset 4px 0 0 var(--yellow-dark);
  outline: 0;
}

.glossary-term-link {
  color: #075e59;
  font-weight: 750;
  text-decoration-color: #69a9a2;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.glossary-term-link:hover,
.glossary-term-link:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--yellow-dark);
  text-decoration-thickness: 2px;
}

.glossary-entry .glossary-category {
  justify-self: end;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.glossary-empty {
  padding: 58px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.glossary-empty > svg {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  color: var(--teal);
}

.glossary-empty h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.glossary-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.glossary-sources {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.glossary-sources > svg {
  margin-top: 2px;
  color: var(--teal);
}

.glossary-sources p {
  margin: 0;
  font-size: 0.84rem;
}

.glossary-sources a {
  color: var(--teal);
  font-weight: 750;
}

.progress-band {
  padding: 72px 0;
  background: var(--teal);
  color: var(--white);
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: center;
}

.progress-layout .section-kicker {
  color: #bde5df;
}

.progress-layout p:not(.section-kicker) {
  margin: 14px 0 0;
  color: #d5eeea;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 120px) 42px;
  gap: 10px;
  align-items: center;
}

.progress-stats > div {
  min-width: 0;
  padding: 12px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.progress-stats span {
  display: block;
  font-size: 1.8rem;
  font-weight: 850;
  line-height: 1.15;
}

.progress-stats small {
  color: #d5eeea;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.progress-reset {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
}

.progress-reset:hover,
.progress-reset:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding: 48px 4vw;
  background: #151d20;
  color: var(--white);
}

.footer-brand {
  margin-bottom: 18px;
}

.site-footer p {
  max-width: 700px;
  margin: 0;
  color: #b9c1be;
  font-size: 0.84rem;
}

.source-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 3.3rem;
  }

  .builder-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-intro {
    position: static;
  }

  .topic-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glossary-tools {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .glossary-clear {
    grid-column: 2;
    justify-self: end;
  }

  .glossary-entry {
    grid-template-columns: minmax(170px, 0.4fr) minmax(0, 1fr);
    gap: 12px 24px;
  }

  .glossary-entry .glossary-category {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  .progress-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .progress-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    padding: 0 4vw;
  }

  .brand {
    font-size: 0.9rem;
  }

  .site-header > .brand .brand-full {
    display: none;
  }

  .site-header > .brand .brand-short {
    display: inline;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .site-nav > a:not(.nav-action) {
    display: none;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-action {
    width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0.8rem !important;
  }

  .nav-action span {
    display: none;
  }

  .site-nav > a.mobile-nav-link {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 6px;
  }

  .site-nav .mobile-nav-link:hover,
  .site-nav .mobile-nav-link:focus-visible {
    border-color: var(--yellow);
    color: var(--yellow);
  }

  .hero {
    min-height: 720px;
    max-height: none;
    background-position: 62% center;
  }

  .hero-overlay {
    background: rgba(10, 18, 21, 0.7);
  }

  .hero-inner {
    min-height: 612px;
    max-height: none;
    padding: 58px 0 38px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-lede {
    font-size: 1.03rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    height: 108px;
  }

  .hero-stats div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 16px 10px;
  }

  .hero-stats strong {
    font-size: 1.5rem;
  }

  .hero-stats span {
    font-size: 0.75rem;
  }

  .builder-band,
  .topics-band,
  .glossary-band {
    padding: 70px 0;
  }

  .section-intro h2,
  .section-heading-row h2,
  .progress-layout h2 {
    font-size: 2.05rem;
  }

  .builder-tool,
  .quiz-shell {
    padding: 24px 18px;
  }

  .topic-options {
    grid-template-columns: 1fr;
  }

  .builder-row {
    grid-template-columns: 1fr;
  }

  .quiz-band {
    padding: 42px 0;
  }

  .quiz-shell {
    min-height: 540px;
  }

  .question-text {
    font-size: 1.2rem;
  }

  .question-visual img {
    height: 220px;
  }

  .results-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .topic-results {
    width: 100%;
    text-align: left;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 268px;
  }

  .glossary-tools {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .glossary-clear {
    grid-column: auto;
    justify-self: stretch;
  }

  .glossary-status {
    justify-content: flex-start;
  }

  .glossary-group {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .glossary-letter {
    padding: 22px 11px;
  }

  .glossary-letter h3 {
    font-size: 1.35rem;
  }

  .glossary-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 16px;
  }

  .glossary-definition.has-visual {
    grid-template-columns: 1fr;
  }

  .glossary-visual img {
    height: 210px;
  }

  .glossary-entry .glossary-category {
    grid-column: auto;
    grid-row: auto;
  }

  .progress-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-stats > div {
    padding: 10px;
  }

  .progress-stats span {
    font-size: 1.45rem;
  }

  .progress-reset {
    grid-column: 3;
    justify-self: end;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 42px 4vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
