@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #17364b;
  --muted: #4d6574;
  --paper: #ffffff;
  --canvas: #eef6f7;
  --line: #d3e2e5;
  --blue: #287f9f;
  --cyan: #4db9c7;
  --red: #c82f4d;
  --eu-blue: #003399;
  --green: #16866a;
  --purple: #6653a9;
  --shadow: 0 18px 46px rgba(23, 54, 75, 0.12);
  --radius: 22px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(77, 185, 199, 0.17), transparent 27rem),
    radial-gradient(circle at 92% 70%, rgba(200, 47, 77, 0.08), transparent 28rem),
    var(--canvas);
}

button,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #f8c537;
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

p,
li,
dd {
  line-height: 1.72;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
strong,
legend,
summary {
  font-weight: 700;
}

h1 {
  max-width: 930px;
  margin-bottom: 1.1rem;
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  color: white;
  background: var(--eu-blue);
  transform: translateY(-160%);
}

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

.course-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(40, 127, 159, 0.22);
  background: rgba(250, 253, 253, 0.96);
  box-shadow: 0 8px 24px rgba(23, 54, 75, 0.07);
  backdrop-filter: blur(16px);
}

.brand-row,
.progress-shell,
.lesson-stage,
.lesson-controls {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.brand-row {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 0.5rem;
}

.vita-brand,
.eu-brand {
  display: flex;
  align-items: center;
}

.vita-brand {
  max-width: 520px;
}

.vita-brand img {
  width: min(400px, 42vw);
  height: auto;
  object-fit: contain;
}

.eu-brand img {
  width: min(315px, 34vw);
  height: auto;
}

.chapter-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  width: 100%;
  padding: 0.35rem max(20px, calc((100vw - 1180px) / 2)) 0.7rem;
  scrollbar-color: rgba(40, 127, 159, 0.3) transparent;
  scrollbar-width: thin;
}

.chapter-nav button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 999px;
  color: #405f70;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.chapter-nav button:hover {
  color: var(--ink);
  background: #e5f0f2;
}

.chapter-nav button[aria-current="page"] {
  color: white;
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(23, 54, 75, 0.2);
}

.progress-shell {
  padding-bottom: 0.75rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #dbe8ea;
}

.progress-track span {
  display: block;
  width: 8.33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--red));
  transition: width 280ms ease;
}

.lesson-stage {
  min-height: calc(100vh - 225px);
  padding-block: clamp(2.4rem, 5vw, 4.5rem) 3rem;
}

.lesson-page {
  position: relative;
  animation: page-in 300ms ease-out both;
}

.lesson-page[hidden] {
  display: none;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.7rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  max-width: 780px;
  margin-bottom: 1.6rem;
  color: var(--red);
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.45;
}

.lead {
  max-width: 880px;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid rgba(40, 127, 159, 0.17);
}

.hero-grid,
.reading-layout,
.image-text-band,
.dewey-block,
.takeaway-layout,
.credits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
}

.hero-grid h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.contributors-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0;
}

