/* ==========================================================================
   ХАЙДУТИ — design system
   --------------------------------------------------------------------------
   1. Tokens            8. Home sections
   2. Reset & base      9. Interior pages
   3. Typography       10. Editorial (news, articles)
   4. Layout           11. Forms
   5. Ornament         12. Footer
   6. Buttons & links  13. Motion
   7. Header & nav     14. Utilities & print
   ========================================================================== */

/* 0. Fonts ------------------------------------------------------------------
   Sofia Sans by Lettersoup (Botio Nikoltchev), drawn with Bulgarian Cyrillic
   letterforms. Self-hosted: visitors never contact a third party. Variable
   weight, split into Cyrillic and Latin subsets so a page loads only what it
   uses. SIL Open Font License 1.1 (see LICENSE-FONTS.md).
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-latin.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: "Sofia Sans";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-italic-latin.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: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-extra-condensed-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-extra-condensed-latin.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;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Colour: linen, ink, madder red, old gold, Balkan forest */
  --linen: #f3efe6;
  --linen-2: #e9e3d6;
  --paper: #fbf9f4;
  --ink: #141517;
  --charcoal: #1c1e21;
  --charcoal-2: #25272b;
  --charcoal-3: #33363b;
  --stone-700: #4c4943;
  --stone-600: #6b675f;
  --stone-400: #a39d91;
  --stone-300: #bcb6aa;
  --stone-200: #d8d2c6;
  --red: #a51c20;
  --red-600: #8f171b;
  --red-deep: #6b1216;
  --red-light: #e8605a;
  --gold: #b8945a;
  --gold-light: #d4b886;
  --gold-dark: #7a5c2c;
  --forest: #1f3b2f;
  --forest-2: #2b4c3d;

  --text: var(--ink);
  --text-muted: var(--stone-600);
  --bg: var(--linen);
  --line: rgba(20, 21, 23, 0.14);
  --line-strong: rgba(20, 21, 23, 0.28);
  --line-on-dark: rgba(243, 239, 230, 0.16);

  /* Type */
  --font-sans: "Sofia Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sofia Sans Extra Condensed", "Sofia Sans", "Arial Narrow", "Segoe UI", system-ui, sans-serif;

  --fs-display: clamp(3.2rem, 1rem + 6.6vw, 8.25rem);
  --fs-h1: clamp(2.9rem, 1.6rem + 5vw, 6rem);
  --fs-h2: clamp(2.35rem, 1.5rem + 3.1vw, 4.4rem);
  --fs-h3: clamp(1.3rem, 1.12rem + 0.7vw, 1.7rem);
  --fs-h4: 1.15rem;
  --fs-lead: clamp(1.14rem, 1.04rem + 0.42vw, 1.4rem);
  --fs-body: clamp(1.03rem, 1rem + 0.14vw, 1.125rem);
  --fs-small: 0.9rem;
  --fs-xs: 0.8rem;

  /* Space */
  --gutter: clamp(1.25rem, 4.2vw, 3rem);
  --container: 80rem;
  --container-narrow: 46rem;
  --section-y: clamp(4.5rem, 2.6rem + 6.4vw, 9rem);
  --header-h: 4.5rem;

  --radius: 2px;
  --radius-lg: 4px;
  --shadow-1: 0 1px 2px rgba(20, 21, 23, 0.06), 0 4px 18px rgba(20, 21, 23, 0.06);
  --shadow-2: 0 2px 6px rgba(20, 21, 23, 0.08), 0 18px 48px rgba(20, 21, 23, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Ornament sources (used as masks, coloured with background-color) */
  --shevitsa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' viewBox='0 0 16 18'%3E%3Cpath d='M0 0h16v1.5H0zM0 16.5h16V18H0zM6 4h2v2H6zM4 6h2v2H4zM8 6h2v2H8zM2 8h2v2H2zM10 8h2v2h-2zM6 8h2v2H6zM4 10h2v2H4zM8 10h2v2H8zM6 12h2v2H6zM14 8h2v2h-2z'/%3E%3C/svg%3E");
  --stitch-row: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath d='M0 2h2v2H0zM4 0h2v2H4zM4 4h2v2H4zM8 2h2v2H8z'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 47.99rem) {
  :root { --header-h: 4rem; }
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-light :focus-visible,
.section--light :focus-visible,
.section--paper :focus-visible,
.section--linen-2 :focus-visible { outline-color: var(--red); }
.name-note :focus-visible { outline-color: var(--gold); }

::selection { background: var(--red); color: var(--paper); }

hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-2);
}
.skip-link:focus { top: 1rem; }

/* 3. Typography ------------------------------------------------------------ */
.display,
.h1,
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); font-weight: 900; line-height: 0.86; letter-spacing: 0; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 {
  font-size: var(--fs-h3);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h4 { font-size: var(--fs-h4); font-weight: 750; line-height: 1.3; }

.accent { color: var(--red); }
.section--dark .accent,
.hero .accent,
.page-hero .accent { color: var(--red-light); }
.gold { color: var(--gold); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 400;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: var(--fs-xs);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  line-height: 1.3;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  background: currentColor;
  transform: rotate(45deg);
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-final .eyebrow { color: var(--gold); }
.section--red .eyebrow,
.section--forest .eyebrow { color: var(--gold-light); }

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }

.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
}
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; font-weight: 750; line-height: 1.25; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.45em; }
.prose ul > li::marker { color: var(--red); }
.prose ol > li::marker { color: var(--red); font-weight: 700; }
.prose strong { font-weight: 750; }
.prose blockquote {
  margin: 2em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--red);
  font-size: 1.2em;
  line-height: 1.45;
  font-style: italic;
}
.prose blockquote p + p { margin-top: 0.6em; }
.prose cite, .prose blockquote footer { display: block; margin-top: 0.7em; font-size: 0.8em; font-style: normal; font-weight: 700; color: var(--text-muted); }
.prose figure { margin: 2em 0; }

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--light { background: var(--linen); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--linen-2 { background: var(--linen-2); color: var(--ink); --text-muted: var(--stone-700); }
.section--dark { background: var(--charcoal); color: var(--linen); --text-muted: var(--stone-300); --line: var(--line-on-dark); }
.section--forest { background: var(--forest); color: var(--linen); --text-muted: #c4cfc6; --line: var(--line-on-dark); }
.section--red { background: var(--red-deep); color: var(--paper); --text-muted: #edd5cf; --line: rgba(251, 249, 244, 0.2); }

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.section--dark.grain::after,
.section--red.grain::after,
.section--forest.grain::after { opacity: 0.16; mix-blend-mode: soft-light; }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 1.8rem + 2.5vw, 4.5rem); }
.section-head--split { align-items: end; }
@media (min-width: 60rem) {
  .section-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; }
}
.section-head .lead { max-width: 40rem; color: var(--text-muted); }

.split { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 6rem); align-items: start; }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split--center { align-items: center; }
  .sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.stack > * + * { margin-top: var(--stack, 1.25rem); }
.stack-lg > * + * { margin-top: 2rem; }

/* 5. Ornament -------------------------------------------------------------- */
.ornament-band {
  display: block;
  height: 18px;
  width: 100%;
  background-color: var(--red);
  -webkit-mask-image: var(--shevitsa);
  mask-image: var(--shevitsa);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 16px 18px;
  mask-size: 16px 18px;
}
.ornament-band--gold { background-color: var(--gold); }
.ornament-band--linen { background-color: var(--linen); opacity: 0.9; }
.ornament-band--muted { background-color: var(--stone-300); }
.ornament-band--short { width: 7.5rem; }

.stitch-row {
  display: block;
  height: 6px;
  width: 4.5rem;
  background-color: var(--red);
  -webkit-mask: var(--stitch-row) repeat-x left center / 12px 6px;
  mask: var(--stitch-row) repeat-x left center / 12px 6px;
}
.section--dark .stitch-row, .hero .stitch-row, .page-hero .stitch-row { background-color: var(--gold); }

.ornament-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--red);
}
.ornament-rule::before,
.ornament-rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.45; }
.ornament-rule svg { width: 1.4rem; height: 1.4rem; flex: none; }

.emblem { width: 100%; height: auto; }

