/* ==========================================================================
   Althawra.org — Sudanese Peaceful Revolutions Digital Archive
   Editorial Archival Design System (RTL Arabic & LTR English)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --emerald-950: #091d17;
  --emerald-900: #0f2e25;
  --emerald-800: #164438;
  --emerald-700: #1f5c4c;
  --emerald-100: #e6f0eb;
  --crimson: #b82d29;
  --crimson-dark: #93211e;
  --crimson-soft: #f9eae9;
  --gold: #c9923d;
  --gold-light: #ebcb92;
  --paper: #faf7f1;
  --surface: #f1ebe0;
  --surface-deep: #e6dfd1;
  --card: #ffffff;
  --ink: #15231e;
  --ink-soft: #3d4e47;
  --muted: #62716a;
  --line: #ddd5c7;
  --line-dark: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 10px rgba(15, 46, 37, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 46, 37, 0.10);
  --shadow-lg: 0 24px 60px rgba(9, 29, 23, 0.22);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-serif: 'Amiri', Georgia, serif;
  --font-latin: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-latin-serif: 'Fraunces', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body.archive-site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html[lang="en"] body.archive-site {
  font-family: var(--font-latin);
  line-height: 1.7;
}

.archive-site a {
  color: inherit;
  text-decoration: none;
}

.archive-site button,
.archive-site input,
.archive-site select {
  font: inherit;
}

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

.archive-site h1,
.archive-site h2,
.archive-site h3,
.archive-site h4,
.archive-site p {
  margin-top: 0;
}

.archive-site :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(1280px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -120px;
  inset-inline-start: 16px;
  background: var(--emerald-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Top Heritage Strip & Header ---------- */
.topline {
  background: var(--emerald-950);
  color: #d6e2dc;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
}

.topline-msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sudan-tri {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.sudan-tri i {
  display: block;
  width: 5px;
  height: 13px;
  border-radius: 1px;
}

.sudan-tri i:nth-child(1) { background: var(--crimson); }
.sudan-tri i:nth-child(2) { background: #ffffff; }
.sudan-tri i:nth-child(3) { background: #262e2b; border: 1px solid rgba(255,255,255,0.25); }
.sudan-tri i:nth-child(4) { background: #228b5a; }

.topline-years {
  font-family: var(--font-latin);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-light);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-symbol {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  background: var(--emerald-900);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(201, 146, 61, 0.55);
  box-shadow: 0 4px 14px rgba(15, 46, 37, 0.24);
  flex-shrink: 0;
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--emerald-950);
}

html[lang="en"] .brand-copy strong {
  font-family: var(--font-latin-serif);
  font-size: 21px;
}

.brand-copy small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--emerald-100);
  color: var(--emerald-900);
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--emerald-800);
  transition: border-color 0.2s, background-color 0.2s;
}

.header-search-btn svg {
  width: 17px;
  height: 17px;
}

.header-search-btn:hover {
  border-color: var(--emerald-800);
  background: var(--emerald-100);
}

.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--emerald-800);
  color: var(--emerald-900);
  background: var(--card);
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.language-pill svg {
  width: 15px;
  height: 15px;
}

.language-pill:hover {
  background: var(--emerald-800);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--emerald-900);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  place-items: center;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Buttons & Shared Editorial Elements ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.eyebrow.dark {
  color: var(--emerald-700);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--crimson);
  flex-shrink: 0;
}

.eyebrow.gold-bar::before {
  background: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.button:hover {
  transform: translateY(-1px);
}

.button-red {
  background: var(--crimson);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(184, 45, 41, 0.28);
}

.button-red:hover {
  background: var(--crimson-dark);
}

.button-emerald {
  background: var(--emerald-800);
  color: #fff !important;
}

.button-emerald:hover {
  background: var(--emerald-900);
}

.button-ghost-light {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.button-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--emerald-900) !important;
}

.button-outline:hover {
  border-color: var(--emerald-800);
  background: var(--emerald-100);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--emerald-800);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.2s, gap 0.2s;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

