/* ==========================================================================
   MOSAIC — Ethno-religious minorities of the Middle East
   Design language: sanctuary dark, parchment ink, lamplight gold.
   Display: Marcellus · Body: Newsreader · Data: IBM Plex Sans
   ========================================================================== */

:root {
  /* surfaces */
  --void: #100d0b;
  --surface: #1a1410;
  --surface-2: #241c15;
  /* ink */
  --parchment: #eae0ce;
  --parchment-dim: #a89a83;
  --parchment-faint: #7a6d5a;
  --hairline: rgba(234, 224, 206, 0.14);
  --hairline-soft: rgba(234, 224, 206, 0.08);
  /* lamplight */
  --gold: #be8825;
  --gold-bright: #d9a441;
  --gold-glow: rgba(217, 164, 65, 0.16);
  /* community accents (validated for dark surface) */
  --c-yazidi: #2fa48d;
  --c-assyrian: #c75f3d;
  --c-druze: #6aa33f;
  --c-copt: #be8825;
  --c-mandaean: #4e9bd1;
  /* page accent — overridden per community page */
  --accent: var(--gold);
  --accent-bright: var(--gold-bright);
  /* type */
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-data: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  /* rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;
  --measure: 66ch;
  --wrap: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-bright);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--gold);
  color: var(--void);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--parchment);
}

p {
  margin: 0 0 1.4em;
}

/* --------------------------------------------------------------------------
   Per-community accents
   -------------------------------------------------------------------------- */

body.page-yazidi {
  --accent: var(--c-yazidi);
  --accent-bright: #4fc4ac;
  --accent-glow: rgba(47, 164, 141, 0.15);
}

body.page-assyrian {
  --accent: var(--c-assyrian);
  --accent-bright: #e0805f;
  --accent-glow: rgba(199, 95, 61, 0.15);
}

body.page-druze {
  --accent: var(--c-druze);
  --accent-bright: #8cc45f;
  --accent-glow: rgba(106, 163, 63, 0.14);
}

body.page-copt {
  --accent: var(--c-copt);
  --accent-bright: #d9a441;
  --accent-glow: rgba(190, 136, 37, 0.16);
}

body.page-mandaean {
  --accent: var(--c-mandaean);
  --accent-bright: #74b6e3;
  --accent-glow: rgba(78, 155, 209, 0.15);
}

body.page-alawite   { --accent: #97a73b; --accent-bright: #b5c45c; --accent-glow: rgba(151, 167, 59, 0.14); }
body.page-jewish    { --accent: #6e86dc; --accent-bright: #93a6ea; --accent-glow: rgba(110, 134, 220, 0.15); }
body.page-armenian  { --accent: #9b7fd4; --accent-bright: #b7a0e6; --accent-glow: rgba(155, 127, 212, 0.15); }
body.page-maronite  { --accent: #45a865; --accent-bright: #6cc48a; --accent-glow: rgba(69, 168, 101, 0.14); }
body.page-kurdish   { --accent: #d9a441; --accent-bright: #e8bc68; --accent-glow: rgba(217, 164, 65, 0.16); }
body.page-alevi     { --accent: #d05f6a; --accent-bright: #e28691; --accent-glow: rgba(208, 95, 106, 0.15); }
body.page-ismaili   { --accent: #37a0ae; --accent-bright: #5fc0cd; --accent-glow: rgba(55, 160, 174, 0.15); }
body.page-bahai     { --accent: #c9629c; --accent-bright: #dc8ab6; --accent-glow: rgba(201, 98, 156, 0.15); }
body.page-turkmen   { --accent: #c97a29; --accent-bright: #e0994c; --accent-glow: rgba(201, 122, 41, 0.15); }
body.page-amazigh   { --accent: #58b7c9; --accent-bright: #82cdda; --accent-glow: rgba(88, 183, 201, 0.15); }
body.page-circassian{ --accent: #7fa6c6; --accent-bright: #a2c1da; --accent-glow: rgba(127, 166, 198, 0.15); }
body.page-samaritan { --accent: #cbb758; --accent-bright: #dccc7e; --accent-glow: rgba(203, 183, 88, 0.15); }
body.page-zoroastrian { --accent: #c4574f; --accent-bright: #da7f78; --accent-glow: rgba(196, 87, 79, 0.15); }
body.page-yarsan    { --accent: #82b54b; --accent-bright: #a0cc70; --accent-glow: rgba(130, 181, 75, 0.14); }
body.page-shabak    { --accent: #b96fc4; --accent-bright: #cf94d7; --accent-glow: rgba(185, 111, 196, 0.15); }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.kicker {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 var(--space-2);
}

.kicker::after {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 0.9rem;
  opacity: 0.7;
}

.prose {
  max-width: var(--measure);
}

.prose .lede {
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--parchment);
}

.prose .lede::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding-right: 0.12em;
  color: var(--accent-bright);
}

.dim {
  color: var(--parchment-dim);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.9, 0.3, 1),
    transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Site nav
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.solid {
  background: rgba(16, 13, 11, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--parchment);
}

.brand-logo {
  height: 2.7rem;
  width: auto;
  display: block;
  flex: none;
}

/* two-line wordmark: "Minorities" over a small "in the Middle East" */
.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-data);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 0.32rem;
}

.site-footer .brand-logo {
  height: 3.2rem;
}

@media (max-width: 560px) {
  .brand-logo {
    height: 2.3rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-sub {
    font-size: 0.5rem;
  }
}

.brand:hover {
  text-decoration: none;
  color: var(--gold-bright);
}

.brand .tail {
  color: var(--gold-bright);
}

.site-nav .nav-links {
  display: flex;
  gap: 1.6rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav .nav-links a {
  color: var(--parchment-dim);
  padding: 0.5rem 0;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a[aria-current="page"] {
  color: var(--parchment);
  text-decoration: none;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright) !important;
  background: transparent;
  border: 1px solid rgba(217, 164, 65, 0.55);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.support-btn svg {
  width: 0.9em;
  height: 0.9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.support-btn:hover {
  background: var(--gold-bright);
  color: var(--void) !important;
  border-color: var(--gold-bright);
  text-decoration: none !important;
}

/* Contact button: same pill, parchment ink to sit beside the gold Support */
.contact-btn {
  color: var(--parchment-dim) !important;
  border-color: var(--hairline);
}

.contact-btn:hover {
  background: var(--parchment);
  color: var(--void) !important;
  border-color: var(--parchment);
}

/* --------------------------------------------------------------------------
   Hero — the lamp is lit
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(0.82) brightness(0.85);
  will-change: transform;
}

/* dark veil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--void) 4%, rgba(16, 13, 11, 0.72) 34%, rgba(16, 13, 11, 0.45) 62%, rgba(16, 13, 11, 0.62) 100%);
}

/* the lamplight bloom */
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  background: radial-gradient(
    ellipse 52% 44% at 28% 68%,
    var(--accent-glow, var(--gold-glow)),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 2.4s ease 0.5s;
  pointer-events: none;
}

body.lit .hero::after {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: var(--space-5) var(--space-5);
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.75rem, 8.5vw, 6.25rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}

.hero .native-name {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0.08em;
  color: var(--parchment-dim);
  margin-top: 0.8rem;
}

.hero .dek {
  max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--parchment-dim);
  margin: 0;
}

.hero-rise {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.9, 0.3, 1),
    transform 1.1s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: var(--d, 0s);
}

body.lit .hero-rise {
  opacity: 1;
  transform: none;
}

/* Map hero — the words for Home */
.hero.hero-home {
  background: var(--void);
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* single fill, no strokes: adjacent countries merge into one landmass,
   so only the outer coastline reads as a line against the dark sea */
.hero-map .land {
  fill: #1e1712;
  stroke: none;
}

.hero-map .home-word {
  font-family: "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Armenian",
    "Noto Sans Syriac", "Noto Sans Mandaic", "Noto Sans Samaritan",
    "Noto Sans Coptic", "Noto Sans Tifinagh", var(--font-data), sans-serif;
  fill: var(--gold-bright);
  paint-order: stroke;
  stroke: rgba(16, 13, 11, 0.7);
  stroke-width: 4px;
  opacity: 0;
  animation: wordflash 1.15s ease var(--wd, 0s) both;
}

@keyframes wordflash {
  0% { opacity: 0; }
  35% { opacity: 0.95; }
  75% { opacity: 0.7; }
  100% { opacity: 0; }
}

/* English "Home" is the finale: it fades in, holds a beat, then leaves —
   after which the hero map is empty (no end scene). */
.hero-map .home-last {
  animation: wordfinale 2.8s ease var(--wd, 0s) both;
}

@keyframes wordfinale {
  0% { opacity: 0; }
  22% { opacity: 1; }
  62% { opacity: 1; }
  100% { opacity: 0; }
}

.hero.hero-home::before {
  background:
    linear-gradient(to top, var(--void) 6%, rgba(16, 13, 11, 0.35) 40%, rgba(16, 13, 11, 0.15) 70%, rgba(16, 13, 11, 0.4) 100%);
}

@media (prefers-reduced-motion: reduce) {
  /* no animation: show the scattered words as a quiet static image */
  .hero-map .home-word {
    animation: none;
    opacity: 0.3;
  }
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2.2rem;
  width: 1px;
  height: 64px;
  background: var(--hairline);
  overflow: hidden;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  transform: translateY(-100%);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  55% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* --------------------------------------------------------------------------
   At-a-glance strip
   -------------------------------------------------------------------------- */

.glance {
  border-block: 1px solid var(--hairline);
  background: var(--surface);
}

.glance dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0;
  margin: 0;
}

.glance .cell {
  padding: var(--space-3) var(--space-3);
  border-left: 1px solid var(--hairline-soft);
}

.glance .cell:first-child {
  border-left: 0;
}

.glance dt {
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  margin-bottom: 0.45rem;
}

.glance dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--parchment);
}

.glance dd small {
  display: block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--parchment-dim);
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   Sections & figures
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--space-6);
}

.section + .section {
  padding-top: 0;
}

.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .split.flip > .split-media {
    order: 2;
  }
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  filter: saturate(0.88);
}

.figure.portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.figure.landscape img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.figure figcaption {
  font-family: var(--font-data);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--parchment-faint);
  margin-top: 0.8rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
}

.figure figcaption .credit {
  display: block;
  opacity: 0.75;
}

.full-figure {
  margin: 0;
  position: relative;
}

.full-figure img {
  width: 100%;
  height: clamp(20rem, 60vh, 34rem);
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}

.full-figure figcaption {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: 1.2rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--parchment-dim);
  background: rgba(16, 13, 11, 0.72);
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  max-width: 34rem;
}

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */

.pullquote {
  margin: 0;
  padding: var(--space-5) 0;
  text-align: center;
}

.pullquote blockquote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 2.9rem);
  line-height: 1.28;
  color: var(--parchment);
}

.pullquote blockquote::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--accent);
  margin: 0 auto var(--space-3);
}

.pullquote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-data);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment-faint);
}