/* 6. Buttons & links ------------------------------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--paper);
  --btn-border: var(--red);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover-bg, var(--red-600));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--btn-hover-fg, var(--btn-fg)); border-color: var(--btn-hover-border, var(--btn-border)); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.35s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-border: var(--paper); --btn-hover-bg: var(--gold-light); --btn-hover-border: var(--gold-light); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-border: currentColor; --btn-hover-bg: var(--ink); --btn-hover-fg: var(--paper); --btn-hover-border: var(--ink); }
.section--dark .btn--ghost,
.section--red .btn--ghost,
.section--forest .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.cta-final .btn--ghost { --btn-fg: var(--linen); --btn-border: rgba(243, 239, 230, 0.55); --btn-hover-bg: var(--linen); --btn-hover-fg: var(--ink); --btn-hover-border: var(--linen); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-border: var(--ink); --btn-hover-bg: var(--red); --btn-hover-border: var(--red); }
.btn--lg { min-height: 3.75rem; padding: 1rem 2rem; font-size: 1.05rem; }
.btn--sm { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.86rem; }
@media (max-width: 29.99rem) {
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding-inline: 1.25rem; }
}
.btn[disabled], .btn[aria-disabled="true"], fieldset:disabled .btn { cursor: not-allowed; opacity: 0.55; }
.btn[disabled]::before, fieldset:disabled .btn::before { display: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: left 100%;
  padding-bottom: 0.2em;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform 0.35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow,
.section--forest .link-arrow,
.page-hero .link-arrow { color: var(--gold-light); }
.section--red .link-arrow { color: var(--paper); }

.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* 7. Header & nav ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--linen);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.45s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(14, 15, 17, 0.55), rgba(14, 15, 17, 0));
  transition: opacity 0.4s;
}
.site-header.is-scrolled {
  background: rgba(22, 23, 26, 0.94);
  box-shadow: 0 1px 0 rgba(243, 239, 230, 0.08), 0 10px 30px rgba(0, 0, 0, 0.18);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(22, 23, 26, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand__mark { width: 2.4rem; height: 2.4rem; flex: none; transition: transform 0.8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(45deg); }
.mark-star { fill: #c42a2d; }
.mark-core { fill: var(--gold-light); }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}
.brand__tag {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.72;
}
@media (max-width: 26rem) {
  .brand__tag { display: none; }
}

.nav { display: none; }
@media (min-width: 64rem) {
  .nav { display: flex; align-items: center; gap: 2.2rem; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .nav { gap: 1.25rem; }
  .nav .nav__link { padding-inline: 0.5rem; }
  .nav .nav__link::after { left: 0.5rem; right: 0.5rem; }
}
.nav__list { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.86;
  transition: opacity 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--red-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link[aria-current]::after { transform: scaleX(1); }
.nav__link[aria-current] { opacity: 1; }
.nav__link[aria-current]::after { background: var(--gold); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.4rem 0.5rem 0.8rem;
  background: none;
  border: 0;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (min-width: 64rem) { .nav-toggle { display: none; } }
.nav-fallback { display: none; }
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 63.99rem) {
  html:not(.js) .nav-fallback {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.8rem;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}
.nav-toggle__bars { position: relative; width: 1.6rem; height: 0.9rem; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.25s, top 0.45s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: calc(50% - 1px); width: 70%; left: 30%; }
.nav-toggle__bars span:nth-child(3) { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--charcoal);
  color: var(--linen);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-1.5rem);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s;
}
.mobile-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.14;
  pointer-events: none;
}
@media (min-width: 64rem) { .mobile-nav { display: none; } }
.mobile-nav__list { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid var(--line-on-dark); }
.mobile-nav__list li { border-bottom: 1px solid var(--line-on-dark); }
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 3vw, 2.9rem);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.mobile-nav__link .icon { width: 1.4rem; height: 1.4rem; color: var(--gold); }
.mobile-nav__link[aria-current] { color: var(--gold-light); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.mobile-nav__foot { margin-top: auto; display: grid; gap: 1.5rem; }
.mobile-nav__foot .btn { width: 100%; }
.mobile-nav__motto { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-300); font-weight: 700; }

/* 8. Home sections --------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(42rem, 100svh);
  padding-top: calc(var(--header-h) + clamp(1.75rem, 0.5rem + 4vh, 4.5rem));
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 74% 58%, rgba(184, 148, 90, 0.22), transparent 62%),
    radial-gradient(ellipse 60% 70% at 10% 20%, rgba(107, 18, 22, 0.45), transparent 70%),
    linear-gradient(180deg, #121316 0%, #1b1d21 46%, #24221f 100%);
  color: var(--linen);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.17;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero__sun {
  position: absolute;
  right: clamp(-12rem, -8vw, -2rem);
  top: 42%;
  width: clamp(26rem, 52vw, 50rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
  color: var(--gold);
}
.hero__sun-disc {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 184, 134, 0.85), rgba(184, 148, 90, 0.38) 55%, rgba(184, 148, 90, 0) 72%);
  filter: blur(2px);
}
.hero__star {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  animation: slow-turn 240s linear infinite;
}
.hero__mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 54%;
  min-height: 16rem;
}
.hero__mountains svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__layer { will-change: translate; }
@media (max-width: 47.99rem) {
  .hero__star { opacity: 0.32; }
  .hero__sun { top: 30%; }
  .hero__triad { flex-direction: column; }
  .hero__triad span::before { content: ""; width: 0.4em; height: 0.4em; background: var(--red-light); transform: rotate(45deg); }
}

.hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(2.25rem, 1rem + 3vh, 4rem);
}
.hero__eyebrow { margin-bottom: clamp(1.25rem, 0.8rem + 1.5vh, 2rem); }
.hero__title { max-width: 11ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.hero__title .line > span { display: block; }
.hero__triad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: clamp(1.1rem, 0.8rem + 1vh, 1.75rem);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--gold-light);
  text-shadow: 0 1px 14px rgba(10, 11, 12, 0.65);
}
.hero__triad span { display: inline-flex; align-items: center; gap: 1.1rem; }
.hero__triad span + span::before {
  content: "";
  width: 0.4em;
  height: 0.4em;
  background: var(--red-light);
  transform: rotate(45deg);
}
.hero__lead { max-width: 35rem; margin-top: 1.25rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: rgba(243, 239, 230, 0.9); text-shadow: 0 1px 14px rgba(10, 11, 12, 0.65); }
.hero__actions { margin-top: 1.9rem; }

.hero__timeline {
  position: relative;
  border-top: 1px solid var(--line-on-dark);
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.35), rgba(10, 11, 12, 0.7));
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero__timeline { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.timeline-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 48rem) { .timeline-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.timeline-strip li { position: relative; }
.timeline-strip li + li { border-left: 1px solid var(--line-on-dark); }
@media (max-width: 47.99rem) {
  .timeline-strip li:nth-child(3) { border-left: 0; }
  .timeline-strip li:nth-child(n + 3) { border-top: 1px solid var(--line-on-dark); }
}
.timeline-strip a,
.timeline-strip .timeline-strip__item {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem clamp(0.9rem, 2vw, 1.6rem);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s;
}
.timeline-strip a:hover { background: rgba(243, 239, 230, 0.05); }
.timeline-strip__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1;
  color: var(--gold-light);
}
.timeline-strip__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-300); }
.timeline-strip li:last-child .timeline-strip__year { color: var(--red-light); }

/* Intro / pillars */
.intro-statement { max-width: 15ch; }
.pillars {
  display: grid;
  gap: 0;
  margin-top: 2.75rem;
  border-top: 1px solid var(--line-strong);
  list-style: none;
  padding: 0;
}
.pillar {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.3rem 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.pillar__num { grid-row: span 2; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--red); line-height: 1.5; }
.pillar__title { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.01em; }
.pillar__text { color: var(--text-muted); }

/* Priorities */
.priority-grid {
  display: grid;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 40rem) { .priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .priority-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .priority-grid > li:first-child { grid-column: span 2; grid-row: span 2; }
}
.priority-grid > li { display: flex; }
.priority-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-height: 17rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
.priority-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--charcoal);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.priority-card:hover::before,
.priority-card:focus-visible::before { transform: none; }
.priority-card:hover,
.priority-card:focus-visible { color: var(--linen); }
.priority-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.priority-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--red);
  transition: color 0.45s;
}
.priority-card:hover .priority-card__num,
.priority-card:focus-visible .priority-card__num { color: var(--gold); }
.priority-card__icon { width: 2.1rem; height: 2.1rem; stroke-width: 1.5; color: var(--stone-600); transition: color 0.45s; }
.priority-card:hover .priority-card__icon,
.priority-card:focus-visible .priority-card__icon { color: var(--gold-light); }
.priority-card__title {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 1.95rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}
.priority-card__text { font-size: 0.97rem; line-height: 1.5; color: var(--text-muted); transition: color 0.45s; }
.priority-card:hover .priority-card__text,
.priority-card:focus-visible .priority-card__text { color: var(--stone-300); }
.priority-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  transition: color 0.45s;
}
.priority-card__more .icon { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease); }
.priority-card:hover .priority-card__more,
.priority-card:focus-visible .priority-card__more { color: var(--gold-light); }
.priority-card:hover .priority-card__more .icon { transform: translateX(4px); }

.priority-card--feature { background: var(--red); color: var(--paper); justify-content: flex-end; min-height: 22rem; }
.priority-card--feature::before { background: var(--red-deep); }
.priority-card--feature .priority-card__num { color: var(--gold-light); }
.priority-card--feature .priority-card__icon { color: var(--gold-light); width: 2.75rem; height: 2.75rem; }
.priority-card--feature .priority-card__title { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.6rem); max-width: 14ch; }
.priority-card--feature .priority-card__text { color: rgba(251, 249, 244, 0.86); font-size: 1.08rem; max-width: 34rem; }
.priority-card--feature .priority-card__more { color: var(--paper); }
.priority-card--feature:hover .priority-card__text { color: rgba(251, 249, 244, 0.9); }
.priority-card--feature .priority-card__top { margin-bottom: auto; }
.priority-card--feature .priority-card__title { margin-top: 0; }
.priority-card__watermark {
  position: absolute;
  right: -3.5rem;
  bottom: -3.5rem;
  width: 16rem;
  height: 16rem;
  z-index: -1;
  color: rgba(251, 249, 244, 0.08);
  pointer-events: none;
}

@media (min-width: 64rem) {
  .priority-grid > li.priority-grid__wide { grid-column: span 2; }
}
.priority-card--cta { background: var(--charcoal); color: var(--linen); min-height: 15rem; }
.priority-card--cta::before { background: var(--red); }
.priority-card--cta .priority-card__num { color: var(--gold); }
.priority-card--cta .priority-card__icon { color: var(--gold-light); }
.priority-card--cta .priority-card__text { color: var(--stone-300); }
.priority-card--cta .priority-card__more { color: var(--gold-light); }
.priority-card--cta:hover .priority-card__text,
.priority-card--cta:focus-visible .priority-card__text { color: rgba(251, 249, 244, 0.9); }
.priority-card--cta:hover .priority-card__more,
.priority-card--cta:focus-visible .priority-card__more,
.priority-card--cta:hover .priority-card__num,
.priority-card--cta:focus-visible .priority-card__num { color: var(--paper); }
.priority-card--cta .priority-card__title { max-width: 18ch; }

/* Why renewal */
.renewal { overflow: hidden; }
.stat { display: grid; gap: 0.75rem; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5.5rem, 3rem + 11vw, 12.5rem);
  line-height: 0.84;
  padding-bottom: 0.12em;
  letter-spacing: -0.01em;
  color: var(--linen);
}
.stat__value .unit { font-size: 0.42em; letter-spacing: 0.02em; color: var(--red-light); margin-left: 0.08em; }
.stat__label { max-width: 26rem; font-size: 1.15rem; line-height: 1.45; }
.stat__source { font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--stone-300); }
.stat__source::before { content: "Източник: "; font-weight: 700; }

.problem-list { list-style: none; margin: 0; padding: 0; counter-reset: problem; border-top: 1px solid var(--line-on-dark); }
.problem {
  position: relative;
  display: grid;
  gap: 0.4rem 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-on-dark);
  counter-increment: problem;
}
@media (min-width: 40rem) { .problem { grid-template-columns: 3.5rem 1fr; } }
.problem::before {
  content: counter(problem, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--red-light);
}
@media (min-width: 40rem) { .problem::before { grid-row: span 2; } }
.problem__title { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.problem__text { color: var(--stone-300); }
.renewal__close {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  max-width: 24ch;
  text-wrap: balance;
}

/* Historical figures */
.triptych { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); list-style: none; margin: 0; padding: 0; }
@media (min-width: 56rem) { .triptych { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 36rem) and (max-width: 55.99rem) { .triptych .figure-card__plate { aspect-ratio: 16 / 9; } }
.figure-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.figure-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.figure-card__plate {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #2c2e33, var(--charcoal) 70%);
  color: var(--gold);
  isolation: isolate;
}
.figure-card__plate::before {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(184, 148, 90, 0.45);
  pointer-events: none;
}
.figure-card__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.2;
  mix-blend-mode: soft-light;
}
.figure-card__plate .ornament-band { position: absolute; left: 0; right: 0; bottom: 1.6rem; width: auto; margin-inline: 1.8rem; background-color: rgba(184, 148, 90, 0.5); }
.figure-card__initial {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(8rem, 6rem + 6vw, 11rem);
  line-height: 0.8;
  color: var(--gold-light);
  text-shadow: 0 0 60px rgba(184, 148, 90, 0.35);
  transform: translateY(-0.4rem);
}
.figure-card__dates {
  position: absolute;
  top: 1.6rem;
  left: 1.8rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--stone-300);
}
.figure-card__corner {
  position: absolute;
  top: 1.45rem;
  right: 1.7rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--red-light);
}
.figure-card__body { display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.4rem, 1.2rem + 0.8vw, 2rem); flex: 1; }
.figure-card__role { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); }
.figure-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.figure-card__text { color: var(--stone-700); font-size: 1rem; }
.figure-card__legacy {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}
.figure-card__legacy strong { display: block; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.25rem; }

.name-note {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
  background: var(--forest);
  color: var(--linen);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 56rem) { .name-note { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; } }