html[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

.text-link:hover {
  color: var(--crimson);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 670px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  background: var(--emerald-950);
  color: #fff;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    265deg,
    rgba(9, 29, 23, 0.96) 0%,
    rgba(9, 29, 23, 0.86) 36%,
    rgba(9, 29, 23, 0.45) 70%,
    rgba(9, 29, 23, 0.18) 100%
  );
  z-index: -2;
}

html[dir="ltr"] .hero-shade {
  transform: scaleX(-1);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, rgba(9, 29, 23, 0.88));
  z-index: -1;
}

.hero-inner {
  padding-block: 74px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(54px, 6.8vw, 94px);
  line-height: 1.16;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

html[lang="en"] .hero-copy h1 {
  font-family: var(--font-latin-serif);
  font-size: clamp(46px, 5.8vw, 80px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero-copy h1 span {
  color: var(--gold-light);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.9;
  color: #e4ede8;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-featured-card {
  background: rgba(11, 32, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 22px;
  max-width: 420px;
  margin-inline-start: auto;
}

.hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hero-card-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
}

.hero-featured-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.hero-featured-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.hero-featured-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #cfe0d7;
  margin-bottom: 12px;
}

.hero-featured-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
}

.hero-featured-card a svg {
  width: 15px;
  height: 15px;
}

/* ---------- Archival Metrics Strip ---------- */
.metrics-strip {
  background: var(--emerald-900);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 3px solid var(--gold);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-item {
  padding: 22px 24px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-item:last-child {
  border-inline-end: 0;
}

.metric-value {
  font-family: var(--font-latin);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.25;
}

.metric-label {
  font-size: 13.5px;
  color: #d0dfd7;
}

/* ---------- Editorial Sections ---------- */
.section {
  padding-block: 82px;
}

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

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--emerald-950);
}

html[lang="en"] .section-heading h2 {
  font-family: var(--font-latin-serif);
  font-size: clamp(28px, 3.3vw, 40px);
}

.section-heading p {
  max-width: 440px;
  font-size: 15.5px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Three Peaceful Revolutions Grid ---------- */
.revolution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.revolution-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--emerald-700);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.revolution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.revolution-card.featured {
  background: linear-gradient(160deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  border-color: var(--emerald-800);
  border-top-color: var(--crimson);
  color: #fff;
}

.rev-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rev-year {
  font-family: var(--font-latin);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--emerald-800);
}

.revolution-card.featured .rev-year {
  color: var(--gold-light);
}

.rev-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-100);
  color: var(--emerald-800);
}

.revolution-card.featured .rev-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.rev-date {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--crimson);
  margin-bottom: 6px;
}

.revolution-card.featured .rev-date {
  color: #f3a69f;
}

.revolution-card h3 {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

html[lang="en"] .revolution-card h3 {
  font-family: var(--font-latin-serif);
  font-size: 24px;
}

.rev-regime {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald-700);
  margin-bottom: 14px;
}

.revolution-card.featured .rev-regime {
  color: var(--gold-light);
}

.revolution-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.revolution-card.featured p {
  color: #d6e4dc;
}

.rev-slogan {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--gold);
  background: var(--paper);
  color: var(--emerald-900);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 22px;
}

.revolution-card.featured .rev-slogan {
  background: rgba(255, 255, 255, 0.08);
  color: #f6eedf;
}

.rev-cta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald-800);
}

.rev-cta svg {
  width: 17px;
  height: 17px;
}

.revolution-card.featured .rev-cta {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--gold-light);
}

