@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Naskh+Arabic:wght@500;600;700&display=swap");

:root {
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-arabic: "Noto Naskh Arabic", "Segoe UI", serif;
  --color-bg: #d8cbb7;
  --color-bg-deep: #c6b398;
  --color-surface: rgba(251, 245, 236, 0.9);
  --color-surface-strong: rgba(255, 250, 243, 0.96);
  --color-surface-soft: rgba(241, 229, 213, 0.88);
  --color-heading: #24170f;
  --color-text: #2c2017;
  --color-muted: #6a5a4f;
  --color-accent: #ab5531;
  --color-accent-strong: #7f3417;
  --color-highlight: #c79d64;
  --color-border: rgba(67, 46, 30, 0.14);
  --color-border-strong: rgba(67, 46, 30, 0.24);
  --color-dark: #251812;
  --color-dark-alt: #3f291d;
  --shadow-panel: 0 26px 70px rgba(43, 25, 12, 0.12);
  --shadow-card: 0 20px 42px rgba(40, 24, 12, 0.08);
  --shadow-hero: 0 34px 90px rgba(17, 11, 8, 0.28);
}

html {
  background: var(--color-bg-deep);
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 240, 219, 0.72), transparent 34%),
    radial-gradient(circle at top right, rgba(166, 85, 49, 0.1), transparent 26%),
    linear-gradient(180deg, #e5d8c6 0%, #d8cbb7 44%, #d1c0ab 100%);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.74;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.8;
}

body::before {
  top: -7rem;
  left: -8rem;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 246, 231, 0.65);
}

body::after {
  right: -8rem;
  bottom: 8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(171, 85, 49, 0.09);
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
  line-height: 1.92;
}

a {
  transition: color 0.22s ease, opacity 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-strong);
}

.container {
  max-width: 1240px;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(31, 21, 16, 0.9);
  border-bottom: 1px solid rgba(255, 237, 213, 0.09);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(16, 11, 8, 0.18);
}

.header-inner {
  min-height: 82px;
  gap: 1.25rem 2rem;
}

.header-right {
  gap: 1rem 1.5rem;
}

.site-logo {
  gap: 1rem;
}

.site-logo img {
  height: 58px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.site-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f6ebd8;
}

.site-nav {
  gap: 0.35rem 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 235, 216, 0.75);
  border-bottom: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.08rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-highlight), var(--color-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: #fff9f1;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.lang-switch {
  padding: 0.42rem 0.86rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 237, 213, 0.12);
  color: rgba(245, 232, 211, 0.9);
}

.lang-switch .active-lang {
  color: #fff;
}

main.page-main {
  max-width: none;
  padding: 4.5rem 0 5rem;
}

.structured-page > .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

h1,
h2,
h3 {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.03;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  line-height: 1.22;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  margin-bottom: 0.25rem;
}

p {
  color: var(--color-text);
}

.section-eyebrow,
.eyebrow {
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

html[lang="ar"] .section-eyebrow,
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
}

.record-note,
.supporting-text,
.browse-summary,
.empty-state,
.hero-note,
.section-lead,
.route-note {
  color: var(--color-muted);
}

.btn,
button.btn {
  min-height: 48px;
  padding: 0.82rem 1.22rem;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .btn,
html[lang="ar"] button.btn {
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
}

.btn.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
  color: #fff7ee;
  box-shadow: 0 18px 32px rgba(127, 52, 23, 0.25);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus-visible {
  background: linear-gradient(135deg, #be6038 0%, #8a3919 100%);
}

.btn.btn-secondary {
  border-color: rgba(67, 46, 30, 0.14);
  background: rgba(255, 252, 248, 0.78);
  color: var(--color-heading);
  box-shadow: 0 12px 26px rgba(28, 18, 11, 0.06);
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus-visible {
  background: rgba(255, 249, 241, 0.95);
  color: var(--color-heading);
}

.btn.btn-outline {
  border-color: rgba(199, 157, 100, 0.42);
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-accent-strong);
}

.btn.btn-outline:hover,
.btn.btn-outline:focus-visible {
  background: rgba(171, 85, 49, 0.08);
}

.page-hero,
.detail-hero,
.section-panel,
.browse-shell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-surface-strong) 0%, var(--color-surface-soft) 100%);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow-panel);
}

