:root {
  color-scheme: light;
  --ink: #102c36;
  --teal: #235f64;
  --gold: #b58b4e;
  --paper: #f6f4ef;
  --white: #fff;
  --muted: #52656b;
  --line: #dce2de;
  --soft: #eaf0ec;
  --gold-soft: #f2eadc;
  --font-body: "Noto Sans Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  --font-display: "Noto Naskh Arabic", "Amiri", Georgia, "Times New Roman", serif;
  --max-width: 1260px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --radius: 10px;
  --shadow: 0 12px 36px rgb(16 44 54 / 6%);
  --header-height: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.9 var(--font-body); -webkit-font-smoothing: antialiased; }
body[data-lang="ar"] { direction: rtl; }
body[data-lang="en"] { direction: ltr; --font-body: "Inter", "Segoe UI", Arial, sans-serif; --font-display: Georgia, "Times New Roman", serif; line-height: 1.75; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #e3cba7; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
a { color: var(--teal); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
button, input, select, textarea { color: inherit; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
:where(h1, h2, h3, h4, p, figure) { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.35; }
h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.45; }
h3 { font-size: 22px; line-height: 1.6; }
h4 { font-size: 18px; line-height: 1.6; }
p + p { margin-block-start: 16px; }
ul, ol { padding-inline-start: 24px; }
li + li { margin-block-start: 7px; }
small { font-size: 13px; }
strong { font-weight: 700; }
hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 32px; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--max-width)); margin-inline: auto; }
.section { padding-block: clamp(56px, 6.5vw, 92px); scroll-margin-block-start: calc(var(--header-height) + 24px); }
.section + .section { border-block-start: 1px solid var(--line); }
.section-heading { margin-block-end: 36px; max-width: 800px; }
.section-heading p { max-width: 680px; margin-block-start: 13px; color: var(--muted); font-size: 17px; }
.eyebrow { display: block; margin-block-end: 12px; color: var(--teal); font-size: 13px; font-weight: 700; line-height: 1.7; }
body[data-lang="en"] .eyebrow { letter-spacing: .13em; text-transform: uppercase; font-size: 11px; }
.section-link, .text-link { display: inline-block; color: var(--teal); font-weight: 700; font-size: 14px; text-decoration: underline; text-decoration-color: rgb(35 95 100 / 30%); }
.section-link { margin-block-start: 27px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-block-start: 18px; }
.chip, .badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 4px 10px; border: 1px solid #d6e1db; border-radius: 5px; background: var(--soft); color: var(--teal); font-size: 11px; font-weight: 600; line-height: 1.75; text-decoration: none; overflow-wrap: anywhere; }
.badge { background: var(--gold-soft); color: #6e5129; border-color: #e5d8c1; }
.art-credit { color: var(--muted); font-size: 11px; line-height: 1.7; margin-block-start: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; inset-block-start: 12px; inset-inline-start: 16px; padding: 10px 18px; background: var(--ink); color: var(--white); border-radius: 5px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.site-header { position: sticky; inset-block-start: 0; z-index: 40; background: rgb(246 244 239 / 96%); border-block-end: 1px solid rgb(16 44 54 / 10%); }
@supports (backdrop-filter: blur(14px)) { .site-header { backdrop-filter: blur(14px); background: rgb(246 244 239 / 92%); } }
.header-inner { width: min(calc(100% - var(--gutter) * 2), var(--max-width)); min-height: var(--header-height); margin-inline: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid var(--gold); border-radius: 7px; color: var(--teal); font: 700 29px/1 var(--font-display); background: rgb(255 255 255 / 50%); }
.brand-mark svg, .brand-mark img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { display: block; font: 700 24px/1.35 "Noto Naskh Arabic", "Amiri", Georgia, serif; }
.brand-en { display: block; margin-block-start: 4px; color: var(--muted); font: 500 9px/1.5 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 29px); flex: 1; }
.desktop-nav ul { display: flex; align-items: center; gap: inherit; list-style: none; padding: 0; margin: 0; }
.desktop-nav li + li { margin: 0; }
.desktop-nav a { position: relative; padding-block: 12px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.desktop-nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .18s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.desktop-nav a[aria-current="page"] { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; flex-shrink: 0; }
.language-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; background: rgb(255 255 255 / 65%); }
.language-switch:hover { border-color: var(--gold); }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); font-size: 13px; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle[aria-expanded="true"] { color: var(--white); border-color: var(--teal); background: var(--teal); }
#mobile-nav { width: min(calc(100% - var(--gutter) * 2), var(--max-width)); margin-inline: auto; padding-block: 8px 18px; border-block-start: 1px solid var(--line); }
#mobile-nav ul { list-style: none; margin: 0; padding: 0; }
#mobile-nav li + li { margin: 0; }
#mobile-nav a { display: block; padding: 12px 5px; color: var(--ink); text-decoration: none; font-size: 14px; border-block-end: 1px solid var(--line); }
#mobile-nav a[aria-current="page"] { color: var(--teal); font-weight: 700; }

