:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #66706b;
  --paper: #f4f1e9;
  --card: #fffef9;
  --green: #153c32;
  --green-2: #235649;
  --lime: #c9f36c;
  --lime-soft: #e9f8c7;
  --line: #d9ddd5;
  --amber: #e6a53a;
  --red: #c04c43;
  --shadow: 0 20px 60px rgba(21, 60, 50, 0.09);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 60, 50, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 60, 50, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, textarea, select, input { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-glow {
  position: fixed;
  z-index: -1;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .22;
  pointer-events: none;
}
.page-glow--one { top: -180px; right: 4%; background: var(--lime); }
.page-glow--two { bottom: -220px; left: -120px; background: #b2ded1; }

.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(21, 60, 50, .1);
  background: rgba(244, 241, 233, .88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-weight: 750;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: -.03em;
}
.brand > span:last-child > span { color: var(--green-2); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--green);
  background: var(--lime);
  border-radius: 11px;
  transform: rotate(-4deg);
}
.brand__mark svg { width: 19px; stroke-width: 0; fill: currentColor; }

.main-nav { display: flex; align-items: center; gap: 5px; }
.nav-button {
  padding: 10px 15px;
  color: #68716d;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.nav-button:hover, .nav-button.is-active { color: var(--ink); background: rgba(255, 255, 255, .72); }
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 4px;
  padding: 0 5px;
  color: var(--green);
  background: var(--lime-soft);
  border-radius: 20px;
  font-size: 11px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: rgba(255,255,255,.55);
}
.icon-button:hover { background: white; transform: translateY(-1px); }
.icon-button svg { width: 20px; }
.site-header > .icon-button { justify-self: end; }

.view { display: none; animation: appear .25s ease; }
.view.is-active { display: block; }
.view-padded { min-height: calc(100vh - 150px); padding-block: 70px 90px; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } }

.hero { padding-top: clamp(58px, 9vw, 108px); text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow span { width: 7px; height: 7px; background: var(--lime); border: 1px solid var(--green-2); border-radius: 50%; }

h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
h1 { margin-top: 19px; font-size: clamp(45px, 7vw, 82px); line-height: .98; }
h1 em { color: var(--green-2); font-weight: 400; }
.hero__lead { max-width: 670px; margin: 24px auto 34px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  max-width: 920px;
  min-height: 82px;
  margin: 0 auto;
  padding: 12px 13px 12px 24px;
  border: 1px solid rgba(21, 60, 50, .16);
  border-radius: 24px;
  background: rgba(255, 254, 249, .96);
  box-shadow: 0 18px 60px rgba(21, 60, 50, .12);
  text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--green-2); box-shadow: 0 22px 70px rgba(21,60,50,.17); }