.page-hero::before,
.detail-hero::before,
.section-panel::before,
.browse-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(199, 157, 100, 0), rgba(199, 157, 100, 0.95), rgba(171, 85, 49, 0.85), rgba(199, 157, 100, 0));
}

.page-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 0;
}

.page-hero > p,
.detail-hero > p,
.section-heading p,
.section-panel > p {
  max-width: 48rem;
}

.page-hero.with-media,
.split-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 1.8rem;
  align-items: start;
}

.hero-copy,
.hero-media,
.detail-main,
.detail-side,
.figure-card {
  display: grid;
  gap: 1rem;
}

.hero-media img,
.hero-media video,
.figure-card img {
  width: 100%;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(68, 47, 33, 0.12);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.86), rgba(230, 215, 197, 0.86));
  box-shadow: 0 24px 52px rgba(34, 20, 11, 0.14);
}

.hero-media video {
  max-height: 390px;
  object-fit: cover;
}

.hero-media.asset-plate {
  padding: 0.8rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.16), rgba(255, 246, 232, 0.06));
  border: 1px solid rgba(255, 229, 193, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-cover {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 24px 24px 18px 18px;
}

.card-cover img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 0;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(180deg, rgba(38, 24, 17, 0.96), rgba(84, 50, 33, 0.88));
  box-shadow: none;
}

.content-card.has-cover {
  gap: 0.92rem;
  padding: 0 0 1.4rem;
}

.content-card.has-cover > :not(.card-cover) {
  padding-inline: 1.4rem;
}

.route-icon {
  width: 74px;
  height: 74px;
  margin: 1.35rem 0 0 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.92), rgba(235, 220, 203, 0.82));
  border: 1px solid rgba(85, 58, 39, 0.12);
  box-shadow: 0 18px 34px rgba(32, 20, 12, 0.09);
}

.route-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

html[dir="rtl"] .route-icon {
  margin: 1.35rem 1.4rem 0 0;
}

.hero-actions,
.pill-list,
.card-actions,
.bridge-links,
.quick-links,
.browse-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.stats-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid,
.two-col-grid {
  display: grid;
  gap: 1.15rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
}

.two-col-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.content-card,
.timeline-card,
.detail-card,
.stat-card,
.quick-link-card,
.manifesto-card,
.home-route-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.88rem;
  align-content: start;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.88) 0%, rgba(243, 233, 220, 0.78) 100%);
  border: 1px solid rgba(68, 47, 33, 0.11);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.content-card::before,
.timeline-card::before,
.detail-card::before,
.quick-link-card::before,
.manifesto-card::before,
.home-route-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(171, 85, 49, 0.95), rgba(199, 157, 100, 0.7));
  opacity: 0.86;
}

.content-card[data-platform*="facebook"]::before,
.timeline-card[data-platform*="facebook"]::before {
  background: linear-gradient(90deg, rgba(110, 89, 74, 0.95), rgba(199, 157, 100, 0.62));
}

.content-card[data-platform*="github"]::before,
.timeline-card[data-platform*="github"]::before {
  background: linear-gradient(90deg, rgba(53, 56, 60, 0.95), rgba(171, 85, 49, 0.55));
}

.content-card:hover,
.timeline-card:hover,
.detail-card:hover,
.quick-link-card:hover,
.home-route-card:hover {
  transform: translateY(-4px);
  border-color: rgba(171, 85, 49, 0.24);
  box-shadow: 0 26px 46px rgba(41, 24, 12, 0.12);
}

.content-card[data-featured="featured"],
.timeline-card[data-featured="featured"],
.home-route-card.is-featured,
.stat-card.is-featured {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.94) 0%, rgba(240, 223, 204, 0.82) 100%);
  border-color: rgba(171, 85, 49, 0.18);
}

.content-card[hidden],
.timeline-card[hidden] {
  display: none !important;
}

