@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: #fff;
  --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, .12);
  --radius: 22px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 0 0, #fff 0, transparent 28rem), var(--canvas); font-family: "Montserrat", Arial, sans-serif; line-height: 1.65; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: "Montserrat", Arial, sans-serif; line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.035em; margin-bottom: 1.1rem; }
h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1rem; }
a { color: var(--blue); }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.course-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(40,127,159,.22); background: rgba(250,253,253,.96); box-shadow: 0 8px 24px rgba(23,54,75,.07); backdrop-filter: blur(16px); }
.brand-row, .chapter-nav, .progress-shell { 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: .5rem; }
.vita-brand, .eu-brand { display: flex; align-items: center; }
.vita-brand { max-width: 520px; gap: .75rem; }
.vita-brand .vita-mark { flex: 0 0 54px; width: 54px; height: 54px; object-fit: contain; }
.vita-title-local { color: var(--blue); font-size: clamp(.8rem, 1.45vw, 1.08rem); font-weight: 500; line-height: 1.25; }
.eu-brand img { width: min(315px, 34vw); height: auto; }
.course-bar { position: relative; min-height: 76px; border-top: 1px solid rgba(40,127,159,.16); }
.chapter-nav { display: flex; height: 76px; align-items: center; justify-content: space-between; gap: 1rem; overflow-x: auto; padding: 0 76px 0 0; scrollbar-color: rgba(40,127,159,.3) transparent; scrollbar-width: thin; }
.chapter-nav button { flex: 0 0 auto; min-height: 30px; padding: .25rem .75rem; border: 0; border-radius: 10px; white-space: nowrap; color: #aab8bf; background: transparent; font-size: .95rem; font-weight: 700; transition: background .16s ease, color .16s ease, transform .16s ease; }
.chapter-nav button:hover { color: #405f70; background: #edf3f4; }
.chapter-nav button[aria-current="page"] { color: white; background: var(--ink); box-shadow: 0 3px 9px rgba(23,54,75,.16); }
.progress-shell { position: absolute; right: 0; bottom: 5px; left: 0; }
.progress-meta { position: absolute; right: 2px; bottom: 12px; padding: .12rem .3rem; border-radius: 5px; color: var(--muted); background: rgba(250,253,253,.96); font-size: .8rem; font-weight: 700; line-height: 1; }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #dbe8ea; }
.progress-track span { display: block; width: 7.69%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--red)); transition: width .28s ease; }

.lesson-stage { max-width: 1280px; margin: 0 auto; padding: clamp(2.2rem, 6vw, 5.2rem) 2rem 6.5rem; min-height: 72vh; outline: none; }
.lesson-page { animation: enter .35s ease both; }
.lesson-page[hidden] { display: none; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.eyebrow, .section-kicker, .question-kicker { color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; font-weight: 700; margin-bottom: .7rem; }
.theme-red .eyebrow { color: var(--red); }
.theme-green .eyebrow, .theme-teal .eyebrow { color: var(--green); }
.theme-purple .eyebrow, .theme-quiz .eyebrow { color: var(--purple); }
.theme-blue .eyebrow { color: var(--blue); }
.theme-takeaway .eyebrow { color: var(--red); }
.section-heading { max-width: 920px; margin-bottom: 2.2rem; }
.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; }

