/* Agraw night palette: forest green, warm cream, teal and terracotta. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;padding:5px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);line-height:1;cursor:pointer}.theme-toggle svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.theme-toggle .theme-sun{display:none}.theme-toggle:hover{color:var(--blue);border-color:var(--blue)}.theme-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
html[data-theme=dark]{--paper:#10251f;--ink:#eeeade;--muted:#b1beb5;--blue:#7cc3c6;--red:#e2866b;--line:#355047;--night-surface:#19342c;--night-raised:#214137;color-scheme:dark;background:#10251f}
html[data-theme=dark] .theme-toggle .theme-moon{display:none}html[data-theme=dark] .theme-toggle .theme-sun{display:block}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(header,footer,.topline,.article-masthead,.article-top,.section-head,.reading-aside,.source-note,.article-body,.photo-album-intro){border-color:var(--line)}
html[data-theme=dark] :is(.search-field,.global-search-panel,.music-search,.region-rail,.artist-row,.filters button,.archive-badge,.photo-category,.photo-album-card,.contact-form,.contact-form-panel,.contact-success,.share-dialog,.share-sheet,.share-modal,.region-list a,.region-list button,.map-region-links a,.archive-pill,.article-tags a,.tag,.outline){background:var(--night-surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,textarea,select,option){background:var(--night-surface);color:var(--ink);border-color:var(--line)}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a5b4aa}
html[data-theme=dark] :is(.button,.global-search-panel form>button[type=submit],.contact-form button[type=submit],.filters button.active){background:#386b58;color:#fff8e9;border-color:#5f8c78}html[data-theme=dark] :is(.button:hover,.contact-form button[type=submit]:hover){background:#447f69}
html[data-theme=dark] .about{background:#19382e}html[data-theme=dark] .hero{background:radial-gradient(ellipse at 80% 65%,#526d3d26,transparent 60%)}
html[data-theme=dark] :is(.card-image,.card-image.archive-image,.featured-frame,.article-photo.featured-contained,.article-photo.archival-compact,.photo-frame,.album-cover){background:#1c382e;border-color:var(--line)}
html[data-theme=dark] .card-image>span{color:#739080}html[data-theme=dark] :is(.article-photo figcaption,.article-photo.archival-compact figcaption){background:var(--paper);color:var(--muted)}
html[data-theme=dark] :is(.article-body blockquote,.article-body .pull-quote){background:#19382e;color:var(--ink);border-color:var(--red)}
html[data-theme=dark] .artist-portrait-list .artist-portrait-card{background:#19382e;color:var(--ink);border-color:var(--line)}html[data-theme=dark] .artist-portrait-list .artist-portrait-card:hover{background:#23483a;border-color:var(--blue)}
html[data-theme=dark] .artist-portrait-frame.artist-symbol{background:#284a3b;color:var(--red);border-color:#456452}html[data-theme=dark] .artist-portrait-card .artist-portrait-arrow{color:var(--blue);border-color:#54735e;background:transparent}html[data-theme=dark] .artist-name small{color:var(--muted)}
html[data-theme=dark] :is(.map-land,.map-entrance .map-land){fill:#294d3c;stroke:none}html[data-theme=dark] .map-marker circle{stroke:#10251f}html[data-theme=dark] .map-marker text{fill:#e4ecdf;stroke:#10251f}html[data-theme=dark] .music-map #dots circle{fill:#55766c}html[data-theme=dark] :is(.sea-label,.sahara-label){fill:#9caf9b}
html[data-theme=dark] .artist-sleeve.sound-art{background:radial-gradient(ellipse at 15% 10%,#315643,transparent 60%),linear-gradient(140deg,#213d30,#132b22);border-color:#42604d;box-shadow:10px 12px 0 #07170f66}
html[data-theme=dark] .sound-art .archive-portrait{background:#213d30;border-color:#526b56}html[data-theme=dark] .sound-art .archive-symbol>span{background:#2e4d3b;color:var(--red)}
html[data-theme=dark] :is(.track,.track-list li,.playlist-list li){color:var(--ink);border-color:var(--line)}html[data-theme=dark] .track:hover{background:#23483a}html[data-theme=dark] .track.playing{background:#315340;color:#f5e4bf}
html[data-theme=dark] :is(.global-search-panel,.stories-menu .stories-dropdown,.stories-menu ul,header nav .stories-menu[open],.share-dialog,.share-sheet,.share-modal){background:#19342c;color:var(--ink);box-shadow:0 12px 36px #0005}
html[data-theme=dark] :is(.page-share-button,.mobile-menu-toggle,footer .footer-credit>.footer-facebook){background:#19382e;color:var(--ink);border-color:#486251}
html[data-theme=dark] .page-theme{opacity:.35}html[data-theme=dark] .footer-art{opacity:.25}
/* Preserve the exact wordmark, remove its paper background and lighten green lettering. */
html[data-theme=dark] .agraw-heritage-logo{content:url("/assets/agraw-logo-dark-crisp.webp");border-radius:0;box-shadow:none;background:transparent;mix-blend-mode:normal;filter:none;opacity:1}
html[data-theme=dark] .capconnect-credit-logo img{filter:brightness(0) invert(.88)}
html[data-theme=dark] .listening-dock{background:#0b1c16;border-color:#45644f;color:#edeadd}html[data-theme=dark] .listening-dock .main-play{background:#eeeade;color:#173c2b}
html[data-theme=dark] :is(.share-option,.share-link,.share-copy,.share-actions button){background:#214137;color:#eeeade;border-color:#456452}
html[data-theme=dark] ::selection{background:#6aa39b;color:#071c13}
@media(max-width:900px){.topline{display:flex;align-items:center;gap:12px}.topline>span{flex:1;min-width:120px}.topline .utility-links{display:flex;width:auto;gap:12px;margin-left:auto}.topline .utility-links>a{display:none}.topline .theme-toggle{width:34px;height:34px;flex-basis:34px}.topline .utility-links .search-button{min-height:34px}.topline .utility-links .search-button svg{width:15px;height:15px}.topline .utility-links .search-button span{font-size:10px}html[data-theme=dark] header.mobile-menu-open nav[aria-label="Main navigation"]{background:#19342c;border-color:var(--line);color:var(--ink)}}
@media(prefers-reduced-motion:no-preference){.theme-toggle{transition:background .15s,color .15s,border-color .15s}}
html[data-theme=dark] :is(.post-taxonomy a,.post-taxonomy button,.article-categories a){background:#214137;color:#eeeade;border-color:#486251}html[data-theme=dark] :is(.post-taxonomy a:hover,.post-taxonomy button:hover){background:#315641}
/* Reading, submenu and footer contrast. */
html[data-theme=dark] .article-body{color:#e0e5da}html[data-theme=dark] .article-body :is(p,li,td,th){color:inherit}html[data-theme=dark] .article-body :is(h2,h3,h4){color:#f0ecdf}html[data-theme=dark] .article-body a{color:#8ed1d0}html[data-theme=dark] .article-body :is(.source-note,.editorial-references,figcaption){color:#b1beb5}
html[data-theme=dark] header nav .stories-submenu{background:#19342c;color:#eeeade;border-color:#456452;box-shadow:0 12px 32px #0006}html[data-theme=dark] header nav .stories-submenu a{color:#eeeade;border-color:#355047}html[data-theme=dark] header nav .stories-submenu a:hover,html[data-theme=dark] header nav .stories-submenu a:focus-visible{background:#315340;color:#fff5df;border-color:#52705d}html[data-theme=dark] header nav .stories-menu[open]>summary,html[data-theme=dark] header nav .stories-menu>summary:hover{background:#234537;color:#8ed1d0}
html[data-theme=dark] footer,html[data-theme=dark] footer :is(.footer-credit,.footer-provider){border-color:#355047}html[data-theme=dark] footer hr{border-color:#355047}html[data-theme=dark] footer :is(.footer-tagline,.footer-provider,.footer-provider a){color:#b1beb5}html[data-theme=dark] footer .footer-menu a{color:#eeeade;border-bottom-color:transparent}html[data-theme=dark] footer .footer-menu a:hover{color:#8ed1d0;border-bottom-color:#8ed1d0}
html[data-theme=dark] .agraw-share-dialog{background:#19342c;color:#eeeade;border-color:#456452}html[data-theme=dark] :is(.share-close,.share-link-input){background:#214137;color:#eeeade;border-color:#456452}
html[data-theme=dark] .category-tabs{border-color:#355047}html[data-theme=dark] .category-tabs a{background:#19382e;color:#e6e9dc;border-color:#456452}html[data-theme=dark] .category-tabs a:hover,html[data-theme=dark] .category-tabs a:focus-visible{background:#315340;color:#fff5df;border-color:#7cc3c6}html[data-theme=dark] .category-tabs a[aria-current=page],html[data-theme=dark] .category-tabs a.active{background:#3b6a55;color:#fff5df;border-color:#719783}
html[data-theme=dark] :is(.contact-options>a,.contact-form-section){background:#19342c;color:#eeeade;border-color:#355047;border-top-color:#7cc3c6}html[data-theme=dark] .contact-options>a:hover{background:#234537}html[data-theme=dark] .contact-form{background:transparent}html[data-theme=dark] .contact-form :is(input,textarea){background:#10291f;color:#eeeade;border-color:#56725f}html[data-theme=dark] .contact-form label{color:#eeeade}html[data-theme=dark] :is(.contact-form-intro p,.contact-privacy,.contact-success>p){color:#b1beb5}html[data-theme=dark] .contact-form-status[data-state=error]{color:#f1a18b}html[data-theme=dark] .contact-form-status[data-state=success]{color:#a9d8b4}html[data-theme=dark] :is(.contact-success-icon,.contact-success h2 em){color:#8ed1d0}html[data-theme=dark] .contact-another{background:#214137;color:#eeeade;border-color:#56725f}html[data-theme=dark] .contact-another:hover{background:#315641}
html[data-theme=dark] .chapter-copy p{color:#e0e5da}html[data-theme=dark] .chapter-copy strong{color:#f4efe2}html[data-theme=dark] .story-memory figure{background:#19342c}html[data-theme=dark] .story-memory figcaption{color:#b1beb5}html[data-theme=dark] .historic-masthead{border-color:#355047}html[data-theme=dark] .chapter-number:after{background:linear-gradient(#456452,transparent)}
@media(max-width:900px){.topline .theme-toggle{width:44px;height:44px;flex-basis:44px}.topline .utility-links .search-button{min-height:44px}}
@media(max-width:900px){.topline .utility-divider{display:none}}
/* Search and regional navigation remain readable in night mode. */
html[data-theme=dark] .site-search-form{background:#19342c;border-color:#486251}html[data-theme=dark] .site-search-form input{background:transparent;color:#eeeade}html[data-theme=dark] .site-search-form button{background:#386b58;color:#fff8e9;border:1px solid #5f8c78}html[data-theme=dark] .site-search-form button:hover{background:#447f69}html[data-theme=dark] .search-type-filters button{background:#19342c;color:#eeeade;border-color:#486251}html[data-theme=dark] .search-type-filters button[aria-pressed=true]{background:#386b58;color:#fff8e9;border-color:#719783}html[data-theme=dark] .search-result-image{background:#214137;color:#8ed1d0}html[data-theme=dark] .mobile-nav-search{background:transparent;color:#eeeade}
html[data-theme=dark] .region-rail{background:#19342c;color:#eeeade;border-top-color:#7cc3c6}html[data-theme=dark] .region-thread-link{background:transparent;color:#eeeade}html[data-theme=dark] .region-thread-link .thread-number{background:#214137;color:#e6ecdf;border-color:#5a7865}html[data-theme=dark] .region-thread-link small{color:#b1beb5}html[data-theme=dark] .region-thread-link:hover{color:#8ed1d0}html[data-theme=dark] .region-thread-link[aria-current=page]{color:#eaa58c}html[data-theme=dark] .region-thread-link[aria-current=page] .thread-number{background:#b95c42;color:#fff8ed;border-color:#e9a38a}html[data-theme=dark] .rail-map-link{border-top-color:#456452;color:#eeeade}html[data-theme=dark] .thread-arrow{color:#8ed1d0}
/* Keep the musical portrait and Tifinagh ribbons visible over the night palette. */
html[data-theme=dark] body.music-page{position:relative;isolation:isolate}
html[data-theme=dark] body.music-page .page-theme{opacity:.32}html[data-theme=dark] body.music-page .page-drummer{opacity:.24;filter:saturate(.65)}html[data-theme=dark] body.music-page .page-helix{opacity:.4;filter:brightness(1.15) saturate(.65)}
@media(max-width:600px){html[data-theme=dark] body.music-page .page-theme{opacity:.22}html[data-theme=dark] body.music-page .page-drummer{opacity:.2}}
