/* D02: a shared archive switch, real session state and a stable Home destination. */
.at-archive-bar{background:#20342a;color:#f3eddf;font-family:Arial,sans-serif;font-size:13px}
.at-archive-bar-inner{display:flex;justify-content:space-between;align-items:center;gap:10px 24px;min-height:44px;max-width:1320px;margin-inline:auto;padding-inline:32px;flex-wrap:wrap}
.at-archive-bar .at-archive-switch{display:flex;flex-wrap:wrap;gap:4px;background:transparent;border:0;padding-block:5px;min-width:0}
.at-archive-bar .at-archive-switch>a{min-height:34px;padding:6px 13px;font:13px/1.6 Arial,sans-serif;color:#f3eddf;border:1px solid #6b7765;border-radius:2px;white-space:nowrap;text-decoration:none}
.at-archive-bar .at-archive-switch>a.at-section-active{background:#f7f3e9;color:#20342a;border-color:#f7f3e9;font-weight:600}
.at-archive-bar .at-archive-switch>a::after{display:none!important}
.at-archive-bar .at-bar-account{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-width:0}
.at-archive-bar .at-bar-account>a{color:#f3eddf;font-size:13px;text-decoration:none;padding-block:8px;min-height:34px}
.at-archive-bar .at-bar-account>a:hover{text-decoration:underline;text-underline-offset:4px}
.at-archive-bar .at-bar-account>a[hidden]{display:none!important}
.at-archive-bar .at-bar-account .language-switch[lang=ar]{font:19px/1.5 Amiri,ArchiveArabic,serif}
.at-archive-bar a:focus-visible,.at-archive-bar button:focus-visible{outline:3px solid #e3cc9b;outline-offset:2px}
html[dir=rtl] .at-archive-bar{font-family:Amiri,ArchiveArabic,Tahoma,serif}
html[dir=rtl] .at-archive-bar .at-archive-switch>a,html[dir=rtl] .at-archive-bar .at-bar-account>a{font-family:Amiri,ArchiveArabic,Tahoma,serif;font-size:17px;letter-spacing:0}
@media(max-width:767.98px){
 .at-archive-bar-inner{padding-inline:14px;gap:0 10px}
 .at-archive-bar .at-archive-switch>a{padding:6px 9px;font-size:12px}
 .at-archive-bar .at-bar-account{gap:10px}
 .at-archive-bar .at-bar-account>a{font-size:12px}
 .at-archive-bar .at-bar-myaccount{display:none}
 html[dir=rtl] .at-archive-bar .at-archive-switch>a,html[dir=rtl] .at-archive-bar .at-bar-account>a{font-size:16px}
}
@media print{.at-archive-bar{display:none!important}}

.atc-site [data-at-member-copy][hidden],.atc-site [data-at-guest-copy][hidden],.atc-site a[hidden]{display:none!important}
.atc-site .at-archive-bar .language-switch{font-size:19px;text-decoration:none;color:#f3eddf}
.atc-site .at-archive-bar .language-switch[lang=en]{font:13px/1.5 Arial,sans-serif}
.site-header{border-top:2px solid #a88442;grid-template-columns:minmax(0,1fr) auto;gap:0 24px}
.site-header .heritage-brand{min-height:120px}
.site-header .desktop-nav.at-public-nav{grid-column:2;grid-row:1;display:flex;gap:22px;flex-wrap:wrap;width:auto;justify-content:flex-end;margin:0}
.site-header .at-public-nav>a{font:14px/1.5 Arial,sans-serif;color:#27372d;padding:10px 0;min-height:44px;text-decoration:none;border:0;white-space:nowrap}
.site-header .at-public-nav>a[aria-current=page]{border-bottom:2px solid #a88442;font-weight:600}
.site-header .at-public-nav>a:hover{text-decoration:underline;text-underline-offset:4px}
.site-header .header-utilities{display:none}
.atc-site .site-footer nav .nav-member{font-size:14px}
html[dir=rtl] .site-header .at-public-nav>a{font-family:Amiri,Tahoma,serif;font-size:18px}
html[dir=rtl] .atc-site .at-archive-bar .language-switch[lang=en]{font:13px/1.5 Arial,sans-serif}
@media(max-width:1199.98px){.site-header .desktop-nav.at-public-nav{gap:16px}.site-header .at-public-nav>a{font-size:13px}}
@media(max-width:991.98px){
 .site-header .desktop-nav.at-public-nav{display:none}
 .site-header .header-utilities{display:flex}
 .site-header .mobile-nav{display:block}
 .at-archive-bar-inner{padding-inline:20px}
}
@media(max-width:575.98px){
 .at-archive-bar-inner{padding-inline:14px}
 .atc-site .at-archive-bar .at-bar-account{margin-inline-start:auto}
 .atc-site .at-archive-bar .language-switch{font-size:17px}
}

.atc-site .access-strip [data-at-member-copy]{margin-top:0}

.at-entry-short{display:none}@media(max-width:767.98px){.at-entry-long{display:none}.at-entry-short{display:inline}}

/* D05 restored shared header: identity, public navigation, then member tools. */
html body.atc-site .at-archive-bar-inner{max-width:none;padding-inline:6%;min-height:48px}
html body.atc-site .site-header{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:188px auto;gap:0;padding:0 6%;background:#fdfaf0;border-top:0}
html body.atc-site .site-header .heritage-brand{grid-column:1;grid-row:1;height:188px;min-height:188px;padding:14px 0;gap:26px;max-width:100%;width:max-content}
html body.atc-site .site-header .brand-seal{width:160px;height:160px;min-width:160px;flex:0 0 160px;object-fit:contain}
html body.atc-site .site-header .at-archive-wordmark{max-width:none}
html body.atc-site .site-header .at-archive-name{font-size:62px;line-height:1.1}
html body.atc-site .site-header .at-archive-label{font-size:22px;letter-spacing:.105em}
html body.atc-site .site-header .at-archive-wordmark[lang=ar]{width:216px;flex:0 0 216px;transform:none}
html body.atc-site .site-header .at-archive-calligraphy{width:216px}
html body.atc-site .site-header .desktop-nav.at-public-nav{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:0 26px;width:100%;margin:0;padding:4px 0;border-top:1px solid #e4ddcd;min-height:48px;background:#fdfaf0}
html body.atc-site .site-header .at-public-nav>a{font-size:14px;min-height:40px;padding:10px 0}
html body.atc-site .site-header .header-utilities{display:none}
html body.atc-site .at-bar-account .language-switch{order:3}

@media(min-width:768px) and (max-width:1199.98px){
 html body.atc-site .site-header{grid-template-rows:172px auto}
 html body.atc-site .site-header .heritage-brand{height:172px;min-height:172px;gap:20px}
 html body.atc-site .site-header .brand-seal{width:144px;height:144px;min-width:144px;flex-basis:144px}
 html body.atc-site .site-header .at-archive-name{font-size:53px}
 html body.atc-site .site-header .at-archive-label{font-size:19px}
 html body.atc-site .site-header .at-archive-wordmark[lang=ar]{width:196px;flex-basis:196px}
 html body.atc-site .site-header .at-archive-calligraphy{width:196px}
}
@media(max-width:767.98px){
 html body.atc-site .at-archive-bar-inner{padding-inline:18px}
 html body.atc-site .site-header{padding-inline:18px;grid-template-rows:140px auto}
 html body.atc-site .site-header .heritage-brand{height:140px;min-height:140px;gap:14px;padding:20px 0}
 html body.atc-site .site-header .brand-seal{width:112px;height:112px;min-width:112px;flex-basis:112px}
 html body.atc-site .site-header .at-archive-name{font-size:49px}
 html body.atc-site .site-header .at-archive-label{font-size:17px;letter-spacing:.06em}
 html body.atc-site .site-header .at-archive-wordmark[lang=ar]{width:184px;flex-basis:184px}
 html body.atc-site .site-header .at-archive-calligraphy{width:184px}
 html body.atc-site .site-header .desktop-nav.at-public-nav{gap:0 20px}
 html body.atc-site .at-archive-bar .at-bar-myaccount{display:inline-flex}
}

@media(max-width:370px){
 html body.atc-site .site-header .brand-seal{width:96px;height:96px;min-width:96px;flex-basis:96px}
 html body.atc-site .site-header .heritage-brand{gap:12px}
 html body.atc-site .site-header .at-archive-name{font-size:38px}
 html body.atc-site .site-header .at-archive-label{font-size:14px}
 html body.atc-site .site-header .at-archive-wordmark[lang=ar]{width:160px;flex-basis:160px}
 html body.atc-site .site-header .at-archive-calligraphy{width:160px}
}
