/* =========================================================================
   Site stylesheet — design tokens and components carried over from
   legacy/assets/css/styles.css. Mobile-first; breakpoints 768 / 1024 / 1280.
   ========================================================================= */

/* ---------- 0. Fonts (SIL OFL 1.1, self-hosted — see assets/fonts/) ----------
   Inter for headings and text, split with unicode-range so the browser only
   downloads what a page uses. cyrillic and latin come after their -ext subsets:
   the last face declared wins for overlapping code points, and ґ (U+0491) is in both. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-cyrillic-wght-italic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
/* Arial scaled to Inter's metrics, so the swap to the web font does not shift the layout */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Roboto"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%; }

/* ---------- 1. Tokens ---------- */
:root {
  --c-bg: #F8F7F3;
  --c-paper: #FFFFFF;
  --c-sand: #EFECE4;
  --c-sand-2: #E9E5DA;
  --c-ink: #202321;
  --c-ink-2: #3A3E3B;
  --c-muted: #5C615D;
  --c-line: #E5E3DC;
  --c-line-strong: #CFCBBF;
  --c-green: #244C3A;
  --c-green-2: #1B3A2C;
  --c-green-tint: #E6EDE8;
  --c-terra: #C8795A;
  --c-terra-ink: #A0553A;
  --c-terra-tint: #F6E9E2;
  --c-warn-bg: #FBF3E4;
  --c-warn-line: #E8CF9F;
  --c-focus: #A0553A;

  --f-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-head: var(--f-sans);

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --fs-3xl: clamp(1.875rem, 1.4rem + 2.4vw, 3.25rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --shadow-md: 0 6px 24px -10px rgba(32, 35, 33, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(32, 35, 33, 0.35);

  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-reveal: 0.6s;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--f-sans); font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 300; background: var(--c-ink); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: var(--s-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--s-7); }
.section--tight { padding-block: var(--s-6); }
.section--sand { background: var(--c-sand); }
.section--green { background: var(--c-green); color: #F1EFE8; }

/* ---------- 4. Typography helpers ---------- */
.kicker { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-terra-ink); }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.lede { font-size: var(--fs-md); line-height: 1.55; color: var(--c-ink-2); max-width: 62ch; margin-top: var(--s-4); }
.meta { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--fs-sm); color: var(--c-muted); margin-top: var(--s-5); }
.meta li { display: inline-flex; align-items: center; gap: 0.35em; }
.meta li + li::before { content: "·"; margin-right: var(--s-2); color: var(--c-line-strong); }
.meta a { color: var(--c-ink-2); }
.meta__reviewed { color: var(--c-green); font-weight: 600; }
.section-title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-xl); margin-bottom: var(--s-4); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; font-size: var(--fs-sm); color: var(--c-green); text-decoration: none; border-bottom: 1px solid transparent; }
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }
.section--green .link-arrow { color: #fff; }

/* ---------- 5. Icons, buttons, inputs ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; stroke-width: 1.4; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-out); }
.btn--primary { background: var(--c-green); color: #fff; }
.btn--primary:hover { background: var(--c-green-2); }
.btn--accent { background: var(--c-terra-ink); color: #fff; }
.btn--accent:hover { background: #8A4630; }
.btn--ghost { background: transparent; border-color: var(--c-line-strong); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-ink); }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); }
.btn.is-active { background: var(--c-green-tint); border-color: var(--c-green); color: var(--c-green); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-paper); }
.input { width: 100%; min-height: 46px; padding: 0 var(--s-4); background: var(--c-paper); border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); }
.input::placeholder { color: #767A75; }
.input:focus { border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(36, 76, 58, 0.15); outline: none; }
select.input { appearance: none; padding-right: 2.25rem; 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 1l5 5 5-5' fill='none' stroke='%23202321' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.field-label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-2); color: var(--c-muted); }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--c-line-strong); border-radius: 999px; background: var(--c-paper); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--c-ink); }
.chip--link:hover, .chip--btn:hover { border-color: var(--c-green); color: var(--c-green); }
.chip__count { color: var(--c-muted); font-size: var(--fs-xs); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.chip { position: relative; cursor: pointer; }
label.chip:has(input:checked) { background: var(--c-green); border-color: var(--c-green); color: #fff; }
label.chip:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* ---------- 6. Badges & callouts ---------- */
.badge { display: inline-flex; align-items: center; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--c-sand); color: var(--c-ink-2); line-height: 1.4; }
.badge--sponsored { background: var(--c-terra-tint); color: #8A4630; }
.badge--official { background: var(--c-green-tint); color: var(--c-green); }
.badge--verified { background: var(--c-green); color: #fff; }
.badge--sample { background: transparent; border: 1px dashed var(--c-line-strong); color: var(--c-muted); }
.verify-flag { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 0 6px; border: 1px solid var(--c-warn-line); background: var(--c-warn-bg); color: #7A5410; border-radius: 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.1em; white-space: nowrap; }
.verify-flag::before { content: "!"; font-weight: 800; }
.callout { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border: 1px solid var(--c-line); border-left: 3px solid var(--c-green); background: var(--c-paper); border-radius: var(--r-sm); margin: var(--s-6) 0; font-size: var(--fs-sm); color: var(--c-ink-2); }
.callout p:last-child { margin-bottom: 0; }
.callout .icon { color: var(--c-green); margin-top: 2px; }
.callout__title { font-weight: 700; color: var(--c-ink); margin-bottom: var(--s-1); }
.callout--verify { background: var(--c-warn-bg); border-color: var(--c-warn-line); border-left-color: #C79A3B; display: block; }
.draft-banner { margin: 0; padding: var(--s-2) var(--gutter); background: #7A5410; color: #fff; font-size: var(--fs-sm); font-weight: 600; text-align: center; }

/* ---------- 7. Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 247, 243, 0.96); border-bottom: 1px solid var(--c-line); }
.site-header__bar { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--c-ink); flex: none; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__text { font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo--light { color: #fff; }
.nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.search-trigger { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; min-width: 44px; padding: 0 var(--s-3); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-sm); color: var(--c-ink-2); font-size: var(--fs-sm); }
.search-trigger:hover { border-color: var(--c-line-strong); color: var(--c-ink); }
.search-trigger__label, .search-trigger kbd { display: none; }
.search-trigger kbd { font-family: var(--f-sans); font-size: 0.6875rem; border: 1px solid var(--c-line); border-radius: 3px; padding: 1px 5px; color: var(--c-muted); background: var(--c-bg); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-paper); }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--c-ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5.25px; }
.menu-toggle__bars span:nth-child(3) { top: 10.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

/* Language switcher */
.lang-switch__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.lang-switch__item { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; min-height: 40px; padding: 0 var(--s-2); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--c-ink-2); }
a.lang-switch__item:hover { background: var(--c-sand); color: var(--c-ink); }
.lang-switch__item.is-current { color: var(--c-green); box-shadow: inset 0 -2px 0 var(--c-terra); }
.lang-switch__item.is-missing { color: var(--c-muted); }
.lang-switch__note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lang-switch__item.is-missing::after { content: "*"; color: var(--c-terra-ink); }
.lang-switch--header { display: none; }
/* compact language dropdown in the header below 1024px */
.lang-menu { position: relative; }
.lang-menu__current { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 var(--s-2) 0 var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-paper); font-size: var(--fs-sm); font-weight: 600; color: var(--c-green); cursor: pointer; list-style: none; }
.lang-menu__current::-webkit-details-marker { display: none; }
.lang-menu[open] .lang-menu__current .icon { transform: rotate(180deg); }
.lang-menu__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 130; min-width: 200px; list-style: none; padding: var(--s-1); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lang-menu__list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); min-height: 44px; padding: 10px var(--s-3); border-radius: var(--r-sm); font-size: var(--fs-sm); text-decoration: none; color: var(--c-ink); }
.lang-menu__list a:hover { background: var(--c-sand); }
.lang-menu__code { font-weight: 700; color: var(--c-green); min-width: 2em; }
.lang-menu__note { flex-basis: 100%; padding-left: calc(2em + var(--s-2)); font-size: var(--fs-xs); color: var(--c-muted); }
.lang-switch--menu { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.lang-switch--menu .lang-switch__item { min-width: 56px; border: 1px solid var(--c-line); background: var(--c-paper); }
.lang-switch--menu .lang-switch__note, .lang-switch--footer .lang-switch__note { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: var(--fs-xs); font-weight: 400; }
.lang-switch--menu .is-missing::after, .lang-switch--footer .is-missing::after { content: none; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--c-bg); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--c-line); }
.mobile-menu__inner { padding: var(--s-5) var(--gutter) var(--s-7); }
.mobile-menu__search { display: flex; gap: var(--s-2); margin-bottom: var(--s-5); }
.mobile-menu__search .btn { padding: 0 var(--s-4); }
.mobile-menu__list { list-style: none; border-top: 1px solid var(--c-ink); }
.mobile-menu__list > li { border-bottom: 1px solid var(--c-line); }
.mobile-menu__group summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-family: var(--f-head); font-weight: 600; font-size: 1.4rem; cursor: pointer; list-style: none; }
.mobile-menu__group summary::-webkit-details-marker { display: none; }
.mobile-menu__group[open] summary .icon { transform: rotate(180deg); }
.mobile-menu__group ul { list-style: none; padding: 0 0 var(--s-4) var(--s-3); }
.mobile-menu__group li a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--c-ink-2); }
.mobile-menu__start { display: flex; align-items: center; gap: var(--s-2); min-height: 56px; font-weight: 600; color: var(--c-green); text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-sm); color: var(--c-muted); padding-top: var(--s-4); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--c-line-strong); }
.breadcrumbs a { color: var(--c-ink-2); text-decoration: none; padding: 10px 0; }
.breadcrumbs a:hover { text-decoration: underline; }

