/* v4.2.0 RC11 — shared cinematic editorial system for interior pages.
   Keeps data-heavy workspaces readable while unifying the public portal shell. */
body[data-page]:not([data-page="home"]){
  --editorial-paper:#eeeae2;--editorial-card:#f7f4ed;--editorial-ink:#252923;
  --editorial-muted:#6e7169;--editorial-line:#d8d2c7;--editorial-green:#35443b;
  --editorial-gold:#c3a875;--editorial-red:#98483e;
  background:var(--editorial-paper);color:var(--editorial-ink);
  font-family:'Manrope',Arial,sans-serif;
}
body[data-page]:not([data-page="home"]) .topline{
  background:#171c19;color:#bdbdb3;border-bottom:1px solid #343b35;
  min-height:25px;padding:5px clamp(16px,4vw,60px);font-size:9px;letter-spacing:.16em;
}
body[data-page]:not([data-page="home"]) .header{
  background:rgba(29,35,31,.97);color:#f0ede5;border:0;border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 28px rgba(16,20,17,.12);backdrop-filter:blur(12px);
}
body[data-page]:not([data-page="home"]) .brand,body[data-page]:not([data-page="home"]) .brand b{color:#f2eee5}
body[data-page]:not([data-page="home"]) .brand small{color:#b9b9ae}
body[data-page]:not([data-page="home"]) .logo{background:#28332c;color:#d0b77e;border:1px solid #76694c}
body[data-page]:not([data-page="home"]) #nav>a,
body[data-page]:not([data-page="home"]) #nav .nav-trigger{color:#e3e0d7}
body[data-page]:not([data-page="home"]) #nav>a:hover,
body[data-page]:not([data-page="home"]) #nav .nav-trigger:hover{color:#d2b77b}
body[data-page]:not([data-page="home"]) .nav-trigger span{color:#c6a96e}
body[data-page]:not([data-page="home"]) .nav-menu,
body[data-page]:not([data-page="home"]) .profile-menu{background:#202722;border-color:#465047;box-shadow:0 18px 42px #10151055}
body[data-page]:not([data-page="home"]) .nav-menu a,
body[data-page]:not([data-page="home"]) .profile-menu a{color:#e9e5da}
body[data-page]:not([data-page="home"]) .nav-menu a:hover,
body[data-page]:not([data-page="home"]) .profile-menu a:hover{background:#354038;color:#e1c58a}
body[data-page]:not([data-page="home"]) .profile-link,
body[data-page]:not([data-page="home"]) .actions button,
body[data-page]:not([data-page="home"]) .menu{color:#eee9df;border-color:#596158;background:rgba(255,255,255,.035)}
body[data-page]:not([data-page="home"]) main#app{min-height:62vh}
/* A restrained image-led masthead for pages that do not already have a portal hero. */
body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero){
  position:relative;isolation:isolate;overflow:hidden;
  padding-top:clamp(48px,6vw,86px);padding-bottom:clamp(42px,5vw,70px);
}
body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero):before{
  content:"";position:absolute;z-index:-1;inset:0;
  background:linear-gradient(90deg,rgba(24,30,26,.96),rgba(24,30,26,.84) 58%,rgba(24,30,26,.68)),url('../assets/hero-battle-illustration.webp') center 42%/cover;
}
body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero) .heading{margin:0 auto;max-width:1180px;align-items:end}
body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero) .heading h1,
body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero) .heading h2{
  color:#f0ece2;font:500 clamp(36px,5vw,64px)/1.04 'Source Serif 4',Georgia,serif;letter-spacing:-.035em;
}
body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero) .heading p{color:#c8cbc2;max-width:590px;line-height:1.8}
body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero) .eyebrow{color:#d1b77d;letter-spacing:.18em}
body[data-page]:not([data-page="home"]) .portal-hero{
  border-radius:0;min-height:390px;display:flex;align-items:center;
  background-color:#202722;background-image:linear-gradient(90deg,rgba(20,26,22,.95),rgba(20,26,22,.76) 56%,rgba(20,26,22,.28)),linear-gradient(0deg,rgba(15,19,16,.42),transparent 70%),url('../assets/hero-battle-illustration.webp');
  background-position:center,center,center 44%;background-size:cover;color:#f1eee6;
}
body[data-page]:not([data-page="home"]) .portal-hero h1{font:500 clamp(42px,6vw,76px)/1.02 'Source Serif 4',Georgia,serif;letter-spacing:-.04em}
body[data-page]:not([data-page="home"]) .portal-hero h1 i{color:#d1b77d}
body[data-page]:not([data-page="home"]) .portal-hero p{color:#d1d2ca;max-width:680px;line-height:1.85}
body[data-page]:not([data-page="home"]) .portal-hero .eyebrow{color:#d1b77d;letter-spacing:.2em}
body[data-page]:not([data-page="home"]) .section{padding-top:clamp(38px,5vw,68px);padding-bottom:clamp(38px,5vw,68px)}
body[data-page]:not([data-page="home"]) .heading h1,
body[data-page]:not([data-page="home"]) .heading h2,
body[data-page]:not([data-page="home"]) main#app>section h2{font-family:'Source Serif 4',Georgia,serif;letter-spacing:-.025em}
body[data-page]:not([data-page="home"]) .eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em}
body[data-page]:not([data-page="home"]) .btn{border-radius:2px;letter-spacing:.035em}
body[data-page]:not([data-page="home"]) .btn:not(.secondary):not(.outline){background:#93483e;border-color:#93483e}
body[data-page]:not([data-page="home"]) .btn:not(.secondary):not(.outline):hover{background:#a9584c;border-color:#a9584c}
body[data-page]:not([data-page="home"]) .btn.secondary{border-radius:2px}
body[data-page]:not([data-page="home"]) .info-card,
body[data-page]:not([data-page="home"]) .pv-panel,
body[data-page]:not([data-page="home"]) .game-panel,
body[data-page]:not([data-page="home"]) .portal-form,
body[data-page]:not([data-page="home"]) .notice,
body[data-page]:not([data-page="home"]) .museum-card,
body[data-page]:not([data-page="home"]) .article-card,
body[data-page]:not([data-page="home"]) .profile-card{
  border-radius:3px;box-shadow:0 8px 26px rgba(40,42,35,.055);border-color:var(--editorial-line);
}
body[data-page]:not([data-page="home"]) .dark{background:#202722;color:#f0ede5}
body[data-page]:not([data-page="home"]) .dark .heading p{color:#c2c5bc}
body[data-page]:not([data-page="home"]) footer{background:#191f1b;color:#e7e3d9;border-top:1px solid #343b34}
body[data-page]:not([data-page="home"]) footer p,
body[data-page]:not([data-page="home"]) footer a{color:#bfc1b8}
body[data-page]:not([data-page="home"]) footer a:hover{color:#d4ba82}
body[data-page]:not([data-page="home"]) .footbottom{border-color:#3a4039;color:#aeb2a8}
body[data-page]:not([data-page="home"]) input,
body[data-page]:not([data-page="home"]) select,
body[data-page]:not([data-page="home"]) textarea{border-radius:2px}
/* The article reader remains a quiet reading surface, not a decorative hero. */
body[data-page="read"] main#app>section:first-child:not(.portal-hero){background:#f7f4ed}
body[data-page="read"] main#app>section:first-child:not(.portal-hero):before{display:none}
body[data-page="read"] main#app>section:first-child:not(.portal-hero) .heading h1,
body[data-page="read"] main#app>section:first-child:not(.portal-hero) .heading h2{color:#252923}
body[data-page="read"] main#app>section:first-child:not(.portal-hero) .heading p{color:#6e7169}
/* Operations and editorial workspaces retain dense controls and their own contrast. */
body[data-page="admin"] main#app>section:first-child:not(.portal-hero):before,
body[data-page="cms"] main#app>section:first-child:not(.portal-hero):before,
body[data-page="studio"] main#app>section:first-child:not(.portal-hero):before,
body[data-page="moderation"] main#app>section:first-child:not(.portal-hero):before{opacity:.94}
@media(max-width:760px){
 body[data-page]:not([data-page="home"]) .portal-hero{min-height:350px;background-position:center,center,58% center}
 body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero){padding-top:40px;padding-bottom:38px}
 body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero) .heading{display:block}
 body[data-page]:not([data-page="home"]) main#app>section:first-child:not(.portal-hero) .heading p{margin-top:14px}
 body[data-page]:not([data-page="home"]) .section{padding-top:34px;padding-bottom:34px}
}
@media(prefers-reduced-motion:no-preference){
 body[data-page]:not([data-page="home"]) .info-card,
 body[data-page]:not([data-page="home"]) .article-card,
 body[data-page]:not([data-page="home"]) .museum-card{transition:transform .22s ease,box-shadow .22s ease}
 body[data-page]:not([data-page="home"]) .info-card:hover,
 body[data-page]:not([data-page="home"]) .article-card:hover,
 body[data-page]:not([data-page="home"]) .museum-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(30,35,29,.11)}
}

/* v4.2.0 RC12 — documentary reading room */
body[data-page="read"] main#app>section:first-child:not(.portal-hero){max-width:1440px;padding-left:clamp(18px,5vw,76px);padding-right:clamp(18px,5vw,76px);margin:0 auto;background:transparent}
body[data-page="read"] #readHost{max-width:1240px;margin:0 auto}
.pv-breadcrumb{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 28px;color:var(--editorial-muted);font-size:11px;letter-spacing:.035em}
.pv-breadcrumb a{color:var(--editorial-muted);text-decoration:none}.pv-breadcrumb a:hover{color:var(--editorial-red)}
.pv-breadcrumb span:last-child{color:var(--editorial-ink);max-width:min(46vw,520px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-reading-header{max-width:900px;margin:0 auto 36px;padding:clamp(26px,4vw,54px) 0 30px;border-bottom:1px solid var(--editorial-line)}
.pv-reading-header .eyebrow{display:block;color:var(--editorial-red);font-size:10px;font-weight:800;letter-spacing:.18em;margin-bottom:16px}
.pv-reading-header .pv-title{margin:0;color:var(--editorial-ink);font:500 clamp(38px,6vw,70px)/1.04 'Source Serif 4',Georgia,serif;letter-spacing:-.045em;max-width:17ch}
.pv-deck{max-width:720px;margin:20px 0 0;color:#555b52;font:italic clamp(18px,2vw,23px)/1.55 'Source Serif 4',Georgia,serif}
.pv-reading-header .pv-meta{margin:22px 0 0;padding-top:14px;border-top:1px solid var(--editorial-line);gap:9px 20px;color:var(--editorial-muted)}
.pv-reading-header .pv-meta span{font-size:11px}
.pv-article{grid-template-columns:minmax(0, min(760px,1fr)) 250px;gap:clamp(28px,5vw,76px);justify-content:center}
.pv-reading-main{min-width:0}.pv-reader-aside{position:sticky;top:100px;display:grid;gap:22px;align-self:start}
.pv-reading-tools{display:flex;gap:7px;align-items:center;justify-content:flex-end;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid var(--editorial-line)}
.pv-reader-tool{border:1px solid var(--editorial-line);background:var(--editorial-card);color:var(--editorial-ink);padding:7px 11px;border-radius:2px;font:600 11px 'Manrope',sans-serif;cursor:pointer}
.pv-reader-tool:hover,.pv-reader-tool:focus-visible{border-color:var(--editorial-red);color:var(--editorial-red);outline-offset:2px}
.pv-figure{margin:0 0 30px}.pv-figure img{max-height:540px;border-radius:2px;object-fit:cover}.pv-figure figcaption{font-size:10px;line-height:1.6;letter-spacing:.015em}
.pv-reading-main .pv-prose{max-width:68ch;color:#30342e;font-size:18px;line-height:1.88}
.pv-reading-main .pv-prose h2{font:500 clamp(27px,3vw,36px)/1.15 'Source Serif 4',Georgia,serif;color:#29332c;margin:2.2em 0 .65em;padding-top:.45em;border-top:1px solid var(--editorial-line)}
.pv-reading-main .pv-prose h3{font:600 23px/1.25 'Source Serif 4',Georgia,serif;color:#39443b}
.pv-reading-main .pv-prose blockquote{border-left:2px solid var(--editorial-gold);background:#e8e2d6;padding:18px 22px;color:#54574e}
.pv-reader-aside .pv-toc{position:static;border:0;border-top:2px solid var(--editorial-green);padding:14px 0 0;gap:10px}
.pv-reader-aside .pv-toc b{font-size:10px;letter-spacing:.15em;color:var(--editorial-green);margin-bottom:4px}
.pv-reader-aside .pv-toc a{font-size:12px;line-height:1.45;color:#62675e}.pv-reader-aside .pv-toc a:hover{color:var(--editorial-red)}
.pv-reader-aside .vp-profile{margin:0;padding:18px;background:var(--editorial-card);border:1px solid var(--editorial-line);box-shadow:none}
.pv-profile-mobile{display:none}
.pv-reading-main #srcBox,.pv-reading-main #linkBox{max-width:100%;margin-top:38px;padding-top:18px;border-top:1px solid var(--editorial-line)}
.pv-reading-main #srcBox h2,.pv-reading-main #linkBox h2{font:500 28px 'Source Serif 4',Georgia,serif}
.pv-reading-main #srcBox li,.pv-reading-main #linkBox li{margin:8px 0;font-size:13px;line-height:1.6}
.pv-reading-main #comments{max-width:100%;margin-top:44px}
@media(max-width:900px){
 .pv-article{grid-template-columns:1fr;gap:28px}.pv-reader-aside{position:static;grid-row:1}
 .pv-reader-aside .vp-profile{display:grid}
 .pv-reader-aside .pv-toc{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;border-top:1px solid var(--editorial-line);border-bottom:1px solid var(--editorial-line);padding:12px 0}
 .pv-reader-aside .pv-toc b{width:100%}.pv-reader-aside .pv-toc a{padding:3px 0}
 .pv-reading-header{margin-bottom:24px}.pv-reading-header .pv-title{max-width:20ch}
}
@media(max-width:560px){.pv-breadcrumb{font-size:10px;margin-bottom:18px}.pv-reading-header{padding-top:18px}.pv-reading-header .pv-title{font-size:39px}.pv-reading-tools{justify-content:flex-start}.pv-reading-main .pv-prose{font-size:17px;line-height:1.78}.pv-figure img{max-height:320px}}
@media print{body[data-page="read"] main#app>section:first-child{max-width:none;padding:0;background:#fff}.pv-breadcrumb,.pv-reader-aside,.pv-reading-tools{display:none!important}.pv-reading-header{border:0;margin-bottom:12px}.pv-reading-header .pv-title{font-size:30px;color:#000}.pv-reading-main .pv-prose{max-width:none;color:#000;font-size:12pt}.pv-figure img{max-height:280px}}

/* v4.2.0 RC13 — battle dossiers and searchable exhibition index */
.battle-explorer-tools{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,220px) auto;gap:14px;align-items:end;margin:0 0 24px;padding:18px 20px;background:var(--editorial-card);border:1px solid var(--editorial-line);border-top:2px solid var(--editorial-green)}
.battle-explorer-tools label{display:grid;gap:7px;color:var(--editorial-muted);font-size:11px;font-weight:700;letter-spacing:.035em}
.battle-explorer-tools input,.battle-explorer-tools select{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--editorial-line);border-radius:2px;background:var(--editorial-paper);color:var(--editorial-ink);font:500 13px 'Manrope',sans-serif}
#battleCount{padding:0 0 12px;color:var(--editorial-muted);font-size:11px;white-space:nowrap}
.battle-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.battle-exhibit{position:relative;display:flex;flex-direction:column;min-width:0;padding:clamp(20px,2.5vw,30px);background:var(--editorial-card);border:1px solid var(--editorial-line);border-radius:2px;box-shadow:0 8px 26px rgba(40,42,35,.045);overflow:hidden}
.battle-exhibit:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(180deg,var(--editorial-gold),var(--editorial-red));opacity:.8}
.battle-exhibit-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--editorial-line)}
.battle-index{font:500 28px/1 'Source Serif 4',Georgia,serif;color:var(--editorial-gold)}
.battle-period{font-size:10px;font-weight:700;letter-spacing:.06em;text-align:right;color:var(--editorial-muted)}
.battle-exhibit h3{margin:20px 0 7px;font:500 clamp(23px,2.6vw,31px)/1.15 'Source Serif 4',Georgia,serif;letter-spacing:-.02em;color:var(--editorial-ink)}
.battle-place{margin:0 0 14px;color:var(--editorial-red);font-size:11px;font-weight:700;letter-spacing:.025em}
.battle-summary{color:var(--editorial-ink);font-size:13px;line-height:1.75}
.battle-facts{display:grid;gap:8px;margin:12px 0 20px;padding:14px 0 0;border-top:1px solid var(--editorial-line);list-style:none}
.battle-facts li{position:relative;padding-left:17px;color:var(--editorial-muted);font-size:11px;line-height:1.6}
.battle-facts li:before{content:"✦";position:absolute;left:0;top:0;color:var(--editorial-gold);font-size:9px}
.battle-exhibit-actions{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:auto;padding-top:14px;border-top:1px solid var(--editorial-line)}
.battle-exhibit-actions .textlink{font-size:11px;text-align:left}
.battle-method-note{max-width:900px;margin:22px auto 0;padding:14px 18px;border-left:2px solid var(--editorial-gold);background:rgba(177,151,99,.08);color:var(--editorial-muted);font-size:11px;line-height:1.7}
@media(max-width:760px){.battle-explorer-tools{grid-template-columns:1fr 1fr;padding:14px}.battle-explorer-tools label:first-child{grid-column:1/-1}#battleCount{grid-column:1/-1;padding:0}.battle-cards{grid-template-columns:1fr}.battle-exhibit{padding:20px}.battle-period{max-width:65%;line-height:1.5}}
@media(prefers-reduced-motion:no-preference){.battle-exhibit{transition:transform .2s ease,box-shadow .2s ease}.battle-exhibit:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(30,35,29,.1)}}

/* RC14 — biographical exhibition dossiers */
.dossier-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:270px;padding:26px 24px 22px;border-radius:3px;background:linear-gradient(145deg,var(--card),color-mix(in srgb,var(--card) 90%,var(--gold)));border-top:2px solid var(--gold)}
.dossier-card h3{font:clamp(23px,2vw,29px)/1.16 'Source Serif 4',Georgia,serif;margin:7px 0 12px}
.dossier-card>p:not(.profile-dates){font-size:14px;line-height:1.7;flex:1}
.dossier-card .profile-dates{font:600 12px Manrope,sans-serif;letter-spacing:.08em}
.dossier-card .textlink{margin-top:15px;padding:10px 0;border-bottom:1px solid color-mix(in srgb,var(--gold) 65%,transparent);color:var(--ink);font-size:12px}
.person-dossier .dossier-role{margin:10px 0 0;color:var(--gold);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.person-dossier h2{font:clamp(34px,5vw,52px)/1.05 'Source Serif 4',Georgia,serif;margin:8px 0 22px}
.dossier-years{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.dossier-years span{display:grid;gap:4px;min-width:145px;padding:13px 16px;border:1px solid var(--line);background:var(--surface)}
.dossier-years small{color:var(--muted);font-size:10px;letter-spacing:.1em;text-transform:uppercase}
.dossier-years b{font:600 18px 'Source Serif 4',Georgia,serif}
.dossier-section{padding:21px 0;border-top:1px solid var(--line)}
.dossier-section h3{font:24px 'Source Serif 4',Georgia,serif;margin:0 0 10px}
.dossier-section p,.dossier-section li{font-size:14px;line-height:1.8;color:var(--muted)}
.dossier-biography{font-size:16px!important;line-height:1.9!important;color:var(--ink)!important}
.dossier-research{padding:20px;background:var(--surface);border:1px solid var(--line);margin:8px 0}
.dossier-sources{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.dossier-sources li{margin:0}
.dossier-sources a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid var(--line);background:var(--surface);text-decoration:none}
.dossier-sources a b{white-space:nowrap;color:var(--gold);font-size:11px}
@media(max-width:680px){.dossier-card{min-height:0}.dossier-years span{flex:1 1 130px}.dossier-sources a{align-items:flex-start;flex-direction:column;gap:5px}}