.content-card h3,
.timeline-card h3,
.detail-card h3,
.home-route-card h3,
.manifesto-card h3 {
  margin-bottom: 0;
}

.meta-list,
.pill-list,
.browse-controls,
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-list,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-list li,
.pill-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  background: rgba(37, 24, 18, 0.06);
  border: 1px solid rgba(37, 24, 18, 0.08);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

html[lang="ar"] .meta-list li,
html[lang="ar"] .pill-list li {
  font-size: 0.92rem;
  letter-spacing: 0;
}

.meta-list li.is-strong,
.pill-list li.is-strong {
  background: rgba(171, 85, 49, 0.12);
  border-color: rgba(171, 85, 49, 0.18);
  color: var(--color-accent-strong);
}

.section-stack,
.source-grid,
.year-block {
  display: grid;
  gap: 1rem;
}

.detail-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  margin-top: 1rem;
}

.link-list {
  display: grid;
  gap: 0.72rem;
}

.link-list a,
.inline-link {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.record-blockquote {
  margin: 0;
  padding: 1.2rem 1.25rem;
  border-inline-start: 4px solid rgba(171, 85, 49, 0.5);
  background: rgba(171, 85, 49, 0.06);
  border-radius: 18px;
}

.browse-shell {
  display: grid;
  gap: 1rem;
}

.browse-controls {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.browse-controls label {
  display: grid;
  gap: 0.45rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="ar"] .browse-controls label {
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.browse-controls select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: rgba(255, 250, 243, 0.92);
  padding: 0 0.9rem;
  color: var(--color-text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.year-heading {
  margin: 0;
  color: var(--color-heading);
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  max-width: 56rem;
}

.section-heading h2,
.section-heading h3,
.section-heading p {
  margin: 0;
}

.section-heading p {
  color: var(--color-muted);
}

.section-page .section-canvas {
  display: grid;
  gap: 1.35rem;
}

.section-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(255, 226, 194, 0.12);
  box-shadow: var(--shadow-hero);
  background-repeat: no-repeat;
  background-size: cover, 31rem auto;
  background-position: center, calc(100% + 2.5rem) center;
}

.section-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -5rem -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 157, 100, 0.22), rgba(199, 157, 100, 0));
  pointer-events: none;
}

.section-hero > * {
  position: relative;
  z-index: 1;
}

.section-hero h1 {
  max-width: 10ch;
  color: #fff8ef;
  font-size: clamp(3.1rem, 5.3vw, 4.9rem);
  text-wrap: balance;
}

html[lang="ar"] .section-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 4.8vw, 4.3rem);
}

.section-hero .section-eyebrow,
.section-hero .route-meta {
  color: var(--color-highlight);
}

.section-hero .hero-lead {
  margin: 0;
  max-width: 50rem;
  color: rgba(244, 235, 221, 0.9);
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
}

.section-hero .hero-note,
.section-hero .supporting-text,
.section-hero .route-note {
  color: rgba(244, 235, 221, 0.74);
  max-width: 52rem;
}

.section-hero .stats-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.section-hero .stat-card {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 247, 236, 0.9), rgba(239, 225, 209, 0.82));
}

.section-hero-productions {
  background-image:
    linear-gradient(135deg, rgba(28, 20, 17, 0.98) 0%, rgba(63, 36, 28, 0.95) 54%, rgba(113, 63, 43, 0.92) 100%),
    url("/atyaf-al-ard-website/assets/images/sections/productions-anchor.svg");
}

.section-hero-research {
  background-image:
    linear-gradient(135deg, rgba(48, 34, 24, 0.97) 0%, rgba(94, 67, 48, 0.94) 55%, rgba(134, 97, 59, 0.9) 100%),
    url("/atyaf-al-ard-website/assets/images/sections/research-anchor.svg");
}

.section-hero-timeline {
  background-image:
    linear-gradient(135deg, rgba(39, 28, 23, 0.98) 0%, rgba(73, 48, 36, 0.95) 52%, rgba(111, 77, 53, 0.9) 100%),
    url("/atyaf-al-ard-website/assets/images/sections/timeline-anchor.svg");
}

