/* Comfortaa and Source Sans 3, SIL Open Font License 1.1 (see fonts/OFL.txt), served from this
   site rather than from Google: two fewer DNS and TLS round trips before any text paints, and
   no visitor IP address sent to Google without consent. Latin and Cyrillic only.

   Both are variable fonts, so one file per subset carries every weight from 400 to 700. Google's
   "400", "600" and "700" files are byte-identical copies of that one file, so declaring the weights
   separately made the browser fetch the same bytes three times -- 232 KB a page instead of 80. */

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/Comfortaa-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/Comfortaa-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/Comfortaa-var-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SourceSans3-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SourceSans3-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SourceSans3-var-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: 'Source Sans 3';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SourceSans3-vari-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SourceSans3-vari-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/SourceSans3-vari-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;
}


/* ==========================================================================
   Zdravalnik design system
   Built on the Botanic one: the same type pairing (Comfortaa for display,
   Source Sans 3 for body), spacing, radii and components. The colours are
   Zdravalnik's own — the forest green of the old theme (#0b6a3c) and the
   rose from the logo. One token set, redefined for dark mode.
   ========================================================================== */

:root {
  --brand: #0b6a3c;
  --brand-deep: #08512e;
  --brand-tint: #e9f3ec;
  --accent: #c92a46;
  --accent-soft: #fbe9ec;
  --blush: #f8f0f1;

  --ground: #faf9f5;
  --surface: #ffffff;
  --surface-sunken: #f2f1ea;
  --ink: #1a1c19;
  --muted: #5a6157;
  --faint: #868c82;
  --line: #e3e2d8;
  --line-soft: #eeede4;

  --ok: #0b6a3c;
  --bad: #b3261e;

  --shadow: 0 1px 2px rgb(26 26 26 / 5%), 0 12px 28px -18px rgb(26 26 26 / 22%);
  --shadow-lift: 0 2px 4px rgb(26 26 26 / 6%), 0 18px 40px -20px rgb(8 81 46 / 30%);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --display: "Comfortaa", "Trebuchet MS", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: clamp(1100px, 92vw, 1240px);
  --gutter: 20px;
  --measure: 70ch;

  /* The logo is a green-and-rose PNG drawn for a white page. */
  --logo-filter: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #5cc68a;
    --brand-deep: #86d9a8;
    --brand-tint: #17261d;
    --accent: #ff7088;
    --accent-soft: #2c1a1f;
    --blush: #231c1e;

    --ground: #111411;
    --surface: #191d19;
    --surface-sunken: #141813;
    --ink: #eff2ec;
    --muted: #abb3a7;
    --faint: #858c81;
    --line: #2a3029;
    --line-soft: #222721;

    --ok: #5cc68a;
    --bad: #ff8a80;

    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 14px 30px -18px rgb(0 0 0 / 70%);
    --shadow-lift: 0 2px 6px rgb(0 0 0 / 45%), 0 20px 44px -22px rgb(0 0 0 / 80%);

    /* Lifts the dark green lettering off a dark ground; the rose stays a rose. */
    --logo-filter: brightness(1.75) saturate(0.85);
  }
}

:root[data-theme="dark"] {
  --brand: #5cc68a;
  --brand-deep: #86d9a8;
  --brand-tint: #17261d;
  --accent: #ff7088;
  --accent-soft: #2c1a1f;
  --blush: #231c1e;

  --ground: #111411;
  --surface: #191d19;
  --surface-sunken: #141813;
  --ink: #eff2ec;
  --muted: #abb3a7;
  --faint: #858c81;
  --line: #2a3029;
  --line-soft: #222721;

  --ok: #5cc68a;
  --bad: #ff8a80;

  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 14px 30px -18px rgb(0 0 0 / 70%);
  --shadow-lift: 0 2px 6px rgb(0 0 0 / 45%), 0 20px 44px -22px rgb(0 0 0 / 80%);

  --logo-filter: brightness(1.75) saturate(0.85);
}

/* --------------------------------------------------------------- base ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  /* 16px at 1024px of window, 18.5px at 1920px, as on Botanic. */
  font-size: clamp(16px, 0.279vw + 13.14px, 18.5px);
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.22;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
}

h3 {
  font-size: 1.1rem;
}

p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: var(--brand-deep);
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main.wrap {
  padding-block: clamp(24px, 4vw, 44px) clamp(48px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: var(--measure);
}

.muted {
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 22px;
}

.section-head > a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.crumbs {
  font-size: 0.86rem;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand-deep);
}