.search-box__icon { width: 24px; color: #8b958f; }
.search-box textarea {
  width: 100%;
  max-height: 150px;
  padding: 14px 0;
  resize: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  line-height: 1.45;
}
.search-box textarea::placeholder { color: #9aa19d; }
.search-submit, .primary-button {
  border: 0;
  color: white;
  background: var(--green);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
  font-weight: 750;
}
.search-submit { align-self: stretch; min-width: 132px; border-radius: 16px; }
.search-submit:hover, .primary-button:hover { background: #1d4c40; transform: translateY(-1px); }
.search-submit span { margin-left: 8px; color: var(--lime); }

.search-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 15px auto 0;
}
.filter-row { display: flex; gap: 8px; }
select {
  padding: 9px 33px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.56);
  font-size: 12px;
  outline: 0;
}
select:focus { border-color: var(--green-2); }
.shortcut-hint { color: #929995; font-size: 12px; }
kbd { margin-right: 3px; padding: 2px 5px; border: 1px solid #ccd1cb; border-bottom-width: 2px; border-radius: 5px; background: #fffdf8; font-size: 10px; }
.database-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 18px auto 0;
  padding: 10px 13px;
  border: 1px solid #ead8a9;
  border-radius: 12px;
  color: #6d5926;
  background: rgba(251,241,217,.78);
  text-align: left;
}
.database-alert > span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #d7b85d; border-radius: 50%; font-size: 10px; font-weight: 800; }
.database-alert p { margin: 0; font-size: 11px; line-height: 1.4; }
.database-alert .text-button { color: #6d5926; font-size: 11px; }

.content-shell { padding-block: 68px 100px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 24px 26px;
  border: 1px solid rgba(21,60,50,.1);
  border-radius: 18px;
  background: rgba(255,254,249,.64);
}
.stat-card strong { color: var(--green); font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.stat-card span { color: var(--muted); font-size: 13px; }
.starter-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  padding: 24px 27px;
  border: 1px dashed #b9c2ba;
  border-radius: 18px;
}
.starter-card__icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green); background: var(--lime-soft); border-radius: 50%; font-size: 21px; }
.starter-card strong { font-size: 14px; }
.starter-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.text-button { padding: 6px 0; border: 0; color: var(--green-2); background: transparent; font-size: 13px; font-weight: 750; }
.text-button:hover { color: var(--ink); }

.results { display: grid; gap: 14px; }
.result-summary { margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.result-summary strong { color: var(--ink); }
.answer-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(21,60,50,.12);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 36px rgba(21,60,50,.06);
}
.answer-card--best { border-color: rgba(35,86,73,.42); box-shadow: var(--shadow); }
.answer-card--best::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--lime); }
.answer-card__top { display: flex; justify-content: space-between; gap: 24px; }
.answer-card__match { color: var(--green-2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.answer-card h3 { max-width: 900px; margin: 9px 0 0; font-size: 18px; line-height: 1.5; }
.save-button { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: transparent; font-size: 18px; }
.save-button.is-saved { color: var(--green); background: var(--lime-soft); border-color: #c4dda0; }
.answer-panel { margin-top: 23px; padding: 22px 24px; border-radius: 15px; background: #edf5df; }
.answer-panel small { display: block; margin-bottom: 7px; color: #55715a; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.answer-panel strong { color: #1b4a3d; font-size: 16px; line-height: 1.55; }
.answer-card__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 19px; }
.tag { padding: 6px 9px; border-radius: 8px; color: #58635e; background: #f0f1ec; font-size: 11px; }
.reference { flex: 1 1 400px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.empty-state { padding: 70px 30px; border: 1px dashed #bcc3be; border-radius: 22px; text-align: center; }
.empty-state strong { display: block; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.empty-state p { max-width: 520px; margin: 12px auto 0; color: var(--muted); line-height: 1.6; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.section-heading h2 { margin-top: 13px; font-size: clamp(38px, 5vw, 58px); }
.section-heading p { margin: 13px 0 0; color: var(--muted); }
.score-chip { min-width: 160px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); }
.score-chip small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.score-chip strong { display: block; margin-top: 4px; color: var(--green); font-size: 22px; }

.training-setup { display: grid; grid-template-columns: 1.6fr .7fr; overflow: hidden; border: 1px solid rgba(21,60,50,.13); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.setup-main { padding: clamp(28px, 5vw, 54px); }
.choice-fieldset { margin: 0 0 29px; padding: 0; border: 0; }
.choice-fieldset legend { margin-bottom: 13px; font-size: 13px; font-weight: 750; }
.choice-fieldset legend span { margin-right: 7px; color: #89938e; font-family: Georgia, serif; font-style: italic; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.segmented--four { grid-template-columns: repeat(4, 1fr); }
.segmented--three { grid-template-columns: repeat(3, 1fr); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; place-items: center; min-height: 50px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: #faf9f4; font-size: 13px; font-weight: 700; transition: .18s; }
.segmented span:hover { border-color: #a5b1aa; }
.segmented input:checked + span { color: white; border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 3px rgba(201,243,108,.5); }
.primary-button { width: 100%; min-height: 56px; margin-top: 4px; border-radius: 15px; }
.primary-button span { margin-left: 8px; color: var(--lime); }
.setup-aside { position: relative; overflow: hidden; padding: 52px 38px; color: white; background: var(--green); }
.setup-aside::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 220px; height: 220px; border: 1px solid rgba(201,243,108,.25); border-radius: 50%; box-shadow: 0 0 0 35px rgba(201,243,108,.04), 0 0 0 70px rgba(201,243,108,.035); }
.aside-number { color: var(--lime); font-family: Georgia, serif; font-size: 76px; line-height: 1; }
.setup-aside strong { display: block; margin-top: 13px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.setup-aside p { position: relative; z-index: 1; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.65; }
.mini-rule { width: 40px; height: 2px; margin: 27px 0; background: var(--lime); }
.setup-aside .small-copy { color: rgba(255,255,255,.5); font-size: 11px; }

.is-hidden { display: none !important; }
.quiz { max-width: 880px; margin: 0 auto; }
.quiz__progress-top { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.quiz__progress { height: 6px; overflow: hidden; margin-bottom: 24px; border-radius: 20px; background: #dfe3dc; }
.quiz__progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
.quiz-card { padding: clamp(25px, 5vw, 45px); border: 1px solid rgba(21,60,50,.14); border-radius: 25px; background: var(--card); box-shadow: var(--shadow); }
.quiz-card__tags { display: flex; gap: 7px; margin-bottom: 21px; }
.quiz-card h3 { margin: 0 0 28px; font-family: Georgia, serif; font-size: clamp(23px, 3.2vw, 31px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 13px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #faf9f5; text-align: left; line-height: 1.45; }
.quiz-option:hover:not(:disabled) { border-color: var(--green-2); background: white; transform: translateX(2px); }
.quiz-option__letter { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #cbd0ca; border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.quiz-option.is-correct { border-color: #75a55f; background: #eaf6dd; }
.quiz-option.is-correct .quiz-option__letter { color: white; border-color: var(--green-2); background: var(--green-2); }
.quiz-option.is-wrong { border-color: #d99189; background: #fae8e5; }
.quiz-option.is-wrong .quiz-option__letter { color: white; border-color: var(--red); background: var(--red); }
.quiz-feedback { margin-top: 18px; padding: 17px 19px; border-left: 3px solid var(--lime); border-radius: 4px 12px 12px 4px; background: #eff4e8; }
.quiz-feedback strong { color: var(--green); font-size: 13px; }
.quiz-feedback p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quiz-next { display: flex; justify-content: flex-end; margin-top: 18px; }
.quiz-next .primary-button { width: auto; min-width: 180px; padding: 0 25px; }

.quiz-result { max-width: 800px; margin: 0 auto; text-align: center; }
.result-ring { display: grid; place-items: center; width: 170px; height: 170px; margin: 0 auto 25px; border-radius: 50%; background: conic-gradient(var(--lime) var(--score), #dfe3dc 0); }
.result-ring::before { content: ""; grid-area: 1/1; width: 135px; height: 135px; border-radius: 50%; background: var(--paper); }
.result-ring strong { z-index: 1; grid-area: 1/1; color: var(--green); font-family: Georgia, serif; font-size: 37px; font-weight: 500; }
.quiz-result h3 { margin: 0; font-family: Georgia, serif; font-size: 37px; font-weight: 500; }
.quiz-result > p { color: var(--muted); }
.result-actions { display: flex; justify-content: center; gap: 10px; margin: 25px 0 35px; }
.result-actions button { min-height: 48px; padding: 0 20px; border-radius: 13px; }
.result-actions .primary-button { width: auto; margin: 0; }
.secondary-button { border: 1px solid var(--line); color: var(--green); background: var(--card); font-weight: 700; }
.mistake-list { display: grid; gap: 10px; text-align: left; }
.mistake-list h4 { margin: 0 0 4px; }
.mistake-item { padding: 20px; border: 1px solid #ead0cb; border-radius: 15px; background: #fffaf7; }
.mistake-item strong { display: block; font-size: 14px; line-height: 1.5; }
.mistake-item p { margin: 9px 0 0; color: var(--green-2); font-size: 13px; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 28px 42px; border-top: 1px solid rgba(21,60,50,.1); }
.site-footer > div { display: flex; align-items: center; gap: 11px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-mark { display: grid; place-items: center; width: 29px; height: 29px; color: var(--green); background: var(--lime-soft); border-radius: 9px; font-size: 13px; }

.about-dialog { width: min(650px, calc(100% - 30px)); max-height: min(900px, calc(100vh - 30px)); padding: 38px; overflow-y: auto; border: 0; border-radius: 24px; color: var(--ink); background: var(--card); box-shadow: 0 30px 100px rgba(8,27,22,.3); }
.about-dialog::backdrop { background: rgba(11,30,25,.55); backdrop-filter: blur(5px); }
.about-dialog h2 { margin-top: 14px; font-size: 38px; }
.about-dialog > p { color: var(--muted); line-height: 1.65; }
.dialog-close { position: absolute; top: 18px; right: 18px; font-size: 22px; }
.database-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 25px 0; border: 1px solid var(--line); border-radius: 14px; }
.database-meta div { padding: 16px; }
.database-meta div + div { border-left: 1px solid var(--line); }
.database-meta dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.database-meta dd { margin: 5px 0 0; color: var(--green); font-weight: 750; }
.source-links { display: grid; gap: 8px; }
.source-links a { color: var(--green-2); font-size: 13px; font-weight: 700; }
.notice-box { margin-top: 22px; padding: 16px; border-radius: 12px; color: #6d5926; background: #fbf1d9; font-size: 12px; line-height: 1.55; }

.database-update { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #faf9f4; }
.database-update__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.database-update__head h3 { margin: 0; font-size: 14px; }
.database-update__head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.update-status-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--green); background: var(--lime-soft); font-size: 18px; font-weight: 700; }
.update-badge { padding: 5px 8px; border-radius: 20px; color: var(--muted); background: #eceee9; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.update-progress { height: 7px; margin-top: 15px; overflow: hidden; border-radius: 20px; background: #e1e5de; }
.update-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
.database-update.is-busy .update-status-icon { animation: update-spin 1.1s linear infinite; }
.database-update.has-update { border-color: #c8d9a0; background: #fbfff4; }
.database-update.has-update .update-badge { color: #345b2d; background: var(--lime-soft); }
.database-update.is-ready .update-status-icon, .database-update.is-complete .update-status-icon { color: white; background: var(--green); }
.database-update.has-error { border-color: #e1b4ae; background: #fff8f6; }
.database-update.has-error .update-status-icon { color: white; background: var(--red); }
@keyframes update-spin { to { transform: rotate(360deg); } }
.update-diff { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.update-diff div { padding: 12px; text-align: center; }
.update-diff div + div { border-left: 1px solid var(--line); }
.update-diff strong { display: block; color: var(--green); font-size: 19px; }
.update-diff span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.update-error { margin: 12px 0 0; padding: 10px; border-radius: 9px; color: #8c332d; background: #f9e4e0; font-size: 10px; line-height: 1.45; }
.update-checked { margin: 12px 0 0; color: #8b938f; font-size: 10px; }
.update-actions { display: flex; gap: 8px; margin-top: 14px; }
.update-actions button { flex: 1; min-height: 43px; margin: 0; padding: 0 14px; border-radius: 11px; font-size: 11px; }
.update-actions .primary-button { width: auto; }
.update-actions button:disabled { cursor: wait; opacity: .55; transform: none; }
.update-backup-note { margin: 10px 0 0; color: #929995; font-size: 9px; line-height: 1.4; }

.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: 320px; padding: 13px 17px; border-radius: 12px; color: white; background: var(--green); box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 780px) {
  .shell { width: min(100% - 28px, 1160px); }
  .site-header { position: fixed; top: auto; right: 10px; bottom: 10px; left: 10px; display: block; min-height: 0; padding: 0; border: 0; background: transparent; backdrop-filter: none; }
  .brand { display: none; }
  .main-nav { position: static; justify-content: space-around; padding: 6px; border: 1px solid rgba(21,60,50,.13); border-radius: 17px; background: rgba(255,254,249,.94); box-shadow: 0 13px 40px rgba(21,60,50,.18); backdrop-filter: blur(16px); }
  .nav-button { flex: 1; padding: 10px 4px; font-size: 11px; }
  .site-header > .icon-button { display: none; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero__lead { font-size: 15px; }
  .search-box { grid-template-columns: auto 1fr; padding: 10px 12px 10px 17px; border-radius: 20px; }
  .search-submit { grid-column: 1/-1; min-height: 49px; }
  .search-tools { align-items: flex-start; }
  .filter-row { width: 100%; }
  .filter-row select { flex: 1; min-width: 0; }
  .shortcut-hint { display: none; }
  .database-alert { grid-template-columns: auto 1fr; }
  .database-alert .text-button { grid-column: 2; justify-self: start; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 17px 20px; }
  .starter-card { grid-template-columns: auto 1fr; }
  .starter-card .text-button { grid-column: 2; justify-self: start; }
  .answer-card { padding: 22px; }
  .training-setup { grid-template-columns: 1fr; }
  .setup-aside { padding: 30px; }
  .aside-number { font-size: 50px; }
  .section-heading { align-items: flex-start; }
  .score-chip { display: none; }
  .section-heading h2 { font-size: 39px; }
  .site-footer { margin-bottom: 75px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { text-align: left; }
  .eyebrow { font-size: 10px; }
  .search-tools, .filter-row { flex-direction: column; }
  .filter-row select { width: 100%; }
  .segmented--four { grid-template-columns: repeat(2, 1fr); }
  .section-heading h2 { font-size: 34px; }
  .quiz-card { padding: 21px 17px; }
  .quiz-option { grid-template-columns: 29px 1fr; padding: 12px; font-size: 13px; }
  .database-meta { grid-template-columns: 1fr; }
  .database-meta div + div { border-top: 1px solid var(--line); border-left: 0; }
  .about-dialog { padding: 32px 22px; }
  .database-update__head { grid-template-columns: auto 1fr; }
  .update-badge { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