.section-hero-archive {
  background-image:
    linear-gradient(135deg, rgba(33, 24, 20, 0.98) 0%, rgba(70, 44, 33, 0.95) 55%, rgba(121, 71, 46, 0.91) 100%),
    url("/atyaf-al-ard-website/assets/images/sections/archive-anchor.svg");
}

.section-hero-community {
  background-image:
    linear-gradient(135deg, rgba(36, 25, 19, 0.98) 0%, rgba(86, 53, 38, 0.94) 52%, rgba(132, 84, 53, 0.9) 100%),
    url("/atyaf-al-ard-website/assets/images/sections/community-anchor.svg");
}

.section-hero-support {
  background-image:
    linear-gradient(135deg, rgba(34, 23, 18, 0.98) 0%, rgba(82, 50, 35, 0.94) 52%, rgba(136, 83, 47, 0.91) 100%),
    url("/atyaf-al-ard-website/assets/images/sections/support-anchor.svg");
}

.section-hero-contact {
  background-image:
    linear-gradient(135deg, rgba(31, 23, 18, 0.98) 0%, rgba(68, 45, 34, 0.95) 56%, rgba(112, 75, 55, 0.9) 100%),
    url("/atyaf-al-ard-website/assets/images/sections/contact-anchor.svg");
}

html[dir="rtl"] .section-hero {
  background-position: center, calc(0% - 2.5rem) center;
}

.section-note-grid,
.channel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.section-page .browse-shell {
  gap: 1.15rem;
  padding: 1.6rem;
}

.section-page .browse-shell .browse-controls {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.7);
  border: 1px solid rgba(68, 47, 33, 0.08);
}

.section-page .browse-shell .browse-actions {
  align-items: center;
  justify-content: space-between;
}

.section-page .browse-shell .browse-summary {
  margin: 0;
}

.productions-page .browse-shell {
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.94) 0%, rgba(244, 233, 220, 0.86) 100%);
}

.research-page .browse-shell {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.96) 0%, rgba(242, 233, 223, 0.84) 100%);
}

.timeline-page .browse-shell {
  background: linear-gradient(180deg, rgba(252, 247, 241, 0.95) 0%, rgba(238, 228, 216, 0.84) 100%);
}

.archive-page .browse-shell {
  background: linear-gradient(180deg, rgba(255, 249, 243, 0.95) 0%, rgba(241, 229, 216, 0.86) 100%);
}

.community-page .browse-shell,
.support-page .browse-shell {
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.94) 0%, rgba(242, 231, 218, 0.84) 100%);
}

.channel-card h3,
.section-note-grid h3 {
  margin-bottom: 0;
}

.channel-card .link-list {
  gap: 0.45rem;
}

.channel-card .meta-list {
  margin-bottom: 0.2rem;
}

.detail-page .detail-canvas {
  display: grid;
  gap: 1.4rem;
}

.detail-page .detail-body {
  gap: 1.25rem;
  align-items: start;
}

.detail-page .detail-main,
.detail-page .detail-side {
  gap: 1.2rem;
}

.detail-hero-rich {
  padding: 2.25rem;
  border-color: rgba(255, 225, 189, 0.12);
  box-shadow: var(--shadow-hero);
}

.detail-hero-rich::before {
  background: linear-gradient(90deg, rgba(199, 157, 100, 0), rgba(199, 157, 100, 1), rgba(255, 238, 214, 0.82), rgba(199, 157, 100, 0));
}

.detail-hero-rich::after {
  content: "";
  position: absolute;
  inset: auto -2rem -7rem auto;
  width: 17rem;
  height: 17rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 157, 100, 0.28), rgba(199, 157, 100, 0));
  pointer-events: none;
}

.detail-hero-rich > * {
  position: relative;
  z-index: 1;
}

.detail-page-production .detail-hero-rich {
  background: linear-gradient(135deg, rgba(28, 20, 17, 0.98) 0%, rgba(61, 35, 27, 0.96) 55%, rgba(110, 64, 45, 0.92) 100%);
}