/* ------------------------------------------------------------- header ---- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-head > .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 10px;
  position: relative;
}

.logo {
  flex: none;
  display: block;
}

.logo img {
  height: 50px;
  width: auto;
  filter: var(--logo-filter);
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.site-nav a[aria-current="page"] {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.nav-toggle,
.search-toggle {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  margin-inline-start: auto;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.search-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  flex: none;
}

.search-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.search-btn .icon:last-of-type {
  display: none;
}

.search-toggle:checked + .search-btn .icon:first-of-type {
  display: none;
}

.search-toggle:checked + .search-btn .icon:last-of-type {
  display: block;
}

.search-panel {
  display: none;
  position: absolute;
  inset-inline: var(--gutter);
  top: calc(100% + 1px);
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.search-toggle:checked ~ .search-panel {
  display: block;
}

@media (max-width: 1080px) {
  .nav-burger {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: var(--gutter);
    top: calc(100% + 1px);
    flex-direction: column;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }

  .logo img {
    height: 42px;
  }
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
}

:root[data-theme="dark"] .btn-primary {
  color: #0d1a12;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary {
    color: #0d1a12;
  }
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* -------------------------------------------------------------- search --- */

.search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 560px;
}

.search-form input {
  flex: 1;
  min-width: 0;
}

input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.search-form input[type="search"] {
  border-radius: var(--radius-pill);
  padding-inline: 18px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* --------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: calc(var(--radius) * 1.6);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand-tint) 100%, transparent) 0%, transparent 60%),
    radial-gradient(80% 70% at 100% 100%, var(--blush) 0%, transparent 65%),
    var(--surface);
  border: 1px solid var(--line-soft);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: start;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.85rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-stats strong {
  font-family: var(--display);
  color: var(--brand-deep);
  font-size: 1.15rem;
  margin-inline-end: 3px;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s;
}

.hero-feature:hover {
  transform: translateY(-3px);
}

.hero-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
}

.hero-feature-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px 22px;
}

.hero-feature-body strong {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.25;
}

.tag-new {
  align-self: start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- topics --- */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.topic {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.topic:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.topic-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.topic-icon .icon {
  width: 24px;
  height: 24px;
}

.topic-name {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.25;
}

.topic-count {
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------------------------------------------------------- post cards --- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1000px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.post-card .cover {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-sunken);
  overflow: hidden;
}

.post-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.post-card:hover .cover img {
  transform: scale(1.03);
}

.post-card .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}

.post-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-deep);
}

.excerpt {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.post-card .meta,
.hero-feature .meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.82rem;
  color: var(--faint);
}

/* -------------------------------------------------------- encyclopedia --- */

.encyclopedia-band {
  padding: clamp(24px, 4vw, 44px);
  border-radius: calc(var(--radius) * 1.6);
  background: var(--brand-tint);
}

.az-columns {
  columns: 4 220px;
  column-gap: 28px;
}

.az-group {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.az-letter {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.3;
}

.az-group ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 3px;
}

.az-group a {
  color: var(--ink);
  text-decoration: none;
}

.az-group a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.az-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: sticky;
  top: 72px;
  z-index: 5;
  padding: 10px 0;
  background: var(--ground);
}

.az-jump a {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--display);
  font-weight: 700;
  color: var(--brand-deep);
  text-decoration: none;
}

.az-jump a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.az-list {
  display: grid;
  gap: 34px;
}

.az-section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
}

.az-section .az-letter {
  font-size: 2rem;
  border-inline-end: 2px solid var(--line);
  padding-top: 6px;
}

.az-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.az-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
}

.az-card:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow);
}

.az-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.az-card > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.az-card strong {
  font-family: var(--display);
  font-size: 1rem;
}

@media (max-width: 620px) {
  .az-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .az-section .az-letter {
    border: 0;
    padding: 0;
  }

  .az-jump {
    top: 62px;
  }
}

/* --------------------------------------------------------- about band ---- */

.about-band {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 18px 40px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: calc(var(--radius) * 1.6);
  background: var(--blush);
}

.about-band > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-band p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .about-band {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* ------------------------------------------------------------- listing --- */

.list-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: start;
}

.list-head .crumbs {
  margin-bottom: 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.chip span {
  color: var(--faint);
  font-weight: 400;
}

.chip:hover,
.chip[aria-current="page"] {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-tint);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  justify-content: center;
}

.pagination a,
.pagination strong {
  min-width: 42px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.pagination strong {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: clamp(32px, 6vw, 72px) 20px;
  border-radius: calc(var(--radius) * 1.6);
  background: var(--surface);
  border: 1px dashed var(--line);
}

.empty-state .search-form {
  margin-block: 6px;
}

/* ------------------------------------------------------------- article --- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.article-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.article-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 0.9rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-hero img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-toc {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  max-width: var(--measure);
}

.article-toc h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.article-toc ol {
  padding-inline-start: 1.3em;
  display: grid;
  gap: 4px;
}

.article-toc a {
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.side-card h2 {
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.side-list {
  display: grid;
  gap: 4px;
}

.side-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px;
  margin-inline: -6px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.side-item:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.side-item img,
.side-item > span:first-child {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
}

.side-search .search-form {
  flex-direction: column;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
  }
}

.disclaimer {
  display: flex;
  gap: 12px;
  align-items: start;
  max-width: var(--measure);
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.92rem;
}

.disclaimer .icon {
  color: var(--accent);
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.post-share h2 {
  font-size: 1rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* --------------------------------------------------------------- prose --- */
/* Styles the HTML imported from WordPress, including its own class names. */

.prose {
  max-width: var(--measure);
  font-size: 1.07rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.9em;
  margin-bottom: -0.3em;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--brand);
}