.contributors-inline > div {
  min-width: 210px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.contributors-inline dt,
.credits-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contributors-inline dd,
.credits-list dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action {
  color: white;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(200, 47, 77, 0.24);
}

.secondary-action {
  border: 1px solid #bfd3d8;
  color: var(--ink);
  background: #f8fbfb;
}

.primary-action:hover:not(:disabled),
.secondary-action:hover:not(:disabled) {
  transform: translateY(-2px);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.media-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card.contained img {
  padding: 1rem;
  object-fit: contain;
  background: white;
}

.media-card.portrait img {
  min-height: 500px;
}

.media-card.landscape img {
  aspect-ratio: 16 / 10;
}

.media-card figcaption {
  padding: 0.8rem 1rem;
  color: #eaf4f6;
  background: var(--ink);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-media {
  transform: rotate(1deg);
}

.content-card {
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border: 1px solid rgba(40, 127, 159, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(23, 54, 75, 0.08);
}

.objective-card {
  max-width: 1000px;
  margin: 3rem auto 0;
  border-left: 7px solid var(--cyan);
}

.objective-card p:last-child,
.reading-copy p:last-child,
.content-card p:last-child {
  margin-bottom: 0;
}

.reading-copy {
  max-width: 760px;
  color: #2e4a5c;
  font-size: 1rem;
}

.reading-copy p {
  margin-bottom: 1.2rem;
}

.reading-copy strong {
  color: var(--ink);
}

.wide-copy {
  max-width: 980px;
}

.reverse-media article {
  order: 2;
}

.reverse-media figure {
  order: 1;
}

.term-note {
  margin-top: 1.6rem;
  border: 1px solid #c6dce0;
  border-radius: 15px;
  background: #f5fafb;
}

.term-note summary {
  padding: 1rem 1.1rem;
  cursor: pointer;
  color: var(--blue);
}

.term-note p {
  padding: 0 1.1rem 1rem;
  margin: 0;
  color: var(--muted);
}

.image-text-band {
  align-items: stretch;
  margin-top: 1.7rem;
}

.image-text-band .reading-copy {
  align-self: center;
}

.footnote {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--green);
  border-radius: 0 14px 14px 0;
  color: #385d56;
  background: #e9f7f2;
  font-size: 0.86rem;
  line-height: 1.6;
}

.dewey-block {
  align-items: stretch;
  margin-top: 2rem;
}

.dewey-media {
  align-self: start;
}

.dewey-visual {
  position: relative;
  background: white;
}

.dewey-visual .video-fallback {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  box-shadow: 0 9px 24px rgba(15, 62, 91, 0.16);
}

.pbl-question-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(40, 127, 159, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(77, 185, 199, 0.22), transparent 15rem),
    linear-gradient(145deg, #f4fbfc, #ffffff 72%);
  box-shadow: var(--shadow);
}

.question-kicker {
  margin-bottom: 0.7rem;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pbl-question-card h2 {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.35;
}

.pbl-question-card > p:not(.question-kicker) {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.answer-reveal {
  overflow: hidden;
  border: 1px solid rgba(40, 127, 159, 0.3);
  border-radius: 15px;
  background: white;
}

.answer-reveal summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  color: var(--blue);
  list-style: none;
}

.answer-reveal summary::-webkit-details-marker {
  display: none;
}

.answer-reveal summary::after {
  display: grid;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

.answer-reveal[open] summary::after {
  content: "−";
}

.answer-copy {
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(40, 127, 159, 0.18);
  color: #385d56;
  background: #e9f7f2;
}

.answer-copy p {
  margin-bottom: 0.7rem;
}

.answer-copy p:last-child {
  margin-bottom: 0;
}

.video-fallback {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.8rem;
  padding: 0.75rem 1rem;
  border: 2px solid color-mix(in srgb, var(--blue), white 45%);
  border-radius: 14px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue), white 94%);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.video-fallback:hover,
.video-fallback:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--blue), white 89%);
  box-shadow: 0 9px 22px rgba(15, 62, 91, 0.14);
}

.video-fallback-icon {
  display: grid;
  flex: 0 0 2.7rem;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #e62117;
  font-size: 1rem;
  line-height: 1;
}

.video-fallback strong,
.video-fallback small {
  display: block;
}

.video-fallback small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.highlight-quote {
  margin-top: 1.7rem;
  padding: 1.2rem 1.3rem;
  border-radius: 0 18px 18px 0;
  color: white;
  background: var(--ink);
  border-left: 7px solid var(--cyan);
}

.highlight-quote p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.emphasis-card {
  max-width: 1000px;
  margin: 2.3rem auto;
  border-left: 7px solid var(--red);
  background: linear-gradient(120deg, #fff0f3, white 70%);
}

.conclusion-copy {
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  color: #154f44;
  background: #e9f7f2;
}

.source-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.8rem 0 0;
  padding: 1.35rem 1.35rem 1.35rem 3rem;
  border-radius: var(--radius);
  color: #25495a;
  background: #e9f4f7;
}

.source-list li {
  padding-left: 0.35rem;
}

.source-list li::marker {
  color: var(--red);
}

.two-column-list {
  grid-template-columns: 1fr 1fr;
  column-gap: 2.4rem;
}

.observation-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}

.observation-strip span {
  display: grid;
  min-height: 74px;
  padding: 0.7rem;
  place-items: center;
  border-radius: 14px;
  color: white;
  text-align: center;
  background: var(--blue);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.35;
}

.observation-strip span:nth-child(even) {
  background: var(--ink);
}

.takeaway-layout {
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.takeaway-layout .media-card {
  position: sticky;
  top: 210px;
}

.takeaway-copy {
  max-width: none;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 90% 0, rgba(77, 185, 199, 0.36), transparent 18rem),
    var(--ink);
  box-shadow: var(--shadow);
}

.takeaway-copy h2,
.takeaway-copy p {
  color: white;
}

.takeaway-copy h2 {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.bibliography {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: reference;
}

.bibliography li {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
  counter-increment: reference;
  font-size: 0.92rem;
}

.bibliography li::before {
  position: absolute;
  top: 1.2rem;
  left: 1rem;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: white;
  content: counter(reference);
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

#knowledge-check {
  display: grid;
  gap: 1rem;
}

.quiz-card {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 1.2rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
}

.quiz-card legend {
  padding: 0 0.35rem;
  font-size: 1rem;
  line-height: 1.45;
}

.quiz-card legend span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--blue);
  font-size: 0.78rem;
}

.quiz-card > label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.quiz-card > label:hover {
  background: #edf6f7;
}

.quiz-card input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.12rem;
  accent-color: var(--red);
}

.matching-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.matching-row label {
  font-size: 0.95rem;
  font-weight: 700;
}

.matching-row select {
  min-height: 46px;
  padding: 0.6rem;
  border: 1px solid #bfd3d8;
  border-radius: 11px;
  color: var(--ink);
  background: white;
  font-size: 0.92rem;
}

.answer-feedback {
  display: none;
  margin: 0.4rem 0 0;
  padding: 0.8rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 700;
}