.name-note::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: soft-light;
}
.name-note__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); line-height: 0.95; text-transform: uppercase; }
.name-note__title span { color: var(--gold-light); }
.name-note p { color: #dbe3dc; }
.name-note .link-arrow { color: var(--gold-light); }
.name-note__mark { position: absolute; right: -4rem; top: -4rem; width: 18rem; height: 18rem; color: rgba(243, 239, 230, 0.05); z-index: -1; }

/* Participate band */
.participate-band { overflow: hidden; }
.participate-band__mark { position: absolute; left: -9rem; bottom: -9rem; width: 34rem; height: 34rem; color: rgba(251, 249, 244, 0.05); pointer-events: none; }
.action-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(251, 249, 244, 0.22); }
.action-list li { border-bottom: 1px solid rgba(251, 249, 244, 0.22); }
.action-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: padding 0.4s var(--ease), background-color 0.4s;
}
.action-list a:hover { padding-left: 1rem; padding-right: 1rem; background: rgba(251, 249, 244, 0.06); }
.action-list .icon { width: 1.75rem; height: 1.75rem; color: var(--gold-light); }
.action-list .icon--arrow { width: 1.3rem; height: 1.3rem; color: var(--paper); transition: transform 0.4s var(--ease); }
.action-list a:hover .icon--arrow { transform: translateX(4px); }
.action-list__title { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.action-list__text { display: block; font-size: 0.95rem; color: var(--text-muted); margin-top: 0.15rem; }

/* News */
.news-grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); list-style: none; margin: 0; padding: 0; }
@media (min-width: 44rem) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-grid > li { display: flex; }
.news-grid > li[hidden] { display: none; }
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.4s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.news-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.news-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--gold);
  isolation: isolate;
}
.news-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.2;
  mix-blend-mode: soft-light;
  z-index: 1;
}
.news-card__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.news-card:hover .news-card__visual svg { transform: scale(1.04); }
.news-card__visual--red { background: var(--red-deep); }
.news-card__visual--forest { background: var(--forest); }
.news-card__visual--stone { background: #3a3631; }
.news-card__visual-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(243, 239, 230, 0.92);
}
.news-card__body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.5rem 1.5rem 1.75rem; flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: var(--fs-xs); color: var(--text-muted); }
.news-card__title { font-size: 1.32rem; font-weight: 800; line-height: 1.22; text-wrap: balance; }
.news-card__title a { text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.news-card__title a:focus-visible { outline: none; }
.news-card:has(a:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.news-card__excerpt { color: var(--stone-700); font-size: 0.98rem; line-height: 1.55; }
.news-card__more { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.news-card__more .icon { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease); }
.news-card:hover .news-card__more .icon { transform: translateX(4px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.65em;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}
a.tag:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
.tag--solid { background: var(--red); border-color: var(--red); color: var(--paper); }
.page-hero .tag, .section--dark .tag { color: var(--gold-light); }

/* Final CTA */
.cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 4rem + 8vw, 12rem) clamp(9rem, 6rem + 10vw, 15rem);
  background:
    radial-gradient(ellipse 55% 60% at 50% 105%, rgba(184, 148, 90, 0.3), transparent 70%),
    linear-gradient(180deg, var(--charcoal) 0%, #15161a 100%);
  color: var(--linen);
  text-align: center;
}
.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.cta-final__ridge { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(7rem, 4rem + 10vw, 13rem); z-index: -1; }
.cta-final__ridge svg { width: 100%; height: 100%; }
.cta-final__title { max-width: 18ch; margin-inline: auto; }
.cta-final__title .muted-line { display: block; color: var(--stone-300); }
.cta-final__title .strong-line { display: block; color: var(--linen); margin-top: 0.12em; }
.cta-final__title .strong-line em { font-style: normal; color: var(--red-light); }
.cta-final .btn-row { justify-content: center; margin-top: 2.5rem; }
.cta-final .ornament-rule { max-width: 22rem; margin: 0 auto 2.25rem; color: var(--gold); }

/* 9. Interior pages -------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem)) 0 clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  background:
    radial-gradient(ellipse 50% 80% at 88% 20%, rgba(184, 148, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 90% at 0% 100%, rgba(107, 18, 22, 0.5), transparent 70%),
    linear-gradient(180deg, #131417 0%, var(--charcoal) 100%);
  color: var(--linen);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.17;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.page-hero--red { background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(184, 148, 90, 0.2), transparent 70%), linear-gradient(180deg, #4e0d10, var(--red-deep)); }
.page-hero--forest { background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(184, 148, 90, 0.18), transparent 70%), linear-gradient(180deg, #14281f, var(--forest)); }
.page-hero__mark {
  position: absolute;
  right: clamp(-10rem, -6vw, -3rem);
  top: 50%;
  width: clamp(18rem, 36vw, 34rem);
  height: auto;
  aspect-ratio: 1;
  transform: translateY(-46%);
  color: rgba(184, 148, 90, 0.13);
  z-index: -1;
  pointer-events: none;
}
.page-hero__inner { display: grid; gap: 1.4rem; max-width: 56rem; }
.page-hero__title { max-width: 18ch; }
.page-hero__inner:has(> .page-hero__meta) .page-hero__title { max-width: 22ch; }
.page-hero__lead { max-width: 44rem; color: rgba(243, 239, 230, 0.84); }
.page-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; font-size: var(--fs-small); color: var(--stone-300); }
.page-hero__meta .icon { width: 1.05rem; height: 1.05rem; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.page-hero + .ornament-band { margin-top: -9px; position: relative; z-index: 2; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-300); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.6rem; }
.breadcrumbs li + li::before { content: ""; width: 0.35rem; height: 0.35rem; background: var(--red-light); transform: rotate(45deg); }
.breadcrumbs a { text-decoration: none; color: var(--linen); opacity: 0.85; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--gold-light); }

/* Principle list (mission) */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 48rem) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle { display: grid; gap: 0.6rem; align-content: start; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); background: var(--bg); }
.section--paper .principle { background: var(--paper); }
.principle__num { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 0.9; color: var(--red); }
.principle__title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.principle__text { color: var(--text-muted); }

.statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 4rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}
.statement em { font-style: normal; color: var(--red); }
.section--dark .statement em, .section--red .statement em, .section--forest .statement em { color: var(--gold-light); }

/* Value cards (vision) */
.vision-grid { display: grid; gap: 1.25rem; list-style: none; padding: 0; }
@media (min-width: 48rem) { .vision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .vision-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vision-card { display: grid; gap: 0.75rem; align-content: start; padding: 1.75rem; border: 1px solid var(--line); background: rgba(243, 239, 230, 0.03); height: 100%; overflow-wrap: anywhere; }
.section--light .vision-card, .section--paper .vision-card, .section--linen-2 .vision-card { background: var(--paper); }
.vision-card > .icon { width: 2rem; height: 2rem; color: var(--gold); stroke-width: 1.5; }
.section--light .vision-card > .icon, .section--paper .vision-card > .icon, .section--linen-2 .vision-card > .icon { color: var(--red); }
.vision-card__title { font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.vision-card:has(> .problem-list) > .vision-card__title { font-size: var(--fs-h3); line-height: 1.18; }
.vision-card__text { color: var(--text-muted); font-size: 0.98rem; }

/* Status badges for policy content */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.7em;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: var(--radius);
  white-space: nowrap;
}
.badge::before { content: ""; width: 0.5em; height: 0.5em; background: currentColor; transform: rotate(45deg); }
.badge--principle { background: rgba(31, 59, 47, 0.12); color: var(--forest); }
.badge--proposal { background: rgba(122, 92, 44, 0.1); color: var(--gold-dark); }
.badge--dev { background: rgba(107, 103, 95, 0.14); color: var(--stone-700); }
.section--dark .badge--principle { background: rgba(196, 207, 198, 0.14); color: #c4cfc6; }
.section--dark .badge--proposal { background: rgba(212, 184, 134, 0.14); color: var(--gold-light); }
.section--dark .badge--dev { background: rgba(188, 182, 170, 0.14); color: var(--stone-300); }

.legend { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; padding: 1.1rem 1.25rem; border: 1px dashed var(--line-strong); font-size: var(--fs-small); color: var(--text-muted); }
.legend dl { display: contents; }
.legend div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.legend dd { margin: 0; }

/* Policy blocks (priority pages) */
.policy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.policy-item { display: grid; gap: 0.6rem; padding: clamp(1.35rem, 1.1rem + 0.8vw, 1.9rem); background: var(--paper); }
@media (min-width: 48rem) { .policy-item { grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; } .policy-item .badge { grid-column: 2; grid-row: 1; align-self: start; } }
.policy-item .badge { justify-self: start; }
.policy-item__title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.policy-item__text { color: var(--stone-700); grid-column: 1; }

.aside-card { padding: 1.75rem; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card__title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; }
.aside-card ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.aside-card li a { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; font-weight: 650; line-height: 1.35; }
.aside-card li a::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; margin-top: 0.45em; background: var(--red); transform: rotate(45deg); }
.aside-card li a:hover { color: var(--red); }
.aside-card li a[aria-current="page"] { color: var(--red); font-weight: 800; text-decoration: underline; text-underline-offset: 0.2em; }

.pager { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 48rem) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: grid; gap: 0.35rem; padding: 1.5rem 1.75rem; background: var(--paper); text-decoration: none; transition: background-color 0.3s; }
.pager a:hover { background: var(--linen-2); }
.pager__dir { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); }
.pager__title { font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.pager a.pager__prev { text-align: left; }
.pager a.pager__next { text-align: right; }

/* Notice */
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  background: rgba(184, 148, 90, 0.08);
  font-size: 0.98rem;
  line-height: 1.55;
}
.notice .icon { width: 1.4rem; height: 1.4rem; color: var(--gold-dark); margin-top: 0.05rem; }
.notice__title { font-weight: 800; margin-bottom: 0.2rem; }
.notice--red { border-left-color: var(--red); background: rgba(165, 28, 32, 0.06); }
.notice--red .icon { color: var(--red); }
.section--dark .notice { border-color: var(--line-on-dark); border-left-color: var(--gold); background: rgba(184, 148, 90, 0.08); }
.section--dark .notice .icon { color: var(--gold); }

/* Quote */
.quote {
  position: relative;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  background: var(--charcoal);
  color: var(--linen);
  overflow: hidden;
  isolation: isolate;
}
.quote::before {
  content: "„";
  position: absolute;
  left: 1rem;
  top: -2.5rem;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14rem;
  line-height: 1;
  color: rgba(232, 96, 90, 0.18);
}
.quote__text { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.35; font-weight: 500; font-style: italic; text-wrap: pretty; }
.quote__cite { display: block; margin-top: 1.25rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; font-style: normal; color: var(--gold); }

