/* «Минуле» · сайт, версія 2 (зразок — Britannica).
   Світла тема. Тепле майже біле тло, темне чорнило, ОДИН акцент — глибока бірюза з design/merged/css/tokens.css.
   Заголовки — Bitter (локальний variable woff2, кирилиця), текст статті — системна антиква з кирилицею
   (Georgia на Windows/macOS/iOS, Noto Serif на Android), інтерфейс — системний гротеск.
   На сторінку вантажаться лише 2 файли шрифту (кирилиця + латиниця Bitter); -ext підвантажуються,
   тільки якщо на сторінці є такі літери (ѣ, ł тощо).
   Контраст усіх пар «текст / тло» ≥ 4,5 : 1 (перелік — у кінці файлу). */

/* ───────────── Шрифти ───────────── */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Bitter-cyrillic-ext-c4033b.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: 'Bitter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Bitter-cyrillic-64c559.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Bitter-latin-ext-e0bf25.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Bitter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Bitter-latin-17091b.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;
}

/* ───────────── Токени ───────────── */
:root {
  color-scheme: light;

  /* Папір і лінії */
  --bg: #FFFDF9;            /* тло сторінки: майже біле, тепле */
  --surface: #F8F4EC;       /* акордеон, картки, паспарту ілюстрацій */
  --surface-2: #F1EBDF;     /* наведення на поверхні */
  --line: #E6DDCC;          /* тихі розділювачі (декоративні) */
  --line-strong: #857860;   /* межі полів і кнопок — ≥ 3 : 1 до тла */

  /* Чорнило */
  --ink: #1E2A32;           /* основний текст — 14,4 : 1 на --bg */
  --ink-2: #3D4952;         /* вторинний — 9,1 : 1 */
  --ink-3: #525D66;         /* підписи, крихти — 6,6 : 1 на --bg, 6,1 : 1 на --surface */

  /* Єдиний акцент: глибока бірюза «Минулого» */
  --accent: #1F5E66;        /* посилання, кнопка, позначки — 7,3 : 1 на --bg */
  --accent-press: #174A51;
  --accent-tint: #E2EEEB;   /* підсвітка примітки, на яку перейшли */
  --on-accent: #FFFFFF;     /* білий на бірюзі — 7,4 : 1 */

  /* Шрифти */
  --font-display: 'Bitter', Georgia, 'Noto Serif', 'Droid Serif', serif;
  --font-text: Georgia, 'Noto Serif', 'Droid Serif', 'PT Serif', Cambria, 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Розміри тексту (rem — витримує системний шрифт 130 %) */
  --fs-text: 1.1875rem;     /* 19 px — текст статті на комп'ютері */
  --lh-text: 1.68;
  --fs-lead: 1.25rem;       /* 20 px — вступ */
  --fs-small: 1rem;         /* 16 px — підписи до ілюстрацій, примітки, картки */
  --fs-ui: 0.9375rem;       /* 15 px — меню, кнопки */
  --fs-cap: 0.875rem;       /* 14 px — крихти, кікери, мітка «Реклама» (лише короткі рядки) */

  /* Сітка: колонка тексту + права колонка для ілюстрацій */
  --w-text: 680px;
  --w-side: 340px;          /* ілюстрація праворуч: карта 3:2 має бути читабельною */
  --gap-side: 48px;
  --w-page: calc(var(--w-text) + var(--gap-side) + var(--w-side)); /* 1068 px */
  --gutter: 24px;

  --radius: 8px;
  --radius-sm: 6px;
  --touch: 44px;
}

/* ───────────── Основа ───────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-press); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 16px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 var(--fs-ui)/1.3 var(--font-ui);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.container {
  width: 100%;
  max-width: calc(var(--w-page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───────────── Верхня смуга ───────────── */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-ui);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
  min-height: var(--touch);
}
.logo:hover { color: var(--ink); }
.logo img { width: 40px; height: 40px; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.search {
  flex: 1 1 auto;
  max-width: 420px;
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--touch);
  padding: 0 14px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23525D66' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px 50%;
  color: var(--ink);
  font: 400 1rem/1.2 var(--font-ui);
}
.search__input::placeholder { color: var(--ink-3); opacity: 1; }
.search__input:focus-visible { outline-offset: 0; border-color: var(--accent); }

.topnav { margin-left: auto; }
.topnav__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topnav__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 10px;
  color: var(--ink-2);
  font-size: var(--fs-ui);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.topnav__list a:hover { color: var(--accent); background: var(--surface); }