/* ---------- Curated Photo Archive & Filterable Mosaic ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-pill {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-pill:hover {
  border-color: var(--emerald-800);
  color: var(--emerald-900);
}

.filter-pill.is-active {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-card {
  grid-column: span 4;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--emerald-950);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: start;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.gallery-card.is-wide {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 29, 23, 0.04) 25%, rgba(9, 29, 23, 0.90) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.gallery-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(201, 146, 61, 0.92);
  color: #0f201a;
  margin-bottom: 8px;
}

.gallery-overlay h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  color: #fff;
}

.gallery-overlay p {
  font-size: 13px;
  line-height: 1.6;
  color: #d6e2dc;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-footer-bar {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.gallery-footer-bar p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 19, 15, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-dialog {
  width: min(1040px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  color: #fff;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-counter {
  font-family: var(--font-latin);
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.lightbox-controls {
  display: flex;
  gap: 8px;
}

.lightbox-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

.lightbox-btn svg {
  width: 19px;
  height: 19px;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-stage img {
  max-height: 66vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.lightbox-meta h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.lightbox-meta p {
  font-size: 14px;
  color: #cfe0d7;
  margin: 0;
  max-width: 720px;
}

.lightbox-credit {
  font-size: 12.5px;
  color: var(--gold-light);
  white-space: nowrap;
}

/* ---------- Music & Immortal Anthems Studio ---------- */
.music-section {
  background: radial-gradient(circle at 20% 20%, #19473a 0%, #0b201a 62%, #071511 100%);
  color: #fff;
  padding-block: 88px;
}

.music-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.music-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.28;
  margin-bottom: 10px;
}

html[lang="en"] .music-header h2 {
  font-family: var(--font-latin-serif);
}

.music-header h2 span {
  color: var(--gold-light);
}

.music-header p {
  color: #cbdcd3;
  max-width: 560px;
  margin: 0;
  font-size: 16px;
}

.music-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.player-now {
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.vinyl-disc {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #061410;
  box-shadow: 0 0 0 2px rgba(235, 203, 146, 0.45);
}

.vinyl-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.vinyl-disc.is-playing {
  animation: spinDisc 14s linear infinite;
}

.vinyl-center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--crimson);
  border: 4px solid #0b201a;
}

@keyframes spinDisc {
  to { transform: rotate(360deg); }
}

.now-meta .now-era {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.now-meta h3 {
  font-size: 24px;
  margin-bottom: 2px;
  color: #fff;
}

.now-meta p {
  font-size: 13.5px;
  color: #c2d4cb;
  margin-bottom: 12px;
}

.now-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--crimson);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, background-color 0.2s;
}

.play-circle:hover {
  background: #d13834;
  transform: scale(1.04);
}

.play-circle svg {
  width: 18px;
  height: 18px;
}

.player-audio-el {
  width: 100%;
  height: 36px;
  filter: invert(0.92) hue-rotate(155deg);
  opacity: 0.92;
}

.playlist {
  max-height: 410px;
  overflow-y: auto;
  padding: 10px;
}

.track-row {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #e2ede7;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.18s;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.track-row.is-active {
  background: rgba(201, 146, 61, 0.18);
  color: #fff;
}

.track-num {
  font-family: var(--font-latin);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
}

.track-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.track-artist {
  display: block;
  font-size: 12.5px;
  color: #b4c8be;
}

.track-era-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6e4dc;
  white-space: nowrap;
}

/* ---------- Anthems Across Three Revolutions Panel ---------- */
.anthems-chronicle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.anthems-chronicle h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 6px;
  color: var(--gold-light);
}

html[lang="en"] .anthems-chronicle h3 {
  font-family: var(--font-latin-serif);
  font-size: 22px;
}

.anthems-chronicle > p {
  font-size: 14px;
  color: #c5d7ce;
  margin-bottom: 22px;
}

.anthem-era-block {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.anthem-era-block h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.anthem-era-block h4 span {
  font-family: var(--font-latin);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--crimson);
  color: #fff;
}

.anthem-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.anthem-list li {
  font-size: 13.5px;
  color: #d5e3db;
  line-height: 1.6;
}

.anthem-list strong {
  color: #fff;
}

/* ---------- Film & Documents Archive Grid ---------- */
.media-docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
}

.featured-film-card {
  background: var(--emerald-950);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.featured-film-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #050f0c;
  display: block;
}

