/* Alt Afrikaner editorial shell — scoped, no third-party design assets */
:root{--aa-shell-ink:#172338;--aa-shell-paper:#fbf8f3;--aa-shell-orange:#b84b24}
.aa-editorial-bar{position:relative;z-index:1100;display:flex;align-items:center;gap:18px;min-height:77px;padding:9px clamp(15px,3vw,44px);background:var(--aa-shell-paper);border-bottom:1px solid #d5cabc;color:var(--aa-shell-ink);font:600 14px 'Source Sans 3',sans-serif}
.aa-editorial-bar button{cursor:pointer}.aa-menu-toggle{height:44px;width:46px;border:0;background:transparent;color:#172338;font-size:28px;font-weight:700;line-height:1}.aa-editorial-logo{display:flex;align-items:center;min-width:125px;max-width:170px;height:56px}.aa-editorial-logo img{display:block;max-width:100%;max-height:56px;object-fit:contain}.aa-editorial-tagline{font-weight:800;letter-spacing:.045em;text-transform:uppercase;color:#172338;font-size:clamp(11px,1.15vw,17px);margin-left:clamp(5px,3vw,34px)}.aa-editorial-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.aa-editorial-actions a{font-weight:700;color:#172338;text-decoration:none}.aa-editorial-actions .aa-editorial-subscribe{background:#8b271b;color:#fff;padding:10px 16px;border-radius:2px}.aa-drawer-backdrop{position:fixed;inset:0;z-index:1990;background:#0009;display:none}.aa-drawer-backdrop.open{display:block}.aa-editorial-drawer{position:fixed;z-index:2000;inset:0 auto 0 0;width:min(370px,88vw);background:var(--aa-shell-paper);box-shadow:8px 0 32px #0003;transform:translateX(-102%);transition:transform .22s ease;overflow-y:auto;color:#1c2636;padding:28px 26px 40px;font-family:'Source Sans 3',sans-serif}.aa-editorial-drawer.open{transform:translateX(0)}.aa-drawer-close{float:right;border:0;background:transparent;font-size:30px;cursor:pointer;color:#182234}.aa-editorial-drawer h2{font:700 25px 'Playfair Display',Georgia,serif;margin:8px 0 24px}.aa-drawer-heading{font:700 12px 'Source Sans 3',sans-serif;color:#8b271b;text-transform:uppercase;letter-spacing:.13em;margin:27px 0 9px}.aa-editorial-drawer nav a{display:block;padding:10px 0;color:#1a2435;text-decoration:none;border-bottom:1px solid #e6ddd2;font:700 19px 'Playfair Display',Georgia,serif}.aa-editorial-drawer nav a:hover{color:#8b271b}.aa-editorial-drawer .aa-drawer-cta{background:#8b271b;color:#fff;padding:13px 14px;text-align:center;margin-top:22px;font:700 14px 'Source Sans 3',sans-serif}.aa-editorial-bar :focus-visible,.aa-editorial-drawer :focus-visible{outline:3px solid #aa772e;outline-offset:2px}
body.aa-editorial-site:has(#aa-articles-title),body.aa-editorial-site.aa-editorial-article,body.aa-editorial-site:has(.card .artwork){background:#fbf8f3}body.aa-editorial-site .aa-editorial-bar{position:relative}body.aa-editorial-site .aa-brand-badge{display:none}body.aa-editorial-site .aa-editorial-bar img{background:transparent}
body.aa-editorial-article .aa-copy{font-family:'Playfair Display',Georgia,serif;font-weight:400;font-size:clamp(21px,2.1vw,25px);line-height:1.73;color:#535b68}body.aa-editorial-article .aa-copy p{margin-bottom:19px;max-width:66ch}body.aa-editorial-article .aa-copy h2{color:#172338;font-size:clamp(35px,4vw,52px)}body.aa-editorial-article .aa-layout{grid-template-columns:minmax(0,800px) 255px;gap:53px}body.aa-editorial-article .aa-hero{padding-top:68px}body.aa-editorial-article .aa-aside a{font-size:15px}body.aa-editorial-article .aa-article-cover img{width:100%;height:auto}
@media(max-width:900px){.aa-editorial-tagline{display:none}body.aa-editorial-article .aa-layout{grid-template-columns:1fr}}@media(max-width:580px){.aa-editorial-bar{gap:9px;min-height:65px}.aa-editorial-logo{min-width:90px;max-width:112px;height:46px}.aa-editorial-actions a:not(.aa-editorial-subscribe){display:none}.aa-editorial-actions .aa-editorial-subscribe{padding:8px;font-size:12px}body.aa-editorial-article .aa-copy{font-size:20px;line-height:1.67}}
@media(prefers-reduced-motion:reduce){.aa-editorial-drawer{transition:none}}

/* Homepage: editorial landing and intact archival research */
body.aa-editorial-site:has(#aa-articles-title)>.site-header{display:none}
body.aa-editorial-site:has(#aa-articles-title)>.hero{background:#fbf8f3;color:#1a2435;border-bottom:1px solid #ddd3c6;padding-top:55px}
body.aa-editorial-site:has(#aa-articles-title) .hero h1{color:#172338;font-size:clamp(45px,6.3vw,86px)}
body.aa-editorial-site:has(#aa-articles-title) .hero .hero-eyebrow,body.aa-editorial-site:has(#aa-articles-title) .hero .hero-tagline{color:#8b271b}
body.aa-editorial-site:has(#aa-articles-title) .hero .hero-intro{color:#515c69;font-family:'Playfair Display',Georgia,serif;font-size:clamp(20px,2.1vw,26px);line-height:1.63}
body.aa-editorial-site:has(#aa-articles-title) .hero .hero-button{background:#1b2a4a;color:#fff;border:1px solid #1b2a4a}
body.aa-editorial-site:has(#aa-articles-title) #articles{background:#fbf8f3!important}
body.aa-editorial-site:has(#aa-articles-title) #articles>a{color:#172338}
body.aa-editorial-site:has(#aa-articles-title) #articles img{object-fit:cover;max-height:680px}
body.aa-editorial-article .aa-hero{background:#fbf8f3;color:#172338;padding-bottom:45px}
body.aa-editorial-article .aa-eyebrow{color:#aa442b}
body.aa-editorial-article .aa-hero h1{color:#161a20;font-size:clamp(46px,6vw,84px);line-height:1.08;letter-spacing:-.04em}
body.aa-editorial-article .aa-deck{color:#68717d;font-size:clamp(25px,2.6vw,32px);line-height:1.55}
body.aa-editorial-article .aa-meta{color:#9a492b;border-color:#d8d1c7}
body.aa-editorial-article .aa-article-cover{max-width:1230px;margin:0 auto 24px!important;padding:0 24px;background:#fbf8f3!important}
body.aa-editorial-article .aa-article-cover img{border-radius:4px;max-height:690px;object-fit:contain}
body.aa-editorial-article .aa-nav{display:none}
body.aa-editorial-article .aa-copy>p:first-child:first-letter{color:#8b271b}
body.aa-editorial-article .aa-bottom{background:#f1ede6}

/* The existing fixed 3D investigation toolbars retain their own stacking context. */
body.aa-editorial-site:not(:has(#aa-articles-title)):not(.aa-editorial-article):not(:has(.artwork)) .aa-editorial-bar{position:relative;z-index:1100}
body.aa-editorial-site:has(#aa-articles-title)>.aa-editorial-bar,body.aa-editorial-site.aa-editorial-article>.aa-editorial-bar,body.aa-editorial-site:has(.artwork)>.aa-editorial-bar{position:sticky;top:0}
body.aa-editorial-site:has(.artwork) .hero{background:#fbf8f3;color:#172338}
.aa-editorial-archive-nav{display:flex;flex-wrap:wrap;gap:9px 12px;margin:0 0 30px}
.aa-editorial-archive-nav a{font:700 14px 'Source Sans 3',sans-serif;color:#172338;border:1px solid #bcae9d;border-radius:3px;padding:8px 13px;text-decoration:none;background:#fffdf9}
.aa-editorial-archive-nav a[aria-current="true"]{background:#172338;color:white;border-color:#172338}
.aa-editorial-empty{background:#fffdf9;padding:28px;border:1px solid #d9cfbd;color:#24354e}

/* Two publication departments: persistent, visually separate and keyboard accessible. */
.aa-editorial-bar .aa-editorial-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: #f1eadd;
  border: 1px solid #d2c7b8;
  border-radius: 3px;
}
.aa-editorial-bar .aa-editorial-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #1b2a4a;
  font: 700 12px 'Source Sans 3',sans-serif;
  text-transform: uppercase;
  letter-spacing: .065em;
  text-decoration: none;
  white-space: nowrap;
}
.aa-editorial-bar .aa-editorial-actions a.is-active {
  background: #1b2a4a;
  color: #fffdf8;
  border-color: #1b2a4a;
}
.aa-editorial-bar .aa-editorial-actions a:not(.is-active):hover {
  background: #fffdf8;
  color: #8b0000;
}
.aa-editorial-actions .aa-dept-short { display:none; }
@media(max-width:580px){
  .aa-editorial-bar { gap:6px; padding: 7px 9px; }
  .aa-editorial-bar .aa-menu-toggle { width:34px; height:40px; font-size:25px; }
  .aa-editorial-bar .aa-editorial-logo { min-width:64px;max-width:90px;height:43px; }
  .aa-editorial-bar .aa-editorial-actions { gap:1px; padding:3px; }
  .aa-editorial-bar .aa-editorial-actions a:not(.aa-editorial-subscribe) {
    display:inline-flex;
    padding:6px 8px;
    min-height:34px;
    font-size:10px;
    letter-spacing:.015em;
  }
  .aa-editorial-actions .aa-dept-full { display:none; }
  .aa-editorial-actions .aa-dept-short { display:inline; }
}


/* Sitewide reading and keyboard-accessibility hardening — 2026-10-23.
   Paired light backgrounds/dark foregrounds; limited to the editorial shell
   so dark investigation canvases and data visualisations retain their themes. */
.aa-editorial-bar,.aa-editorial-drawer{color:#172338}
.aa-editorial-bar :is(a,button),.aa-editorial-drawer :is(a,button){color:#172338}
.aa-editorial-bar .aa-editorial-subscribe,.aa-editorial-drawer .aa-drawer-cta{background:#8b271b;color:#fff}
body.aa-editorial-article .aa-copy{color:#293749}
body.aa-editorial-article .aa-copy :is(p,li,blockquote){color:#293749}
body.aa-editorial-article .aa-copy :is(h2,h3,h4,strong){color:#192a41}
body.aa-editorial-article .aa-copy a{color:#801821;text-decoration:underline;text-underline-offset:3px}
body.aa-editorial-article .aa-hero .aa-deck{color:#3e4a59}
body.aa-editorial-article .aa-hero .aa-meta{color:#774129}
.aa-editorial-bar a:focus-visible,.aa-editorial-drawer a:focus-visible,
body.aa-editorial-article .aa-copy a:focus-visible{outline:3px solid #97500b;outline-offset:3px}
.aa-editorial-bar,.aa-editorial-drawer,body.aa-editorial-article .aa-copy{overflow-wrap:break-word}
body.aa-editorial-article .aa-copy :is(img,video,iframe,svg){max-width:100%}
body.aa-editorial-article .aa-copy :is(pre,table){max-width:100%;overflow-x:auto}
@media(max-width:580px){
 .aa-editorial-bar{padding-inline:12px}
 .aa-editorial-actions{gap:7px;min-width:0}
 .aa-editorial-logo{min-width:0;flex-shrink:1}
 body.aa-editorial-article .aa-layout{min-width:0;padding-inline:18px}
 body.aa-editorial-article .aa-hero h1{overflow-wrap:anywhere}
}
@media(forced-colors:active){
 .aa-editorial-bar,.aa-editorial-drawer{background:Canvas;color:CanvasText}
 .aa-editorial-bar :is(a,button),.aa-editorial-drawer :is(a,button){color:LinkText}
}


/* Shared publication masthead: use the same menu across all articles.
   Retain each page's original header as a no-JavaScript fallback. */
body.aa-editorial-site.aa-editorial-article > header,
body.aa-editorial-site:has(.aa-editorial-archive-nav) > header{
  display:none;
}
body.aa-editorial-site:has(.aa-editorial-archive-nav) > .hero{
  padding-top:clamp(45px,5vw,75px);
}
body.aa-editorial-site:has(.aa-editorial-archive-nav) .wrap{
  min-width:0;
}
body.aa-editorial-site:has(.aa-editorial-archive-nav) .card img{
  max-width:100%;
  object-fit:contain;
}

/* Shared navigation drawer isolation (2026-10-28).
   Legacy investigation templates style bare nav/h2/a selectors and load their
   own inline CSS after this file. Constrain those rules inside our drawer. */
body.aa-editorial-site > #aa-editorial-drawer.aa-editorial-drawer{
  position:fixed!important;inset:0 auto 0 0!important;
  display:block!important;box-sizing:border-box!important;
  width:min(370px,88vw)!important;height:100dvh!important;
  max-width:88vw!important;overflow-x:hidden!important;overflow-y:auto!important;
  padding:28px 26px 40px!important;
  border:0!important;border-right:1px solid #d6ccbe!important;
  background:#fbf8f3!important;color:#172338!important;
  z-index:2147483000!important;isolation:isolate;
  font-family:'Source Sans 3',system-ui,sans-serif!important;
  font-size:16px!important;line-height:1.45!important;
  transform:translateX(-102%);transition:transform .22s ease;
  text-align:left!important;
}
body.aa-editorial-site > #aa-editorial-drawer.aa-editorial-drawer.open{transform:translateX(0)}
body.aa-editorial-site > .aa-drawer-backdrop{z-index:2147482999!important}
body.aa-editorial-site #aa-editorial-drawer :is(h2,p,nav,a,button){box-sizing:border-box!important}
body.aa-editorial-site #aa-editorial-drawer > h2{
  display:block!important;position:static!important;
  margin:7px 36px 24px 0!important;padding:0!important;
  color:#172338!important;background:none!important;
  font:700 26px/1.3 'Playfair Display',Georgia,serif!important;
  letter-spacing:normal!important;text-transform:none!important;
}
body.aa-editorial-site #aa-editorial-drawer > p.aa-drawer-heading{
  display:block!important;margin:25px 0 10px!important;padding:0!important;
  color:#8b271b!important;background:none!important;
  font:700 12px/1.5 'Source Sans 3',system-ui,sans-serif!important;
  text-transform:uppercase!important;letter-spacing:.12em!important;
}
body.aa-editorial-site #aa-editorial-drawer > nav{
  display:block!important;position:static!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  width:100%!important;margin:0!important;padding:0!important;
  border:0!important;box-shadow:none!important;
  background:transparent!important;backdrop-filter:none!important;
  transform:none!important;overflow:visible!important;
}
body.aa-editorial-site #aa-editorial-drawer > nav > a{
  display:block!important;position:static!important;
  width:100%!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:11px 0!important;
  border:0!important;border-bottom:1px solid #e6ddd2!important;
  border-radius:0!important;box-shadow:none!important;
  background:transparent!important;color:#172338!important;
  opacity:1!important;text-decoration:none!important;
  text-align:left!important;white-space:normal!important;
  font:600 17px/1.4 'Source Sans 3',system-ui,sans-serif!important;
  letter-spacing:normal!important;text-transform:none!important;
  text-shadow:none!important;
}
body.aa-editorial-site #aa-editorial-drawer > nav > a:hover,
body.aa-editorial-site #aa-editorial-drawer > nav > a:focus-visible{
  background:#f2ece2!important;color:#8b271b!important;
}
body.aa-editorial-site #aa-editorial-drawer > a.aa-drawer-cta{
  display:block!important;position:static!important;
  margin:23px 0 0!important;padding:13px 14px!important;
  width:100%!important;height:auto!important;
  border:0!important;background:#8b271b!important;
  color:#fff!important;text-align:center!important;
  text-decoration:none!important;
  font:700 14px/1.4 'Source Sans 3',system-ui,sans-serif!important;
}
body.aa-editorial-site #aa-editorial-drawer > button.aa-drawer-close{
  position:absolute!important;top:14px!important;right:16px!important;
  display:block!important;width:36px!important;height:36px!important;
  margin:0!important;padding:0!important;
  border:0!important;background:transparent!important;color:#172338!important;
  font:400 30px/36px system-ui,sans-serif!important;
  text-align:center!important;cursor:pointer!important;
  float:none!important;
}
@media(prefers-reduced-motion:reduce){
  body.aa-editorial-site > #aa-editorial-drawer.aa-editorial-drawer{transition:none}
}