/* Opening image and editorial introduction */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(600px, 76svh, 860px); overflow: hidden; background: var(--ink); color: var(--white); }
.hero-art, .hero-wash { position: absolute; inset: 0; pointer-events: none; }
.hero-art { z-index: -3; overflow: hidden; }
.hero-art picture { width: 100%; height: 100%; }
.hero-art img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.hero-wash { z-index: -2; background: linear-gradient(270deg, rgb(10 35 44 / 95%) 0%, rgb(12 39 48 / 82%) 36%, rgb(12 39 48 / 34%) 72%, rgb(12 39 48 / 23%) 100%), linear-gradient(0deg, rgb(10 35 44 / 52%), transparent 45%); }
body[data-lang="en"] .hero-wash { background: linear-gradient(90deg, rgb(10 35 44 / 95%) 0%, rgb(12 39 48 / 82%) 36%, rgb(12 39 48 / 34%) 72%, rgb(12 39 48 / 23%) 100%), linear-gradient(0deg, rgb(10 35 44 / 52%), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(calc(100% - var(--gutter) * 2), var(--max-width)); margin-inline: auto; padding-block: 92px 112px; }
.hero-content .eyebrow { color: #e2c698; margin-block-end: 20px; }
.hero h1 { max-width: 15ch; font-size: clamp(48px, 6.6vw, 90px); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
body[data-lang="en"] .hero h1 { max-width: 16ch; line-height: 1.13; letter-spacing: -.035em; }
.hero-lede { max-width: 580px; margin-block-start: 26px; color: #e0e6e3; font-size: clamp(16px, 1.65vw, 20px); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 23px; border: 1px solid transparent; border-radius: 5px; color: var(--ink); background: var(--white); font-size: 13px; font-weight: 700; line-height: 1.7; text-decoration: none; text-align: center; transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.button.primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.button.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button.outline { background: transparent; border-color: #aebdb9; color: var(--ink); }
.button:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(16 44 54 / 12%); }
.button.primary:hover { background: #194c50; }
.button.outline:hover { border-color: var(--teal); background: rgb(35 95 100 / 5%); }
.hero .button.primary { background: #c8a26a; border-color: #c8a26a; color: var(--ink); }
.hero .button.primary:hover { background: #d6b481; }
.hero .button.outline { color: var(--white); border-color: rgb(255 255 255 / 45%); }
.hero .button.outline:hover { background: rgb(255 255 255 / 9%); border-color: var(--white); }
.hero :where(a, button):focus-visible { outline-color: #e2c698; }
.hero-caption { position: absolute; inset-inline-end: var(--gutter); inset-block-end: 24px; max-width: 360px; margin: 0; padding-inline-start: 13px; border-inline-start: 1px solid #c6a370; color: #e0e6e3; font-size: 11px; line-height: 1.8; }
.hero-caption a { color: inherit; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.intro-copy h2 { max-width: 660px; margin-block-end: 22px; }
.intro-copy p { max-width: 720px; color: var(--muted); font-size: 17px; }
.editor-note { padding: 27px 29px; border: 1px solid #e0d7c7; border-inline-start: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(145deg, #f1ebdf, #faf8f3); color: var(--muted); font-size: 13px; line-height: 1.95; }
body[data-lang="en"] .editor-note { border-radius: var(--radius) 0 0 var(--radius); }
.editor-note h3, .editor-note h4, .editor-note strong { color: var(--ink); }
.editor-note h3, .editor-note h4 { margin-block-end: 10px; font-size: 17px; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-block: 44px 0; border-block: 1px solid var(--line); }
.stat { padding: 27px 23px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(27px, 3.3vw, 43px); font-weight: 600; line-height: 1.4; color: var(--teal); }
.stat span, .stat p { display: block; margin-block-start: 6px; font-size: 12px; color: var(--muted); }

/* Collections */
.feature-grid, .people-grid, .source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.feature-card { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 30px; border: 1px solid var(--line); border-block-start: 3px solid var(--gold); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { border-color: #b7c9c1; transform: translateY(-4px); box-shadow: 0 18px 40px rgb(16 44 54 / 9%); }
.feature-card h3 { margin-block-end: 13px; }
.feature-card p { margin-block-end: 20px; color: var(--muted); font-size: 14px; }
.feature-card .text-link, .feature-card .section-link { margin-block-start: auto; }
.feature-card > svg { width: 36px; height: 36px; margin-block-end: 22px; color: var(--teal); }
.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 86px); align-items: center; }
.split-media { position: relative; min-width: 0; }
.split-media > img, .split-media picture img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 9px; box-shadow: 0 18px 45px rgb(16 44 54 / 12%); }
.split-media figcaption { margin-block-start: 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.split-copy h2 { margin-block-end: 22px; }
.split-copy p { color: var(--muted); }
.split-copy .button { margin-block-start: 25px; }
.person-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 5px 22px rgb(16 44 54 / 3%); transition: border-color .2s ease, box-shadow .2s ease; overflow-wrap: anywhere; }
.person-card:hover { border-color: #b5c8be; box-shadow: var(--shadow); }
.person-monogram { display: grid; place-items: center; width: 60px; height: 60px; margin-block-end: 20px; border: 1px solid #d1ded5; border-radius: 50%; background: var(--soft); color: var(--teal); font: 600 25px/1.2 var(--font-display); }
.person-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-block-end: 20px; }
.person-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--muted); font-size: 11px; margin-block-end: 11px; }
.person-name { color: var(--ink); font-size: 21px; line-height: 1.55; margin-block-end: 10px; }
.person-name a { color: inherit; text-decoration: none; }
.person-name a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.person-summary { color: var(--muted); font-size: 13px; line-height: 1.9; }
.person-card .inline-links, .person-card > .text-link { margin-block-start: 21px; }
.person-card > .badge { margin-block-start: 13px; }
.person-card details { margin-block-start: 17px; padding-block-start: 14px; border-block-start: 1px solid var(--line); font-size: 13px; }
.person-card details summary { cursor: pointer; color: var(--teal); font-weight: 700; }
.person-card details p, .person-card details ul { margin-block-start: 12px; }
.place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.place-card { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.place-card > img, .place-card figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; margin-block-end: 22px; }
.place-card h3 { margin-block-end: 11px; }
.place-card p { color: var(--muted); font-size: 14px; }
.place-card .badge { margin-block-end: 12px; }
.source-card { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow-wrap: anywhere; }
.source-card h3 { font-size: 18px; margin-block: 13px 10px; }
.source-card p { color: var(--muted); font-size: 13px; }
.source-card .text-link { margin-block-start: 18px; }

/* Chronology and evidence */
.timeline { position: relative; max-width: 970px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; inset-block: 16px; inset-inline-start: 153px; width: 1px; background: #cbd7d0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 58px; padding-block: 0 35px; }
.timeline-item:last-child { padding-block-end: 0; }
.timeline-item::before { content: ""; position: absolute; width: 11px; height: 11px; inset-inline-start: 148px; inset-block-start: 12px; border: 2px solid var(--gold); border-radius: 50%; background: var(--paper); }
.timeline-date { padding-block-start: 3px; color: var(--teal); font-size: 14px; font-weight: 700; }
.timeline-body { padding-block-end: 25px; border-block-end: 1px solid var(--line); }
.timeline-item:last-child .timeline-body { border: 0; padding-block-end: 0; }
.timeline-body h3 { font-size: 20px; margin-block-end: 9px; }
.timeline-body p { color: var(--muted); font-size: 14px; }
.timeline-body .badge { margin-block-start: 13px; }
.faq-list { max-width: 940px; margin-inline: auto; border-block-start: 1px solid var(--line); }
.faq-list details { padding-block: 21px; border-block-end: 1px solid var(--line); }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 700; font-size: 16px; padding-inline-end: 12px; }
.faq-list summary::marker { color: var(--gold); }
.faq-list details[open] summary { color: var(--teal); }
.faq-list details p, .faq-list details ul, .faq-list details ol { color: var(--muted); font-size: 14px; margin-block-start: 17px; }
.evidence-note { padding: 22px 25px; border-inline-start: 3px solid var(--gold); background: var(--gold-soft); color: #5b5142; font-size: 14px; line-height: 1.9; margin-block: 26px; }
.evidence-note strong, .evidence-note h3 { color: var(--ink); }
.evidence-list { display: grid; gap: 15px; padding: 0; list-style: none; }
.evidence-item { padding: 23px 25px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.evidence-item + .evidence-item { margin: 0; }
.evidence-item h3, .evidence-item h4 { margin-block-end: 10px; }
.evidence-item p { font-size: 14px; color: var(--muted); }
.evidence-item .inline-links { margin-block-start: 12px; }

/* Interior pages */
.page-hero { padding-block: 34px 62px; border-block-end: 1px solid var(--line); background: linear-gradient(135deg, #eef2ec 0%, var(--paper) 70%); }
.page-hero h1 { max-width: 950px; font-size: clamp(37px, 5vw, 65px); }
.page-hero .eyebrow { margin-block-start: 25px; }
.page-intro { max-width: 800px; margin-block-start: 20px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.breadcrumbs li + li { margin: 0; }
.breadcrumbs a { color: var(--muted); text-decoration-color: #b5c3bc; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 72px); align-items: start; }
.article-body { min-width: 0; }
.article-aside { position: sticky; inset-block-start: calc(var(--header-height) + 28px); min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 13px; }
.article-aside h2, .article-aside h3 { font-family: var(--font-body); font-size: 17px; margin-block-end: 13px; }
.article-aside p { color: var(--muted); }
.article-aside ul { padding-inline-start: 20px; }
.article-aside .button { width: 100%; margin-block-start: 12px; }
.prose { max-width: 76ch; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(27px, 2.8vw, 36px); margin-block: 38px 17px; }
.prose h3 { margin-block: 27px 13px; font-size: 22px; }
.prose > :first-child { margin-block-start: 0; }
.prose p, .prose li { color: #3b5058; line-height: 2; }
.prose blockquote { margin: 28px 0; padding: 20px 25px; border-inline-start: 3px solid var(--gold); background: var(--gold-soft); }
.prose figure { margin-block: 30px; }
.prose figure img { width: 100%; height: auto; border-radius: 7px; }
.prose figcaption { margin-block-start: 10px; color: var(--muted); font-size: 12px; }
.prose .evidence-note p, .prose .evidence-note li { font-size: 14px; }
.research-table { max-width: 100%; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--white); margin-block: 25px; font-size: 13px; }
table.research-table { display: block; border-collapse: collapse; }
.research-table table { width: 100%; border-collapse: collapse; }
.research-table th, .research-table td { min-width: 145px; padding: 15px 18px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.research-table th { background: var(--soft); color: var(--ink); font-weight: 700; }
.research-table td { color: var(--muted); }
.research-table tbody tr:last-child td { border-block-end: 0; }
.research-table td a { overflow-wrap: anywhere; }
.reference-list { padding: 0; margin: 0; list-style: none; }
.reference { padding-block: 25px; border-block-end: 1px solid var(--line); scroll-margin-block-start: calc(var(--header-height) + 25px); overflow-wrap: anywhere; }
.reference:first-child { padding-block-start: 0; }
.reference h3 { font-size: 19px; margin-block: 10px 9px; }
.reference p { max-width: 950px; color: var(--muted); font-size: 14px; }
.reference:target { background: var(--gold-soft); box-shadow: 14px 0 0 var(--gold-soft), -14px 0 0 var(--gold-soft); }

/* Local collection controls */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px; margin-block-end: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.search-input { flex: 1 1 260px; min-width: 0; width: 100%; min-height: 47px; padding: 11px 15px; border: 1px solid #cbd7d1; border-radius: 5px; background: var(--paper); font-size: 14px; }
.search-input::placeholder { color: #687a7e; opacity: 1; }
.filter-bar label { font-size: 13px; font-weight: 700; }
.filter-bar [data-filter] { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--muted); font-size: 12px; line-height: 1.6; text-decoration: none; cursor: pointer; }
.filter-bar [data-filter]:hover { border-color: var(--teal); color: var(--teal); }
.filter-bar [data-filter][aria-pressed="true"] { color: var(--white); background: var(--teal); border-color: var(--teal); }
#search-count { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 12px; }
.filter-empty { padding: 30px; border: 1px dashed #b9c9c0; border-radius: 7px; text-align: center; color: var(--muted); background: var(--white); }
[data-copy-link][data-copy-state="copied"] { border-color: var(--teal); box-shadow: 0 0 0 2px rgb(35 95 100 / 12%); }

/* Independent genealogical columns; connections exist only where supplied in HTML. */
.tree-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tree-column { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tree-column > h2, .tree-column > h3 { font-family: var(--font-body); font-size: 19px; padding-block-end: 17px; margin-block-end: 22px; border-block-end: 1px solid var(--line); }
.tree-column > p { color: var(--muted); font-size: 13px; margin-block-start: 16px; }
.tree-person { position: relative; padding: 16px 18px; border: 1px solid #cfded5; border-radius: 7px; background: var(--soft); text-align: center; font-size: 14px; overflow-wrap: anywhere; }
.tree-person strong { display: block; }
.tree-person small, .tree-person p { color: var(--muted); font-size: 12px; margin-block-start: 5px; }
.tree-person a { font-size: 12px; }
.tree-connector { position: relative; display: grid; place-items: center; min-height: 34px; color: var(--muted); font-size: 10px; }
.tree-connector::before { content: ""; position: absolute; z-index: 0; inset-block: 0; inset-inline-start: 50%; border-inline-start: 1px solid #b4c7bc; }
.tree-connector > * { position: relative; background: var(--white); padding-inline: 7px; }
.tree-gap { margin-block: 18px; padding: 15px; border: 1px dashed #bea47c; border-radius: 6px; background: #fbf7ef; color: #6e5c40; font-size: 13px; text-align: center; }

/* Footer */
.site-footer { padding-block: 60px 24px; background: var(--ink); color: #d5dfdc; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(0, 1fr)); gap: clamp(25px, 5vw, 80px); }
.footer-brand .brand { color: var(--white); margin-block-end: 20px; }
.footer-brand .brand-mark { color: #dbc29b; background: rgb(255 255 255 / 3%); border-color: #887249; }
.footer-brand .brand-en { color: #aabfbc; }
.footer-brand > p { max-width: 390px; color: #b8c8c5; font-size: 13px; }
.footer-links h2, .footer-links h3, .footer-links h4 { margin-block-end: 19px; color: var(--white); font-family: var(--font-body); font-size: 14px; }
.footer-links ul { padding: 0; margin: 0; list-style: none; }
.footer-links li + li { margin-block-start: 10px; }
.footer-links a { display: inline-block; color: #c7d5d1; font-size: 12px; text-decoration: none; padding-block: 3px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block-start: 22px; margin-block-start: 43px; border-block-start: 1px solid rgb(255 255 255 / 13%); color: #a9bdb9; font-size: 11px; }
.footer-bottom p + p { margin: 0; }
.footer-bottom a { color: inherit; }
.site-footer :where(a, button):focus-visible { outline-color: #d5b37e; }

@media (min-width: 1025px) {
  #mobile-nav { display: none; }
}
@media (max-width: 1120px) {
  .header-inner { gap: 20px; }
  .desktop-nav { gap: 17px; }
  .desktop-nav a { font-size: 12px; }
  .article-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .person-card, .feature-card, .source-card { padding: 24px; }
}
@media (max-width: 1024px) {
  :root { --header-height: 78px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
  .feature-grid, .people-grid, .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tree-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-grid { grid-template-columns: minmax(0, 1.3fr) minmax(230px, .85fr); gap: 30px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .footer-grid { gap: 35px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .hero { min-height: 660px; }
  .hero-content { padding-block: 72px 110px; }
  .hero h1 { font-size: clamp(43px, 8.5vw, 65px); max-width: 14ch; }
  .hero-lede { max-width: 500px; font-size: 16px; }
  .hero-wash, body[data-lang="en"] .hero-wash { background: linear-gradient(0deg, rgb(10 35 44 / 92%) 0%, rgb(12 39 48 / 78%) 55%, rgb(12 39 48 / 55%) 100%); }
  .hero-caption { max-width: min(360px, calc(100% - var(--gutter) * 2)); }
  .intro-grid, .split-section { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split-media > img, .split-media picture img { aspect-ratio: 16 / 10; }
  .split-copy h2 { max-width: 580px; }
  .section-heading { margin-block-end: 27px; }
  .section-heading p, .intro-copy p { font-size: 15px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 15px; }
  .stat:nth-child(odd) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-block-start: 1px solid var(--line); }
  .place-grid { gap: 20px; }
  .place-card { padding: 22px; }
  .timeline::before { inset-inline-start: 7px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-inline-start: 34px; padding-block-end: 28px; }
  .timeline-item::before { inset-inline-start: 2px; inset-block-start: 11px; }
  .timeline-body { padding-block-end: 23px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { max-width: 560px; }
  .page-hero { padding-block: 27px 42px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; --header-height: 72px; }
  body { font-size: 15px; }
  .header-inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 43px; font-size: 25px; }
  .brand-name { font-size: 21px; }
  .brand-en { font-size: 7px; letter-spacing: .12em; }
  .header-actions { gap: 7px; }
  .language-switch { min-width: 40px; padding-inline: 8px; }
  .menu-toggle { padding-inline: 10px; }
  .hero { min-height: 650px; }
  .hero-content { padding-block: 60px 105px; }
  .hero h1 { font-size: clamp(41px, 10vw, 55px); }
  .hero-lede { margin-block-start: 20px; font-size: 15px; }
  .hero-actions { gap: 10px; margin-block-start: 26px; }
  .hero-actions .button { padding-inline: 18px; font-size: 12px; }
  .hero-caption { font-size: 10px; inset-block-end: 20px; }
  .section { padding-block: 45px; }
  .feature-grid, .people-grid, .place-grid, .source-grid, .tree-columns { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .feature-card, .person-card, .place-card, .source-card, .tree-column { padding: 24px; }
  .editor-note { padding: 22px; }
  .filter-bar { padding: 16px; gap: 9px; }
  .search-input { flex-basis: 100%; }
  .filter-bar [data-filter] { flex: 1 1 auto; }
  .faq-list summary { font-size: 15px; }
  .evidence-note, .evidence-item { padding: 20px; }
  .article-aside { padding: 22px; }
  .footer-grid { gap: 28px 20px; }
  .site-footer { padding-block: 45px 22px; }
  .footer-bottom { margin-block-start: 32px; align-items: start; }
  .research-table th, .research-table td { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .button:hover, .feature-card:hover { transform: none; }
}
@media print {
  :root { --gutter: 0px; --header-height: 0px; }
  @page { margin: 17mm; }
  body, body[data-lang="en"] { background: white; color: #111; font-size: 10.5pt; line-height: 1.7; }
  .container, .header-inner, .hero-content { width: 100%; max-width: none; }
  .site-header { position: static; background: white; backdrop-filter: none; border-color: #bbb; }
  .header-inner { min-height: 60px; }
  .desktop-nav, .header-actions, #mobile-nav, .skip-link, .hero-actions, .filter-bar, .filter-empty, button, [data-copy-link], [data-print] { display: none !important; }
  .hero { min-height: 0; background: white; color: #111; display: block; }
  .hero-art, .hero-wash { display: none; }
  .hero-content { padding-block: 24px; }
  .hero h1, .page-hero h1 { font-size: 32pt; max-width: none; }
  .hero-content .eyebrow, .hero-lede, .hero-caption { color: #444; }
  .hero-caption { position: static; max-width: none; margin-block: 0 15px; padding-inline-start: 9px; }
  .section { padding-block: 25px; }
  .section-heading { margin-block-end: 20px; }
  h2 { font-size: 23pt; }
  h3 { font-size: 15pt; }
  h1, h2, h3, h4, summary { break-after: avoid; }
  .page-hero { background: white; padding-block: 20px 25px; }
  .intro-grid, .article-grid, .split-section { display: block; }
  .editor-note, .article-aside, .split-copy { margin-block-start: 20px; }
  .article-aside { position: static; }
  .feature-grid, .people-grid, .place-grid, .source-grid { display: block; }
  .feature-card, .person-card, .place-card, .source-card, .evidence-item, .reference { margin-block-end: 15px; padding: 18px; break-inside: avoid; box-shadow: none; }
  .tree-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tree-column { padding: 13px; }
  .card-collection .searchable-card[hidden] { display: block !important; }
  .split-media > img, .split-media picture img { max-height: 230px; object-fit: cover; box-shadow: none; }
  .badge, .chip { background: #f5f5f5; color: #333; border-color: #bbb; }
  .research-table, table.research-table { display: table; overflow: visible; font-size: 9pt; }
  .research-table th, .research-table td { min-width: 0; padding: 8px; }
  .site-footer { background: white; color: #333; padding-block: 20px 0; border-block-start: 1px solid #aaa; }
  .footer-grid { display: block; }
  .footer-links { display: none; }
  .footer-brand .brand, .footer-brand > p, .footer-bottom, .footer-brand .brand-en { color: #444; }
  .footer-bottom { margin-block-start: 18px; border-color: #ccc; }
  .timeline-item { break-inside: avoid; }
  a { color: #222; }
}

/* Published editorial content and locally prepared contributions. */
.brand-logo img { width: 220px; height: auto; max-height: 75px; object-fit: contain; }
.footer-wordmark img { width: 64px; height: 64px; object-fit: contain; }
.hero-tagline { margin-block-start: 18px; color: #e2c698; font: 500 clamp(25px, 3vw, 39px)/1.7 var(--font-display); }
.feature-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid.four-up .feature-card { padding: 25px; }
.profile-qualifier { padding-block-start: 15px; margin-block-start: 17px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.85; }
.profile-qualifier strong { color: var(--ink); }
.content-heading { margin-block: 31px 23px; font-size: 32px; }
.article-body > .editor-note { margin-block-start: 28px; }
.evidence-limit { margin-block-start: 17px; }
.prose-section { scroll-margin-block-start: calc(var(--header-height) + 24px); }
.source-links { margin-block-start: 12px; }
.reference h2 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.65; margin-block: 12px; }
.reference h2[lang="ar"] { font-family: "Noto Naskh Arabic", serif; }
.source-author { margin-block-end: 13px; }
.source-details, .place-detail { margin-block: 17px; font-size: 14px; }
.source-details summary, .place-detail summary { color: var(--teal); cursor: pointer; font-weight: 700; }
.source-details p, .place-detail p { margin-block-start: 13px; }
.name-comparison { padding: 24px 0; border-block-end: 1px solid var(--line); }
.name-comparison > summary { cursor: pointer; font-size: 20px; font-weight: 700; color: var(--ink); }
.name-comparison .chip { margin-inline-start: 12px; vertical-align: middle; }
.name-comparison > .prose { margin-block-start: 22px; }
.tree-person > summary { cursor: pointer; font-weight: 700; }
.tree-person .source-links { justify-content: center; }
.contribution-form { display: grid; gap: 23px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.form-field { display: grid; gap: 9px; }
.form-field label { font-size: 15px; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #bfcec5; border-radius: 5px; background: #fcfbf8; color: var(--ink); font-size: 16px; line-height: 1.75; }
.form-field textarea { resize: vertical; min-height: 190px; }
.contribution-form .button { justify-self: start; }
.form-status { color: var(--teal); font-size: 14px; }
.form-status:empty { display: none; }
.desktop-nav a, .button, .language-switch, .menu-toggle, .filter-bar [data-filter] { font-size: 14px; }
.eyebrow, body[data-lang="en"] .eyebrow { font-size: 14px; }
.chip, .badge, .person-meta, .brand-en, .art-credit, .hero-caption, .footer-bottom, #search-count, .stat span, .stat p, .breadcrumbs, .tree-connector, .tree-person small, .tree-person p, .tree-person a { font-size: 13px; }
.person-summary, .source-card p, .person-card details, .footer-brand > p, .footer-links a, .editor-note, .article-aside { font-size: 14px; }
.brand-en { font-size: 10px; }
.hero-caption { max-width: 440px; }
.hero .hero-art img { object-position: center; }
body[data-lang="en"] .hero .hero-art img { transform: scaleX(-1); }
@media (max-width: 1024px) {
  .feature-grid.four-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .brand-logo img { width: 160px; max-height: 58px; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .feature-grid.four-up { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .button { font-size: 14px; }
  .hero-caption { font-size: 12px; }
  .hero-content { padding-block-end: 130px; }
  .contribution-form { padding: 21px; }
  .name-comparison .chip { margin-block-start: 8px; }
}
@media print {
  .hero-tagline { color: #444; }
  .contribution-form { display: none; }
  .brand-logo img { width: 190px; }
  .footer-wordmark img { display: none; }
  .feature-grid.four-up { display: block; }
}

/* Image-led place stories and richer editorial contrast. */
:root { --teal: #1c5c63; --gold: #b58b4e; --soft: #e6efea; --line: #d4dfd7; --shadow: 0 15px 40px rgb(16 44 54 / 8%); }
.hero h1 { color: #f6e0b2; }
.hero-wash { background: linear-gradient(270deg, rgb(10 35 44 / 93%) 0%, rgb(12 39 48 / 74%) 37%, rgb(12 39 48 / 23%) 73%, rgb(12 39 48 / 12%) 100%), linear-gradient(0deg, rgb(10 35 44 / 53%), transparent 48%); }
body[data-lang="en"] .hero-wash { background: linear-gradient(90deg, rgb(10 35 44 / 93%) 0%, rgb(12 39 48 / 74%) 37%, rgb(12 39 48 / 23%) 73%, rgb(12 39 48 / 12%) 100%), linear-gradient(0deg, rgb(10 35 44 / 53%), transparent 48%); }
.feature-card { border-block-start-width: 4px; }
.feature-card:nth-child(even) { background: #edf3ee; }
.feature-card h3, .person-name { color: #123f48; }
.person-monogram { color: #f3d7a7; background: var(--teal); border-color: var(--teal); }
.editor-note { background: linear-gradient(140deg, #f1e5cf, #fbf7ef); border-color: #d5be98; }
.stat-strip { background: rgb(255 255 255 / 60%); }
.stat strong { color: #8c602a; }
.page-hero--visual { position: relative; isolation: isolate; overflow: hidden; padding: 0; color: var(--white); background: var(--ink); border-block-end: 4px solid var(--gold); }
.page-hero-art, .page-hero-shade { position: absolute; inset: 0; z-index: -2; }
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero-shade { z-index: -1; background: linear-gradient(270deg, rgb(11 36 46 / 96%) 0%, rgb(13 43 53 / 86%) 42%, rgb(13 43 53 / 32%) 77%, rgb(13 43 53 / 18%) 100%); }
body[data-lang="en"] .page-hero-shade { background: linear-gradient(90deg, rgb(11 36 46 / 96%) 0%, rgb(13 43 53 / 86%) 42%, rgb(13 43 53 / 32%) 77%, rgb(13 43 53 / 18%) 100%); }
.page-hero-inner { padding-block: 32px 44px; min-height: 400px; }
.page-hero--visual .breadcrumbs { margin-block-end: 24px; }
.page-hero--visual .breadcrumbs, .page-hero--visual .breadcrumbs a, .page-hero--visual .breadcrumbs [aria-current="page"] { color: #e0e8e2; }
.page-hero--visual .eyebrow { color: #e2c18c; margin-block-start: 0; }
.page-hero--visual h1 { max-width: 20ch; color: #f8e5bf; }
.page-hero--visual .page-intro { max-width: 720px; color: #e3e9e5; line-height: 1.95; }
.page-art-caption { max-width: 700px; margin-block-start: 24px; padding-inline-start: 13px; border-inline-start: 2px solid #c5a06a; color: #d5dfd8; font-size: 12px; line-height: 1.9; }
.page-hero--visual :where(a, button):focus-visible { outline-color: #f0d4a3; }
.page-hero--places .page-hero-inner { min-height: 475px; padding-block-end: 46px; }
.page-hero--places .page-hero-art img { object-position: center 58%; }
.page-hero--places .page-intro { max-width: 660px; }
.page-hero--places h1 { max-width: 18ch; }
.places-navigation { padding-block: 28px 32px; color: var(--white); background: #164950; }
.places-navigation > .container > p { margin-block-end: 15px; color: #dce8e0; font-size: 14px; }
.places-jumpnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.places-jumpnav a { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px; border: 1px solid #6b8d88; border-radius: 7px; background: rgb(255 255 255 / 5%); color: var(--white); text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.places-jumpnav a:hover { background: rgb(255 255 255 / 12%); border-color: #d8bc8c; }
.places-jumpnav a:focus-visible { outline-color: #f0d4a3; }
.places-jumpnav a span { font-size: 12px; color: #e6c99a; }
.places-jumpnav a strong { font-size: 16px; font-weight: 600; line-height: 1.8; }
.place-stories-section { padding-block: 60px 80px; background: linear-gradient(180deg, #f7f1e5 0%, var(--paper) 26%, #edf3ee 100%); }
.place-story { padding: clamp(23px, 3.5vw, 44px); border: 1px solid #d6d9c8; border-radius: 15px; background: var(--white); box-shadow: 0 20px 55px rgb(16 44 54 / 7%); scroll-margin-block-start: calc(var(--header-height) + 22px); }
.place-story + .place-story { margin-block-start: 38px; }
.place-story:target { border-color: var(--gold); }
.place-story-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(25px, 3.5vw, 48px); align-items: start; }
.place-story-media { min-width: 0; overflow: hidden; border: 1px solid #d7e1da; border-radius: 9px; background: #e8efea; }
.place-story-media > img { width: 100%; height: auto; max-height: 680px; background: #edf2ed; }
.place-story-media figcaption, .place-preview-media figcaption { display: grid; gap: 6px; padding: 13px 16px; background: #f2f5ef; color: #41594f; font-size: 12px; line-height: 1.85; }
.place-image-credit { display: block; color: #334c42; }
.place-image-credit a { color: #174c52; text-decoration-color: #9aafa0; }
.place-story-intro { min-width: 0; }
.place-story-intro .eyebrow { margin-block-end: 8px; color: #8c5e28; }
.place-location { color: var(--teal); font-size: 14px; font-weight: 600; margin-block-end: 13px; }
.place-story-intro h2 { font-size: clamp(31px, 3.1vw, 43px); line-height: 1.55; margin-block-end: 17px; color: var(--ink); }
.place-story-summary { color: #3d565d; font-size: 16px; line-height: 1.95; }
.place-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 24px 0 0; }
.place-fact { padding: 14px 15px; border-block-start: 3px solid var(--gold); border-radius: 4px; background: #edf3ef; }
.place-fact dt { color: #4b665e; font-size: 12px; margin-block-end: 5px; }
.place-fact dd { margin: 0; color: #173c45; font-size: 16px; font-weight: 600; line-height: 1.85; overflow-wrap: anywhere; }
.place-story-reading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 32px; margin-block-start: 32px; padding-block-start: 30px; border-block-start: 1px solid var(--line); }
.place-story-paragraph { color: #3f565e; font-size: 16px; line-height: 2; }
.place-story-paragraph:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 100ch; }
.place-relation { display: grid; grid-template-columns: minmax(150px, .5fr) minmax(0, 1.5fr); gap: 9px 25px; margin-block-start: 30px; padding: 23px 26px; border-inline-start: 4px solid var(--gold); border-radius: 5px; background: #e7f0e9; }
.place-relation h3 { grid-row: span 2; font-size: 18px; color: #194a4c; }
.place-relation > p { color: #304d48; font-size: 16px; line-height: 1.95; }
.place-relation .source-links { grid-column: 2; margin: 0; }
.place-story-source-note { margin-block-start: 20px; font-size: 14px; color: var(--muted); }
.place-story-source-note summary { cursor: pointer; font-weight: 700; color: var(--teal); }
.place-story-source-note > p { margin-block-start: 15px; }
.place-story-source-note > .text-link { margin-block-start: 13px; }
.place-story--portrait .place-story-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.place-story--portrait .place-story-media > img { height: 640px; max-height: 65vw; }
.place-image-pending { display: grid; place-items: center; min-height: 240px; padding: 24px; color: var(--muted); background: var(--soft); font-size: 14px; }
.section--place-leads { background: #edf2ec; }
.section--place-leads .place-card { border-block-start: 3px solid #7eaa9b; box-shadow: 0 10px 26px rgb(16 44 54 / 4%); }
.section--places-feature { color: var(--white); background: radial-gradient(ellipse at 5% 0%, #286267 0%, transparent 50%), linear-gradient(135deg, #102c36, #153e46); border-block: 1px solid #3e676a; }
.section--places-feature .section-heading .eyebrow { color: #e6c18d; }
.section--places-feature .section-heading h2 { color: #f6e3bf; }
.section--places-feature .section-heading p { color: #d7e3dd; }
.place-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; align-items: start; }
.place-preview-card { min-width: 0; overflow: hidden; color: var(--ink); border: 1px solid #b3c2b8; border-radius: 12px; background: var(--white); box-shadow: 0 15px 35px rgb(0 0 0 / 15%); }
.place-preview-media { margin: 0; }
.place-preview-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.place-preview-media figcaption { font-size: 12px; padding: 11px 17px; }
.place-preview-copy { padding: 24px; }
.place-preview-copy .eyebrow { color: var(--teal); font-size: 13px; }
.place-preview-copy h3 { font: 600 28px/1.55 var(--font-display); margin-block-end: 13px; }
.place-preview-copy h3 a { color: inherit; text-decoration: none; }
.place-preview-copy h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.place-preview-copy > p:not(.eyebrow) { color: #4a6267; font-size: 16px; line-height: 1.95; }
.place-preview-copy > .text-link { margin-block-start: 20px; }
.source-kind { display: inline-block; color: var(--muted); font-size: 13px; margin-inline-start: 12px; }
@media (max-width: 1024px) {
  .place-preview-grid { gap: 16px; }
  .place-preview-copy { padding: 20px; }
  .place-story-layout, .place-story--portrait .place-story-layout { gap: 25px; }
  .place-facts { grid-template-columns: minmax(0, 1fr); }
  .place-story-intro h2 { font-size: 31px; }
}
@media (max-width: 850px) {
  .page-hero-inner { min-height: 0; padding-block: 27px 35px; }
  .page-hero--places .page-hero-inner { min-height: 0; padding-block-end: 35px; }
  .page-hero-shade, body[data-lang="en"] .page-hero-shade { background: linear-gradient(0deg, rgb(10 35 44 / 95%) 0%, rgb(13 43 53 / 82%) 55%, rgb(13 43 53 / 53%) 100%); }
  .page-hero--visual .page-intro { max-width: 100%; font-size: 16px; }
  .place-story-layout, .place-story--portrait .place-story-layout { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .place-story-media > img { max-height: 560px; }
  .place-story--portrait .place-story-media > img { height: 560px; max-height: none; }
  .place-story-intro h2 { font-size: 36px; }
  .place-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place-story-reading { gap: 24px; }
  .place-preview-grid { grid-template-columns: minmax(0, 1fr); max-width: 650px; margin-inline: auto; gap: 25px; }
  .place-preview-media img { aspect-ratio: 16 / 9; }
  .place-preview-copy { padding: 26px; }
}
@media (max-width: 600px) {
  .hero-wash, body[data-lang="en"] .hero-wash { background: linear-gradient(0deg, rgb(10 35 44 / 94%), rgb(12 39 48 / 70%) 57%, rgb(12 39 48 / 50%)); }
  .page-hero--visual h1 { max-width: none; font-size: 39px; line-height: 1.5; }
  .page-hero--visual .breadcrumbs { font-size: 12px; margin-block-end: 20px; }
  .page-art-caption { font-size: 12px; }
  .places-navigation { padding-block: 22px 25px; }
  .places-jumpnav { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .places-jumpnav a { padding: 12px 15px; }
  .places-jumpnav a strong { font-size: 15px; }
  .place-stories-section { padding-block: 30px 45px; }
  .place-story { padding: 17px; border-radius: 11px; }
  .place-story + .place-story { margin-block-start: 25px; }
  .place-story-intro h2 { font-size: 31px; }
  .place-story-media figcaption { padding: 12px; }
  .place-story--portrait .place-story-media > img { height: 480px; }
  .place-story-summary { font-size: 16px; }
  .place-fact { padding: 12px; }
  .place-fact dd { font-size: 16px; }
  .place-story-reading { grid-template-columns: minmax(0, 1fr); margin-block-start: 24px; padding-block-start: 24px; }
  .place-relation { grid-template-columns: minmax(0, 1fr); padding: 19px; gap: 12px; }
  .place-relation h3 { grid-row: auto; }
  .place-relation .source-links { grid-column: auto; }
  .place-preview-copy { padding: 22px; }
}
@media print {
  .hero h1, .page-hero--visual h1 { color: #111; }
  .page-hero--visual { background: white; color: #111; }
  .page-hero-art, .page-hero-shade, .places-navigation { display: none; }
  .page-hero-inner, .page-hero--places .page-hero-inner { min-height: 0; padding-block: 20px; }
  .page-hero--visual .breadcrumbs, .page-hero--visual .breadcrumbs a, .page-hero--visual .breadcrumbs [aria-current="page"], .page-hero--visual .eyebrow, .page-hero--visual .page-intro, .page-art-caption { color: #444; }
  .place-stories-section, .section--place-leads, .section--places-feature { background: white; color: #111; }
  .section--places-feature .section-heading h2, .section--places-feature .section-heading p, .section--places-feature .section-heading .eyebrow { color: #222; }
  .place-preview-grid, .place-story-layout, .place-story--portrait .place-story-layout, .place-story-reading { display: block; }
  .place-story, .place-preview-card { box-shadow: none; margin-block: 18px; padding: 16px; border-color: #bbb; }
  .place-story-media, .place-preview-media { max-width: 400px; margin-block-end: 18px; }
  .place-story-media > img, .place-story--portrait .place-story-media > img { max-height: 330px; height: auto; object-fit: contain !important; }
  .place-story-paragraph { margin-block-end: 15px; }
  .place-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place-relation, .place-fact { background: #f4f4f1; break-inside: avoid; }
  .place-preview-card { break-inside: avoid; }
}

/* Heritage, contemporary enterprise and source-aware genealogy. */
.heritage-section { background: #102f39; color: #eef3ee; }
.heritage-section .section-heading .eyebrow { color: #d5b37b; }
.heritage-section .section-heading h2 { color: #f8e4bd; }
.heritage-section .section-heading p { color: #cdded8; }
.heritage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.heritage-card { min-width: 0; overflow: hidden; border: 1px solid #45666a; border-radius: 12px; background: #153d45; box-shadow: 0 18px 40px rgb(0 0 0 / 18%); }
.heritage-card > img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.heritage-card figcaption { padding: 23px; }
.heritage-card h3 { color: #f4ddb3; font-family: var(--font-display); font-size: 29px; }
.heritage-card p { margin-block-start: 12px; color: #d3e0d9; font-size: 14px; line-height: 1.95; }
.person-portrait { margin: -24px -24px 22px; border-block-end: 1px solid var(--line); background: var(--soft); }
.person-portrait > img { width: 100%; max-height: 360px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 24%; border-radius: 9px 9px 0 0; }
.person-portrait figcaption, .profile-portrait figcaption, .documentary-card figcaption, .company-photo figcaption { display: grid; gap: 4px; padding: 13px 16px; color: #45605f; background: #edf2ec; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.media-credit-line { font-size: 12px; }
.person-card--portrait { overflow: hidden; }
.person-card--portrait .person-portrait { margin: -30px -30px 23px; }
.portrait-source-link { display: block; margin-block: 16px; color: var(--teal); font-size: 14px; font-weight: 600; }
.profile-portrait-section { background: #e9f0ea; }
.profile-portrait-layout { display: grid; grid-template-columns: minmax(220px,360px) minmax(0,1fr); gap: clamp(30px,6vw,75px); align-items: center; }
.profile-portrait { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.profile-portrait > img { width: 100%; max-height: 480px; object-fit: cover; }
.profile-portrait-layout > div > p:not(.eyebrow) { margin-block-start: 20px; font-size: 18px; line-height: 2; color: #3c555c; max-width: 55ch; }
.profile-portrait-layout .button { margin-block-start: 25px; }
.company-section { background: #edf2ec; }
.company-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; }
.company-card { min-width: 0; overflow: hidden; border: 1px solid #cbd9d0; border-radius: 11px; background: white; box-shadow: var(--shadow); }
.company-logo { display: flex; align-items: center; justify-content: flex-start; min-height: 154px; padding: 26px; border-block-end: 1px solid #dce4dd; background: linear-gradient(145deg,#fff,#f5f7f1); }
.company-logo img { display: block; max-width: min(100%,230px); width: auto; max-height: 112px; height: auto; object-fit: contain; }
.company-logo--type { background: var(--ink); color: #efd9b0; font-family: Georgia,serif; font-size: 28px; }
.company-copy { padding: 25px; }
.company-copy h3 { font-family: Georgia,"Noto Naskh Arabic",serif; font-size: 26px; line-height: 1.45; margin-block-end: 16px; overflow-wrap: anywhere; }
.company-copy > p:not(.eyebrow):not(.company-asset-credit) { font-size: 16px; line-height: 1.95; color: #41595f; }
.company-copy > .text-link { margin-block-start: 18px; }
.company-copy .company-relationship { padding-block-start: 17px; border-block-start: 1px solid var(--line); margin-block-start: 19px; }
.company-asset-credit { margin-block-start: 16px; font-size: 12px; }
.company-photo > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.company-photo figcaption { font-size: 12px; }
.documentary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,400px),1fr)); gap: 28px; max-width: 1100px; margin-inline: auto; }
.documentary-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.documentary-card > img { width: 100%; max-height: 620px; object-fit: contain; background: #dce6de; }
.documentary-card .source-links { padding: 0 18px 18px; }
.section--genealogy { background: linear-gradient(#ecf1eb,#f7f4eb 50%,#eef3ed); }
.lineage-context { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 48px; align-items: center; padding: clamp(25px,4vw,48px); border: 1px solid #42666a; border-radius: 16px; background: radial-gradient(ellipse at 80% 15%,#20525a,transparent 70%),#102f39; color: #e6ede6; box-shadow: 0 22px 65px rgb(15 45 53 / 12%); }
.lineage-context .eyebrow { color: #ddbe88; }
.lineage-context h2 { color: #f4dfb6; font-size: clamp(30px,3vw,43px); }
.lineage-context-copy > p:not(.eyebrow) { margin-block-start: 20px; font-size: 16px; line-height: 2; }
.lineage-context .source-links .chip { color: #e9d3aa; border-color: #6b837a; background: #1f4650; }
.lineage-boundary { border-inline-start: 3px solid #cba365; padding-inline-start: 17px; color: #d1dfd5; }
.context-diagram { position: relative; min-width: 0; padding-block: 5px; }
.context-level { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.context-level + .context-level { margin-block-start: 64px; }
.context-person { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 118px; padding: 19px 12px; border: 1px solid #b99d68; border-radius: 9px; background: #17414a; text-align: center; box-shadow: 0 7px 24px rgb(0 0 0 / 12%); }
.context-person strong { color: #f8e7c5; font-size: 19px; line-height: 1.8; }
.context-person span { margin-block-start: 4px; color: #cbded6; font-size: 14px; line-height: 1.7; }
.context-connectors { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.context-connectors path { fill: none; stroke: #bd9d67; stroke-width: 1.8; }
.context-connectors path[data-type="spouse_of"] { stroke-dasharray: 4 4; }
.lineage-tradition { margin-block-start: 58px; }
.lineage-tradition > h2 { margin-block-end: 25px; }
.lineage-tradition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px; }
.lineage-tradition-card { padding: 25px; border: 1px solid #dbcdb0; border-block-start: 4px solid #c0a06b; border-radius: 9px; background: #fffdf6; }
.lineage-tradition-card h3 { margin-block: 16px 12px; font-size: 22px; }
.lineage-tradition-card p { font-size: 16px; color: #4b5c5d; line-height: 2; }
.lineage-gap-note { padding: 22px 25px; margin-block-start: 21px; border-inline-start: 4px solid #346b69; background: #e4ede5; color: #294c4f; font-size: 16px; }
.genealogy-explorer { margin-block-start: 60px; scroll-margin-block-start: calc(var(--header-height) + 24px); }
.genealogy-heading { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: end; }
.genealogy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.genealogy-actions .button { min-height: 45px; }
.genealogy-legend { display: flex; flex-wrap: wrap; gap: 14px 27px; margin-block: 24px; font-size: 14px; color: #3c575a; }
.genealogy-legend > span { display: inline-flex; gap: 10px; align-items: center; }
.legend-line { width: 34px; border-block-start: 2px solid #477a72; }
.legend-line--reported { border-block-start: 2px dashed #ae8448; }
.branch-filters { display: flex; flex-wrap: wrap; gap: 9px; padding: 18px; border: 1px solid #c8d7cf; border-radius: 10px; background: white; }
.branch-filters button { border: 1px solid #ccd9d1; border-radius: 5px; background: #f1f5ee; min-height: 44px; padding: 8px 16px; color: #31575b; font-size: 14px; line-height: 1.8; }
.branch-filters button[aria-pressed="true"] { border-color: #194e56; background: #194e56; color: white; }
.branch-count { margin-block: 14px 25px; color: #526969; font-size: 14px; }
.genealogy-branches { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 24px; }
.genealogy-branch { min-width: 0; padding: 25px; border: 1px solid #c3d3c9; border-block-start: 5px solid #24636a; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.genealogy-branch h3 { font-family: var(--font-display); font-size: 26px; color: #194b51; }
.genealogy-branch-note { margin-block: 14px 25px; padding-block-end: 22px; border-block-end: 1px solid var(--line); font-size: 16px; color: #506866; line-height: 1.95; }
.genealogy-person { position: relative; padding: 16px; border: 1px solid #b9cfc2; border-radius: 8px; background: #edf3e9; }
.genealogy-person summary { display: flex; gap: 10px; justify-content: space-between; align-items: center; cursor: pointer; color: #173f47; font-weight: 700; font-size: 17px; line-height: 1.9; list-style: none; }
.genealogy-person summary::-webkit-details-marker { display: none; }
.genealogy-person summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #a2bbae; border-radius: 50%; color: #2c655f; font: 400 21px/1 Arial,sans-serif; }
.genealogy-person[open] summary::after { content: "−"; }
.genealogy-person-details { padding-block-start: 14px; margin-block-start: 13px; border-block-start: 1px solid #ccdbce; font-size: 16px; line-height: 1.95; color: #415e59; }
.genealogy-person-details .text-link { margin-block-start: 14px; }
.genealogy-edge { position: relative; display: grid; place-items: center; min-height: 61px; text-align: center; }
.genealogy-edge::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%; border-inline-start: 2px solid #477a72; }
.genealogy-edge--reported::before { border-inline-start-style: dashed; border-inline-start-color: #b0874a; }
.genealogy-edge > span { position: relative; padding: 3px 9px; margin-block: 13px; max-width: calc(100% - 10px); background: #fff; color: #42665f; font-size: 13px; line-height: 1.65; }
.genealogy-edge--reported > span { color: #826333; }
.genealogy-portrait { width: 56px; height: 70px; flex-shrink: 0; object-fit: cover; object-position: top; border-radius: 5px; }
.modern-full-name { border: 1px solid #c4d2be; border-radius: 5px; padding: 13px; background: #fffdf5; color: #274e50; font-size: 17px; }
.genealogy-gaps { padding: 30px; margin-block-start: 32px; border: 1px dashed #b2986d; border-radius: 10px; background: #faf5e9; }
.genealogy-gaps > h2 { font-size: 31px; margin-block-end: 22px; }
.genealogy-gaps > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px; }
.genealogy-gaps h3 { font-size: 20px; margin-block-end: 10px; color: #6b552e; }
.genealogy-gaps p { font-size: 16px; line-height: 1.95; color: #5e624f; }
.genealogy-documents { margin-block-start: 52px; }
.genealogy-documents > h2 { margin-block-end: 25px; }
.document-priorities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.document-priority { padding: 22px 0; border-block-start: 3px solid #8daba1; }
.document-priority h3 { font-size: 21px; margin-block-end: 12px; }
.document-priority p { font-size: 16px; color: #506563; line-height: 1.95; }
.genealogy-documents > .button { margin-block-start: 16px; }
@media (max-width: 1120px) {
  .person-card--portrait .person-portrait { margin: -24px -24px 23px; }
  .lineage-context { gap: 28px; }
  .genealogy-branches { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .heritage-grid, .company-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .heritage-card:last-child { grid-column: 1 / -1; }
  .heritage-card:last-child > img { max-height: 410px; aspect-ratio: 16 / 7; }
  .lineage-context { grid-template-columns: minmax(0,1fr); gap: 35px; }
  .context-diagram { width: min(100%,600px); margin-inline: auto; }
  .lineage-tradition-grid, .document-priorities { grid-template-columns: minmax(0,1fr); }
  .lineage-tradition-card { padding: 24px; }
  .document-priorities { gap: 5px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .heritage-grid, .company-grid, .profile-portrait-layout, .genealogy-branches, .genealogy-gaps > div { grid-template-columns: minmax(0,1fr); }
  .heritage-card:last-child { grid-column: auto; }
  .heritage-card > img, .heritage-card:last-child > img { aspect-ratio: 16 / 10; max-height: none; }
  .heritage-card figcaption, .company-copy { padding: 22px; }
  .company-logo { min-height: 145px; padding: 24px; }
  .profile-portrait { max-width: 390px; }
  .profile-portrait-layout > div > p:not(.eyebrow) { font-size: 16px; }
  .lineage-context { padding: 23px 17px; border-radius: 11px; }
  .lineage-context h2 { font-size: 31px; }
  .context-level { gap: 20px; }
  .context-person { padding: 14px 8px; min-height: 121px; }
  .context-person strong { font-size: 16px; }
  .context-person span { font-size: 14px; }
  .context-level + .context-level { margin-block-start: 53px; }
  .lineage-tradition { margin-block-start: 40px; }
  .lineage-tradition-card { padding: 21px; }
  .lineage-gap-note { padding: 21px; }
  .genealogy-explorer { margin-block-start: 42px; }
  .genealogy-heading { align-items: start; }
  .genealogy-actions .button { font-size: 14px; padding-inline: 13px; }
  .branch-filters { padding: 13px; gap: 8px; }
  .branch-filters button { flex: 1 1 auto; padding-inline: 12px; }
  .genealogy-branch { padding: 22px; }
  .genealogy-person { padding: 15px; }
  .genealogy-gaps { padding: 23px; }
}
@media print {
  .heritage-section, .lineage-context { color: #111; background: white; }
  .heritage-section .section-heading h2, .heritage-section .section-heading p, .heritage-section .section-heading .eyebrow, .heritage-card h3, .heritage-card p, .lineage-context h2, .lineage-context .eyebrow, .lineage-context-copy p { color: #222; }
  .heritage-card, .lineage-context, .company-card, .genealogy-branch { box-shadow: none; }
  .lineage-context, .heritage-grid, .company-grid, .documentary-grid { display: block; }
  .context-diagram { max-width: 450px; margin: 25px auto; }
  .context-person { background: #f2f4ed; }
  .context-person strong, .context-person span { color: #222; }
  .lineage-tradition-grid, .genealogy-branches { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .genealogy-actions, .branch-filters, .branch-count, .genealogy-person summary::after { display: none !important; }
  .genealogy-branch[hidden] { display: block !important; }
  .genealogy-branch, .lineage-tradition-card { break-inside: avoid; padding: 16px; }
  .genealogy-person { background: #f3f5ef; }
  .genealogy-person summary { font-size: 11pt; }
  .genealogy-person-details, .genealogy-branch-note, .genealogy-gaps p, .document-priority p { font-size: 10pt; }
  .company-card, .documentary-card, .heritage-card { margin-block: 20px; break-inside: avoid; }
  .heritage-card > img, .documentary-card > img { max-height: 250px; object-fit: contain; }
  .profile-portrait-layout { grid-template-columns: 220px minmax(0,1fr); }
}
