/* ═════════════════════════════════════════════════════════════════════════
   HER STORY: نساء في تاريخ المعرفة — Women in the History of Knowledge
   Editorial Digital Exhibition Stylesheet
   Exclusively utilizes Qahera UI Kit Design Tokens & CSS Logical Properties
   Pre-emit critique: P5 H5 E5 S5 R5 V5 D5
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  /* Typography bindings */
  --qhr-font-heading: 'Alexandria', 'Cairo', sans-serif;
  --qhr-font-body: 'Cairo', 'Alexandria', system-ui, -apple-system, sans-serif;
  --qhr-font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Editorial Exhibition Palette (Obsidian, Papyrus, Copper, Egyptian Blue) */
  --exhibit-bg: var(--qhr-surface-page, #07080c);
  --exhibit-surface: var(--qhr-surface-card, #0e1117);
  --exhibit-surface-elevated: var(--qhr-surface-card-hover, #141822);
  --exhibit-surface-subtle: rgba(255, 255, 255, 0.03);
  
  --exhibit-border-subtle: rgba(200, 138, 75, 0.18);
  --exhibit-border-focus: rgba(200, 138, 75, 0.6);
  --exhibit-border-subdued: rgba(255, 255, 255, 0.08);

  --exhibit-bone: #f7f3eb;
  --exhibit-bone-muted: #b8b0a0;
  --exhibit-bone-dim: #7d766a;

  --exhibit-copper: #c88a4b;
  --exhibit-copper-glow: rgba(200, 138, 75, 0.12);
  --exhibit-copper-dim: rgba(200, 138, 75, 0.08);

  --exhibit-egyptian-blue: #1e3a5f;
  --exhibit-egyptian-blue-light: #2c5282;

  --exhibit-radius-sm: var(--qhr-radius-sm, 6px);
  --exhibit-radius-md: var(--qhr-radius-md, 10px);
  --exhibit-radius-lg: var(--qhr-radius-lg, 16px);

  --exhibit-max-w: 1240px;
}

/* Light mode adjustments (semantic token parity) */
[data-mode="light"] {
  --exhibit-bg: #f8f6f0;
  --exhibit-surface: #ffffff;
  --exhibit-surface-elevated: #f4f0e6;
  --exhibit-surface-subtle: rgba(0, 0, 0, 0.03);

  --exhibit-border-subtle: rgba(160, 105, 45, 0.22);
  --exhibit-border-focus: rgba(160, 105, 45, 0.7);
  --exhibit-border-subdued: rgba(0, 0, 0, 0.08);

  --exhibit-bone: #14171f;
  --exhibit-bone-muted: #4a453d;
  --exhibit-bone-dim: #7a7266;

  --exhibit-copper: #a66a2e;
  --exhibit-copper-glow: rgba(166, 106, 46, 0.12);
  --exhibit-copper-dim: rgba(166, 106, 46, 0.06);

  --exhibit-egyptian-blue: #102a45;
  --exhibit-egyptian-blue-light: #1e3a5f;
}

/* Base resets & layout */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--qhr-font-body);
  background-color: var(--exhibit-bg);
  color: var(--exhibit-bone);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.exhibit-container {
  width: 100%;
  max-width: var(--exhibit-max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Typography styles */
.exhibit-title {
  font-family: var(--qhr-font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--exhibit-bone);
  margin: 0;
  line-height: 1.25;
}

.exhibit-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--exhibit-bone-muted);
  line-height: 1.8;
  max-width: 68ch;
}

.exhibit-kicker {
  font-family: var(--qhr-font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--exhibit-copper);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-block-end: 0.75rem;
}

/* Navigation bar (Masthead) */
.exhibit-nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-block-end: 1px solid rgba(200, 138, 75, 0.22);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.exhibit-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.exhibit-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.exhibit-brand-seal {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c88a4b, #7a4f21);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--qhr-font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 2px 10px rgba(200, 138, 75, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.exhibit-brand-text {
  display: flex;
  flex-direction: column;
}

.exhibit-brand-name {
  font-family: var(--qhr-font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #f7f3eb;
}

.exhibit-brand-sub {
  font-size: 0.72rem;
  color: #b8b0a0;
}

.exhibit-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exhibit-nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #b8b0a0;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--exhibit-radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
}

.exhibit-nav-link:hover,
.exhibit-nav-link.is-active {
  color: #ffffff;
  background: rgba(200, 138, 75, 0.15);
}

.exhibit-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* Control buttons */
.exhibit-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(200, 138, 75, 0.25);
  background: rgba(14, 18, 26, 0.85);
  color: #e5dec9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.exhibit-icon-btn:hover {
  color: #ffffff;
  border-color: var(--exhibit-copper);
  background: rgba(200, 138, 75, 0.22);
}