.topnav__list a[aria-current="page"] { color: var(--accent); }

/* На телефоні: логотип + кнопка пошуку + меню (працює без JS) */
.topbar__mobile { display: none; margin-left: auto; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.icon-btn:hover { background: var(--surface); color: var(--accent); }
.icon-btn::-webkit-details-marker { display: none; }
.menu { position: relative; }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  min-width: 220px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(30, 42, 50, .12);
}
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 12px;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.menu__panel a:hover { background: var(--surface); color: var(--accent); }

@media (max-width: 899px) {
  .search, .topnav { display: none; }
  .topbar__mobile { display: flex; }
  .topbar__inner { min-height: 56px; gap: 12px; }
}

/* ───────────── Хлібні крихти ───────────── */
.crumbs {
  margin: 20px 0 0;
  font: 400 var(--fs-cap)/1.45 var(--font-ui);
  color: var(--ink-3);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--ink-3);
}
.crumbs a {
  color: var(--ink-3);
  text-decoration-color: var(--line-strong);
  /* ціль дотику ≥ 44 px без зміни висоти рядка */
  padding: 12px 0;
  margin: -12px 0;
}
.crumbs a:hover { color: var(--accent); text-decoration-color: currentColor; }
.crumbs [aria-current="page"] { color: var(--ink-2); }

/* ───────────── Стаття: сітка ───────────── */
.article {
  margin: 12px 0 0;
}
.article-head { padding-top: 4px; }

@media (min-width: 1100px) {
  .article {
    display: grid;
    grid-template-columns: minmax(0, var(--w-text)) var(--w-side);
    column-gap: var(--gap-side);
    grid-template-areas:
      "head  fig"
      "intro fig"
      "body  ."
      "end   .";
    grid-template-rows: auto 1fr auto auto;
  }
  .article-head  { grid-area: head; }
  .lead-figure   { grid-area: fig; align-self: start; margin-top: 18px; }
  .article-intro { grid-area: intro; }
  .article-body  { grid-area: body; }
  .article-end   { grid-area: end; }
}
@media (max-width: 1099px) {
  .article { max-width: var(--w-text); }
}

/* ───────────── Шапка статті ───────────── */
.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.125rem, 1.6rem + 1.8vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.subtitle {
  margin: 8px 0 0;
  font: 600 var(--fs-ui)/1.45 var(--font-ui);
  color: var(--ink-2);
}
.kicker {
  margin: 0 0 8px;
  font: 600 var(--fs-cap)/1.4 var(--font-ui);
  color: var(--ink-3);
}
.aka {
  margin: 10px 0 0;
  font-family: var(--font-text);
  font-style: italic;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-3);
}
.aka b { font-weight: 400; font-style: normal; color: var(--ink-2); }
.aka em { font-style: italic; }
.aka .fn { font-style: normal; }
.byline {
  margin: 6px 0 0;
  font: 400 var(--fs-cap)/1.45 var(--font-ui);
  color: var(--ink-3);
}
.byline a { color: var(--ink-3); text-decoration-color: var(--line-strong); }
.byline a:hover { color: var(--accent); }

/* ───────────── Ілюстрації ───────────── */
.figure { margin: 0; }
.figure__frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.figure__frame img { width: 100%; }
.figure figcaption {
  margin-top: 10px;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}
.figure figcaption strong {
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 0.9375rem;
  color: var(--accent);
  margin-right: 4px;
}
.credit {
  display: block;
  margin-top: 4px;
  font: 400 var(--fs-cap)/1.45 var(--font-ui);
  color: var(--ink-3);
}
.credit a { color: var(--ink-3); text-decoration-color: var(--line-strong); }

/* Головна ілюстрація: справа на комп'ютері, у тексті на планшеті, під назвою на телефоні */
@media (min-width: 720px) and (max-width: 1099px) {
  .lead-figure {
    float: right;
    width: 42%;
    max-width: 300px;
    margin: 22px 0 16px 28px;
  }
  .qa { clear: both; }   /* фон акордеона не повинен залазити під ілюстрацію */
}
@media (max-width: 719px) {
  /* Під назвою, але невисоко: текст статті має бути видно вже на першому екрані */
  .lead-figure { margin: 18px 0 4px; }
  .lead-figure .figure__frame img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
  }
  /* Скан сторінки книги (сторінка розшифровки): рядки не обрізаємо — показуємо кадр цілим */
  .lead-figure.figure--scan .figure__frame img,
  .lead-figure.figure--uncropped .figure__frame img { aspect-ratio: auto; object-fit: fill; }
}