.detail-page-research .detail-hero-rich {
  background: linear-gradient(135deg, rgba(47, 34, 24, 0.98) 0%, rgba(87, 62, 46, 0.95) 55%, rgba(132, 95, 59, 0.92) 100%);
}

.detail-page-timeline .detail-hero-rich {
  background: linear-gradient(135deg, rgba(39, 28, 23, 0.98) 0%, rgba(73, 49, 38, 0.95) 52%, rgba(116, 81, 58, 0.9) 100%);
}

.detail-page-archive .detail-hero-rich {
  background: linear-gradient(135deg, rgba(33, 24, 20, 0.98) 0%, rgba(68, 44, 34, 0.95) 55%, rgba(118, 73, 49, 0.91) 100%);
}

.detail-page-community .detail-hero-rich {
  background: linear-gradient(135deg, rgba(35, 24, 19, 0.98) 0%, rgba(84, 53, 39, 0.94) 54%, rgba(130, 85, 54, 0.9) 100%);
}

.detail-hero-rich h1 {
  max-width: 11.5ch;
  color: #fff8ef;
  font-size: clamp(3rem, 5.2vw, 4.9rem);
  text-wrap: balance;
}

html[lang="ar"] .detail-hero-rich h1 {
  max-width: 14ch;
  font-size: clamp(2.65rem, 4.9vw, 4.2rem);
}

.detail-hero-rich .eyebrow,
.detail-hero-rich .section-eyebrow {
  color: var(--color-highlight);
}

.detail-hero-rich .hero-lead {
  margin: 0;
  max-width: 50rem;
  color: rgba(244, 235, 221, 0.92);
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
}

.detail-hero-rich .hero-note {
  margin: 0;
  max-width: 52rem;
  color: rgba(244, 235, 221, 0.76);
}

.detail-hero-rich .meta-list li {
  background: rgba(255, 246, 233, 0.1);
  border-color: rgba(255, 228, 197, 0.12);
  color: #f1e2cd;
}

.detail-hero-rich .meta-list li.is-strong {
  background: rgba(255, 228, 197, 0.16);
  border-color: rgba(255, 228, 197, 0.18);
  color: #fff4e0;
}

.detail-hero-rich .stats-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.detail-hero-rich .stat-card {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.92), rgba(239, 226, 211, 0.82));
}

.detail-hero-rich .hero-media img,
.detail-hero-rich .hero-media video {
  min-height: 100%;
  object-fit: cover;
  border-color: rgba(255, 228, 197, 0.12);
  box-shadow: 0 28px 54px rgba(17, 10, 6, 0.28);
}

.detail-preface,
.asset-link-grid,
.detail-note-grid {
  display: grid;
  gap: 1rem;
}

.detail-preface {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-panel-intro {
  margin: 0;
  color: var(--color-muted);
}

.detail-note-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-callout {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(171, 85, 49, 0.06);
  border: 1px solid rgba(171, 85, 49, 0.12);
}

.detail-callout p,
.detail-callout h3 {
  margin: 0;
}

.detail-callout h3 {
  margin-bottom: 0.45rem;
}

.detail-page .section-panel .section-heading {
  margin-bottom: 0.9rem;
}

.detail-page .section-panel h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.detail-page .section-panel .meta-list + .record-note {
  margin-top: 0.8rem;
}

.record-blockquote.is-muted {
  color: var(--color-muted);
  font-style: italic;
}

.source-action-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-page .link-list li {
  line-height: 1.55;
}

.home-page .home-canvas {
  gap: 1.65rem;
}

.home-hero {
  background-image:
    linear-gradient(135deg, rgba(34, 22, 16, 0.97) 0%, rgba(64, 40, 28, 0.94) 58%, rgba(101, 63, 40, 0.92) 100%),
    radial-gradient(circle at 82% 18%, rgba(231, 177, 106, 0.18), rgba(231, 177, 106, 0) 32%),
    url("/atyaf-al-ard-website/assets/images/generated/home-hero-atlas.svg");
  background-repeat: no-repeat;
  background-size: cover, auto, 42rem auto;
  background-position: center, 86% 12%, calc(100% + 8rem) center;
  border-color: rgba(255, 222, 185, 0.12);
  box-shadow: var(--shadow-hero);
}

.home-hero::before {
  background: linear-gradient(90deg, rgba(199, 157, 100, 0), rgba(199, 157, 100, 1), rgba(255, 237, 213, 0.82), rgba(199, 157, 100, 0));
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -3rem -8rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 157, 100, 0.28), rgba(199, 157, 100, 0));
  pointer-events: none;
}

