/*
 * GCCEI 2.0.0, after the Academy home proposal ("Proposta leggera", 21 October
 * 2026): a sand page, forest-green headings and bands, an amber accent line,
 * terracotta link lines, Special Gothic Expanded One headings over Didact
 * Gothic text, a white header, the hero photo with the opening message in a
 * green band beneath, photo-and-text sections side by side, sliding rows of
 * article cards and a dark green footer. The home page values are the
 * proposal's own; article, hub and search pages follow the same palette.
 *
 * Colours and fonts come from the theme settings as --ink, --text, --paper,
 * --band, --accent, --link-line, --footer-bg, --footer-text, --footer-muted,
 * --heading-font and --body-font (layout.blade.php).
 */

:root {
    --ink: #3e4a2a;
    --text: #232a17;
    --paper: #f7f3ea;
    --band: #efe8dc;
    --accent: #b9c27f;
    --link-line: #a8401b;
    --footer-bg: #222915;
    --footer-text: #fff;
    --footer-muted: #d5dac6;
    --heading-font: "Special Gothic Expanded One", "Arial Black", system-ui, sans-serif;
    --body-font: "Didact Gothic", system-ui, sans-serif;
    /* Fixed parts of the design's palette. */
    --muted: #4d5640;
    --card: #fbf7f0;
    --line: #d2c7b6;
    --on-dark: #f4efe4;
    --on-dark-muted: #d5dac6;
    --focus: #7d8a3f;
    --gutter: clamp(16px, 4vw, 64px);
    --col: 1112px;
    --reading: 46rem;
    --label: .875rem;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 18px/1.6 var(--body-font);
    font-synthesis: none;
    overflow-wrap: break-word;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 400; line-height: 1.25; text-wrap: balance; color: var(--ink); }
main { display: block; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--ink); padding: 8px 14px; font: 400 14px var(--body-font); }
.skip-link:focus { left: 8px; top: 8px; }
.notice { max-width: var(--reading); margin: 1.5rem auto; padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--card); font-size: var(--label); }

/* The design's links: a terracotta line under the words and an arrow after them. */
.read-more, .secondary-link a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--link-line);
    color: var(--ink);
    font: 400 15px var(--body-font);
    text-decoration: none;
}
.read-more:hover, .secondary-link a:hover { border-bottom-color: var(--ink); }
.read-more::after, .secondary-link a::after { content: "→"; }
.secondary-link { margin: 0; }

