/* Brand colours follow the same server-selected month as the original artwork. */
body,body.species-page,body.reading-mode.species-page{background:var(--theme-bg);color:var(--ink)}
.landscape{background:linear-gradient(90deg,color-mix(in srgb,var(--theme-bg) 90%,transparent),color-mix(in srgb,var(--theme-secondary) 12%,transparent)),linear-gradient(0deg,var(--theme-bg),transparent 80%),url('/forest.jpg') center 48%/cover}
.species-glow{background:radial-gradient(ellipse at 85% 8%,var(--theme-glow),transparent 62%),radial-gradient(ellipse at 5% 45%,color-mix(in srgb,var(--theme-secondary) 8%,transparent),transparent 60%)}
.header{min-height:142px;height:auto;padding:18px 0;gap:24px;border-bottom-color:var(--border)}
.brand.monthly-brand{position:relative;width:clamp(290px,29vw,380px);max-width:46%;border:2px solid var(--theme-accent);border-radius:17px;background:linear-gradient(135deg,var(--logo-paper),#fffdf7);box-shadow:0 0 0 5px var(--theme-soft),0 12px 35px #0005,0 0 38px var(--theme-glow);transform:translateY(-1px)}
.brand.monthly-brand img{filter:drop-shadow(0 3px 2px #00000012)}
.footer-brand.monthly-brand{max-width:260px}.footer-brand.monthly-brand img{width:260px;background:linear-gradient(135deg,var(--logo-paper),#fffdf7);border:2px solid var(--theme-accent);border-radius:12px;box-shadow:0 0 0 3px var(--theme-soft),0 9px 26px #0004}
.primary,.primary:hover{background:var(--theme-accent);color:var(--theme-button-text)}.skip{color:var(--theme-button-text)}
.hero-copy>p,.species-lead,.topic-body>p,.anatomy-detail p,.life-timeline p,.map-detail p,.conservation-list li,.source-intro,.reference-entry p,.reading-mode .topic-body>p:not(.topic-takeaway),.reading-mode .anatomy-detail p,.reading-mode .life-timeline p{color:var(--ink)}
.hero-side p,.species-tagline,.topic-takeaway strong,.anatomy-explorer h3,.anatomy-detail h4,.life-cycle h3,.life-timeline h4,.glance-value,.quick-facts strong,.taxonomy-grid dd,.detail-facts dd,.lifespan-result strong,.size-comparison h3,.reference-dialog h2,.category-explorer h3{color:var(--theme-heading)}
.hero-caption,.hero-side>span,.hero-bottom,.breadcrumbs,.breadcrumbs>span:last-child,.scientific-name,.hero-tags,.hero-review,.species-cover figcaption,.species-cover figcaption>span,.topic-actions>span,.contents a,.recognition-list span,.glance-context,.feature-intro,.feature-caption,.comparison-sources,.section-source,.section-source>a,.reference-intro,.reference-entry small,.source-entry p,.map-legend,.map-note,.lifespan-result,.map-layer-note,.photo-license,.filter-note,.sort-row,.collection-heading>p,footer p,.footer-brand>span{color:var(--muted)}
.contents a.active,.section-source>a:hover,.comparison-sources a,.map-detail a,.map-detail .record-status,.taxonomy-grid dt,.glance-label,.life-age,.life-step,.anatomy-detail>.eyebrow,.journal-section .eyebrow,.takeaway-label,.reference-dialog>.eyebrow,.reference-entry a,.evidence-label,.topic-toggle,.reading-note p,.photo-license a{color:var(--theme-accent)}
.filters,.specimen-card,.topic-body>.topic-takeaway,.taxonomy-grid,.detail-facts>div,.anatomy-explorer,.life-cycle,.size-comparison,.assessment-card,.category-explorer,.reference-dialog,.map-detail,.lightbox,dialog,.quick-facts .glance-fact,.recognition-list li{background-color:var(--theme-surface);border-color:var(--border)}
.size-comparison{background-image:radial-gradient(ellipse at 50% 55%,var(--theme-soft),transparent 75%)}
.glance-fact:nth-child(even),.taxonomy-grid>div:nth-child(even){background-color:color-mix(in srgb,var(--theme-surface) 70%,var(--theme-raised))}
.group-option.selected,.chip,.context-buttons [aria-pressed=true],.gallery-filters [aria-pressed=true],.anatomy-controls [aria-pressed=true],.topic-actions .reading-mode-toggle[aria-pressed=true],.contents a.active,.evidence-label{background:var(--theme-soft);border-color:var(--theme-line);color:var(--theme-accent)}
.data-note{background:var(--theme-soft);border-left-color:var(--theme-secondary);color:var(--ink)!important}
.inline-source{color:var(--theme-accent);border-color:var(--theme-line);background:var(--theme-soft)}.inline-source:hover{background:var(--theme-glow);border-color:var(--theme-accent)}
.topic-actions button,.anatomy-controls button,.context-buttons button,.gallery-filters button,.reference-close,.topic-toggle,.measurement-controls select,.filters select,.filters input,.map-toolbar select{color:var(--ink);border-color:var(--border);background-color:var(--theme-surface)}
.anatomy-point circle{fill:var(--theme-raised);stroke:var(--theme-accent)}.anatomy-point text{fill:var(--ink)}.anatomy-point[aria-pressed=true] circle,.anatomy-point:hover circle,.anatomy-point:focus-visible circle{fill:var(--theme-accent);stroke:var(--theme-heading)}.anatomy-point[aria-pressed=true] text{fill:var(--theme-button-text)}
.anatomy-explorer>svg{background:radial-gradient(ellipse at 50% 65%,var(--theme-soft),transparent 65%)}.life-step{background:var(--theme-raised);border-color:var(--theme-line)}.life-timeline li:not(:last-child):before{background:var(--theme-line)}
.animal-silhouette,.anatomy-explorer .animal-silhouette{fill:var(--sand)}.illustrative-tail{fill:var(--theme-secondary)}.silhouette-eye{fill:var(--theme-bg)}.human-silhouette{fill:var(--theme-muted)}
.size-comparison .comparison-dimension,.comparison-height-dimension{stroke:var(--theme-secondary)}.comparison-human-height{stroke:var(--theme-muted)}.comparison-length-badge{fill:var(--theme-raised);stroke:var(--theme-line)}.size-comparison svg .comparison-length,.size-comparison svg .comparison-name{fill:var(--theme-heading)}.size-comparison svg .comparison-height-value{fill:var(--theme-accent);stroke:var(--theme-surface)}.size-comparison svg .comparison-height-basis,.size-comparison svg .comparison-value,.size-comparison svg .comparison-context,.size-comparison svg .comparison-height-unknown,.size-comparison svg .comparison-grid-label{fill:var(--muted)}.size-comparison svg .comparison-grid-label{stroke:var(--theme-surface)}.size-comparison .comparison-grid{stroke:var(--theme-line)}.comparison-band{fill:var(--theme-soft)}
.map-canvas{background:radial-gradient(ellipse,var(--theme-raised),var(--theme-bg))}.map-controls button{color:var(--ink);border-color:var(--border);background:var(--theme-surface)}
.reference-dialog,.lightbox,dialog{color:var(--ink)}.reference-dialog::backdrop,.lightbox::backdrop,dialog::backdrop{background:color-mix(in srgb,var(--theme-bg) 85%,transparent)}
.closing,.quick-facts,.section-source,.topic-actions,.source-entry,.anatomy-detail,.reference-entry,footer,.size-help,.species-cover figcaption{border-color:var(--border)}
@media(prefers-reduced-motion:no-preference){.brand.monthly-brand{transition:box-shadow .2s ease,transform .2s ease}.brand.monthly-brand:hover{transform:translateY(-3px);box-shadow:0 0 0 6px var(--theme-soft),0 15px 38px #0006,0 0 48px var(--theme-glow)}}
@media(max-width:1100px) and (min-width:701px){.header{flex-wrap:wrap;row-gap:20px}.brand.monthly-brand{width:320px;max-width:52%}.header nav{margin-left:auto}.header>.discover{margin-left:auto}}
@media(max-width:700px){.header{min-height:116px;padding:17px 0;gap:16px;flex-wrap:wrap}.brand.monthly-brand{width:100%;max-width:100%;flex-basis:100%}.brand.monthly-brand img{width:100%;max-height:116px}.header nav{width:100%;justify-content:flex-end}.header nav>a{display:inline-block!important;font-size:11px}.header nav{gap:20px}.header>.discover{display:none}.footer-brand.monthly-brand{max-width:230px}.footer-brand.monthly-brand img{width:230px}}

/* One navigation palette for the home and every species journal. */
.header nav a,.header nav .nav-button{color:var(--muted)}
.header nav .active{color:var(--theme-accent)}
.header nav a:hover,.header nav .nav-button:hover,.header nav a:focus-visible,.header nav .nav-button:focus-visible{color:var(--theme-heading)}
.header nav .active:after{background:var(--theme-accent)}