/* --------------------------------------------------------------------------
   Timeline — the procession
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 46rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--hairline));
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-4) 2.4rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--accent-bright);
  background: var(--void);
  transform: rotate(45deg);
}

.timeline .when {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: block;
  margin-bottom: 0.3rem;
}

.timeline .what {
  display: block;
  max-width: 58ch;
  color: var(--parchment-dim);
}

.timeline .what strong {
  color: var(--parchment);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Charts
   -------------------------------------------------------------------------- */

.chart-block {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

.chart-block h3 {
  margin-bottom: 0.4rem;
}

.chart-block .chart-sub {
  font-family: var(--font-data);
  font-size: 0.82rem;
  color: var(--parchment-dim);
  margin: 0 0 var(--space-3);
}

.chart-block svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-block .bar {
  transform: scaleX(0);
  transform-origin: left center;
  transform-box: fill-box;
  transition: transform 1s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.chart-block.grow .bar {
  transform: scaleX(1);
}

/* diaspora bars: same accent, hollow treatment — population outside the region */
.chart-block .bar.diaspora {
  fill-opacity: 0.28;
  stroke: var(--accent-bright);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.chart-block .trend {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.2s ease-out 0.2s;
}

.chart-block.grow .trend {
  stroke-dashoffset: 0;
}

.chart-block .axis-label,
.chart-block .bar-label,
.chart-block .bar-value {
  font-family: var(--font-data);
  font-size: 12px;
  fill: var(--parchment-dim);
}

.chart-block .bar-label {
  fill: var(--parchment);
}

.chart-block .bar-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  fill: var(--parchment);
}

.chart-block .gridline {
  stroke: var(--hairline-soft);
}

.chart-block .chart-note {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--parchment-faint);
  margin: var(--space-2) 0 0;
}

.chart-block details {
  margin-top: var(--space-2);
  font-family: var(--font-data);
  font-size: 0.85rem;
}

.chart-block summary {
  cursor: pointer;
  color: var(--parchment-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chart-block table {
  width: 100%;
  margin-top: 0.8rem;
  border-collapse: collapse;
  color: var(--parchment-dim);
}

.chart-block th,
.chart-block td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--hairline-soft);
  font-variant-numeric: tabular-nums;
}

.chart-block th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-faint);
}

