/* amerasianworld.com: the rockypod.com theme (light only) with the Steppe Exhibition components. WCAG 2.2 AAA and COGA: text 7:1, borders and focus 3:1, 44 px targets, 65-character lines, no motion without reduced-motion respect. */
@font-face { font-family: Lexend; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/lexend-latin.7e692144d823.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lexend; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/lexend-latin-ext.a981ad4865c7.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Light only, as on the live site (zinc greys, blue and the three flag colours of the old Tailwind palette), lifted just enough for WCAG 2.2 AAA:
   text 7:1, borders and focus ring 3:1. config/tests/test_theme_contrast.py reads this block and fails below that.
   Old values: qaz-blue #00B1CB, kg-red #EF3340, uz-blue #0072CE. The text versions below are the same hues, darker. */
:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #fafafa; --surface-strong: #f4f4f5; --code-bg: #f4f4f5; --heritage-bg: #fafafa;
  --text: #18181b; --text-muted: #3f3f46;
  --border: #71717a; --focus: #004b8d; --a11y-focus-color: var(--focus);
  --murasaki: #004b8d; --ruri: #004b8d; --rikyu: #1f5a14; --kikyo: #004b8d; --on-kikyo: #ffffff;
  --qaz-blue: #00b1cb; --qaz-text: #005566; --footer-bg: #004b8d; --qaz-yellow: #fec604; --kg-yellow: #ffd100; --kg-text: #8f0f18; --uz-text: #004b8d; --hero-bg: #031a2e; --gutter: clamp(1rem, 4vw, 3rem);
  font-family: Lexend, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1.0625rem; line-height: 1.7; }