.featured-film-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-film-body .eyebrow {
  margin-bottom: 8px;
}

.featured-film-body h3 {
  font-family: var(--font-serif);
  font-size: 25px;
  margin-bottom: 8px;
}

html[lang="en"] .featured-film-body h3 {
  font-family: var(--font-latin-serif);
  font-size: 21px;
}

.featured-film-body p {
  font-size: 14.5px;
  color: #cfe0d7;
  margin-bottom: 18px;
}

.featured-film-body .text-link {
  margin-top: auto;
  color: var(--gold-light);
  align-self: flex-start;
}

.docs-stack {
  display: grid;
  gap: 14px;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
  border-color: var(--emerald-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.doc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--crimson-soft);
  color: var(--crimson);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.doc-icon svg {
  width: 21px;
  height: 21px;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-700);
  margin-bottom: 4px;
}

.doc-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
  color: var(--emerald-950);
}

.doc-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.doc-open {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--emerald-800);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--emerald-100);
  align-self: center;
}

/* ---------- Search & Mission Band ---------- */
.discovery-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.discovery-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.5vw, 40px);
  margin-bottom: 10px;
}

html[lang="en"] .discovery-band h2 {
  font-family: var(--font-latin-serif);
}

.discovery-band p {
  color: var(--muted);
  margin: 0;
}

.search-box-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.archive-search label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald-900);
  margin-bottom: 10px;
}

.search-input-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.search-input-row:focus-within {
  border-color: var(--emerald-800);
  background: #fff;
}

.search-input-row input {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
}

.search-input-row input:focus {
  outline: none;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.search-chips span {
  font-size: 12px;
  color: var(--muted);
}

.search-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--emerald-900);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.search-chip:hover {
  background: var(--emerald-100);
  border-color: var(--emerald-700);
}

/* ---------- About / World Mission Band ---------- */
.about-band {
  background: linear-gradient(180deg, var(--surface) 0%, #ebe3d5 100%);
  border-top: 1px solid var(--line);
  padding-block: 74px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.about-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--emerald-950);
}

html[lang="en"] .about-band h2 {
  font-family: var(--font-latin-serif);
}

.about-band p {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-md);
}

.about-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-photo-frame figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(9, 29, 23, 0.88));
  color: #f3ece0;
  font-size: 12.5px;
}

/* ---------- History Page ---------- */
.history-hero {
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-800) 100%);
  color: #fff;
  padding-block: 68px 56px;
  border-bottom: 4px solid var(--gold);
}

.history-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.25;
  margin-bottom: 10px;
}

html[lang="en"] .history-hero h1 {
  font-family: var(--font-latin-serif);
}

.history-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.era-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.era-tabs a {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e4ede8;
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.era-tabs a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.era-tabs a[aria-current="page"] {
  background: #fff;
  border-color: #fff;
  color: var(--emerald-950);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 44px;
  align-items: start;
}

.history-article h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  margin-bottom: 16px;
  color: var(--emerald-950);
}

html[lang="en"] .history-article h2 {
  font-family: var(--font-latin-serif);
  font-size: 27px;
}

.history-article p {
  font-size: 17.5px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.history-quote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--surface);
  border-inline-start: 4px solid var(--crimson);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--emerald-950);
}

.history-figure {
  margin: 28px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.history-figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.history-figure figcaption {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.timeline-list {
  margin: 28px 0 36px;
}

.timeline-item {
  border-inline-start: 2px solid var(--emerald-700);
  padding: 0 24px 26px;
  margin-inline-start: 8px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 4px;
}

.timeline-item::before {
  content: '';
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--crimson);
  border: 3px solid var(--paper);
  position: absolute;
  inset-inline-start: -7.5px;
  top: 6px;
}

.timeline-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 15.5px;
  line-height: 1.8;
  margin: 0;
}

.history-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card.dark {
  background: var(--emerald-950);
  border-color: var(--emerald-800);
  color: #fff;
}

.sidebar-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 14px;
}

.sidebar-card.dark h3 {
  color: var(--gold-light);
}