/* --------------------------------------------------------------------------
   Emblem
   -------------------------------------------------------------------------- */

/* <use> clones live in a shadow root that document selectors can't reach,
   so the line style rides on inherited SVG properties set on the svg itself. */
.emblem-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emblem-feature {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 800px) {
  .emblem-feature {
    grid-template-columns: minmax(14rem, 1fr) 2fr;
  }
}

.emblem-feature .emblem-svg {
  width: min(15rem, 60vw);
  margin-inline: auto;
  color: var(--accent-bright);
}

.emblem-feature .emblem-svg {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.6s ease 0.2s;
}

.emblem-feature.in .emblem-svg {
  stroke-dashoffset: 0;
}

/* --------------------------------------------------------------------------
   Mosaic grid (index)
   -------------------------------------------------------------------------- */

.mosaic {
  display: grid;
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.tile {
  position: relative;
  background: var(--void);
  padding: var(--space-4) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 15rem;
  color: var(--parchment);
  transition: background 0.35s ease;
}

.tile:hover {
  text-decoration: none;
  background: var(--surface);
}

a.tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--tile-accent, var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

a.tile:hover::after {
  transform: scaleX(1);
}

.tile .emblem-svg {
  width: 3.4rem;
  color: var(--tile-accent, var(--parchment-dim));
  transition: transform 0.35s ease;
}

a.tile:hover .emblem-svg {
  transform: scale(1.08);
}

.tile h3 {
  margin: 0;
  font-size: 1.35rem;
}

.tile .native {
  font-style: italic;
  color: var(--parchment-faint);
  font-size: 0.92rem;
  margin: -0.5rem 0 0;
}

.tile .blurb {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--parchment-dim);
  margin: 0;
  flex-grow: 1;
}