p { margin-block: 1em; }
ul, ol { margin-block: 1em; padding-inline-start: 2.5rem; }
ul { list-style: disc; }
ol { list-style: decimal; }
a { color: var(--ruri); text-decoration-thickness: 0.12em; text-underline-offset: 0.2em; }
a:any-link { text-decoration-line: underline; }
a:hover { color: var(--kg-text); }
:where(a, button, input, select, summary):focus-visible { border-radius: 0.2rem; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
source { display: none; }
.skip-link { position: fixed; z-index: 20; top: 0.75rem; left: 0.75rem; padding: 0.75rem 1rem; background: var(--text); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
/* header and footer always run edge to edge, with the same side gutter as the home page bands */
.site-header, .site-footer { width: 100%; padding-inline: var(--gutter); }
.site-header { flex-wrap: wrap; position: sticky; z-index: 10; top: 0; min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--qaz-blue); color: #02101c; transition: transform 0.2s ease; }
.site-header.header-hidden { transform: translateY(calc(-100% - 1px)); }
.site-header:focus-within { transform: translateY(0); }
.brand { min-height: 3rem; display: inline-flex; align-items: center; gap: 0.75rem; color: #02101c; font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.brand-logo { width: auto; height: 3rem; flex: none; }
/* the logo is a 177 x 70 banner, so it keeps its shape */
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin-left: auto; }
.menu-toggle { display: none; padding-inline: 0.8rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); color: var(--text); font: inherit; font-weight: 800; }
main { width: min(76rem, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow { margin: 0; color: var(--murasaki); font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 850; letter-spacing: 0.1em; }
.lede { max-width: 38rem; color: var(--text-muted); font-size: clamp(1.15rem, 2vw, 1.4rem); }
.primary-action { min-height: 3rem; display: inline-flex; align-items: center; margin-top: 1rem; padding: 0.65rem 1.1rem; border-radius: 0.6rem; background: var(--murasaki); color: var(--bg); font-weight: 850; text-decoration: none; }
.primary-action:hover { background: var(--ruri); color: var(--bg); }
.site-footer { padding-block: clamp(3rem, 7vw, 6rem) 2rem; border-top: 1px solid var(--border); color: var(--text-muted); }
.article-shell { width: min(52rem, 100%); margin-inline: auto; padding-block: clamp(3rem, 8vw, 7rem); font-size: 1.15rem; }
.page-header { max-width: 52rem; padding-block: clamp(3rem, 8vw, 6rem); }
.page-header h1 { margin: 0.2rem 0 1rem; font-size: clamp(2.7rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { max-width: none; font-size: clamp(2.5rem, 7vw, 5rem); }
.prose { margin-inline: auto; font-size: inherit; }
.prose :is(h2, h3) { margin-top: 2.2em; line-height: 1.2; }
.prose h2 { font-size: 1.8rem; }
.prose h3 { font-size: 1.4rem; }
.prose :is(p, li) { max-width: 65ch; }
.prose a { display: inline; vertical-align: baseline; }
.prose pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--code-bg); }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.prose :not(pre) > code { padding: 0.1em 0.3em; border-radius: 0.25rem; background: var(--surface-strong); }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 0.3rem solid var(--murasaki); color: var(--text-muted); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose :is(th, td) { padding: 0.6rem; border: 1px solid var(--border); text-align: left; }
.prose figure { max-width: 100%; margin: 2rem 0; }
.prose figcaption { margin-top: 0.65rem; color: var(--text-muted); font-size: 0.9rem; }
.prose iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose .kg-bookmark-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, 14rem); gap: 1rem; width: 100%; padding: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; color: var(--text); text-decoration: none; }
.prose .kg-bookmark-title { font-weight: 800; }
.prose .kg-bookmark-description, .prose .kg-bookmark-metadata { color: var(--text-muted); font-size: 0.9rem; }
.prose .missing-media { padding: 1rem; border: 1px dashed var(--border); color: var(--text-muted); }
.prose .video-link a { display: inline-flex; min-height: 3rem; align-items: center; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--surface); }
.error-page { width: min(42rem, 100%); margin-inline: auto; padding-block: clamp(3rem, 9vw, 7rem); text-align: center; }
.error-avatar { width: 6rem; height: 6rem; margin-inline: auto; object-fit: cover; border: 0.2rem solid var(--murasaki); border-radius: 9999px; background: var(--surface); }
.error-heading { margin-top: 2.5rem; }
.error-heading h1 { margin: 0.25rem 0 1rem; font-size: clamp(2.75rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.05em; }
.error-heading > p:last-child { margin-inline: auto; color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.error-navigation { margin-top: clamp(3rem, 7vw, 5rem); text-align: left; }
.error-navigation h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.error-navigation ul { margin: 0; padding: 0; border-block: 1px solid var(--border); list-style: none; }
.error-navigation li + li { border-top: 1px solid var(--border); }
.error-navigation li > a { min-height: 6.5rem; display: grid; grid-template-columns: 3rem minmax(0, 1fr) 1.25rem; align-items: center; gap: 1rem; padding-block: 1rem; color: var(--text); text-decoration: none; }
.error-navigation li > a:hover .error-link-copy strong { color: var(--murasaki); text-decoration: underline; text-decoration-thickness: 0.12em; text-underline-offset: 0.2em; }
.error-icon { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 0.65rem; background: var(--surface); color: var(--murasaki); }
.error-link-copy { display: grid; gap: 0.15rem; }
.error-link-copy strong { font-size: 1rem; }
.error-link-copy > span { color: var(--text-muted); font-size: 0.92rem; }
.error-arrow { width: 1.25rem; height: 1.25rem; color: var(--text-muted); }
.error-home { min-height: 3rem; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; font-weight: 800; }
@media (max-width: 52rem) {
  .site-header { min-height: 5rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; padding: 0.75rem; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 0.75rem 0.75rem; background: var(--bg); }
  .site-header nav.menu-open { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
/* ---- additions to the live design ---- */
/* A list item that holds only a link (the importer marks it) is a standalone target: 48 px, WCAG 2.5.5. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu-toggle[hidden] { display: none; }
.menu-toggle .menu-close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: inline-block; }
/* Breadcrumb: a quiet line above the page header (WCAG 2.4.8 asks for the location). */
.breadcrumb { padding-top: 1.25rem; font-size: 0.9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-inline: 0.5rem; color: var(--text-muted); }
.breadcrumb a { min-width: 3rem; min-height: 3rem; display: inline-flex; align-items: center; color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }
.breadcrumb + .article-shell, .breadcrumb + .page-header { padding-top: clamp(1rem, 3vw, 2rem); }
/* Theme switch (footer): three radios that look like a segmented control. Hidden until site.js runs. */
/* Without JavaScript the navigation stays open on small screens (site.js adds the .js class and the menu button). */
@media (max-width: 52rem) {
  html:not(.js) .site-header { flex-wrap: wrap; }
  html:not(.js) .site-header nav { position: static; display: flex; flex-basis: 100%; border: 0; }
  html.js .site-header nav { display: none; }
  html.js .site-header nav.menu-open { display: flex; }
}
@media (forced-colors: active) {
  }
@media print {
  .site-header, .site-footer, .skip-link, .breadcrumb { display: none; }
  html, body { background: #fff; color: #000; }
  a { color: #000; }
}
/* Blog sidebar: sticky and scrollable beside the content on wide screens, a collapsed disclosure above it on narrow ones. */
.site-shell { display: block; }
/* The sidebar narrows the content column, so the home hero stacks sooner and its heading shrinks. */
/* Sidebar archives: one disclosure per year, months with counts. */
/* Archive pages: year and month boxes, and the month calendar. */
/* Cookie notice and the video consent gate. */
html { scroll-padding-bottom: calc(var(--cookie-banner-height, 0px) + 1rem); }
body { padding-bottom: var(--cookie-banner-height, 0px); }
.cookie-banner:not([hidden]) { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; max-height: 70vh; overflow-y: auto; padding: 1rem; border-top: 2px solid var(--border); background: var(--surface); color: var(--text); }
.cookie-banner-inner { width: min(64rem, 100%); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.cookie-banner-title { flex-basis: 100%; margin: 0; font-size: 1.15rem; font-weight: 700; }
.cookie-banner-text { flex: 1 1 28rem; margin: 0; line-height: 1.6; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-banner button, .embed-gate-load { min-width: 3rem; min-height: 3rem; padding: 0.65rem 1.1rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--bg); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.cookie-banner .cookie-allow { background: var(--kikyo); border-color: var(--kikyo); color: var(--on-kikyo); }
.cookie-settings { min-height: 3rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-settings:hover { color: var(--murasaki); text-decoration-thickness: 2px; }
.embed-gate { width: 100%; max-width: 50rem; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; margin: 1.75rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface); color: var(--text); text-align: center; }
.embed-gate-box { max-width: 34rem; }
.embed-gate-title { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.embed-gate-text { margin: 0 0 1rem; line-height: 1.5; }
.embed-gate-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
/* Contact form. */
.contact-form { display: grid; gap: 1.25rem; max-width: 40rem; margin-top: 2rem; }
.form-row { display: grid; gap: 0.35rem; }
.form-row label { font-weight: 700; }
.form-help { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.form-error, .form-error-summary { margin: 0; padding: 0.6rem 0.9rem; border-left: 0.35rem solid var(--focus); border-radius: 0.25rem; background: var(--surface-strong); color: var(--text); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form input:not([type="hidden"]), .contact-form textarea { width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); color: var(--text); font: inherit; }
.contact-form .form-help { max-width: 65ch; }
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
/* AI statement note at the bottom of a page. */
.a11y-note { max-width: 46rem; margin: 3rem auto 0; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface); font-size: 0.95rem; }
.a11y-note-heading { margin: 0 0 0.5rem; font-size: 1.05rem; }
.a11y-note p { margin: 0 0 1rem; }
.a11y-note p:last-child { margin-bottom: 0; }
.embed-gate-actions a { min-width: 3rem; min-height: 3rem; display: inline-flex; align-items: center; }
/* The calendar keeps 3rem day targets, so on narrow screens the table scrolls sideways inside its own region (WCAG 1.4.10 allows this for two-dimensional data; 2.5.5 needs the targets). */
/* Header search: an icon button, as on SaigonNezumi. */
/* Theme switch, as on SaigonNezumi: three icon options in one bordered group at the right end of the header. */
@media (max-width: 64rem) {
  .site-header { flex-wrap: wrap; row-gap: 0; }
  .menu-toggle { order: 2; }
  }
@media (prefers-reduced-motion: reduce) {
  }
/* Keyboard focus on form fields, and a line length of at most 65 characters in notices and form help (WCAG 1.4.8). */

/* --- shared rules the theme needs (header, links, menu, footer) --- */
.site-header a, .site-footer a, .primary-action { min-width: 3rem; min-height: 3rem; display: inline-flex; align-items: center; }
.site-header nav > a[href="/contact/"] { margin-left: 0.5rem; border-radius: 0.5rem; background: #43b02a; color: #000; }
.site-header nav > a { min-height: 3rem; display: inline-flex; align-items: center; padding-inline: 0.8rem; color: #02101c; font-weight: 700; }
.heroicon { width: 1.25rem; height: 1.25rem; flex: none; }
.menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.brand span { white-space: nowrap; }
.footer-navigation ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-navigation a, .cookie-settings { padding-block: 0.35rem; color: #fff; }
.footer-legal { max-width: 65ch; margin: 2rem auto 0; text-align: center; color: #fff; line-height: 1.6; }
.footer-navigation a:hover, .cookie-settings:hover { color: #fff; text-decoration-thickness: 0.2em; }
.site-footer { --focus: var(--kg-yellow); background: var(--footer-bg); border-top: 0; color: #fff; }
@media (max-width: 36rem) { .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* --- the Steppe Exhibition --- */
/* A page is a heading, a lead, and a body in the owner's order. A photo is an exhibition card: the photo with its story beside it from 54rem,
   stacked below that. A card without a caption is the photo alone, at the full width of the card. Eyes stay inside one card (COGA). */
.article-shell { width: min(64rem, 100%); }
.article-header h1 { display: grid; gap: 0.35rem; }
.article-header h1 .eyebrow { display: block; margin: 0; color: var(--murasaki); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; }
.lede { max-width: 65ch; color: var(--text-muted); font-size: 1.2rem; }
.lede p { margin-block: 0.5rem; }
.story-body, .story-body.prose { min-width: 0; max-width: none; }  /* text blocks keep their own 65-character limit; the photo cards use the whole width */
.story-body > :is(p, ul, ol, h1, h2, h3, h4, blockquote, dl, .embed-link) { max-width: 65ch; }
.story-body h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em; }
.story-body h2 { margin-block: 2.5rem 0.75rem; font-size: 1.6rem; line-height: 1.2; }
.story-body h3 { margin-block: 2rem 0.5rem; font-size: 1.3rem; line-height: 1.25; }
.story-body h4 { margin-block: 1.5rem 0.5rem; font-size: 1.1rem; }
.story-body dt { font-weight: 700; }
.story-body dd { margin: 0 0 0.75rem; }
.story-body figure.photo { display: grid; gap: 1rem 1.5rem; margin: 2rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface); }
.story-body figure.photo > * { min-width: 0; }
.story-body figure.photo img { width: 100%; height: auto; border: 2px solid var(--border); border-radius: 0.25rem; background: var(--surface-strong); }
.story-body figure.photo figcaption { max-width: 65ch; margin: 0; color: var(--text); font-size: 1.0625rem; line-height: 1.65; overflow-wrap: anywhere; }
.story-body figure.photo figcaption p { margin: 0 0 0.75rem; }
.story-body figure.photo figcaption p:last-child { margin-bottom: 0; }
@media (min-width: 54rem) {
  .story-body figure.photo:has(figcaption) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; }
}
.story-body .youtube-embed, .story-body .embed-gate { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 1px solid var(--border); border-radius: 0.75rem; background: #000; }
.story-body .embed-gate { background: var(--surface); }
.story-body :is(p, li, dd, figcaption) { overflow-wrap: anywhere; }
.story-body .link-item > a, .story-body .embed-link a { display: inline-flex; align-items: center; min-width: 3rem; min-height: 3rem; }
.story-body li.link-item { max-width: none; }

/* --- the map (an extra under a text list of the same places) --- */
.place-map { margin-block: 3rem 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.place-map h2 { margin: 0 0 1rem; font-size: 1.6rem; line-height: 1.2; }
.place-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 0.75rem 1.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.place-list > li { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.1rem 0.75rem; min-width: 0; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface); }
.place-number { grid-row: 1 / span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--kikyo); color: var(--on-kikyo); font-weight: 800; }
.place-name { font-weight: 700; align-self: center; }
.place-list ul { grid-column: 2; margin: 0; padding: 0; list-style: none; }
.place-list li.link-item { max-width: none; }
.place-map .link-item > a { display: inline-flex; align-items: center; min-width: 3rem; min-height: 3rem; }
.map-gate { max-width: 65ch; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface); }
.map-gate p { margin: 0 0 0.75rem; }
.map-gate p:last-child { margin-bottom: 0; }
.map-load { min-width: 3rem; min-height: 3rem; padding: 0.65rem 1.1rem; border: 1px solid var(--kikyo); border-radius: 0.6rem; background: var(--kikyo); color: var(--on-kikyo); font: inherit; font-weight: 800; cursor: pointer; }
.map-canvas { height: 28rem; max-height: 75vh; border: 2px solid var(--border); border-radius: 0.75rem; background: var(--surface-strong); }
.map-canvas:focus-visible, .map-canvas .leaflet-container:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.map-help { max-width: 65ch; margin: 0.75rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
.leaflet-container { font: inherit; }
.map-pin span { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid #fff; border-radius: 50%; background: var(--kikyo); color: var(--on-kikyo); font-weight: 800; box-shadow: 0 0 0 2px #000; }
.leaflet-marker-icon:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 50%; }
.leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 1.4rem; }
.leaflet-control-attribution { background: #fff; color: #111; }
.leaflet-control-attribution a { color: #0b3d91; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg); color: var(--text); }
.leaflet-popup-content { margin: 0.75rem 1rem; font-size: 1rem; line-height: 1.5; }
.leaflet-popup-content a { color: var(--ruri); }
.map-popup-links { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.map-popup-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.leaflet-popup-close-button { width: 44px !important; height: 44px !important; font-size: 1.6rem !important; line-height: 44px !important; color: var(--text) !important; }
@media (prefers-reduced-motion: reduce) { .leaflet-zoom-anim .leaflet-zoom-animated { transition: none !important; } }

/* --- the home page, edge to edge like the live site: blue hero with the photo, grey quote band, photo and welcome text --- */
.template-homepage main { width: 100%; }
.home-shell { width: 100%; font-size: 1.15rem; }
.home-body { max-width: none; }
.home-wrap { width: 100%; padding-inline: var(--gutter); }
.home-body figure.photo { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.home-body figure.photo img { border: 0; border-radius: 0; background: none; }
.home-hero { position: relative; isolation: isolate; background: var(--hero-bg); color: #fff; }
.home-hero > figure.photo, .home-hero > figure.photo picture, .home-hero > figure.photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* the photo shows at full strength; each line of text sits on its own dark band, so contrast does not depend on the photo */
.home-hero > figure.photo { z-index: -1; }
.home-hero-text { position: relative; z-index: 1; width: 100%; padding-inline: var(--gutter); padding-block: clamp(5rem, 14vw, 8rem); }
.home-hero-text h1, .home-hero-text p { padding: 0.12em 0.4em; background: rgb(3 26 46 / 0.88); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.home-hero-text h1 { display: block; width: fit-content; max-width: 100%; margin: 0; color: var(--kg-yellow); font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
.home-hero-text p { display: block; width: fit-content; max-width: min(40rem, 100%); margin: 0.75rem 0 0; padding: 0.4em 0.6em; color: #5ddcf0; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; }
.home-quote { position: relative; overflow: hidden; background: var(--surface); }
.home-quote::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: min(14rem, 30%); background: radial-gradient(circle, var(--qaz-blue) 2px, transparent 2.5px) 0 0 / 20px 20px; pointer-events: none; }
.home-quote > .home-wrap { position: relative; }
.home-quote blockquote { position: relative; }
.home-quote blockquote::before { content: "\201C" / ""; position: absolute; top: -3.4rem; left: -2.2rem; color: transparent; -webkit-text-stroke: 2px var(--qaz-yellow); font-size: 9rem; line-height: 1; opacity: 0.6; pointer-events: none; }
.home-quote > .home-wrap { display: grid; gap: 1.5rem 2.5rem; padding-block: clamp(3rem, 7vw, 5rem); }
.home-quote figure.photo img { width: 100%; height: auto; border-radius: 50%; }

.home-quote figure.photo:last-of-type { width: 3.5rem; }
.home-quote blockquote { max-width: none; margin: 0; padding: 0; border: 0; font-size: 1.15rem; }
.home-quote blockquote p { margin: 0; color: var(--text); font-weight: 600; }
.home-quote blockquote p:first-child { margin-bottom: 1.5rem; font-size: clamp(1.4rem, 3vw, 1.65rem); line-height: 1.55; font-weight: 500; }
.home-quote blockquote p:nth-child(3) { color: var(--qaz-text); }
.home-quote blockquote p:nth-child(4) { color: var(--kg-text); }
.home-quote blockquote p:nth-child(5) { color: var(--uz-text); }
@media (min-width: 64rem) {
  .home-quote > .home-wrap { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .home-quote > .home-wrap > figure.photo:first-child { grid-row: 1; width: 18rem; }
  .home-quote figure.photo:last-of-type { display: none; }
}
@media (max-width: 63.99rem) { .home-quote > .home-wrap > figure.photo:first-child { display: none; } .home-quote figure.photo:last-of-type { order: 2; } }
.home-main { display: grid; background: var(--surface); }
.home-main > figure.photo, .home-main > figure.photo picture { display: block; }
.home-main > figure.photo img { width: 100%; height: 100%; max-height: 32rem; object-fit: cover; }
.home-main-text { width: 100%; padding: clamp(2rem, 6vw, 4rem) var(--gutter); }
.home-main-text > * { max-width: 80ch; }  /* WCAG 1.4.8: at most 80 characters a line */
.home-main-text h2 { margin: 0; color: var(--uz-text); font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.home-main-text h3 { display: inline-block; margin: 0.5rem 0 0; padding-bottom: 0.25rem; border-bottom: 0.3rem solid var(--qaz-yellow); font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
@media (min-width: 64rem) {
  .home-main { grid-template-columns: 1fr 1fr; }
  .home-main > figure.photo { grid-column: 1; grid-row: 1; }
  .home-main > figure.photo { position: relative; border-radius: 0 0.5rem 0.5rem 0; overflow: hidden; }
  .home-main > figure.photo img { position: absolute; inset: 0; max-height: none; }
  .home-main-text { grid-column: 2; grid-row: 1; padding-inline: 2.5rem var(--gutter); }
}
.home-shell > .place-map { width: 100%; margin-block: 0; padding: clamp(2rem, 6vw, 4rem) var(--gutter); border-top: 0; }