/* Бічна ілюстрація в розділі (фото, ікона): у правій колонці на комп'ютері, праворуч у тексті на планшеті */
.figure--side { margin: 0.4em 0 1.2em; }
@media (min-width: 1100px) {
  .figure--side {
    float: right;
    clear: right;
    width: var(--w-side);
    margin: 0.35em calc(-1 * (var(--w-side) + var(--gap-side))) 1.2em 0;
  }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .figure--side { float: right; clear: right; width: 42%; max-width: 300px; margin: 0.35em 0 1em 28px; }
}
.figure--side img[height="800"][width="562"] { max-height: 420px; width: auto; margin: 0 auto; }

/* Телефон: спершу назва і перший абзац (що це і де), потім ілюстрація, потім «Коротко» */
@media (max-width: 719px) {
  .article { display: flex; flex-direction: column; }
  .article-intro { display: contents; }
  .article-head { order: 1; }
  .article .lead { order: 2; }
  .article .lead-figure { order: 3; margin: 4px 0 8px; }
  .article .qa { order: 4; }
  .article-body { order: 5; }
  .article-end { order: 6; }
  .article .lead p:last-child { margin-bottom: 0.9em; }
}

/* Широка ілюстрація (документ, карта): на паспарту, ширша за колонку тексту */
.figure--wide {
  clear: both;
  margin: 2em 0;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.figure--wide .figure__frame {
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: 0 1px 2px rgba(58, 42, 16, .10), 0 6px 18px rgba(58, 42, 16, .10);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.figure--wide figcaption { max-width: var(--w-text); margin: 16px auto 0; }
.figure--wide .figure__frame img { width: auto; max-width: 100%; max-height: 440px; }   /* карта не займає весь екран */
@media (min-width: 1100px) {
  .figure--wide { margin-right: calc(-1 * (var(--w-side) + var(--gap-side))); }
}
@media (max-width: 719px) {
  .figure--wide { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 16px; border-radius: 0; }
}

/* ───────────── Текст статті ───────────── */
.prose { font-size: var(--fs-text); line-height: var(--lh-text); }
.prose p { margin: 0 0 1em; }
.prose h2 {
  clear: both;
  margin: 2.1em 0 0.55em;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose h3 {
  margin: 1.6em 0 0.4em;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.3;
}
.prose em, .prose i { font-style: italic; }
.prose .old { font-style: italic; }           /* стара назва чи форма в джерелі */
.prose strong { font-weight: 700; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  margin-top: 20px;
}
.lead p:first-child::first-letter { /* без буквиці: спокійно, як у Britannica */ }

/* Цитата-доказ: оригінал + переклад */
.quote {
  margin: 1.4em 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--accent);
}
.quote__orig {
  margin: 0;
  font-style: italic;
  color: var(--ink);
}
.quote__tr {
  margin: 8px 0 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-2);
}
.quote__src {
  display: block;
  margin-top: 6px;
  font: 400 var(--fs-cap)/1.45 var(--font-ui);
  color: var(--ink-3);
}
.quote__src a { color: var(--ink-3); text-decoration-color: var(--line-strong); }

/* Пояснення на полях (Ukraїner): на комп'ютері — у правій колонці, нижче — тихий абзац у тексті */
.sidenote {
  margin: 0 0 1em;
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--line);
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}
.sidenote b {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--ink);
}
@media (min-width: 1100px) {
  .sidenote {
    float: right;
    clear: right;
    width: var(--w-side);
    margin: 0.3em calc(-1 * (var(--w-side) + var(--gap-side))) 1em 0;
    padding: 0 0 0 16px;
  }
}

/* Позначка примітки [n]: дрібна, але з ціллю дотику ≥ 44 px (рядок від цього не росте) */
.fn {
  font-family: var(--font-ui);
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
  white-space: nowrap;
}
.fn a {
  /* inline, а не inline-block: інакше браузер може перенести [n] на новий рядок окремо від слова */
  padding: 14px 2px;
  margin: 0 -1px;
  text-decoration: none;
  font-weight: 400;
  color: var(--ink-3);
}
.fn a:hover, .fn a:focus-visible { color: var(--accent); }
.fn + .fn a { margin-left: -3px; }
.fn a:hover { text-decoration: underline; }

