/* ═══════════════════════════════════════════════════════════
   archive.css — Shared styles for /kategorien/*
   Loaded AFTER article.css. Editorial design language:
   dark forest base with cream/amber editorial accents.
   ═══════════════════════════════════════════════════════════ */

/* --- Cream theme base ---
   The category/archive pages now share the CREAM reading theme, matching
   articles/article.css, the Verzeichnis and the homepage cream band.
   Re-declared here so the tokens are explicit and self-contained
   (archive.css wins the cascade because it is linked last). The navbar
   stays dark brand chrome (hardcoded) and the lightbox image overlay
   stays dark on purpose. */
:root {
  --bg: #f5ebd7;
  --bg-soft: #fffdf8;
  --bg-warm: #faf3e3;
  --ink: #1f3a32;
  --ink-soft: #42554c;
  --muted: #6f7d73;
  --muted-2: #98a39a;
  --line: #e6dcc6;
  --accent: #0A8C5C;
  --accent-deep: #087048;
  --danger: #c1493e;
  --ok: #4a8c37;
}

/* --- Artikel-Navbar-Container (navy Brand-Chrome) ---
   Damit Kategorie-/Archivseiten die volle .article-nav rendern. Nötig v. a. für
   lifestyle.html, das styles.css (statt article.css) lädt; für die übrigen
   Seiten identische Dublette zu article.css (archive.css gewinnt die Cascade).
   Menü/Dropdowns kommen aus ../articles/article-nav.css (gescopt). */
.article-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 24, 38, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(13, 24, 38, 0.6);
  box-shadow: 0 2px 0 0 #3fbf8e, 0 6px 18px rgba(13, 24, 38, 0.18);
}
.article-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-x, 24px);
}
.article-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eaf1f5;
}
.article-nav__brand__wordmark {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  font-variation-settings: "SOFT" 40, "opsz" 40;
}
.article-nav__brand__wordmark em {
  font-style: italic;
  font-weight: 500;
  color: #3fbf8e;
}

/* --- Editorial color tokens (remapped for the cream theme) ---
   Variable names kept for stability so every rule below keeps working.
   The "cream"/"on-dark" tokens now resolve to dark ink on the light
   background; the few places that use them as a light SURFACE (none in
   this file — see helfer-hub.css) get explicit values in their rules. */
:root {
  --hl-cream: #1f3a32;
  --hl-cream-bright: #1f3a32;
  --hl-accent: #B0741A;
  --hl-accent-strong: #b3502a;
  --hl-text-on-dark-soft: #42554c;
  --hl-text-on-dark-mute: #6f7d73;
  --hl-tile-bg: #fffdf8;
  --hl-tile-border: #e6dcc6;
  --hl-text-on-cream: #1f3a32;
}

.archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 48px) 96px;
  --text-shadow-soft: none;
}

/* ───────────── Breadcrumb ───────────── */
.archive-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.archive-breadcrumb a {
  color: var(--hl-text-on-dark-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}
.archive-breadcrumb a:hover {
  color: var(--hl-accent);
  border-color: var(--hl-accent);
}
.archive-breadcrumb__sep { opacity: 0.5; }
.archive-breadcrumb__current { color: var(--hl-cream); }

/* ───────────── Header ───────────── */
.archive-head {
  margin-bottom: 48px;
  display: grid;
  gap: 18px;
  max-width: 820px;
}
.archive-head__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hl-accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.archive-head__kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.archive-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  margin: 0;
  color: var(--hl-cream-bright);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.archive-head__title em {
  font-style: italic;
  color: var(--hl-accent);
  font-weight: 500;
}
.archive-head__lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--hl-text-on-dark-soft);
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}
.archive-head__disclaimer {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--hl-text-on-dark-soft);
  max-width: 62ch;
  margin: 18px 0 0;
  padding: 12px 16px;
  background: var(--hl-tile-bg);
  border: 1px solid var(--hl-tile-border);
  border-radius: 12px;
  text-wrap: pretty;
}
.archive-head__disclaimer strong {
  color: var(--hl-cream);
  font-weight: 600;
}

