/* ═══════════════════════════════════════════════════════════════
   UYGHURIFY — style.css
   Editorial, cinematic-minimal theme for a storytelling project.
   Palette: #f5f5f4 (paper) · #171717 (ink) · #5e17eb (violet)
   Type: Fraunces (display serif) · Schibsted Grotesk (body sans)
   Signature motif: an "ikat" zigzag abstracted from atlas (etles)
   silk weaving. Supports light/dark themes and RTL (Uyghur).
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ────────────────────────────────────────────────── */
:root {
  --paper:        #f5f5f4;
  --card:         #ffffff;
  --ink:          #171717;
  --ink-2:        #6d6862;
  --ink-3:        #99948d;
  --line:         #e4e2de;
  --violet:       #5e17eb;   /* accent for text, borders            */
  --violet-btn:   #5e17eb;   /* button background                   */
  --violet-deep:  #40109f;
  --violet-tint:  #ece4fc;
  --violet-ghost: #f4effd;
  --header-bg:    rgba(245, 245, 244, .86);

  /* Fixed-dark surfaces (footer, CTA band) — same in both themes */
  --band:      #171717;
  --band-soft: rgba(255, 255, 255, .78);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

  --w-max:  1180px;
  --w-text: 720px;

  --radius:    14px;
  --radius-sm: 8px;

  --shadow-card: 0 1px 2px rgba(23,23,23,.05), 0 12px 32px -16px rgba(23,23,23,.14);
  --shadow-pop:  0 2px 6px rgba(23,23,23,.07), 0 24px 48px -20px rgba(23,23,23,.22);

  --ease: cubic-bezier(.3,.75,.25,1);

  /* Atlas ikat zigzag — the signature motif, three intensities */
  --ikat-strong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='10' viewBox='0 0 36 10'%3E%3Cpath d='M0 9 9 1.5 18 9 27 1.5 36 9' fill='none' stroke='%235e17eb' stroke-width='1.5'/%3E%3C/svg%3E");
  --ikat-mid:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='10' viewBox='0 0 36 10'%3E%3Cpath d='M0 9 9 1.5 18 9 27 1.5 36 9' fill='none' stroke='%235e17eb' stroke-opacity='.45' stroke-width='1.5'/%3E%3C/svg%3E");
  --ikat-faint:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='10' viewBox='0 0 36 10'%3E%3Cpath d='M0 9 9 1.5 18 9 27 1.5 36 9' fill='none' stroke='%235e17eb' stroke-opacity='.16' stroke-width='1.5'/%3E%3C/svg%3E");
  --ikat-white:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='10' viewBox='0 0 36 10'%3E%3Cpath d='M0 9 9 1.5 18 9 27 1.5 36 9' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='1.5'/%3E%3C/svg%3E");
  --ikat-ink:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='10' viewBox='0 0 36 10'%3E%3Cpath d='M0 9 9 1.5 18 9 27 1.5 36 9' fill='none' stroke='%23171717' stroke-opacity='.10' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* Dark theme (toggled via <html data-theme="dark">) */
[data-theme="dark"] {
  --paper:        #161513;
  --card:         #201f1c;
  --ink:          #f2f1ee;
  --ink-2:        #a8a29a;
  --ink-3:        #7c766f;
  --line:         #2d2b27;
  --violet:       #a684ff;
  --violet-btn:   #6d2df0;
  --violet-deep:  #8557f7;
  --violet-tint:  #2c1d52;
  --violet-ghost: #241a40;
  --header-bg:    rgba(22, 21, 19, .86);
  --shadow-card:  0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.5);
  --shadow-pop:   0 2px 6px rgba(0,0,0,.4), 0 24px 48px -20px rgba(0,0,0,.6);
  color-scheme: dark;
}
[data-theme="dark"] .ph::before { background: linear-gradient(140deg, #2c2a27, #3a3733); }
[data-theme="dark"] .ph--warm::before { background: linear-gradient(140deg, #35302a, #4a4237); }
[data-theme="dark"] .ph--violet::before { background: linear-gradient(140deg, #2c1d52, #48319b); }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .45s var(--ease), color .45s var(--ease);
}
body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: #5e17eb; color: #fff; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -48px;
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: top .35s var(--ease);
}
.skip-link:focus { top: 0; }

/* Uyghur (RTL, Arabic script) fine-tuning */
html[lang="ug"] body { line-height: 1.85; }
html[lang="ug"] h1, html[lang="ug"] h2, html[lang="ug"] h3, html[lang="ug"] h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

/* ── 3. Helpers ───────────────────────────────────────────────── */
.container {
  width: min(var(--w-max), 100% - 48px);
  margin-inline: auto;
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 8px;
  background: var(--ikat-strong) repeat-x left center / 18px 6px;
}
.eyebrow--light { color: #cbb4fb; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0; }
.section-head .eyebrow { margin-bottom: 12px; }

.lede {
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--ink-2);
  max-width: 56ch;
}

/* Signature divider: fading woven atlas band */
.ikat-band {
  height: 30px;
  background-image: var(--ikat-strong), var(--ikat-mid), var(--ikat-faint);
  background-repeat: repeat-x;
  background-size: 36px 10px;
  background-position: 0 0, 18px 10px, 0 20px;
}
.ikat-band--faint { background-image: var(--ikat-mid), var(--ikat-faint), var(--ikat-faint); }

/* ── 4. Buttons & links ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease);
}
.btn:active { transform: scale(.97); }

.btn--primary { background: var(--violet-btn); color: #fff; }
.btn--primary:hover { background: #40109f; }
[data-theme="dark"] .btn--primary:hover { background: #7d43f5; }

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

.btn--light { border-color: #fff; color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: #171717; }

.btn--sm { padding: 9px 18px; font-size: 13.5px; }

.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: translateX(-3px); }

.link-more {
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--violet);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.link-more:hover { color: var(--violet); }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn svg { width: 17px; height: 17px; }

/* Theme toggle sun/moon */
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }

/* ── 5. Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .45s var(--ease), background .45s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand .brand__dot { color: var(--violet); }

.nav {
  display: flex;
  gap: 2px;
  margin-inline: auto;
}
.nav a {
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(125,120,113,.12); }
.nav a[aria-current="page"] {
  color: var(--violet);
  font-weight: 600;
  background: var(--violet-ghost);
}
.nav__extra { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language picker */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.lang__btn:hover { border-color: var(--ink-3); }
.lang__btn .chev { transition: transform .35s var(--ease); font-size: 9px; color: var(--ink-3); }
.lang.is-open .lang__btn .chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 176px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  display: none;
  z-index: 110;
}
.lang.is-open .lang__menu { display: block; }
.lang__menu button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
  color: var(--ink-2);
}
.lang__menu button:hover { background: var(--paper); color: var(--ink); }
.lang__menu button.is-active { color: var(--violet); font-weight: 600; }
.lang__menu .lang__native { color: var(--ink-3); font-size: 12.5px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .45s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
  .header__cta { display: none; }
}

/* ── 6. Hero slider ───────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
}
.slides {
  position: relative;
  min-height: clamp(560px, 72vh, 680px);
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide > .container { position: relative; z-index: 2; width: min(var(--w-max), 100% - 48px); }

.slide h1 {
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 16ch;
  margin-bottom: 24px;
}
.slide h1 em { font-style: italic; font-weight: 450; color: var(--violet); }
.slide .lede { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Slide variants */
.slide--manifesto { background: var(--paper); }

.slide--story { color: #fff; }
.slide--story .slide__bg { position: absolute; inset: 0; }
.slide--story .slide__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(75deg, rgba(13,10,20,.86) 25%, rgba(13,10,20,.4) 70%, rgba(13,10,20,.15));
}
html[dir="rtl"] .slide--story .slide__bg::before {
  background: linear-gradient(-75deg, rgba(13,10,20,.86) 25%, rgba(13,10,20,.4) 70%, rgba(13,10,20,.15));
}
.slide--story h1 { color: #fff; }
.slide--story h1 em { color: #cbb4fb; }
.slide--story .lede { color: rgba(255,255,255,.78); }

.slide--film {
  background: linear-gradient(150deg, #2a1745, #40109f 130%);
  color: #fff;
}
.slide--film::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42px;
  background: var(--ikat-white) repeat-x 0 0 / 36px 10px,
              var(--ikat-white) repeat-x 18px 14px / 36px 10px,
              var(--ikat-white) repeat-x 0 28px / 36px 10px;
  opacity: .4;
}
.slide--film h1 { color: #fff; }
.slide--film h1 em { color: #cbb4fb; }
.slide--film .lede { color: rgba(255,255,255,.78); }

/* Slider UI */
.slider-ui {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
  bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}
.slider-ui > * { pointer-events: auto; }

.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
  width: 34px; height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(125,120,113,.35);
  cursor: pointer;
  transition: background .35s var(--ease);
}
.slide--story ~ .slider-ui .slider-dots button { background: rgba(255,255,255,.35); }
.slider-dots button.is-active { background: var(--violet); }

.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.slider-arrows button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.hero__foot {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 26px 8px;
}
.hero__foot .ikat-band { flex: 1; }
.hero__foot .hero__note {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── 7. Placeholder visuals ───────────────────────────────────── */
/* PHP: replace these divs with real <img> elements. */
/* The visual lives on ::before (gradient) + ::after (pattern) so a
   hover zoom scales the image INSIDE the box while the box itself
   stays fixed. Real <img> children get the same treatment. */
.ph {
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #e9e7e4, #d8d5d1);
  transition: transform .8s var(--ease);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ikat-ink) repeat 0 0 / 36px 10px;
  opacity: .55;
  transition: transform .8s var(--ease);
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.ph--violet::before { background: linear-gradient(140deg, #ece4fc, #cdb5f8); }
.ph--violet::after { background-image: var(--ikat-white); }
.ph--deep::before { background: linear-gradient(150deg, #2b2440, #40109f 130%); }
.ph--deep::after { background-image: var(--ikat-white); opacity: .28; }
.ph--ink::before { background: linear-gradient(150deg, #262524, #171717); }
.ph--ink::after { background-image: var(--ikat-white); opacity: .2; }
.ph--warm::before { background: linear-gradient(140deg, #efe9df, #ddd2c2); }

/* ── 8. Story cards ───────────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.story-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.story-card .ph { aspect-ratio: 3 / 2; }
.story-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.story-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.story-card__meta .tag { color: var(--violet); }
.story-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.story-card h3 {
  font-size: 21.5px;
  margin-bottom: 10px;
  transition: color .3s var(--ease);
}
.story-card:hover h3 { color: var(--violet); }
.story-card p { font-size: 15px; color: var(--ink-2); margin: 0 0 18px; }
.story-card__foot { margin-top: auto; font-size: 13.5px; color: var(--ink-3); }

/* Featured split block (used for featured news) */
.feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .45s var(--ease);
}
.feature:hover { box-shadow: var(--shadow-card); }
.feature .ph { min-height: 340px; }
.feature__body {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature__body h3 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 14px; }
.feature:hover h3 { color: var(--violet); }
.feature__body p { color: var(--ink-2); margin-bottom: 24px; }
.feature__body .story-card__meta { margin-bottom: 16px; }

/* ── 9. Video components ──────────────────────────────────────── */
.reel-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 218px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reel-strip::-webkit-scrollbar { display: none; }

.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  display: flex;
  cursor: pointer;
}
.reel-card .ph { position: absolute; inset: 0; }
.reel-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 18px;
  width: 100%;
  background: linear-gradient(transparent, rgba(13,10,20,.82));
}
.reel-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0;
}
.reel-card__dur {
  position: absolute;
  z-index: 1;
  top: 12px;
  inset-inline-end: 12px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(13,10,20,.55);
  backdrop-filter: blur(4px);
}
.play-badge {
  position: absolute;
  z-index: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.play-badge::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #171717;
  margin-left: 3px;
}
.reel-card:hover .play-badge,
.doc-card:hover .play-badge { scale: 1.08; background: #fff; }

.strip-nav { display: flex; gap: 8px; }
.strip-nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.strip-nav button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Mini documentary cards */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.doc-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  cursor: pointer;
}
.doc-card .ph { position: absolute; inset: 0; }
.doc-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  width: 100%;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(transparent, rgba(13,10,20,.85));
}
.doc-card h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 6px; }
.doc-card__meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  margin: 0;
}

/* ── 10. News rows (with thumbnails) ──────────────────────────── */
.news-list { border-top: 1px solid var(--line); }
.news-row {
  display: grid;
  grid-template-columns: 148px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .3s var(--ease);
}
.news-row:hover { background: var(--card); }
.news-row__thumb {
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
}
.news-row__thumb.ph::after { background-size: 28px 8px; }
.news-row time {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.news-row h3 {
  font-size: 20px;
  margin: 0 0 6px;
  transition: color .3s var(--ease);
}
.news-row:hover h3 { color: var(--violet); }
.news-row p { font-size: 14.5px; color: var(--ink-2); margin: 0; max-width: 62ch; }
.news-row__cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet);
  white-space: nowrap;
  align-self: start;
  padding-top: 26px;
}

/* ── 11. CTA band (fixed dark in both themes) ─────────────────── */
.cta-band {
  background: var(--band);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30px;
  background: var(--ikat-white) repeat-x 0 0 / 36px 10px,
              var(--ikat-white) repeat-x 18px 12px / 36px 10px;
  opacity: .5;
}
.cta-band h2 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 18ch;
  margin-bottom: 14px;
  color: #fff;
}
.cta-band h2 em { font-style: italic; color: #c9b0f9; }
.cta-band p { color: var(--band-soft); max-width: 52ch; margin-bottom: 30px; }
.cta-band .btn--primary { background: #5e17eb; }
.cta-band .btn--primary:hover { background: #7638f0; }

/* ── 12. Page head (inner pages) ──────────────────────────────── */
.page-head {
  padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 500;
  letter-spacing: -.02em;
  max-width: 18ch;
}
.page-head .lede { margin-top: 6px; }

/* Filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.filters button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filters button:hover { border-color: var(--ink-3); }
.filters button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(40px, 6vw, 64px);
}
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: grid;
  place-items: center;
  padding-inline: 8px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s var(--ease);
}
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--violet-btn); border-color: var(--violet-btn); color: #fff; }

/* ── 13. Article / detail pages ───────────────────────────────── */
.article-head {
  padding-block: clamp(56px, 8vw, 88px) clamp(32px, 4vw, 44px);
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.article-head .eyebrow { justify-content: center; }
.article-head h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 500;
  margin-bottom: 20px;
}
.article-head .article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.article-head .article-meta strong { color: var(--ink); font-weight: 600; }

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 clamp(36px, 5vw, 56px);
}
.article-cover .ph { aspect-ratio: 21 / 9; }
.article-cover figcaption {
  padding-top: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}

.article-body {
  max-width: var(--w-text);
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.8;
}
/* Drop cap: opt-in via .article-body--dropcap (stories only; news,
   fact-checks and legal pages stay plain) */
.article-body--dropcap > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.6em;
  font-weight: 500;
  float: inline-start;
  line-height: .82;
  padding: 6px 14px 0 0;
  color: var(--violet);
}
html[dir="rtl"] .article-body--dropcap > p:first-of-type::first-letter {
  padding: 6px 0 0 14px;
}

/* In-text links: visible style + hover */
.article-body p a {
  color: var(--violet);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .3s var(--ease), text-decoration-thickness .2s var(--ease);
}
.article-body p a:hover {
  color: var(--violet-deep);
  text-decoration-thickness: 2px;
}
.article-body h2 { font-size: 28px; margin: 1.8em 0 .6em; }
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0;
  padding-inline-start: 28px;
  border-inline-start: 3px solid var(--violet);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
}
.article-body blockquote footer {
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  color: var(--ink-3);
}
.article-body figure { margin: 2.2em 0; }
.article-body figure .ph { aspect-ratio: 3/2; border-radius: var(--radius-sm); }
.article-body figcaption { padding-top: 10px; font-size: 13.5px; color: var(--ink-3); }

.article-tags {
  max-width: var(--w-text);
  margin: clamp(36px, 5vw, 52px) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-tags a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--violet);
  background: var(--violet-ghost);
  padding: 7px 14px;
  border-radius: 999px;
  transition: background .3s var(--ease);
}
.article-tags a:hover { background: var(--violet-tint); }

.article-share {
  max-width: var(--w-text);
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-3);
}
.article-share a {
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.article-share a:hover { color: var(--violet); border-color: var(--violet); }

/* Reading progress bar (injected by JS on article pages) */
.read-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  z-index: 150;
  height: 3px;
  width: 0;
  background: var(--violet-btn);
}

/* Back to top (injected by JS) */
.to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── 14. Team ─────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.team-card .ph { aspect-ratio: 1; }
.team-card__body { padding: 18px 20px 22px; }
.team-card h3 { font-size: 19px; margin-bottom: 3px; }
.team-card__role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}
.team-card p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ── 15. Value / info cards ───────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.value-card__mark {
  width: 40px; height: 12px;
  background: var(--ikat-strong) repeat-x 0 center / 20px 7px;
  margin-bottom: 20px;
}
.value-card h3 { font-size: 21px; margin-bottom: 10px; }
.value-card p { font-size: 15px; color: var(--ink-2); margin: 0; }
.value-card a { color: var(--violet); text-decoration: none; font-weight: 600; }
.value-card a:hover { text-decoration: underline; }

/* Manifesto block (about) */
.manifesto {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.4;
  font-weight: 450;
}
html[lang="ug"] .manifesto p { font-family: var(--font-body); line-height: 1.7; }
.manifesto p em { font-style: italic; color: var(--violet); }

/* Process steps (a genuine sequence, hence numbered) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--violet);
  display: inline-block;
  border: 1.5px solid var(--violet-tint);
  background: var(--violet-ghost);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ── 16. Forms ────────────────────────────────────────────────── */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field label .req { color: var(--violet); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-tint);
}
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-2);
}
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: #5e17eb; }

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--violet-ghost);
  border: 1px solid var(--violet-tint);
  color: var(--violet);
  font-weight: 500;
  font-size: 14.5px;
}
.form-success.is-visible { display: block; }