.quiz-card.is-correct {
  border-color: #70bea5;
  background: #f1fbf7;
}

.quiz-card.is-wrong {
  border-color: #e1a0ae;
  background: #fff5f7;
}

.quiz-card.is-correct .answer-feedback,
.quiz-card.is-wrong .answer-feedback {
  display: block;
}

.quiz-card.is-correct .answer-feedback {
  color: #145c49;
  background: #ddf3ea;
}

.quiz-card.is-wrong .answer-feedback {
  color: #8b2c40;
  background: #ffe4e9;
}

.quiz-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding-block: 1rem;
}

.quiz-result {
  padding: 1.4rem;
  border-radius: 18px;
  color: white;
  text-align: center;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.quiz-result strong {
  display: block;
  color: #f8c537;
  font-size: 2.5rem;
}

.quiz-result p {
  margin: 0.3rem 0 0;
}

.credits-grid {
  align-items: stretch;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.2rem;
}

.credits-list {
  margin: 0;
}

.credits-list > div {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.download-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0;
  padding: 1rem;
  border-radius: 15px;
  color: white;
  text-decoration: none;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(200, 47, 77, 0.22);
}

.attachments-title {
  margin: 1.5rem 0 1rem;
  font-size: 1.25rem;
}

.attachment-list {
  display: grid;
  gap: 0.8rem;
}

.download-link.practice {
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(40, 127, 159, 0.22);
}

.download-link > span:first-child {
  font-size: 1.5rem;
}

.download-link strong,
.download-link small {
  display: block;
}

.download-link small {
  margin-top: 0.25rem;
  opacity: 0.8;
}

.license-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  gap: 1.2rem;
  margin-block: 1rem;
  padding: 1rem;
  border-radius: 15px;
  background: #edf5f6;
}

.license-row img {
  width: 145px;
}

.license-row p,
.disclaimer-block p {
  margin: 0;
  font-size: 0.9rem;
}

.disclaimer-block {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.disclaimer-block .eu-brand {
  margin-bottom: 1rem;
}

.lesson-controls {
  position: sticky;
  z-index: 19;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding-block: 0.7rem;
  background: rgba(238, 246, 247, 0.96);
  backdrop-filter: blur(14px);
}

.dot-nav {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.dot-nav button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #adc4ca;
  cursor: pointer;
}

.dot-nav button[aria-current="page"] {
  width: 30px;
  border-radius: 99px;
  background: var(--red);
}

.theme-red .eyebrow { color: var(--red); }
.theme-green .eyebrow { color: var(--green); }
.theme-purple .eyebrow { color: var(--purple); }
.theme-blue .eyebrow { color: var(--blue); }
.theme-teal .eyebrow { color: var(--green); }
.theme-takeaway .eyebrow { color: var(--red); }
.theme-reading .eyebrow { color: var(--purple); }
.theme-quiz .eyebrow { color: var(--purple); }

@media (max-width: 940px) {
  :root {
    font-size: 17px;
  }

  .hero-grid,
  .reading-layout,
  .image-text-band,
  .dewey-block,
  .takeaway-layout,
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .reverse-media article,
  .reverse-media figure {
    order: initial;
  }

  .reading-copy {
    max-width: 860px;
  }

  .media-card.portrait img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .observation-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .takeaway-layout .media-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand-row,
  .progress-shell,
  .lesson-stage,
  .lesson-controls {
    width: min(100% - 24px, 1180px);
  }

  .brand-row {
    min-height: 62px;
  }

  .vita-brand img {
    width: min(270px, 53vw);
  }

  .eu-brand img {
    width: min(190px, 37vw);
  }

  .chapter-nav {
    padding-inline: 12px;
  }

  .chapter-nav button {
    font-size: 0.95rem;
  }

  .dewey-visual .video-fallback {
    position: static;
    margin: 0 1rem 1rem;
  }

  .lesson-stage {
    min-height: calc(100vh - 205px);
    padding-top: 2.2rem;
  }

  h1,
  .hero-grid h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .two-column-list,
  .bibliography,
  .matching-row,
  .license-row {
    grid-template-columns: 1fr;
  }

  .observation-strip {
    grid-template-columns: 1fr 1fr;
  }

  .lesson-controls {
    gap: 0.5rem;
  }

  .lesson-controls .primary-action,
  .lesson-controls .secondary-action {
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 440px) {
  :root {
    font-size: 16px;
  }

  .observation-strip {
    grid-template-columns: 1fr;
  }

  .quiz-actions {
    flex-direction: column;
  }

  .dot-nav {
    gap: 0.3rem;
  }

  .dot-nav button {
    width: 9px;
    height: 9px;
  }

  .dot-nav button[aria-current="page"] {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .course-header,
  .lesson-controls,
  .primary-action,
  .secondary-action {
    display: none !important;
  }

  .lesson-stage {
    width: 100%;
    padding: 0;
  }

  .lesson-page[hidden] {
    display: block;
  }

  .lesson-page {
    break-after: page;
  }
}
