/* POTATUM 2.1 — editorial refinement.
   Presentation only: routes, data, exercise behaviour and filters are unchanged.
   Shared values live in tokens.css. */

/* Reading rhythm and common controls */
body { font-size: var(--text-base); line-height: 1.7; }
h1, h2, h3, h4 { letter-spacing: -.012em; font-weight: 400; }
h1 { font-size: var(--title-lg); line-height: 1.04; }
h2 { font-size: var(--title-md); line-height: 1.12; }
h3 { font-size: var(--title-sm); line-height: 1.2; }
.wrap { padding-inline: var(--gutter); }
.eyebrow { font-size: var(--text-xs); letter-spacing: .13em; font-weight: 600; }
.small, .teacher-note, .word-count, .audio-status { font-size: var(--text-sm); }
a, button, input, select, textarea, summary { transition: color var(--ease), background-color var(--ease), border-color var(--ease); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 4px;
}
main[tabindex]:focus-visible { outline: none; }
.button { border-radius: var(--radius-control); font-size: var(--text-sm); min-height: 48px; padding: 11px 22px; font-weight: 600; }
.button:hover { background: var(--green-deep); }
.button.secondary { border-color: var(--line-strong); }
.button.secondary:hover { background: var(--green-light); border-color: var(--green); }
.button.quiet:hover { background: var(--wash); }
.button, .text-link { text-underline-offset: 5px; }
.text-link { font-size: var(--text-sm); min-height: 44px; display: inline-flex; align-items: center; }
.level { padding: 1px 7px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius); font-size: var(--text-xs); font-weight: 600; line-height: 1.6; }