/* Contact info block */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-info h2 { font-size: clamp(26px, 3vw, 34px); }
.contact-info dl { margin: 28px 0 0; display: grid; gap: 22px; }
.contact-info dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.contact-info dd { margin: 0; font-size: 16.5px; font-weight: 500; }
.contact-info dd a { text-decoration: none; border-bottom: 1.5px solid var(--violet); padding-bottom: 1px; }
.contact-info dd a:hover { color: var(--violet); }
.contact-info .lede a { color: var(--violet); }

/* ── 17. Search overlay ───────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(13, 10, 20, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  padding: min(14vh, 130px) 20px 40px;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(640px, 100%);
  height: fit-content;
  max-height: 70vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 18px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px 4px 16px;
  background: var(--paper);
}
html[dir="rtl"] .search-bar { padding: 4px 16px 4px 8px; }
.search-bar svg { color: var(--ink-3); flex: none; }
.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.search-input:focus { outline: none; }
.search-close {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.search-hint {
  font-size: 13px;
  color: var(--ink-3);
  margin: 14px 8px 4px;
}
.search-results { list-style: none; margin: 10px 0 0; padding: 0; }
.search-results a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.search-results a:hover { background: var(--paper); color: var(--violet); }
.search-tag {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--violet-ghost);
  color: var(--violet);
}
.search-empty { padding: 16px 10px; color: var(--ink-3); font-size: 14.5px; }

/* ── 19. Footer (fixed dark in both themes) ───────────────────── */
.site-footer {
  margin-top: clamp(48px, 7vw, 80px);
  background: var(--band);
  color: var(--band-soft);
}
.site-footer .ikat-band {
  background-image: var(--ikat-strong), var(--ikat-mid);
  background-position: 0 4px, 18px 14px;
  background-color: var(--paper);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(48px, 6vw, 72px) 48px;
}
.footer__brand .brand { color: #fff; font-size: 26px; }
.footer__brand p { font-size: 14.5px; margin-top: 14px; max-width: 30ch; color: rgba(255,255,255,.6); }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col a {
  font-size: 14.5px;
  text-decoration: none;
  color: rgba(255,255,255,.78);
  transition: color .3s var(--ease);
}
.footer__col a:hover { color: #fff; }

.footer__news p { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.newsletter {
  display: flex;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  color: #fff;
}
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.newsletter input:focus { outline: none; }
.newsletter button {
  border: 0;
  background: #5e17eb;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 0 20px;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.newsletter button:hover { background: #7638f0; }
.site-footer .form-success {
  background: rgba(94,23,235,.18);
  border-color: rgba(94,23,235,.4);
  color: #c9b0f9;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer__bottom nav { display: flex; gap: 20px; }
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ── 20. Reveal animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── 21. Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  /* Mobile: desktop nav hides; the drawer (built by main.js as a
     body-level element) takes over. */
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }

  .story-grid, .value-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature .ph { min-height: 240px; }
  .doc-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 120px 1fr; }
  .news-row__cat { display: none; }
  .slides { min-height: clamp(600px, 82vh, 760px); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .story-grid, .value-grid, .steps, .team-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .news-row { grid-template-columns: 96px 1fr; gap: 16px; padding-block: 16px; align-items: start; }
  .news-row h3 { font-size: 17px; }
  .news-row p { display: none; }
  .reel-strip { grid-auto-columns: 176px; }
  .article-body { font-size: 17px; }
  .header__inner { gap: 12px; }
  .header__actions { gap: 8px; }
  .lang__btn { padding: 8px 11px; }
  .slide h1 { font-size: clamp(34px, 9vw, 44px); }
  .slider-arrows { display: none; }
  .hero__foot .hero__note { display: none; }
  .to-top { inset-inline-end: 16px; bottom: 16px; }
}

/* ── 22. Drawer (mobile menu) ─────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(13, 10, 20, .5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  z-index: 141;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-inline-start: 1px solid var(--line);
  padding: 16px 26px 28px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s;
  overflow-y: auto;
  box-shadow: -24px 0 60px -30px rgba(13,10,20,.35);
}
html[dir="rtl"] .drawer {
  transform: translateX(-100%);
  box-shadow: 24px 0 60px -30px rgba(13,10,20,.35);
}
.drawer.is-open { transform: none; visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-bottom: 14px;
}
.drawer__head .brand { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); }
.drawer__head .brand .brand__dot { color: var(--violet); }
.drawer__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.drawer__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  font-family: var(--font-display);
  font-size: clamp(25px, 6vw, 31px);
  font-weight: 500;
  letter-spacing: -.015em;
  text-decoration: none;
  color: var(--ink);
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
html[dir="rtl"] .drawer__nav a { transform: translateX(-26px); }
html[lang="ug"] .drawer__nav a { font-family: var(--font-body); font-weight: 700; }
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; }
.drawer__nav a:hover,
.drawer__nav a[aria-current="page"] { color: var(--violet); }

.drawer__foot {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 20px;
  justify-items: stretch;
}
.drawer__foot .btn { justify-content: center; padding-block: 16px; }
.drawer__foot .social-links { justify-content: center; margin-top: 0; }

@media (min-width: 961px) {
  .drawer, .drawer-backdrop { display: none; }
}

/* ── 23. Social links ─────────────────────────────────────────── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: inherit;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.social-links a:hover {
  background: var(--violet-btn);
  border-color: var(--violet-btn);
  color: #fff;
  transform: translateY(-3px);
}
.social-links svg { width: 17px; height: 17px; }

.site-footer .social-links a { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.78); }
.site-footer .social-links a:hover { border-color: var(--violet-btn); color: #fff; }

/* Labeled variant (contact page) */
.social-links--labeled { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 4px; }
.social-links--labeled a {
  width: auto; height: auto;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
}
.social-links--labeled a:hover { background: none; color: var(--violet); transform: translateX(3px); }
html[dir="rtl"] .social-links--labeled a:hover { transform: translateX(-3px); }
.social-links--labeled svg { width: 20px; height: 20px; }

/* Footer credits */
.footer__credits { font-size: 13px; color: rgba(255,255,255,.45); }
.footer__credits a {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.footer__credits a:hover { color: #fff; }

/* ── 24. Fact-check (Teyit) ───────────────────────────────────── */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.verdict::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.verdict--true     { color: #177245; background: #e2f2e9; }
.verdict--false    { color: #b3362a; background: #fbe9e6; }
.verdict--mixed    { color: #96650e; background: #f8efdc; }
.verdict--checking { color: var(--ink-2); background: var(--line); }
[data-theme="dark"] .verdict--true  { color: #67d19c; background: #14291d; }
[data-theme="dark"] .verdict--false { color: #ff9384; background: #331510; }
[data-theme="dark"] .verdict--mixed { color: #e9b45c; background: #2c2210; }

.verdict-banner {
  max-width: var(--w-text);
  margin: 0 auto clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.verdict-banner .verdict { font-size: 13px; }
.verdict-banner p { margin: 0; font-size: 14.5px; color: var(--ink-2); flex: 1; min-width: 220px; }

.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.source-list li {
  padding-inline-start: 22px;
  position: relative;
  font-size: 15px;
}
.source-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 12px; height: 7px;
  background: var(--ikat-strong) no-repeat 0 0 / 12px 7px;
}
.source-list a { color: var(--violet); text-decoration: none; font-weight: 500; }
.source-list a:hover { text-decoration: underline; }

/* ── 25. FAQ accordion ────────────────────────────────────────── */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 22px;
  transition: border-color .35s var(--ease);
}
.faq details[open] { border-color: var(--violet-tint); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--violet);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ── 26. Audio player (story detail) ──────────────────────────── */
.audio-player {
  max-width: var(--w-text);
  margin: 0 auto clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  padding-inline-start: 10px;
}
.audio-player__play {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--violet-btn);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.audio-player__play:hover { transform: scale(1.06); }
.audio-player__play svg { width: 20px; height: 20px; }
.audio-player__body { min-width: 0; }
.audio-player__label { font-size: 13.5px; font-weight: 600; margin: 0; }
.audio-player__note { font-size: 12px; color: var(--ink-3); margin: 2px 0 0; }
.audio-player__bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.audio-player__bar span { display: block; height: 100%; width: 0; background: var(--violet-btn); }
.audio-player__time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.audio-player.is-empty-nudge .audio-player__note { color: var(--violet); }

/* ── 27. Word of the day ──────────────────────────────────────── */
.word-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  background: var(--violet-ghost);
  border: 1px solid var(--violet-tint);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4vw, 48px);
}
.word-card .eyebrow { margin-bottom: 10px; }
.word-card__word {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--violet);
}
.word-card__latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18.5px;
  margin: 0 0 8px;
}
.word-card__meaning { color: var(--ink-2); margin: 0; max-width: 52ch; }
@media (max-width: 700px) {
  .word-card { grid-template-columns: 1fr; gap: 18px; }
}

/* ── 28. 404 & legal ──────────────────────────────────────────── */
.not-found {
  min-height: 56vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding-block: clamp(64px, 10vw, 120px);
}
.not-found .nf-code {
  font-family: var(--font-display);
  font-size: clamp(90px, 18vw, 168px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.not-found .nf-code em { font-style: italic; color: var(--violet); }
.not-found .ikat-band { width: min(260px, 60vw); margin-bottom: 26px; }
.not-found h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.not-found p { color: var(--ink-2); max-width: 44ch; margin-bottom: 28px; }

.legal-updated {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: clamp(24px, 3vw, 36px);
}


/* ── 29. Centered section head (FAQ etc.) ─────────────────────── */
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.section-head--center .eyebrow { justify-content: center; }

/* ── 30. Image hover zoom ─────────────────────────────────────── */
/* Zoom happens INSIDE the box: only the ::before/::after layers and
   any real <img> scale; the container never grows. */
.story-card:hover .ph::before, .story-card:hover .ph::after, .story-card:hover .ph img,
.team-card:hover .ph::before, .team-card:hover .ph::after, .team-card:hover .ph img,
.feature:hover .ph::before, .feature:hover .ph::after, .feature:hover .ph img,
.news-row:hover .ph::before, .news-row:hover .ph::after, .news-row:hover .ph img,
.claim-row:hover .ph::before, .claim-row:hover .ph::after, .claim-row:hover .ph img,
.side-item:hover .ph::before, .side-item:hover .ph::after, .side-item:hover .ph img,
.side-feature:hover .ph::before, .side-feature:hover .ph::after, .side-feature:hover .ph img,
.doc-card:hover .ph::before, .doc-card:hover .ph::after, .doc-card:hover .ph img,
.reel-card:hover .ph::before, .reel-card:hover .ph::after, .reel-card:hover .ph img {
  transform: scale(1.07);
}

/* ── 31. Typewriter ticker ────────────────────────────────────── */
.typewriter { min-width: 0; }
.typewriter .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--violet);
  margin-inline-start: 4px;
  vertical-align: -2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (max-width: 600px) {
  .hero__foot .hero__note.typewriter { display: block; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__foot .ikat-band { width: 100%; }
}

/* ── 32. Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 26px;
  font-size: 13px;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  max-width: 34ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 33. Sticky share rail ────────────────────────────────────── */
/* The rail lives INSIDE the article container (.has-rail) and is
   sticky within it — it scrolls with the reader but stops when the
   article ends, so it can never collide with the footer. */
.has-rail { position: relative; }
.share-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 44px;
  z-index: 60;
}
.share-rail__inner {
  position: sticky;
  top: 130px;
  display: grid;
  gap: 10px;
}
.share-rail a,
.share-rail button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.share-rail a:hover,
.share-rail button:hover {
  background: var(--violet-btn);
  border-color: var(--violet-btn);
  color: #fff;
  transform: translateY(-2px);
}
.share-rail svg { width: 17px; height: 17px; }
.share-rail.is-copied [data-copy-link] {
  background: #177245;
  border-color: #177245;
  color: #fff;
}
@media (max-width: 900px) { .share-rail { display: none; } }

/* ── 34. Fact-check rows (minimal list) ───────────────────────── */
.claim-list { border-top: 1px solid var(--line); }
.claim-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .3s var(--ease);
}
.claim-row:hover { background: var(--card); }
.claim-row__thumb {
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
}
.claim-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.claim-row__meta time { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.claim-row h3 {
  font-size: 19.5px;
  margin: 0 0 5px;
  transition: color .3s var(--ease);
}
.claim-row:hover h3 { color: var(--violet); }
.claim-row p { font-size: 14px; color: var(--ink-2); margin: 0; max-width: 66ch; }
@media (max-width: 600px) {
  .claim-row { grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
  .claim-row p { display: none; }
  .claim-row h3 { font-size: 16.5px; }
}

/* ── 35. Video detail (horizontal) ────────────────────────────── */
.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0a14;
}
.video-player .ph { position: absolute; inset: 0; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-info {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 44px);
}
.video-info h2 {
  font-size: 22px;
  margin-bottom: 14px;
}
.video-info .article-share { margin: 20px 0 0; max-width: none; }

.credits {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.credits h2 { font-size: 20px; margin-bottom: 18px; }
.credits dl { margin: 0; display: grid; gap: 14px; }
.credits dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.credits dd { margin: 0; font-size: 15px; font-weight: 500; }

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

/* ── 36. Reel detail (vertical) ───────────────────────────────── */
.reel-layout {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.reel-player {
  position: sticky;
  top: 100px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0a14;
}
.reel-player .ph { position: absolute; inset: 0; }
.reel-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-info h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  margin-bottom: 16px;
}
.reel-info .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.reel-info .credits { margin-top: 28px; }
.reel-info .article-tags { max-width: none; margin-top: 28px; }
.reel-info .article-share { max-width: none; }

@media (max-width: 800px) {
  .reel-layout { grid-template-columns: 1fr; }
  .reel-player {
    position: static;
    width: min(420px, 100%);
    margin-inline: auto;
  }
}

/* ── 37. Timeline (about) ─────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-inline-start: 34px;
  border-inline-start: 2px solid var(--violet-tint);
  display: grid;
  gap: clamp(30px, 4vw, 44px);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  inset-inline-start: -42px;
  top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--violet);
  border: 3px solid var(--paper);
}
.timeline__date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 6px;
}
.timeline__item h3 { font-size: 21px; margin-bottom: 6px; }
.timeline__item p { font-size: 15px; color: var(--ink-2); margin: 0; max-width: 56ch; }

/* ── 38. Story map (experimental) ─────────────────────────────── */
.map-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(16px, 3vw, 36px);
  overflow: hidden;
}
.map-svg { width: 100%; height: auto; display: block; }
.map-svg .map-thread {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  opacity: .4;
}
.map-svg .map-node { cursor: pointer; }
.map-svg .map-node circle { transition: r .35s var(--ease), opacity .35s var(--ease); }
.map-svg .map-node .map-node__halo {
  fill: var(--violet);
  opacity: .14;
}
.map-svg .map-node .map-node__dot { fill: var(--violet); }
.map-svg .map-node text {
  fill: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.map-svg .map-node .map-node__count {
  fill: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
}
.map-svg .map-node:hover .map-node__halo,
.map-svg .map-node.is-active .map-node__halo { opacity: .3; }
.map-svg .map-node:hover text,
.map-svg .map-node.is-active text { fill: var(--violet); }
.map-svg .map-node:focus-visible { outline: 2px solid var(--violet); border-radius: 6px; }


/* Mobile: brand stays at the inline-start, actions (search, theme,
   language, hamburger) align to the inline-end as one group. */
@media (max-width: 960px) {
  .header__actions { margin-inline-start: auto; }
}

/* ── 39. Article layout with sidebar (news / fact-check detail) ── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.article-main { min-width: 0; }

/* Left-aligned article header inside the sidebar layout */
.article-head--left {
  text-align: start;
  max-width: none;
  margin-inline: 0;
  /* No top padding: the eyebrow lines up with the sidebar's first box */
  padding-block: 0 clamp(18px, 3vw, 26px);
}
.article-head--left .eyebrow { justify-content: flex-start; }
.article-head--left .article-meta { justify-content: flex-start; }

/* Full-width article pieces inside the layout's main column */
.article-main .article-body,
.article-main .verdict-banner,
.article-main .article-cover,
.article-main .article-tags,
.article-main .article-share {
  max-width: none;
  margin-inline: 0;
}

/* Sidebar: flows normally; only its LAST box sticks while scrolling */
.sidebar {
  display: grid;
  gap: 20px;
  align-self: stretch;
  align-content: start;
}
.sidebar > .sidebar__box:last-child {
  position: sticky;
  top: 96px;
}
.sidebar__box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.sidebar__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

/* Minimal related-content rows */
.side-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.side-item:first-of-type { padding-top: 0; }
.side-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.side-item .ph {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}
.side-item h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0;
  transition: color .3s var(--ease);
}
.side-item:hover h3 { color: var(--violet); }
.side-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.side-item__meta .verdict {
  font-size: 10px;
  padding: 3px 9px;
  gap: 5px;
}
.side-item__meta .verdict::before { width: 5px; height: 5px; }

/* Cross-discovery feature card */
.side-feature { display: block; text-decoration: none; color: inherit; }
.side-feature .ph {
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 12px;
}
.side-feature h3 {
  font-size: 16.5px;
  margin: 0 0 4px;
  transition: color .3s var(--ease);
}
.side-feature:hover h3 { color: var(--violet); }
.side-feature p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* CTA box */
.sidebar__cta {
  background: var(--violet-ghost);
  border-color: var(--violet-tint);
}
.sidebar__cta h3 { font-size: 18px; margin: 0 0 8px; }
.sidebar__cta p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; }
.sidebar__cta .btn { width: 100%; justify-content: center; }

/* Newsletter restyled for a light sidebar box */
.sidebar .newsletter {
  border-color: var(--line);
  background: var(--paper);
}
.sidebar .newsletter input { color: var(--ink); }
.sidebar .newsletter input::placeholder { color: var(--ink-3); }
.sidebar__box .form-success { margin-top: 12px; }
.sidebar__box > p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; }

/* Share icon row inside the sidebar layout's main column */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* Visually hidden (screen-reader only) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── 40. Nav dropdown (Hikayeler group) ───────────────────────── */
.nav__group { position: relative; }
.nav__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__group-btn .chev {
  font-size: 9px;
  color: var(--ink-3);
  transition: transform .3s var(--ease);
}
.nav__group-btn:hover,
.nav__group:hover .nav__group-btn {
  color: var(--ink);
  background: rgba(125, 120, 113, .12);
}
.nav__group-btn.is-active {
  color: var(--violet);
  font-weight: 600;
  background: var(--violet-ghost);
}
.nav__group.is-open .nav__group-btn .chev { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 208px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  display: none;
  z-index: 120;
}
/* Hover bridge so the pointer can travel into the menu */
.nav__group::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 12px;
  display: none;
}
.nav__group:hover::after { display: block; }
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown,
.nav__group.is-open .nav__dropdown { display: block; }

.nav__dropdown a {
  display: block;
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__dropdown a:hover { background: var(--paper); color: var(--ink); }
.nav__dropdown a[aria-current="page"] {
  color: var(--violet);
  font-weight: 600;
  background: var(--violet-ghost);
}

/* ── 41. Drawer submenu group (mobile) ────────────────────────── */
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__group-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: clamp(25px, 6vw, 31px);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  opacity: 0;
  transform: translateX(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
html[dir="rtl"] .drawer__group-btn { transform: translateX(-26px); }
html[lang="ug"] .drawer__group-btn { font-family: var(--font-body); font-weight: 700; }
.drawer.is-open .drawer__group-btn { opacity: 1; transform: none; }
.drawer__group-btn .chev {
  font-size: 15px;
  color: var(--ink-3);
  transition: transform .3s var(--ease);
}
.drawer__group.is-open .drawer__group-btn { color: var(--violet); }
.drawer__group.is-open .drawer__group-btn .chev { transform: rotate(180deg); }

.drawer__sub { display: none; padding: 0 2px 14px; }
.drawer__group.is-open .drawer__sub { display: block; }
.drawer__sub a {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 10px 14px;
  border-bottom: 0;
  border-radius: 8px;
  color: var(--ink-2);
  opacity: 1;
  transform: none;
}
.drawer__sub a:hover { color: var(--violet); background: var(--card); }
.drawer__sub a[aria-current="page"] { color: var(--violet); }

/* PHP: language menu links */
.lang__menu a.lang__opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-2);
}
.lang__menu a.lang__opt:hover { background: var(--paper); color: var(--ink); }
.lang__menu a.lang__opt.is-active { color: var(--violet); font-weight: 600; }

/* Editor custom boxes (TinyMCE "Bilgi" button) */
.info-box {
  background: var(--violet-ghost);
  border: 1px solid var(--violet-tint);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 1.6em 0;
}
.info-box h3 { font-size: 19px; margin: 0 0 8px; }
.info-box p { font-size: 15px; margin: 0; color: var(--ink-2); }
.article-body figure img { width: 100%; border-radius: 10px; display: block; }


/* ── Yüklenebilir logo (Ayarlar > Marka) ── */
.brand__img { height: 40px; width: auto; display: block; }
.brand__img--dark { display: none; }
[data-theme="dark"] .brand__img--light { display: none; }
[data-theme="dark"] .brand__img--dark { display: block; }
.footer__brand .brand__img { height: 36px; margin-bottom: 4px; }

/* ── Yeni sidebar modülleri (kategori, sosyal, özel HTML) ── */
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li { border-bottom: 1px solid var(--line); }
.side-cats li:last-child { border-bottom: 0; }
.side-cats a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; font-size: 14.5px; font-weight: 600;
  color: var(--ink); text-decoration: none; transition: color .18s, padding-inline-start .18s;
}
.side-cats a::after { content: "→"; color: var(--violet); opacity: 0; transition: opacity .18s; }
[dir="rtl"] .side-cats a::after { content: "←"; }
.side-cats a:hover { color: var(--violet); padding-inline-start: 6px; }
.side-cats a:hover::after { opacity: 1; }

.side-social { display: grid; gap: 8px; }
.side-social a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color .18s, color .18s;
}
.side-social a:hover { border-color: var(--violet); color: var(--violet); }
.side-social svg { width: 17px; height: 17px; flex: none; }

.sidebar__html { font-size: 14.5px; color: var(--ink-2); }
.sidebar__html > *:first-child { margin-top: 0; }
.sidebar__html > *:last-child { margin-bottom: 0; }
.sidebar__html img { max-width: 100%; border-radius: 10px; }
.sidebar__html a { color: var(--violet); }

/* ── Blok kütüphanesi (özel sayfalar) ── */
.article-body--plain > p:first-of-type::first-letter {
  font-size: inherit; float: none; margin: 0; font-family: inherit;
  color: inherit; line-height: inherit; padding: 0;
}
.block-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px;
  overflow: hidden; background: var(--band);
}
.block-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.block-gallery figure { margin: 0; }
.block-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; display: block;
}
.block-gallery figcaption { font-size: 13px; color: var(--ink-2); margin-top: 7px; }

/* ── Filtre çipleri artık bağlantı da olabilir (sunucu taraflı kategori) ── */
.filters a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .25s, background .25s, color .25s;
}
.filters a:hover { border-color: var(--ink-3); }
.filters a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ── Çerez onay bandı (KVKK modülü) ── */
.cookiebar {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 300;
  max-width: 560px; margin-inline: auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--band); color: var(--band-soft);
  border-radius: 16px; padding: 16px 22px;
  box-shadow: 0 18px 50px -18px rgba(13, 10, 20, .5);
}
.cookiebar p { margin: 0; font-size: 13.5px; line-height: 1.55; flex: 1 1 260px; }
.cookiebar__btns { display: flex; gap: 8px; }
.cookiebar button {
  border: 0; border-radius: 999px; padding: 9px 18px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--violet-btn, #5e17eb); color: #fff;
}
.cookiebar .cookiebar__ghost {
  background: transparent; color: inherit;
  border: 1px solid rgba(255, 255, 255, .3);
}