.tile .pop {
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--parchment-dim);
  margin: 0;
}

.tile .pop strong {
  color: var(--tile-accent, var(--gold-bright));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tile .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment-faint);
}

.tile .tag {
  color: var(--gold-bright);
}

.tile.soon {
  opacity: 0.62;
}

.tile.soon .tag {
  color: var(--parchment-faint);
}

/* --------------------------------------------------------------------------
   Region maps
   -------------------------------------------------------------------------- */

.region-map {
  position: relative;
  background: #0b0908;
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  overflow: hidden;
}

.region-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.region-map .country {
  fill: #1d1712;
  stroke: rgba(234, 224, 206, 0.1);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill 0.3s ease;
}

.region-map .zone-halo {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.region-map.in .zone-halo,
.region-map.grown .zone-halo {
  opacity: 1;
}

.region-map .zone-core {
  cursor: pointer;
}

/* Settlement polygons (Gulf/2000-style redraws) */
.region-map .area-glow {
  opacity: 0;
  fill-opacity: 0.32;
  pointer-events: none;
  transition: opacity 1.6s ease;
}

.region-map .zone-area {
  opacity: 0;
  fill-opacity: 0.15;
  stroke-opacity: 0.75;
  outline: none;
  transition: opacity 1.6s ease, fill-opacity 0.3s ease;
}

.region-map.in .area-glow,
.region-map.grown .area-glow,
.region-map.in .zone-area,
.region-map.grown .zone-area {
  opacity: 1;
}

.region-map .zone-area:hover,
.region-map .zone-area:focus-visible {
  fill-opacity: 0.3;
}

.region-map .map-label {
  fill: var(--parchment-dim);
  paint-order: stroke;
  stroke: rgba(11, 9, 8, 0.85);
  stroke-width: 3px;
  font-family: var(--font-data);
  pointer-events: none;
}

.region-map .city-dot {
  fill: var(--parchment-faint);
}

.region-map .city-label {
  fill: var(--parchment-faint);
  paint-order: stroke;
  stroke: rgba(11, 9, 8, 0.85);
  stroke-width: 3px;
  font-family: var(--font-data);
  pointer-events: none;
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: rgba(16, 13, 11, 0.94);
  border: 1px solid var(--hairline);
  color: var(--parchment);
  font-family: var(--font-data);
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.45rem 0.75rem;
  border-radius: 3px;
  max-width: 16rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.map-tooltip .tt-sub {
  color: var(--parchment-dim);
  display: block;
}

.map-caption {
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--parchment-faint);
  margin-top: 0.8rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.map-legend a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--parchment-dim);
  padding: 0.3rem 0.2rem;
}