/* One alignment grid for navigation, banners and catalogue */
.site-header { max-width: var(--width); min-height: 84px; padding: 16px var(--gutter); gap: 30px; border-bottom: 0; flex-wrap: nowrap; }
.brand { gap: 11px; flex-shrink: 0; }
.brand-crest { width: 45px; height: 50px; object-fit: cover; }
.brand strong { font: 400 31px/1 var(--serif); letter-spacing: .045em; }
.brand small { font-size: var(--text-xs); line-height: 1.3; margin-top: 4px; }
.site-header nav { gap: 31px; }
.site-header nav a { font-size: var(--text-sm); font-weight: 500; letter-spacing: .015em; text-transform: none; padding: 11px 0; }
.site-header nav a:after { content: ''; height: 1px; background: var(--green); position: absolute; bottom: 4px; left: 0; right: 0; transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.site-header nav a:hover:after, .site-header nav a[aria-current]:after { transform: scaleX(1); height: 1px; }
.site-header nav a:hover { color: var(--gold); }
.search-link { min-width: 44px; min-height: 44px; margin-left: 2px; border-left: 1px solid var(--line); padding-left: 14px; }
.menu-button { min-width: 44px; min-height: 44px; }

/* Four related compositions, with protected copy and intentional image edges */
.section-banner { position: relative; isolation: isolate; max-width: 1600px; margin: 0 auto; overflow: hidden; display: flex; align-items: center; background: var(--paper); min-height: 250px; }
.banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: var(--image-grade); }
.section-banner:before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.banner-content { width: 54%; max-width: 780px; padding: 36px 36px 39px var(--page-inset); }
.banner-content h1 { margin: 12px 0 16px; }
.banner-description { max-width: 41ch; font-size: var(--text-base); line-height: 1.7; }
.banner-home { min-height: 390px; background: var(--green-deep); }
.banner-home .banner-image { object-position: center 44%; filter: saturate(.73) contrast(.95) brightness(1.04); }
.banner-home:before { background: linear-gradient(90deg, transparent 26%, rgb(17 45 37 / 18%) 48%, rgb(17 45 37 / 38%)); }
.banner-home .banner-content { margin-left: 52%; width: 48%; padding: 30px var(--page-inset) 29px 16px; max-width: none; color: var(--paper); }
.banner-home h1 { color: var(--surface); font-size: clamp(3.1rem, 4.8vw, 4.25rem); line-height: .99; letter-spacing: -.015em; margin: 13px 0 18px; }
.banner-home h1 em { font-weight: 400; }
.banner-home .eyebrow, .banner-exam .eyebrow { color: #d9c8a0; }
.banner-home .banner-description { color: #e2e8dd; max-width: 38ch; }
.banner-home .hero-actions { align-items: center; gap: 25px; margin-top: 22px; }
.banner-home .button { background: var(--green); color: var(--surface); border-color: #92a493; }
.banner-home .button:hover { background: #265341; border-color: #d4d9c4; }
.banner-text-link { color: #e4e9df; font-size: var(--text-sm); min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 5px; }
.banner-footnote { margin-top: 14px; font-size: var(--text-xs); color: #cad6c7; letter-spacing: .035em; }
.banner-learn { min-height: 244px; border-block: 1px solid var(--line); }
.banner-learn .banner-image { width: 70%; left: auto; object-fit: contain; object-position: right center; mask-image: linear-gradient(90deg, transparent 25%, #000 75%); }
.banner-learn:before { background: linear-gradient(90deg, var(--paper) 10%, rgb(245 242 233 / 94%) 34%, transparent 66%); }
.banner-learn .banner-content { width: 56%; padding-block: 30px; }
.banner-learn .banner-description { max-width: 38ch; }
.banner-exam { min-height: 275px; background: var(--green-deep); }
.banner-exam .banner-image { width: 76%; left: auto; object-fit: contain; object-position: right center; mask-image: linear-gradient(90deg, transparent 10%, #000 47%); }
.banner-exam:before { background: linear-gradient(90deg, var(--green-deep) 10%, rgb(17 45 37 / 80%) 36%, transparent 66%); }
.banner-exam .banner-content { width: 59%; color: #e5e9df; }
.banner-exam h1 { color: var(--surface); }
.banner-institute { min-height: 360px; border-block: 1px solid var(--line); }
.banner-institute .banner-image { width: 84%; left: auto; object-position: right center; mask-image: linear-gradient(90deg, transparent, #000 40%); }
.banner-institute:before { background: linear-gradient(90deg, var(--paper), rgb(245 242 233 / 94%) 30%, transparent 80%); }
.banner-institute .banner-content { width: 62%; max-width: 820px; }
.banner-institute h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.banner-institute .banner-description { max-width: 43ch; }
.banner-institute .hero-actions { margin-top: 22px; }

/* Category shelf: quiet separators and isolated editorial illustrations */
.practice-section { padding: 28px 0 31px; border-bottom: 0; }
.section-heading { align-items: end; gap: var(--space-5); margin-bottom: 23px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading.centered { justify-content: center; text-align: center; margin-bottom: 18px; }
.practice-section h2 { font-size: 2rem; }
.practice-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; border-bottom: 1px solid var(--line); }
.practice-card { background: transparent; border: 0; border-radius: 0; text-align: center; align-items: center; padding: 8px 16px 19px; min-height: 185px; position: relative; }
.practice-card + .practice-card { border-left: 1px solid var(--line); }
.practice-card:hover { background: var(--wash); }
.practice-card img { width: 106px; height: 91px; object-fit: contain; margin: 0 auto 7px; filter: saturate(.82); }
.practice-card h3 { font-size: 1.4rem; line-height: 1.18; }
.practice-card p { font-size: var(--text-sm); line-height: 1.45; max-width: 170px; margin-top: 6px; }
.practice-card .arrow { display: none; }
.latest-section { padding: 12px 0 var(--space-8); }

/* Catalogue cards: image, archival reference, title, then practical metadata */
.card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 30px; row-gap: 38px; }
.lesson-card { overflow: visible; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; transition: border-color var(--ease); }
.lesson-card:hover { transform: none; box-shadow: none; border-bottom-color: var(--green); }
.card-visual { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--wash); border-radius: var(--radius); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; filter: var(--image-grade); transition: filter var(--ease); }
.lesson-card:hover .card-visual img { filter: saturate(.9) contrast(.98) brightness(1.02); transform: none; }
.card-body { padding: 17px 0 15px; }
.catalogue-kicker { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--gold); font-size: var(--text-xs); line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.catalogue-id { color: var(--muted); letter-spacing: .05em; }
.card-body h3 { font-size: 1.625rem; line-height: 1.13; margin: 11px 0 9px; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:after { inset: -6px; border-radius: var(--radius); }
.card-body h3 a:focus-visible:after { outline: 2px solid var(--focus); outline-offset: 1px; }
.card-body p { font-size: var(--text-sm); line-height: 1.6; margin-bottom: 15px; max-width: 47ch; }
.card-meta { font-size: var(--text-sm); gap: 7px; color: var(--muted); }
.card-bottom { padding-top: 9px; margin-top: 0; font-size: var(--text-xs); letter-spacing: .025em; }
.card-bottom .card-arrow { font-size: 1.2rem; }

/* Filters keep native semantics and keyboard behaviour, with a coherent skin */
.library { padding-top: 30px; padding-bottom: var(--space-8); }
.filters { grid-template-columns: 1.55fr .85fr 1fr 1.15fr; gap: 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 0 22px; border-radius: 0; }
.field label, .answer-label, .filter-label { font-size: var(--text-sm); font-weight: 500; margin-bottom: 7px; }
.field input, .field select, select.answer-select, .audio-controls select {
  min-height: 48px; background-color: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-control); padding: 11px 13px; font-size: var(--text-base); color: var(--green);
}
.field input:hover, .field select:hover, .answer-select:hover, .text-answer:hover { border-color: var(--green); }
select:not([multiple]) { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23173e32' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input::placeholder { color: #647065; opacity: 1; }
.results-bar { margin: 16px 0 23px; font-size: var(--text-sm); }
.clear-filters { font-size: var(--text-sm); min-height: 44px; padding-inline: 4px; text-underline-offset: 5px; }
.clear-filters:hover { color: var(--gold); }
.active-route { background: var(--green-light); border-radius: var(--radius); font-size: var(--text-sm); }
.empty { background: transparent; border-radius: var(--radius); }

/* Exam desk: flat paper panels and a concise two-column reading list */
.exam-body { padding-bottom: var(--space-8); }
.exam-grid { gap: 32px; margin: 35px 0 50px; }
.exam-card { background: transparent; border: 0; border-top: 2px solid var(--green); border-bottom: 1px solid var(--line); border-radius: 0; padding: 23px 0 25px; }
.exam-card .level { align-self: flex-start; }
.exam-card h2 { font-size: 2.05rem; margin: 16px 0 8px; line-height: 1.12; }
.exam-card .exam-subtitle { font-size: var(--text-xs); color: var(--muted); flex: none; margin-bottom: 15px; }
.exam-card p { font-size: var(--text-base); line-height: 1.65; margin-bottom: 20px; max-width: 36ch; }
.round-link { width: 44px; height: 44px; display: grid; place-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--green); text-decoration: none; font-size: 1.3rem; margin-top: auto; }
.round-link:hover { background: var(--green); color: var(--paper); border-color: var(--green); }
.exam-body .card-grid { grid-template-columns: 1fr 1fr; gap: 26px 35px; }
.exam-body .lesson-card { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 20px; padding-bottom: 20px; }
.exam-body .card-visual { aspect-ratio: 4/3; margin-top: 4px; }
.exam-body .card-body { padding: 0; }
.exam-body .card-body h3 { font-size: 1.4rem; margin: 7px 0 10px; }
.exam-body .card-body>p, .exam-body .card-bottom, .exam-body .catalogue-id { display: none; }
.exam-body .card-meta { margin-top: auto; }
.exam-note { border-left: 1px solid var(--gold); margin: 32px 0 0; padding: 3px 0 3px 19px; color: var(--muted); font-size: var(--text-sm); line-height: 1.7; }

/* Study pages: comfort first, quieter framing, clear feedback */
.breadcrumb { padding-top: 25px; font-size: var(--text-sm); }
.lesson-heading.with-art { max-width: none; display: grid; grid-template-columns: 1.5fr 1fr; gap: 45px; align-items: center; margin-bottom: 27px; padding: 28px 0 35px; border-bottom: 1px solid var(--line); }
.lesson-heading-copy { min-width: 0; }
.lesson-heading.with-art h1 { font-size: clamp(2.4rem, 4vw, 3.65rem); line-height: 1.06; margin: 14px 0 19px; }
.lesson-heading .lead { font-size: var(--text-base); max-width: 61ch; line-height: 1.75; margin-top: 16px; }
.lesson-heading .card-meta { font-size: var(--text-sm); gap: 9px; }
.lesson-heading .level { font-size: var(--text-xs); }
.lesson-heading-image { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); filter: var(--image-grade); }
.lesson-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 48px; }
.learning-block { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 16px 0 32px; margin-bottom: 20px; border-radius: 0; }
.learning-block h2 { font-size: 2rem; margin-bottom: 22px; }
.learning-block h3 { font-size: 1.45rem; margin: 24px 0 9px; }
.learning-block p { max-width: var(--reading-width); }
.learning-block p+p { margin-top: 17px; }
.objective { background: var(--green-light); border-left: 2px solid var(--green); border-radius: 0; padding: 20px 24px; margin-bottom: 20px; }
.objective p { max-width: var(--reading-width); }
.reading-text { font: 400 1.25rem/1.7 var(--serif); max-width: 66ch; }
.side-card { background: transparent; padding: 18px 0 24px; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; margin-bottom: 18px; }
.side-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.side-card p, .side-card a { font-size: var(--text-sm); }
.side-card a { min-height: 44px; padding-block: 9px; }
.side-card a:hover { color: var(--gold); }
.teacher-note { line-height: 1.7; padding: 18px 0; }
.exercise { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px 30px; margin: 24px 0; box-shadow: none; }
.exercise h3 { font: 600 var(--text-xs)/1.5 var(--sans); color: var(--gold); letter-spacing: .09em; margin-bottom: 15px; }
.exercise .prompt { font-size: var(--text-base); line-height: 1.75; max-width: var(--reading-width); }
.exercise legend { font-size: var(--text-sm); font-weight: 600; }
.option { background: transparent; border-color: var(--line); border-radius: var(--radius); padding: 13px 15px; font-size: var(--text-base); }
.option:hover { border-color: var(--line-strong); background: var(--paper); }
.option:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.option input { margin-top: 5px; }
.text-answer { border-color: var(--line-strong); background: #fffefa; border-radius: var(--radius-control); padding: 12px 14px; }
.exercise-actions { gap: 9px; }
.exercise-actions .button { font-size: var(--text-sm); padding: 9px 16px; min-height: 44px; }
.feedback { background: var(--caution); border-left: 2px solid var(--gold); font-size: var(--text-base); line-height: 1.7; }
.feedback.correct { background: var(--positive); border-color: var(--green); }
.model-answer { font-size: var(--text-base); }
.model-answer summary { font-size: var(--text-sm); font-weight: 600; }
.model-answer .sample { background: var(--green-light); padding: 20px; line-height: 1.8; }
.useful-language { background: var(--wash); font-size: var(--text-sm); padding: 16px 20px; }
.checklist label { min-height: 44px; font-size: var(--text-base); line-height: 1.65; }
.checklist input { margin-top: 5px; width: 18px; height: 18px; }
.match-row label, .order-item .order-text { font-size: var(--text-base); }
.order-item { background: var(--paper); border-radius: var(--radius); }
.order-controls button { min-width: 44px; min-height: 44px; border-radius: var(--radius); }
.audio-controls { gap: 14px; }
.audio-controls label { font-size: var(--text-sm); }
.task-visual { margin: 0 0 26px; }
.task-visual img { width: 100%; border-radius: var(--radius); }
.task-visual figcaption { font-size: var(--text-sm); color: var(--muted); margin-top: 10px; line-height: 1.6; }
.extension { padding-top: 28px; }
.extension h2 { font-size: 1.875rem; }

/* Institute: a small amount of ceremony, spacious editorial text */
.institute-body { padding-bottom: var(--space-8); }
.institute-intro { display: grid; grid-template-columns: 1fr 1.35fr .45fr; align-items: center; gap: 40px; margin: 42px 0 20px; }
.institute-intro h2 { font-size: 2.5rem; line-height: 1.12; margin-top: 14px; }
.institute-intro p { font-size: var(--text-base); line-height: 1.8; }
.institute-intro p+p { margin-top: 17px; }
.institute-intro>img { width: 100%; height: 180px; object-fit: contain; opacity: .75; }
.ornament-divider { width: 170px; height: 40px; object-fit: contain; margin: 12px auto 29px; opacity: .57; }
.charter { padding: 33px 37px; border-radius: var(--radius); background: var(--green-deep); gap: 45px; margin-bottom: 48px; }
.charter h2 { font-size: 2.65rem; }
.charter p { font-size: var(--text-base); }
.charter .small { font-size: var(--text-sm); color: #d2dbc9; }
.portrait-grid { gap: 25px; margin-top: 25px; }
.portrait-card img { border-radius: var(--radius); box-shadow: none; filter: saturate(.8); }
.portrait-card h3 { font-size: 1.4rem; }
.portrait-card p { font-size: var(--text-sm); line-height: 1.65; }
.archive-grid { gap: 28px; }
.archive-card { padding: 23px 0; gap: 24px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.archive-card img { width: 94px; }
.archive-card h3 { font-size: 1.625rem; }
.archive-card p, .archive-card a { font-size: var(--text-sm); }
.page-heading h1, .prose h1 { font-size: var(--title-lg); }
.prose { max-width: 850px; padding: 50px var(--gutter) var(--space-8); }
.prose h2 { font-size: 2rem; }
.coverage-stats div { background: transparent; border-top: 2px solid var(--green); border-bottom: 1px solid var(--line); padding: 22px 0; }
.coverage-stats strong { font-size: 2.75rem; }
.coverage table { font-size: var(--text-sm); }
.status-tag { border-radius: var(--radius); background: var(--wash); font-size: var(--text-xs); }

/* A recognisable, compact colophon instead of a corporate footer */
.site-footer { max-width: var(--width); padding: 35px var(--gutter) 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; border-top: 1px solid var(--line-strong); font-size: var(--text-sm); }
.site-footer .footer-identity { display: block; }
.footer-brand { display: flex; align-items: center; gap: 12px; font: 400 27px/1 var(--serif); letter-spacing: .04em; }
.footer-brand img { width: 43px; height: 49px; object-fit: cover; }
.footer-brand>span { display: block; font: inherit; color: var(--green); margin: 0; }
.footer-brand small { display: block; font: var(--text-xs)/1.5 var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 5px; text-align: left; }
.footer-motto { font: italic 1.125rem/1.4 var(--serif); color: var(--gold); margin: 14px 0 0 55px; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 23px; max-width: 470px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: var(--text-sm); }
.footer-links a:hover { color: var(--gold); }
.site-footer .footer-note { text-align: left; font: italic 1.125rem/1.4 var(--serif); color: var(--muted); }
.site-footer .footer-smallprint { text-align: right; align-self: center; font-size: var(--text-xs); line-height: 1.6; }

/* Tablet: same reading hierarchy, fewer columns */
@media (min-width: 1600px) {
  .banner-content { padding-left: 208px; }
  .banner-home .banner-content { padding-right: 208px; }
}
@media (max-width: 1100px) {
  .site-header { gap: 22px; }
  .site-header nav { gap: 22px; }
  .brand strong { font-size: 28px; }
  .brand small { max-width: 225px; }
  .banner-home .banner-content { margin-left: 49%; width: 51%; padding-left: 20px; }
  .banner-home h1 { font-size: 3.65rem; }
  .banner-description { max-width: 35ch; }
  .banner-institute .banner-content { width: 65%; }
  .practice-card { padding-inline: 10px; }
  .practice-card h3 { font-size: 1.3rem; }
  .institute-intro { grid-template-columns: .85fr 1.3fr; gap: 32px; }
  .institute-intro>img { display: none; }
  .lesson-layout { gap: 30px; grid-template-columns: minmax(0,1fr) 215px; }
  .exam-body .lesson-card { grid-template-columns: 110px minmax(0,1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .site-header { min-height: 80px; gap: 18px; flex-wrap: nowrap; }
  .brand-crest { width: 37px; height: 46px; }
  .brand small { display: none; }
  .site-header nav { gap: 21px; }
  .site-header nav a { font-size: var(--text-sm); }
  .search-link { padding-left: 10px; }
  .banner-content { width: 62%; padding-block: 30px; }
  .banner-home { min-height: 390px; }
  .banner-home .banner-content { margin-left: 44%; width: 56%; padding: 29px var(--gutter) 30px 20px; }
  .banner-home h1 { font-size: 3.5rem; }
  .banner-home .eyebrow { max-width: 250px; }
  .banner-home .hero-actions { gap: 10px; }
  .banner-home .banner-description { max-width: 30ch; }
  .banner-learn .banner-content { width: 62%; }
  .banner-learn .banner-image { width: 76%; object-fit: cover; object-position: right top; }
  .banner-learn:before { background: linear-gradient(90deg, var(--paper) 15%, rgb(245 242 233 / 92%) 38%, transparent 83%); }
  .banner-exam .banner-image { width: 85%; object-fit: cover; object-position: right center; }
  .banner-exam .banner-content { width: 64%; }
  .banner-institute .banner-content { width: 66%; }
  .banner-institute h1 { font-size: 2.8rem; }
  .practice-card { min-height: 178px; padding-inline: 8px; }
  .practice-card img { width: 86px; height: 80px; }
  .practice-card h3 { font-size: 1.22rem; }
  .practice-card p { font-size: var(--text-xs); }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 26px; }
  .filters { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .filters .field:first-child { grid-column: 1/-1; }
  .exam-grid { gap: 23px; }
  .exam-card h2 { font-size: 1.75rem; }
  .exam-card p { font-size: var(--text-sm); }
  .exam-body .card-grid { grid-template-columns: 1fr; }
  .exam-body .lesson-card { grid-template-columns: 150px minmax(0,1fr); gap: 22px; }
  .lesson-heading.with-art { gap: 30px; grid-template-columns: 1.25fr 1fr; }
  .lesson-heading.with-art h1 { font-size: 2.65rem; }
  .lesson-layout { display: block; }
  .lesson-aside { grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 38px; }
  .portrait-grid { grid-template-columns: repeat(3,1fr); }
  .charter { grid-template-columns: 1fr; gap: 22px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .site-footer .footer-links { justify-content: flex-start; max-width: none; }
  .site-footer .footer-smallprint { text-align: left; }
}

/* Mobile is composed separately, without reducing learning text */
@media (max-width: 600px) {
  .site-header { min-height: 76px; padding: 13px 20px; gap: 8px; flex-wrap: wrap; }
  .brand { gap: 8px; min-width: 0; }
  .brand strong { font-size: 27px; letter-spacing: .025em; }
  .brand-crest { width: 34px; height: 45px; }
  .menu-button { display: flex; gap: 7px; margin-left: auto; padding: 0; justify-content: center; }
  .menu-label { display: none; }
  .search-link { padding: 0; border: 0; min-width: 40px; margin: 0; }
  .site-header nav { display: none; flex-basis: 100%; margin: 8px 0 0; padding: 8px 0 1px; border-top: 1px solid var(--line); gap: 14px; }
  .site-header nav.open { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .site-header nav a { font-size: var(--text-sm); padding: 12px 0; }
  .section-banner { display: block; min-height: 0; }
  .banner-content, .banner-learn .banner-content, .banner-exam .banner-content, .banner-institute .banner-content { width: 100%; padding: 29px var(--gutter) 32px; max-width: none; }
  .banner-content h1 { font-size: var(--title-lg); margin: 11px 0 16px; }
  .banner-description { font-size: var(--text-base); line-height: 1.65; max-width: 34ch; }
  .banner-home { padding-top: 174px; background: var(--green-deep); }
  .banner-home .banner-image { height: 260px; object-position: 22% center; }
  .banner-home:before { background: linear-gradient(180deg, transparent 80px, rgb(17 45 37 / 28%) 152px, var(--green-deep) 260px); }
  .banner-home .banner-content { width: 100%; margin: 0; padding: 19px var(--gutter) 28px; background: linear-gradient(180deg, transparent, var(--green-deep) 32%); }
  .banner-home .eyebrow { max-width: none; font-size: var(--text-xs); letter-spacing: .1em; }
  .banner-home h1 { font-size: clamp(3rem, 10vw, 3.75rem); margin: 13px 0 17px; }
  .banner-home .banner-description { max-width: 37ch; }
  .banner-home .hero-actions { gap: 10px 20px; margin-top: 20px; }
  .banner-home .button { font-size: var(--text-sm); padding: 10px 19px; }
  .banner-footnote { font-size: var(--text-xs); margin-top: 16px; }
  .banner-learn { min-height: 230px; }
  .banner-learn .banner-image { width: 100%; mask-image: none; object-fit: cover; object-position: 74% top; opacity: .63; }
  .banner-learn:before { background: linear-gradient(90deg, var(--paper), rgb(245 242 233 / 78%) 57%, rgb(245 242 233 / 32%)); }
  .banner-learn .banner-description { max-width: 29ch; }
  .banner-exam { min-height: 252px; }
  .banner-exam .banner-image { width: 100%; mask-image: none; object-fit: cover; object-position: 75% center; opacity: .6; }
  .banner-exam:before { background: linear-gradient(90deg, var(--green-deep), rgb(17 45 37 / 78%) 52%, rgb(17 45 37 / 15%)); }
  .banner-exam .banner-description { max-width: 30ch; }
  .banner-institute { min-height: 320px; }
  .banner-institute .banner-image { width: 100%; mask-image: none; object-position: 72% center; opacity: .65; }
  .banner-institute:before { background: linear-gradient(90deg, var(--paper), rgb(245 242 233 / 91%) 42%, rgb(245 242 233 / 30%)); }
  .banner-institute h1 { font-size: 2.6rem; max-width: 16ch; }
  .banner-institute .banner-description { max-width: 32ch; }
  .banner-institute .hero-actions { gap: 10px; margin-top: 20px; }
  .hero-actions .button { font-size: var(--text-sm); padding: 10px 17px; }
  .practice-section { padding: 26px 0 28px; }
  .practice-section h2 { font-size: 1.9rem; max-width: 290px; }
  .practice-grid { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .practice-card { min-height: 178px; padding: 9px 12px 19px; border-bottom: 1px solid var(--line); }
  .practice-card + .practice-card { border-left: 0; }
  .practice-card:nth-child(even) { border-left: 1px solid var(--line); }
  .practice-card img { width: 97px; height: 83px; }
  .practice-card h3 { font-size: 1.45rem; }
  .practice-card p { font-size: var(--text-sm); max-width: 160px; }
  .practice-card:last-child { grid-column: 1/-1; display: grid; grid-template-columns: 95px 1fr; grid-template-rows: auto auto; gap: 0 19px; text-align: left; min-height: 118px; padding: 12px 17px; }
  .practice-card:last-child img { grid-column: 1; grid-row: 1/3; margin: 0; }
  .practice-card:last-child h3 { grid-column: 2; align-self: end; }
  .practice-card:last-child p { grid-column: 2; align-self: start; max-width: none; margin-top: 5px; }
  .latest-section { padding-top: 0; }
  .section-heading { gap: 15px; margin-bottom: 23px; align-items: end; }
  .section-heading h2 { font-size: 2rem; }
  .section-heading .eyebrow { font-size: var(--text-xs); }
  .text-link { white-space: normal; font-size: var(--text-sm); text-align: right; line-height: 1.5; }
  .card-grid { grid-template-columns: 1fr; gap: 31px; }
  .card-visual { aspect-ratio: 16/9; }
  .card-body { padding: 16px 0 15px; }
  .card-body h3 { font-size: 1.8rem; margin: 10px 0; }
  .card-body p { font-size: var(--text-base); line-height: 1.65; margin-bottom: 16px; }
  .card-meta { font-size: var(--text-sm); }
  .card-bottom { font-size: var(--text-xs); }
  .library { padding-top: 24px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 0 0 20px; gap: 15px 13px; }
  .filters .field:last-child { grid-column: 1/-1; }
  .results-bar { font-size: var(--text-sm); margin: 12px 0 20px; }
  .field input, .field select { font-size: var(--text-base); }
  .exam-grid { grid-template-columns: 1fr; gap: 26px; margin: 28px 0 42px; }
  .exam-card { padding: 22px 0; display: grid; grid-template-columns: 1fr 44px; gap: 0 16px; }
  .exam-card .level, .exam-card h2, .exam-card p { grid-column: 1; }
  .exam-card .level { justify-self: start; }
  .exam-card h2 { font-size: 2.15rem; margin-top: 13px; }
  .exam-card p { font-size: var(--text-base); margin-bottom: 15px; }
  .exam-card .exam-subtitle { font-size: var(--text-xs); }
  .exam-card .round-link { grid-column: 2; grid-row: 2/5; align-self: end; margin: 0 0 15px; }
  .exam-body .lesson-card { grid-template-columns: 95px minmax(0,1fr); gap: 16px; padding-bottom: 22px; }
  .exam-body .card-visual { aspect-ratio: 1; }
  .exam-body .card-body h3 { font-size: 1.45rem; }
  .exam-body .catalogue-kicker { font-size: var(--text-xs); letter-spacing: .04em; }
  .exam-body .card-meta { font-size: var(--text-xs); gap: 6px; }
  .exam-note { margin-top: 27px; padding-left: 15px; }
  .lesson-heading.with-art { display: flex; flex-direction: column; align-items: stretch; gap: 23px; margin-bottom: 20px; padding: 22px 0 28px; }
  .lesson-heading.with-art h1 { font-size: 2.7rem; }
  .lesson-heading .lead { font-size: var(--text-base); }
  .lesson-heading-image { aspect-ratio: 16/9; max-height: 230px; }
  .lesson-heading .card-meta { font-size: var(--text-sm); }
  .learning-block { padding-top: 10px; padding-bottom: 27px; }
  .learning-block h2 { font-size: 1.9rem; }
  .learning-block h3 { font-size: 1.5rem; }
  .objective { padding: 18px 20px; }
  .reading-text { font-size: 1.2rem; line-height: 1.75; }
  .exercise { padding: 23px 19px; margin: 23px 0; }
  .exercise-actions { gap: 8px; }
  .exercise-actions .button { font-size: var(--text-sm); padding: 10px 14px; }
  .exercise .prompt, .option, .match-row label { font-size: var(--text-base); }
  .option { padding: 12px; }
  .model-answer .sample { padding: 17px; }
  .order-item { padding: 10px; gap: 9px; }
  .order-item .order-text { font-size: var(--text-base)!important; }
  .order-controls button { width: 44px; height: 44px; }
  .lesson-aside { grid-template-columns: 1fr; gap: 0; }
  .task-visual figcaption { font-size: var(--text-sm); }
  .institute-intro { grid-template-columns: 1fr; gap: 24px; margin: 30px 0 16px; }
  .institute-intro h2 { font-size: 2.25rem; }
  .institute-intro>img { display: block; width: 150px; height: 80px; margin: 0 auto; }
  .ornament-divider { width: 130px; height: 32px; margin: 5px auto 25px; }
  .charter { padding: 26px 24px; gap: 23px; margin-bottom: 35px; }
  .charter h2 { font-size: 2.5rem; }
  .portrait-grid { grid-template-columns: 1fr 1fr; gap: 26px 17px; margin-bottom: 35px; }
  .portrait-card h3 { font-size: 1.35rem; }
  .portrait-card p { font-size: var(--text-sm); }
  .archive-grid { grid-template-columns: 1fr; gap: 10px; }
  .archive-card { padding: 23px 0; gap: 20px; }
  .archive-card img { width: 78px; }
  .archive-card h3 { font-size: 1.5rem; }
  .site-footer { padding: 29px var(--gutter) 26px; gap: 21px; }
  .footer-brand { font-size: 27px; }
  .footer-brand img { width: 39px; height: 45px; }
  .footer-brand small { max-width: 210px; font-size: var(--text-xs); line-height: 1.5; }
  .footer-motto { margin-left: 51px; }
  .site-footer .footer-links { gap: 3px 20px; }
  .site-footer .footer-note { font-size: 1.125rem; max-width: 32ch; }
  .site-footer .footer-smallprint { font-size: var(--text-xs); }
  .prose { padding-top: 35px; }
  .coverage table { font-size: var(--text-sm); }
}
@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .site-header { padding-inline: 16px; gap: 5px; }
  .brand strong { font-size: 25px; }
  .brand-crest { width: 30px; height: 42px; }
  .brand { gap: 7px; }
  .menu-button, .search-link { min-width: 40px; }
  .site-header nav { gap: 8px; }
  .banner-home h1 { font-size: 3rem; }
  .banner-home .hero-actions { gap: 8px 15px; }
  .banner-home .button { padding-inline: 16px; }
  .practice-card { padding-inline: 7px; }
  .practice-card h3 { font-size: 1.3rem; }
  .practice-card:last-child { grid-template-columns: 78px 1fr; gap: 0 12px; }
  .practice-card:last-child img { width: 78px; }
  .exam-body .lesson-card { grid-template-columns: 78px minmax(0,1fr); gap: 13px; }
  .exam-body .card-body h3 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none!important; animation: none!important; }
}
@media (forced-colors: active) {
  select:not([multiple]) { appearance: auto; background-image: none; }
  .button, .option, .level { border: 1px solid ButtonText; }
}
@media print {
  .section-banner { display: block; min-height: 0; padding: 0; background: white!important; }
  .banner-image, .section-banner:before, .card-visual, .lesson-heading-image,
  .institute-intro>img, .ornament-divider { display: none!important; }
  .banner-content, .banner-home .banner-content { width: 100%; margin: 0; padding: 10px 0; color: black; }
  .banner-content h1 { color: black; }
  .lesson-heading.with-art { display: block; }
  .charter { background: white; color: black; border: 1px solid #aaa; }
  .charter h2 { color: black; }
  .learning-block, .exercise, .objective { padding: 15px; background: white; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-body h3 a:after { display: none; }
}
