/* ============================================================
   مهرجان ولي العهد للهجن · إرث ملكي / Royal Heritage
   Static client pitch comp — pure CSS, RTL-first
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Ceremonial palette */
  --ivory:        #F7F1E6;   /* parchment base */
  --ivory-2:      #F1E8D6;   /* slightly deeper panel */
  --ivory-3:      #EADFC8;   /* hairline-adjacent fill */
  --ink:          #2A1D12;   /* deep date-brown ink */
  --ink-soft:     #5A4631;   /* secondary text */
  --ink-faint:    #8A7458;   /* captions / kicker */
  --cinema:       #171009;   /* single deep cinematic band */
  --cinema-text:  #F3E9D6;

  /* Real metallic gold — honors / sword / rules ONLY */
  --gold-1:       #9C6B16;
  --gold-2:       #D4AF37;
  --gold-3:       #EBD27E;
  --gold-grad:    linear-gradient(135deg, #9C6B16 0%, #D4AF37 48%, #EBD27E 100%);
  --gold-line:    linear-gradient(90deg, rgba(156,107,22,0) 0%, #9C6B16 18%, #D4AF37 50%, #9C6B16 82%, rgba(156,107,22,0) 100%);
  --gold-ink:     #8A5E12;   /* gold text on ivory (AA-safe weight) */

  /* Breed shade dots */
  --s-wadah:   #F4EFE4;
  --s-sufr:    #D8B25C;
  --s-shul:    #B98A4E;
  --s-shuqh:   #C8744A;
  --s-humr:    #9C4B2E;
  --s-majahim: #241A12;

  /* Spatial rhythm */
  --space-xs: .5rem;
  --space-s:  1rem;
  --space-m:  2rem;
  --space-l:  4rem;
  --space-xl: 7rem;
  --space-xxl: 11rem;

  --maxw: 1200px;
  --maxw-narrow: 760px;

  /* Radii / shadow */
  --r-s: 4px;
  --r-m: 10px;
  --shadow-soft: 0 24px 60px -32px rgba(42,29,18,.45);
  --shadow-card: 0 18px 44px -28px rgba(42,29,18,.40);

  /* Type */
  --f-display: "Aref Ruqaa", "Reem Kufi", "Times New Roman", serif;
  --f-kufi:    "Reem Kufi", "Aref Ruqaa", serif;
  --f-body:    "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-latin:   "Cormorant Garamond", Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.85;
  font-size: 1.0625rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

/* Subtle parchment grain via layered gradients */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(212,175,55,.05), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(156,107,22,.04), transparent 55%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

::selection { background: rgba(212,175,55,.30); color: var(--ink); }

/* ---------- Focus / skip ---------- */
:focus-visible {
  outline: 2px solid var(--gold-1);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; right: 1rem; top: -3rem;
  background: var(--ink); color: var(--ivory);
  padding: .6rem 1.1rem; border-radius: var(--r-s);
  z-index: 100; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared utilities ---------- */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-ink);
}
/* Small-text gold: gradient clips can dip below AA on parchment at small sizes;
   force solid dark-gold (#8A5E12) for kicker-sized labels (≥ 4.5:1 on --ivory). */
.section-kicker.gold-text,
.arch-kicker.gold-text,
.record-eyebrow.gold-text {
  background: none;
  -webkit-text-fill-color: var(--gold-ink);
  color: var(--gold-ink);
}
.gold-rule {
  display: block;
  height: 1px; width: 220px;
  background: var(--gold-line);
  margin: var(--space-m) 0;
}
.gold-rule.short { width: 120px; }
.gold-rule.center { margin-inline: auto; }
.num, .lat { font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }

/* ---------- Section scaffolding ---------- */
.section-head {
  max-width: var(--maxw-narrow);
  margin: 0 auto var(--space-l);
  text-align: center;
}
.section-kicker {
  font-family: var(--f-kufi);
  font-size: .9rem; font-weight: 600;
  letter-spacing: .12em;
  margin: 0 0 var(--space-s);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.25;
  margin: 0 0 var(--space-m);
  color: var(--ink);
}
.section-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
  margin-inline: auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,241,230,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(156,107,22,.18);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-m);
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; }
.brand-words { display: flex; flex-direction: column; line-height: 1.2; }
.brand-ar { font-family: var(--f-kufi); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.brand-en { font-family: var(--f-latin); font-size: .82rem; letter-spacing: .04em; color: var(--ink-faint); }
.site-nav { display: flex; gap: clamp(.8rem, 2vw, 1.8rem); }
.site-nav a {
  font-family: var(--f-kufi);
  font-size: .95rem; font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); border-color: var(--gold-2); }