.sidebar-anthem {
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-anthem:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.sidebar-anthem strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

.sidebar-anthem span {
  font-size: 12.5px;
  color: #c2d4cb;
}

.source-links {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.source-links a {
  color: var(--emerald-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.archive-footer {
  background: var(--emerald-950);
  color: #d0dfd7;
}

.footer-accent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 4px;
}

.footer-accent span:nth-child(1) { background: var(--crimson); }
.footer-accent span:nth-child(2) { background: #ffffff; }
.footer-accent span:nth-child(3) { background: #1d2623; }
.footer-accent span:nth-child(4) { background: #1f7a53; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 60px 44px;
}

.archive-footer .brand-copy strong {
  color: #fff;
}

.archive-footer .brand-copy small {
  color: #a9c0b5;
}

.footer-brand-col p {
  font-size: 14px;
  line-height: 1.9;
  color: #b5c8be;
  margin-top: 16px;
  max-width: 380px;
}

.footer-grid h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-grid > div > a:not(.brand) {
  display: block;
  font-size: 14px;
  color: #cde0d6;
  margin-block: 9px;
  transition: color 0.2s;
}

.footer-grid > div > a:not(.brand):hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: #9cb4a8;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1260px) {
  .header-inner {
    gap: 12px;
  }
  .primary-nav {
    gap: 2px;
  }
  .primary-nav a {
    padding: 7px 9px;
    font-size: 13.5px;
  }
  .brand-copy small {
    display: none;
  }
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: grid;
    margin-inline-start: auto;
  }
  .primary-nav {
    display: none;
    position: absolute;
    inset: 78px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 4%;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 56px 68px;
  }
  .hero-featured-card {
    margin-inline-start: 0;
    max-width: 520px;
  }
  .music-studio-grid,
  .media-docs-grid,
  .discovery-band,
  .about-grid,
  .history-layout {
    grid-template-columns: 1fr;
  }
  .history-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
  .revolution-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card,
  .gallery-card.is-wide {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }
  .section-heading,
  .music-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: 92%;
  }
  .topline-years {
    display: none;
  }
  .topline-msg {
    font-size: 11.5px;
    line-height: 1.5;
  }
  .header-inner {
    min-height: 68px;
    gap: 8px;
  }
  .primary-nav {
    top: 68px;
  }
  .brand {
    gap: 9px;
    min-width: 0;
  }
  .brand-symbol {
    width: 36px;
    height: 40px;
    font-size: 26px;
  }
  .brand-copy small {
    display: none;
  }
  .brand-copy strong {
    font-size: 19px;
  }
  .header-search-btn {
    width: 34px;
    height: 34px;
  }
  .language-pill {
    padding: 6px 10px;
    font-size: 12px;
  }
  .hero-inner {
    padding-block: 40px 52px;
    gap: 28px;
  }
  .hero-copy h1 {
    font-size: 46px;
  }
  .hero-lead {
    font-size: 15.5px;
    line-height: 1.8;
  }
  .hero-actions .button {
    width: 100%;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-item {
    padding: 16px 14px;
  }
  .metric-value {
    font-size: 22px;
  }
  .section {
    padding-block: 52px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gallery-card,
  .gallery-card.is-wide {
    grid-column: auto;
  }
  .player-now {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .now-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .play-circle {
    align-self: flex-start;
  }
  .player-audio-el {
    min-width: 0;
    max-width: 100%;
  }
  .track-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .track-era-chip {
    display: none;
  }
  .vinyl-disc {
    display: none;
  }
  .search-input-row {
    flex-direction: column;
  }
  .search-input-row .button {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .doc-card {
    flex-direction: column;
  }
  .doc-open {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Unified Inner Archive Pages (Photos, Songs, Videos, Articles, Guestbook, Search)
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-800) 100%);
  color: #fff;
  padding-block: 56px 46px;
  border-bottom: 4px solid var(--gold);
}

.page-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.25;
  margin-bottom: 10px;
}

html[lang="en"] .page-hero h1 {
  font-family: var(--font-latin-serif);
  font-size: clamp(30px, 4vw, 46px);
}

.page-hero-lead {
  color: #d4e3db;
  font-size: 16.5px;
  max-width: 660px;
  margin: 0;
}

.page-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.category-pills a {
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e4ede8;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.category-pills a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.category-pills a[aria-current="page"] {
  background: #fff;
  border-color: #fff;
  color: var(--emerald-950);
}

.breadcrumb-bar {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald-900);
}

.breadcrumb-link:hover {
  background: var(--emerald-100);
  border-color: var(--emerald-800);
}

/* ---------- Archive Pagination ---------- */
.archive-pagination {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--emerald-900);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}

.page-btn:hover:not(.is-disabled),
.page-num:hover:not(.is-current) {
  background: var(--emerald-100);
  border-color: var(--emerald-800);
}

.page-num.is-current {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  color: #fff;
}

.page-btn.is-disabled {
  opacity: 0.42;
  cursor: default;
}

.page-ellipsis {
  padding: 0 6px;
  color: var(--muted);
}

.page-meta {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Photos Archive & Single Photo Stage ---------- */
.photo-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.photo-archive-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.photo-archive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.photo-archive-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--emerald-950);
}

.photo-archive-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.photo-archive-card:hover .photo-archive-media img {
  transform: scale(1.04);
}

.photo-archive-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.photo-archive-caption {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

.photo-archive-credit {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: auto;
}

.photo-single-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.photo-single-stage {
  background: var(--emerald-950);
  padding: 24px;
  display: grid;
  place-items: center;
}

.photo-single-stage img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.photo-single-meta {
  padding: 26px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.photo-single-meta h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 6px;
}

.photo-single-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.photo-nav-pair {
  display: flex;
  gap: 10px;
}

/* ---------- Audios Archive Grid ---------- */
.audio-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.audio-archive-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.audio-archive-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  color: var(--emerald-950);
}

html[lang="en"] .audio-archive-card h2 {
  font-family: var(--font-latin-serif);
  font-size: 19px;
}

.audio-archive-card audio {
  width: 100%;
  height: 40px;
  display: block;
}

.audio-archive-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Videos Archive Grid & Cinema Player ---------- */
.video-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.video-archive-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.video-archive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.video-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-800));
  overflow: hidden;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-archive-card:hover .video-thumb-wrap img {
  transform: scale(1.04);
}