/* ───────────── Sub-category grid (Landing) ───────────── */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.sub-tile {
  display: block;
  position: relative;
  padding: 24px 24px 22px;
  border-radius: 16px;
  background: var(--hl-tile-bg);
  border: 1px solid var(--hl-tile-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease;
  overflow: hidden;
}
.sub-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--hl-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.sub-tile:hover {
  transform: translateY(-3px);
  background: var(--bg-warm);
  border-color: #d6c7a8;
}
.sub-tile:hover::after { transform: scaleX(1); }
.sub-tile__count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-accent);
  margin-bottom: 12px;
}
.sub-tile__count::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hl-accent);
}
.sub-tile__count b { font-weight: 500; color: var(--hl-cream); }
.sub-tile__count--empty { color: var(--hl-text-on-dark-mute); }
.sub-tile__count--empty::before { background: var(--hl-text-on-dark-mute); }
.sub-tile__count--empty b { color: var(--hl-text-on-dark-mute); }
.sub-tile__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--hl-cream-bright);
  margin: 0 0 8px;
  text-wrap: balance;
}
.sub-tile__desc {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--hl-text-on-dark-soft);
  margin: 0;
  text-wrap: pretty;
}
.sub-tile__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 18px;
  height: 18px;
  color: var(--hl-text-on-dark-mute);
  opacity: 0.5;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.sub-tile:hover .sub-tile__arrow {
  transform: translate(2px, -2px);
  color: var(--hl-cream);
  opacity: 1;
}

/* ───────────── Archive card grid (Training, Ausrüstung etc.) ── */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--hl-tile-bg);
  border: 1px solid var(--hl-tile-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease;
}
.archive-card:hover {
  transform: translateY(-3px);
  background: var(--bg-warm);
  border-color: #d6c7a8;
}
.archive-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-warm);
  flex: none;
}
.archive-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.archive-card:hover .archive-card__img-wrap img {
  transform: scale(1.04);
}
.archive-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.archive-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-accent);
}
.archive-card__meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hl-accent);
}
.archive-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--hl-cream-bright);
  margin: 0;
  text-wrap: balance;
}
.archive-card:hover .archive-card__title {
  color: var(--hl-cream);
}
.archive-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--hl-text-on-dark-soft);
  font-weight: 400;
  margin: 0;
}

@media (max-width: 720px) {
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .archive-card__title { font-size: 22px; }
  .archive-card__body { padding: 18px 20px 22px; }
}

/* ───────────── Article list (Sub-category page) ───────────── */
.article-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.article-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--hl-tile-bg);
  border: 1px solid var(--hl-tile-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease;
}
.article-row--link:hover {
  transform: translateY(-2px);
  background: var(--bg-warm);
  border-color: #d6c7a8;
}
.article-row__img {
  width: 140px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-warm);
  flex: none;
}
.article-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-row__body {
  display: grid;
  gap: 6px;
}
.article-row__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-accent);
}
.article-row__meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hl-accent);
}
.article-row__meta__dot { opacity: 0.5; }
.article-row__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--hl-cream-bright);
  text-wrap: balance;
}
.article-row--link:hover .article-row__title { color: var(--hl-cream); }
.article-row__excerpt {
  font-size: 14px;
  color: var(--hl-text-on-dark-soft);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}
.article-row__arrow {
  width: 22px;
  height: 22px;
  color: var(--hl-text-on-dark-mute);
  opacity: 0.5;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  justify-self: end;
  align-self: center;
}
.article-row--link:hover .article-row__arrow {
  color: var(--hl-cream);
  opacity: 1;
  transform: translateX(4px);
}