@media (max-width: 860px) { .site-nav { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-xl) clamp(1rem, 5vw, 3rem) var(--space-l);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; margin: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  /* warm duotone / gold-edge treatment */
  filter: sepia(.42) saturate(1.15) contrast(1.02) brightness(.78);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(23,16,9,.20), rgba(23,16,9,.74) 92%),
    linear-gradient(180deg, rgba(247,241,230,.10) 0%, rgba(23,16,9,.30) 100%);
}
.hero-plate {
  position: relative; z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 880px;
}
.hero-eyebrow {
  font-family: var(--f-kufi);
  letter-spacing: .18em; font-size: .92rem; font-weight: 500;
  color: var(--gold-3);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero-plate .gold-rule { width: 150px; margin: var(--space-s) 0; }
.hero-plate .gold-rule.short { width: 90px; margin: var(--space-s) 0 1.4rem; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8.5vw, 6.4rem);
  line-height: 1.18;
  margin: .3rem 0 .4rem;
  color: var(--ivory);
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
}
.hero-en {
  font-family: var(--f-latin);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: .08em;
  color: var(--gold-3);
  margin: 0 0 1.6rem;
}
.hero-patronage {
  font-family: var(--f-kufi);
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  font-weight: 500;
  color: var(--cinema-text);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.hero-dateline {
  font-size: 1rem; letter-spacing: .04em;
  color: var(--ivory);
  margin: 0;
  opacity: .92;
}
.hero-tagline {
  margin: 1.7rem 0 0;
  font-family: var(--f-kufi);
  font-size: 1.02rem; font-weight: 500;
  color: var(--gold-3);
}
.hero-tagline .lat {
  font-family: var(--f-latin); font-style: italic;
  color: var(--cinema-text); opacity: .9;
}
/* Ceremonial corner ornaments */
.hero-corners {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero-corner {
  position: absolute;
  opacity: .72;
  filter: drop-shadow(0 2px 8px rgba(212,175,55,.35));
}
.hero-corner--tr { top: clamp(1.2rem, 3vw, 2rem); right: clamp(1.2rem, 3vw, 2rem); }
.hero-corner--tl { top: clamp(1.2rem, 3vw, 2rem); left:  clamp(1.2rem, 3vw, 2rem); }

.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--f-kufi); font-size: .8rem; letter-spacing: .15em;
  color: var(--gold-3); opacity: .85;
  animation: floaty 2.6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }

/* ============================================================
   LEDGER STRIP
   ============================================================ */
.ledger {
  background: var(--ivory-2);
  border-block: 1px solid rgba(156,107,22,.18);
  padding: var(--space-l) clamp(1rem, 5vw, 3rem);
}
.ledger-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-m);
}
.ledger-grid li {
  text-align: center;
  padding-inline: var(--space-s);
  border-inline-start: 1px solid rgba(156,107,22,.20);
}
.ledger-grid li:first-child { border-inline-start: none; }
.ledger-num {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
}
.ledger-record .ledger-num { font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.4; }
.ledger-unit { font-size: .5em; font-family: var(--f-body); color: var(--ink-soft); }
.ledger-cap {
  display: block;
  margin-top: .5rem;
  font-family: var(--f-kufi);
  font-size: .9rem; color: var(--ink-faint);
  letter-spacing: .02em;
}
@media (max-width: 860px) {
  .ledger-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-l) var(--space-m); }
  .ledger-grid li:nth-child(odd) { border-inline-start: none; }
  .ledger-record { grid-column: 1 / -1; }
}

/* ============================================================
   HONORS HALL
   ============================================================ */