.exhibit-lang-btn {
  height: 36px;
  padding-inline: 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(200, 138, 75, 0.25);
  background: rgba(14, 18, 26, 0.85);
  color: #e5dec9;
  font-family: var(--qhr-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}

.exhibit-lang-btn svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.exhibit-lang-btn:hover {
  border-color: var(--exhibit-copper);
  color: #ffffff;
  background: rgba(200, 138, 75, 0.22);
}

.exhibit-lang-btn:hover svg {
  opacity: 1;
}

/* ── Hamburger Menu Button ──────────────────────────────────────── */
.exhibit-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(200, 138, 75, 0.25);
  background: rgba(14, 18, 26, 0.85);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.exhibit-hamburger:hover {
  border-color: var(--exhibit-copper);
  background: rgba(200, 138, 75, 0.22);
}

.exhibit-hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #e5dec9;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.exhibit-hamburger.is-active .exhibit-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.exhibit-hamburger.is-active .exhibit-hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.exhibit-hamburger.is-active .exhibit-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Drawer ──────────────────────────────────────────────── */
.exhibit-mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  background: rgba(7, 9, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-block-end: 1px solid rgba(200, 138, 75, 0.18);
  gap: 0.25rem;
}

.exhibit-mobile-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--exhibit-radius-sm);
  font-family: var(--qhr-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--exhibit-bone-muted);
  text-decoration: none;
  transition: all 0.18s ease;
}

.exhibit-mobile-link:hover {
  color: #ffffff;
  background: rgba(200, 138, 75, 0.12);
}

/* Drawer Alpine transitions */
.drawer-enter { transition: all 0.25s ease-out; }
.drawer-enter-start { opacity: 0; transform: translateY(-8px); }
.drawer-enter-end { opacity: 1; transform: translateY(0); }
.drawer-leave { transition: all 0.2s ease-in; }
.drawer-leave-start { opacity: 1; transform: translateY(0); }
.drawer-leave-end { opacity: 0; transform: translateY(-8px); }

/* ── Responsive: Mobile Nav ─────────────────────────────────────── */
@media (max-width: 860px) {
  .exhibit-nav-links {
    display: none;
  }

  .exhibit-hamburger {
    display: flex;
  }

  .exhibit-mobile-drawer {
    display: flex;
  }
}


/* ── Cinematic Book-Cover Hero Section ────────────────────────────── */
.exhibit-hero {
  position: relative;
  min-height: clamp(620px, 86vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-block-end: 1px solid rgba(200, 138, 75, 0.2);
  background-color: #06070b;
}

/* Background Canvas Layer */
.exhibit-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.exhibit-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 991px) {
  .exhibit-hero-bg-img {
    object-position: 75% center;
  }
}

@media (max-width: 640px) {
  .exhibit-hero-bg-img {
    object-position: 70% 25%;
  }
}

/* Multi-directional Scrim & Atmospheric Vignette */
.exhibit-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    linear-gradient(to bottom, rgba(6, 7, 11, 0.95) 0%, rgba(6, 7, 11, 0.40) 18%, transparent 35%),
    linear-gradient(to top, rgba(6, 7, 11, 0.98) 0%, rgba(6, 7, 11, 0.65) 15%, transparent 32%);
}

/* Directional scrim: dark on physical LEFT (text area), crystal clear on physical RIGHT (scholar area) */
.exhibit-hero-scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(6, 7, 11, 0.98) 0%, 
    rgba(6, 7, 11, 0.95) 28%, 
    rgba(6, 7, 11, 0.85) 48%, 
    rgba(6, 7, 11, 0.40) 68%, 
    rgba(6, 7, 11, 0.10) 84%, 
    rgba(6, 7, 11, 0.02) 100%
  );
}

@media (max-width: 960px) {
  .exhibit-hero-scrim::after {
    background: linear-gradient(to bottom, 
      rgba(6, 7, 11, 0.65) 0%, 
      rgba(6, 7, 11, 0.90) 45%, 
      rgba(6, 7, 11, 0.98) 100%
    );
  }
}

/* Hero Content Box */
.exhibit-hero-content-layer {
  position: relative;
  z-index: 5;
  padding-block: clamp(2.5rem, 5vh, 4.5rem);
  width: 100%;
}

.exhibit-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

/* In RTL: the first cell is at inline-start (physical right = scholar focal area).
   The empty void takes order: 1 (physical right), dossier takes order: 2 (physical left) */
[dir="rtl"] .exhibit-hero-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

[dir="rtl"] .exhibit-hero-focal-void {
  order: 1;
}

[dir="rtl"] .exhibit-hero-dossier {
  order: 2;
}

