/* Sonnenreych: photographic chapters, compact reading, optional night palette. */
:root[data-theme="dark"]{color-scheme:dark;--paper:#151f1a;--paper-light:#1c2922;--paper-dark:#202e26;--paper-deep:#202e26;--white:#24332a;--ink:#e8e6db;--green:#cfddcc;--green-2:#b6cdb6;--muted:#b1bbae;--rust:#d0a083;--line:rgba(219,226,211,.32);--line-soft:rgba(219,226,211,.16);--olive-950:#e3e8d9;--olive-900:#d4dfcd;--olive-800:#c1d0b9;--olive-700:#9fac95}
.theme-toggle{flex-shrink:0;width:38px;height:38px;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;font-size:1.25rem;padding:0;display:grid;place-items:center}.theme-toggle:hover{background:var(--paper-deep)}
[data-theme="dark"] .site-header,[data-theme="dark"] body>footer{background:var(--paper);color:var(--ink)}[data-theme="dark"] .lang button.active,[data-theme="dark"] .language-button.active{background:#cad8c3;color:#17231b}
[data-theme="dark"] .photo-archive-grid img,[data-theme="dark"] .plant-gallery img,[data-theme="dark"] .cultivated-hero img{background:var(--paper-deep);border-color:var(--line)}
[data-theme="dark"] .primary-action{background:#c8d6bf;color:#17231b}[data-theme="dark"] .portrait-grid>section,[data-theme="dark"] .group-card,[data-theme="dark"] .book-card{color:var(--ink)}
.home-page .immersive-hero{position:relative;width:100%;max-width:none;min-height:min(720px,85svh);margin:0;padding:clamp(48px,7vw,100px) max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;background:linear-gradient(90deg,rgba(8,20,13,.92),rgba(8,20,13,.55) 55%,rgba(8,20,13,.12)),url('/assets/cultivation/coleus-argentifolius-behaarung.webp') center/cover;color:#faf5e8}
.immersive-hero .hero-copy{max-width:780px;position:relative}.home-page .immersive-hero h1{font-size:clamp(2.7rem,5.5vw,5.25rem);line-height:1.06;max-width:800px;margin:0 0 24px;text-wrap:balance}.immersive-hero .kicker{color:#d4bd9d}.immersive-hero .home-lead{color:#ede7d8;max-width:560px;font-size:1.2rem;line-height:1.6}.immersive-hero .home-actions{margin-top:26px}.immersive-hero .primary-action{background:#efe8d6!important;border-color:#efe8d6!important;color:#19271d!important}.immersive-hero .text-link{color:#faf5e8}.hero-credit{position:absolute;bottom:14px;right:24px;font-size:.78rem;color:#ded8cb}
.home-page .home-regions{padding-top:32px;padding-bottom:30px;border:0}.painted-regions{gap:18px}.painting-link{position:relative;display:block;isolation:isolate;overflow:hidden}.painting-mount img{aspect-ratio:1.2;transition:transform .4s}.painting-link::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 30%,rgba(7,21,13,.85));pointer-events:none}.painted-regions .painting-link h2{position:absolute;bottom:20px;left:22px;right:20px;z-index:1;color:#fbf6e8;font-size:clamp(1.4rem,2.6vw,2rem);margin:0}.painting-link:hover img{transform:scale(1.025)}.painted-regions figcaption small{font-size:.73rem;margin-top:9px}
.home-genus-index{padding:24px 0 28px;gap:20px}.home-page .home-portraits{padding-top:26px;padding-bottom:32px}.home-page .specimen-grid{gap:26px}.home-page .home-reading{padding-top:28px;padding-bottom:32px}
.portrait-page{padding-top:25px}.portrait-head{padding-top:16px;padding-bottom:18px}.portrait-grid>section,.portrait-grid>section:nth-child(n){padding-top:26px;padding-bottom:26px}.portrait-grid h2{margin-top:10px;margin-bottom:15px}.portrait-lead-photo{margin-top:20px;margin-bottom:20px;max-width:860px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:26px}.portrait-lead-photo img{max-height:400px}.portrait-lead-photo figcaption{max-width:34ch;border-left:1px solid var(--line);padding:0 0 0 22px}.portrait-contents{margin-top:20px}
@media(max-width:760px){.home-page .immersive-hero{min-height:620px;padding:48px 24px 65px;background-position:62% center}.home-page .immersive-hero h1{font-size:clamp(2.6rem,8vw,4rem)}.immersive-hero .home-lead{font-size:1.12rem}.painting-mount img{aspect-ratio:1.4}.portrait-lead-photo{display:block}.portrait-lead-photo figcaption{max-width:64ch;border:0;padding:10px 0 0}.portrait-lead-photo img{max-height:400px}}
@media(max-width:480px){.home-page .immersive-hero{min-height:650px;padding-inline:20px}.home-page .immersive-hero h1 br{display:initial}.painted-regions{grid-template-columns:1fr}.painting-mount img{aspect-ratio:1.8}.theme-toggle{width:32px;height:36px}.header-tools{gap:5px}.portrait-head h1{font-size:2.4rem}}
@media(prefers-reduced-motion:reduce){.painting-mount img{transition:none}}

[data-theme="dark"] .habitat-culture,[data-theme="dark"] .collection-focus,[data-theme="dark"] .knowledge-card.dark{background:#24392d!important;color:#eeeade}[data-theme="dark"] .knowledge-card.dark{box-shadow:50vw 0 0 #24392d,-50vw 0 0 #24392d}
[data-theme="dark"] .key-console,[data-theme="dark"] .decision-card,[data-theme="dark"] .choice,[data-theme="dark"] .taxon-card,[data-theme="dark"] .edition-data,[data-theme="dark"] .search-dialog,[data-theme="dark"] select,[data-theme="dark"] input{background:var(--paper-light);color:var(--ink)}
[data-theme="dark"] .glossary-term::after{background:#dce2d1;color:#17231b}[data-theme="dark"] .region-button.active{background:#324b39;color:#f4f0e5}[data-theme="dark"] .home-genus-index nav a:hover{background:#324b39;color:#f4f0e5}
[data-theme="dark"] .site-search-button{color:var(--ink);border-color:var(--line)}[data-theme="dark"] .site-search-button:hover{background:var(--paper-deep)}
[data-theme="dark"] .search-dialog-head,[data-theme="dark"] .search-filters label{background:var(--paper-light);color:var(--ink)}[data-theme="dark"] .search-dialog :focus-visible{outline-color:#d0a083}
[data-theme="dark"] .tab{color:var(--ink)}[data-theme="dark"] .tab.active,[data-theme="dark"] .mode-button.active,[data-theme="dark"] .step-number,[data-theme="dark"] .button{background:#35513e;color:#f3f0e3}
[data-theme="dark"] .key-step{background:#202e26}[data-theme="dark"] .choice.selected,[data-theme="dark"] .choice:hover{background:#304936;color:var(--ink)}[data-theme="dark"] .choice.unknown{color:var(--muted)}
[data-theme="dark"] .advanced-label,[data-theme="dark"] .answer-path span,[data-theme="dark"] .taxon,[data-theme="dark"] .match-badge,[data-theme="dark"] .source-badge,[data-theme="dark"] .tag,[data-theme="dark"] .source-pill,[data-theme="dark"] .name-status,[data-theme="dark"] .country-map,[data-theme="dark"] .map-empty{background:var(--paper-light);color:var(--ink)}[data-theme="dark"] .certainty-note{color:#c0d0d0}

/* Three square collection views on the home page. */
.home-page .specimen-card .home-portrait-photo{aspect-ratio:1;object-fit:cover;object-position:center}
.home-page .specimen-card img[src*="lav23877-habitus"]{object-position:center 45%}
.home-page .home-photo-credit{display:block;margin-top:12px;font-size:.78rem;letter-spacing:0;color:var(--muted)}
.home-page .immersive-hero h1{font-size:clamp(2.7rem,5.5vw,5.25rem)}

/* Shared row tracks align titles, descriptions and photo credits. */
.home-page .specimen-grid{align-items:stretch}
@supports(grid-template-rows:subgrid){.home-page .specimen-card,.home-page .specimen-card:first-child{display:grid;grid-template-rows:subgrid;grid-row:span 5;grid-column:auto;row-gap:0}.home-page .specimen-grid{row-gap:0}}
.home-page .specimen-card .home-photo-credit{align-self:end;padding-top:12px;padding-bottom:20px}
#home-portraits-title{scroll-margin-top:145px}
.home-genus-index nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.home-genus-index nav a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:72px;text-align:center;line-height:1.35;padding:12px 14px}
@media(max-width:480px){.home-genus-index nav{grid-template-columns:1fr;gap:8px}.home-genus-index nav a{min-height:56px}}
body>.site-footer{background:#243329;color:#f3efe3;padding:30px 0 24px;font-size:1rem;letter-spacing:0;line-height:1.5}
.site-footer .footer-main.wrap{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:24px 40px;align-items:center}
.site-footer .footer-brand{font-size:1.25rem;letter-spacing:.07em;color:#f3efe3}
.site-footer .footer-identity p{margin:5px 0 0;color:#c8cec3;font-size:.95rem}
body>.site-footer .footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px 22px;padding:0;margin:0;max-width:620px}
.site-footer .footer-links a{font-size:.95rem;font-weight:400;letter-spacing:0;text-transform:none;color:#f3efe3;white-space:nowrap}
.site-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.site-footer .footer-rights.wrap{display:block;margin-top:24px;padding-top:16px;border-top:1px solid #546052;color:#c8cec3;font-size:.85rem;line-height:1.6}
.site-footer .footer-rights p{margin:0}.site-footer .footer-rights p+p{margin-top:3px}.site-footer .footer-rights a{color:inherit;text-decoration:underline;text-underline-offset:3px}
[data-theme="dark"] body>.site-footer{background:#101a14;color:#f3efe3}
@media(max-width:900px){.site-footer .footer-main.wrap{grid-template-columns:1fr;gap:20px}body>.site-footer .footer-links{justify-content:flex-start;max-width:none}}