.honors {
  padding: var(--space-xxl) clamp(1rem, 5vw, 3rem) var(--space-xl);
  max-width: var(--maxw);
  margin: 0 auto;
}
.swords {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-l);
  align-items: stretch;
  max-width: 1000px; margin: 0 auto var(--space-xl);
}
.sword-card {
  text-align: center;
  padding: var(--space-l) var(--space-m);
  background: var(--ivory);
  border: 1px solid rgba(156,107,22,.22);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.sword-card::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(212,175,55,.25);
  border-radius: calc(var(--r-m) - 3px);
  pointer-events: none;
}
.sword-emblem { margin-bottom: var(--space-m); filter: drop-shadow(0 6px 14px rgba(156,107,22,.35)); }
.sword-tag {
  font-family: var(--f-kufi); font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; color: var(--gold-ink);
  margin: 0 0 .5rem;
}
.sword-name {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin: 0 0 var(--space-s); color: var(--ink);
}
.sword-desc { font-size: 1rem; color: var(--ink-soft); margin: 0; max-width: 36ch; }
.swords-divider {
  width: 1px; align-self: stretch;
  background: var(--gold-line);
  background: linear-gradient(180deg, rgba(156,107,22,0), #9C6B16 20%, #D4AF37 50%, #9C6B16 80%, rgba(156,107,22,0));
}
@media (max-width: 800px) {
  .swords { grid-template-columns: 1fr; gap: var(--space-m); }
  .swords-divider { width: 120px; height: 1px; justify-self: center; background: var(--gold-line); }
}

/* Record plate — cinematic band */
.record-plate.cinematic {
  background: var(--cinema);
  color: var(--cinema-text);
  border-radius: var(--r-m);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.record-plate.cinematic::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% -10%, rgba(212,175,55,.12), transparent 60%);
  pointer-events: none;
}
.record-eyebrow {
  font-family: var(--f-kufi); letter-spacing: .14em;
  font-size: .9rem; font-weight: 600; margin: 0 0 .8rem;
}
.record-headline {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.35;
  margin: 0 auto var(--space-m); max-width: 22ch; color: var(--ivory);
}
.record-body {
  font-size: 1.08rem; color: rgba(243,233,214,.85);
  max-width: 56ch; margin: 0 auto var(--space-l);
}
.record-times {
  max-width: 520px; margin: 0 auto;
  border: 1px solid rgba(212,175,55,.30);
  border-radius: var(--r-s);
  overflow: hidden;
}
.rt-row {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  padding: .95rem 1.4rem;
  border-bottom: 1px solid rgba(212,175,55,.16);
}
.rt-row:last-child { border-bottom: none; }
.rt-head {
  font-family: var(--f-kufi); font-size: .82rem; letter-spacing: .06em;
  color: rgba(243,233,214,.6); background: rgba(255,255,255,.03);
}
.rt-pos { font-family: var(--f-kufi); font-weight: 600; }
.rt-name { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: var(--ivory); }
.rt-time { font-variant-numeric: tabular-nums; unicode-bidi: plaintext; font-size: 1.15rem; letter-spacing: .02em; }
.rt-winner { background: rgba(212,175,55,.07); }
.rt-winner .rt-time { color: var(--gold-3); font-weight: 600; }
.record-foot {
  margin: var(--space-m) 0 0;
  font-size: .85rem; color: rgba(243,233,214,.55);
  font-family: var(--f-kufi);
}

/* ============================================================
   REFORM · TIMELINE
   ============================================================ */
