:root {
  color-scheme: light;
  --ink: #172435;
  --ink-soft: #516174;
  --paper: #fffdf8;
  --surface: #ffffff;
  --surface-soft: #f2f6f4;
  --line: #d9e2df;
  --brand: #173f5f;
  --brand-strong: #0f2d46;
  --accent: #d65f3e;
  --accent-dark: #a33f24;
  --mint: #bfe3d0;
  --success: #13734a;
  --danger: #a83b32;
  --shadow: 0 18px 45px rgb(23 36 53 / 0.11);
  --shadow-small: 0 8px 24px rgb(23 36 53 / 0.09);
  --radius: 1.25rem;
  --radius-small: 0.75rem;
  --content: 74rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background:
    radial-gradient(circle at 5% 0%, rgb(191 227 208 / 0.42), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dark);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 0.2rem solid #087ea4;
  outline-offset: 0.2rem;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  background: var(--brand-strong);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(23 36 53 / 0.08);
  background: rgb(255 253 248 / 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.main-shell,
.footer-inner {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding-block: 0.35rem;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.7rem 0.7rem 0.7rem 0.2rem;
  background: linear-gradient(145deg, var(--brand), #286f7a);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.main-shell {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow,
.card-type {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.7rem, 3.5vw, 2.65rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
}

.lede {
  max-width: 48rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading p {
  max-width: 42rem;
  margin: 0;
  color: var(--ink-soft);
}

.content-section + .content-section {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}

.featured {
  display: grid;
  overflow: hidden;
  min-height: 31rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.5rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-media {
  min-height: 24rem;
  aspect-ratio: 77 / 48;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4rem);
}

.featured-copy h1 {
  font-size: clamp(2.25rem, 4vw, 3.8rem);
}

.featured-copy .lede {
  font-size: 1.06rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  border-color: var(--brand);
  background: transparent;
  color: var(--brand);
}

.button-secondary:hover:not(:disabled) {
  background: var(--brand);
  color: #fff;
}

.button-quiet {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.category-list a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 4px 12px rgb(23 36 53 / 0.05);
}

.category-list a:hover {
  border-color: var(--mint);
  background: #edf8f2;
}

.category-count {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.quiz-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.quiz-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--shadow);
}

.card-link {
  display: flex;
  height: 100%;
  color: inherit;
  flex-direction: column;
  text-decoration: none;
}

.card-image {
  overflow: hidden;
  aspect-ratio: 77 / 48;
  background: var(--surface-soft);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.quiz-card:hover .card-image img {
  transform: scale(1.025);
}

.card-copy {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1.2rem;
}

.card-copy h3 {
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card-description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-copy .meta-row {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 0.4rem;
  content: "/";
  color: #8b99a7;
}

/* Expand the touch target of breadcrumb links to ~44px without changing the
   compact visual layout (padding grows the hit box, negative margin returns
   the space). */
.breadcrumb a {
  display: inline-block;
  padding: 0.7rem 0.25rem;
  margin: -0.7rem -0.25rem;
}

.quiz-landing,
.quiz-shell {
  width: min(100%, 56rem);
  margin-inline: auto;
}

.quiz-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 22rem;
  /* max-width stops the aspect-ratio/min-height "transferred size" from
     widening the box past its container on small screens (the cause of the
     ~7px horizontal scroll on quiz pages at 390px). */
  max-width: 100%;
  aspect-ratio: 77 / 48;
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.quiz-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Heywise-style overlay: the title and a big, centered Start button sit ON the
   hero image. The gradient scrim keeps the button legible over any photo or the
   category placeholder SVG. */
.quiz-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background: linear-gradient(
    to top,
    rgb(9 20 32 / 0.92) 0%,
    rgb(9 20 32 / 0.62) 40%,
    rgb(9 20 32 / 0.12) 78%,
    rgb(9 20 32 / 0.02) 100%
  );
  color: #fff;
  text-align: center;
}

.quiz-hero-kicker {
  margin-bottom: 0;
  color: #ffd9c7;
}

/* Scoped tighter than `.quiz-landing h1` below so the on-hero title always
   uses this (smaller, image-safe) scale. Previously both selectors tied at
   0,1,1 specificity and the later `.quiz-landing h1` won, inflating the hero
   title and crowding the overlay/Start button on long titles. */
.quiz-landing .quiz-hero-overlay h1,
.quiz-hero-overlay h1 {
  max-width: 22ch;
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: clamp(1.5rem, 4.2vw, 3.2rem);
  overflow-wrap: break-word;
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.55);
}

/* The Start button must always read LARGE and WIDE, everywhere it appears.
   Root causes of the old "sometimes small" rendering, both fixed here:
   1. `.start-row .button` (0-2-0) overrode `.button-start` (0-1-0), shrinking
      the second Start button to min-width 10rem / 1.05rem font.
   2. On the hero, `min-width: min(22rem, 82%)` resolved 82% against the
      overlay's padded content box, so phones got only ~70% of the hero width.
   The sizing now uses `width` (near-full-width on phones, capped at 30rem)
   at 0-3-0 specificity so no context style can shrink it. */
.button-start,
.quiz-hero-overlay .button.button-start,
.start-row .button.button-start {
  width: min(92%, 30rem);
  min-height: 3.5rem;
  padding: 0.9rem 1.5rem;
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 850;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 36px rgb(166 63 36 / 0.5);
}

@media (min-width: 48rem) {
  .button-start,
  .quiz-hero-overlay .button.button-start,
  .start-row .button.button-start {
    width: auto;
    min-width: 24rem;
    max-width: 100%;
    min-height: 3.9rem;
    padding: 1rem 2.75rem;
    font-size: 1.35rem;
  }
}

.quiz-hero .button-start {
  margin-bottom: clamp(0.25rem, 2vw, 1rem);
}

.quiz-landing h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

/* Reserved, labeled ad slots. Min-heights reserve space to avoid layout shift
   while the Ezoic creative loads; the label keeps ads clearly demarcated. */
.ad-box {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.4rem;
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
  text-align: center;
}

.ad-label {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Responsive slot containers. overflow: hidden guarantees an oversized
   creative (e.g. a 728/970 leaderboard) can never force horizontal scroll.
   Mobile reserves the height of the mobile slot set (300x250 for
   leaderboard/box, 320x100 for inline) so the creative doesn't shift content;
   desktop reserves the leaderboard/rectangle heights. */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ad--leaderboard .ad-slot,
.ad--box .ad-slot {
  min-height: 250px;
}

.ad--inline .ad-slot {
  min-height: 100px;
}

@media (min-width: 48rem) {
  .ad--inline .ad-slot {
    min-height: 90px;
  }
}

.ad-slot > div {
  max-width: 100%;
}

.quiz-intro {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.quiz-framing {
  display: grid;
  margin-block: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quiz-framing > div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.quiz-framing h2 {
  margin-bottom: 0.45rem;
  font-family: inherit;
  font-size: 1.1rem;
}

.quiz-framing p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.editorial-note {
  display: grid;
  margin-block: 1.5rem;
  padding: 1.1rem 1.2rem;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
  font-size: 0.9rem;
}

.editorial-note strong {
  color: var(--brand);
}

.start-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.start-row span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.quiz-shell {
  min-height: 32rem;
}

.quiz-panel {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.2rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.player-header {
  display: grid;
  margin-bottom: 1.5rem;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.question-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

progress {
  width: 100%;
  height: 0.65rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  accent-color: var(--accent);
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-soft);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ed9a62);
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ed9a62);
}

.question-image {
  width: 100%;
  max-height: 32rem;
  margin-bottom: 1.5rem;
  aspect-ratio: 77 / 48;
  object-fit: contain;
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.answer-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-prompt {
  width: 100%;
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
}

.answer-list {
  display: grid;
  gap: 0.75rem;
}

.answer-option {
  display: grid;
  min-height: 3.25rem;
  align-items: center;
  padding: 0.85rem 1rem;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  border: 2px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  cursor: pointer;
  font-weight: 650;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.answer-option:hover {
  border-color: #7ba69b;
  background: #f4faf7;
  transform: translateX(0.15rem);
}

.answer-option:has(input:focus-visible) {
  outline: 0.2rem solid #087ea4;
  outline-offset: 0.15rem;
}

.answer-option:has(input:checked) {
  border-color: var(--brand);
  background: #edf4f7;
}

.answer-option.is-correct {
  border-color: var(--success);
  background: #e8f7ef;
}

.answer-option.is-incorrect {
  border-color: var(--danger);
  background: #fff0ed;
}

.answer-option input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--brand);
}

.hint {
  margin-top: 1rem;
}

.hint-text {
  margin: 0.8rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 0.25rem solid var(--mint);
  background: var(--surface-soft);
}

.selection-confirmation {
  min-height: 1.65rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.answer-feedback {
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.answer-feedback h3 {
  font-family: inherit;
}

.answer-feedback p {
  margin-bottom: 0;
}

.feedback-correct {
  color: var(--success);
}

.feedback-incorrect {
  color: var(--danger);
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.player-actions:has(.button-secondary) {
  justify-content: space-between;
}

.slide-copy {
  font-size: 1.05rem;
}

.slide-highlight {
  padding: 1rem 1.2rem;
  border-left: 0.3rem solid var(--accent);
  background: #fff5ef;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.result-panel {
  text-align: center;
}

.result-panel .question-image {
  max-height: 26rem;
}

.result-title {
  font-size: clamp(2rem, 6vw, 3.7rem);
}

.result-description {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.result-panel .player-actions {
  justify-content: center;
}

.share-status {
  min-height: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.result-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.result-related-list {
  display: grid;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.result-related-list a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-soft);
  font-weight: 700;
  text-decoration: none;
}

.related-after-quiz {
  margin-top: clamp(4rem, 8vw, 6rem);
}

.archive-header {
  max-width: 52rem;
  margin-bottom: 2.5rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding-inline: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  font-weight: 750;
  text-decoration: none;
}

.pagination [aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.prose {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.65rem;
}

.prose h3 {
  margin-top: 1.75rem;
  font-family: inherit;
  font-size: 1.15rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--mint);
  border-radius: var(--radius-small);
  background: #eff9f3;
}

.publication-notice {
  margin-block: 1.25rem 1.75rem;
  border-width: 2px;
  border-color: #8fc8ad;
  background: #edf8f2;
  box-shadow: 0 6px 18px rgb(23 36 53 / 0.06);
}

.publication-notice strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-strong);
  font-size: 1.05rem;
}

.publication-notice p {
  margin-bottom: 0;
  color: #304b43;
}

.publication-notice p + p {
  margin-top: 0.65rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: var(--brand-strong);
  color: #dbe8ee;
}

.footer-inner {
  display: grid;
  padding-block: 3rem;
  grid-template-columns: minmax(12rem, 1fr) 2fr;
  gap: 2rem;
}

.site-footer .brand {
  color: #fff;
}

.footer-tagline {
  max-width: 25rem;
  margin-top: 1rem;
  color: #bdd0d9;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
}

.footer-links a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.4);
}

.footer-legal {
  margin-top: 1.5rem;
  color: #a9c0cb;
  font-size: 0.85rem;
}

.quiz-error {
  text-align: center;
}

@media (max-width: 58rem) {
  .featured {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 21rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 42rem) {
  .site-header {
    position: static;
  }

  .header-inner {
    min-height: auto;
    align-items: flex-start;
    padding-block: 0.75rem 0;
    flex-direction: column;
    gap: 0.4rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    gap: 0.25rem;
    scrollbar-width: none;
  }

  /* 44px+ tap targets for the primary nav on touch screens. */
  .site-nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
  }

  .main-shell {
    width: min(calc(100% - 1.5rem), var(--content));
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .featured {
    min-height: auto;
  }

  .featured-media {
    min-height: auto;
    aspect-ratio: 77 / 48;
  }

  .featured-copy {
    padding: 1.5rem 1.25rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Let the hero follow its natural aspect ratio instead of the desktop
     22rem floor, so it no longer fills most of a phone screen and pushes
     the description below the fold. The overlay still carries the title
     and the big Start button. */
  .quiz-hero {
    min-height: 15rem;
  }

  .quiz-hero-overlay {
    padding: 1rem 0.85rem;
    gap: 0.6rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }

  .quiz-framing {
    grid-template-columns: 1fr;
  }

  .quiz-panel {
    padding: 1rem 0.85rem;
    border-radius: var(--radius);
  }

  .question-prompt {
    font-size: 1.35rem;
  }

  .editorial-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .start-row {
    align-items: stretch;
    flex-direction: column;
  }

  .start-row .button.button-start {
    width: 100%;
  }

  .player-actions,
  .player-actions:has(.button-secondary) {
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .player-actions .button {
    width: 100%;
  }

  .result-related-list,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-links a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
