/* Classic desktop palette: the approved gallery paper/sage/amber colors.
   Color changes only. Species data, plate layers, map keys and PWA stay separate. */
@media (min-width:841px) {
    :root {
        --bg-main:#f4f1ea;
        --bg-card:#fff;
        --text-main:#183d32;
        --text-muted:#61736a;
        --border-light:#dce3db;
        --accent:#17624c;
        --accent-light:#367963;
        --accent-glow:#e5eee7;
        --shadow-glow:0 3px 14px rgba(23,98,76,.08);
    }
    body,body:has(.home-standard) {background:#f4f1ea!important;color:#183d32;}

    /* Header and dropdown surfaces follow the gallery header. */
    body>header.site-header {
        background:#f7f8f4!important;
        border-bottom:1px solid #dce3db;
        box-shadow:0 3px 16px rgba(18,61,49,.05)!important;
    }
    .site-header>.navbar.container {max-width:1600px;gap:16px;}
    .site-header .logo {flex-shrink:0;}
    .site-header .nav-actions {gap:8px;flex-shrink:0;}
    .site-header .nav-links {gap:2px;}
    .site-header .nav-links>li>a {font-size:14px!important;padding-left:8px!important;padding-right:8px!important;}
    .site-header .logo-kus {color:#123d31!important;}
    .site-header .logo-atlasi {
        color:#17624c!important;background:none!important;
        -webkit-text-fill-color:currentColor!important;text-shadow:none!important;
    }
    .site-header .logo-owl-img {border-color:#cbd9ce!important;box-shadow:0 2px 7px #123d3114!important;}
    .site-header .nav-links>li>a,
    .site-header .nav-dropdown-trigger,
    body:has(.home-standard)>header .nav-dropdown-trigger {
        color:#36594b!important;background:transparent!important;box-shadow:none!important;
    }
    .site-header .nav-links>li>a:hover,
    .site-header .nav-dropdown-item:hover>.nav-dropdown-trigger,
    .site-header .nav-links>li.active>a {
        color:#123d31!important;background:#e5eee7!important;box-shadow:none!important;
    }
    .site-header #nav-world-birds i,
    .site-header #nav-birds-group i,
    .site-header #nav-map-group i {color:#17624c!important;}
    .site-header #nav-community-group i {color:#3566be!important;}
    .site-header #nav-media-group,
    body:has(.home-standard) .site-header #nav-media-group {
        background:#fff0c7!important;color:#86460c!important;
        border:1px solid #e7bd71!important;box-shadow:0 3px 12px #d8a74a16!important;
        animation:none!important;
    }
    .site-header #nav-media-group .nav-gallery-icon,
    body:has(.home-standard) .site-header #nav-media-group .nav-gallery-icon {color:#b96c11!important;animation:none!important;}
    .site-header #nav-media-group::before,.site-header #nav-media-group::after {display:none!important;}
    .site-header .nav-flash-beacon {background:#d99526!important;box-shadow:none!important;animation:none!important;}
    .site-header .nav-dropdown-menu,.site-header .user-dropdown {
        background:#fff!important;border-color:#dce3db!important;
        box-shadow:0 14px 35px #183d3219!important;
    }
    .site-header .nav-dropdown-menu a,.site-header .user-dropdown a {
        background:transparent!important;color:#183d32!important;box-shadow:none!important;
    }
    .site-header .nav-dropdown-menu a:hover,.site-header .user-dropdown a:hover {background:#edf2ec!important;}
    .site-header .dd-title {color:#183d32!important;}
    .site-header .dd-sub {color:#61736a!important;}
    .site-header #user-menu-logout {color:#b33b37!important;}
    .site-header .search-trigger,.site-header .header-icon-btn,.site-header .mobile-toggle-btn {
        color:#557064!important;background:#f7f8f4!important;
        border:1px solid #dce3db!important;border-radius:50%;box-shadow:none!important;
    }
    .site-header .search-trigger:hover,.site-header .header-icon-btn:hover {color:#123d31!important;background:#e5eee7!important;}
    .site-header .lang-switcher {background:#e9eee8!important;border-color:#d2ddd2!important;}
    .site-header .lang-btn {color:#557064!important;text-shadow:none!important;}
    .site-header .lang-btn.lang-active {background:#17624c!important;color:#fff!important;border-radius:20px;text-shadow:none!important;}
    .site-header .lang-divider {color:#a3b3a6!important;}
    .site-header .user-trigger {color:#183d32!important;background:#e9eee8!important;border:1px solid #d2ddd2!important;border-radius:24px;padding:5px 10px 5px 5px;}
    .site-header .user-avatar-mini {border-color:#d2ddd2!important;}
    .site-header .btn-header-login {background:#fff0c7!important;color:#86460c!important;border-color:#e7bd71!important;box-shadow:none!important;}

    /* Broad title surfaces, including inline legacy header backgrounds. */
    .page-header,.atlas-entry,.hs-hero,.hero-section,
    .hs-listen,.auth-info,.auth-sidebar,.community-hero {
        background:linear-gradient(110deg,#f7f2e3 0%,#edf2ec 100%)!important;
        color:#183d32!important;border-color:#dce3db!important;
    }
    .page-header :is(h1,h2,h3,p,.species-header-title,.species-header-subtitle,.species-header-back),
    .hs-hero :is(h1,p,.hs-hero-meta),
    .hs-listen :is(h2,p,small),.community-hero :is(h1,h2,p) {color:#183d32!important;}
    .page-header a:not(.btn-primary):not(.btn-secondary),
    .hs-hero-meta i,.hs-listen .hs-eyebrow {color:#557064!important;}
    .page-header .profile-name-row>span,.page-header .profile-equipment {color:#61736a!important;}
    /* World catalogue has a separate desktop header, not .page-header. */
    body .world-catalog-head {
        background:linear-gradient(110deg,#f7f2e3 0%,#edf2ec 100%)!important;
        color:#183d32!important;border-bottom:1px solid #dce3db;
    }
    body .world-catalog-head h1 {color:#183d32!important;}
    body .world-catalog-head p {color:#526b5f!important;}
    body .world-source {background:#fff!important;border-color:#d4ded2!important;color:#183d32!important;}
    body .world-source span {color:#886019!important;}
    body .world-source b,body .world-stat b {color:#183d32!important;}
    body .world-stat {background:#ffffffb3!important;border-color:#d4ded2!important;color:#526b5f!important;}
    body .world-stat.extinct i {color:#b33b37!important;}
    body .world-submit {background:#ffedab!important;color:#69470f!important;border:1px solid #edd293!important;}
    body .world-submit:hover {background:#f7e197!important;}
    .hs-hero h1 span,.atlas-entry h1 span {color:#9a661c!important;}
    .atlas-entry {--atlas-forest:#edf2ec;--atlas-cream:#183d32;--atlas-gold:#9a661c;--atlas-sage:#61736a;}
    body .atlas-entry h1 {color:#183d32!important;}
    .atlas-entry .atlas-eyebrow,.hs-hero .hs-eyebrow {color:#886019!important;}
    .atlas-entry .atlas-description {color:#526b5f!important;}
    .atlas-entry .atlas-shortcuts a {color:#36594b!important;}
    .atlas-entry .atlas-shortcuts a i {color:#a87522!important;}
    .atlas-entry .atlas-bird-caption,.atlas-entry .atlas-bird-caption a {color:#526b5f!important;}
    .atlas-entry .atlas-filters {border-color:#d4ded2!important;}
    .atlas-entry .atlas-filter-title,.atlas-entry .atlas-filter-clear {color:#526b5f!important;}
    .atlas-entry .atlas-filter-label {background:#fff!important;border-color:#d4ded2!important;color:#886019!important;}
    body .atlas-entry #birds-search-filter-bar .atlas-filters select {color:#36594b!important;}
    .atlas-entry .atlas-search-row {border-color:#d4ded2!important;box-shadow:0 4px 15px #183d3209!important;}
    body .atlas-entry #birds-search-filter-bar .atlas-search-row #birds-search-page-btn {
        background:#ffedab!important;color:#69470f!important;border:1px solid #edd293!important;
    }
    .home-standard {--hs-paper:#f4f1ea;--hs-line:#dce3db;--hs-ink:#183d32;--hs-green:#17624c;--hs-muted:#61736a;background:#f4f1ea!important;}
    .hs-season-card,.hs-invite,.hs-quiz {background:#edf2ec!important;border-color:#dce3db!important;}
    .hs-hero-meta,.hs-audio-copy small,.hs-audio-controls>span {color:#61736a!important;}
    .hs-audio-icon {background:#fff!important;color:#17624c!important;}
    .hs-search>button,.hs-audio-controls .hs-button {background:#ffedab!important;color:#69470f!important;border-color:#edd293!important;}

    /* Buttons keep a small, readable accent; large color blocks stay light. */
    .btn-primary {background:#17624c!important;color:#fff!important;border-color:#17624c!important;box-shadow:0 3px 12px #183d3210!important;}
    .btn-primary:hover {background:#124e3d!important;}
    .btn-secondary {background:#edf2ec!important;color:#36594b!important;border-color:#cbd9ce!important;}
    .maps-bluebar {background:#f7f8f4!important;border-color:#dce3db!important;box-shadow:0 3px 12px #183d320c!important;}
    .maps-bluebar-btn {color:#557064!important;}
    .maps-bluebar-btn:hover,.maps-bluebar-btn.is-active {background:#e5eee7!important;color:#123d31!important;border-bottom-color:#17624c!important;}

    /* Footer replaces the previous full-width dark green surface. */
    body>footer,body:has(.home-standard)>footer {
        background:#edf1e9!important;color:#526b5f!important;
        border-top:1px solid #d7e0d4;box-shadow:none!important;
    }
    body>footer p,body>footer strong,body>footer .footer-contact-label,
    body>footer .footer-slogan-text,body>footer a:not([href*='instagram.com']) {color:#526b5f!important;}
    body>footer a:not([href*='instagram.com']):hover {color:#123d31!important;}
    #site-prelaunch-notice {background:#fff0c7!important;color:#69470f!important;}
    #site-prelaunch-notice a {color:#69470f!important;}
    :is(.atlas-entry,.page-header,.site-header,footer) :is(a,button,select,input):focus-visible {
        outline:3px solid #9a661c!important;outline-offset:3px;
    }
}
@media (min-width:1025px) and (max-width:1449px) {
    .site-header>.navbar.container {height:auto;min-height:70px;flex-wrap:wrap;row-gap:0;}
    .site-header .logo {order:0;}
    .site-header .nav-actions {order:1;margin-left:auto;height:60px;}
    .site-header .desktop-nav {display:flex!important;order:2;flex-basis:100%;justify-content:center;height:48px;}
    .site-header .mobile-toggle-btn {display:none!important;}
}

/* Ada Doğanı desktop hero: use the whole media column, keep other views intact. */
@media (min-width:1025px) {
    body:has(#detail-map[data-bird-id="6"]) .ada-media {
        position:relative;background:#fff!important;
    }
    body:has(#detail-map[data-bird-id="6"]) .ada-media .species-hero-carousel {
        position:absolute;inset:0;display:flex;flex-direction:column;
        width:100%;height:100%;min-height:0;background:#fff!important;
    }
    body:has(#detail-map[data-bird-id="6"]) .ada-media .species-hero-carousel-track {
        flex:1 1 0;min-height:0;height:0!important;aspect-ratio:auto!important;
    }
    body:has(#detail-map[data-bird-id="6"]) .ada-media .species-hero-slide {
        background:#fff!important;
    }
    body:has(#detail-map[data-bird-id="6"]) .ada-media .detail-main-img-plate {
        width:100%!important;height:100%!important;min-height:0!important;
        padding:0!important;object-fit:contain!important;background:#fff!important;
    }
    body:has(#detail-map[data-bird-id="6"]) .ada-media .species-hero-carousel-nav {
        flex:0 0 auto;background:#fff!important;
    }
}
@media (min-width:1440px) {
    body:has(#detail-map[data-bird-id="6"]) .ada-media .species-hero-slide[data-label="Erkek tüneme"] .detail-main-img-plate {
        object-fit:cover!important;object-position:50% 50%;
    }
}