.map-legend a:hover {
  color: var(--parchment);
  text-decoration: none;
}

.map-legend .swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--sw);
  flex: none;
}

/* --------------------------------------------------------------------------
   Traditions — "what makes them unique"
   -------------------------------------------------------------------------- */

.traditions {
  display: grid;
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
  margin-top: var(--space-4);
}

@media (min-width: 720px) {
  .traditions {
    grid-template-columns: 1fr 1fr;
  }
}

.traditions .trad {
  background: var(--void);
  padding: var(--space-3);
}

.traditions .trad h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.traditions .trad h3::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1px;
  background: var(--accent);
  margin-bottom: 0.8rem;
}

.traditions .trad p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--parchment-dim);
}

/* --------------------------------------------------------------------------
   Prev / next footer nav
   -------------------------------------------------------------------------- */

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline);
}

.pager a {
  padding: var(--space-4) clamp(1.25rem, 4vw, 3rem);
  color: var(--parchment);
  transition: background 0.3s ease;
}

.pager a:hover {
  background: var(--surface);
  text-decoration: none;
}

.pager a + a {
  border-left: 1px solid var(--hairline);
  text-align: right;
}

.pager .dir {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  display: block;
  margin-bottom: 0.5rem;
}

.pager .name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-5);
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--parchment-dim);
}

.site-footer .brand {
  display: inline-flex;
  margin-bottom: var(--space-2);
}

.site-footer details {
  margin-top: var(--space-3);
}

.site-footer summary {
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--parchment-faint);
}

.site-footer ul.credits {
  list-style: none;
  padding: 0.8rem 0 0;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--parchment-faint);
}

.site-footer .note {
  max-width: 60ch;
  font-size: 0.8rem;
  color: var(--parchment-faint);
}

/* --------------------------------------------------------------------------
   Reduced motion & small screens
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero::after {
    opacity: 1;
    transition: none;
  }

  .hero-media img {
    transform: none !important;
  }

  .scroll-cue::after {
    animation: none;
  }

  .chart-block .bar {
    transform: scaleX(1);
    transition: none;
  }

  .chart-block .trend {
    stroke-dashoffset: 0;
    transition: none;
  }

  .emblem-feature .emblem-svg {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Looping video figures
   -------------------------------------------------------------------------- */

.figure video,
.full-figure video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  filter: saturate(0.9);
}

.full-figure video {
  height: clamp(20rem, 60vh, 34rem);
  object-fit: cover;
  border-radius: 0;
}

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(0.82) brightness(0.85);
}

/* --------------------------------------------------------------------------
   Map routes
   -------------------------------------------------------------------------- */

.region-map .route {
  fill: none;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  opacity: 0.85;
  animation: routeflow 26s linear infinite;
}

@keyframes routeflow {
  to { stroke-dashoffset: -520; }
}

@media (prefers-reduced-motion: reduce) {
  .region-map .route {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Stories
   -------------------------------------------------------------------------- */

.btn-ghost {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment);
  border: 1px solid var(--hairline);
  padding: 0.8rem 1.6rem;
  border-radius: 2px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  text-decoration: none;
}

.story-feature {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  border: 1px solid var(--hairline-soft);
  background: var(--surface);
  overflow: hidden;
  border-radius: 4px;
}

@media (min-width: 900px) {
  .story-feature {
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
  }
}

.story-feature .sf-media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
  filter: saturate(0.88);
}