/* History timeline */
.chronicle { position: relative; list-style: none; padding: 0; }
.chronicle::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--line-strong); }
@media (min-width: 48rem) { .chronicle::before { left: 7.45rem; } }
.chronicle__item { position: relative; display: grid; gap: 0.35rem; padding: 0 0 2.25rem 2.25rem; }
@media (min-width: 48rem) { .chronicle__item { grid-template-columns: 6rem 1fr; gap: 0 3rem; padding-left: 0; } }
.chronicle__item::before { content: ""; position: absolute; left: 0.1rem; top: 0.45rem; width: 0.75rem; height: 0.75rem; background: var(--red); transform: rotate(45deg); }
@media (min-width: 48rem) { .chronicle__item::before { left: 7.1rem; } }
.chronicle__year { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--red); }
@media (min-width: 48rem) { .chronicle__year { text-align: right; } }
.chronicle__text { color: var(--stone-700); }
.chronicle__text strong { color: var(--ink); }

/* Figure profile (history page) */
.profile { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); }
@media (min-width: 60rem) { .profile { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.profile--reverse > :first-child { order: 0; }
@media (min-width: 60rem) { .profile--reverse > :first-child { order: 2; } }
.profile__plate { position: relative; }
@media (min-width: 60rem) { .profile__plate { position: sticky; top: calc(var(--header-h) + 2rem); } }
.profile__plate .figure-card__plate { aspect-ratio: 4 / 5; }
@media (min-width: 36rem) and (max-width: 59.99rem) { .profile__plate .figure-card__plate { aspect-ratio: 16 / 9; } }
.profile__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1.25rem; }
.profile__facts div { padding: 1rem 1.1rem; background: var(--paper); }
.profile__facts dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.profile__facts dd { margin: 0.2rem 0 0; font-weight: 750; line-height: 1.3; }

/* Participate page */
.action-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
@media (min-width: 44rem) { .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.action-card { display: flex; flex-direction: column; gap: 0.9rem; height: 100%; padding: clamp(1.6rem, 1.3rem + 1vw, 2.25rem); background: var(--paper); }
.action-card__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 1px solid var(--line-strong); color: var(--red); transform: rotate(45deg); margin: 0.5rem 0 0.5rem 0.5rem; }
.action-card__icon .icon { transform: rotate(-45deg); width: 1.5rem; height: 1.5rem; }
.action-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; line-height: 1; text-transform: uppercase; }
.action-card__text { color: var(--stone-700); }
.action-card .link-arrow { margin-top: auto; padding-top: 0.5rem; align-self: flex-start; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { position: relative; padding-left: 3.5rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1.5px solid var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--red);
}
.steps strong { display: block; font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.2rem; }

.institutions { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; padding: 0; }
@media (min-width: 48rem) { .institutions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.institution { display: grid; gap: 0.4rem; align-content: start; padding: 1.4rem 1.5rem; background: var(--paper); }
.institution__name { font-weight: 800; line-height: 1.3; }
.institutions dd { margin: 0; }
.institution__text { font-size: 0.95rem; color: var(--stone-700); }
.institution a { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; font-size: 0.9rem; font-weight: 750; color: var(--red); text-decoration: none; word-break: break-word; }
.institution a:hover { text-decoration: underline; }
.institution a .icon { width: 0.95rem; height: 0.95rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 0 1.5rem; color: var(--stone-700); max-width: 46rem; }
.faq details > div > * + * { margin-top: 0.8em; }

/* Components used inside long-form .prose */
.prose .steps, .prose .policy-list, .prose .institutions, .prose .vision-grid { padding-left: 0; }
.prose .steps > li + li, .prose .policy-list > li + li, .prose .institutions > li + li, .prose .vision-grid > li + li { margin-top: 0; }
.prose .steps > li::marker, .prose .policy-list > li::marker { content: none; }
.prose .steps > li + li { margin-top: 1.25rem; }

/* Small helpers */
.split--stretch { align-items: stretch; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tag--muted { color: var(--stone-600); }
.section--dark .tag--muted { color: var(--stone-300); }

/* 10. Editorial ------------------------------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter-btn {
  min-height: 2.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-btn .count { opacity: 0.6; margin-left: 0.35em; font-weight: 700; }
.filter-status { font-size: var(--fs-small); color: var(--text-muted); margin: -1.5rem 0 2rem; min-height: 1.5em; }
.empty-state { padding: 3rem 1.5rem; border: 1px dashed var(--line-strong); text-align: center; color: var(--text-muted); }
.empty-state[hidden] { display: none; }

.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background: var(--red-light);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

.article-layout { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .article-layout { grid-template-columns: minmax(0, 1fr) 15rem; gap: 5rem; } }
.article-body { font-size: clamp(1.07rem, 1.02rem + 0.22vw, 1.2rem); line-height: 1.72; }
.article-body.prose { max-width: 44rem; }
.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.6em;
  line-height: 0.78;
  color: var(--red);
}
.article-aside { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 64rem) { .article-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.article-aside__label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share a, .share button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.share a:hover, .share button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share .icon { width: 1rem; height: 1rem; }
.share__status { display: block; width: 100%; font-size: var(--fs-xs); color: var(--forest); min-height: 1.2em; }
.article-footer { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.byline { display: flex; align-items: center; gap: 0.9rem; }
.byline__mark { width: 2.6rem; height: 2.6rem; flex: none; }
.byline__name { font-weight: 800; line-height: 1.2; }
.byline__role { font-size: var(--fs-small); color: var(--text-muted); }

/* 11. Forms ---------------------------------------------------------------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; gap: 1.35rem; }
@media (min-width: 40rem) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.45rem; }
.field__label { font-size: 0.9rem; font-weight: 750; line-height: 1.3; }
.field__label .req { color: var(--red); margin-left: 0.15em; }
.field__label .opt { font-weight: 500; color: var(--text-muted); margin-left: 0.35em; font-size: 0.85em; }
.field__input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: var(--stone-400); }
.field__input:hover { border-color: var(--stone-600); }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(165, 28, 32, 0.25); }
.field__input[aria-invalid="true"] { border-color: var(--red); }
.field__input:disabled { background: var(--linen-2); cursor: not-allowed; }
textarea.field__input { min-height: 9rem; resize: vertical; }
select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141517' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  padding-right: 2.6rem;
}
.field__hint { font-size: var(--fs-small); color: var(--text-muted); }
.field__error { font-size: var(--fs-small); font-weight: 700; color: var(--red); }
.field__error:empty { display: none; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.95rem; line-height: 1.45; }
.checkbox input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--red); }
.form-status { padding: 1rem 1.2rem; font-weight: 700; border-left: 3px solid var(--forest); background: rgba(31, 59, 47, 0.08); }
.form-status--error { border-left-color: var(--red); background: rgba(165, 28, 32, 0.07); color: var(--red-600); }
.form-status:empty, .form-status[hidden] { display: none; }
.form-card { padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.75rem); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.form-card__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); line-height: 1; text-transform: uppercase; }
[data-state="inactive"] .field__input { background: var(--linen); }

/* 12. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--stone-300);
  font-size: 0.95rem;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.site-footer > .ornament-band { background-color: var(--red); }
.site-footer__main { display: grid; gap: 3rem; padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
@media (min-width: 56rem) { .site-footer__main { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr)); gap: 2.5rem; } }
.site-footer__brand { display: grid; gap: 1.25rem; align-content: start; max-width: 24rem; }
.site-footer__brand .brand { color: var(--linen); }
.site-footer__brand .brand__mark { width: 3rem; height: 3rem; }
.site-footer__brand .brand__name { font-size: 2.4rem; }
.site-footer__note { font-size: 0.92rem; line-height: 1.55; }
.site-footer__title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer__links a { text-decoration: none; color: var(--linen); opacity: 0.82; transition: opacity 0.2s, color 0.2s; }
.site-footer__links a:hover { opacity: 1; color: var(--gold-light); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line-on-dark); font-size: 0.82rem; }
.site-footer__bottom a { color: var(--linen); opacity: 0.8; text-decoration: none; }
.site-footer__bottom a:hover { opacity: 1; text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: center; }
.site-footer__motto { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-400); }

/* 404 */
.error-page { min-height: 100svh; display: grid; align-content: center; overflow: hidden; }
.error-page__code { font-family: var(--font-display); font-weight: 900; font-size: clamp(8rem, 5rem + 16vw, 18rem); line-height: 0.8; color: var(--red-light); }

/* 15. History & heritage ----------------------------------------------------
   Museum-style components for /istoriya/: plates (archival images and
   original engravings), the interactive timeline, chapter openers, the
   figure catalogue, event panels, figure pages and the haiduti feature.
   ------------------------------------------------------------------------- */
:root {
  --parchment: #efe6d2;
  --parchment-2: #e2d5ba;
  --sepia: #7a6248;
  --ink-warm: #2a2520;
}

/* Era colours (timeline, chips, labels) */
.era-first { --era-color: #c9a46a; }
.era-byz { --era-color: #a59d92; }
.era-second { --era-color: #e8605a; }
.era-ottoman { --era-color: #938b80; }
.era-revival { --era-color: #86b39a; }
.era-modern { --era-color: #f3efe6; }

.era-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.3;
}
.era-label::before { content: ""; flex: none; width: 1.4rem; height: 0.45rem; background: var(--era-color, var(--gold)); }

/* Plate: framed archival image or engraving */
.plate {
  --plate-ratio: 4 / 5;
  --plate-focus: 50% 22%;
  position: relative;
  margin: 0;
  padding: clamp(0.55rem, 0.4rem + 0.7vw, 1rem);
  background: var(--parchment);
  box-shadow: 0 0 0 1px rgba(122, 92, 44, 0.35), 0 30px 60px -26px rgba(10, 8, 6, 0.65);
  isolation: isolate;
}
.plate__frame { position: relative; overflow: hidden; background: var(--parchment-2); }
.plate__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.35;
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 1px rgba(42, 37, 32, 0.3), inset 0 0 70px rgba(42, 37, 32, 0.28);
  pointer-events: none;
}
.plate img { display: block; width: 100%; height: auto; aspect-ratio: var(--plate-ratio); object-fit: cover; object-position: var(--plate-focus); }
.plate--archival img { filter: grayscale(1) sepia(0.38) contrast(1.06) brightness(0.97); }
.plate--wide { --plate-ratio: 16 / 9; --plate-focus: 50% 50%; }
.plate--landscape { --plate-ratio: 3 / 2; --plate-focus: 50% 50%; }
.plate--square { --plate-ratio: 1; }
.plate--natural img { aspect-ratio: auto; }
.plate figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  padding: 0.7rem 0.1rem 0.05rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--stone-700);
}
.plate__kind { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); }
.plate__credit a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.plate__credit a:hover { color: var(--red); }
@media (min-width: 60rem) {
  .plate--tilt-l { transform: rotate(-1.4deg); }
  .plate--tilt-r { transform: rotate(1.2deg); }
}

/* Source markers: what is documented, what is tradition, what is interpretation */
.evidence-key { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 48rem) { .evidence-key { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.evidence-key > li { display: grid; gap: 0.5rem; align-content: start; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); background: var(--paper); }
.evidence-key__text { color: var(--stone-700); font-size: 0.97rem; }
.src-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  vertical-align: middle;
}
.src-tag::before { content: ""; flex: none; width: 1.5rem; height: 0.5rem; }
.src-tag--doc { color: var(--forest); }
.src-tag--doc::before { background: var(--forest); }
.src-tag--legend { color: var(--gold-dark); }
.src-tag--legend::before { background: repeating-linear-gradient(90deg, var(--gold-dark) 0 4px, transparent 4px 7px); }
.src-tag--interp { color: var(--red); }
.src-tag--interp::before { border: 1.5px solid var(--red); }
.section--dark .src-tag--doc, .section--forest .src-tag--doc { color: #a9c8b5; }
.section--dark .src-tag--doc::before, .section--forest .src-tag--doc::before { background: #a9c8b5; }
.section--dark .src-tag--legend, .section--forest .src-tag--legend { color: var(--gold-light); }
.section--dark .src-tag--legend::before, .section--forest .src-tag--legend::before { background: repeating-linear-gradient(90deg, var(--gold-light) 0 4px, transparent 4px 7px); }
.section--dark .src-tag--interp, .section--forest .src-tag--interp { color: var(--red-light); }
.section--dark .src-tag--interp::before, .section--forest .src-tag--interp::before { border-color: var(--red-light); }

/* History hub hero */
.history-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(40rem, 94svh);
  padding: calc(var(--header-h) + 4rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  overflow: hidden;
  background: #15130f;
  color: var(--linen);
}
.history-hero__art { position: absolute; inset: 0; z-index: -2; }
.history-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.history-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 13, 11, 0.7) 0%, rgba(14, 13, 11, 0.15) 30%, rgba(14, 13, 11, 0.55) 62%, #14120f 100%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(107, 18, 22, 0.45), transparent 70%);
}
.history-hero__title { font-size: clamp(3.4rem, 1rem + 8.6vw, 9.75rem); line-height: 0.84; max-width: 12ch; }
.history-hero__title span { display: block; color: var(--gold-light); }
.history-hero__art img { filter: brightness(0.62) sepia(0.2) contrast(1.08); }
.history-hero--band { min-height: max(34rem, 84svh); justify-content: center; padding: clamp(5rem, 4rem + 6vw, 9rem) 0; }
.history-hero--band::before { background: linear-gradient(90deg, rgba(14, 13, 11, 0.9) 0%, rgba(14, 13, 11, 0.6) 48%, rgba(14, 13, 11, 0.15) 100%), linear-gradient(180deg, rgba(28, 30, 33, 0.9) 0%, rgba(14, 13, 11, 0) 22%, rgba(14, 13, 11, 0) 78%, rgba(28, 30, 33, 0.95) 100%); }
.history-hero__lead { max-width: 40rem; margin-top: 1.5rem; color: rgba(243, 239, 230, 0.88); text-shadow: 0 1px 14px rgba(10, 11, 12, 0.6); }
.history-hero .eyebrow { color: var(--gold-light); }

/* Components on dark and forest grounds (history pages) */
.section--forest .notice { border-color: var(--line-on-dark); border-left-color: var(--gold); background: rgba(184, 148, 90, 0.1); }
.section--forest .notice .icon { color: var(--gold-light); }
.haiduti-archival { max-width: 30rem; }
.haiduti-archival .plate { margin: 0; }
.era-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-on-dark); }
@media (min-width: 64rem) { .era-index { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.era-index a { display: grid; gap: 0.25rem; height: 100%; padding: 1.1rem 1rem 1.1rem 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-on-dark); transition: background-color 0.3s, padding 0.4s var(--ease); }
.era-index a:hover { background: rgba(243, 239, 230, 0.05); padding-left: 0.6rem; }
.era-index__num { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--era-color, var(--red-light)); }
.era-index__name { font-weight: 800; line-height: 1.25; }
.era-index__years { font-size: 0.82rem; color: var(--stone-300); }

/* Interactive timeline */
.timeline { position: relative; }
.timeline__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.timeline__chips { display: flex; gap: 0.4rem; margin: 0; padding: 0 0 0.3rem; list-style: none; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.timeline__chips::-webkit-scrollbar { display: none; }
.timeline__chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  color: var(--linen);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.timeline__chip::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--era-color); transform: rotate(45deg); }
.timeline__chip:hover { border-color: var(--linen); }
.timeline__chip[aria-current="true"] { background: var(--linen); color: var(--ink); border-color: var(--linen); }
.timeline__controls { display: none; gap: 0.5rem; }
.js .timeline__controls { display: flex; }
.timeline__btn { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line-on-dark); border-radius: var(--radius); background: transparent; color: var(--linen); transition: background-color 0.25s, color 0.25s, opacity 0.25s; }
.timeline__btn:hover:not(:disabled) { background: var(--linen); color: var(--ink); }
.timeline__btn:disabled { opacity: 0.3; cursor: default; }
.timeline__btn .icon { width: 1.25rem; height: 1.25rem; }
.timeline__progress { height: 2px; margin-top: 1rem; background: var(--line-on-dark); }
.timeline__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.timeline__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 148, 90, 0.6) transparent;
  padding-bottom: 1.25rem;
}
.timeline__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.timeline__track { position: relative; display: flex; align-items: stretch; width: max-content; margin: 0; padding: 0 var(--gutter); list-style: none; }
.timeline__track::before { content: ""; position: absolute; left: 0; right: 0; top: 4.15rem; height: 1px; background: rgba(184, 148, 90, 0.45); }
.tl-item, .tl-era { position: relative; flex: none; display: flex; flex-direction: column; padding-right: 1.25rem; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.tl-item { width: clamp(16rem, 72vw, 19.5rem); }
.tl-era { width: clamp(14rem, 62vw, 17rem); }
.tl-item__year { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; line-height: 1; color: var(--era-color); }
.tl-item__date { min-height: 1.3em; margin-top: 0.15rem; font-size: 0.74rem; letter-spacing: 0.05em; color: var(--stone-300); }
.tl-item__node { position: relative; height: 1.9rem; }
.tl-item__node::before { content: ""; position: absolute; left: 0.1rem; top: 0.42rem; width: 0.8rem; height: 0.8rem; background: var(--era-color); transform: rotate(45deg); box-shadow: 0 0 0 5px var(--charcoal); }
.tl-item__card { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--line-on-dark); background: rgba(243, 239, 230, 0.035); transition: border-color 0.3s, background-color 0.3s; }
.tl-item:hover .tl-item__card { border-color: rgba(184, 148, 90, 0.6); background: rgba(243, 239, 230, 0.06); }
.tl-item__thumb { margin: -1.1rem -1.1rem 0.25rem; aspect-ratio: 3 / 2; overflow: hidden; background: #2a2620; }
.tl-item__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) sepia(0.35) brightness(0.85); transition: transform 0.9s var(--ease), filter 0.5s; }
.tl-item:hover .tl-item__thumb img { transform: scale(1.04); filter: grayscale(0.6) sepia(0.3) brightness(0.95); }
/* Engravings are already drawn in the house palette: keep their parchment tone. */
.tl-item__thumb img.is-engraving { filter: brightness(0.92); }
.tl-item:hover .tl-item__thumb img.is-engraving { filter: none; }
.catalogue__thumb img.is-engraving, .event-panel__media img.is-engraving { filter: none; }
.tl-item__title { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.tl-item__text { font-size: 0.93rem; line-height: 1.5; color: var(--stone-300); }
.tl-item__link { margin-top: auto; padding-top: 0.35rem; display: inline-flex; align-items: center; gap: 0.45rem; align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--gold-light); }
.tl-item__link .icon { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease); }
.tl-item__link:hover .icon { transform: translateX(4px); }
.tl-era__inner { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; height: 100%; min-height: 18rem; margin-top: 6rem; padding: 1.4rem; background: var(--era-color); color: var(--ink); }
.tl-era__name { font-family: var(--font-display); font-weight: 900; font-size: 2.1rem; line-height: 0.92; text-transform: uppercase; }
.tl-era__years { font-weight: 800; letter-spacing: 0.06em; }
.tl-era__text { font-size: 0.92rem; line-height: 1.45; }
/* Phones keep the horizontal track (swipe), so the 40+ entries do not turn
   the page into a very long scroll; the era chips jump between epochs. */