/* ───────────── «Коротко» — акордеон питань ───────────── */
.qa { margin: 28px 0 8px; }
.qa__title {
  margin: 0 0 10px;
  font: 700 var(--fs-ui)/1.3 var(--font-ui);
  color: var(--ink);
}
.qa__item {
  margin: 0 0 8px;
  background: var(--surface);
  border-radius: var(--radius);
}
.qa__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  font: 500 1rem/1.4 var(--font-ui);
  color: var(--ink);
  border-radius: var(--radius);
}
.qa__item > summary::-webkit-details-marker { display: none; }
.qa__item > summary:hover { background: var(--surface-2); }
.qa__item > summary svg { flex: none; transition: transform .15s ease; }
.qa__item[open] > summary svg { transform: rotate(180deg); }
.qa__answer {
  padding: 2px 16px 14px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
}
.qa__answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .qa__item > summary svg { transition: none; }
}

/* ───────────── Картка застосунку (одна на сторінку) ───────────── */
.promo {
  clear: both;
  position: relative;
  margin: 2.4em 0 0;
  padding: 16px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-ui);
}
.promo__label {
  margin: 0 0 10px;
  font-size: var(--fs-cap);
  line-height: 1.4;
  color: var(--ink-3);
}
.promo__body { display: flex; gap: 16px; align-items: flex-start; }
.promo__icon { flex: none; width: 40px; height: 40px; }
.promo .promo__title {           /* сильніший селектор: картка стоїть усередині .prose */
  clear: none;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink);
}
.promo__text {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.promo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 14px 0 0;
}
.promo__note { font-size: var(--fs-cap); color: var(--ink-3); }
.promo__hide {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: var(--touch);
  min-height: var(--touch);
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: 400 var(--fs-cap)/1 var(--font-ui);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.promo__hide:hover { color: var(--accent); }
.promo[hidden] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 var(--fs-ui)/1.2 var(--font-ui);
  text-decoration: none;
}
.btn:hover { background: var(--accent-press); color: var(--on-accent); text-decoration: none; }
.btn--quiet {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line-strong);
}
.btn--quiet:hover { background: var(--surface); color: var(--accent-press); }

/* ───────────── Кінець статті: примітки + «Читати далі» ───────────── */
.article-end { clear: both; }
.section-title {
  margin: 2.4em 0 0.6em;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.375rem;
  line-height: 1.25;
}

.notes {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: note;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-2);
}
.notes > li {
  counter-increment: note;
  position: relative;
  display: flex;
  gap: 4px;
  padding: 8px 8px 8px 40px;
  border-top: 1px solid var(--line);
  border-radius: 4px;
}
.notes > li::before {
  content: counter(note);
  position: absolute;
  left: 4px;
  top: 8px;
  min-width: 28px;
  font: 600 0.875rem/1.75 var(--font-ui);
  color: var(--accent);
}
.notes > li:target { background: var(--accent-tint); }
.notes cite { font-style: italic; }
.notes__text { flex: 1 1 auto; }
.notes__text a { white-space: nowrap; }
.notes__back {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  margin: -10px -8px -10px 0;
  color: var(--ink-3);
  font-family: var(--font-ui);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.notes__back:hover { color: var(--accent); background: var(--surface); }
.notes.is-collapsed > li:nth-child(n + 4) { display: none; }
.notes__toggle { margin-top: 10px; }

.read-next { margin: 2.6em 0 0; }
.read-next__label {
  margin: 0 0 10px;
  font: 700 var(--fs-ui)/1.3 var(--font-ui);
  color: var(--ink);
}
.card-h {
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.card-h:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.card-h:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.card-h__thumb {
  flex: none;
  width: 168px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.card-h__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.card__kicker {
  font: 600 var(--fs-cap)/1.4 var(--font-ui);
  color: var(--ink-3);
}
.card__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--accent);
}
.card__desc {
  margin: 6px 0 0;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 519px) {
  .card-h { gap: 12px; padding: 10px; }
  .card-h__thumb { width: 96px; aspect-ratio: 1; }
  .card__title { font-size: 1.125rem; }
}

/* ───────────── Хаб (громада, район) ───────────── */
.hub { margin-top: 12px; }
.hub-text { max-width: var(--w-text); }
.article--hub { max-width: none; }
@media (min-width: 860px) {
  .article--hub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    column-gap: 48px;
    grid-template-areas: "head fig" "intro fig";
    grid-template-rows: auto 1fr;
  }
  .article--hub .article-head { grid-area: head; }
  .article--hub .lead-figure { grid-area: fig; align-self: start; float: none; width: auto; max-width: none; margin: 26px 0 0; }
  .article--hub .article-intro { grid-area: intro; }
  .article--hub .title { font-size: clamp(2.375rem, 1.4rem + 2.4vw, 3.25rem); }
}
@media (max-width: 859px) {
  .article--hub .lead-figure { float: none; width: auto; max-width: none; margin: 18px 0 4px; }
  .article--hub .lead-figure .figure__frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--focus, 50% 50%); }
}
.hub .qa { margin-top: 32px; }