.reform {
  padding: var(--space-xl) clamp(1rem, 5vw, 3rem);
  background: var(--ivory-2);
  border-block: 1px solid rgba(156,107,22,.18);
}
.timeline {
  max-width: 1000px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-l);
  align-items: start;
}
.tl-col { padding-top: var(--space-s); }
.tl-then { text-align: end; }
.tl-now  { text-align: start; }
.tl-era {
  font-family: var(--f-kufi); font-weight: 600;
  letter-spacing: .1em; font-size: .9rem;
  color: var(--ink-faint); margin: 0 0 var(--space-s);
}
.tl-now .tl-era { color: var(--gold-ink); }
.tl-dot {
  display: inline-block; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink-faint);
  margin-bottom: var(--space-s);
}
.tl-dot.gold { background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(212,175,55,.16); }
.tl-h {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 var(--space-s); color: var(--ink);
}
.tl-p { font-size: 1.02rem; color: var(--ink-soft); margin: 0; }
.tl-spine {
  display: flex; flex-direction: column; align-items: center;
  align-self: stretch; gap: var(--space-s);
  padding-top: 2.4rem;
}
.tl-spine-line {
  width: 1px; flex: 1; min-height: 120px;
  background: linear-gradient(180deg, var(--ink-faint), var(--gold-2));
}
.tl-spine-year {
  font-family: var(--f-latin); font-size: 1.3rem; letter-spacing: .06em;
  color: var(--gold-ink); writing-mode: vertical-rl; text-orientation: mixed;
  padding: .4rem 0;
}
.reform-coda {
  max-width: 60ch; margin: var(--space-xl) auto 0;
  text-align: center; font-size: 1.08rem; color: var(--ink-soft);
}
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: var(--space-m); }
  .tl-then, .tl-now { text-align: start; }
  .tl-spine { flex-direction: row; padding-top: 0; }
  .tl-spine-line { width: 100%; height: 1px; min-height: 0; background: linear-gradient(90deg, var(--ink-faint), var(--gold-2)); }
  .tl-spine-year { writing-mode: horizontal-tb; }
}

/* ============================================================
   WELFARE
   ============================================================ */
.welfare {
  padding: var(--space-xxl) clamp(1rem, 5vw, 3rem);
  max-width: var(--maxw); margin: 0 auto;
}
.welfare-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.welfare-copy .section-title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.welfare-lede { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 var(--space-m); }
.welfare-points { display: flex; flex-direction: column; gap: var(--space-s); }
.welfare-points li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: 1.02rem; color: var(--ink);
}
.wp-mark {
  flex: none; width: 9px; height: 9px; margin-top: .55rem;
  background: var(--gold-grad); transform: rotate(45deg);
}
.concept-note {
  margin-top: var(--space-m);
  font-family: var(--f-kufi); font-size: .8rem;
  color: var(--ink-faint);
  border-inline-start: 2px solid var(--gold-2);
  padding-inline-start: .8rem;
  unicode-bidi: plaintext;
}

/* Monitor card */
.welfare-monitor {
  margin: 0;
  background: var(--cinema);
  color: var(--cinema-text);
  border-radius: var(--r-m);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212,175,55,.20);
}
.wm-cap {
  font-family: var(--f-kufi); font-size: .82rem; letter-spacing: .06em;
  color: rgba(243,233,214,.55); margin: 0 0 var(--space-m);
  text-align: end;
}
.wm-readout { margin-bottom: var(--space-l); }
.wm-readout:last-child { margin-bottom: 0; }
.wm-metric { margin-bottom: var(--space-s); }
.wm-value {
  display: block;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1;
  color: var(--gold-3);
  font-variant-numeric: tabular-nums; unicode-bidi: plaintext;
}
.wm-unit { font-size: .32em; font-family: var(--f-body); color: rgba(243,233,214,.7); }
.wm-label { font-family: var(--f-kufi); font-size: .88rem; color: rgba(243,233,214,.7); }
.wm-ecg { width: 100%; height: 56px; margin-top: .6rem; }
.wm-gauge {
  margin-top: .8rem; height: 8px; border-radius: 99px;
  background: rgba(243,233,214,.12); overflow: hidden;
}
.wm-gauge-fill {
  display: block; height: 100%; width: 63%;
  background: var(--gold-grad);
}
@media (max-width: 860px) {
  .welfare-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VISION
   ============================================================ */
.vision {
  padding: var(--space-xl) clamp(1rem, 5vw, 3rem);
  background: var(--ivory-2);
  border-block: 1px solid rgba(156,107,22,.18);
}
.vision-pillars {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}
.pillar {
  padding: var(--space-l) var(--space-m);
  border-top: 2px solid transparent;
  border-image: var(--gold-line) 1;
  background: var(--ivory);
  border-radius: 0 0 var(--r-m) var(--r-m);
  box-shadow: var(--shadow-card);
}
.pillar-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2;
  margin: 0 0 var(--space-s);
}
.pillar-unit { font-size: .42em; font-family: var(--f-body); }
.pillar-h {
  font-family: var(--f-kufi); font-weight: 600;
  font-size: 1.25rem; margin: 0 0 var(--space-xs); color: var(--ink);
}
.pillar-p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) {
  .vision-pillars { grid-template-columns: 1fr; gap: var(--space-m); }
}

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive {
  padding: var(--space-xxl) clamp(1rem, 5vw, 3rem) var(--space-xl);
  max-width: var(--maxw); margin: 0 auto;
}
.archive-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-m);
}
.arch-card {
  background: var(--ivory);
  border: 1px solid rgba(156,107,22,.20);
  border-radius: var(--r-m);
  padding: var(--space-l) var(--space-m);
  box-shadow: var(--shadow-card);
}
.arch-kicker {
  font-family: var(--f-kufi); font-size: .82rem; font-weight: 600;
  letter-spacing: .08em; color: var(--gold-ink); margin: 0 0 .5rem;
}
.arch-h {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem); margin: 0 0 var(--space-m); color: var(--ink);
}
.arch-p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* Breeds */
.breed-block { margin-bottom: var(--space-m); }
.breed-name { font-family: var(--f-kufi); font-weight: 600; font-size: 1.08rem; margin: 0 0 .7rem; color: var(--ink); }
.breed-note { font-weight: 400; color: var(--ink-faint); font-size: .9rem; }
.breed-shades { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; }
.breed-shades li { display: flex; align-items: center; gap: .45rem; font-size: .95rem; color: var(--ink-soft); }
.shade-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(42,29,18,.25);
  flex: none;
}
.s-wadah   { background: var(--s-wadah); }
.s-sufr    { background: var(--s-sufr); }
.s-shul    { background: var(--s-shul); }
.s-shuqh   { background: var(--s-shuqh); }
.s-humr    { background: var(--s-humr); }
.s-majahim { background: var(--s-majahim); }