.video-play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(184, 45, 41, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.video-play-badge svg {
  width: 22px;
  height: 22px;
}

.video-archive-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-archive-body h2 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: var(--emerald-950);
}

.video-archive-body p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.video-cinema-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-embed-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06120e;
}

.video-embed-box iframe,
.video-embed-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-cinema-meta {
  padding: 28px 32px;
}

.video-cinema-meta h1 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
}

/* ---------- Articles Archive Grid & Editorial Reader ---------- */
.article-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-archive-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--emerald-800);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.article-archive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--crimson);
}

.article-card-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.48;
  margin: 0;
  color: var(--emerald-950);
}

html[lang="en"] .article-card-body h2 {
  font-family: var(--font-latin-serif);
  font-size: 20px;
  line-height: 1.38;
}

.article-card-body h2 a:hover {
  color: var(--crimson);
}

.article-card-excerpt {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0;
}

.article-card-footer {
  margin-top: auto;
  padding: 14px 24px;
  border-top: 1px solid #ece6da;
  background: #faf8f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald-800);
}

.reader-sheet {
  max-width: 900px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--emerald-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.reader-header {
  padding: 36px 42px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.reader-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--emerald-950);
}

html[lang="en"] .reader-header h1 {
  font-family: var(--font-latin-serif);
}

.reader-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--emerald-800);
  margin-bottom: 12px;
}