.hub-poster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  margin: 16px 0 0;
}
.hub-poster__kicker {
  margin: 0 0 10px;
  font: 600 var(--fs-cap)/1.4 var(--font-ui);
  color: var(--ink-3);
}
.hub-poster__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.375rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hub-poster__lead {
  margin: 16px 0 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
}
.hub-poster .figure__frame img { aspect-ratio: 67 / 36; object-fit: cover; }
@media (max-width: 859px) {
  .hub-poster { grid-template-columns: 1fr; gap: 20px; }
}

.hub-section { clear: both; margin: 3em 0 0; }
.hub-section__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.75rem;
  line-height: 1.2;
}

/* «Найцікавіше»: картки з мініатюрою. Уся картка клікабельна через розтягнуте посилання назви,
   а [n] в описі лишаються окремими посиланнями (без вкладених <a>). */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card { position: relative; display: flex; flex-direction: column; }
.card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 12px;
}
/* Критик, друге коло: порожніх «заглушок» замість мініатюр немає. Якщо зображень у розділі 2 або 3,
   вони стоять ширшим першим рядом; картки без зображення — другим рядом, текстом, з лінією згори. */
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.cards--2 .card__thumb { aspect-ratio: 16 / 9; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 28px; }
.cards--3 .card__thumb { aspect-ratio: 3 / 2; }
.cards--text { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 30px; }
.cards--text-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.cards--text > li { padding: 14px 0 18px; border-top: 1px solid var(--line); }
.cards--text .card__link::after { inset: -1px 0 0; border-radius: 0; }
.card .card__kicker { display: block; }
.card h3.card__title { margin: 2px 0 0; }
.card__link { color: var(--accent); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card:hover .card__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.card:hover .card__thumb { border-color: var(--line-strong); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 4px; }
.card .card__desc { -webkit-line-clamp: unset; display: block; overflow: visible; }
.card .fn { position: relative; z-index: 2; }
@media (max-width: 999px) {
  .cards, .cards--3, .cards--text, .cards--text-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .cards, .cards--2, .cards--3, .cards--text, .cards--text-4 { grid-template-columns: 1fr; gap: 0; }
  .cards > li + li { border-top: 1px solid var(--line); }
  .card { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; align-items: start; }
  .card__thumb { grid-row: 1 / span 3; width: 88px; aspect-ratio: 1; margin: 2px 0 0; }
  .cards--2 .card__thumb, .cards--3 .card__thumb { aspect-ratio: 1; }
  .card .card__title { font-size: 1.125rem; }
  .card .card__desc { margin-top: 4px; }
  /* текстові картки на телефоні — той самий список, лише без мініатюри */
  .cards--text { margin-top: 0; border-top: 1px solid var(--line); }
  .cards--text > li { display: block; padding: 14px 0; }
}

.hub-note {
  margin: -6px 0 14px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}

/* Сітка сіл громади: назва, рік, одна коротка ознака */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.places > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  align-content: start;      /* рядки сусідніх карток різної висоти: опис не «сповзає» вниз */
  column-gap: 12px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
}
.places__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--accent);
  text-decoration: none;
  justify-self: start;
}
.places__name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.places__meta {
  font: 600 var(--fs-cap)/1.4 var(--font-ui);
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 719px) {
  .places.is-collapsed > li:nth-child(n + 11) { display: none; }
  .places > li { padding: 10px 0 11px; }
}
.list-toggle { margin-top: 10px; }
.places__note {
  grid-column: 1 / -1;
  margin-top: 3px;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-2);
}
.more-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  margin-top: 8px;
  font: 600 var(--fs-ui)/1.3 var(--font-ui);
}