@media (max-width: 47.99rem) {
  .timeline__bar { gap: 0.75rem; margin-bottom: 1.5rem; }
  .timeline__chips { order: 1; width: 100%; }
  .timeline__controls { order: 2; margin-left: auto; }
  .tl-item { width: min(80vw, 19.5rem); padding-right: 1rem; }
  .tl-era { width: min(66vw, 17rem); padding-right: 1rem; }
  .tl-era__inner { min-height: 16rem; margin-top: 5.6rem; }
  .tl-item__text { font-size: 0.9rem; }
}

/* Chapter opener */
.chapter__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
@media (min-width: 60rem) { .chapter__head { grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.95fr); align-items: end; gap: 2.5rem 3.5rem; } }
.chapter__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5.5rem, 3.5rem + 8vw, 11rem);
  line-height: 0.74;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
}
.section--dark .chapter__num, .section--forest .chapter__num, .section--red .chapter__num { -webkit-text-stroke-color: var(--gold); }
.chapter__years { display: block; margin-bottom: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--red); }
.section--dark .chapter__years, .section--forest .chapter__years { color: var(--gold-light); }
.chapter__lead { color: var(--text-muted); }

/* Feature figure (editorial highlight) */
.feature-figure { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: center; }
@media (min-width: 60rem) {
  .feature-figure { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .feature-figure--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .feature-figure--reverse > .feature-figure__media { order: 2; }
}
.feature-figure__media { max-width: 32rem; width: 100%; justify-self: center; }
.feature-figure__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 1.8rem + 4vw, 5.5rem); line-height: 0.9; text-transform: uppercase; text-wrap: balance; }
.feature-figure__epithet { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; color: var(--red); }
.section--dark .feature-figure__epithet, .section--forest .feature-figure__epithet { color: var(--gold-light); }
.feature-figure__dates { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* Figure catalogue (museum index with hover previews) */
.catalogue { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.catalogue__item { border-bottom: 1px solid var(--line); }
.catalogue__link { position: relative; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); align-items: center; gap: 0.4rem 1.25rem; padding: 1.1rem 0; text-decoration: none; color: inherit; transition: padding 0.45s var(--ease), background-color 0.3s; }
.catalogue__thumb { grid-row: span 2; width: 4.25rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--parchment-2); box-shadow: 0 0 0 1px rgba(122, 92, 44, 0.3); }
.catalogue__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) sepia(0.38) contrast(1.05); }
.catalogue__text { display: grid; gap: 0.35rem; }
.catalogue__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.5rem); line-height: 0.95; text-transform: uppercase; }
.catalogue__meta { font-size: 0.92rem; line-height: 1.4; color: var(--text-muted); }
.catalogue__years { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; white-space: nowrap; color: var(--red); }
.section--dark .catalogue__years, .section--forest .catalogue__years { color: var(--gold-light); }
.catalogue__arrow { display: none; }
@media (min-width: 64rem) {
  .catalogue__link { grid-template-columns: minmax(0, 1fr) auto 1.5rem; gap: 0 2rem; padding: 1.4rem 0; }
  .catalogue__thumb {
    position: absolute;
    right: 22%;
    top: 50%;
    z-index: 3;
    width: 11rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) rotate(-3deg) scale(0.92);
    box-shadow: 0 0 0 0.45rem var(--parchment), 0 0 0 calc(0.45rem + 1px) rgba(122, 92, 44, 0.35), var(--shadow-2);
    transition: opacity 0.35s var(--ease), transform 0.55s var(--ease);
  }
  .catalogue__item:nth-child(even) .catalogue__thumb { transform: translateY(-50%) rotate(2.5deg) scale(0.92); }
  .catalogue__link:hover .catalogue__thumb,
  .catalogue__link:focus-visible .catalogue__thumb { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
  .catalogue__item:nth-child(even) .catalogue__link:hover .catalogue__thumb,
  .catalogue__item:nth-child(even) .catalogue__link:focus-visible .catalogue__thumb { transform: translateY(-50%) rotate(2.5deg) scale(1); }

  .catalogue__link:hover { padding-left: 1.25rem; padding-right: 0.75rem; background: rgba(165, 28, 32, 0.04); }
  .section--dark .catalogue__link:hover { background: rgba(243, 239, 230, 0.04); }
  .catalogue__arrow { display: block; width: 1.4rem; height: 1.4rem; color: var(--red); transition: transform 0.35s var(--ease); }
  .catalogue__link:hover .catalogue__arrow { transform: translateX(4px); }
  .section--dark .catalogue__arrow { color: var(--gold-light); }
}