.prose a {
  font-weight: 600;
}

.prose img {
  height: auto;
  border-radius: var(--radius-sm);
}

.prose figure {
  margin-inline: 0;
}

.prose figcaption,
.prose .wp-caption-text {
  font-size: 0.86rem;
  color: var(--faint);
  margin-top: 0.5em;
}

.prose blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 18px;
  border-inline-start: 3px solid var(--accent);
  color: var(--muted);
  font-size: 1.06rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  border: 1px solid var(--line-soft);
  padding: 9px 11px;
  text-align: start;
}

.prose th {
  background: var(--surface-sunken);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.prose .alignleft {
  float: inline-start;
  margin: 0.3em 1.2em 1em 0;
}

.prose .alignright {
  float: inline-end;
  margin: 0.3em 0 1em 1.2em;
}

.prose .aligncenter {
  margin-inline: auto;
}

.prose .wp-caption {
  max-width: 100%;
}

.prose .size-thumbnail {
  width: 150px;
}

.prose .size-medium {
  width: min(300px, 100%);
}

.prose .size-large,
.prose .size-full {
  width: 100%;
}

.prose::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 600px) {
  .prose .alignleft,
  .prose .alignright {
    float: none;
    margin-inline: 0;
  }

  .prose .size-medium {
    width: 100%;
  }
}

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

.page-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ------------------------------------------------------------- contact --- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: start;
}

.contact-channels {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.contact-channels li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.contact-channels .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.contact-note {
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.contact-form .btn {
  align-self: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.notice-success {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.notice-error {
  background: var(--accent-soft);
  color: var(--bad);
}

@media (max-width: 860px) {
  .contact-layout,
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- footer --- */

.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(32px, 5vw, 56px);
}

.foot-quote blockquote {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--brand-deep);
}

.foot-quote blockquote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  margin-bottom: 8px;
  color: var(--accent);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-block: clamp(32px, 5vw, 48px);
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line-soft);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
}

.foot-brand .logo img {
  height: 56px;
}

.foot-grid h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.foot-grid nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.foot-grid nav a {
  color: var(--muted);
  text-decoration: none;
}

.foot-grid nav a:hover {
  color: var(--brand-deep);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--faint);
}

@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------ cookies --- */

/* A bar at the bottom rather than a sheet over the page: the visitor can read the article they
   came for while deciding, which is also why it does not dim anything. */
.cookie-bar {
  position: fixed;
  z-index: 60;
  inset-inline: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgb(0 0 0 / 12%);
  padding: 14px clamp(16px, 4vw, 32px);
}

.cookie-bar-inner {
  display: grid;
  gap: 12px;
  max-width: 1120px;
  margin-inline: auto;
}

.cookie-bar-text h2 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.cookie-bar-text p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 70ch;
}

.cookie-choices {
  display: grid;
  gap: 8px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--line-soft);
}

.cookie-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-choice.is-fixed {
  cursor: default;
  opacity: 0.75;
}

.cookie-choice strong {
  display: block;
}

.cookie-choice span {
  color: var(--muted);
}

.cookie-choice input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.cookie-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 760px) {
  .cookie-bar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cookie-choices {
    grid-column: 1 / -1;
  }
}

/* Three stacked buttons took a third of a phone screen. Accept keeps its own row, the other two
   share one. */
@media (max-width: 560px) {
  .cookie-bar {
    padding: 12px 16px;
  }

  .cookie-bar-text p {
    font-size: 0.88rem;
  }

  .cookie-bar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-bar-actions .btn:first-child,
  .cookie-bar-actions [data-consent="save"] {
    grid-column: 1 / -1;
  }

  .cookie-bar-actions .btn {
    padding-block: 11px;
    padding-inline: 10px;
  }

  /* Both labels are a verb and "всички", so neither wraps and neither is louder than the other. */
  .cookie-bar-actions .btn-ghost {
    font-size: 0.9rem;
  }
}

/* Fixed columns, so the tables for each group line up under one another. */
.cookie-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.cookie-table th:nth-child(1) {
  width: 30%;
}

.cookie-table th:nth-child(2),
.cookie-table th:nth-child(4) {
  width: 17%;
}

.cookie-table th,
.cookie-table td {
  text-align: start;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.cookie-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.cookie-table code {
  font-size: 0.85rem;
  word-break: break-word;
}

.table-scroll {
  overflow-x: auto;
}

.consent-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.legal .prose h3 {
  font-size: 1.08rem;
}

.form-note {
  font-size: 0.86rem;
}


@media (max-width: 420px) {
  .search-form {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