.nav__count { display: inline-grid; place-items: center; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--c-sand); color: var(--c-muted); font-size: var(--fs-xs); font-weight: 600; }
.mobile-menu__label { margin: var(--s-2) 0 0 var(--s-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.mobile-menu__group li a { justify-content: space-between; gap: var(--s-3); padding-right: var(--s-3); }
.mobile-menu__overview { font-weight: 600; color: var(--c-green) !important; }
.hub-nav { margin-bottom: var(--s-5); padding: var(--s-4); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.hub-nav__label { margin: 0 0 var(--s-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.hub-group { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---------- 8. Page heads ---------- */
.page-head { padding-block: var(--s-5) var(--s-6); }
.page-head__title, .guide-head__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; overflow-wrap: break-word; hyphens: auto; }
.guide-head { padding-block: var(--s-5) var(--s-5); }

/* ---------- 9. Cards & grids ---------- */
.card-grid { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s-2); height: 100%; }
.card--boxed { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s-5); }
.card--boxed:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-md); }
.card__kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-terra-ink); margin: 0; }
.card__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-lg); line-height: 1.2; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { text-decoration: underline; }
.card__excerpt { color: var(--c-ink-2); font-size: 0.95rem; margin: 0; }
.card__meta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-muted); margin: auto 0 0; padding-top: var(--s-2); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-ink); }
.section-head__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-2xl); letter-spacing: -0.025em; }
.section-head__intro { color: var(--c-muted); max-width: 52ch; margin: var(--s-2) 0 0; }
.section--green .section-head { border-bottom-color: rgba(255, 255, 255, 0.35); }
.section--green .section-head__intro { color: #D5DFD8; }

/* Personas */
.persona-grid { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.persona-card { position: relative; display: flex; flex-direction: column; gap: var(--s-2); height: 100%; padding: var(--s-4); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.persona-card:hover { border-color: var(--c-green); box-shadow: var(--shadow-md); }
.persona-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-green-tint); color: var(--c-green); }
.persona-card__title { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.persona-card__title a { text-decoration: none; }
.persona-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.persona-card__desc { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); }

/* Tasks */
.task-grid { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.task { display: flex; align-items: center; gap: var(--s-3); min-height: 60px; padding: var(--s-3) var(--s-4); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); text-decoration: none; font-weight: 600; }
.task:hover { border-color: var(--c-green); color: var(--c-green); }
.task__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-terra-tint); color: var(--c-terra-ink); flex: none; }
.task__ext { margin-left: auto; color: var(--c-muted); }