/* Event panels (modern statehood) */
.event-panels { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); margin: 0; padding: 0; list-style: none; }
.event-panel { position: relative; display: grid; overflow: hidden; isolation: isolate; min-height: 26rem; background: var(--charcoal-2); color: var(--linen); text-decoration: none; }
@media (min-width: 60rem) {
  .event-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 28rem; }
  .event-panel--reverse .event-panel__media { order: 2; }
}
.event-panel__media { position: relative; min-height: 15rem; overflow: hidden; background: #2a2620; }
.event-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(0.35) brightness(0.82); transition: transform 1.2s var(--ease), filter 0.6s; }
.event-panel:hover .event-panel__media img { transform: scale(1.04); filter: grayscale(0.7) sepia(0.3) brightness(0.92); }
.event-panel__body { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.9rem; padding: clamp(1.5rem, 1.2rem + 2vw, 3rem); }
.event-panel__date { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.6rem, 2.6rem + 4.5vw, 7rem); line-height: 0.8; color: var(--gold-light); }
.event-panel__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); line-height: 0.95; text-transform: uppercase; }
.event-panel__text { color: var(--stone-300); max-width: 34rem; }
.event-panel__more { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.event-panel__more .icon { width: 1.05rem; height: 1.05rem; transition: transform 0.35s var(--ease); }
.event-panel:hover .event-panel__more .icon { transform: translateX(4px); }
.event-panel:focus-visible { outline-offset: 4px; }

/* Figure page */
.figure-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 5rem)) 0 clamp(3.5rem, 2.5rem + 4vw, 7rem);
  background:
    radial-gradient(ellipse 55% 70% at 85% 30%, rgba(184, 148, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 90% at 0% 100%, rgba(107, 18, 22, 0.5), transparent 70%),
    linear-gradient(180deg, #121316 0%, var(--charcoal) 100%);
  color: var(--linen);
}
.figure-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.17; mix-blend-mode: soft-light; pointer-events: none; }
.figure-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
@media (min-width: 60rem) { .figure-hero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.figure-hero__media { width: 100%; max-width: 30rem; justify-self: center; }
@media (max-width: 59.99rem) { .figure-hero__media { max-width: 24rem; order: 2; } }
.figure-hero__text { display: grid; gap: 1.2rem; }
.figure-hero__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 1.2rem + 6vw, 7.25rem); line-height: 0.86; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.figure-hero__epithet { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2.15rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; color: var(--gold-light); }
.figure-hero__dates { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.3rem); line-height: 1; letter-spacing: 0.02em; color: var(--red-light); }
.figure-hero__lead { max-width: 38rem; color: rgba(243, 239, 230, 0.86); }

