/* Theme controls do not alter existing navigation slots. */
.appearance-control{border:0;padding:12px 0;margin:0;min-width:0}
.appearance-control legend{font-size:14px;font-weight:750;padding:0}
.appearance-choices{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:6px;margin-top:8px}
.appearance-choices .secondary{min-width:0;min-height:44px;padding:9px 6px;font-size:13px;line-height:1.3;gap:0}
body .appearance-choices button[aria-pressed=true]{border:2px solid #007c85;background:#edf8f6;color:#00656d}
.appearance-note{margin:8px 0 0!important;font-size:12px!important}
.appearance-status{display:block;font-size:12px;min-height:0}
.appearance-status:empty{display:none}
.auth-inner>.appearance-control{margin-top:24px;border-top:1px solid var(--line);width:100%}
/* All dark overrides are scoped and disabled for printed content. Photographs,
   card art, map tiles and route geometry are deliberately never filtered. */
@media screen{
:root[data-theme=dark]{color-scheme:dark;--w-ink:#eef5f1;--w-muted:#b2c4bb;--w-line:#34483f;--w-cream:#111b18;--w-soft:#203c32;--w-link:#48d4dc;--w-action:#00818a;--w-hover:#006b73;--w-orange:#ffad49;--w-yellow:#ffd175;--green:#00818a;--ink:#eef5f1;--muted:#b2c4bb;--line:#34483f;--bg:#111b18;--red:#f09c9c;background:#111b18;color:#eef5f1}
:root[data-theme=dark] body{background:radial-gradient(ellipse at 45% 0,#1c3027 0,transparent 65%),#111b18;color:#eef5f1}
:root[data-theme=dark] body :is(.topbar,.primary-navigation,.left-sidebar){background:#141f1b;border-color:#34483f}
:root[data-theme=dark] body :is(.social-card,.rail-card,.form-card,.community-discovery,.journey-card,.first-steps,.feed-composer-launcher,.explore-desktop-detail,.account-mode-menu){background:#192720;color:#eef5f1;border-color:#34483f;box-shadow:0 4px 20px #00000015}
:root[data-theme=dark] body :is(h1,h2,h3,h4,label,legend){color:#eef5f1}
:root[data-theme=dark] body :is(.muted,.lead,small,.navigation-heading){color:#b2c4bb}
:root[data-theme=dark] body :is(a,.text-button,.rail-heading button){color:#48d4dc}
:root[data-theme=dark] body :is(input,select,textarea){background-color:#111e19;color:#eef5f1;border-color:#52685d;caret-color:#48d4dc}
:root[data-theme=dark] body :is(input,textarea)::placeholder{color:#a9bdb2;opacity:1}
:root[data-theme=dark] body :is(input,select,textarea):focus{border-color:#48d4dc;box-shadow:0 0 0 3px #48d4dc25}
:root[data-theme=dark] body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #7fe5db!important;outline-offset:3px}
:root[data-theme=dark] body :is(.primary,button.primary,a.primary){background:#00818a!important;border-color:#32b9be!important;color:#fff!important;box-shadow:none}
:root[data-theme=dark] body .primary:hover:not(:disabled){background:#006b73!important;border-color:#57d6d4!important}
:root[data-theme=dark] body :is(.secondary,button.secondary){background:#20372c;color:#eef5f1;border-color:#527a65}
:root[data-theme=dark] body .secondary:hover:not(:disabled){background:#2b483a;border-color:#87ba9d}
:root[data-theme=dark] body button[aria-pressed=true]{color:#eef5f1!important}
:root[data-theme=dark] body :is(.danger,button.danger){background:#843b40;color:#fff;border-color:#db8b90}
:root[data-theme=dark] body :is(.notice.error,.error-message){background:#3a2124;color:#ffbec2;border-color:#a96068}
:root[data-theme=dark] body .notice{background:#20392c;color:#d2e9da;border-color:#557c63}
:root[data-theme=dark] body :is(dialog,.dialog-heading,.dialog-actions){background-color:#192720;color:#eef5f1;border-color:#34483f}
/* Letterboxing belongs to the dark surface, including images with their own background. */
:root[data-theme=dark] body :is(.post-photo-tile,.post-photo-tile img,.adoption-gallery-view>img,.adoption-gallery-item>img,.photo-entry>img,.place-gallery-picture img){background-color:#192720}
:root[data-theme=dark] body dialog::backdrop{background:#050c09b8}
:root[data-theme=dark] body :is(.segmented,.community-switch,.header-search){background:#172e24;border-color:#34483f}
:root[data-theme=dark] body .header-search input{background:transparent}
:root[data-theme=dark] body :is(.nav-button,.header-messages,.header-notifications){color:#c9d9d0}
:root[data-theme=dark] body .nav-button[aria-current=page]{background:#203c32;color:#80e8e3;border-color:#48d4dc}
:root[data-theme=dark] body .header-journey{background:#203c32;color:#8ce5ad}
:root[data-theme=dark] body :is(.journey-tabs,.group-tabs,.feed-tabs,.community-kinds,.community-switch,.appearance-choices,.segmented) button[aria-pressed=true],:root[data-theme=dark] body .segmented button.selected{background:#21814a;color:#fff;border-color:#59bc7e}
:root[data-theme=dark] body .journey-level{background:#21814a;color:#fff}
:root[data-theme=dark] body #feed-section .feed-tabs .feed-tab[aria-pressed=true],:root[data-theme=dark] body .journey-filters button[aria-pressed=true]{background:#00818a;color:#fff;border-color:#32b9be}
:root[data-theme=dark] body .primary-navigation .mobile-menu-toggle::before{color:#c9d9d0;filter:brightness(0) invert(.86)}
:root[data-theme=dark] .explore-item.catalog-walking{--catalog-bg:#192e22}
:root[data-theme=dark] .explore-item.catalog-destination{--catalog-bg:#30271b}
:root[data-theme=dark] .explore-item.catalog-route{--catalog-bg:#1a2939}
:root[data-theme=dark] .explore-item.catalog-both{--catalog-bg:linear-gradient(110deg,#192e22 35%,#30271b 75%)}
:root[data-theme=dark] .explore-item.catalog-unassigned{--catalog-bg:#242b2b}
:root[data-theme=dark] body .explore-page .explore-item.fd-pc-selected{outline-color:#c7e9ff;box-shadow:0 0 0 2px #c7e9ff}
:root[data-theme=dark] body .journey-stage{background:radial-gradient(ellipse at 50% 80%,#2e533b80 0,transparent 67%)}
:root[data-theme=dark] body progress{accent-color:#52d98a;background:#33483e}
:root[data-theme=dark] body progress::-webkit-progress-bar{background:#33483e}
:root[data-theme=dark] body progress::-webkit-progress-value{background:#52d98a}
:root[data-theme=dark] body progress::-moz-progress-bar{background:#52d98a}
:root[data-theme=dark] body .journey-card progress::-webkit-progress-value{background:#52d98a}
:root[data-theme=dark] body .journey-card progress::-moz-progress-bar{background:#52d98a}
:root[data-theme=dark] .topbar .brand img,:root[data-theme=dark] header>a>img[alt=WUFANO]{content:url('/assets/brand/wufano/wufano-inverse-plain.svg')}
:root[data-theme=dark] body .appearance-choices button[aria-pressed=true]{outline:1px solid #8ce5ad;outline-offset:-4px}
:root[data-theme=dark] body :is(th,td){border-color:#42594c}
:root[data-theme=dark] body th{background:#243a2e;color:#eaf6ee}
:root[data-theme=dark] body tr:nth-child(even){background:#1c2d24}
/* Keep map raster imagery and semantic marker colours intact. Only map UI changes. */
:root[data-theme=dark] :is(.leaflet-control-attribution,.maplibregl-ctrl-attrib){background:#fff;color:#23332a}
:root[data-theme=dark] body :is(.leaflet-control-attribution,.maplibregl-ctrl-attrib) a{color:#00656d!important}
:root[data-theme=dark] :is(.leaflet-bar a,.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:#20372c;color:#eef5f1;border-color:#527a65}
@media(max-width:360px){:root[data-theme=dark] .topbar .brand img{content:url('/assets/brand/wufano/wufano-symbol.svg')}}
}