/* Ladder */
.ladder-list { display: flex; flex-direction: column; gap: .55rem; }
.ladder-list li {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--f-kufi); font-size: 1.12rem; font-weight: 500;
  color: var(--ink);
  padding: .55rem .7rem;
  border-bottom: 1px solid rgba(156,107,22,.14);
}
.ladder-list li:last-child { border-bottom: none; }
.ladder-rank {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-body); font-size: .85rem; font-weight: 600;
  color: var(--gold-ink);
  border: 1px solid var(--gold-2);
}
/* Oumla platform hook */
.archive-oumla-hook {
  max-width: 680px; margin: var(--space-xl) auto 0;
  text-align: center;
  padding: var(--space-l) var(--space-m);
  border: 1px solid rgba(156,107,22,.22);
  border-radius: var(--r-m);
  background: var(--ivory-2);
  box-shadow: var(--shadow-card);
}
.archive-oumla-hook .gold-rule { margin: 0 auto var(--space-m); }
.archive-oumla-label {
  font-family: var(--f-kufi); font-size: 1rem; font-weight: 600;
  letter-spacing: .1em; margin: 0 0 var(--space-s);
  /* Override gradient clip for small label size — use solid dark gold for AA contrast */
  background: none;
  -webkit-text-fill-color: var(--gold-ink);
  color: var(--gold-ink);
}
.archive-pedigree {
  max-width: 64ch; margin: 0 auto;
  text-align: center; font-size: 1.08rem; color: var(--ink-soft);
  font-style: normal;
}
.archive-oumla-hook .concept-note { margin-top: var(--space-m); }
@media (max-width: 860px) {
  .archive-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cinema);
  color: var(--cinema-text);
  padding: var(--space-xl) clamp(1rem, 5vw, 3rem) var(--space-l);
  text-align: center;
}
.footer-inner { max-width: var(--maxw-narrow); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: clamp(160px, 30vw, 240px); margin-bottom: var(--space-m); }
.footer-patronage {
  font-family: var(--f-kufi); font-weight: 500;
  font-size: 1.08rem; color: var(--ivory); margin: 0;
}
.site-footer .gold-rule { margin: var(--space-m) auto; }
.footer-org { font-size: .98rem; color: rgba(243,233,214,.8); margin: 0 0 var(--space-m); letter-spacing: .02em; }
.footer-concept {
  font-family: var(--f-kufi); font-size: .8rem;
  color: rgba(243,233,214,.5);
  unicode-bidi: plaintext;
  margin: 0;
}