.home-hero .hero-copy,
.home-hero .hero-media {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  max-width: 11.5ch;
  color: #fff8ef;
  font-size: clamp(3.6rem, 6vw, 5.8rem);
  text-wrap: balance;
}

html[lang="ar"] .home-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.9rem, 5.2vw, 4.8rem);
}

.home-hero p,
.home-hero .section-lead,
.home-hero .hero-note,
.home-hero .route-note {
  color: rgba(244, 235, 221, 0.83);
}

.home-hero .section-eyebrow {
  color: var(--color-highlight);
}

.hero-signal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-signal span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 229, 193, 0.12);
  color: #f7ead3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .hero-signal span {
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.hero-lead {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  max-width: 48rem;
}

.hero-media-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-video-shell {
  position: relative;
  padding: 1rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 246, 232, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 232, 204, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-still-shell {
  width: min(82%, 390px);
  margin-inline-start: auto;
  margin-top: -4.5rem;
  padding: 0.68rem;
  border-radius: 24px;
  background: rgba(255, 249, 240, 0.96);
  border: 1px solid rgba(255, 223, 185, 0.18);
  box-shadow: 0 22px 44px rgba(14, 10, 7, 0.24);
}

.hero-emblem-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-emblem-chip {
  min-height: 100%;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 247, 236, 0.08);
  border: 1px solid rgba(255, 230, 199, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-emblem-chip img {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.hero-emblem-chip strong {
  color: #fff6ea;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-emblem-chip span {
  color: rgba(244, 235, 221, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

html[lang="ar"] .hero-emblem-chip strong {
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
}

.hero-media-note {
  margin: 0;
  padding-inline: 0.25rem;
  color: rgba(244, 235, 221, 0.75);
  font-size: 0.94rem;
}

.manifesto-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.manifesto-card p:last-child,
.home-route-card p:last-child {
  margin-bottom: 0;
}

.home-route-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-route-card {
  min-height: 100%;
}

.home-route-card.has-mark,
.quick-link-card.has-mark {
  gap: 0.95rem;
  padding: 0 0 1.4rem;
}

.home-route-card.has-mark > :not(.route-icon),
.quick-link-card.has-mark > :not(.route-icon) {
  padding-inline: 1.4rem;
}

.route-meta {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[lang="ar"] .route-meta {
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.surface-dark {
  background: linear-gradient(135deg, rgba(36, 23, 17, 0.98) 0%, rgba(63, 41, 29, 0.94) 100%);
  border-color: rgba(255, 221, 179, 0.12);
  box-shadow: var(--shadow-hero);
}

.surface-dark::before {
  background: linear-gradient(90deg, rgba(199, 157, 100, 0), rgba(199, 157, 100, 1), rgba(171, 85, 49, 0.92), rgba(199, 157, 100, 0));
}

.surface-dark h2,
.surface-dark h3,
.surface-dark p,
.surface-dark .section-eyebrow,
.surface-dark .route-note {
  color: #fff7ee;
}

.surface-dark .section-lead,
.surface-dark .record-note,
.surface-dark .route-note,
.surface-dark .manifesto-card p,
.surface-dark .home-route-card p {
  color: rgba(244, 235, 221, 0.8);
}

.surface-dark .manifesto-card,
.surface-dark .home-route-card,
.surface-dark .content-card,
.surface-dark .quick-link-card {
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.08), rgba(255, 248, 241, 0.03));
  border-color: rgba(255, 226, 189, 0.12);
  box-shadow: 0 18px 34px rgba(9, 6, 4, 0.18);
}

.surface-dark .content-card h3,
.surface-dark .home-route-card h3,
.surface-dark .manifesto-card h3 {
  color: #fff6ea;
}

.surface-dark .meta-list li,
.surface-dark .pill-list li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 229, 193, 0.12);
  color: rgba(248, 236, 220, 0.88);
}

.surface-dark .meta-list li.is-strong,
.surface-dark .pill-list li.is-strong {
  background: rgba(199, 157, 100, 0.16);
  color: #fff2dc;
}

.surface-dark .btn.btn-secondary {
  background: rgba(255, 249, 241, 0.92);
}

.surface-dark .btn.btn-outline {
  color: #fff5e8;
  border-color: rgba(255, 230, 199, 0.2);
}

.figure-card,
.two-col-grid > li {
  list-style: none;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.68);
  border: 1px solid rgba(68, 47, 33, 0.08);
}

.asset-link-grid .quick-link-card,
.detail-page .figure-card {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 243, 0.82), rgba(244, 233, 220, 0.76)),
    url("/atyaf-al-ard-website/assets/images/evidence/evidence-panel.svg");
  background-repeat: no-repeat;
  background-size: cover, 15rem auto;
  background-position: center, calc(100% + 4.5rem) calc(100% + 3rem);
}