/* Рядок стану під описом картки (охоронний статус — простим фактом) */
.card__status {
  margin: 6px 0 0;
  font: 400 var(--fs-cap)/1.45 var(--font-ui);
  color: var(--ink-3);
}
@media (max-width: 559px) {
  .card .card__status { grid-column: 2; margin-top: 4px; }
}

/* «Теми» області: текстові картки без зображень, 4 в ряд → 2 → список */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  position: relative;
  padding: 14px 16px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tile:hover { border-color: var(--line-strong); background: var(--surface); }
.tile__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.tile__link { color: var(--accent); text-decoration: none; }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.tile:hover .tile__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.tile__link:focus-visible { outline: none; }
.tile__link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile__desc {
  margin: 6px 0 0;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}
.tile .fn { position: relative; z-index: 2; }
@media (max-width: 999px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .tiles { grid-template-columns: 1fr; gap: 10px; }
}

/* «Міста і села за громадами»: громада — посилання, далі перелік назв текстом */
.groups { margin: 0; padding: 0; list-style: none; }
.groups > li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 28px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
}
.groups__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.groups__name a { color: var(--accent); text-decoration: none; }
.groups__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.groups__list {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-2);
}
.groups__centre { color: var(--ink); font-weight: 700; }
/* 200 назв поспіль — «стіна»: перші 3 громади на будь-якій ширині, решта за кнопкою (без JS видно все) */
.groups.is-collapsed > li:nth-child(n + 4) { display: none; }
@media (max-width: 719px) {
  .groups > li { grid-template-columns: 1fr; row-gap: 4px; padding: 10px 0 12px; }
}

/* Рядок авторства фото на картках (CC BY-SA: автор, ліцензія, джерело) */
.credits-line {
  margin: 2em 0 0;
  font: 400 var(--fs-cap)/1.55 var(--font-ui);
  color: var(--ink-3);
}
.credits-line b { font-weight: 600; color: var(--ink-2); }
.credits-line a { color: var(--ink-3); text-decoration-color: var(--line-strong); }
.credits-line a:hover { color: var(--accent); }

/* ───────────── Розшифровка джерела: оригінал | переклад ───────────── */
.method-line {
  margin: -0.2em 0 1.1em;
  font: 400 var(--fs-cap)/1.5 var(--font-ui);
  color: var(--ink-3);
}
.transcript { margin: 0 0 1.8em; border-top: 1px solid var(--line); }
.transcript__cols { display: none; }
.transcript__row { padding: 16px 0 2px; border-bottom: 1px solid var(--line); }
.transcript__cell > p { margin: 0 0 1em; }
.transcript .transcript__label {
  margin: 0 0 4px;
  font: 600 var(--fs-cap)/1.4 var(--font-ui);
  color: var(--ink-3);
}
.transcript__tr { padding-top: 12px; border-top: 1px dashed var(--line); }
/* Телефон і планшет (критик, друге коло): переклад під оригіналом — з тихою лінією ліворуч, щоб око одразу
   розрізняло «книга 1864» і «наш переклад», не читаючи підписів */
@media (max-width: 1099px) {
  .transcript__tr { margin: 0 0 14px; padding: 2px 0 0 14px; border-top: 0; border-left: 2px solid var(--line-strong); }
  .transcript__tr > p:last-child { margin-bottom: 0.4em; }
}
@media (min-width: 1100px) {
  /* на комп'ютері — на всю ширину сторінки, дві колонки ≈ 500 px: абзац до абзацу */
  .article--source .transcript { margin-right: calc(-1 * (var(--w-side) + var(--gap-side))); }
  .transcript { border-top: 0; }
  .transcript__cols,
  .transcript__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 28px;
  }
  .transcript__cols {
    padding: 0 0 8px;
    border-bottom: 1px solid var(--line);
    font: 600 var(--fs-cap)/1.4 var(--font-ui);
    color: var(--ink-3);
  }
  .transcript__cols span + span { padding-left: 28px; }
  .transcript__row { padding: 18px 0 2px; }
  .transcript__tr { padding: 0 0 0 28px; border-top: 0; border-left: 1px solid var(--line); }
  .transcript .transcript__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.prose .textnote { font-size: 1.0625rem; line-height: 1.62; margin: 0 0 0.8em; }