.figure-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 30rem) { .figure-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .figure-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure-facts > div { padding: 1.2rem 1.35rem; background: var(--paper); }
.figure-facts dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.figure-facts dd { margin: 0.3rem 0 0; font-weight: 750; line-height: 1.35; }

.toc { display: grid; gap: 0.15rem; padding: 1.25rem 1.4rem; border-left: 3px solid var(--red); background: var(--paper); counter-reset: toc; }
.toc__title { margin-bottom: 0.5rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.1rem; }
.toc a { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.4rem; padding: 0.35rem 0; font-weight: 650; line-height: 1.35; text-decoration: none; counter-increment: toc; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; color: var(--red); }
.toc a:hover { color: var(--red); }

.feats { margin: 0; padding: 0; list-style: none; counter-reset: feat; border-top: 1px solid var(--line-strong); }
.feats > li { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); counter-increment: feat; }
.feats > li::before { content: counter(feat, upper-roman); font-family: var(--font-display); font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--red); }
.section--dark .feats > li::before { color: var(--gold-light); }
.feats strong { display: block; margin-bottom: 0.3rem; font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.feats p { color: var(--text-muted); }

.quote-large { margin: 0; text-align: center; }
.quote-large__text { max-width: 30ch; margin: 0 auto; font-size: clamp(1.55rem, 1.15rem + 2vw, 2.9rem); font-style: italic; font-weight: 500; line-height: 1.28; text-wrap: balance; }
.quote-large__text::before { content: ""; display: block; width: 3rem; height: 3rem; margin: 0 auto 1.5rem; background-color: var(--gold); -webkit-mask: var(--shevitsa) center / 16px 18px repeat-x; mask: var(--shevitsa) center / 16px 18px repeat-x; }
.quote-large__cite { display: block; margin-top: 1.75rem; font-size: 0.78rem; font-style: normal; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.section--light .quote-large__cite, .section--paper .quote-large__cite { color: var(--gold-dark); }
.quote-large__source { display: block; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }

.references { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; counter-reset: ref; font-size: 0.93rem; line-height: 1.5; }
.references > li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.4rem; counter-increment: ref; color: var(--stone-700); }
.references > li::before { content: "[" counter(ref) "]"; font-weight: 800; color: var(--red); }
.references cite { font-style: italic; color: var(--ink); }

/* Haiduti feature: fact / folklore tabs, season wheel, costume plate */
.tabs__list { display: none; gap: 0.4rem; margin-bottom: 1.5rem; }
.js .tabs__list { display: flex; flex-wrap: wrap; }
.tabs__tab { min-height: 2.75rem; padding: 0.55rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: inherit; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.tabs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.section--dark .tabs__tab, .section--forest .tabs__tab { border-color: var(--line-on-dark); }
.section--dark .tabs__tab[aria-selected="true"], .section--forest .tabs__tab[aria-selected="true"] { background: var(--linen); border-color: var(--linen); color: var(--ink); }
.tabs__panel + .tabs__panel { margin-top: 2rem; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__panel[hidden] { display: none; }
.js .tabs__panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.season-wheel { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .season-wheel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.season-wheel__chart { width: 100%; max-width: 26rem; justify-self: center; }

.costume { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 4rem); align-items: start; }
.costume__media { position: relative; }
@media (min-width: 60rem) {
  .costume { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .costume__media { position: sticky; top: calc(var(--header-h) + 1.5rem); max-width: 30rem; }
}
.costume__marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin: -0.95rem 0 0 -0.95rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 0 0 3px var(--parchment), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.costume__list { margin: 0; padding: 0; list-style: none; counter-reset: costume; border-top: 1px solid var(--line-strong); }
.costume__list > li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); counter-increment: costume; }
.costume__list > li::before { content: counter(costume); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--red); color: var(--paper); font-size: 0.8rem; font-weight: 800; }
.costume__list strong { display: block; font-weight: 800; }
.costume__list p { color: var(--text-muted); font-size: 0.96rem; }

/* 16. Live forms (Turnstile, consent) ---------------------------------------- */
/* @forms-css: the forms work adds its rules directly below this line. */
.form__row > .field { align-content: start; }
.form-consents { display: grid; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.checkbox .opt { color: var(--text-muted); font-size: 0.9em; }
.checkbox .req { color: var(--red); margin-left: 0.15em; }
.checkbox a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; }
.checkbox input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-group > legend { margin-bottom: 0.45rem; }
.checkbox-grid { display: grid; gap: 0.6rem 1.5rem; }
@media (min-width: 40rem) { .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Honeypot: off-screen for people and screen readers (aria-hidden), visible to naive bots. */
.form-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-card { position: relative; }
.form-turnstile { min-height: 65px; max-width: 100%; overflow: hidden; }
.form-turnstile[hidden] { display: none; }
.form-privacy { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.5; }
.form-privacy a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; }
.form-status--pending { border-left-color: var(--gold); background: rgba(184, 148, 90, 0.1); color: var(--ink); }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
form[aria-busy="true"] [type="submit"] { cursor: progress; }
[data-state="inactive"] .checkbox { color: var(--text-muted); }
/* Placeholders in the draft privacy notice: [ПОПЪЛНЕТЕ: …] */
.fill-in { padding: 0 0.3em; background: rgba(184, 148, 90, 0.22); border-bottom: 2px dotted var(--gold-dark); font-weight: 700; }

/* 17. Corruption watch ------------------------------------------------------ */
/* @watch-css: the corruption watch adds its rules directly below this line. */
/* Status colours: --st on light grounds, --st-bg badge tint, --st-dark on dark grounds.
   Colour always comes with the written status label, never alone. */
.watch-s--prepiska { --st: var(--stone-700); --st-bg: rgba(107, 103, 95, 0.14); --st-dark: var(--stone-400); }
.watch-s--razsledvane { --st: var(--gold-dark); --st-bg: rgba(184, 148, 90, 0.2); --st-dark: var(--gold-light); }
.watch-s--obvinenie { --st: #94400f; --st-bg: rgba(200, 104, 46, 0.15); --st-dark: #e8945f; }
.watch-s--sadebna-faza { --st: var(--red); --st-bg: rgba(165, 28, 32, 0.1); --st-dark: var(--red-light); }
.watch-s--prisada-nevlyazla { --st: var(--red-deep); --st-bg: rgba(107, 18, 22, 0.13); --st-dark: #f2b1aa; }
.watch-s--prisada-vlyazla { --st: var(--ink); --st-bg: var(--ink); --st-fg: var(--paper); --st-dark: var(--linen); }
.watch-s--prekrateno { --st: var(--stone-600); --st-bg: transparent; --st-dark: var(--stone-600); }
.watch-s--odit-doklad { --st: var(--forest); --st-bg: rgba(31, 59, 47, 0.13); --st-dark: #8fb8a0; }
.watch-badge { color: var(--st-fg, var(--st)); background: var(--st-bg); white-space: normal; text-align: left; }
.watch-s--prekrateno .watch-badge { box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Read-first block: presumption of innocence + three principles */
.watch-intro { display: grid; gap: clamp(2rem, 1.5rem + 2.5vw, 4.5rem); align-items: start; }
@media (min-width: 60rem) { .watch-intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.watch-notice { gap: 1rem 1.25rem; padding: clamp(1.35rem, 1rem + 1.6vw, 2.5rem); border-left-width: 4px; background: rgba(165, 28, 32, 0.05); font-size: var(--fs-body); line-height: 1.6; }
.watch-notice > .icon { width: 2rem; height: 2rem; }
.watch-notice > div > * + * { margin-top: 0.9rem; }
@media (max-width: 29.99rem) { .watch-notice { grid-template-columns: minmax(0, 1fr); } }
.watch-notice__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem); line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.watch-notice__quote { padding: 0.1rem 0 0.1rem 1.1rem; border-left: 2px solid var(--red); }
.watch-notice__quote p { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem); font-style: italic; line-height: 1.45; }
.watch-notice__quote footer { margin-top: 0.5rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

/* Numbers strip */
.watch-stats-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.watch-stats-head__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.watch-stats-head__note { font-size: var(--fs-small); color: var(--text-muted); }
.watch-stats { display: grid; gap: 1.25rem; }
.watch-stats__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; }
.watch-stats__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: 0.8; color: var(--gold-light); }
.watch-stats__label { font-size: var(--fs-small); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.watch-stats__bar { display: flex; gap: 3px; height: 0.7rem; }
.watch-stats__bar > span { display: block; min-width: 6px; background: var(--st-dark); }
.watch-stats__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 40rem) { .watch-stats__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .watch-stats__list { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.watch-stat { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.05rem 1rem 1.15rem; background: var(--charcoal); box-shadow: inset 0 3px 0 var(--st-dark); }
.watch-stat__num { font-family: var(--font-display); font-weight: 900; font-size: 2.75rem; line-height: 0.85; color: var(--linen); }
.watch-stat__label { font-size: 0.74rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; color: var(--stone-300); }
.watch-stat.is-zero .watch-stat__num { color: var(--stone-400); }

/* Filters (shown only when main.js runs) */
.watch-controls { display: grid; gap: 1.35rem 2.5rem; margin-bottom: 1.25rem; padding: clamp(1.15rem, 0.9rem + 1vw, 1.75rem); background: var(--paper); border: 1px solid var(--line); grid-template-areas: "search" "status" "type" "reset"; }
@media (min-width: 64rem) { .watch-controls { grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr); grid-template-areas: "search status" "reset type"; } }
.watch-controls__search { grid-area: search; display: grid; gap: 0.45rem; align-content: start; }
.watch-controls__group--status { grid-area: status; }
.watch-controls__group--type { grid-area: type; }
.watch-controls__reset { grid-area: reset; align-self: end; }
.watch-controls__label { margin-bottom: 0.6rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.watch-filter { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.watch-filter .filter-btn { min-height: 2.5rem; padding: 0.45rem 0.85rem; font-size: 0.74rem; text-align: left; }
@media (max-width: 39.99rem) {
  .watch-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-filter .filter-btn { padding-inline: 0.65rem; letter-spacing: 0.06em; line-height: 1.25; overflow-wrap: anywhere; }
}
.watch-results { margin: 0 0 1.25rem; }

/* Case cards */
.watch-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.watch-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--st); }
@media (min-width: 56rem) { .watch-card { grid-template-columns: 13rem minmax(0, 1fr); } }
.watch-card__rail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--linen); }
@media (min-width: 56rem) { .watch-card__rail { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.1rem; padding: 1.6rem 1.4rem; border-bottom: 0; border-right: 1px solid var(--line); } }
.watch-card__date { display: grid; gap: 0.25rem; }
.watch-card__date time { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
@media (min-width: 56rem) { .watch-card__date time { font-size: 1.6rem; } }
.watch-card__label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.3; color: var(--text-muted); }
.watch-card__body { display: grid; gap: 1.1rem; align-content: start; min-width: 0; padding: 1.25rem 1.25rem 1.5rem; }
@media (min-width: 56rem) { .watch-card__body { padding: 1.6rem 2rem 1.8rem; } }
@media (min-width: 75rem) { .watch-card__body { grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); column-gap: 2.25rem; } }
.watch-card__main { display: grid; gap: 0.85rem; align-content: start; min-width: 0; }
.watch-card__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: var(--fs-small); line-height: 1.35; }
.watch-card__institution { font-weight: 800; }
.watch-card__sector { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text-muted); }
.watch-card__sector::before { content: ""; flex: none; width: 0.35rem; height: 0.35rem; background: var(--stone-400); transform: rotate(45deg); }
.watch-card__title { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.watch-card__summary { max-width: 72ch; color: var(--stone-700); line-height: 1.62; }
.watch-card__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; justify-self: start; padding: 0.6rem 0.9rem; border-left: 3px solid var(--gold); background: rgba(184, 148, 90, 0.1); }
.watch-card__amount-value { font-weight: 800; line-height: 1.35; }
.watch-card__sources { min-width: 0; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
@media (min-width: 75rem) { .watch-card__sources { padding: 0 0 0 1.5rem; border-top: 0; border-left: 1px dashed var(--line-strong); } }
.watch-sources { display: grid; gap: 0.8rem; margin: 0.55rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; }
.watch-sources a { font-weight: 700; line-height: 1.4; color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.watch-sources a:hover { text-decoration-thickness: 2px; }
.watch-sources .icon { display: inline-block; width: 0.95em; height: 0.95em; margin-left: 0.3em; vertical-align: -0.1em; }
.watch-sources__meta { display: block; margin-top: 0.2rem; font-size: var(--fs-xs); line-height: 1.4; color: var(--text-muted); }

/* Methodology legend */
.watch-legend { margin: 1.25em 0 0; border-top: 1px solid var(--line); }
.watch-legend > div { display: grid; gap: 0.45rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .watch-legend > div { grid-template-columns: 13.5rem minmax(0, 1fr); gap: 1.25rem; align-items: baseline; } }
.watch-legend dt { margin: 0; }
.watch-legend dd { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--stone-700); }

/* Corrections on a dark ground */
.watch-corrections a { color: var(--gold-light); }
.watch-corrections ul > li::marker { color: var(--gold); }

@media print {
  .watch-controls, .watch-results { display: none !important; }
  .watch-card { break-inside: avoid; }
}

/* 18. Budget explained ------------------------------------------------------ */
/* @budget-css: the budget page adds its rules directly below this line. */
/* /byudzhet/: key figures, charts drawn by budget.js, their table fallbacks.
   Series colours: forest = revenue, charcoal = expenditure, red = deficit,
   gold hatch = EU / non-tax, stone hatch = calculated. Every series also has
   a shape, outline or pattern, so colour is never the only cue. */
.bdefs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Key figures */
.bkpis__head { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.bkpis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 34rem) { .bkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .bkpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bkpi { display: grid; gap: 0.6rem; align-content: start; padding: 1.35rem 1.4rem 1.5rem; background: var(--paper); }
.bkpi::before { content: ""; display: block; width: 2.25rem; height: 0.4rem; background: var(--bkpi, var(--ink)); }
.bkpi--rev { --bkpi: var(--forest); }
.bkpi--exp { --bkpi: var(--charcoal); }
.bkpi--bal { --bkpi: var(--red); }
.bkpi--debt { --bkpi: var(--gold-dark); }
.bkpi dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.bkpi dd { display: grid; gap: 0.45rem; margin: 0; }
.bkpi__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 2rem + 2.2vw, 3.8rem); line-height: 0.9; color: var(--ink); white-space: nowrap; }
.bkpi--bal .bkpi__value { color: var(--red); }
.bkpi__unit { margin-left: 0.18em; font-size: 0.42em; font-weight: 800; letter-spacing: 0.02em; color: var(--stone-700); }
.bkpi__meta { font-size: 0.92rem; line-height: 1.45; color: var(--stone-700); }
.bkpis__note { max-width: 52rem; margin-top: 1rem; font-size: var(--fs-small); color: var(--text-muted); }

/* On-page navigation */
.btoc { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 2rem; }
.btoc__title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); }
.btoc ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.btoc a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.84rem; font-weight: 750; text-decoration: none; transition: background-color 0.25s, border-color 0.25s; }
.btoc a:hover { border-color: var(--ink); background: var(--linen); }

/* Chart + explanation layout */
.bsplit { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: start; }
@media (min-width: 64rem) {
  .bsplit { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .bsplit > .bexplain { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.bsplit__main { min-width: 0; }
.bsplit__main > .bchart + .bchart { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.bexplain { display: grid; gap: 0.85rem; padding: 1.5rem 1.6rem; border-left: 3px solid var(--red); background: var(--paper); font-size: 0.98rem; line-height: 1.55; }
.section--paper .bexplain { background: var(--linen); }
.bexplain__title { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); }
.bexplain p { color: var(--stone-700); }
.bexplain strong { font-weight: 800; color: var(--ink); }
.bexplain__small { font-size: 0.88rem; }
.section--dark .bexplain { background: rgba(243, 239, 230, 0.04); border-left-color: var(--gold); }
.section--dark .bexplain__title { color: var(--gold); }
.section--dark .bexplain p { color: var(--stone-300); }
.section--dark .bexplain strong { color: var(--linen); }

/* Chart frame */
.bchart { margin: 0; min-width: 0; }
.bchart__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.75rem; margin-bottom: 1rem; }
.bchart__title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.bchart__unit { font-size: 0.86rem; color: var(--text-muted); }
.bchart__plot { position: relative; }
.bchart__hint { margin-top: 0.85rem; font-size: 0.84rem; color: var(--text-muted); }
.bchart__foot { margin-top: 0.6rem; font-size: 0.84rem; color: var(--text-muted); }
.bchart__toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.6rem; margin-top: 1rem; padding: 0.45rem 0.95rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: inherit; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transition: border-color 0.25s, background-color 0.25s; }
.bchart__toggle:hover { border-color: currentColor; }
.bchart__toggle .icon { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease); }
.bchart__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.bchart.is-enhanced .bchart__data { margin-top: 1rem; }
.bchart__data { position: relative; max-width: 100%; overflow-x: auto; }
.bchart__status { min-height: 1.45em; margin-bottom: 0.9rem; font-size: 0.86rem; color: var(--text-muted); }
.section--dark .bchart__unit, .section--dark .bchart__hint, .section--dark .bchart__foot, .section--dark .bchart__status { color: var(--stone-300); }
.section--dark .bchart__toggle { border-color: var(--line-on-dark); }
.section--dark .bchart__toggle:hover { border-color: var(--linen); }

/* Legends */
.blegend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.86rem; line-height: 1.3; }
.blegend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.blegend svg { flex: none; width: 1.75rem; height: 1rem; overflow: visible; }
.bgroups { display: grid; gap: 0.85rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .bgroups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bgroups li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.65rem; align-items: start; font-size: 0.92rem; line-height: 1.35; }
.bgroups svg { grid-row: span 2; width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; }
.bgroups__label { font-weight: 750; }
.bgroups__value { color: var(--stone-700); font-variant-numeric: tabular-nums; }