/* Buttons: amber, set in the heading font (the design's Explore Insights and Close). */
.button, .cta-row .read-more {
    padding: 13px 22px;
    border: 0;
    border-radius: 2px;
    background: var(--accent);
    color: var(--ink);
    font: 400 13px var(--heading-font);
    letter-spacing: .02em;
    text-decoration: none;
}
.button { display: inline-block; }
.button:hover, .cta-row .read-more:hover { background: color-mix(in srgb, var(--accent) 75%, #fff); }
.cta-row { margin-top: 24px; }
.cta-row .read-more::after { content: none; }
.text-button { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.text-button:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.hero-shell { position: relative; background: var(--paper); }
.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: clamp(.85rem, 1.25vw, 1.6rem) 4.5vw;
    color: var(--ink);
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.brand { --logo-width: clamp(12rem, 17vw, 19rem); display: block; flex-shrink: 0; width: var(--logo-width); max-width: calc(100% - 5rem); margin-right: auto; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; position: relative; width: 100%; }
.brand-logo img { width: 100%; height: auto; }
/* The lockup: the logo without its small words, the name set under the letters. */
.brand-logo.has-words { aspect-ratio: 1831 / 365; }
.brand-logo.has-words img { position: absolute; top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 100% 79%, 22.4% 79%, 22.4% 90%, 0 90%); }
/* In one colour (as the design): the logo's shape filled with the headings colour; the image stays for its description. */
.brand-logo.is-one-colour { aspect-ratio: 1831 / 446; }
.brand-logo.is-one-colour.has-words { aspect-ratio: 1831 / 365; }
.brand-logo.is-one-colour::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    aspect-ratio: 1831 / 446;
    background: currentColor;
    -webkit-mask: var(--logo-mask) center / 100% 100% no-repeat;
    mask: var(--logo-mask) center / 100% 100% no-repeat;
}
.brand-logo.is-one-colour.has-words::before { clip-path: polygon(0 0, 100% 0, 100% 79%, 22.4% 79%, 22.4% 90%, 0 90%); }
.brand-logo.is-one-colour img { position: absolute; top: 0; left: 0; opacity: 0; }
.brand-name {
    display: flex;
    justify-content: space-between;
    gap: .3em;
    width: 77.6%;
    margin: .5rem 0 0 22.4%;
    font: 400 clamp(.6rem, .75vw, .74rem)/1.25 var(--body-font);
    white-space: nowrap;
}

.menu-toggle { display: none; flex-shrink: 0; margin-left: auto; padding: .55rem 1.1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 400 .9rem var(--body-font); user-select: none; -webkit-user-select: none; }
.main-nav { margin-left: auto; font: 400 .95rem var(--body-font); }
.nav-list { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(1rem, 1.65vw, 2.2rem); margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-label { display: flex; align-items: center; gap: .1rem; }
.nav-label > a, .nav-parent { display: inline-block; padding: .65rem 0; border: 0; border-bottom: 2px solid transparent; background: none; color: inherit; font: inherit; text-decoration: none; white-space: nowrap; }
.nav-label > a:hover, .nav-label > a[aria-current], .nav-parent:hover { border-bottom-color: var(--accent); }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; min-height: 2rem; padding: 0; border: 0; background: none; }
.submenu-toggle svg { transition: transform .15s; }
.nav-item.is-open .submenu-toggle svg { transform: rotate(180deg); }
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.6rem;
    z-index: 20;
    min-width: 17rem;
    max-width: min(24rem, 94vw);
    max-height: 70dvh;
    overflow-y: auto;
    margin: 0;
    padding: 1rem 1.6rem;
    list-style: none;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 10px 20px rgb(0 0 0 / .05);
}
.submenu li + li { margin-top: .3rem; }
.submenu a { display: block; padding: .35rem 0; line-height: 1.5; text-decoration: none; }
.submenu a:hover, .submenu a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.submenu.align-right { left: auto; right: 0; }
.nav-item.is-open > .submenu { display: block; }
@media (hover: hover) and (min-width: 76rem) {
    .nav-item.has-children:hover > .submenu { display: block; }
}
.search-link { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 44px; text-decoration: none; }
.search-link svg { width: 1.3rem; height: 1.3rem; }

/* Below wide screens the menu folds behind the round "Menu" button (only once the script is running). */
@media (max-width: 75.999rem) {
    .js .menu-toggle { display: block; }
    .js .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; max-height: 75dvh; overflow: auto; margin: 0; padding: .5rem 4.5vw 1.2rem; background: #fff; border-bottom: 1px solid var(--line); }
    .js .main-nav.open { display: block; }
    .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .js .nav-item { border-bottom: 1px solid var(--line); }
    .js .nav-label { justify-content: space-between; }
    .js .nav-label > a, .js .nav-parent { flex: 1; min-height: 44px; padding: .9rem 0; border-bottom: 0; white-space: normal; text-align: left; }
    .js .nav-label > a:hover, .js .nav-label > a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
    .js .search-link { justify-content: flex-start; }
    .js .submenu-toggle { width: 44px; min-height: 44px; }
    .js .submenu { position: static; min-width: 0; max-width: none; max-height: none; padding: 0 1rem .8rem; border: 0; box-shadow: none; }
    /* Without scripts the links simply wrap. */
    html:not(.js) .site-header { flex-wrap: wrap; }
    html:not(.js) .nav-list { flex-wrap: wrap; gap: .25rem 1.25rem; }
}

@media (max-width: 700px) {
    .site-header { padding: .8rem 4.5vw; }
    .brand { --logo-width: 100%; width: min(15rem, calc(100% - 5.5rem)); }
    .brand-name { font-size: .56rem; }
}

/* ---------- Search and cookie boxes ---------- */

dialog { position: fixed; max-width: min(calc(100vw - 32px), 34rem); width: 100%; max-height: 90vh; padding: 2.2rem; border: 0; border-radius: 4px; background: #fff; color: var(--text); font: 400 16px/1.6 var(--body-font); box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
dialog::backdrop { background: rgb(35 42 23 / .55); }
dialog h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.2; color: var(--ink); }
dialog p { margin-bottom: 12px; }
.search-dialog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.search-dialog-top .text-button { font-size: var(--label); }
.search-form label, .inline-form label { display: block; font-size: 1rem; }
.search-form-row { display: flex; gap: .75rem; align-items: stretch; margin: .75rem 0 .5rem; }
input[type="search"], input[type="text"], input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 1rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); }
.cookie-dialog .button { margin-top: 6px; }
.form-error { margin-top: .5rem; font-size: var(--label); }