.hero-grid, .reading-layout, .image-text-band, .credits-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.hero-grid h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.page-home .hero-grid { align-items: start; }
.page-home .hero-media { display: flex; flex-direction: column; }
.page-home .hero-media img { flex: 1 1 auto; min-height: 0; max-height: none; }
.page-home .hero-media figcaption { flex: 0 0 auto; }
.reverse-media > :first-child { order: 2; }
.contributors-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.5rem 0 0; }
.contributors-inline > div { display: flex; min-height: 126px; flex-direction: column; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.76); }
.contributors-inline dt, .credits-list dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contributors-inline dd, .credits-list dd { margin: .2rem 0 0; font-weight: 700; }
.contributor-name, .contributor-org { display: block; }
.contributor-name { margin-bottom: .2rem; }
.contributor-org { color: var(--muted); font-size: .86rem; font-weight: 400; line-height: 1.45; }
.primary-action, .secondary-action { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: .65rem; border: 0; border-radius: 14px; padding: .8rem 1.25rem; font-size: .95rem; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.primary-action { color: white; background: var(--red); box-shadow: 0 9px 20px rgba(200,47,77,.22); }
.secondary-action { color: var(--ink); background: white; border: 1px solid var(--line); }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.primary-action:focus-visible, .secondary-action:focus-visible, .chapter-nav button:focus-visible, .term-note-toggle:focus-visible, summary:focus-visible, label:focus-within { outline: 3px solid var(--cyan); outline-offset: 3px; }

.media-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow); }
.media-card img { width: 100%; max-height: 520px; object-fit: cover; }
.media-card.contained img, .hero-media img, .wide-figure img { object-fit: contain; padding: 1.4rem; background: white; }
.media-card figcaption { padding: .8rem 1rem 1rem; color: var(--muted); font-size: .82rem; }
.portrait { max-width: 520px; justify-self: center; }
.landscape img { aspect-ratio: 16/9; }
.panorama { margin: 2rem auto 0; max-width: 760px; }
.panorama img { aspect-ratio: 16/7; }
.reinforcement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: stretch; }
.reinforcement-grid > * { min-width: 0; height: 100%; }
.reinforcement-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-left-width: 6px; border-radius: var(--radius); background: white; box-shadow: var(--shadow); font-size: 1.05rem; }
.reinforcement-grid > .reinforcement-text:nth-child(1) { border-left-color: var(--red); }
.reinforcement-grid > .reinforcement-text:nth-child(3) { border-left-color: var(--blue); }
.reinforcement-text p:first-child { margin-top: 0; }
.reinforcement-text p:last-child { margin-bottom: 0; }
.reinforcement-grid .media-card { display: flex; flex-direction: column; }
.reinforcement-grid .media-card img { width: 100%; height: 280px; max-height: none; object-fit: cover; }
.reinforcement-grid .media-card.contained img { object-fit: contain; }
.reinforcement-grid figcaption { margin-top: auto; }
.wide-figure { max-width: 980px; margin: 0 auto 2rem; }
.model-layout { grid-template-columns: minmax(0, .85fr) minmax(440px, 1.15fr); align-items: center; }
.model-layout .reading-copy { max-width: 52ch; }
.model-layout .wide-figure { width: 100%; max-width: none; margin: 0; }
.model-layout .wide-figure img { max-height: 390px; }
.content-card, .question-card, .fact-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.objective-card { margin-top: 2.2rem; border-left: 7px solid var(--cyan); }
.objective-card h2 { margin-top: 1.5rem; }
.home-start-action {
  position: fixed;
  z-index: 19;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: .7rem 20px;
  border-top: 1px solid var(--line);
  background: rgba(238,246,247,.96);
  box-shadow: 0 -8px 24px rgba(23,54,75,.07);
  backdrop-filter: blur(14px);
}
.home-start-action[hidden] { display: none; }
.check-list, .source-list { padding-left: 1.2rem; }
.check-list li, .source-list li { margin-bottom: .55rem; }
.check-list li::marker { color: var(--green); }
.reading-copy { font-size: 1.05rem; max-width: 68ch; }
.wide-copy { max-width: 850px; margin: 0 auto; }
.reading-copy strong { color: var(--ink); }
.cost-layout { grid-template-areas: "copy image" "fact image"; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 1.5rem 2.4rem; align-items: stretch; }
.cost-layout .reading-copy { grid-area: copy; align-self: center; }
.cost-layout .fact-card { grid-area: fact; }
.cost-illustration { grid-area: image; display: flex; min-height: 0; flex-direction: column; }
.cost-illustration img { flex: 1 1 auto; min-height: 0; height: 100%; max-height: none; object-fit: cover; object-position: center; }
blockquote { margin: 1.8rem 0; padding: 1.6rem 1.8rem; color: white; background: var(--ink); border-left: 7px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
blockquote small { display: block; margin-top: .75rem; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .86rem; color: #cde0e6; }
.term-note, .faq-grid details { border: 1px solid var(--line); border-radius: 14px; background: white; }
.term-note { margin-top: 1.5rem; }
.term-note-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border: 0; color: var(--ink); background: transparent; text-align: left; font-weight: 700; }
.term-note-toggle::after { content: "↓"; flex: 0 0 auto; color: var(--blue); font-size: 1.1rem; transition: transform .38s cubic-bezier(.22,1,.36,1); }
.term-note.is-open .term-note-toggle::after { color: var(--red); transform: rotate(180deg); }
.term-note > .term-note-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .42s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
.term-note.is-open > .term-note-body { grid-template-rows: 1fr; opacity: 1; }
.term-note-body > div { overflow: hidden; transform: translateY(-.4rem); transition: transform .42s cubic-bezier(.22,1,.36,1); }
.term-note.is-open .term-note-body > div { transform: translateY(0); }
.term-note-body p { margin: 0; padding: 0 1.15rem 1rem; }
summary { cursor: pointer; padding: 1rem 1.15rem; font-weight: 800; color: var(--ink); }
details p { padding: 0 1.15rem 1rem; }
.timeline-card { display: grid; gap: 1rem; }
.timeline-card div { display: grid; grid-template-columns: 6rem 1fr; gap: 1.2rem; align-items: center; padding: 1.3rem; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.timeline-card strong { color: var(--red); font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; }
.question-card { border-left: 7px solid var(--red); }
.image-text-band { margin-top: 2.4rem; }
.theme-red[data-page="2"] .reading-layout,
.theme-red[data-page="2"] .image-text-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-red[data-page="2"] .reading-layout .media-card { width: 100%; max-width: none; justify-self: stretch; }
.theme-red[data-page="2"] .image-text-band { align-items: stretch; }
.theme-red[data-page="2"] .image-text-band > * { height: 100%; }
.theme-red[data-page="2"] .image-text-band .media-card { display: flex; flex-direction: column; }
.theme-red[data-page="2"] .image-text-band .media-card img { flex: 1 1 auto; min-height: 0; object-fit: cover; }
.definition { padding: 1.15rem 1.3rem; border-left: 6px solid var(--cyan); background: white; box-shadow: var(--shadow); }
.three-cards, .application-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.three-cards article, .application-grid article { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.three-cards span { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; color: white; background: var(--blue); font-weight: 800; }
.three-cards h2 { margin: 1rem 0 .5rem; }
.icon-pair { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; }
.icon-pair figure { margin: 0; text-align: center; font-weight: 800; color: var(--muted); }
.icon-pair img { width: 170px; height: 95px; object-fit: contain; margin-bottom: .5rem; }
.brand-examples { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.brand-examples img { width: 115px; height: 42px; object-fit: contain; }
.application-grid article { display: flex; flex-direction: column; }
.application-grid b { color: var(--purple); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.application-grid h2 { margin: .7rem 0; }
.application-grid img { height: 150px; object-fit: contain; margin-top: auto; padding-top: 1rem; }
.fact-card { color: white; background: var(--ink); border: 0; }
.fact-card .question-kicker { color: var(--cyan); }
.fact-card h2 { font-size: 2.2rem; }
.big-quote { width: 100%; max-width: none; box-sizing: border-box; font-size: 1.5rem; }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.faq-grid .term-note { min-height: 0; margin-top: 0; align-self: start; transition: min-height .42s cubic-bezier(.22,1,.36,1); }
.faq-grid .term-note.is-open { min-height: 320px; }
.faq-grid .term-note-toggle { min-height: 96px; align-items: flex-start; }

.quiz-form { display: grid; gap: 1rem; max-width: 940px; }
.quiz-card { margin: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.quiz-card legend { padding: 0 .5rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; }
.quiz-card legend span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .6rem; border-radius: 50%; color: white; background: var(--purple); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .85rem; }
.quiz-card > label { display: block; padding: .7rem .8rem; margin: .35rem 0; border-radius: 10px; }
.quiz-card > label:hover { background: #f2f7f8; }
.quiz-card input { margin-right: .6rem; accent-color: var(--red); }
.quiz-card.is-correct { border-color: var(--green); background: #f1fbf7; }
.quiz-card.is-wrong { border-color: var(--red); background: #fff5f6; }
.answer-feedback { display: none; margin: .75rem 0 0; font-weight: 700; }
.quiz-card.is-correct .answer-feedback, .quiz-card.is-wrong .answer-feedback { display: block; }
.quiz-card.is-correct .answer-feedback { color: #0d7157; }
.quiz-card.is-wrong .answer-feedback { color: #a51f3a; }
.quiz-actions { display: flex; gap: .8rem; margin-top: .5rem; }
.quiz-result { padding: 1.5rem; color: white; background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.quiz-result strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; }
.quiz-result p { margin: .3rem 0 0; }

.credits-grid { grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr); align-items: stretch; gap: 1.2rem; }
.credits-grid > .content-card { height: 100%; }
.credits-list { margin: 0; }
.credits-list > div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.credits-list dt { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.credits-list dd { margin: .2rem 0 0; font-weight: 700; }
.attachments-title { margin: 1.5rem 0 1rem; font-size: 1.25rem; }
.attachment-list { display: grid; gap: .8rem; }
.download-link { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 15px; color: white; text-decoration: none; background: var(--red); box-shadow: 0 10px 24px rgba(200,47,77,.22); transition: transform .16s ease, box-shadow .16s ease; }
.download-link:hover { transform: translateY(-2px); box-shadow: 0 13px 27px rgba(200,47,77,.27); }
.download-link.practice { background: var(--blue); box-shadow: 0 10px 24px rgba(40,127,159,.22); }
.download-link > span:first-child { font-size: 1.5rem; }
.download-link strong, .download-link small { display: block; }
.download-link small { margin-top: .25rem; opacity: .82; }
.download-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.legal-card { display: flex; flex-direction: column; gap: 1rem; }
.copyright-line { margin: 0 0 .25rem; }
.license-row { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 1.4rem; padding: 1.2rem; border-radius: 16px; background: #eef5f6; }
.license-row img { width: 145px; }
.license-row p, .disclaimer-block p { margin: 0; }
.disclaimer-block { margin-top: auto; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; }
.disclaimer-block img { width: min(300px, 100%); margin-bottom: 1.2rem; }

.lesson-controls { position: fixed; z-index: 19; right: 0; bottom: 0; left: 0; min-height: 76px; margin: 0; padding: .7rem max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(238,246,247,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(23,54,75,.07); backdrop-filter: blur(14px); }
.lesson-controls[hidden] { display: none; }
.dot-nav { display: flex; justify-content: center; align-items: center; gap: .45rem; }
.dot-nav button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #adc4ca; cursor: pointer; transition: width .18s ease, background .18s ease; }
.dot-nav button[aria-current="page"] { width: 30px; border-radius: 99px; background: var(--red); }
.dot-nav button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-grid, .reading-layout, .image-text-band, .credits-grid { grid-template-columns: 1fr; }
  .cost-layout { grid-template-areas: "copy" "fact" "image"; grid-template-columns: 1fr; }
  .cost-illustration img { height: auto; max-height: 480px; }
  .theme-red[data-page="2"] .reading-layout,
  .theme-red[data-page="2"] .image-text-band { grid-template-columns: 1fr; }
  .reinforcement-grid { grid-template-columns: 1fr; }
  .reverse-media > :first-child { order: initial; }
  .hero-media, .portrait { max-width: 620px; justify-self: stretch; }
  .page-home .hero-media { height: auto !important; }
  .three-cards, .application-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .term-note.is-open { min-height: 0; }
  .faq-grid .term-note-toggle { min-height: 0; }
  .application-grid img { height: 190px; }
}
@media (max-width: 640px) {
  .brand-row, .chapter-nav, .progress-shell { width: min(100% - 24px, 1180px); }
  .brand-row { min-height: 62px; }
  .vita-brand .vita-mark { flex-basis: 44px; width: 44px; height: 44px; }
  .vita-title-local { font-size: .72rem; }
  .eu-brand img { width: min(190px, 37vw); }
  .chapter-nav { justify-content: flex-start; gap: .35rem; padding: 0 58px 0 0; }
  .lesson-stage { padding: 2rem 1rem 6.5rem; }
  .lesson-controls { padding: .7rem 12px; }
  .dot-nav { gap: .3rem; }
  .dot-nav button { width: 9px; height: 9px; }
  .dot-nav button[aria-current="page"] { width: 20px; }
  .control-hint { display: none; }
  .contributors-inline { grid-template-columns: 1fr; }
  .icon-pair { flex-direction: column; align-items: center; }
  .license-row { grid-template-columns: 1fr; }
  h1 { font-size: 2.45rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print {
  .course-header, .lesson-controls, .home-start-action, .skip-link { display: none !important; }
  body { background: white; }
  .lesson-stage { max-width: none; padding: 0; }
  .lesson-page[hidden] { display: block; }
  .lesson-page { break-after: page; animation: none; }
  .content-card, .media-card, .quiz-card, .fact-card { box-shadow: none; }
}