/* Fills (SVG) */
.bfill--rev, .bfill--tax { fill: var(--forest); }
.bfill--exp { fill: rgba(28, 30, 33, 0.14); stroke: var(--charcoal); stroke-width: 2; }
.bfill--exp-calc { fill: rgba(28, 30, 33, 0.04); stroke: var(--charcoal); stroke-width: 2; stroke-dasharray: 4 3; }
.bfill--bal { fill: var(--red); }
.bfill--nontax, .bfill--eu { fill: url(#bp-hatch-gold); }
.bfill--grants { fill: url(#bp-dots-stone); }
.bfill--spend { fill: var(--charcoal-3); }
.bfill--calc { fill: url(#bp-hatch-stone); stroke: var(--stone-600); stroke-width: 1; }
.bfill--person { fill: var(--gold-light); }
.bfill--person-eu { fill: url(#bp-hatch-gold); }

/* 100% stacked bar */
.bstack { display: block; width: 100%; height: 3.5rem; overflow: visible; }
.bstack text { font-size: 15px; font-weight: 800; fill: var(--paper); pointer-events: none; }

/* Horizontal bar list (HTML rows, SVG bars) */
.bbars { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.bbars__group { margin-top: 1.1rem; padding: 0 0 0.35rem; border-bottom: 1px solid var(--line); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.bbars__group:first-child { margin-top: 0; }
.bbars__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; align-items: baseline; margin: 0 -0.6rem; padding: 0.55rem 0.6rem 0.65rem; border-radius: var(--radius); cursor: default; transition: background-color 0.2s; }
.bbars__item:hover, .bbars__item.is-active { background: rgba(20, 21, 23, 0.05); }
.bbars__item:focus-visible { outline-offset: 0; }
.bbars__label { font-size: 0.96rem; font-weight: 650; line-height: 1.3; }
.bbars__flag { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.4rem; border-radius: var(--radius); background: rgba(107, 103, 95, 0.16); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.12em; color: var(--stone-700); }
.bbars__value { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bbars__share { display: inline-block; min-width: 3.4em; margin-left: 0.4rem; font-weight: 600; color: var(--text-muted); }
.bbars__svg { grid-column: 1 / -1; display: block; width: 100%; height: 14px; margin-top: 0.3rem; overflow: visible; }
.bbars__track { fill: rgba(20, 21, 23, 0.06); }
.bbars__bar { transform-box: fill-box; transform-origin: 0 50%; transition: transform 0.9s var(--ease); }
.is-pending .bbars__bar { transform: scaleX(0); }
.section--dark .bbars__item:hover, .section--dark .bbars__item.is-active { background: rgba(243, 239, 230, 0.07); }
.section--dark .bbars__track { fill: rgba(243, 239, 230, 0.08); }
.section--dark .bbars__share, .section--dark .bbars__group { color: var(--stone-300); }
.section--dark .bbars__flag { background: rgba(188, 182, 170, 0.16); color: var(--stone-200); }
@media (max-width: 30rem) {
  .bbars__item { grid-template-columns: minmax(0, 1fr); }
  .bbars__value { text-align: left; }
}

/* SVG charts (columns, lines) */
.bsvg { display: block; overflow: visible; font-family: var(--font-sans); }
.bsvg text { font-size: 12px; fill: var(--stone-700); }
.bsvg .baxis-title { font-weight: 750; fill: var(--stone-600); }
.bsvg .byear { font-size: 13px; font-weight: 750; fill: var(--ink); }
.bsvg .bgrid { stroke: rgba(20, 21, 23, 0.1); stroke-width: 1; }
.bsvg .bzero { stroke: var(--ink); stroke-width: 1.25; }
.bsvg .bref { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 6 4; }
.bsvg .bref-label { font-weight: 750; fill: var(--red); }
.bcol { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.8s var(--ease); }
.bcol--neg { transform-origin: 50% 0; }
.is-pending .bcol { transform: scaleY(0); }
.bline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; transition: opacity 0.8s var(--ease); }
.bline--kfp { stroke: var(--red); }
.bline--eu { stroke: var(--charcoal); stroke-dasharray: 7 5; }
.bline--mof { stroke: var(--gold-dark); }
.bmark { transition: opacity 0.8s var(--ease); }
.bmark--kfp { fill: var(--red); stroke: var(--linen); stroke-width: 1.5; }
.bmark--eu { fill: var(--linen); stroke: var(--charcoal); stroke-width: 2; }
.bmark--mof { fill: var(--gold-dark); stroke: var(--linen); stroke-width: 1.5; }
.is-pending .bline, .is-pending .bmark { opacity: 0; }

/* Focusable data points */
.bpt { cursor: default; }
.bpt:focus { outline: none; }
.bpt__hit { fill: transparent; }
.bpt__ring { fill: rgba(20, 21, 23, 0.05); stroke: transparent; stroke-width: 2.5; opacity: 0; transition: opacity 0.2s; }
.bpt:hover .bpt__ring, .bpt.is-active .bpt__ring { opacity: 1; }
.bpt:focus-visible .bpt__ring { opacity: 1; stroke: var(--red); }
.bstack .bpt__ring { fill: none; }
.bstack .bpt:hover .bpt__ring, .bstack .bpt.is-active .bpt__ring { stroke: var(--ink); }
.bstack .bpt:focus-visible .bpt__ring { stroke: var(--red); }

/* Tooltip */
.btip { position: absolute; left: 0; top: 0; z-index: 6; width: max-content; max-width: min(21rem, 100%); padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--ink); color: var(--linen); box-shadow: var(--shadow-2); font-size: 0.86rem; line-height: 1.45; pointer-events: none; }
.btip__title { margin-bottom: 0.3rem; font-weight: 800; color: var(--paper); }
.btip__row { display: flex; align-items: center; gap: 0.5rem; }
.btip__row svg { flex: none; width: 0.8rem; height: 0.8rem; }
.btip__row span { flex: 1; }
.btip__row b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btip__note { margin-top: 0.45rem; font-size: 0.8rem; color: var(--stone-300); }
.section--dark .btip { background: var(--linen); color: var(--ink); }
.section--dark .btip__title { color: var(--ink); }
.section--dark .btip__note { color: var(--stone-700); }

/* Segmented controls (per-person view) */
.bcontrols { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-bottom: 0.75rem; }
.bseg { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.bseg__label { margin-right: 0.3rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.bseg button { min-height: 2.6rem; padding: 0.45rem 0.95rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: inherit; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.bseg button:hover { border-color: currentColor; }
.bseg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.section--dark .bseg__label { color: var(--stone-300); }
.section--dark .bseg button { border-color: var(--line-on-dark); }
.section--dark .bseg button[aria-pressed="true"] { background: var(--linen); border-color: var(--linen); color: var(--ink); }

/* Per-person totals */
.bperson { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--line); border: 1px solid var(--line); }
@media (min-width: 40rem) { .bperson { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bperson__fig { display: grid; gap: 0.45rem; align-content: start; padding: 1.25rem 1.35rem 1.35rem; background: var(--charcoal); }
.bperson__fig dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-300); }
.bperson__fig dd { margin: 0; }
.bperson__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 1.9rem + 2vw, 3.4rem); line-height: 0.95; color: var(--linen); white-space: nowrap; }
.bperson__fig--bal .bperson__value { color: var(--red-light); }
.bperson__unit { font-weight: 750; color: var(--gold-light); }
.bperson__alt { display: block; margin-top: 0.35rem; font-size: 0.86rem; color: var(--stone-300); }

/* Data tables (text alternative to every chart) */
.btable { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.btable caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btable th, .btable td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.btable thead th { border-bottom: 1.5px solid var(--line-strong); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: bottom; color: var(--text-muted); }
.btable thead th:not(:first-child) { text-align: right; }
.btable th[scope="row"] { font-weight: 650; text-align: left; }
.btable td { text-align: right; white-space: nowrap; }
.btable tfoot th, .btable tfoot td { border-top: 1.5px solid var(--line-strong); border-bottom: 0; font-weight: 800; }
.btable tfoot tr + tr th, .btable tfoot tr + tr td { border-top: 1px solid var(--line); }
.btable__group th { padding-top: 1rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; color: var(--text-muted); }
.btable__calc { font-weight: 800; color: var(--red); }
.btable__flag { display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.4rem; border-radius: var(--radius); background: rgba(107, 103, 95, 0.16); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-700); }
.btable__na { color: var(--stone-600); }
.btable__note { margin-top: 0.6rem; font-size: 0.84rem; color: var(--text-muted); }
.section--dark .btable thead th, .section--dark .btable__group th { color: var(--stone-300); }
.section--dark .btable__calc { color: var(--red-light); }
.section--dark .btable__flag { background: rgba(188, 182, 170, 0.16); color: var(--stone-200); }
.section--dark .btable__na { color: var(--stone-400); }
@media (max-width: 30rem) {
  .btable { font-size: 0.84rem; }
  .btable th, .btable td { padding: 0.5rem 0.3rem; }
  .btable th[scope="row"], .btable thead th { overflow-wrap: anywhere; hyphens: auto; }
  .btable thead th { letter-spacing: 0.04em; }
}

/* Budget 2026 facts */
.bfacts { display: grid; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.bfacts > div { display: grid; gap: 0.3rem; padding: 1rem 1.2rem; background: var(--linen); }
.bfacts dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.bfacts dd { margin: 0; font-weight: 700; line-height: 1.35; }
.bfacts__num { font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1; white-space: nowrap; }
.bfacts__note { font-size: 0.86rem; color: var(--text-muted); }

/* Glossary */
.bgloss { display: grid; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 48rem) { .bgloss { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bgloss > div { display: grid; gap: 0.45rem; align-content: start; padding: 1.35rem 1.5rem; background: var(--paper); }
.bgloss dt { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.bgloss dfn { font-style: normal; color: var(--red); }
.bgloss dd { margin: 0; font-size: 0.97rem; color: var(--stone-700); }

/* Method and sources */
.bverified { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.9rem; border: 1px solid rgba(31, 59, 47, 0.35); border-radius: var(--radius); background: rgba(31, 59, 47, 0.08); color: var(--forest); font-size: 0.92rem; font-weight: 800; line-height: 1.3; }
.bverified .icon { flex: none; width: 1.1rem; height: 1.1rem; }
.prose .bsources { margin-top: 1.25rem; padding-left: 0; }
.prose .bsources > li + li { margin-top: 0; }
.prose .bsources cite { display: inline; margin: 0; font-size: inherit; font-weight: 600; font-style: italic; color: var(--ink); }
.bprose > :first-child { margin-top: 0; }
.bsources a { overflow-wrap: anywhere; }

@media print {
  .bchart__plot, .bchart__toggle, .bchart__hint, .bcontrols, .bchart__status, .btoc { display: none !important; }
  .bchart .bchart__data[hidden] { display: block !important; }
}

/* 13. Motion --------------------------------------------------------------- */
@keyframes slow-turn { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.js .hero__title .line > span { animation: rise 1.05s var(--ease) both; animation-delay: calc(0.12s + var(--i, 0) * 0.11s); }
.js .hero [data-hero-fade] { animation: fade-up 0.9s var(--ease) both; animation-delay: calc(0.55s + var(--i, 0) * 0.1s); }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-visible,
.no-reveal [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__star { animation: none; }
}

/* 14. Utilities & print ---------------------------------------------------- */
.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;
}
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.max-prose { max-width: 42rem; }
.nowrap { white-space: nowrap; }

@media print {
  .site-header, .mobile-nav, .site-footer, .hero__art, .cta-final, .share, .reading-progress, .filter-bar, .ornament-band { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero, .hero, .section--dark, .section--red, .section--forest { background: #fff !important; color: #000 !important; padding: 1.5rem 0 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