/* Planned rows */
.article-row--planned {
  background: transparent;
  border-style: dashed;
  border-color: var(--hl-tile-border);
  opacity: 0.55;
}
.article-row--planned .article-row__img {
  background: #f0e6d0;
  display: grid;
  place-items: center;
  color: var(--hl-text-on-dark-mute);
}
.article-row--planned .article-row__img svg {
  width: 32px;
  height: 32px;
  opacity: 0.55;
}
.article-row--planned .article-row__title {
  color: var(--hl-text-on-dark-soft);
}
.article-row--planned:hover {
  transform: none;
  border-color: #e6dcc6;
}

/* Planned + klickbar → leichter Hover */
.article-row--link-soft {
  cursor: pointer;
}
.article-row--link-soft:hover {
  transform: translateY(-2px);
  background: var(--bg-warm);
  border-color: #e6dcc6;
}
.article-row--link-soft:hover .article-row__title {
  color: var(--hl-cream);
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-warm);
  border: 1px solid var(--hl-tile-border);
  color: var(--hl-text-on-dark-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.badge-soon::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hl-accent);
  animation: pulse-soon 2.4s ease-in-out infinite;
}
@keyframes pulse-soon {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* ───────────── Hack cards (Hacks page) ───────────── */
.hack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}
.hack-card {
  position: relative;
  border-radius: 16px;
  background: var(--hl-tile-bg);
  border: 1px solid var(--hl-tile-border);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease;
}
.hack-card:hover {
  transform: translateY(-3px);
  background: var(--bg-warm);
  border-color: #d6c7a8;
}
.hack-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-warm);
}
.hack-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hack-card:hover .hack-card__img img {
  transform: scale(1.04);
}
.hack-card__body {
  padding: 22px 24px 24px;
}
.hack-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-accent);
  margin-bottom: 12px;
}
.hack-card__tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hl-accent);
}
.hack-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--hl-cream-bright);
  margin: 0 0 10px;
}
.hack-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--hl-text-on-dark-soft);
  font-weight: 400;
  margin: 0;
}

/* Hack card — detail image */
.hack-card__detail {
  padding: 0 24px;
  margin-top: -4px;
}
.hack-card__detail img {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
.hack-card__detail figcaption {
  font-size: 13px;
  color: var(--hl-text-on-dark-mute);
  text-align: center;
  font-style: italic;
  margin-top: 8px;
}

/* Hack card — material list */
.hack-card__materials {
  padding: 16px 24px 24px;
  margin-top: 8px;
  border-top: 1px dashed var(--hl-tile-border);
}
.hack-card__materials__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-accent);
  margin: 0 0 10px;
}
.hack-card__materials ul {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hl-text-on-dark-soft);
}
.hack-card__materials li {
  margin-bottom: 2px;
}
.hack-card__materials li strong {
  color: var(--hl-cream);
}
.hack-card__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--hl-text-on-dark-mute);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--hl-tile-border);
}
.hack-card__time svg {
  width: 14px;
  height: 14px;
}

/* Hack card — safety note */
.hack-card__note {
  margin: 0 24px 22px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hl-text-on-dark-soft);
  background: rgba(244, 166, 114, 0.08);
  border: 1px solid rgba(244, 166, 114, 0.22);
  border-radius: 10px;
}
.hack-card__note strong {
  color: var(--danger);
  font-weight: 600;
}

/* Placeholder hack card (no image yet) */
.hack-card--placeholder .hack-card__img {
  display: grid;
  place-items: center;
  background: #f0e6d0;
}
.hack-card--placeholder .hack-card__img svg {
  width: 48px;
  height: 48px;
  color: var(--hl-accent);
  opacity: 0.3;
}

@media (max-width: 720px) {
  .hack-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hack-card__title { font-size: 22px; }
  .hack-card__body { padding: 18px 20px 20px; }
  .hack-card__detail { padding: 0 20px; }
  .hack-card__materials { padding: 12px 20px 20px; }
  .hack-card__note { margin: 0 20px 18px; }
}