/* ---------- Home: hero and opening message ---------- */

.hero { margin: 0; background: var(--paper); overflow: hidden; }
.hero img { width: 100%; object-fit: cover; object-position: 50% 45%; }
.hero.is-wide img { height: clamp(380px, 50vw, 600px); }
.hero.is-natural img { height: auto; }
.hero.is-tall img { height: min(85vh, 60rem); }
.hero.focus-top img { object-position: center top; }
.hero.focus-bottom img { object-position: center bottom; }
@media (max-width: 820px) {
    .hero.is-wide img, .hero.is-tall img { height: auto; aspect-ratio: 16 / 10; }
}

.hero-intro { background: var(--ink); border-top: 5px solid var(--accent); }
.hero-intro .msg { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 48px) max(var(--gutter), calc((100% - var(--col)) / 2)); color: var(--on-dark); }
.hero-intro h1, .hero-intro h2 { margin: 0; color: var(--on-dark); font-size: clamp(24px, 3vw, 38px); }
.hero-intro p { color: var(--on-dark-muted); font-size: 17px; }

/* ---------- Home: sections ---------- */

.s { padding-block: clamp(56px, 7vw, 100px); }
.s > .wrapc { width: min(var(--col), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.bg-band, .bg-band-line { background: var(--band); }
.bg-band-line { border-top: 5px solid var(--accent); }
.bg-deep { background: var(--ink); border-top: 5px solid var(--accent); color: var(--on-dark); }
/* A part continues the section before it: no line of its own, the design's gap between them. */
.s.is-part { padding-top: 0; border-top: 0; }
[data-cms-section]:has(+ [data-cms-section] > .s.is-part) > .s { padding-bottom: clamp(56px, 7vw, 96px); }

.sec-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-heading { margin: 0; text-align: left; }
.section-heading h1, .section-heading h2, .section-heading h3 { font-size: clamp(22px, 2.4vw, 30px); }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.rev > figure { order: 2; }
.split figure { margin: 0; }
.split figure img { width: 100%; height: auto; border-radius: 2px; }
.split .txt { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split .txt h2:not(.section-heading *), .split .txt h3, .split .txt h4 { font-size: clamp(18px, 1.7vw, 22px); }
.split .txt p { color: var(--muted); }
.gap { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 820px) {
    .split, .split.rev { grid-template-columns: minmax(0, 1fr); }
    .split.rev > figure { order: 0; }
}

.rs-intro { display: flex; flex-direction: column; gap: 16px; max-width: var(--reading); margin-bottom: clamp(28px, 3.5vw, 44px); }
.rs-intro:last-child { margin-bottom: 0; }
.rs-intro p { color: var(--muted); }
.rs-intro h2, .rs-intro h3, .rs-intro h4 { font-size: clamp(18px, 1.7vw, 22px); }

.featured-insight { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.5vw, 40px); background: var(--ink); color: var(--on-dark); border-top: 5px solid var(--accent); }
.featured-insight h2, .featured-insight h3, .featured-insight h4 { font-size: 1.17em; }
.featured-insight h2, .featured-insight h3, .featured-insight h4, .featured-insight a:not(.read-more) { color: var(--on-dark); text-decoration: none; }
.featured-insight h2 a:hover, .featured-insight h3 a:hover, .featured-insight h4 a:hover { text-decoration: underline; }
.featured-insight p { color: var(--on-dark-muted); }
.featured-insight .read-more { color: var(--on-dark); border-bottom-color: var(--accent); }

/* The green band (the design's Publications and Library). */
.pub { display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.pub h1, .pub h2, .pub h3, .pub h4 { color: var(--on-dark); }
.pub .section-heading h1, .pub .section-heading h2, .pub .section-heading h3 { font-size: clamp(22px, 2.4vw, 30px); }
.pub p { color: var(--on-dark); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; }
.pub .read-more, .pub .secondary-link a { color: var(--on-dark); border-bottom-color: var(--accent); }
.bg-deep .rs-intro p, .bg-deep .split .txt p { color: var(--on-dark-muted); }
.bg-deep .section-heading h1, .bg-deep .section-heading h2, .bg-deep .section-heading h3, .bg-deep .txt h3, .bg-deep .rs-intro h3 { color: var(--on-dark); }
.bg-deep .read-more, .bg-deep .secondary-link a { color: var(--on-dark); border-bottom-color: var(--accent); }

/* Article cards: one row that slides sideways, about three and a bit in view. */
.s .card-grid, .s .research-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ink) var(--line);
    margin: 0;
}
.s .card-grid.gap, .s .research-grid.gap { margin-top: clamp(56px, 7vw, 96px); }
.s .card-grid::-webkit-scrollbar, .s .research-grid::-webkit-scrollbar { height: 8px; }
.s .card-grid::-webkit-scrollbar-track, .s .research-grid::-webkit-scrollbar-track { background: var(--line); border-radius: 4px; }
.s .card-grid::-webkit-scrollbar-thumb, .s .research-grid::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 4px; }
.s .card-grid > .intro, .s .research-grid > .intro { flex: 0 0 calc((100% - 60px) / 3.2); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1000px) { .s .card-grid > .intro, .s .research-grid > .intro { flex-basis: calc((100% - 20px) / 2.2); } }
@media (max-width: 700px) { .s .card-grid > .intro, .s .research-grid > .intro { flex-basis: 84%; } }