.story-feature .sf-body {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.story-cards {
  display: grid;
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}

@media (min-width: 800px) {
  .story-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story-card {
  background: var(--void);
  color: var(--parchment);
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

.story-card:hover {
  background: var(--surface);
  text-decoration: none;
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.88);
}

.story-card .sc-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.story-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.story-card .sc-dek {
  color: var(--parchment-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.story-card .sc-meta {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* stat strip inside stories */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
  margin-block: var(--space-4);
}

.stats-strip .stat {
  background: var(--surface);
  padding: var(--space-3);
}

.stats-strip .stat .big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--accent-bright, var(--gold-bright));
  display: block;
  font-variant-numeric: tabular-nums;
}

.stats-strip .stat .small {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  display: block;
  margin-top: 0.4rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  /* icon-only pills so Contact + Support never crowd the row */
  .support-btn .btn-label {
    display: none;
  }

  .support-btn {
    padding: 0.4rem 0.5rem;
  }

  .support-btn svg {
    width: 1.05em;
    height: 1.05em;
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding-inline: 1rem;
  }

  .site-nav .nav-links {
    gap: 0.8rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 600px) {
  /* smallest screens: brand · Stories · About · Contact */
  .site-nav .nav-links a[href*="timeline.html"],
  .site-nav .nav-links a[href*="data.html"] {
    display: none;
  }
}

@media (max-width: 640px) {
  /* keep chart labels legible: charts scroll sideways instead of shrinking */
  .chart-block {
    overflow-x: auto;
  }

  .chart-block svg {
    min-width: 33rem;
  }

  .glance .cell {
    border-left: 0;
    border-top: 1px solid var(--hairline-soft);
  }

  .glance .cell:first-child {
    border-top: 0;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager a + a {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .site-nav .nav-links {
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Trust layer: skip link, gold hero line, footer columns, further reading,
   document pages, data tables, shared-timeline tags
   -------------------------------------------------------------------------- */

/* Skip link — visually hidden until focused */
.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  transform: translateY(-300%);
  background: var(--void);
  color: var(--gold-bright);
  border: 1px solid var(--gold-bright);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
  text-decoration: none;
}

/* Homepage hero title: "Middle East" white in the display face, "Minorities"
   below it in a gold cursive script (Newsreader italic) for a hand-set feel. */
.hero-home h1 {
  color: #ffffff;
}

.hero-home h1 .h1-gold {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.015em;
  font-size: 1.04em;
  line-height: 1.08;
  color: var(--gold-bright);
}

/* Footer link columns */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.6rem;
  margin-bottom: 2.4rem;
}

.footer-brand .note {
  max-width: 36ch;
}

.footer-col h3 {
  font-family: var(--font-data);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0.4rem 0 0.9rem;
}

.footer-col a {
  display: block;
  color: var(--parchment-dim);
  font-size: 0.92rem;
  padding: 0.26rem 0;
}

.footer-col a:hover {
  color: var(--parchment);
  text-decoration: none;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* Further reading cards */
.fr-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  max-width: 46rem;
}

.fr-list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--hairline-soft);
  border-radius: 12px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.fr-list a:hover {
  border-color: var(--accent, var(--gold));
  background: rgba(217, 164, 65, 0.04);
  text-decoration: none;
}

.fr-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--parchment);
}

.fr-src {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}

/* Document pages (about, methodology, policies, data, timeline) */
.doc-title {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}

.page-doc .lede {
  max-width: 62ch;
}

.draft-note {
  color: var(--gold-bright);
  font-style: italic;
}

.bib-h {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 2.2rem 0 0.8rem;
}

ul.bib {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.bib li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-bottom: 1px solid var(--hairline-soft);
  position: relative;
  color: var(--parchment-dim);
}

ul.bib li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Data tables */
.table-scroll {
  overflow-x: auto;
  margin-top: 1.6rem;
}

.data-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th {
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: top;
  color: var(--parchment-dim);
}

.data-table td strong {
  color: var(--parchment);
  font-weight: 500;
}

.data-table .who {
  white-space: nowrap;
}

.data-table .who a {
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.data-table .who .swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--sw);
  flex: none;
  box-shadow: 0 0 8px color-mix(in srgb, var(--sw) 60%, transparent);
}

.chip {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.74rem;
  line-height: 1.5;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--parchment-dim);
  margin: 0.14rem 0.35rem 0.14rem 0;
}

.chip b {
  font-weight: 600;
}