.mentions { margin: 0 0 1em; padding: 0; list-style: none; }
.mentions li { position: relative; margin: 0 0 0.45em; padding-left: 20px; }
.mentions li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.74em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* «Про джерело»: компактна картка «назва — значення» */
.facts {
  margin: 0 0 1.6em;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.facts__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 20px;
  padding: 6px 0;
}
/* критик, друге коло: без лінії під кожним рядком — картка джерела, а не таблиця адмінки */
.facts { padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 2px; font: 600 var(--fs-cap)/1.45 var(--font-ui); color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 519px) {
  .facts__row { grid-template-columns: 1fr; row-gap: 2px; }
}
.prose .cite-box {
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 2.2em 0 0;
}
.pager__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: var(--touch);
  padding: 10px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.pager__link:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.pager__link--next { text-align: right; }
.pager__dir { font: 600 var(--fs-cap)/1.4 var(--font-ui); color: var(--ink-3); }
.pager__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--accent);
}
.pager__link:hover .pager__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* ───────────── Головна ───────────── */
.page-home .topbar__inner { gap: 16px; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  column-gap: 56px;
  align-items: start;
  margin: 44px 0 0;
}
.home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.3rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.home-hero__dek {
  margin: 16px 0 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
}
.home-hero__figure { margin: 6px 0 0; }
/* критик, друге коло: смуга 1600 × 700 давала праву колонку ≈230 px заввишки при лівій ≈570 px — під картою
   лишалася порожнеча. Кадр 16:10 з того самого файлу; вікно 22–92 % ширини тримає Богуслав, Хохітву, Дешки й Тептіївку. */
@media (min-width: 900px) {
  .home-hero__figure .figure__frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 72% 50%; }
}

.home-search { margin: 28px 0 0; }
.home-search__label {
  display: block;
  margin: 0 0 8px;
  font: 600 var(--fs-ui)/1.4 var(--font-ui);
  color: var(--ink);
}
.home-search__row { display: flex; gap: 8px; }
.home-search .home-search__input { height: 52px; font-size: 1.0625rem; }
.home-search__btn { flex: none; min-height: 52px; padding: 0 22px; border: 0; cursor: pointer; }
.home-search__hint {
  margin: 8px 0 0;
  font: 400 var(--fs-cap)/1.5 var(--font-ui);
  color: var(--ink-3);
}
.home-search__hint a { color: var(--ink-2); }

.home-oblasts { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.home-oblasts__title { margin: 0 0 6px; font: 700 var(--fs-ui)/1.3 var(--font-ui); color: var(--ink); }
.oblast-list { margin: 0; padding: 0; list-style: none; }
.oblast-list li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
.oblast-list__name {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.375rem;
  line-height: 1.25;
}
.oblast-list__meta { font: 400 var(--fs-cap)/1.45 var(--font-ui); color: var(--ink-3); }
.home-oblasts__soon { margin: 8px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
@media (max-width: 899px) {
  .home-hero { grid-template-columns: 1fr; margin-top: 28px; }
  .home-hero__figure { margin-top: 28px; }
}
@media (max-width: 719px) {
  .home-hero { margin-top: 22px; }
  .home-hero__figure .figure__frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--focus, 50% 50%); }
  .home-search__btn { padding: 0 16px; }
}

.books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.book { padding: 14px 0 6px; border-top: 1px solid var(--line); }
.book .card__kicker { display: block; }
.book__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.book__title a { color: var(--accent); text-decoration: none; }
.book__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.book__text {
  margin: 6px 0 0;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}
.books__more { margin: 6px 0 0; font: 600 var(--fs-ui)/1.3 var(--font-ui); color: var(--ink-3); }
.books__more .more-link { margin-top: 0; }
@media (max-width: 899px) {
  .books { grid-template-columns: 1fr; }
}
.home-narrow, .home-notes { max-width: var(--w-text); }

/* ───────────── Футер ───────────── */
.footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font: 400 var(--fs-cap)/1.55 var(--font-ui);
  color: var(--ink-3);
}
.footer__brand {
  margin: 0 0 10px;
  color: var(--ink-2);
}
.footer__brand b {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-right: 6px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 8px;
  margin-left: -8px;
  margin-right: 8px;
  color: var(--ink-3);
  text-decoration-color: var(--line-strong);
}
.footer__links a:hover { color: var(--accent); }
.footer__mock { margin: 10px 0 0; }
.footer__mock b { font-weight: 600; color: var(--ink-2); }
.footer__mock a { color: var(--ink-3); text-decoration-color: var(--line-strong); padding: 12px 0; }
.footer__mock a:hover { color: var(--accent); }
.footer__meta { margin: 10px 0 0; }
.footer__meta a { color: var(--ink-3); text-decoration-color: var(--line-strong); padding: 12px 0; }

