/* KOUANDA THEME SUCCESSOR v1.0. Parchment, limestone and umber; preserves Night Museum. */
/* KOUANDA appearance controller. Native details + radio controls; no dependency. */
html[data-kouanda-theme="night"] { color-scheme:dark; }
html[data-kouanda-theme="day"] { color-scheme:light; }
.k-theme-sr { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.k-theme-menu { position:relative;flex:0 0 auto;color:var(--ink); }
.k-theme-trigger { display:flex;align-items:center;justify-content:center;gap:7px;min-width:42px;height:42px;padding:0 10px;list-style:none;cursor:pointer;background:#100d0a;color:#f0e4cf;border:1px solid #826743;border-radius:6px; }
.k-theme-trigger::-webkit-details-marker { display:none; }
.k-theme-trigger::marker { content:''; }
.k-theme-caption { font-size:11px;letter-spacing:.02em; }
.k-theme-icon { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
.k-theme-sun { display:none; }
html[data-kouanda-theme="day"] .k-theme-sun { display:initial; }
html[data-kouanda-theme="day"] .k-theme-moon { display:none; }
.k-theme-panel { position:absolute;inset-block-start:calc(100% + 10px);inset-inline-end:0;width:250px;max-width:calc(100vw - 32px);padding:17px;background:#15110d;color:#f0e4cf;border:1px solid #826743;border-radius:12px;box-shadow:0 16px 48px #0006;z-index:1300; }
.k-theme-panel fieldset { padding:0;margin:0;border:0;min-width:0; }
.k-theme-panel legend { display:block;max-width:100%;font-size:12px;line-height:1.5;padding:0 0 10px;white-space:normal; }
.k-theme-option { display:flex;align-items:center;gap:10px;min-height:44px;padding:8px;border-radius:6px;cursor:pointer;font-size:13px; }
.k-theme-option:hover { background:#292016; }
.k-theme-option input { width:18px;height:18px;flex:0 0 auto;margin:0;accent-color:#e0ba73; }
.k-theme-option:has(input:checked) { background:#2d2217; }
.k-theme-option:has(input:focus-visible) { outline:2px solid #e0ba73;outline-offset:2px; }
.k-theme-trigger:focus-visible { outline:2px solid #e0ba73;outline-offset:3px; }
.k-theme-panel p { font-size:12px;line-height:1.6; }
/* The existing left-hand menu does not move. Only the new control contracts. */
@media(max-width:1440px){ .k-theme-caption {display:none;} .k-theme-trigger {width:42px;padding:0;} }
@media(max-width:700px){ .k-theme-trigger {width:38px;min-width:38px;height:40px;} .navtools {gap:4px;} }
@media(max-width:370px){ .nav {column-gap:6px;} .brand-mini {font-size:13px;letter-spacing:.07em;} .navtools .iconbtn {padding-inline:5px;min-width:32px;} }
@media(forced-colors:active){ .k-theme-trigger,.k-theme-panel{background:Canvas!important;color:CanvasText!important;border-color:ButtonText!important;} .k-theme-option:has(input:checked){outline:1px solid Highlight!important;} }

/* Explicit or OS-resolved Day Archive. */
html[data-kouanda-theme="day"] {
 color-scheme:light;
 --bg:#f4ecde;--bg2:#ece0cc;--panel:#faf5ec;--panel2:#eadbc2;
 --ink:#2d241c;--muted:#65533f;--gold:#795019;--gold2:#765019;--paper:#e4d2b3;
 --earth:#74522d;--line:#b09a78;--danger:#9b2d20;--ok:#395c28;--shadow:0 18px 50px rgba(67,44,20,.10);
 --museum-black:#f4ecde;--museum-black-2:#ece0cc;--museum-panel:#faf5ec;--museum-panel-2:#eadbc2;
 --museum-ivory:#2d241c;--museum-muted:#65533f;--museum-gold:#795019;--museum-gold-2:#765019;
 --museum-line:#baa484;--museum-hairline:#d1bfa3;--museum-shadow:0 28px 80px rgba(67,44,20,.12);
 --v2-gold:#795019;--v2-gold-soft:rgba(121,80,25,.13);--v2-ivory:#2d241c;--v2-panel:#faf5ec;--v2-line:#baa484;
 background:#f4ecde;color:#2d241c;
}
html[data-kouanda-theme="day"] body {background:radial-gradient(circle at 80% 0,rgba(178,131,61,.11),transparent 32%),linear-gradient(180deg,#f4ecde,#f7f1e7 48%,#ede0cc);color:#2d241c;}
html[data-kouanda-theme="day"] body::before {opacity:.10;}
html[data-kouanda-theme="day"] ::selection {background:#795019;color:#fff8ed;}
html[data-kouanda-theme="day"] :focus-visible {outline-color:#74450d;}
html[data-kouanda-theme="day"] .topbar {background:rgba(247,241,229,.98);border-color:#baa484;box-shadow:0 8px 30px #62431c12;}
html[data-kouanda-theme="day"] :is(.museum-menu-trigger,.navtools .iconbtn,.museum-search,.k-theme-trigger){background:#faf5ec;color:#38291a;border-color:#ab9170;}
html[data-kouanda-theme="day"] .brand-mini {color:#38291a;}
html[data-kouanda-theme="day"] .navlinks a {color:#57422b;}
html[data-kouanda-theme="day"] .navlinks a:is(:hover,:focus-visible,[aria-current="page"]) {color:#74450d;border-bottom-color:#74450d;}
html[data-kouanda-theme="day"] .navlinks.mobile-open {background:#faf5ec;border-color:#baa484;}
html[data-kouanda-theme="day"] .navlinks.mobile-open a {border-bottom-color:#d1bfa3;}
html[data-kouanda-theme="day"] .lang .iconbtn[aria-current="page"] {background:#795019;border-color:#795019;color:#fff8ed;}
html[data-kouanda-theme="day"] .k-theme-panel {background:#faf5ec;color:#38291a;border-color:#ab9170;box-shadow:0 16px 48px #49341925;}
html[data-kouanda-theme="day"] .k-theme-option:hover {background:#ece0cc;}
html[data-kouanda-theme="day"] .k-theme-option:has(input:checked) {background:#e8d9bd;}
html[data-kouanda-theme="day"] .k-theme-option input {accent-color:#795019;}
html[data-kouanda-theme="day"] :is(.k-theme-option:has(input:focus-visible),.k-theme-trigger:focus-visible) {outline-color:#74450d;}
html[data-kouanda-theme="day"] .pagehead {background:radial-gradient(circle at 80% 0,#d5b58226,transparent 40%);border-bottom-color:#baa484;}
html[data-kouanda-theme="day"] .pagehead .shell::after {border-color:#cfb995;background:linear-gradient(120deg,transparent,#b58a4530);}
html[data-kouanda-theme="day"] :is(.pagehead h1,.section h2,.section h3,.section h4,.detail-panel h2,.v2-wing h3,.v2-gallery-body h3,.v2-person-body h3,.v2-collection-card-body h3,.object-meta h2){color:#38291a;}
html[data-kouanda-theme="day"] :is(.lede,.pagehead .lede,.card p,.meta,.v2-hero-copy,.hero-intro,.home-intro,.v2-section-head p,.v2-wing p,.v2-chapter-head p,.v2-people-group-head p,.v2-legend-card p,.v2-person-body p,.v2-gallery-body p,.v2-collection-card-body p,.home-feature-grid p,.story-audio-card p,.search-record p,.contribution-steps span,.consent-line,.kv div,.kv p){color:#65533f;}
html[data-kouanda-theme="day"] :is(.eyebrow,.field label,.table th,.kv small,.entity-icon,.search-status,.v2-repertoire-tools .field label,.v2-repertoire-count,.collection-count,.library-stat strong,.library-stat span){color:#765019;}
html[data-kouanda-theme="day"] :is(.semantic-inline,.source-list a,.v2-gallery-body a:last-child,.v2-person-body a:last-child,.v2-collection-card-body a,.repertoire-card .pad>a:last-child,.collection-item .pad>a:last-child,.routecrumb a){color:#74450d;}
html[data-kouanda-theme="day"] .semantic-inline:is(:hover,:focus-visible){color:#4c2b06;}
html[data-kouanda-theme="day"] .section {border-color:#d1bfa3;}
html[data-kouanda-theme="day"] :is(.card,.v2-start-card,.v2-wing,.v2-gallery-card,.v2-person-card,.v2-collection-card,.v2-legend-card,.v2-context-links a,.v2-samory-relation,.home-evidence-card,.institution-card,.object-meta,.layer-panel,.detail-panel,.library-stat,.repertoire-controls,.v2-repertoire-tools,.semantic-card,.team-role,.documentary-listen,.oral-testimony-boundary,.podcast-player,.family-callout){background:linear-gradient(145deg,#faf5ec,#eee2cc);color:#2d241c;border-color:#baa484;box-shadow:0 10px 30px #73512a0c;}
html[data-kouanda-theme="day"] :is(.v2-start-card:hover,.v2-start-card:focus-visible,.v2-samory-relation:hover,.v2-samory-relation:focus-visible,.semantic-card:hover){background:#e8d9bd;border-color:#795019;}
html[data-kouanda-theme="day"] :is(.v2-start-card strong,.semantic-card strong,.object-meta .kv strong,.v2-context-banner strong){color:#38291a;}
html[data-kouanda-theme="day"] :is(.v2-start-card small,.v2-context-links small,.v2-samory-relation small,.semantic-card small,.routecrumb){color:#65533f;}
html[data-kouanda-theme="day"] .v2-start-card::before {color:#79501933;}
html[data-kouanda-theme="day"] .v2-wing::before {color:#79501918;}
html[data-kouanda-theme="day"] :is(.v2-chapter-num,.v2-museum-count,.institution-number,.story-audio-index){color:#8c6838;}
html[data-kouanda-theme="day"] .v2-wing-links a {color:#624116;border-color:#ab9170;}
html[data-kouanda-theme="day"] .v2-wing-links a:hover {background:#e8d9bd;color:#38291a;}
html[data-kouanda-theme="day"] :is(.v2-chapter-nav,.v2-context-banner,.v2-not-kin,.claim,.notice,.timeline,.milestone,.relationship,.contribution-steps div,.place-reference-list li){background:#ecdfc9;color:#38291a;border-color:#baa484;}
html[data-kouanda-theme="day"] .v2-chapter-nav a {color:#60492f;}
html[data-kouanda-theme="day"] .v2-chapter-nav a:hover {background:#e0cba8;color:#38291a;}
html[data-kouanda-theme="day"] :is(.notice strong,.v2-context-badge,.relationship .edge) {color:#624116;}
html[data-kouanda-theme="day"] :is(.provenance,.claim .provenance){color:#65533f;border-color:#ab9170;}
html[data-kouanda-theme="day"] .badge {background:#e8d9bd;color:#574021;border-color:#9d8057;}
html[data-kouanda-theme="day"] :is(.badge.open,.v2-context-badge){background:#f2e0c4;color:#6b3819;border-color:#a9855a;}
html[data-kouanda-theme="day"] :is(.btn,.pill,.iconbtn,.k-icon,.k-play,.k-pill,.k-speed select){background:#faf5ec;color:#49321d;border-color:#94734a;}
html[data-kouanda-theme="day"] :is(.btn:hover,.pill:hover,.iconbtn:hover){background:#e8d9bd;border-color:#795019;}
html[data-kouanda-theme="day"] :is(.btn.primary,.pill.active,.k-source-link){background:#795019!important;color:#fff8ed!important;border-color:#795019;}
html[data-kouanda-theme="day"] .btn.paper {background:#e4d2b3;color:#38291a;}
html[data-kouanda-theme="day"] .paper {background:linear-gradient(145deg,#ebd7b5,#dbc098);color:#38291a;border-color:#b08c5b;}
html[data-kouanda-theme="day"] .paper :is(h1,h2,h3,h4,p,.meta){color:#48301a;}
html[data-kouanda-theme="day"] :is(input,select,textarea){accent-color:#795019;}
html[data-kouanda-theme="day"] :is(.field input,.field select,.field textarea,.searchbar input,.v2-repertoire-tools input,.v2-repertoire-tools select){background:#fffaf2;color:#38291a;border-color:#ab9170;}
html[data-kouanda-theme="day"] :is(.table td,.table th,.kv,.layer-row){border-color:#cfb995;}
html[data-kouanda-theme="day"] .privacy-chip{background:#e2ead4;color:#33491f;border-color:#719052;}
html[data-kouanda-theme="day"] .identity-plate{background:radial-gradient(circle at 28% 24%,#b68b4440,transparent 40%),linear-gradient(145deg,#ecdfc9,#f8f2e7);border-color:#baa484;}
html[data-kouanda-theme="day"] .identity-plate::before{border-color:#a88b6280;}
html[data-kouanda-theme="day"] .identity-initials{color:#76532b;}
html[data-kouanda-theme="day"] .identity-note{color:#695338;}
html[data-kouanda-theme="day"] .v2-hero{background:#f4ecde;border-color:#baa484;}
html[data-kouanda-theme="day"] .v2-hero::before{background:radial-gradient(circle at 70% 32%,#cba25d42,transparent 28%),url('/assets/geography/west-africa-reference-day.svg') 78% 45%/min(63vw,980px) auto no-repeat;opacity:.64;filter:none;}
html[data-kouanda-theme="day"] .v2-hero::after{background:linear-gradient(90deg,rgba(244,236,222,.99),rgba(244,236,222,.92) 42%,rgba(244,236,222,.22) 74%,rgba(244,236,222,.70));}
html[data-kouanda-theme="day"] .v2-hero h1{color:#38291a;text-shadow:0 12px 32px #7950190d;}
html[data-kouanda-theme="day"] .v2-hero-subtitle{color:#674821;}
html[data-kouanda-theme="day"] .home-hero {background:#f4ecde;}
html[data-kouanda-theme="day"] .home-hero::after{background:linear-gradient(90deg,#f4ecdefa,#f4ecdeba 47%,#f4ecde4a 74%,#f4ecdee0);}
html[data-kouanda-theme="day"] .home-kouanda{color:#38291a;text-shadow:none;}
html[data-kouanda-theme="day"] .home-archive-title{color:#674821;}
html[data-kouanda-theme="day"] .home-portal{background:#faf5ec;color:#38291a;border-color:#baa484;}
html[data-kouanda-theme="day"] .home-portal small{color:#65533f;}
html[data-kouanda-theme="day"] .home-portal b{color:#765019;}
html[data-kouanda-theme="day"] .home-map-ghost{background-image:url('/assets/geography/west-africa-reference-day.svg');filter:none;}
html[data-kouanda-theme="day"] .listen-orb{border-color:#795019;color:#795019;background:radial-gradient(circle,#c5a06a55,transparent 68%);}
/* Photographs and artifact plates remain unmodified. Image-overlay captions stay ivory. */
html[data-kouanda-theme="day"] :is(.v2-object,.v2-gallery-media,.gallery-image,.person-visual,.collection-visual,.home-media,.exhibition-media){background:#211a12;border-color:#a88b62;}
html[data-kouanda-theme="day"] :is(.v2-object-copy strong,.home-media-copy strong,.collection-copy h3,.gallery-copy h3){color:#fff8ed;}
html[data-kouanda-theme="day"] :is(.v2-object-copy small,.home-media-copy small){color:#f0ce91;}
html[data-kouanda-theme="day"] .v2-gallery-number{background:#211a12;color:#fff8ed;border-color:#c6a87a;}
html[data-kouanda-theme="day"] .home-atlas-preview{background-color:#eadcc5;background-image:url('/assets/geography/west-africa-reference-day.svg');border-color:#baa484;}
html[data-kouanda-theme="day"] .home-atlas-preview::after{background:linear-gradient(180deg,transparent 30%,rgba(244,236,222,.94) 66%);}
html[data-kouanda-theme="day"] .home-atlas-copy :is(h3,p){color:#38291a;}
html[data-kouanda-theme="day"] .home-atlas-copy .eyebrow{color:#624116;}
html[data-kouanda-theme="day"] .media-figure{background:#e9d8bb;color:#38291a;}
html[data-kouanda-theme="day"] .media-figure figcaption{background:#f4ecde;color:#49351e;border-color:#baa484;}
html[data-kouanda-theme="day"] .object-viewer,html[data-kouanda-theme="day"] .object-viewer img{background:#e8dcc8;border-color:#baa484;}
html[data-kouanda-theme="day"] .collection-source-chip {background:#211a12;color:#f0ce91;border-color:#c6a87a;}
html[data-kouanda-theme="day"] .source-inspectable::after{background:#211a12;color:#f0ce91;}
/* Palette changes only. Projection, map geometry, controls and place positions are retained. */
html[data-kouanda-theme="day"] .real-geography-map{background:#efe3cf!important;border-color:#baa484;box-shadow:0 22px 60px #74522d20;}
html[data-kouanda-theme="day"] .real-geography-map::before{content:'';position:absolute;inset:0;background:#efe3cf url('/assets/geography/west-africa-reference-day.svg') center/contain no-repeat;z-index:0;pointer-events:none;}
html[data-kouanda-theme="day"] .real-geography-map.atlas-ready::before{visibility:hidden;}
html[data-kouanda-theme="day"] .real-geography-map .atlas-static-map{visibility:hidden;}
html[data-kouanda-theme="day"] .real-geography-map .geo-map{background:#efe3cf!important;}
html[data-kouanda-theme="day"] .real-geography-map::after{background:linear-gradient(180deg,transparent,#9c733217);}
html[data-kouanda-theme="day"] .geo-country{fill:#d8c7a9!important;stroke:#877254!important;}
html[data-kouanda-theme="day"] .geo-country:hover{fill:#cbae7e!important;}
html[data-kouanda-theme="day"] .geo-country.is-focus-country{fill:#b68544!important;stroke:#68471f!important;}
html[data-kouanda-theme="day"] .geo-coast{stroke:#634725!important;}
html[data-kouanda-theme="day"] .geo-place circle{fill:#754609!important;stroke:#fff6e6!important;}
html[data-kouanda-theme="day"] .geo-place:focus-visible circle{stroke:#1e4562!important;stroke-width:5!important;}
html[data-kouanda-theme="day"] :is(.geo-place text,.geo-place-label){fill:#38291a!important;stroke:#f4ecde!important;}
html[data-kouanda-theme="day"] .atlas-real-controls .pill{background:#faf5ec;color:#38291a;border-color:#ab9170;}
html[data-kouanda-theme="day"] .atlas-state{background:#faf5ecf5;color:#49351e;border-color:#ab9170;}
html[data-kouanda-theme="day"] .place-reference-list li:hover{background:#e5d3b3;border-color:#795019;}
html[data-kouanda-theme="day"] .place-reference-list small{color:#65533f;}
html[data-kouanda-theme="day"] .footer{background:#e8dbc4;border-color:#baa484;color:#65533f;}
html[data-kouanda-theme="day"] .footer-brand{color:#49321d;}
html[data-kouanda-theme="day"] :is(.footer-links a,.footer-summary,.footer-note,.footer-utility){color:#624b32;}
html[data-kouanda-theme="day"] .footer a:hover{color:#4c2b06;}
html[data-kouanda-theme="day"] .k-player{background:linear-gradient(145deg,#faf5ec,#ecdfc9);color:#38291a;border-color:#94734a;box-shadow:0 20px 60px #62431c30;}
html[data-kouanda-theme="day"] :is(.k-player__eyebrow,.k-drawer__eyebrow){color:#765019;}
html[data-kouanda-theme="day"] :is(.k-player__identity span:last-child,.k-player__timeline,.k-speed){color:#65533f;}
html[data-kouanda-theme="day"] .k-drawer{background:linear-gradient(160deg,#faf5ec,#ede0ca);color:#38291a;border-color:#baa484;box-shadow:-20px 0 60px #62431c25;}
html[data-kouanda-theme="day"] .k-drawer h2{color:#38291a;}
html[data-kouanda-theme="day"] .k-drawer__close{background:#faf5ec;color:#38291a;border-color:#94734a;}
html[data-kouanda-theme="day"] .k-drawer__body{color:#49351e;}
html[data-kouanda-theme="day"] .k-drawer__row{border-color:#cbb697;}
html[data-kouanda-theme="day"] .k-drawer__row span{color:#765019;}
html[data-kouanda-theme="day"] .k-drawer__row strong{color:#49351e;}
html[data-kouanda-theme="day"] .kouanda-scroll-progress{background:linear-gradient(90deg,#73501e,#98703b,#60421c);box-shadow:none;}

/* No-JavaScript fallback follows the OS; manual choice requires JavaScript. */
@media (prefers-color-scheme:light){
html:not([data-kouanda-theme]) {
 color-scheme:light;
 --bg:#f4ecde;--bg2:#ece0cc;--panel:#faf5ec;--panel2:#eadbc2;
 --ink:#2d241c;--muted:#65533f;--gold:#795019;--gold2:#765019;--paper:#e4d2b3;
 --earth:#74522d;--line:#b09a78;--danger:#9b2d20;--ok:#395c28;--shadow:0 18px 50px rgba(67,44,20,.10);
 --museum-black:#f4ecde;--museum-black-2:#ece0cc;--museum-panel:#faf5ec;--museum-panel-2:#eadbc2;
 --museum-ivory:#2d241c;--museum-muted:#65533f;--museum-gold:#795019;--museum-gold-2:#765019;
 --museum-line:#baa484;--museum-hairline:#d1bfa3;--museum-shadow:0 28px 80px rgba(67,44,20,.12);
 --v2-gold:#795019;--v2-gold-soft:rgba(121,80,25,.13);--v2-ivory:#2d241c;--v2-panel:#faf5ec;--v2-line:#baa484;
 background:#f4ecde;color:#2d241c;
}
html:not([data-kouanda-theme]) body {background:radial-gradient(circle at 80% 0,rgba(178,131,61,.11),transparent 32%),linear-gradient(180deg,#f4ecde,#f7f1e7 48%,#ede0cc);color:#2d241c;}
html:not([data-kouanda-theme]) body::before {opacity:.10;}
html:not([data-kouanda-theme]) ::selection {background:#795019;color:#fff8ed;}
html:not([data-kouanda-theme]) :focus-visible {outline-color:#74450d;}
html:not([data-kouanda-theme]) .topbar {background:rgba(247,241,229,.98);border-color:#baa484;box-shadow:0 8px 30px #62431c12;}
html:not([data-kouanda-theme]) :is(.museum-menu-trigger,.navtools .iconbtn,.museum-search,.k-theme-trigger){background:#faf5ec;color:#38291a;border-color:#ab9170;}
html:not([data-kouanda-theme]) .brand-mini {color:#38291a;}
html:not([data-kouanda-theme]) .navlinks a {color:#57422b;}
html:not([data-kouanda-theme]) .navlinks a:is(:hover,:focus-visible,[aria-current="page"]) {color:#74450d;border-bottom-color:#74450d;}
html:not([data-kouanda-theme]) .navlinks.mobile-open {background:#faf5ec;border-color:#baa484;}
html:not([data-kouanda-theme]) .navlinks.mobile-open a {border-bottom-color:#d1bfa3;}
html:not([data-kouanda-theme]) .lang .iconbtn[aria-current="page"] {background:#795019;border-color:#795019;color:#fff8ed;}
html:not([data-kouanda-theme]) .k-theme-panel {background:#faf5ec;color:#38291a;border-color:#ab9170;box-shadow:0 16px 48px #49341925;}
html:not([data-kouanda-theme]) .k-theme-option:hover {background:#ece0cc;}
html:not([data-kouanda-theme]) .k-theme-option:has(input:checked) {background:#e8d9bd;}
html:not([data-kouanda-theme]) .k-theme-option input {accent-color:#795019;}
html:not([data-kouanda-theme]) :is(.k-theme-option:has(input:focus-visible),.k-theme-trigger:focus-visible) {outline-color:#74450d;}
html:not([data-kouanda-theme]) .pagehead {background:radial-gradient(circle at 80% 0,#d5b58226,transparent 40%);border-bottom-color:#baa484;}
html:not([data-kouanda-theme]) .pagehead .shell::after {border-color:#cfb995;background:linear-gradient(120deg,transparent,#b58a4530);}
html:not([data-kouanda-theme]) :is(.pagehead h1,.section h2,.section h3,.section h4,.detail-panel h2,.v2-wing h3,.v2-gallery-body h3,.v2-person-body h3,.v2-collection-card-body h3,.object-meta h2){color:#38291a;}
html:not([data-kouanda-theme]) :is(.lede,.pagehead .lede,.card p,.meta,.v2-hero-copy,.hero-intro,.home-intro,.v2-section-head p,.v2-wing p,.v2-chapter-head p,.v2-people-group-head p,.v2-legend-card p,.v2-person-body p,.v2-gallery-body p,.v2-collection-card-body p,.home-feature-grid p,.story-audio-card p,.search-record p,.contribution-steps span,.consent-line,.kv div,.kv p){color:#65533f;}
html:not([data-kouanda-theme]) :is(.eyebrow,.field label,.table th,.kv small,.entity-icon,.search-status,.v2-repertoire-tools .field label,.v2-repertoire-count,.collection-count,.library-stat strong,.library-stat span){color:#765019;}
html:not([data-kouanda-theme]) :is(.semantic-inline,.source-list a,.v2-gallery-body a:last-child,.v2-person-body a:last-child,.v2-collection-card-body a,.repertoire-card .pad>a:last-child,.collection-item .pad>a:last-child,.routecrumb a){color:#74450d;}
html:not([data-kouanda-theme]) .semantic-inline:is(:hover,:focus-visible){color:#4c2b06;}
html:not([data-kouanda-theme]) .section {border-color:#d1bfa3;}
html:not([data-kouanda-theme]) :is(.card,.v2-start-card,.v2-wing,.v2-gallery-card,.v2-person-card,.v2-collection-card,.v2-legend-card,.v2-context-links a,.v2-samory-relation,.home-evidence-card,.institution-card,.object-meta,.layer-panel,.detail-panel,.library-stat,.repertoire-controls,.v2-repertoire-tools,.semantic-card,.team-role,.documentary-listen,.oral-testimony-boundary,.podcast-player,.family-callout){background:linear-gradient(145deg,#faf5ec,#eee2cc);color:#2d241c;border-color:#baa484;box-shadow:0 10px 30px #73512a0c;}
html:not([data-kouanda-theme]) :is(.v2-start-card:hover,.v2-start-card:focus-visible,.v2-samory-relation:hover,.v2-samory-relation:focus-visible,.semantic-card:hover){background:#e8d9bd;border-color:#795019;}
html:not([data-kouanda-theme]) :is(.v2-start-card strong,.semantic-card strong,.object-meta .kv strong,.v2-context-banner strong){color:#38291a;}
html:not([data-kouanda-theme]) :is(.v2-start-card small,.v2-context-links small,.v2-samory-relation small,.semantic-card small,.routecrumb){color:#65533f;}
html:not([data-kouanda-theme]) .v2-start-card::before {color:#79501933;}
html:not([data-kouanda-theme]) .v2-wing::before {color:#79501918;}
html:not([data-kouanda-theme]) :is(.v2-chapter-num,.v2-museum-count,.institution-number,.story-audio-index){color:#8c6838;}
html:not([data-kouanda-theme]) .v2-wing-links a {color:#624116;border-color:#ab9170;}
html:not([data-kouanda-theme]) .v2-wing-links a:hover {background:#e8d9bd;color:#38291a;}
html:not([data-kouanda-theme]) :is(.v2-chapter-nav,.v2-context-banner,.v2-not-kin,.claim,.notice,.timeline,.milestone,.relationship,.contribution-steps div,.place-reference-list li){background:#ecdfc9;color:#38291a;border-color:#baa484;}
html:not([data-kouanda-theme]) .v2-chapter-nav a {color:#60492f;}
html:not([data-kouanda-theme]) .v2-chapter-nav a:hover {background:#e0cba8;color:#38291a;}
html:not([data-kouanda-theme]) :is(.notice strong,.v2-context-badge,.relationship .edge) {color:#624116;}
html:not([data-kouanda-theme]) :is(.provenance,.claim .provenance){color:#65533f;border-color:#ab9170;}
html:not([data-kouanda-theme]) .badge {background:#e8d9bd;color:#574021;border-color:#9d8057;}
html:not([data-kouanda-theme]) :is(.badge.open,.v2-context-badge){background:#f2e0c4;color:#6b3819;border-color:#a9855a;}
html:not([data-kouanda-theme]) :is(.btn,.pill,.iconbtn,.k-icon,.k-play,.k-pill,.k-speed select){background:#faf5ec;color:#49321d;border-color:#94734a;}
html:not([data-kouanda-theme]) :is(.btn:hover,.pill:hover,.iconbtn:hover){background:#e8d9bd;border-color:#795019;}
html:not([data-kouanda-theme]) :is(.btn.primary,.pill.active,.k-source-link){background:#795019!important;color:#fff8ed!important;border-color:#795019;}
html:not([data-kouanda-theme]) .btn.paper {background:#e4d2b3;color:#38291a;}
html:not([data-kouanda-theme]) .paper {background:linear-gradient(145deg,#ebd7b5,#dbc098);color:#38291a;border-color:#b08c5b;}
html:not([data-kouanda-theme]) .paper :is(h1,h2,h3,h4,p,.meta){color:#48301a;}
html:not([data-kouanda-theme]) :is(input,select,textarea){accent-color:#795019;}
html:not([data-kouanda-theme]) :is(.field input,.field select,.field textarea,.searchbar input,.v2-repertoire-tools input,.v2-repertoire-tools select){background:#fffaf2;color:#38291a;border-color:#ab9170;}
html:not([data-kouanda-theme]) :is(.table td,.table th,.kv,.layer-row){border-color:#cfb995;}
html:not([data-kouanda-theme]) .privacy-chip{background:#e2ead4;color:#33491f;border-color:#719052;}
html:not([data-kouanda-theme]) .identity-plate{background:radial-gradient(circle at 28% 24%,#b68b4440,transparent 40%),linear-gradient(145deg,#ecdfc9,#f8f2e7);border-color:#baa484;}
html:not([data-kouanda-theme]) .identity-plate::before{border-color:#a88b6280;}
html:not([data-kouanda-theme]) .identity-initials{color:#76532b;}
html:not([data-kouanda-theme]) .identity-note{color:#695338;}
html:not([data-kouanda-theme]) .v2-hero{background:#f4ecde;border-color:#baa484;}
html:not([data-kouanda-theme]) .v2-hero::before{background:radial-gradient(circle at 70% 32%,#cba25d42,transparent 28%),url('/assets/geography/west-africa-reference-day.svg') 78% 45%/min(63vw,980px) auto no-repeat;opacity:.64;filter:none;}
html:not([data-kouanda-theme]) .v2-hero::after{background:linear-gradient(90deg,rgba(244,236,222,.99),rgba(244,236,222,.92) 42%,rgba(244,236,222,.22) 74%,rgba(244,236,222,.70));}
html:not([data-kouanda-theme]) .v2-hero h1{color:#38291a;text-shadow:0 12px 32px #7950190d;}
html:not([data-kouanda-theme]) .v2-hero-subtitle{color:#674821;}
html:not([data-kouanda-theme]) .home-hero {background:#f4ecde;}
html:not([data-kouanda-theme]) .home-hero::after{background:linear-gradient(90deg,#f4ecdefa,#f4ecdeba 47%,#f4ecde4a 74%,#f4ecdee0);}
html:not([data-kouanda-theme]) .home-kouanda{color:#38291a;text-shadow:none;}
html:not([data-kouanda-theme]) .home-archive-title{color:#674821;}
html:not([data-kouanda-theme]) .home-portal{background:#faf5ec;color:#38291a;border-color:#baa484;}
html:not([data-kouanda-theme]) .home-portal small{color:#65533f;}
html:not([data-kouanda-theme]) .home-portal b{color:#765019;}
html:not([data-kouanda-theme]) .home-map-ghost{background-image:url('/assets/geography/west-africa-reference-day.svg');filter:none;}
html:not([data-kouanda-theme]) .listen-orb{border-color:#795019;color:#795019;background:radial-gradient(circle,#c5a06a55,transparent 68%);}
/* Photographs and artifact plates remain unmodified. Image-overlay captions stay ivory. */
html:not([data-kouanda-theme]) :is(.v2-object,.v2-gallery-media,.gallery-image,.person-visual,.collection-visual,.home-media,.exhibition-media){background:#211a12;border-color:#a88b62;}
html:not([data-kouanda-theme]) :is(.v2-object-copy strong,.home-media-copy strong,.collection-copy h3,.gallery-copy h3){color:#fff8ed;}
html:not([data-kouanda-theme]) :is(.v2-object-copy small,.home-media-copy small){color:#f0ce91;}
html:not([data-kouanda-theme]) .v2-gallery-number{background:#211a12;color:#fff8ed;border-color:#c6a87a;}
html:not([data-kouanda-theme]) .home-atlas-preview{background-color:#eadcc5;background-image:url('/assets/geography/west-africa-reference-day.svg');border-color:#baa484;}
html:not([data-kouanda-theme]) .home-atlas-preview::after{background:linear-gradient(180deg,transparent 30%,rgba(244,236,222,.94) 66%);}
html:not([data-kouanda-theme]) .home-atlas-copy :is(h3,p){color:#38291a;}
html:not([data-kouanda-theme]) .home-atlas-copy .eyebrow{color:#624116;}
html:not([data-kouanda-theme]) .media-figure{background:#e9d8bb;color:#38291a;}
html:not([data-kouanda-theme]) .media-figure figcaption{background:#f4ecde;color:#49351e;border-color:#baa484;}
html:not([data-kouanda-theme]) .object-viewer,html:not([data-kouanda-theme]) .object-viewer img{background:#e8dcc8;border-color:#baa484;}
html:not([data-kouanda-theme]) .collection-source-chip {background:#211a12;color:#f0ce91;border-color:#c6a87a;}
html:not([data-kouanda-theme]) .source-inspectable::after{background:#211a12;color:#f0ce91;}
/* Palette changes only. Projection, map geometry, controls and place positions are retained. */
html:not([data-kouanda-theme]) .real-geography-map{background:#efe3cf!important;border-color:#baa484;box-shadow:0 22px 60px #74522d20;}
html:not([data-kouanda-theme]) .real-geography-map::before{content:'';position:absolute;inset:0;background:#efe3cf url('/assets/geography/west-africa-reference-day.svg') center/contain no-repeat;z-index:0;pointer-events:none;}
html:not([data-kouanda-theme]) .real-geography-map.atlas-ready::before{visibility:hidden;}
html:not([data-kouanda-theme]) .real-geography-map .atlas-static-map{visibility:hidden;}
html:not([data-kouanda-theme]) .real-geography-map .geo-map{background:#efe3cf!important;}
html:not([data-kouanda-theme]) .real-geography-map::after{background:linear-gradient(180deg,transparent,#9c733217);}
html:not([data-kouanda-theme]) .geo-country{fill:#d8c7a9!important;stroke:#877254!important;}
html:not([data-kouanda-theme]) .geo-country:hover{fill:#cbae7e!important;}
html:not([data-kouanda-theme]) .geo-country.is-focus-country{fill:#b68544!important;stroke:#68471f!important;}
html:not([data-kouanda-theme]) .geo-coast{stroke:#634725!important;}
html:not([data-kouanda-theme]) .geo-place circle{fill:#754609!important;stroke:#fff6e6!important;}
html:not([data-kouanda-theme]) .geo-place:focus-visible circle{stroke:#1e4562!important;stroke-width:5!important;}
html:not([data-kouanda-theme]) :is(.geo-place text,.geo-place-label){fill:#38291a!important;stroke:#f4ecde!important;}
html:not([data-kouanda-theme]) .atlas-real-controls .pill{background:#faf5ec;color:#38291a;border-color:#ab9170;}
html:not([data-kouanda-theme]) .atlas-state{background:#faf5ecf5;color:#49351e;border-color:#ab9170;}
html:not([data-kouanda-theme]) .place-reference-list li:hover{background:#e5d3b3;border-color:#795019;}
html:not([data-kouanda-theme]) .place-reference-list small{color:#65533f;}
html:not([data-kouanda-theme]) .footer{background:#e8dbc4;border-color:#baa484;color:#65533f;}
html:not([data-kouanda-theme]) .footer-brand{color:#49321d;}
html:not([data-kouanda-theme]) :is(.footer-links a,.footer-summary,.footer-note,.footer-utility){color:#624b32;}
html:not([data-kouanda-theme]) .footer a:hover{color:#4c2b06;}
html:not([data-kouanda-theme]) .k-player{background:linear-gradient(145deg,#faf5ec,#ecdfc9);color:#38291a;border-color:#94734a;box-shadow:0 20px 60px #62431c30;}
html:not([data-kouanda-theme]) :is(.k-player__eyebrow,.k-drawer__eyebrow){color:#765019;}
html:not([data-kouanda-theme]) :is(.k-player__identity span:last-child,.k-player__timeline,.k-speed){color:#65533f;}
html:not([data-kouanda-theme]) .k-drawer{background:linear-gradient(160deg,#faf5ec,#ede0ca);color:#38291a;border-color:#baa484;box-shadow:-20px 0 60px #62431c25;}
html:not([data-kouanda-theme]) .k-drawer h2{color:#38291a;}
html:not([data-kouanda-theme]) .k-drawer__close{background:#faf5ec;color:#38291a;border-color:#94734a;}
html:not([data-kouanda-theme]) .k-drawer__body{color:#49351e;}
html:not([data-kouanda-theme]) .k-drawer__row{border-color:#cbb697;}
html:not([data-kouanda-theme]) .k-drawer__row span{color:#765019;}
html:not([data-kouanda-theme]) .k-drawer__row strong{color:#49351e;}
html:not([data-kouanda-theme]) .kouanda-scroll-progress{background:linear-gradient(90deg,#73501e,#98703b,#60421c);box-shadow:none;}

html:not([data-kouanda-theme]) .k-theme-sun{display:initial;}
html:not([data-kouanda-theme]) .k-theme-moon{display:none;}
}

@media (prefers-reduced-motion:reduce){.k-theme-menu *{transition:none!important;animation:none!important;}}
/* Explicit visibility is not a motion effect. Hidden panels must stay hidden
   when the inherited reduced-motion stylesheet removes their transforms. */
#kouanda-source-drawer[aria-hidden="true"]{visibility:hidden;pointer-events:none;}
#kouanda-source-drawer[aria-hidden="false"]{visibility:visible;pointer-events:auto;}
#kouanda-global-player[data-state="idle"],#kouanda-global-player[data-state="closed"]{visibility:hidden;pointer-events:none;}
/* On narrow screens the panel is anchored to the viewport-wide sticky header,
   rather than extending left of the compact appearance icon. */
@media(max-width:700px){.k-theme-panel{position:fixed;inset-inline-start:auto;inset-inline-end:14px;inset-block-start:calc(var(--header-h) + 8px);}}