/* Services band */
.service-cats { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1px; }
.service-cat { position: relative; background: var(--c-green); outline: 1px solid rgba(255, 255, 255, 0.14); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.service-cat:hover { background: #2B5844; }
.service-cat__icon { color: #F0C7B5; }
.service-cat__title { font-weight: 600; font-size: var(--fs-md); line-height: 1.3; }
.service-cat__title a { color: #fff; text-decoration: none; }
.service-cat__title a::after { content: ""; position: absolute; inset: 0; }
.service-cat p { margin: 0; font-size: var(--fs-sm); color: #D5DFD8; }

/* Link tiles */
.link-tiles, .city-grid { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.link-tile { display: grid; gap: var(--s-1); height: 100%; padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); text-decoration: none; }
.link-tile:hover { border-color: var(--c-green); }
.link-tile__title { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--f-head); font-weight: 600; font-size: var(--fs-lg); }
.link-tile__desc { color: var(--c-muted); font-size: var(--fs-sm); }
.city-card { position: relative; padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.city-card__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-lg); }
.city-card__title a { text-decoration: none; }
.city-card__title a::after { content: ""; position: absolute; inset: 0; }

/* ---------- 10. Home hero & big search ---------- */
.home-hero { padding-block: var(--s-6) var(--s-4); background: radial-gradient(120% 90% at 100% 0%, var(--c-terra-tint) 0%, transparent 55%), var(--c-bg); }
.home-hero__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -0.03em; max-width: 18ch; }
.home-hero__lede { margin-bottom: var(--s-5); }
.big-search { position: relative; display: flex; align-items: center; gap: var(--s-2); max-width: 720px; padding: 6px; background: var(--c-paper); border: 1px solid var(--c-line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.big-search:focus-within { border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(36, 76, 58, 0.15), var(--shadow-md); }
.big-search__icon { display: none; margin-left: var(--s-3); color: var(--c-muted); }
@media (min-width: 560px) { .big-search__icon { display: block; } .home-hero { padding-bottom: var(--s-7); } }
.big-search__input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-size: var(--fs-md); padding: 0 var(--s-2); }
.big-search__input:focus { outline: none; }
.big-search__btn { flex: none; }
.big-search__examples { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- 11. Prose ---------- */
.prose { font-size: 1rem; line-height: 1.7; color: var(--c-ink-2); max-width: 70ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-2xl); letter-spacing: -0.025em; color: var(--c-ink); margin: var(--s-7) 0 var(--s-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-lg); font-weight: 600; color: var(--c-ink); margin: var(--s-6) 0 var(--s-3); letter-spacing: -0.015em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--c-green); text-decoration: underline; }
.prose strong { color: var(--c-ink); }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--c-terra); background: var(--c-paper); }
.prose blockquote p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: var(--s-5) 0; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-paper); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose th { background: var(--c-sand); color: var(--c-ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

/* Glossary terms */
.term { position: relative; display: inline; }
.term__link { color: inherit !important; text-decoration: underline dotted var(--c-terra) 2px !important; text-underline-offset: 0.22em; cursor: help; }
.term__tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 20; width: min(280px, 80vw); transform: translateX(-50%); padding: var(--s-3) var(--s-4); background: var(--c-ink); color: #fff; font-size: var(--fs-sm); font-weight: 400; line-height: 1.5; text-align: left; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); pointer-events: none; }
.term:hover .term__tip, .term__link:focus-visible + .term__tip, .term.is-open .term__tip { display: block; }
.term__tip.is-left { left: 0; transform: none; }
.term__tip.is-right { left: auto; right: 0; transform: none; }

/* ---------- 12. Guide ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 150; height: 3px; pointer-events: none; }
.reading-progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--c-terra); }
.summary { padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-top: 3px solid var(--c-green); border-radius: var(--r-md); margin-bottom: var(--s-6); }
.summary__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-xl); margin-bottom: var(--s-4); }
.summary__grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin: 0 0 var(--s-5); }
.summary__row dt { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--s-1); }
.summary__row dd { margin: 0; color: var(--c-ink); }
.summary__row dd a { color: var(--c-green); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-bottom: var(--s-8); }
.guide-body { min-width: 0; }
.guide-body > * + * { margin-top: var(--s-7); }
.toc { display: none; }
.toc__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--s-3); font-family: var(--f-sans); }
.toc__list { list-style: none; counter-reset: toc; border-left: 1px solid var(--c-line); }
.toc__list a { display: block; padding: 6px 0 6px var(--s-4); margin-left: -1px; border-left: 2px solid transparent; font-size: var(--fs-sm); color: var(--c-ink-2); text-decoration: none; line-height: 1.4; }
.toc__list a:hover { color: var(--c-ink); }
.toc__list a.is-active { border-left-color: var(--c-terra); color: var(--c-ink); font-weight: 600; }
.toc-fab { position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border: 0; border-radius: 999px; background: var(--c-ink); color: #fff; font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-lg); }
.toc-sheet { width: 100%; max-width: 100%; max-height: 80vh; margin: auto 0 0; padding: var(--s-5) var(--gutter) var(--s-6); border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--c-bg); color: var(--c-ink); }
.toc-sheet::backdrop { background: rgba(20, 24, 22, 0.5); }
.toc-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.toc-sheet .toc__list a { padding-block: 10px; font-size: var(--fs-base); }

.step-cards { list-style: none; padding: 0 !important; display: grid; gap: var(--s-4); margin: var(--s-5) 0 !important; }
.step-cards li + li { margin-top: 0 !important; }
.step-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.step-card__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-green); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; }
.step-card__title { font-size: var(--fs-md) !important; margin: 6px 0 var(--s-2) !important; }
.step-card__text { font-size: var(--fs-base); }
.step-card__text p:last-child, .step-card__text ul:last-child { margin-bottom: 0; }

.checklist { margin: var(--s-5) 0; padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.checklist__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.checklist__progress { margin: 0; font-weight: 600; color: var(--c-green); font-size: var(--fs-sm); }
.checklist__list { list-style: none; padding: 0 !important; margin: 0 !important; }
.checklist__list li + li { margin-top: 0 !important; border-top: 1px solid var(--c-line); }
.checklist__item { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) 0; cursor: pointer; }
.checklist__item input, .route__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border: 1.5px solid var(--c-line-strong); border-radius: 4px; background: var(--c-paper); color: transparent; }
input:checked + .checklist__box { background: var(--c-green); border-color: var(--c-green); color: #fff; }
input:focus-visible + .checklist__box { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.checklist__item:has(input:checked) .checklist__text { color: var(--c-muted); text-decoration: line-through; }
.checklist__note { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--c-muted); }

.help__intro, .sources__intro { color: var(--c-muted); font-size: var(--fs-sm); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item:first-of-type { border-top: 1px solid var(--c-line); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); }
.faq__a { padding-bottom: var(--s-4); color: var(--c-ink-2); }
.faq__a p:last-child { margin-bottom: 0; }
.sources__list { list-style: none; display: grid; gap: var(--s-2); }
.sources__list li { padding: var(--s-3) var(--s-4); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.sources__list a { font-weight: 600; color: var(--c-green); }
.sources__host { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
.feedback { padding: var(--s-5); background: var(--c-sand); border-radius: var(--r-md); }
.feedback__title { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s-3); }
.feedback__buttons { display: flex; gap: var(--s-2); }
.feedback__thanks { margin: 0; font-weight: 600; color: var(--c-green); }
.feedback__report { margin: var(--s-4) 0 0; font-size: var(--fs-sm); }
.feedback__report a { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-ink-2); }
.facts { display: grid; gap: var(--s-3); grid-template-columns: 1fr; margin: 0 0 var(--s-6); }
.facts__item { padding: var(--s-4); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.facts__item dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); }
.facts__item dd { margin: 0; }

/* Newsletter */
.newsletter { padding: var(--s-6) var(--s-5); background: var(--c-green); color: #F1EFE8; border-radius: var(--r-md); }
.newsletter__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-xl); color: #fff; margin-bottom: var(--s-2); }
.newsletter__copy p { color: #D5DFD8; }
.newsletter__form { display: flex; flex-direction: column; gap: var(--s-2); max-width: 520px; }
.newsletter__form .input { border-color: transparent; }
.newsletter__status { min-height: 1.5em; margin: var(--s-3) 0 0; font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.newsletter__note { margin: var(--s-2) 0 0; font-size: var(--fs-xs); color: #BFD0C5; }
.newsletter .btn--accent { background: #fff; color: var(--c-terra-ink); }
.newsletter .btn--accent:hover { background: var(--c-sand); }

/* Persona route */
.persona .prose { margin-bottom: var(--s-6); }
.persona > * + * { margin-top: var(--s-7); }
.route-wrap__intro { color: var(--c-muted); font-size: var(--fs-sm); }
.route { list-style: none; counter-reset: route; }
.route__step { counter-increment: route; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--c-line); }
.route__check { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.route__check .checklist__box { margin: 0; width: 28px; height: 28px; }
.route__title { font-size: var(--fs-md); font-weight: 600; line-height: 1.35; }
.route__title::before { content: counter(route) ". "; color: var(--c-terra-ink); }
.route__title a { color: var(--c-green); }
.route__note { margin: var(--s-1) 0 0; color: var(--c-ink-2); font-size: var(--fs-sm); }
.route__official { margin: var(--s-2) 0 0; font-size: var(--fs-sm); }
.route__official a { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--c-ink-2); }
.route__step:has(input:checked) .route__title { color: var(--c-muted); text-decoration: line-through; }
.checklist--route { padding: var(--s-2) var(--s-4) var(--s-4); }

/* Hubs */
.hub { padding-bottom: var(--s-8); }
.hub > * + * { margin-top: var(--s-7); }
.hub-group .persona-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }


/* ---------- Photos ---------- */
.hero-figure { position: relative; margin: 0 0 var(--s-6); border-radius: var(--r-md); overflow: hidden; background: var(--c-sand-2); }
.hero-figure__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-figure--banner .hero-figure__img { aspect-ratio: 16 / 9; }
.hero-figure__credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 2px 8px; font-size: 0.6875rem; color: #fff; background: rgba(20, 24, 22, 0.55); border-top-left-radius: var(--r-sm); }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.hero-figure--home { margin: 0; box-shadow: var(--shadow-lg); }
.hero-figure--home .hero-figure__img { aspect-ratio: 3 / 1; }
@media (min-width: 560px) { .hero-figure--home .hero-figure__img { aspect-ratio: 16 / 9; } }
.card--media { padding: 0; overflow: hidden; }
.card--media .card__body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-4) var(--s-5) var(--s-5); }
.card:not(.card--media) .card__body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-sand-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badges { margin: 0; }
.card--soon .card__media img { filter: saturate(0.75); }
.badge--soon { background: var(--c-warn-bg); border: 1px solid var(--c-warn-line); color: #7A5410; vertical-align: middle; }
.persona-card--media { padding: 0; overflow: hidden; }
.persona-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-sand-2); }
.persona-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.persona-card:hover .persona-card__media img { transform: scale(1.04); }
.persona-card__body { position: relative; display: flex; flex-direction: column; gap: var(--s-2); }
.persona-card--media .persona-card__body { padding: 0 var(--s-4) var(--s-4); }
.persona-card--media .persona-card__icon { margin-top: -24px; border: 3px solid var(--c-paper); }
.tile-grid { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4 / 5; background: var(--c-green); color: #fff; isolation: isolate; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 24, 22, 0) 30%, rgba(20, 24, 22, 0.82) 100%); }
.tile:hover .tile__img { transform: scale(1.05); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-4); }
.tile__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.05rem, 0.7rem + 2vw, 1.5rem); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; hyphens: auto; }
.tile__title a { color: #fff; text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; }
.tile__title a:focus-visible { outline: none; }
.tile:focus-within { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.tile__desc { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.88); display: none; }
.tile-grid--cities .tile { aspect-ratio: 3 / 2; }
.hub-group__desc { color: var(--c-muted); margin: calc(-1 * var(--s-2)) 0 var(--s-4); }
.callout--soon { border-left-color: #C79A3B; background: var(--c-warn-bg); border-color: var(--c-warn-line); }
.callout--soon .icon { color: #7A5410; }
.stub__body > * + * { margin-top: var(--s-7); }
.stub__body { padding-bottom: var(--s-8); }
.stub__body > .callout:first-child { margin-top: 0; }
.stub__plan { padding-left: 1.4em; display: grid; gap: var(--s-2); font-size: var(--fs-md); color: var(--c-ink-2); }
.stub__plan li::marker { color: var(--c-terra-ink); font-weight: 700; }

/* ---------- 13. Directory ---------- */
.directory { padding-bottom: var(--s-8); }
.directory > * + * { margin-top: var(--s-6); }
.directory__intro { margin-bottom: var(--s-2); }
.filters { padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); }
/* visible from first paint when JS runs: directory.js is deferred, and revealing the form then shifts the list */
.js .filters[hidden] { display: block !important; }
.filters__lang { margin: 0 0 var(--s-4); padding: var(--s-4); border: 2px solid var(--c-green); border-radius: var(--r-md); background: var(--c-green-tint); }
.filters__legend { display: inline-flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-2); font-weight: 700; color: var(--c-green); }
.filters__row { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: end; }
.filters__check { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 46px; font-weight: 500; }
.filters__check input { width: 20px; height: 20px; accent-color: var(--c-green); }
.directory__count { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); font-weight: 600; }
.directory__group-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-family: var(--f-head); font-weight: 600; font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.directory__group-note { color: var(--c-muted); font-size: var(--fs-sm); }
.directory__sponsored { padding: var(--s-5); background: #FCF8F5; border: 1px solid #EED9CE; border-radius: var(--r-md); }
.directory__how { padding: var(--s-5); background: var(--c-sand); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--c-ink-2); }
.directory__how .section-title { font-size: var(--fs-lg); }
.service-grid { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin-top: var(--s-4); }
.service-card { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.service-card--sponsored { border-color: #EED9CE; }
.service-card--sample { border-style: dashed; }
.service-card__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.service-card__title { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.service-card__title a { color: var(--c-ink); }
.service-card__desc { margin: 0; color: var(--c-ink-2); font-size: var(--fs-sm); }
.service-card__facts { display: grid; gap: var(--s-1); margin: 0; font-size: var(--fs-sm); }
.service-card__facts div { display: flex; gap: var(--s-2); }
.service-card__facts dt { color: var(--c-muted); min-width: 6.5em; }
.service-card__facts dd { margin: 0; }
.service-card__site { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-sm); font-weight: 600; color: var(--c-green); overflow-wrap: anywhere; }
.empty-state { padding: var(--s-6); text-align: center; border: 1px dashed var(--c-line-strong); border-radius: var(--r-md); background: var(--c-paper); }
.empty-state__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-xl); }
.listing { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); padding-bottom: var(--s-6); }
.listing__facts { padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); align-self: start; display: grid; gap: var(--s-3); }
.listing__facts-title { font-size: var(--fs-md); font-weight: 600; }
.listing__facts dl { margin: 0; display: grid; gap: var(--s-3); }
.listing__facts dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); }
.listing__facts dd { margin: 0; overflow-wrap: anywhere; }
.listing__facts dd a { color: var(--c-green); }
.listing__note { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }
.page-head .service-card__badges { margin-top: var(--s-4); }