/* ───────────── Службове для демо-сторінки шаблону (на сайті не буде) ───────────── */
.tpl-divider {
  margin: 88px 0 0;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font: 400 1rem/1.5 var(--font-ui);
  color: var(--ink-2);
  background: var(--bg);
}
.tpl-divider b { color: var(--ink); }

/* ───────────── Телефон ───────────── */
@media (max-width: 719px) {
  :root {
    --fs-text: 1.125rem;   /* 18 px */
    --lh-text: 1.65;
    --fs-lead: 1.1875rem;  /* 19 px */
    --gutter: 16px;
  }
  .crumbs { margin-top: 14px; }
  .prose h2 { font-size: 1.5rem; margin-top: 1.9em; }
  .promo { padding: 12px 14px 14px; }
  .promo__label { margin-bottom: 6px; }
  .promo__body { gap: 12px; }
  .promo__icon { width: 36px; height: 36px; }
  .promo .promo__title { font-size: 1.125rem; }
  .promo__actions { margin-top: 10px; }
  .footer { margin-top: 56px; }
}

/* ───────────── Друк ───────────── */
@media print {
  .topbar, .promo, .read-next, .notes__toggle, .notes__back, .tpl-divider, .skip-link, .footer__mock, .list-toggle { display: none !important; }
  .groups.is-collapsed > li { display: grid !important; }
  .notes.is-collapsed > li { display: flex !important; }
  body { background: #fff; font-size: 11pt; }
  a { color: inherit; }
  .qa__item { background: none; border: 1px solid #ccc; }
}

/* Контраст (WCAG 2.x, перевірено скриптом за формулою відносної яскравості):
   --ink #1E2A32:     14,4 : 1 на --bg #FFFDF9 · 13,4 : 1 на --surface #F8F4EC · 12,3 : 1 на --surface-2 / --accent-tint
   --ink-2 #3D4952:    9,1 : 1 на --bg · 8,4 : 1 на --surface · 7,8 : 1 на --surface-2
   --ink-3 #525D66:    6,6 : 1 на --bg · 6,1 : 1 на --surface · 5,7 : 1 на --surface-2 / --accent-tint
   --accent #1F5E66:   7,3 : 1 на --bg · 6,7 : 1 на --surface · 6,2 : 1 на --surface-2 / --accent-tint
   --on-accent #FFF:   7,4 : 1 на --accent · 9,8 : 1 на --accent-press
   --line-strong #857860 (межі поля пошуку й тихої кнопки): 4,3 : 1 на --bg, 3,9 : 1 на --surface (поріг для нетекстових елементів — 3 : 1) */

/* Public information pages use the article reading measure. */
.public-info{max-width:780px;margin:0 0 48px}.public-info .promo{max-width:100%}.cards--text h2.card__title{margin:2px 0 0}

.home-region-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}.home-region-list li{padding:8px 0}.home-region-list .oblast-list__name{font-size:1.125rem}.home-region-list .oblast-list__meta{display:block}.public-filter{max-width:480px;margin:8px 0 12px}.reference-note{background:var(--surface);padding:16px;border:1px dashed var(--line-strong);border-radius:var(--radius);color:var(--ink-2)}.reference-note__title{font-family:Bitter,serif;font-size:1.125rem;margin:4px 0;color:var(--ink-2);text-decoration:none}.reference-note__status{font-family:var(--sans);font-size:.875rem;border-top:1px solid var(--line);padding-top:12px}.reference-note .card__thumb{margin-bottom:10px}.public-related{max-width:1068px}.hub-head h1{overflow-wrap:anywhere}#place-list > [hidden]{display:none!important}@media(max-width:899px){.home-region-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:559px){.home-region-list{grid-template-columns:1fr}.reference-note{margin:12px 0}.reference-note .card__thumb{width:88px;float:right;margin-left:14px}}

.home-region-list > li{display:block}.home-region-list .oblast-list__meta{margin:4px 0 0}.reference-note__status{font-family:system-ui,sans-serif}.search-empty{grid-column:1/-1;padding:16px 0}

.tile__scope{font-family:system-ui,sans-serif;font-size:.875rem;color:var(--ink-3);border-top:1px solid var(--line);padding-top:10px;margin-top:12px}