.intro { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.intro h2, .intro h3, .intro h4 { font-size: clamp(16px, 1.35vw, 19px); }
.intro h2 a, .intro h3 a, .intro h4 a { text-decoration: none; }
.intro h2 a:hover, .intro h3 a:hover, .intro h4 a:hover { text-decoration: underline; }
.intro p { flex: 1; color: var(--muted); font-size: 16px; }
.intro .kicker, .intro .intro-subtitle { flex: none; }
.research-grid > .intro { background: var(--ink); color: var(--on-dark); border: 0; }
.research-grid > .intro h2, .research-grid > .intro h3, .research-grid > .intro h4 { color: var(--on-dark); }
.research-grid > .intro p { color: var(--on-dark-muted); }
.research-grid > .intro .read-more { color: var(--on-dark); border-bottom-color: var(--accent); }
.kicker { font-size: var(--label); color: var(--muted); }

/* ---------- Reading pages ---------- */

.reading { max-width: 52rem; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 100px); box-sizing: content-box; }
.reading.is-wide { max-width: var(--col); }
.reading h1 { margin: 1.2rem 0 2rem; font-size: clamp(26px, 3.2vw, 40px); }
.breadcrumb { font-size: .875rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 .3rem; }
.standfirst { margin-bottom: 1.6rem; font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); }
.entry-subtitle { margin: -1.2rem 0 1.6rem; font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); }
.reading > .photo, .landing-photo { margin: 2rem 0 3rem; }
.reading > .photo img { border-radius: 2px; }
.landing-photo { width: min(var(--col), calc(100% - 2 * var(--gutter))); margin: clamp(32px, 5vw, 64px) auto 0; }
.landing-photo img { width: 100%; max-height: 70vh; object-fit: cover; border-radius: 2px; }
.photo figcaption, .prose-body figcaption { margin-top: .75rem; font-size: var(--label); line-height: 1.5; color: var(--muted); }
.prose-body a { text-decoration-color: var(--link-line); text-decoration-thickness: 2px; }
.prose-body a:hover { text-decoration-color: var(--ink); }
.prose-body h2 { margin: 3rem 0 1.1rem; font-size: clamp(20px, 2vw, 26px); }
.prose-body h3 { margin: 2.2rem 0 .9rem; font-size: clamp(18px, 1.7vw, 22px); }
.prose-body h4 { margin: 2rem 0 .8rem; font-size: 1.05rem; }
.prose-body p { margin: 0 0 1.2rem; }
.prose-body ul, .prose-body ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose-body li { margin-bottom: .7rem; }
.prose-body blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose-body figure { margin: 2.5rem 0; }
.prose-body hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }
.prose-body table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: 1rem; }
.prose-body th, .prose-body td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose-body th { font-family: var(--heading-font); font-weight: 400; font-size: .85rem; color: var(--ink); }
.prose-body .card-grid, .prose-body .card-list { margin-top: 1.5rem; }
.prose-body img { margin: 0 auto; border-radius: 2px; }
.prose-body strong, .prose-body b { color: var(--ink); }