.chip.st-yes { color: #a4c487; border-color: rgba(164, 196, 135, 0.45); }
.chip.st-part { color: var(--gold-bright); border-color: rgba(217, 164, 65, 0.45); }
.chip.st-no { color: var(--parchment-dim); border-color: var(--hairline); }
.chip.st-risk { color: #e08a72; border-color: rgba(224, 138, 114, 0.5); }

.chip.lv-vul { color: var(--gold-bright); border-color: rgba(217, 164, 65, 0.45); }
.chip.lv-def { color: #dfa35c; border-color: rgba(223, 163, 92, 0.5); }
.chip.lv-sev { color: #e08a72; border-color: rgba(224, 138, 114, 0.5); }
.chip.lv-crit { color: #e76f5c; border-color: rgba(231, 111, 92, 0.6); }
.chip.lv-lit { color: var(--parchment-dim); border-style: dashed; }

.chip-legend {
  margin-top: 1.2rem;
}

/* Shared-timeline community tags */
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.tl-tag {
  font-family: var(--font-data);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tag);
  border: 1px solid var(--tag);
  border-color: color-mix(in srgb, var(--tag) 45%, transparent);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  transition: border-color 0.2s ease;
}

.tl-tag:hover {
  border-color: var(--tag);
  text-decoration: none;
}

/* Homepage "also in the atlas" links */
.deeper {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-data);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--parchment-dim);
}

.deeper a {
  color: var(--parchment-dim);
  width: fit-content;
}

.deeper a:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

/* Wider nav needs tighter tiers with six links */
@media (max-width: 1080px) {
  .site-nav .nav-links {
    gap: 1.05rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 940px) {
  /* Map + Communities are one scroll away on the homepage */
  .site-nav .nav-links a[href*="#map"],
  .site-nav .nav-links a[href*="#mosaic"] {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Arabic (RTL): type stack, joining-safe tracking, mirrored chrome
   -------------------------------------------------------------------------- */

html[lang="ar"] {
  --font-display: "Amiri", "Noto Naskh Arabic", serif;
  --font-body: "Noto Naskh Arabic", "Amiri", serif;
  --font-data: "IBM Plex Sans Arabic", sans-serif;
}

/* Letter-spacing disconnects joined Arabic letterforms — remove it everywhere. */
html[lang="ar"] *,
html[lang="ar"] *::before,
html[lang="ar"] *::after {
  letter-spacing: 0 !important;
}

/* Naskh needs taller lines than Newsreader. */
html[lang="ar"] p,
html[lang="ar"] .dek,
html[lang="ar"] li {
  line-height: 1.95;
}

/* Slanted Arabic reads poorly at display sizes. */
html[lang="ar"] .hero-home h1 .h1-gold,
html[lang="ar"] blockquote,
html[lang="ar"] em {
  font-style: normal;
}

[dir="rtl"] .kicker::after {
  margin-left: 0;
  margin-right: 0.9rem;
}

[dir="rtl"] .glance .cell {
  border-left: 0;
  border-right: 1px solid var(--hairline-soft);
}

[dir="rtl"] .glance .cell:first-child {
  border-right: 0;
}

[dir="rtl"] .figure figcaption {
  padding-left: 0;
  padding-right: 0.9rem;
  border-left: 0;
  border-right: 2px solid var(--accent);
}

[dir="rtl"] .full-figure figcaption {
  left: auto;
  right: clamp(1.25rem, 4vw, 3rem);
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 0.35rem;
}

[dir="rtl"] .timeline li {
  padding: 0 2.4rem var(--space-4) 0;
}

[dir="rtl"] .timeline li:last-child {
  padding-bottom: 0;
}

[dir="rtl"] .timeline li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .pager a + a {
  border-left: 0;
  border-right: 1px solid var(--hairline);
  text-align: left;
}

[dir="rtl"] .chart-block th,
[dir="rtl"] .chart-block td,
[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td {
  text-align: right;
}

[dir="rtl"] .chart-block svg {
  direction: ltr;
}

[dir="rtl"] ul.bib li {
  padding: 0.5rem 1.4rem 0.5rem 0;
}

[dir="rtl"] ul.bib li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .skip-link {
  left: auto;
  right: 0.6rem;
}

@media (max-width: 640px) {
  [dir="rtl"] .glance .cell {
    border-right: 0;
  }
}