/* ---------- 14. Glossary, static, 404 ---------- */
.glossary { padding-bottom: var(--s-8); }
.glossary__index ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1); margin: var(--s-5) 0; }
.glossary__index a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-paper); text-decoration: none; font-weight: 600; }
.glossary__index a:hover { border-color: var(--c-green); color: var(--c-green); }
.glossary__letter { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-2xl); color: var(--c-terra-ink); margin: var(--s-6) 0 var(--s-3); }
.glossary__list { margin: 0; }
.glossary__item { padding: var(--s-4) 0; border-top: 1px solid var(--c-line); }
.glossary__item:target { background: var(--c-warn-bg); box-shadow: -12px 0 0 var(--c-warn-bg), 12px 0 0 var(--c-warn-bg); }
.glossary__item dt { font-weight: 700; font-size: var(--fs-md); }
.glossary__full { font-weight: 400; color: var(--c-muted); font-size: var(--fs-sm); }
.glossary__item dd { margin: var(--s-1) 0 0; color: var(--c-ink-2); }
.glossary__item dd p { margin-bottom: var(--s-2); }
.static { padding-bottom: var(--s-8); }
.error-page { padding-block: var(--s-7) var(--s-8); }
.error-page .section-title { margin-top: var(--s-7); }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--c-ink); color: #D9DBD6; padding-block: var(--s-7) var(--s-5); margin-top: var(--s-7); font-size: var(--fs-sm); }
.site-footer__top { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
.site-footer__brand p { margin-top: var(--s-3); color: #B9BDB7; max-width: 36ch; }
.site-footer__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-3); }
.site-footer__col ul { list-style: none; display: grid; gap: 2px; }
.site-footer__col a { display: inline-block; padding: 6px 0; color: #D9DBD6; text-decoration: none; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.site-footer__bottom p { margin: 0; color: #B9BDB7; }
.lang-switch--footer .lang-switch__item { color: #D9DBD6; }
.lang-switch--footer a.lang-switch__item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang-switch--footer .lang-switch__item.is-current { color: #fff; }

/* ---------- 16. Search dialog ---------- */
.search-dialog { width: min(720px, calc(100% - 2rem)); max-height: min(80vh, 760px); margin: 8vh auto auto; padding: var(--s-5); border: 0; border-radius: var(--r-lg); background: var(--c-bg); color: var(--c-ink); box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgba(20, 24, 22, 0.55); }
.search-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.search-dialog__title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-xl); }
.search-dialog__hint { font-size: var(--fs-sm); color: var(--c-muted); margin: var(--s-2) 0 var(--s-4); }
.search-dialog__status { color: var(--c-muted); }
.search-dialog { --pagefind-ui-primary: #244C3A; --pagefind-ui-text: #202321; --pagefind-ui-background: #FFFFFF; --pagefind-ui-border: #CFCBBF; --pagefind-ui-tag: #EFECE4; --pagefind-ui-border-width: 1px; --pagefind-ui-border-radius: 6px; --pagefind-ui-font: var(--f-sans); --pagefind-ui-scale: 0.85; }

/* Ad slot (disabled in config until ads go live) */
.ad-slot { padding: var(--s-3); border: 1px dashed var(--c-line-strong); border-radius: var(--r-sm); text-align: center; }
.ad-slot__label { display: block; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }

/* ---------- 17. Breakpoints ---------- */
@media (min-width: 560px) {
  .newsletter__form { flex-direction: row; }
  .task-grid, .link-tiles, .city-grid, .service-cats, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary__grid, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-figure--banner .hero-figure__img { aspect-ratio: 3 / 1; }
  .tile-grid--cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__desc { display: block; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .persona-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-trigger__label { display: inline; }
  .newsletter--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2) var(--s-6); align-items: center; padding: var(--s-6); }
  .newsletter--wide .newsletter__form { grid-column: 2; grid-row: 1; }
  .newsletter--wide .newsletter__status, .newsletter--wide .newsletter__note { grid-column: 2; }
}
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .nav { display: block; margin-left: var(--s-4); }
  .nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
  .site-header__bar { position: relative; }
  .nav__item { display: flex; align-items: center; height: var(--header-h); }
  .nav__link { display: block; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--c-ink-2); border-radius: var(--r-sm); }
  .nav__link:hover { color: var(--c-ink); background: var(--c-sand); }
  .nav__link[aria-current="true"] { color: var(--c-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--c-terra); }
  .nav__toggle { display: grid; place-items: center; width: 28px; height: 36px; border: 0; background: transparent; color: var(--c-muted); border-radius: var(--r-sm); }
  .nav__toggle:hover { background: var(--c-sand); color: var(--c-ink); }
  .nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav__panel { display: none; position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%); z-index: 120; width: min(820px, calc(100% - 2 * var(--gutter))); padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
  .nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav__item.is-open .nav__panel { display: block; }
  @media (hover: hover) { .nav__item:hover .nav__panel { display: block; } }
  .nav__panel-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3) var(--s-6); }
  .nav__panel-label { margin: 0 0 var(--s-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
  .nav__panel-title { font-family: var(--f-head); font-weight: 600; font-size: var(--fs-lg); margin-bottom: var(--s-2); }
  .nav__panel-desc { font-size: var(--fs-sm); color: var(--c-muted); }
  .nav__panel-links { list-style: none; display: grid; align-content: start; column-gap: var(--s-6); }
  .nav__panel-col--wide { grid-column: span 2; }
  .nav__panel-col--wide .nav__panel-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__panel-links a { display: flex; justify-content: space-between; gap: var(--s-3); padding: 8px 0; font-size: var(--fs-sm); text-decoration: none; border-bottom: 1px solid var(--c-line); }
  .nav__panel-links a:hover { color: var(--c-green); }
  .nav__panel-start { grid-column: 1 / -1; margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); }
  .nav__panel-start a { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-green); font-weight: 600; text-decoration: none; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .lang-switch--header { display: block; }
  .lang-menu { display: none; }
  .search-trigger__label { display: none; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-tiles, .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters__row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; }
  .summary__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-7); }
  .home-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: var(--s-7); }
  .hero-figure--home .hero-figure__img { aspect-ratio: 4 / 3; }
  .tile-grid--cities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toc { display: block; }
  .toc__inner { position: sticky; top: calc(var(--header-h) + var(--s-5)); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
  .toc-fab, .toc-sheet, .reading-progress { display: none !important; }
  .listing { grid-template-columns: minmax(0, 1fr) 320px; }
  .site-footer__top { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  .hub-group .persona-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .nav__link { padding-inline: var(--s-3) var(--s-2); }
  .search-trigger { min-width: 150px; justify-content: flex-start; }
  .search-trigger__label { display: inline; }
  .search-trigger kbd { display: inline; margin-left: auto; }
}

/* ---------- 18. Motion: only transform and opacity ---------- */
.card--boxed, .persona-card, .task, .link-tile, .city-card, .service-card { transition: transform 0.3s var(--ease-out), border-color var(--dur-fast) var(--ease), box-shadow 0.3s var(--ease); }
.nav__toggle .icon, .lang-menu__current .icon, .mobile-menu__group summary .icon, .link-tile__title .icon { transition: transform var(--dur-fast) var(--ease-out); }
.faq__q .icon { transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.98); }
  .card--boxed:hover, .persona-card:hover, .task:hover, .link-tile:hover, .city-card:hover, .service-card:hover { transform: translateY(-3px); }
  .link-tile:hover .link-tile__title .icon { transform: translateX(0.2em); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-up-centered { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mobile-menu:not([hidden]), .lang-menu[open] .lang-menu__list, .mobile-menu__group[open] ul, .faq__item[open] .faq__a, .search-dialog[open], .toc-sheet[open] { animation: fade-up 0.3s var(--ease-out); }
.nav__panel { animation: fade-up-centered 0.3s var(--ease-out); }
/* .reveal is set by site.js only on blocks below the fold */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms), transform var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn:active, .card--boxed:hover, .persona-card:hover, .task:hover, .link-tile:hover, .city-card:hover, .service-card:hover { transform: none; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header, .site-footer, .toc, .toc-fab, .toc-sheet, .reading-progress, .feedback, .newsletter, .search-dialog, .help, .related { display: none !important; }
  body { background: #fff; }
}