/* GCC Core panels, facts and labels. */
.facts { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0 0 1.6rem; padding: 0; list-style: none; font-size: var(--label); color: var(--muted); }
.facts span { margin-right: .35rem; color: var(--ink); }
.panel { margin: 2rem 0; padding: 1.5rem 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.panel h2, .vocabulary h2, .downloads h2, .citation h2, .revision-history h2, .related h2 { margin: 0 0 .8rem; font-size: clamp(18px, 1.7vw, 22px); }
.panel p, .panel li { font-size: 1rem; }
.panel ul { margin: 0; padding-left: 1.2rem; }
.panel--conclusion { background: var(--ink); color: var(--on-dark); border: 0; border-top: 5px solid var(--accent); border-radius: 0; }
.panel--conclusion h2 { color: var(--on-dark); }
.vocabulary, .downloads, .citation, .revision-history, .related { margin: 3rem 0; }
.vocabulary dl { margin: 0; }
.vocabulary dl > div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.vocabulary dt { color: var(--ink); font-family: var(--heading-font); font-size: .9rem; }
.vocabulary dd { margin: 0; font-size: 1rem; }
.downloads ul, .revision-history ul { margin: 0; padding-left: 1.2rem; }
.downloads-meta { display: block; font-size: var(--label); color: var(--muted); }
.pub-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 2rem; margin: 0 0 2rem; font-size: 1rem; }
.pub-meta dt { font-size: var(--label); color: var(--ink); }
.pub-meta dd { margin: 0; }
.labels { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 3rem 0 0; padding: 0; list-style: none; font-size: var(--label); }
.embed { margin: 2rem 0; }
.embed__more { margin-top: 2rem; font-size: 1rem; }

/* Listing pages, hubs and related items: the design's cards in two columns. */
.card-grid, .card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 2rem 0 0; }
.related .card-list { margin-top: 1.5rem; }
.hub-intro { max-width: var(--reading); color: var(--muted); }
.hub-intro p { margin-bottom: 1.2rem; }
.hub-intro h2 { margin: 2.4rem 0 .8rem; font-size: clamp(20px, 2vw, 26px); }
.hub-intro h3 { margin: 2rem 0 .6rem; font-size: clamp(18px, 1.7vw, 22px); }
.hub-intro ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.hub-intro strong { color: var(--ink); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 1.5rem; align-items: end; margin: 2.5rem 0 1rem; padding: 26px; background: var(--band); border-radius: 12px; }
.filters label { display: block; margin-bottom: .4rem; font-size: 1rem; }
.filters-search { grid-column: 1 / -1; }
.filters-check { display: flex; align-items: center; gap: .6rem; }
.filters-check input { width: auto; }
.filters-check label { margin: 0; font-size: var(--label); }
.filters-actions { display: flex; gap: 1.25rem; align-items: center; font-size: var(--label); }
.listing-status { margin: 1rem 0 0; font-size: var(--label); color: var(--muted); }
.empty { margin-top: 2rem; }
.result { margin: 2rem 0; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.result small { font-size: .875rem; color: var(--muted); }
.result h2 { margin: .2rem 0 .6rem; font-size: clamp(17px, 1.5vw, 20px); }
.result h2 a { text-decoration: none; }
.result h2 a:hover { text-decoration: underline; }
.result p { font-size: 1rem; color: var(--muted); }
.search-page-form { max-width: var(--reading); margin-bottom: 2rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 4rem; font-size: var(--label); }

/* ---------- Footer ---------- */

.site-footer { padding: 56px calc((100% - min(var(--col), 100% - 2 * var(--gutter))) / 2) 0; background: var(--footer-bg); color: var(--footer-muted); border-top: 5px solid var(--accent); font: 400 15px/1.6 var(--body-font); }
.site-footer a, .site-footer .text-button { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer .text-button:hover { color: var(--footer-text); text-decoration: underline; }
.footer-identity { margin-bottom: 40px; }
.footer-name { margin-bottom: 8px; font: 400 17px var(--heading-font); color: var(--footer-text); }
.footer-name a:hover { text-decoration: none; }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-columns h2 { margin: 0 0 14px; font: 400 12px var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--footer-text); }
.footer-columns nav > a { display: block; margin: .55rem 0; }
.region-footer { margin-top: 40px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 20px 0 max(20px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid color-mix(in srgb, var(--footer-text) 20%, transparent); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Narrow screens ---------- */

@media (max-width: 820px) {
    .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .card-grid, .card-list, .related .card-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .reading h1 { overflow-wrap: anywhere; }
    .prose-body table { display: block; max-width: 100%; overflow-x: auto; }
    .search-form-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .submenu-toggle svg { transition: none; }
}

@media print {
    .site-header, .site-footer, .menu-toggle, .search-dialog, .cookie-dialog { display: none; }
}