.reader-lead {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

.reader-prose {
  padding: 36px 42px 42px;
  font-size: 18px;
  line-height: 2.1;
  color: var(--ink);
}

.reader-prose h2,
.reader-prose h3,
.reader-prose h4 {
  font-family: var(--font-serif);
  color: var(--emerald-950);
  margin: 26px 0 12px;
}

.reader-prose p {
  margin-bottom: 18px;
}

.reader-prose blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--paper);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 20px;
}

.reader-prose mark {
  background: #fde69a;
  padding: 0 4px;
  border-radius: 3px;
}

.chapter-bar {
  padding: 20px 42px;
  background: #faf8f3;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chapter-bar a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald-900);
}

.chapter-bar a[aria-current="page"] {
  background: var(--emerald-800);
  border-color: var(--emerald-800);
  color: #fff;
}

.attachments-box {
  padding: 24px 42px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.attachments-box h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachments-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald-900);
}

.attachments-list a:hover {
  border-color: var(--emerald-800);
  background: var(--emerald-100);
}

/* ---------- Guestbook ---------- */
.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 32px;
  align-items: start;
}

.guestbook-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--crimson);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 98px;
}

.guestbook-form-card h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 6px;
}

.guestbook-form-card > p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald-900);
  margin-bottom: 6px;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}

.field-group textarea {
  min-height: 120px;
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--emerald-800);
  background: #fff;
}

.alert-banner {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 14.5px;
  font-weight: 600;
}

.alert-banner.success {
  background: #e4f4eb;
  border: 1px solid #9bd1b3;
  color: #124d2f;
}

.alert-banner.error {
  background: var(--crimson-soft);
  border: 1px solid #e7b2af;
  color: var(--crimson-dark);
}

.guestbook-entries {
  display: grid;
  gap: 18px;
}

.guestbook-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.guestbook-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ece6da;
}

.guestbook-author {
  font-weight: 700;
  color: var(--emerald-900);
  font-size: 15.5px;
}

.guestbook-date {
  font-size: 12.5px;
  color: var(--muted);
}

.guestbook-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  margin-bottom: 8px;
  color: var(--emerald-950);
}

.guestbook-body {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.guestbook-reply {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border-inline-start: 3px solid var(--emerald-800);
  border-radius: var(--radius-sm);
}

.guestbook-reply-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-800);
  margin-bottom: 6px;
}

/* ---------- Static Pages & Search Results ---------- */
.page-shell-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.page-nav-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  position: sticky;
  top: 98px;
}

.page-nav-sidebar h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
  padding-inline: 10px;
}

.page-nav-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.page-nav-sidebar a:hover,
.page-nav-sidebar a[aria-current="page"] {
  background: var(--emerald-100);
  color: var(--emerald-900);
}

.search-results-stack {
  display: grid;
  gap: 32px;
}

.search-group h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-group h2 span {
  font-family: var(--font-latin);
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--emerald-100);
  color: var(--emerald-900);
}

.search-list {
  display: grid;
  gap: 12px;
}

.search-result-card {
  display: block;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, transform 0.18s;
}

.search-result-card:hover {
  border-color: var(--emerald-800);
  transform: translateY(-2px);
}

.search-result-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--emerald-950);
}

.search-result-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.empty-state-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 44px 28px;
  text-align: center;
}

.category-pills a .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.category-pills a[aria-current="page"] .pill-count {
  background: rgba(9, 29, 23, 0.18);
}

.empty-state-card h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 8px;
}

.empty-state-card p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 20px;
}

.notice-banner {
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14.5px;
  color: var(--emerald-900);
}

@media (max-width: 1020px) {
  .photo-archive-grid,
  .video-archive-grid,
  .article-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guestbook-layout,
  .page-shell-layout {
    grid-template-columns: 1fr;
  }
  .guestbook-form-card,
  .page-nav-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .photo-archive-grid,
  .video-archive-grid,
  .article-archive-grid,
  .audio-archive-grid {
    grid-template-columns: 1fr;
  }
  .reader-header,
  .reader-prose,
  .chapter-bar,
  .attachments-box {
    padding-inline: 20px;
  }
}