@media (max-width: 960px) {
  .exhibit-hero-grid,
  [dir="rtl"] .exhibit-hero-grid {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .exhibit-hero-focal-void,
  .exhibit-hero-focal-void {
    display: none;
  }

  [dir="rtl"] .exhibit-hero-dossier {
    order: 1;
  }
}

.exhibit-hero-focal-void {
  min-height: 1px;
  pointer-events: none;
}

.exhibit-hero-dossier {
  display: flex;
  flex-direction: column;
  max-width: 630px;
  position: relative;
  z-index: 10;
}

/* Book Cover Plaque (Edition Kicker) */
.exhibit-hero-plaque {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  background: rgba(14, 18, 26, 0.88);
  border: 1px solid rgba(200, 138, 75, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-block-end: 1rem;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.exhibit-plaque-seal {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(200, 138, 75, 0.2);
  border: 1px solid var(--exhibit-copper);
  color: var(--exhibit-copper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exhibit-plaque-text {
  font-family: var(--qhr-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #F0BA7B;
}

.exhibit-plaque-dot {
  opacity: 0.4;
  color: #D8D0C2;
}

.exhibit-plaque-edition {
  font-family: var(--qhr-font-mono);
  font-size: 0.72rem;
  color: #D8D0C2;
  font-weight: 600;
}

/* Metallic Leaf / Sculpted Gold Title */
.exhibit-hero-title {
  font-family: var(--qhr-font-heading);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 900;
  margin: 0;
  margin-block-end: 0.625rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 15%, #FFF0DD 45%, #EDB678 78%, #C88A4B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 0.95));
}

.exhibit-hero-subtitle {
  font-family: var(--qhr-font-heading);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: #EDE4D3;
  line-height: 1.5;
  margin-block-end: 0.875rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.exhibit-hero-lead {
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  color: #D6CEC0;
  line-height: 1.8;
  margin-block-end: 1.25rem;
  max-width: 52ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  position: relative;
  padding-inline-start: 0.875rem;
  border-inline-start: 2px solid var(--exhibit-copper);
}

/* Archival Telemetry Strip */
.exhibit-hero-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(8, 11, 18, 0.82);
  border: 1px solid rgba(200, 138, 75, 0.3);
  border-radius: var(--exhibit-radius-md);
  padding: 0.55rem 1.1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-block-end: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: fit-content;
}

.exhibit-telemetry-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.exhibit-telemetry-val {
  font-family: var(--qhr-font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #F0BA7B;
  line-height: 1;
}

.exhibit-telemetry-lbl {
  font-size: 0.78rem;
  color: #C5BCAB;
  font-weight: 600;
}

.exhibit-telemetry-sep {
  width: 1px;
  height: 20px;
  background: rgba(200, 138, 75, 0.25);
}

@media (max-width: 600px) {
  .exhibit-hero-telemetry {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    width: 100%;
  }
  .exhibit-telemetry-sep {
    display: none;
  }
}

/* CTAs styling */
.exhibit-hero-ctas {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-block-end: 1rem;
}

.exhibit-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--exhibit-radius-md);
  background: linear-gradient(135deg, #E29E57 0%, var(--exhibit-copper) 100%);
  color: #ffffff;
  font-family: var(--qhr-font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(200, 138, 75, 0.35);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.exhibit-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 138, 75, 0.5);
  filter: brightness(1.1);
}

.exhibit-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--exhibit-radius-md);
  background: rgba(14, 18, 26, 0.82);
  color: #EDE4D3;
  font-family: var(--qhr-font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(200, 138, 75, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.exhibit-btn-secondary:hover {
  border-color: var(--exhibit-copper);
  background: rgba(24, 30, 42, 0.9);
  color: #ffffff;
  transform: translateY(-2px);
}

.exhibit-hero-catalog-mark {
  font-family: var(--qhr-font-mono);
  font-size: 0.7rem;
  color: rgba(200, 138, 75, 0.75);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.exhibit-hero-catalog-mark::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
}

/* ==========================================================================
   Exhibit Unified Journey Section (Parchment Historical Canvas)
   ========================================================================== */
.exhibit-journey-section {
  background-color: #F4F0E6;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(200, 138, 75, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(160, 120, 80, 0.06) 0%, transparent 50%),
    radial-gradient(rgba(140, 120, 95, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  color: #221C16;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-block-end: 1px solid rgba(180, 160, 130, 0.45);
  position: relative;
}

.exhibit-journey-grid {
  display: grid;
  grid-template-areas: "timeline divider about";
  grid-template-columns: minmax(480px, 1.8fr) auto minmax(280px, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

[dir="ltr"] .exhibit-journey-grid {
  grid-template-areas: "about divider timeline";
  grid-template-columns: minmax(280px, 1fr) auto minmax(480px, 1.8fr);
}

/* Vertical separator line between About and Timeline */
.exhibit-journey-divider {
  grid-area: divider;
  width: 1px;
  align-self: stretch;
  background: rgba(180, 160, 130, 0.5);
}

/* About Column */
.exhibit-about-col {
  grid-area: about;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exhibit-about-title {
  font-family: var(--qhr-font-heading);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #1C1917;
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.exhibit-about-text {
  font-family: var(--qhr-font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.85;
  color: #38312A;
  margin: 0 0 1.5rem;
  max-width: 38ch;
}

.exhibit-about-decor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exhibit-about-star {
  width: 16px;
  height: 16px;
  color: #A3703C;
  flex-shrink: 0;
}

.exhibit-about-line {
  height: 1px;
  background: #C4B59E;
  width: clamp(100px, 18vw, 180px);
}

/* Timeline Column */
.exhibit-timeline-col {
  grid-area: timeline;
  display: flex;
  flex-direction: column;
}

.exhibit-timeline-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-block-end: 2rem;
}

[dir="ltr"] .exhibit-timeline-header {
  align-items: flex-start;
}

.exhibit-timeline-title {
  font-family: var(--qhr-font-heading);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #1C1917;
  margin: 0 0 0.4rem;
}

.exhibit-timeline-accent-bar {
  width: 44px;
  height: 3px;
  background: #C88A4B;
  border-radius: 2px;
}

/* Continuous Horizontal Timeline Track */
.exhibit-timeline-track {
  position: relative;
  width: 100%;
}

.exhibit-timeline-axis-line {
  position: absolute;
  inset-inline: 12%;
  inset-block-start: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--exhibit-border-subdued) 15%, var(--exhibit-copper) 50%, var(--exhibit-border-subdued) 85%, transparent);
  z-index: 1;
}

.exhibit-timeline-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.exhibit-timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.exhibit-timeline-node:hover {
  transform: translateY(-3px);
}

.exhibit-timeline-thumb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--exhibit-surface-elevated);
  border: 3px solid var(--exhibit-surface);
  box-shadow: 0 0 0 1.5px var(--exhibit-border-subdued), 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 0.85rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-mode="light"] .exhibit-timeline-thumb {
  background: #ffffff;
  border-color: #f8f6f0;
  box-shadow: 0 0 0 1.5px rgba(160, 105, 45, 0.22), 0 4px 16px rgba(30, 20, 10, 0.06);
}

.exhibit-timeline-node:hover .exhibit-timeline-thumb {
  box-shadow: 0 0 0 2.5px var(--exhibit-copper), 0 8px 24px var(--exhibit-copper-glow);
  transform: scale(1.04);
}

.exhibit-timeline-node.is-active .exhibit-timeline-thumb {
  box-shadow: 0 0 0 3px var(--exhibit-copper), 0 0 0 6px var(--exhibit-copper-dim), 0 8px 24px var(--exhibit-copper-glow);
  transform: scale(1.05);
}

.exhibit-timeline-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.exhibit-timeline-node:hover .exhibit-timeline-thumb-img {
  transform: scale(1.08);
}

.exhibit-timeline-name {
  font-family: var(--qhr-font-heading);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 700;
  color: var(--exhibit-bone);
  margin-block-end: 0.25rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.exhibit-timeline-node:hover .exhibit-timeline-name,
.exhibit-timeline-node.is-active .exhibit-timeline-name {
  color: var(--exhibit-copper);
}

.exhibit-timeline-latin {
  font-family: var(--qhr-font-body);
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  font-weight: 500;
  color: var(--exhibit-bone-muted);
  line-height: 1.25;
}

@media (max-width: 1080px) {
  .exhibit-journey-grid,
  [dir="ltr"] .exhibit-journey-grid {
    grid-template-areas:
      "timeline"
      "divider"
      "about";
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .exhibit-journey-divider {
    width: 100%;
    height: 1px;
    border-block-end: 1px solid rgba(180, 160, 130, 0.45);
  }

  .exhibit-timeline-header {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .exhibit-timeline-axis-line {
    display: none;
  }

  .exhibit-timeline-nodes {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.25rem 0.5rem;
  }

  .exhibit-timeline-thumb {
    width: 68px;
    height: 68px;
  }
}

/* ==========================================================================
   Exhibit Stories Collection Section (Decorated Obsidian Gallery Canvas)
   ========================================================================== */
.exhibit-collection-section {
  background-color: #080A11;
  background-image: 
    /* Ambient warm celestial halo at top center */
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200, 138, 75, 0.12) 0%, transparent 65%),
    /* Twilight blue depth behind cards */
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(15, 23, 42, 0.55) 0%, transparent 75%),
    /* Cultural Islamic geometric star lattice (subtle vector motif) */
    url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 0l6 14 14-6-6 14 14 6-14 6 6 14-14-6-6 14-6-14-14 6 6-14-14-6 14-6-6-14 14 6z' fill='none' stroke='%23C88A4B' stroke-width='0.75' stroke-opacity='0.045'/%3E%3Ccircle cx='32' cy='32' r='4' fill='none' stroke='%23C88A4B' stroke-width='0.5' stroke-opacity='0.05'/%3E%3C/svg%3E"),
    /* Micro-constellation dot grid */
    radial-gradient(rgba(200, 138, 75, 0.14) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 32px 32px;
  background-position: center top, center bottom, center center, 0 0;
  color: #F8FAFC;
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
  border-block-start: 1px solid rgba(200, 138, 75, 0.22);
}

/* Glowing top ambient hairline accent */
.exhibit-collection-section::before {
  content: '';
  position: absolute;
  inset-inline: 8%;
  inset-block-start: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 138, 75, 0.7) 50%, transparent);
  pointer-events: none;
}

/* Header: Title on the LEFT, Dropdowns on the RIGHT in RTL */
.exhibit-stories-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-block-end: 2.5rem;
}

[dir="rtl"] .exhibit-stories-header {
  flex-direction: row-reverse;
}

.exhibit-stories-title {
  font-family: var(--qhr-font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.exhibit-stories-subtitle {
  font-family: var(--qhr-font-heading);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 400;
  color: #94A3B8;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Dropdown Filters (المجال / الفترة) */
.exhibit-dropdown-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exhibit-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.exhibit-filter-label {
  font-family: var(--qhr-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: #94A3B8;
  text-align: start;
}

.exhibit-select-wrap {
  position: relative;
  min-width: 140px;
}

.exhibit-select-dark {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #111622;
  border: 1px solid #242E3D;
  border-radius: 4px;
  color: #F1F5F9;
  font-family: var(--qhr-font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  padding-inline-end: 2rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exhibit-select-dark:focus {
  border-color: #C88A4B;
  box-shadow: 0 0 0 2px rgba(200, 138, 75, 0.25);
}

.exhibit-select-arrow {
  position: absolute;
  inset-inline-end: 0.65rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #94A3B8;
  pointer-events: none;
}

/* 7-Column Scholar Cards Matrix */
.exhibit-stories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

@media (max-width: 1440px) {
  .exhibit-stories-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .exhibit-stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Crisp Ivory Scholar Portrait Card */
.exhibit-scholar-card {
  background: #FAF7F2;
  border: 1px solid #E2D9CC;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.exhibit-scholar-card:hover {
  transform: translateY(-5px);
  border-color: #C88A4B;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px #C88A4B;
}

.exhibit-scholar-media {
  width: 100%;
  height: 135px;
  overflow: hidden;
  background: #E8E0D5;
  border-block-end: 1px solid #E2D9CC;
  display: block;
  line-height: 0;
  position: relative;
}

.exhibit-scholar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.exhibit-scholar-card:hover .exhibit-scholar-img {
  transform: scale(1.06);
}

.exhibit-scholar-body {
  padding: 0.85rem 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.exhibit-scholar-name {
  font-family: var(--qhr-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #18181B;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.exhibit-scholar-latin {
  font-family: var(--qhr-font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: #71717A;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.exhibit-scholar-field {
  font-family: var(--qhr-font-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: #3F3F46;
  margin-block-end: 0.2rem;
  line-height: 1.25;
}

.exhibit-scholar-locale {
  font-family: var(--qhr-font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: #71717A;
  margin-block-end: 0.75rem;
  line-height: 1.25;
}

.exhibit-scholar-badge {
  margin-block-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #A3703C;
}

.exhibit-badge-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.exhibit-badge-txt {
  font-family: var(--qhr-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Modal Window (Accessible Editorial Drawer/Modal) */
.exhibit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.exhibit-modal-dialog {
  background: var(--exhibit-surface);
  border: 1px solid var(--exhibit-border-subtle);
  border-radius: var(--exhibit-radius-lg);
  width: 100%;
  max-width: 760px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.exhibit-modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-block-end: 1px solid var(--exhibit-border-subdued);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.exhibit-modal-close {
  background: var(--exhibit-surface-elevated);
  border: 1px solid var(--exhibit-border-subdued);
  color: var(--exhibit-bone-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.exhibit-modal-close:hover {
  color: var(--exhibit-bone);
  border-color: var(--exhibit-copper);
}

.exhibit-modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.exhibit-modal-section-title {
  font-family: var(--qhr-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--exhibit-bone);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exhibit-modal-list {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--exhibit-bone-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.exhibit-modal-list li {
  margin-block-end: 0.5rem;
}

/* Critical Nuance / "What We Don't Know" Box */
.exhibit-nuance-box {
  background: rgba(200, 138, 75, 0.05);
  border: 1px dashed var(--exhibit-border-subtle);
  border-radius: var(--exhibit-radius-md);
  padding: 1.25rem;
}

.exhibit-nuance-title {
  font-family: var(--qhr-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--exhibit-copper);
  margin-block-end: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.exhibit-nuance-box ul {
  margin: 0;
  padding-inline-start: 1.2rem;
  color: var(--exhibit-bone-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Direct Sources Strip */
.exhibit-sources-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exhibit-source-tag {
  font-family: var(--qhr-font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--exhibit-surface-elevated);
  border: 1px solid var(--exhibit-border-subdued);
  color: var(--exhibit-bone-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.exhibit-source-tag:hover {
  color: var(--exhibit-bone);
  border-color: var(--exhibit-copper);
}

/* ── 5. Master Call-for-Suggestions CTA Section ───────────────────── */
.exhibit-suggest-section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-block-start: 1px solid var(--exhibit-border-subdued);
  background: 
    radial-gradient(ellipse at 50% 100%, var(--exhibit-copper-glow) 0%, transparent 65%),
    var(--exhibit-bg);
  position: relative;
  overflow: hidden;
}

.exhibit-cta-card {
  position: relative;
  border-radius: var(--exhibit-radius-lg);
  background: #080A10;
  border: 1px solid rgba(200, 138, 75, 0.4);
  box-shadow: 
    0 20px 56px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Rich Archival Background Canvas for CTA Card */
.exhibit-cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.exhibit-cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.62;
  filter: contrast(108%) brightness(0.86);
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.exhibit-cta-card:hover .exhibit-cta-bg-img {
  transform: scale(1.05);
  opacity: 0.72;
}

/* Atmospheric Multi-Stage Vignette: Dark edges, clear readable focal center */
.exhibit-cta-scrim {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(8, 10, 16, 0.68) 0%, rgba(8, 10, 16, 0.42) 45%, rgba(8, 10, 16, 0.88) 100%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.80) 0%, transparent 22%, transparent 72%, rgba(8, 10, 16, 0.92) 100%);
  pointer-events: none;
}

/* Ambient glow canvas inside card */
.exhibit-cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 10%, rgba(200, 138, 75, 0.20) 0%, transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(30, 58, 95, 0.25) 0%, transparent 50%);
  z-index: 1;
}

/* Light mode adjustments: preserve obsidian museum showcase vitrine with vivid artwork */
[data-mode="light"] .exhibit-cta-card {
  background: #080A10;
  border-color: rgba(166, 106, 46, 0.5);
  box-shadow: 
    0 20px 56px rgba(30, 20, 10, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-mode="light"] .exhibit-cta-bg-img {
  opacity: 0.62;
  filter: contrast(108%) brightness(0.86);
}

[data-mode="light"] .exhibit-cta-card:hover .exhibit-cta-bg-img {
  opacity: 0.72;
}

[data-mode="light"] .exhibit-cta-scrim {
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(8, 10, 16, 0.68) 0%, rgba(8, 10, 16, 0.42) 45%, rgba(8, 10, 16, 0.88) 100%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.80) 0%, transparent 22%, transparent 72%, rgba(8, 10, 16, 0.92) 100%);
}

.exhibit-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
  margin-inline: auto;
}

/* Refined Two-tier CTA Title Hierarchy */
.exhibit-cta-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  margin-block-end: 1.35rem;
  line-height: 1.15;
}

.exhibit-cta-title-main {
  font-family: var(--qhr-font-heading);
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #FFFFFF 15%, #FFF0DD 45%, #EDB678 78%, #C88A4B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.95));
}

.exhibit-cta-title-sub {
  font-family: var(--qhr-font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #EAD8C0;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* Balanced Editorial Measure for CTA Lead */
.exhibit-cta-lead {
  font-family: var(--qhr-font-body);
  font-size: clamp(0.94rem, 1.2vw, 1.05rem);
  font-weight: 400;
  color: #DDD4C6;
  line-height: 1.95;
  margin: 0;
  margin-inline: auto;
  margin-block-end: 2.25rem;
  max-width: 56ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.exhibit-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.15rem;
}

/* ── Master Exhibition Footer & Colophon ──────────────────────────── */
.exhibit-footer {
  margin-block-start: auto;
  border-block-start: 1px solid rgba(200, 138, 75, 0.22);
  background: linear-gradient(180deg, #090B10 0%, #06070A 100%);
  color: #B8B0A0;
  padding-block-start: clamp(3.5rem, 6vw, 5rem);
  padding-block-end: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.exhibit-footer::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--exhibit-copper), transparent);
  opacity: 0.4;
}

.exhibit-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-block-end: clamp(2.5rem, 4vw, 3.5rem);
}

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

.exhibit-footer-colophon {
  display: flex;
  flex-direction: column;
}

.exhibit-footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #A89F91;
  margin: 0;
  margin-block-end: 1.25rem;
  max-width: 44ch;
}

.exhibit-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: rgba(200, 138, 75, 0.08);
  border: 1px solid rgba(200, 138, 75, 0.2);
  font-family: var(--qhr-font-mono);
  font-size: 0.72rem;
  color: #E29E57;
  width: fit-content;
}

.exhibit-badge-dot {
  color: var(--exhibit-copper);
}

.exhibit-footer-col-title {
  font-family: var(--qhr-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #F7F3EB;
  margin: 0;
  margin-block-end: 1.25rem;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.exhibit-footer-col-title::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--exhibit-copper);
  border-radius: 1px;
}

.exhibit-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exhibit-footer-link {
  color: #B8B0A0;
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.18s ease, transform 0.18s ease;
  width: fit-content;
}

.exhibit-footer-link:hover {
  color: #FFFFFF;
}

.exhibit-link-arrow {
  font-size: 0.75rem;
  opacity: 0.6;
}

.exhibit-footer-license {
  font-family: var(--qhr-font-mono);
  font-size: 0.75rem;
  color: #7D766A;
}

/* Ornamental Rosette Divider */
.exhibit-footer-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.exhibit-footer-divider::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: rgba(200, 138, 75, 0.16);
}

.exhibit-footer-rosette {
  position: relative;
  z-index: 2;
  background: #08090E;
  padding-inline: 1rem;
  color: var(--exhibit-copper);
  display: inline-flex;
}

/* Bottom Sub-Footer Bar */
.exhibit-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: #8C8477;
}

.exhibit-footer-rights {
  font-family: var(--qhr-font-body);
}

.exhibit-footer-crafted {
  font-size: 0.8rem;
  color: #A89F91;
}

.exhibit-footer-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--exhibit-radius-sm);
  background: rgba(20, 25, 36, 0.75);
  border: 1px solid rgba(200, 138, 75, 0.22);
  color: #EDE4D3;
  font-family: var(--qhr-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exhibit-footer-top-btn:hover {
  border-color: var(--exhibit-copper);
  background: rgba(200, 138, 75, 0.2);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ═════════════════════════════════════════════════════════════════════════
   6. Sources Archive & Bibliographical Catalog Styles
   ═════════════════════════════════════════════════════════════════════════ */

/* Telemetry / Stats Deck */
.exhibit-sources-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-block-end: 2.5rem;
}

.exhibit-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.25rem 1.4rem;
  background: var(--exhibit-surface);
  border: 1px solid var(--exhibit-border-subdued);
  border-radius: var(--exhibit-radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

[data-mode="light"] .exhibit-stat-card {
  background: #ffffff;
  border-color: rgba(160, 105, 45, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.exhibit-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--exhibit-copper);
  box-shadow: 0 8px 24px var(--exhibit-copper-glow);
}

.exhibit-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--exhibit-surface-elevated);
  border: 1px solid var(--exhibit-border-subdued);
  color: var(--exhibit-copper);
  flex-shrink: 0;
}

[data-mode="light"] .exhibit-stat-icon {
  background: #fbf9f4;
  border-color: rgba(160, 105, 45, 0.2);
}

.exhibit-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.exhibit-stat-num {
  font-family: var(--qhr-font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--exhibit-copper);
}

.exhibit-stat-lbl {
  font-size: 0.82rem;
  color: var(--exhibit-bone-muted);
  font-weight: 600;
}

/* Filter & Search Toolbar */
.exhibit-sources-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-block-end: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--exhibit-surface);
  border: 1px solid var(--exhibit-border-subdued);
  border-radius: var(--exhibit-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-mode="light"] .exhibit-sources-toolbar {
  background: #ffffff;
  border-color: rgba(160, 105, 45, 0.18);
  box-shadow: 0 4px 20px rgba(30, 20, 10, 0.04);
}

@media (min-width: 960px) {
  .exhibit-sources-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.exhibit-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exhibit-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  border-radius: 9999px;
  background: var(--exhibit-surface-elevated);
  border: 1px solid var(--exhibit-border-subdued);
  color: var(--exhibit-bone-muted);
  font-family: var(--qhr-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

[data-mode="light"] .exhibit-filter-chip {
  background: #f4f0e6;
  border-color: rgba(0, 0, 0, 0.08);
  color: #555047;
}

.exhibit-filter-chip:hover {
  color: var(--exhibit-bone);
  border-color: var(--exhibit-border-focus);
  transform: translateY(-1px);
}

.exhibit-filter-chip.is-active {
  background: var(--exhibit-copper);
  border-color: var(--exhibit-copper);
  color: #07080c;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--exhibit-copper-glow);
}

[data-mode="light"] .exhibit-filter-chip.is-active {
  background: var(--exhibit-copper);
  border-color: var(--exhibit-copper);
  color: #ffffff;
}

.exhibit-chip-count {
  font-family: var(--qhr-font-mono);
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.15);
}

.exhibit-filter-chip.is-active .exhibit-chip-count {
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
}

[data-mode="light"] .exhibit-filter-chip.is-active .exhibit-chip-count {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Search Box */
.exhibit-search-wrap {
  position: relative;
  min-width: 260px;
  max-width: 360px;
  flex-grow: 1;
}

.exhibit-search-icon {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--exhibit-bone-muted);
  pointer-events: none;
}

.exhibit-search-input {
  width: 100%;
  height: 42px;
  padding-inline-start: 2.75rem;
  padding-inline-end: 2.25rem;
  background: var(--exhibit-surface-elevated);
  border: 1px solid var(--exhibit-border-subdued);
  border-radius: 9999px;
  color: var(--exhibit-bone);
  font-family: var(--qhr-font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

[data-mode="light"] .exhibit-search-input {
  background: #f4f0e6;
  border-color: rgba(0, 0, 0, 0.1);
  color: #14171f;
}

.exhibit-search-input:focus {
  border-color: var(--exhibit-copper);
  box-shadow: 0 0 0 3px var(--exhibit-copper-glow);
}

.exhibit-search-clear {
  position: absolute;
  inset-inline-end: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--exhibit-bone-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.exhibit-search-clear:hover {
  color: var(--exhibit-bone);
}

/* Status & Count Bar */
.exhibit-sources-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-block-end: 1.75rem;
  padding-inline: 0.5rem;
  font-size: 0.85rem;
  color: var(--exhibit-bone-muted);
  font-family: var(--qhr-font-mono);
}

.exhibit-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--exhibit-copper);
  font-family: var(--qhr-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--exhibit-radius-sm);
  transition: all 0.15s ease;
}

.exhibit-reset-btn:hover {
  background: var(--exhibit-copper-dim);
  text-decoration: underline;
}

/* Sources Grid */
.exhibit-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .exhibit-sources-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Source Card */
.exhibit-source-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--exhibit-surface);
  border: 1px solid var(--exhibit-border-subdued);
  border-radius: var(--exhibit-radius-lg);
  padding: clamp(1.4rem, 3vw, 1.85rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

[data-mode="light"] .exhibit-source-card {
  background: #ffffff;
  border-color: rgba(160, 105, 45, 0.18);
  box-shadow: 0 6px 20px rgba(30, 20, 10, 0.05);
}

.exhibit-source-card:hover {
  transform: translateY(-3px);
  border-color: var(--exhibit-border-focus);
  box-shadow: 0 12px 32px var(--exhibit-copper-glow);
}

/* Card Header: Badge + Era */
.exhibit-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-end: 1rem;
}

.exhibit-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  font-family: var(--qhr-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.exhibit-source-badge--primary {
  background: rgba(200, 138, 75, 0.14);
  border: 1px solid rgba(200, 138, 75, 0.35);
  color: var(--exhibit-copper);
}

.exhibit-source-badge--classical {
  background: rgba(30, 58, 95, 0.18);
  border: 1px solid rgba(44, 82, 130, 0.4);
  color: #38bdf8;
}

[data-mode="light"] .exhibit-source-badge--classical {
  background: rgba(16, 42, 69, 0.08);
  border-color: rgba(16, 42, 69, 0.25);
  color: #0369a1;
}

.exhibit-source-badge--academic {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

[data-mode="light"] .exhibit-source-badge--academic {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.25);
  color: #7e22ce;
}

.exhibit-source-badge--online {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

[data-mode="light"] .exhibit-source-badge--online {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
}

.exhibit-source-era {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--qhr-font-mono);
  font-size: 0.75rem;
  color: var(--exhibit-bone-muted);
}

/* Title & Author */
.exhibit-source-title {
  font-family: var(--qhr-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--exhibit-bone);
  line-height: 1.35;
  margin: 0;
  margin-block-end: 0.45rem;
}

.exhibit-source-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--exhibit-copper);
  margin-block-end: 1.15rem;
}

/* Citation Quote Box */
.exhibit-source-quote-box {
  background: var(--exhibit-surface-elevated);
  border: 1px solid var(--exhibit-border-subdued);
  border-inline-start: 3px solid var(--exhibit-copper);
  border-radius: var(--exhibit-radius-md);
  padding: 1.15rem;
  margin-block-end: 1.25rem;
  flex-grow: 1;
}

[data-mode="light"] .exhibit-source-quote-box {
  background: #fbf9f4;
  border-color: rgba(160, 105, 45, 0.15);
  border-inline-start-color: var(--exhibit-copper);
}

.exhibit-source-quote-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--qhr-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--exhibit-bone-muted);
  text-transform: uppercase;
  margin-block-end: 0.5rem;
}

.exhibit-source-quote-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--exhibit-bone);
  line-height: 1.7;
}

/* Card Footer: Figures + Link */
.exhibit-source-footer {
  margin-block-start: auto;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--exhibit-border-subdued);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.exhibit-source-people {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.exhibit-source-people-label {
  font-size: 0.78rem;
  color: var(--exhibit-bone-muted);
  margin-inline-end: 0.2rem;
}

.exhibit-source-person-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--exhibit-surface-elevated);
  border: 1px solid var(--exhibit-border-subdued);
  color: var(--exhibit-bone);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

[data-mode="light"] .exhibit-source-person-chip {
  background: #f0ece0;
}

.exhibit-source-person-chip:hover {
  border-color: var(--exhibit-copper);
  color: var(--exhibit-copper);
  background: var(--exhibit-copper-dim);
}

.exhibit-source-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  background: var(--exhibit-surface-elevated);
  border: 1px solid var(--exhibit-border-subdued);
  color: var(--exhibit-bone);
  font-family: var(--qhr-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

[data-mode="light"] .exhibit-source-link-btn {
  background: #f4f0e6;
  border-color: rgba(160, 105, 45, 0.25);
  color: #14171f;
}

.exhibit-source-link-btn:hover {
  background: var(--exhibit-copper);
  border-color: var(--exhibit-copper);
  color: #07080c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--exhibit-copper-glow);
}

[data-mode="light"] .exhibit-source-link-btn:hover {
  background: var(--exhibit-copper);
  color: #ffffff;
}

/* Empty State */
.exhibit-sources-empty {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--exhibit-surface);
  border: 1px dashed var(--exhibit-border-subtle);
  border-radius: var(--exhibit-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.exhibit-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--exhibit-copper-dim);
  color: var(--exhibit-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 0.5rem;
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
