/* D01 — shared archive navigation and legible headings, 25 October 2026. */
.at-global-nav{display:flex;align-items:center;gap:26px;flex-wrap:wrap;margin:0;padding:0;border-block:1px solid #d7cebb;background:#fdfbf2}
.at-global-nav>a{position:relative;display:inline-flex;align-items:center;min-height:46px;padding:10px 0;color:#27372d;font:13px/1.6 Arial,sans-serif;text-decoration:none;white-space:nowrap}
.at-global-nav>a:hover{text-decoration:underline;text-underline-offset:5px}
.at-global-nav>a[aria-current=page],.at-global-nav>a.at-section-active{font-weight:700}
.at-global-nav>a[aria-current=page]::after,.at-global-nav>a.at-section-active::after{content:'';position:absolute;inset-inline:0;bottom:-1px;height:3px;background:#a88442}
.at-global-nav>a:focus-visible{outline:3px solid #a88442;outline-offset:3px}
html[dir=rtl] .at-global-nav>a{font-family:Amiri,ArchiveArabic,Tahoma,serif;font-size:18px;letter-spacing:0}
/* Substantial, high-contrast type, including when the surrounding app is dark. */
body.at-refined .wt-main-container>.wt-page-title,
body.at-refined .wt-main-container>h2,
body.at-refined .wt-main-container>.at-archive>h2,
body.at-refined .at-dashboard-welcome h2,
body.at-refined .at-public-tree-header .wt-page-title{font-family:Georgia,'Times New Roman',serif;font-weight:600;color:#20372a;opacity:1;text-shadow:none;letter-spacing:-.02em;line-height:1.2}
html[dir=rtl] body.at-refined .wt-main-container>.wt-page-title,
html[dir=rtl] body.at-refined .wt-main-container>h2,
html[dir=rtl] body.at-refined .wt-main-container>.at-archive>h2,
html[dir=rtl] body.at-refined .at-dashboard-welcome h2,
html[dir=rtl] body.at-refined .at-public-tree-header .wt-page-title{font-family:ArchiveArabic,Amiri,Tahoma,serif;letter-spacing:0;line-height:1.5}

/* D01: same identity, navigation and ink as the family-tree application. */
.site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 22px;min-height:0;padding:0 6%;background:#fdfbf2;border-top:3px solid #a88442}
.site-header .heritage-brand{grid-column:1;grid-row:1;display:flex;align-items:center;gap:16px;padding:16px 0;min-height:120px;min-width:0;width:max-content;max-width:100%}
.site-header .brand-seal{width:88px;height:88px;flex:0 0 88px}
.site-header .at-archive-wordmark .at-archive-name{font-size:45px;line-height:1.1}
.site-header .at-archive-wordmark .at-archive-label{font-size:17px;letter-spacing:.12em}
.site-header .at-archive-wordmark[lang=ar].at-archive-wordmark-art{width:158px;flex:0 1 158px;transform:none}
.site-header .at-archive-calligraphy{width:158px}
.site-header .header-utilities{grid-column:2;grid-row:1;margin:0;gap:20px}
.site-header .desktop-nav.at-global-nav{grid-column:1/-1;grid-row:2;display:flex;width:100%;margin:0;gap:26px}
.site-header .at-global-nav>a{font-size:13px;padding:10px 0;min-height:46px;border-inline-start:0}
.site-header .header-signin{font:13px/1.5 Arial,sans-serif;min-height:44px;display:inline-flex;align-items:center;padding:10px 18px;border-radius:3px;background:#293d31;color:#fffdf5;text-decoration:none}
.site-header .language-switch{font-size:20px}
.site-header .language-switch[lang=en]{font-size:13px}
.atc-site main h1,.atc-site main h2,.atc-site main h3{font-family:Georgia,'Times New Roman',serif;font-weight:600;color:#20372a;opacity:1;text-shadow:none;letter-spacing:-.02em}
.atc-site .archive-hero h1{color:#fffdf4;font-weight:500;font-size:clamp(3.5rem,5.8vw,6rem)}
.atc-site .archive-hero h1 em{color:#e3cc9b}
.atc-site .archive-contribute h2,.atc-site .doc-cta h2{color:#fffdf4}
.atc-site h2{font-size:clamp(2rem,3.2vw,3.1rem);line-height:1.15}
.atc-site h3{font-size:1.55rem;line-height:1.3}
.atc-site .button{border-radius:3px}
.atc-site .archive-hero{min-height:490px;padding-block:55px 70px}
.atc-site .hero-description{max-width:470px}
.atc-site .access-strip{padding-block:20px}
.atc-site .access-strip h2{font:500 16px/1.5 Arial,sans-serif;letter-spacing:0}
.atc-site .archive-origin{padding-block:50px 28px}
.atc-site .origin-grid{gap:8%}
.atc-site .origin-document{padding:20px}
.atc-site .origin-document .document-date{font-size:32px;margin-bottom:15px}
.atc-site .origin-document figcaption{margin-top:14px;padding-top:14px}
.atc-site .archive-tree-gateway{padding-block:30px 40px}
.atc-site .archive-work{padding-block:30px 45px}
.atc-site .section-kicker{margin-bottom:28px}
.atc-site .at-help-grow{display:grid;grid-template-columns:1fr 1fr;gap:8%;padding-block:28px 48px}
.atc-site .at-help-grow h2{font-size:34px}
.atc-site .at-help-grow p:not(.eyebrow){font-size:17px;line-height:1.8}
.atc-site .at-help-grow .button{margin-top:22px}
html[dir=rtl] .atc-site main h1,html[dir=rtl] .atc-site main h2,html[dir=rtl] .atc-site main h3{font-family:Amiri,Tahoma,serif;letter-spacing:0;line-height:1.4;font-weight:600}
html[dir=rtl] .site-header .at-global-nav>a{font-size:18px}
html[dir=rtl] .site-header .header-signin{font:18px/1.5 Amiri,serif}
html[dir=rtl] .atc-site .access-strip h2{font:500 21px/1.5 Amiri,serif}
html[dir=rtl] .atc-site .at-help-grow p:not(.eyebrow){font-size:21px}
@media(max-width:991.98px){
 .site-header{padding:0 20px}
 .site-header .heritage-brand{gap:10px;padding:10px 0;min-height:72px}
 .site-header .brand-seal{width:50px;height:50px;flex-basis:50px}
 .site-header .at-archive-wordmark .at-archive-name{font-size:29px}
 .site-header .at-archive-wordmark .at-archive-label{font-size:11px;letter-spacing:.10em}
 .site-header .at-archive-wordmark[lang=ar].at-archive-wordmark-art{width:125px;flex:0 1 125px}
 .site-header .at-archive-calligraphy{width:125px}
 .site-header .desktop-nav.at-global-nav{display:none}
 .site-header .header-signin{display:none}
 .site-header .header-utilities{gap:12px}
 .site-header .mobile-nav{display:block}
 .site-header .mobile-nav summary{min-width:44px;min-height:44px;border:1px solid #d7cebb;padding:10px;border-radius:3px}
 .site-header .mobile-nav nav{grid-template-columns:1fr 1fr;gap:4px 16px;padding:12px 20px 20px}
 .site-header .mobile-nav nav>a{white-space:normal;min-height:44px;font-size:14px}
 .site-header .mobile-nav nav .nav-member{grid-column:1/-1;border-top:1px solid #d7cebb;margin-top:8px}
 .atc-site .archive-hero{min-height:450px}
}
@media(max-width:575.98px){
 .site-header{padding-inline:14px;column-gap:10px}
 .site-header .header-utilities{gap:8px}
 .site-header .mobile-nav summary{font-size:0}
 .site-header .mobile-nav summary span{font:18px/1.3 Arial,sans-serif}
 .site-header .language-switch{font-size:17px}
 .site-header .language-switch[lang=en]{font-size:12px}
 .atc-site .archive-hero{padding:42px 6% 60px}
 .atc-site .archive-hero h1{font-size:clamp(2.9rem,11.5vw,3.7rem)}
 .atc-site .archive-origin,.atc-site .archive-work{padding-block:32px}
 .atc-site .at-help-grow{grid-template-columns:1fr;gap:20px;padding-block:28px 36px}
 .atc-site .at-help-grow h2{font-size:30px}
 .atc-site .origin-grid h2{font-size:32px}
 .atc-site .access-strip .actions{gap:14px}
}
