/* Keep the keyboard skip link available without creating RTL document overflow. */
.language-grid button[aria-pressed="true"] {
  background: #e2f1ef;
  border: 3px solid #146b62;
  box-shadow: inset 0 -4px #146b62;
  position: relative;
  padding-inline-end: 2.75rem;
}
.language-grid button[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  inset-inline-end: .8rem;
  top: .8rem;
  color: #0d5c52;
  font-size: 1.4rem;
  font-weight: 900;
}
.structured-visual { background: #f7f4ed; overflow: hidden; }
.structured-visual-header { background: #07192d; color: #fff; padding: clamp(1rem,3vw,2.5rem); }
.structured-visual-header > p:first-child { color: #e5bd35; font-weight: 800; margin: 0 0 .75rem; }
.structured-visual h2 { color: inherit; margin: 0; font-size: clamp(1.3rem,2.4vw,2.5rem); line-height: 1.25; }
.structured-visual h3 { margin: 0 0 .75rem; font-size: 1rem; line-height: 1.4; }
.structured-visual p { line-height: 1.65; overflow-wrap: anywhere; }
.structured-visual p:last-child { margin-bottom: 0; }
.structured-visual-promise { max-width: 65ch; }
.structured-visual-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; padding: clamp(1rem,3vw,2.5rem); }
.structured-visual-core, .structured-visual-terms > section { background: #fff; border: 2px solid #d8d2c6; border-radius: 1rem; padding: 1.25rem; min-width: 0; }
.structured-visual-core { display: flex; flex-direction: column; }
.structured-visual-core > p:last-child { margin-top: 1.5rem; }
.structured-visual-plain { font-size: 1.1rem; }
.structured-visual-support { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.structured-visual-remember { background: #e2f1ef; border: 3px solid #1a766f; border-radius: 2rem .5rem; padding: 1.25rem; color: #124f4a; }
.structured-visual-terms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.structured-visual-boundary { margin: 1.5rem; padding: 1.25rem; background: #fff3d9; border: 2px solid #d7a928; border-radius: 1rem; }
.structured-visual-boundary p { margin-top: .5rem; }
.structured-visual-roadmap { list-style: none; padding: 0 1.5rem 1.5rem; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.structured-visual-roadmap li { display: flex; gap: .75rem; align-items: start; min-width: 0; overflow-wrap: anywhere; }
.structured-visual-roadmap li > span { display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: #1a766f; color: #fff; font-weight: 800; }
.structured-visual figcaption { border-top: 1px solid #d8d2c6; }
.structured-visual-branches { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; padding: 2rem 1.5rem 0; margin: 0; border-top: 4px solid #d7a928; }
.structured-visual-branches li { position: relative; display: flex; align-items: start; gap: 1rem; padding: 1.25rem; background: #fff; border: 2px solid #d8d2c6; border-radius: 1rem; min-width: 0; }
.structured-visual-branches li::before { content: ''; position: absolute; top: -1.6rem; height: 1.5rem; width: 3px; inset-inline-start: 50%; background: #d7a928; }
.structured-visual-branches p { margin: 0; }
.structured-visual-option-number { display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: #1a766f; color: #fff; font-weight: 800; }
@media (max-width: 700px) {
  .structured-visual-body, .structured-visual-roadmap { grid-template-columns: 1fr; }
  .structured-visual-terms { grid-template-columns: 1fr; }
  .structured-visual-branches { grid-template-columns: 1fr; }
}
.skip:not(:focus) {
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 1000; }
/* Source links remain readable and easy to activate on touch screens. */
#cinematic-caption-language {
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
  padding: .5rem .75rem;
  font: inherit;
}
.province-table .province-card .official-place-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  font-size: .875rem;
  line-height: 1.45;
}

/* Desktop/tablet: show each unique teaching point once. Mobile is unchanged. */
@media screen and (min-width: 721px) {
  body:has(.player-shell) .bar { min-height: 52px; padding: .35rem 1rem; font-size: .85rem; gap: .5rem; }
  body:has(.player-shell) main { max-width: 1600px; padding: .5rem 1rem; }
  body:has(.player-shell) footer { font-size: .7rem; line-height: 1.35; padding: 0 1rem .35rem; }
  .player-shell { grid-template-columns: 174px minmax(0,1fr); min-height: 0; }
  .player-shell .journey { padding: .65rem; }
  .player-shell .journey > p { margin: .4rem 0; font-size: .8rem; }
  .player-shell .progress-track { margin: .25rem 0 .4rem; }
  .player-shell .journey ol { gap: 0; max-height: calc(100dvh - 230px); overflow-y: auto; }
  .player-shell .journey li { padding: .08rem .15rem; font-size: .72rem; line-height: 1.3; gap: .35rem; }
  .player-shell .journey li span { height: 1.15rem; width: 1.15rem; }
  .player-shell .learning-slide { padding: .8rem 1rem; max-width: none; justify-content: start; gap: .55rem; font-size: 15.5px; line-height: 1.4; }
  .player-shell .learning-slide h1 { font-size: clamp(1.35rem,2.2vw,2rem); line-height: 1.15; margin: 0 0 .3rem; }
  .player-shell .learning-slide h2 { font-size: 1rem; line-height: 1.3; margin: 0 0 .3rem; }
  .player-shell .learning-slide p { margin: 0; line-height: 1.4; }
  .player-shell .step-label { font-size: .7rem; margin: 0; }
  .player-shell .lesson-copy, .player-shell .lead { font-size: 1rem; line-height: 1.4; max-width: none; }
  .player-shell .slide-nav { position: sticky; bottom: 0; z-index: 3; background: #fff; padding: .4rem 1rem; gap: .5rem; }
  .player-shell .slide-nav .button { min-height: 44px; padding: .6rem 1rem; }
  /* Every hidden panel below repeats text retained in the visible teaching cards. */
  .deep-lesson .structured-visual-lesson,
  .practice-slide .structured-visual-activity { display: none; }
  .player-shell .deep-lesson { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; }
  .deep-lesson > .step-label, .deep-lesson > h1, .deep-lesson > .lesson-core-grid,
  .deep-lesson > .term-grid, .deep-lesson > .lesson-sources { grid-column: 1 / -1; }
  .player-shell .lesson-core-grid { display: block; margin: 0; }
  .player-shell .lesson-introduction { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; padding: .65rem; }
  .player-shell .takeaway { padding: .6rem .75rem; margin: 0; line-height: 1.4; }
  .player-shell .detail-card, .player-shell .example-card { padding: .65rem .75rem; margin: 0; min-width: 0; }
  .player-shell .term-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin: 0; }
  .player-shell .term-grid > section { padding: .6rem .75rem; }
  .player-shell .lesson-sources { font-size: .78rem; line-height: 1.35; }
  .player-shell .deep-lesson > .lesson-core-grid { display: contents; }
  .player-shell .deep-lesson .lesson-introduction { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; gap: .5rem; }
  .player-shell .deep-lesson > .detail-card { grid-column: 1; grid-row: 3 / span 3; }
  .player-shell .deep-lesson > .example-card { grid-column: 2; grid-row: 4; }
  .player-shell .deep-lesson > .term-grid { grid-column: 2; grid-row: 5; }
  .player-shell .practice-slide { display: flex; flex-direction: column; gap: .7rem; }
  .player-shell .choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin: 0; }
  .player-shell .choice-list button { min-height: 48px; padding: .8rem; font-size: 1rem; line-height: 1.4; }
  .player-shell .feedback { min-height: 2.8rem; padding: .65rem; margin: 0; font-size: .95rem; }
  .player-shell .module-opening { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; align-content: start; }
  .module-opening .module-intro-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: .5rem; }
  .module-opening > .structured-visual-hero { grid-column: 2; grid-row: 1; margin: 0; order: initial; }
  .module-opening .structured-visual-hero > .structured-visual-header,
  .module-opening .structured-visual-hero > .structured-visual-boundary,
  .module-opening .structured-visual-hero > figcaption { display: none; }
  .module-opening .structured-visual-roadmap { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; padding: .8rem; font-size: .9rem; }
  .module-opening .structured-visual-roadmap li { gap: .4rem; }
  .module-opening .structured-visual-roadmap li > span { flex-basis: 1.5rem; height: 1.5rem; }
  .player-shell .module-outcomes { grid-column: 1; grid-row: 2; padding-top: .5rem; }
  .player-shell .module-outcomes ul { margin: .25rem 0; padding-inline-start: 1.2rem; }
  .player-shell .module-outcomes li { margin: .2rem 0; line-height: 1.35; }
  .player-shell .module-opening .module-video { grid-column: 2; grid-row: 2; padding: .8rem; display: block; }
  .player-shell .module-video-copy { display: flex; flex-direction: column; gap: .4rem; }
  .player-shell .boundary { padding: .6rem .75rem; margin: 0; line-height: 1.4; }
  .player-shell .source-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; padding: 0; margin: .5rem 0; }
  .player-shell .source-links li { margin: 0; }
  .player-shell .source-links a { padding: .65rem; min-height: 44px; }
  .player-shell .completion-slide { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; }
  .completion-slide > .step-label, .completion-slide > h1, .completion-slide > .lead { grid-column: 1 / -1; }
  .completion-slide > .check-list { grid-column: 1; grid-row: 4 / span 3; margin: .3rem 0; padding-inline-start: 1.3rem; }
  .completion-slide > .check-list li { margin: .25rem 0; line-height: 1.4; }
  .player-shell .completion-slide dl { grid-column: 2; grid-row: 4; margin: 0; gap: .4rem; font-size: .85rem; }
  .player-shell .completion-slide dl > div { padding: .5rem; }
  .completion-slide > .boundary, .completion-slide > p:not(.step-label):not(.lead), .completion-slide > .learning-resource-actions { grid-column: 2; }
  .player-shell .learning-resource-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
  .player-shell .learning-resource-actions .button { padding: .65rem; min-height: 44px; font-size: .8rem; }
}
/* A viewport-sized workspace, with complete text retained in scrollable cards.
   Short windows and zoomed layouts retain normal page scrolling. */
@media screen and (min-width: 721px) and (min-height: 640px) {
  .player-shell { height: var(--workspace-height,calc(100dvh - 150px)); }
  .player-shell .stage { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
  .player-shell .learning-slide { flex: 1 1 0; min-height: 0; overflow: auto; }
  .player-shell .slide-nav { flex: 0 0 auto; position: sticky; bottom: 0; }
  .player-shell .deep-lesson { grid-template-rows: auto auto minmax(0,1fr) minmax(0,.8fr) minmax(0,.8fr) auto; align-content: stretch; }
  .player-shell .deep-lesson:has(.lesson-narration) { grid-template-rows: auto auto auto minmax(0,1fr) minmax(0,.8fr) minmax(0,.8fr) auto; }
  .deep-lesson > .lesson-narration { grid-column: 1 / -1; grid-row: 3; }
  .deep-lesson:has(.lesson-narration) .lesson-introduction { grid-row: 4; }
  .deep-lesson:has(.lesson-narration) > .detail-card { grid-row: 4 / span 3; }
  .deep-lesson:has(.lesson-narration) > .example-card { grid-row: 5; }
  .deep-lesson:has(.lesson-narration) > .term-grid { grid-row: 6; }
  .player-shell .lesson-narration { margin: 0; }
  .player-shell .lesson-narration audio { height: 36px; }
  .player-shell .deep-lesson :is(.detail-card,.lesson-introduction,.example-card,.term-grid),
  .player-shell .module-opening > :is(.module-intro-copy,.structured-visual-hero,.module-outcomes,.module-video),
  .player-shell .completion-slide > :is(.check-list,dl,.boundary),
  .player-shell .source-links { min-height: 0; overflow: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
  .player-shell .module-opening { grid-template-rows: minmax(0,1fr) minmax(0,1fr); align-content: stretch; }
  .player-shell [data-scroll-card]:focus-visible { outline: 3px solid #087f78; outline-offset: -3px; }
}
@media screen and (min-width: 721px) and (max-width: 1100px) and (min-height: 640px) {
  .player-shell { grid-template-rows: auto minmax(0,1fr); }
}
@media screen and (min-width: 721px) and (max-width: 1100px) {
  .player-shell { grid-template-columns: minmax(0,1fr); }
  .player-shell .journey { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .4rem .75rem; }
  .player-shell .journey > p { margin: 0; }
  .player-shell .journey ol, .player-shell .progress-track { display: none; }
  .player-shell .progress-copy { flex-shrink: 0; gap: .6rem; }
}

/* Content-led spacing, shared by all course languages. Existing editorial art
   keeps its natural width and aspect ratio. */
.slide-panel { min-height: 0; }
.slide-panel > h1 { text-wrap: balance; overflow-wrap: anywhere; }
.page-narration { gap: .75rem; }
.cinematic-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; align-items: start; margin-block: 1.5rem; }
.cinematic-groups details { border: 1px solid #d8d2c6; border-radius: .8rem; background: #f7f4ed; overflow: hidden; }
.cinematic-groups summary { cursor: pointer; padding: 1rem; font-weight: 800; min-height: 48px; }
.cinematic-groups details[open] { grid-column: 1 / -1; background: #fff; }
.cinematic-groups details[open] > summary { background: #e2f1ef; border-bottom: 1px solid #b9d8d4; }
.cinematic-groups .module-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: .8rem; gap: .7rem; margin: 0; }
.cinematic-groups .module-list button { display: flex; gap: .75rem; align-items: center; padding: 1rem; min-width: 0; text-align: start; height: 100%; }
.cinematic-groups .module-list strong { font-size: 1rem; line-height: 1.45; display: block; text-wrap: pretty; }
.cinematic-groups .module-list small { display: block; margin-top: .5rem; color: #52667b; }
.cinematic-groups [aria-current="true"] { background: #e2f1ef; border: 2px solid #087f78; }
.cinematic-groups .module-number { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; background: #0a2035; color: #e5bd35; border-radius: 50%; }
/* The old certificate SVG repeats the complete text below in English only.
   Present the existing translated boundary and requirements directly instead. */
.certificate-layout > .programme-media { display: none; }
.certificate-layout { display: block; }
.certificate-layout > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.certificate-layout .boundary { grid-column: 1; grid-row: 1 / span 2; margin: 0; border-radius: .75rem; }
.certificate-layout h2 { grid-column: 2; margin: 0; font-size: 1.2rem; }
.certificate-layout .check-list { grid-column: 2; margin: 0; padding-inline-start: 1.5rem; }
.certificate-layout .check-list li { padding-block: .35rem; }
@media screen and (min-width: 721px) {
  main { padding-top: .75rem; }
  .slide-panel:not(.opening-film) { padding: clamp(1.25rem,2.2vw,2.2rem); }
  .slide-panel > .step-label { margin: 0 0 .4rem; }
  .slide-panel > h1 { font-size: clamp(1.8rem,3vw,3rem); line-height: 1.2; margin: 0 0 1rem; max-width: 36ch; }
  .slide-panel > .lead { margin: .75rem 0 1rem; max-width: 85ch; }
  .opening-copy { align-self: start; padding: 2rem; }
  .opening-copy h1 { font-size: clamp(2.5rem,4vw,4.8rem); line-height: 1.15; margin-block: .5rem 1rem; }
  .opening-film { gap: 0; align-items: start; }
  .opening-copy .hero-stats { margin-block: 1rem; }
  .page-narration { padding: .65rem .85rem; margin: .65rem 0 1rem; grid-template-columns: minmax(0,1fr) auto; }
  .page-narration .narration-status { max-width: 32ch; text-align: center; padding: .5rem .75rem; }
  .page-narration > div { min-width: 0; }
  .page-narration h2 { font-size: 1rem; margin: 0; }
  .history-hero, .royal-visual { margin-block: .75rem 1rem; }
  .slide-panel:is(.history,.map-slide,.monarchy) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .6rem 1.5rem; align-items: start; }
  .slide-panel:is(.history,.map-slide,.monarchy) > * { grid-column: 1 / -1; }
  .slide-panel:is(.history,.map-slide,.monarchy) > .step-label { grid-column: 1; grid-row: 1; }
  .slide-panel:is(.history,.map-slide,.monarchy) > h1 { grid-column: 1; grid-row: 2; margin: 0; align-self: center; }
  .slide-panel:is(.history,.map-slide,.monarchy) > .page-narration { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; grid-template-columns: 1fr; }
  .slide-panel:is(.history,.map-slide,.monarchy) .page-narration .narration-status { justify-self: start; max-width: none; }
  .map-slide .map-layout { align-items: start; }
  .map-slide .map-detail { height: auto; min-height: 0; padding: 1.25rem; }
  .map-detail > h2 { font-size: clamp(1.3rem,2vw,2rem); line-height: 1.3; }
  .language-grid { gap: .7rem; }
  .language-grid button { padding: .8rem 1rem; min-height: 90px; }
  .chooser-head { align-items: center; gap: 1rem; }
  .chooser-head h1 { font-size: clamp(1.8rem,3vw,3rem); line-height: 1.2; margin-block: .5rem; }
  .course-route > div { padding: 1rem; }
  .cinematic-library .module-video { margin-top: 1rem; }
  .cinematic-library .module-video-copy { align-self: center; }
  .cinematic-library .module-video { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 1.25rem; align-items: center; }
  .cinematic-library .module-video-copy h2 { font-size: clamp(1.2rem,2vw,1.65rem); line-height: 1.4; margin-block: .6rem; }
  .player-shell .deep-lesson { display: flex; flex-direction: column; }
  .player-shell .deep-lesson > .lesson-core-grid { display: none; }
  .player-shell .lesson-reading-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; min-height: 0; flex: 1 1 0; align-items: start; align-content: center; }
  .player-shell .lesson-supporting { display: flex; flex-direction: column; gap: .65rem; min-height: 0; max-height: 100%; overflow: auto; scrollbar-gutter: stable; }
  .player-shell .lesson-supporting > * { flex: 0 0 auto; }
  .player-shell .lesson-detail-group { display: flex; flex-direction: column; gap: .65rem; min-height: 0; max-height: 100%; }
  .player-shell .lesson-detail-group > .detail-card { flex: 0 1 auto; }
  .player-shell .lesson-detail-group > .term-grid { flex: 0 0 auto; }
  .player-shell .lesson-detail-group .term-grid > section { border-top: 3px solid #1a766f; }
  .player-shell .lesson-introduction .takeaway { border-radius: .4rem 1rem; }
  .player-shell .lesson-reading-grid .detail-card { min-height: 0; max-height: 100%; overflow: auto; }
  .player-shell .lesson-sources { flex-shrink: 0; margin-top: .5rem; }
  .player-shell .deep-lesson :is(.detail-card,.lesson-introduction,.example-card,.term-grid) { align-self: start; max-height: 100%; }
  .player-shell .detail-card p { max-width: 75ch; }
  .player-shell .term-grid > section { align-self: start; }
  .player-shell .practice-slide { justify-content: center; }
  .player-shell .practice-slide > :is(h1,.step-label,.lesson-copy,.practice-context) { text-align: center; }
  .player-shell .practice-slide .choice-list { width: min(100%,1100px); align-self: center; }
  .player-shell .choice-list button { text-align: center; }
  .player-shell .slide-nav { display: flex; }
  .player-shell .slide-nav .button { flex: 0 1 auto; min-width: 120px; width: auto; }
  .player-shell .slide-nav > span { margin-inline: auto; }
  .player-shell .slide-nav #previous, .player-shell .slide-nav #next { flex: 0 0 auto; min-width: 120px; width: auto; }
}
@media screen and (max-width: 1000px) {
  .cinematic-groups { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cinematic-groups .module-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media screen and (max-width: 720px) {
  .cinematic-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cinematic-groups .module-list, .certificate-layout > div { display: block; }
  .cinematic-groups .module-list button { width: 100%; margin-bottom: .6rem; }
  .certificate-layout h2 { margin-block: 1rem .5rem; }
}

/* Desktop/tablet viewport arrangement. Mobile retains the original natural flow. */
@media screen and (min-width:721px) and (min-height:620px){
  main:has(> .intro-screen),main:has(> .cinematic-library){padding:.6rem 1rem;}
  .intro-screen:not(.opening-film){box-sizing:border-box;height:calc(100svh - var(--intro-chrome,148px));max-height:1000px;display:flex!important;flex-direction:column;gap:.7rem;padding:1.1rem!important;overflow:hidden;}
  .intro-screen-heading{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,.65fr);gap:1rem;align-items:center;flex-shrink:0;}
  .intro-screen-heading h1{font-size:clamp(1.6rem,2.6vw,2.6rem);line-height:1.2;margin:.25rem 0;overflow-wrap:anywhere;text-wrap:balance;}
  .intro-screen-heading .step-label{margin:0;font-size:.75rem;}
  .intro-screen-heading .page-narration{margin:0;padding:.5rem .7rem;display:flex;gap:.5rem;align-items:center;}
  .intro-screen-heading .page-narration strong,.intro-screen-heading .page-narration>div>p:not(.step-label){display:none;}
  .intro-screen-heading .narration-status{font-size:.75rem;padding:.4rem;}
  .intro-screen-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start;align-content:start;min-height:0;flex:1;overflow:auto;scrollbar-gutter:stable;}
  .intro-screen-body>*{min-width:0;margin-block:0;}
  .intro-screen-body>.lead,.intro-screen-body>.language-grid,.intro-screen-body>.map-layout,.intro-screen-body>.certificate-layout{grid-column:1/-1;}
  .intro-screen-body .lead{font-size:1rem;line-height:1.6;}
  .intro-screen-controls{flex-shrink:0;display:grid;gap:.5rem;padding-top:.6rem;border-top:1px solid #ddd8cf;background:white;}
  .intro-screen-controls .nav-actions{margin:0;display:flex;justify-content:space-between;gap:.8rem;}
  .intro-screen-controls .acknowledge{margin:0;padding:.6rem .8rem;}
  .intro-screen-controls .button{min-height:44px;padding:.65rem 1rem;}
  .intro-screen-body :is(.boundary,.fact-grid article,.today-grid article){padding:.8rem;}
  .intro-screen-body .fact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;}
  .intro-screen-body .today-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;}
  .intro-screen-body :is(.fact-grid,.today-grid) article{min-height:0;}
  .intro-screen-body :is(.history-hero,.royal-visual) img{width:100%;height:auto;object-fit:contain;}
  .intro-screen-body .source-note,.intro-screen-body .media-credit{font-size:.75rem;line-height:1.5;}
  .intro-screen-body .language-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;}
  .intro-screen-body .language-grid button{min-height:76px;padding:.65rem .8rem;}
  .intro-screen-body .language-grid button[aria-pressed="true"]{padding-inline-end:2.75rem;}
  .intro-screen-body .language-grid small{font-size:.78rem;line-height:1.4;}
  .history .intro-screen-body{grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto;align-content:stretch;}
  .history .intro-screen-body>.history-hero{grid-column:1;grid-row:1;max-height:100%;overflow:auto;}
  .history .intro-screen-body>.narrative-columns{grid-column:1;grid-row:2;display:block;max-height:100%;overflow:auto;font-size:.9rem;}
  .history .intro-screen-body>.narrative-columns p{margin-block:.4rem;}
  .history .intro-screen-body>.timeline{grid-column:2;grid-row:1/span 2;display:block;max-height:100%;overflow:auto;padding-inline-start:1.3rem;}
  .history .intro-screen-body>.timeline li{margin-bottom:.6rem;padding:.6rem;font-size:.88rem;}
  .history .intro-screen-body>.boundary{grid-column:1/-1;grid-row:3;font-size:.83rem;}
  .today .intro-screen-body>.lead{grid-column:1;}
  .today .intro-screen-body>.fact-grid{grid-column:2;grid-row:1;}
  .today .intro-screen-body>.today-grid{grid-column:2;grid-row:2/span 3;}
  .today .intro-screen-body>h2,.today .intro-screen-body>.region-bars,.today .intro-screen-body>.source-note{grid-column:1;}
  .today .intro-screen-body>h2{font-size:1.15rem;}
  .monarchy .intro-screen-body>.royal-visual{grid-column:1;grid-row:1/span 2;}
  .monarchy .intro-screen-body>.royal-tree{grid-column:2;grid-row:1/span 2;}
  .monarchy .intro-screen-body>.boundary,.monarchy .intro-screen-body>.today-grid,.monarchy .intro-screen-body>h2,.monarchy .intro-screen-body>.source-note{grid-column:1/-1;}
  .monarchy .intro-screen-body>.boundary{grid-row:3;}
  .monarchy .intro-screen-body .royal{padding:.6rem;font-size:.85rem;}
  .monarchy .intro-screen-body .tree-children{grid-template-columns:repeat(2,minmax(0,1fr));}
  .today .intro-screen-body{align-content:stretch;overflow:hidden;}
  .intro-today-statistics,.intro-today-institutions{min-height:0;height:100%;overflow:auto;scrollbar-gutter:stable;}
  .intro-today-statistics{display:flex;flex-direction:column;gap:.6rem;}
  .intro-today-statistics>*{margin:0;}
  .intro-today-statistics>.lead{font-size:.95rem;line-height:1.5;}
  .intro-today-statistics .fact-grid strong{font-size:1.6rem;line-height:1.2;}
  .intro-today-statistics .fact-grid span{font-size:.8rem;line-height:1.4;}
  .intro-today-statistics>h2{font-size:1.1rem;}
  .intro-today-statistics .region-bars{gap:.45rem;margin:0;}
  .intro-today-statistics .region-bars>div{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1fr);align-items:center;gap:.5rem;}
  .intro-today-statistics .region-bars strong{font-size:.78rem;}
  .intro-today-statistics .region-bars span{font-size:.85rem;padding:.3rem;min-height:0;}
  .intro-today-institutions .today-grid{margin:0;}
  .intro-today-institutions h2{font-size:1.15rem;line-height:1.4;margin:.2rem 0 .6rem;}
  .intro-today-institutions p{font-size:.9rem;line-height:1.55;}
  .intro-today-institutions a{font-size:.78rem;}
  .map-slide .intro-screen-body{grid-template-columns:minmax(0,1.4fr) minmax(270px,.65fr);grid-template-rows:auto minmax(0,1fr);align-content:stretch;overflow:hidden;}
  .map-slide .intro-screen-body>.lead{grid-column:1/-1;grid-row:1;}
  .map-slide .intro-screen-body>.map-layout{grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr;min-height:0;height:100%;}
  .map-slide .map-wrap{min-height:0;height:100%;}
  .map-slide .map-wrap svg{height:100%;width:100%;max-height:100%;}
  .intro-map-sidebar{grid-column:2;grid-row:2;min-height:0;height:100%;overflow:auto;scrollbar-gutter:stable;display:flex;flex-direction:column;gap:.6rem;}
  .intro-map-sidebar>*{flex:0 0 auto;}
  .intro-map-sidebar .map-detail{padding:.75rem;}
  .intro-map-sidebar .map-detail h2{font-size:1.2rem;}
  .intro-map-sidebar .map-detail p{font-size:.82rem;line-height:1.5;}
  .intro-map-sidebar .province-table{margin:0;}
  .intro-map-sidebar .province-table h2{font-size:1rem;}
  .intro-map-sidebar .province-cards{grid-template-columns:1fr;gap:.4rem;}
  .intro-map-sidebar .province-card{padding:.5rem;}
  .intro-map-sidebar .province-card button{padding:.5rem;font-size:.82rem;flex:0 0 auto;min-height:44px;}
  .intro-map-sidebar .official-place-link{font-size:.75rem;margin:0;}
  .intro-map-sidebar>.boundary{font-size:.78rem;line-height:1.5;}
  .monarchy .intro-screen-body{grid-template-rows:auto minmax(0,1fr) minmax(90px,.45fr) auto;align-content:stretch;overflow:hidden;}
  .monarchy .intro-screen-body>.boundary{grid-row:1;font-size:.8rem;}
  .monarchy .intro-screen-body>.royal-visual{grid-row:2;max-height:100%;overflow:auto;display:flex;flex-direction:column;}
  .monarchy .intro-screen-body>.royal-visual img{min-height:0;flex:1;object-fit:contain;}
  .monarchy .intro-screen-body>.royal-visual figcaption{font-size:.7rem;line-height:1.4;padding:.4rem;}
  .monarchy .intro-screen-body>.royal-tree{grid-row:2;max-height:100%;overflow:auto;}
  .monarchy .intro-screen-body>.today-grid{grid-row:3;overflow:auto;max-height:100%;grid-template-columns:repeat(4,minmax(0,1fr));}
  .monarchy .intro-screen-body>.today-grid article{padding:.5rem;}
  .monarchy .intro-screen-body>.today-grid h3{font-size:.95rem;margin:0 0 .4rem;}
  .monarchy .intro-screen-body>.today-grid>h2{grid-column:1/-1;font-size:1rem;margin:0;}
  .monarchy .intro-screen-body>.today-grid p,.monarchy .intro-screen-body>.today-grid a{font-size:.78rem;line-height:1.5;}
  .monarchy .intro-screen-body>h2{display:none;}
  .monarchy .intro-screen-body>.source-note{grid-row:4;}
  .opening-film.intro-screen{height:calc(100svh - var(--intro-chrome,148px));max-height:1000px;min-height:0;position:relative;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:stretch;}
  .opening-film.intro-screen .flag-art-stage{grid-column:2;grid-row:1;height:100%;min-height:0;position:relative;}
  .opening-film.intro-screen .flag-art-stage img{height:100%;width:100%;object-fit:cover;}
  .opening-film.intro-screen .flag-copy{display:none;}
  .opening-film.intro-screen .opening-copy{grid-column:1;grid-row:1;align-self:center;padding:1.4rem;display:flex;flex-direction:column;justify-content:center;gap:.8rem;max-height:100%;overflow:auto;}
  .opening-film.intro-screen .opening-copy h1{font-size:clamp(2rem,3.6vw,3.6rem);margin:0;}
  .opening-film.intro-screen .opening-copy>.lead{font-size:1.05rem;line-height:1.6;margin:0;}
  .opening-film.intro-screen .course-highlights{margin:.5rem 0;}
  .opening-film.intro-screen .anthem-film-card{position:absolute;inset-inline-start:57%;inset-inline-end:1rem;bottom:1rem;margin:0;max-height:80%;overflow:auto;background:rgba(255,255,255,.97);}
  .opening-film.intro-screen .anthem-heading{padding:.7rem 1rem;}
  .opening-film.intro-screen .anthem-heading h2{font-size:1.4rem;line-height:1.2;margin:.3rem 0;}
  .opening-film.intro-screen .anthem-heading p{font-size:.8rem;line-height:1.5;margin:.3rem 0;}
  .opening-film.intro-screen .anthem-film-card .media-credit{font-size:.7rem;line-height:1.4;padding:.6rem 1rem;}
  .opening-film.intro-screen .opening-copy>.nav-actions{margin:0;flex-wrap:wrap;gap:.7rem;}
  .chooser .intro-screen-heading{display:block;}
  .chooser .course-map-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;}
  .chooser .course-map-heading .lead{font-size:.88rem;line-height:1.5;margin:.4rem 0 0;}
  .chooser .course-progress{padding:.5rem .75rem;}
  .chooser .course-progress strong{font-size:1.4rem;}
  .chooser .course-progress strong,.player-shell .slide-nav>span{direction:ltr;unicode-bidi:isolate;}
  .chooser .intro-screen-body{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr) auto auto;align-content:stretch;overflow:hidden;gap:.55rem;}
  .chooser .course-route{margin:0;}
  .chooser .course-route>div{padding:.5rem;}
  .chooser .course-route strong{font-size:.85rem;}
  .chooser .course-route small{font-size:.73rem;line-height:1.4;}
  .chooser .continue-card{padding:.5rem .7rem;margin:0;gap:.7rem;}
  .chooser .continue-card strong,.chooser .continue-card span{font-size:.85rem;}
  .chooser .continue-card .button{min-height:44px;padding:.5rem .8rem;}
  .chooser .intro-screen-body>.module-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:.5rem;margin:0;min-height:0;height:100%;}
  .chooser .module-list>li{min-height:0;}
  .chooser .module-list button{height:100%;min-height:0;padding:.55rem;gap:.5rem;overflow:auto;align-items:start;}
  .chooser .module-list .module-number{font-size:.9rem;min-width:1.7rem;}
  .chooser .module-list strong{font-size:.86rem;line-height:1.4;}
  .chooser .module-list small{font-size:.73rem;line-height:1.4;margin-top:.2rem;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;max-height:1.4em;}
  .chooser .cinematic-callout{padding:.5rem .7rem;margin:0;gap:.6rem;}
  .chooser .cinematic-callout strong{font-size:.88rem;}
  .chooser .cinematic-callout span{font-size:.74rem;line-height:1.4;}
  .chooser .cinematic-callout .button{min-height:44px;padding:.5rem .8rem;}
  .chooser .privacy-note{font-size:.7rem;line-height:1.4;margin:0;max-height:3em;overflow:auto;}
}
@media screen and (min-width:721px) and (max-width:1000px) and (min-height:620px){
  .intro-screen-body .language-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .intro-screen-heading{grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);}
  .opening-film.intro-screen .opening-copy{padding:1rem;}
  .opening-film.intro-screen .opening-copy>.lead{font-size:.95rem;}
}

/* Existing films, original audio and selected caption tracks are retained. */
.cinematic-groups summary strong{display:block;font-size:.93rem;line-height:1.45;text-wrap:pretty;}
.cinematic-groups summary small{display:block;margin-top:.35rem;font-size:.75rem;color:#52667b;}
.film-adjacent small{display:block;max-width:24ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:.75rem;}
@media screen and (min-width:721px) and (min-height:620px){
  .cinematic-library.slide-panel{height:calc(100svh - var(--intro-chrome,148px));max-height:1000px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr);grid-template-rows:auto auto minmax(0,1fr) auto;gap:.65rem 1rem;padding:1.1rem!important;overflow:hidden;}
  .cinematic-library>.step-label{grid-column:1;grid-row:1;margin:0;}
  .cinematic-library>h1{grid-column:1;grid-row:2;font-size:clamp(1.6rem,2.5vw,2.4rem);margin:0;}
  .cinematic-library>.lead{display:none;}
  .cinematic-library>.module-video{grid-column:1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:.6rem;min-height:0;height:100%;overflow:hidden;align-self:stretch;margin:0;width:100%;padding:.75rem;box-sizing:border-box;}
  .cinematic-library .module-video>video{grid-row:1;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;background:#071c2d;}
  .cinematic-library .module-video-copy{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem .8rem;align-items:center;}
  .cinematic-library .module-video-copy{grid-row:2;}
  .cinematic-library .module-video-copy>.step-label{grid-column:1;grid-row:1;margin:0;font-size:.75rem;}
  .cinematic-library .module-video-copy h2{grid-column:1;grid-row:2;margin:0;font-size:1.05rem;line-height:1.4;}
  .cinematic-library .module-video-copy label{grid-column:2;grid-row:1;font-size:.8rem;}
  .cinematic-library .module-video-copy select{grid-column:2;grid-row:2;max-width:180px;min-height:44px;}
  .cinematic-library>.cinematic-groups{grid-column:2;grid-row:1/span 3;display:block;margin:0;min-height:0;height:100%;overflow:auto;scrollbar-gutter:stable;padding-inline-end:.3rem;}
  .cinematic-library .cinematic-groups details{margin-bottom:.6rem;}
  .cinematic-library .cinematic-groups summary{padding:.65rem .8rem;}
  .cinematic-library .cinematic-groups .module-list{display:grid;grid-template-columns:1fr;padding:.5rem;gap:.4rem;}
  .cinematic-library .cinematic-groups .module-list button{padding:.65rem;}
  .cinematic-library>.nav-actions{grid-column:1/-1;grid-row:4;display:flex;justify-content:space-between;gap:.6rem;margin:0;padding-top:.5rem;border-top:1px solid #ddd8cf;}
  .cinematic-library>.nav-actions .button{min-height:44px;min-width:0;padding:.6rem .8rem;}
}

/* Map selection stays in the course; official links stay in the details. */
.map-country-list{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem .65rem;margin-top:.6rem;}
.map-country-list>span{display:inline-block;padding:.25rem .65rem;border:1px solid #b9d1d4;border-radius:999px;background:#eaf4f5;font-size:.85rem;font-weight:700;}
.map-wrap .neighbour{max-width:28%;line-height:1.4;text-align:center;pointer-events:none;}
.map-wrap .north{left:52%;transform:translateX(-50%);}
.province-paths path{touch-action:manipulation;cursor:pointer;}
.province-paths path:focus-visible,.brussels-marker:focus-visible{outline:3px solid #126b83;outline-offset:3px;}

/* Geography uses physical directions even when course text is right-to-left.
   Country names occupy reserved grid cells, outside the province artwork. */
.map-slide .map-wrap{
  display:grid;
  direction:ltr;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) max-content;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:.5rem;
  align-items:center;
  padding:.65rem;
  box-sizing:border-box;
  height:auto;
  max-height:100%;
  align-self:center;
}
.map-slide .map-wrap svg{
  grid-column:1/3;
  grid-row:2;
  width:100%;
  height:auto;
  max-height:100%;
  aspect-ratio:900/640;
  min-width:0;
  min-height:0;
  align-self:center;
}
.map-slide .map-wrap .neighbour{
  position:static;
  inset:auto;
  transform:none;
  max-width:6.5rem;
  padding:.15rem;
  box-sizing:border-box;
  line-height:1.5;
  text-align:center;
  overflow-wrap:anywhere;
  unicode-bidi:plaintext;
}
.map-slide .map-wrap .sea{grid-column:1;grid-row:1;justify-self:start;}
.map-slide .map-wrap .north{grid-column:2;grid-row:1;justify-self:center;}
.map-slide .map-wrap .east{grid-column:3;grid-row:2;align-self:center;}
.map-slide .map-wrap .south{grid-column:1/3;grid-row:3;justify-self:start;}
.map-slide .map-wrap .southeast{grid-column:3;grid-row:3;justify-self:end;}
@media(max-width:720px){
  .map-slide .map-wrap svg{height:auto;aspect-ratio:900/640;}
  .map-slide .map-wrap .neighbour{max-width:5.5rem;font-size:.78rem;}
}