html[dir="rtl"] .asset-link-grid .quick-link-card,
html[dir="rtl"] .detail-page .figure-card {
  background-position: center, calc(0% - 4.5rem) calc(100% + 3rem);
}

.figure-card a,
.two-col-grid > li a {
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(255, 237, 213, 0.08);
  background: rgba(31, 21, 16, 0.96);
  color: rgba(244, 232, 214, 0.76);
  padding: 1.5rem 0 2.1rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #f7ead3;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .header-right,
html[dir="rtl"] .site-logo {
  flex-direction: row-reverse;
}

html[dir="rtl"] .site-nav {
  justify-content: flex-start;
}

html[dir="rtl"] .site-title {
  font-family: var(--font-body);
}

@media (max-width: 1080px) {
  .home-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .page-hero.with-media,
  .split-hero,
  .detail-body,
  .manifesto-grid,
  .detail-preface {
    grid-template-columns: 1fr;
  }

  .hero-still-shell {
    width: min(72%, 320px);
    margin-top: -2rem;
  }

  .hero-emblem-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 1.1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: 0.95rem;
  }

  .header-right,
  html[dir="rtl"] .header-right {
    flex-direction: column;
  }

  .site-nav {
    justify-content: center;
    gap: 0.25rem 0.8rem;
  }

  .site-nav a {
    font-size: 0.7rem;
  }

  .page-hero,
  .detail-hero,
  .section-panel,
  .browse-shell {
    border-radius: 24px;
    padding: 1.35rem;
  }

  .home-hero {
    padding: 1.45rem;
  }

  .detail-hero-rich {
    padding: 1.55rem;
  }

  .detail-hero-rich h1 {
    font-size: clamp(2.45rem, 10vw, 3.8rem);
  }

  html[lang="ar"] .detail-hero-rich h1 {
    font-size: clamp(2.2rem, 8.7vw, 3.4rem);
  }

  .home-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.8rem);
  }

  html[lang="ar"] .home-hero h1 {
    font-size: clamp(2.3rem, 9vw, 3.5rem);
  }

  .home-route-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-still-shell {
    width: 100%;
    margin-top: 0;
    margin-inline-start: 0;
  }

  .route-icon {
    margin: 1.2rem 1.2rem 0;
  }

  .home-route-card.has-mark > :not(.route-icon),
  .quick-link-card.has-mark > :not(.route-icon),
  .content-card.has-cover > :not(.card-cover) {
    padding-inline: 1.2rem;
  }

  .hero-emblem-row {
    grid-template-columns: 1fr;
  }

  .btn,
  button.btn {
    width: 100%;
  }

  .hero-actions,
  .card-actions,
  .browse-actions,
  .source-action-list {
    flex-direction: column;
  }

  .card-actions .btn,
  .hero-actions .btn,
  .browse-actions .btn {
    width: 100%;
  }
}