/* ───────────── Lightbox ───────────── */
.hack-card__img img,
.hack-card__detail img {
  cursor: zoom-in !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 18, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--r-md);
  object-fit: contain;
  box-shadow: 0 24px 80px -20px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.lightbox.is-open .lightbox__img {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  line-height: 1.5;
}

/* Empty state */
.archive-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--hl-tile-border);
  border-radius: 16px;
  color: var(--hl-text-on-dark-mute);
  font-family: var(--font-body);
}
.archive-empty__icon {
  width: 48px; height: 48px;
  color: var(--hl-accent);
  opacity: 0.6;
  margin: 0 auto 12px;
}
.archive-empty__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--hl-cream-bright);
  margin: 0 0 8px;
  font-weight: 400;
}

/* Sub-section on sub-category page */
.archive-section {
  margin-top: 48px;
}
.archive-section__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hl-cream);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.archive-section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hl-tile-border);
}

/* Responsive */
@media (max-width: 720px) {
  .archive { padding: 28px 16px 64px; }
  .article-row {
    grid-template-columns: 88px 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 12px;
  }
  .article-row__img { width: 88px; height: 72px; }
  .article-row__arrow { display: none; }
  .article-row__title { font-size: 18px; }
  .article-row__excerpt { display: none; }
  .article-row__body { grid-column: 2; }
  .article-row--planned .article-row__body { grid-column: 2; }
  .badge-soon { grid-column: 1 / -1; justify-self: start; }
}

/* ═══════════════════════════════════════════════════════════
   A-Z Index (krankheiten-a-z.html)
   ═══════════════════════════════════════════════════════════ */

.archive-head__actions {
  margin-top: 4px;
}
.archive-head__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}
.archive-head__pill:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklch, var(--accent) 40%, transparent);
  color: var(--accent);
}

/* A-Z navigation (sticky letter-bar) */
/* ───────────── Filter (Alle / Nur online) ───────────── */
.az-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin: 0 0 24px;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.az-filter__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s, color 0.18s;
}
.az-filter__btn:hover { color: var(--ink); }
.az-filter__btn.is-active {
  background: var(--accent);
  color: #062E1E;
  font-weight: 700;
}
.az-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(31,58,50,0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--ink);
}
.az-filter__btn.is-active .az-filter__count {
  background: rgba(6,46,30,0.20);
  color: #062E1E;
}

.az-nav {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px;
  margin: 0 -12px 28px;
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  justify-content: center;
}
.az-nav__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.az-nav__letter:hover {
  background: color-mix(in oklch, var(--accent) 18%, transparent);
  color: var(--accent-deep, var(--accent));
  transform: translateY(-1px);
}
.az-nav__letter--empty {
  color: color-mix(in oklch, var(--muted) 50%, transparent);
  pointer-events: none;
}

/* A-Z index sections */
.az-index {
  display: grid;
  gap: 36px;
}
.az-section {
  scroll-margin-top: 140px;
}
.az-section__letter {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.az-section__letter::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-bottom: 12px;
}
.az-section__letter span {
  display: inline-block;
  min-width: 56px;
}

.az-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.az-row__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.az-row__link:hover {
  background: var(--bg-soft);
  border-color: color-mix(in oklch, var(--accent) 26%, transparent);
  transform: translateX(2px);
}
.az-row__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
}
.az-row__link:hover .az-row__title {
  color: var(--accent-deep, var(--accent));
}
.az-row__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: none;
}
.az-row__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.az-row__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.az-row__badge--pub {
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  color: var(--accent-deep, var(--accent));
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
}
.az-row__badge--soon {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
}

@media (max-width: 720px) {
  .az-nav { top: 60px; padding: 8px; gap: 2px; }
  .az-nav__letter { min-width: 28px; height: 28px; font-size: 12px; padding: 0 5px; }
  .az-section__letter { font-size: 36px; }
  .az-section__letter span { min-width: 44px; }
  .az-row__link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }
  .az-row__title { font-size: 17px; }
  .az-row__meta { justify-content: flex-start; }
  .az-row__cat { font-size: 9px; }
}
