body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: #f4f7f3;
            color: #1b2b1b;
        }
        header {
            background: #12351f;
            color: white;
            padding: 18px 30px;
        }
        header h1 {
            margin: 0;
            font-size: 28px;
        }
        nav {
            background: #1f5131;
            padding: 10px 30px;
        }
        nav a {
            color: white;
            margin-right: 18px;
            text-decoration: none;
            font-weight: bold;
        }
        main {
            padding: 30px;
        }
        .card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin-bottom: 20px;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 18px;
            margin-bottom: 25px;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 22px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .stat-card h3 {
            margin: 0;
            color: #2f5f3b;
        }

        .stat-card .number {
            font-size: 38px;
            font-weight: bold;
            margin-top: 10px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            background: white;
        }
        th {
            background: #dfeee2;
        }
        th, td {
            padding: 12px;
            border: 1px solid #cbd8cc;
            text-align: left;
        }
        .latin {
            font-style: italic;
            color: #2f5f3b;
        }
    
.nav-language-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.nav-language-form select {
    padding: 5px;
    border-radius: 6px;
    border: 0;
}

.nav-language-form label {
    color: white;
    font-weight: bold;
}

.nav-language-form button {
    padding: 6px 10px;
    background: white;
    color: #12351f;
    border: 0;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}


        .top-search {
            position: relative;
            display: inline-block;
            margin-left: 22px;
            width: 320px;
        }

        .top-search input {
            width: 100%;
            padding: 8px 12px;
            border-radius: 18px;
            border: 0;
            outline: none;
            font-size: 14px;
        }

        .autocomplete-box {
            display: none;
            position: absolute;
            top: 38px;
            left: 0;
            right: 0;
            background: white;
            color: #1b2b1b;
            border-radius: 10px;
            box-shadow: 0 6px 20px rgba(0,0,0,0.18);
            z-index: 9999;
            overflow: hidden;
        }

        .autocomplete-item {
            display: block;
            padding: 10px 12px;
            text-decoration: none;
            color: #1b2b1b;
            border-bottom: 1px solid #edf2ed;
        }

        .autocomplete-item:hover,
        .autocomplete-item.active {
            background: #dff2e3;
        }

        .autocomplete-label {
            font-weight: bold;
        }

        .autocomplete-meta {
            font-size: 12px;
            color: #617061;
            margin-top: 2px;
        }

/* Search results page */
.search-page {
    max-width: 1050px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 20px;
}

.search-header h2 {
    margin-bottom: 6px;
    font-size: 30px;
    color: #12351f;
}

.search-header p {
    color: #617061;
    margin: 0;
}

.search-results-grid {
    display: grid;
    gap: 14px;
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #1b2b1b;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.result-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.result-body {
    flex: 1;
}

.result-title {
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 3px;
}

.result-latin {
    font-style: italic;
    color: #2f5f3b;
    margin-bottom: 5px;
}

.result-meta {
    font-size: 13px;
    color: #617061;
}

.result-arrow {
    font-size: 24px;
    color: #2f5f3b;
}

.result-image {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-image .result-icon {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.species-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.species-placeholder {
    width: 220px;
    height: 220px;
}

.clickable-photo {
    cursor: zoom-in;
}

.photo-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0,0,0,0.88);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.photo-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.photo-lightbox-close {
    position: fixed;
    top: 24px;
    right: 34px;
    color: white;
    font-size: 44px;
    font-weight: bold;
    cursor: pointer;
}

/* Header v2 */
.site-header {
    background: #12351f;
    color: white;
    padding: 26px 38px;
}

.brand a {
    color: white;
    text-decoration: none;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-nav {
    background: #1f5131;
    padding: 12px 38px;
    display: grid;
    grid-template-columns: auto minmax(360px, 520px) auto;
    align-items: center;
    gap: 28px;
}

.nav-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-left a,
.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-search {
    position: relative;
    width: 100%;
    margin-left: 0;
}

.top-search input {
    width: 100%;
    padding: 11px 18px;
    border-radius: 999px;
    border: 0;
    outline: none;
    font-size: 15px;
}

.autocomplete-box {
    top: 46px;
}

@media (max-width: 900px) {
    .site-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-left,
    .nav-right {
        justify-content: center;
    }

    .brand a {
        font-size: 28px;
    }
}

/* Header layout fix */
.site-nav {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    padding: 12px 38px !important;
}

.nav-left {
    flex: 0 0 auto;
}

.top-search {
    flex: 0 1 420px;
    max-width: 420px;
    min-width: 260px;
}

.nav-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.nav-language-form {
    margin-left: 0;
    white-space: nowrap;
}

.nav-language-form select {
    max-width: 150px;
    font-size: 14px;
}

.nav-language-form {
    gap: 8px;
}

/* Header polish */
.site-nav {
    min-height: 58px;
}

.nav-left a {
    font-size: 15px;
}

.nav-language-form select {
    height: 34px;
    border-radius: 9px;
    border: 0;
    padding: 4px 8px;
    background: white;
}

.nav-language-form label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.top-search input {
    height: 38px;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.top-search input:focus {
    box-shadow: 0 0 0 3px rgba(120, 190, 135, 0.35);
}

.brand a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Home landing page */
.home-hero {
    max-width: 1180px;
    margin: 30px auto 28px auto;
    background: linear-gradient(135deg, #ffffff 0%, #eef8ef 100%);
    border-radius: 22px;
    padding: 52px;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.hero-badge {
    display: inline-block;
    background: #dff2e3;
    color: #12351f;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: bold;
    margin-bottom: 18px;
}

.home-hero h1 {
    font-size: 56px;
    line-height: 1;
    margin: 0 0 18px 0;
    color: #12351f;
    letter-spacing: -1.5px;
}

.home-hero p {
    font-size: 20px;
    max-width: 720px;
    color: #27402d;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
}

.btn-primary {
    background: #1f5131;
    color: white;
}

.btn-secondary {
    background: white;
    color: #1f5131;
    border: 1px solid #cfe3d3;
}

.home-hero-visual img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

.home-feature-grid {
    max-width: 1180px;
    margin: 0 auto 50px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-feature-card {
    background: white;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.home-feature-card h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #12351f;
}

.home-feature-card p {
    color: #3f5846;
    font-size: 16px;
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .home-hero h1 {
        font-size: 42px;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Home landing page polish */
.home-hero {
    margin-top: 55px;
    max-width: 1320px;
    min-height: 430px;
}

.home-hero h1 {
    font-size: 68px;
}

.home-hero p {
    font-size: 22px;
    line-height: 1.35;
}

.home-hero-visual img {
    max-width: 390px;
    display: block;
    margin-left: auto;
}

.home-feature-grid {
    max-width: 1320px;
    margin-top: 35px;
}

.home-feature-card {
    min-height: 150px;
}

.feature-icon {
    font-size: 38px;
}

.home-feature-card h3 {
    font-size: 28px;
}

.home-feature-card p {
    font-size: 17px;
    line-height: 1.35;
}

/* Home hero final polish */
.home-hero {
    max-width: 1320px;
    margin: 55px auto 35px auto;
    padding: 60px 70px;
    background: linear-gradient(135deg, #f7fff8 0%, #e1f3e5 100%);
    border: 1px solid #d5ead9;
}

.home-feature-grid {
    max-width: 1320px;
    margin: 0 auto 70px auto;
    gap: 28px;
}

.home-feature-card {
    background: #ffffff;
    border: 1px solid #dcebe0;
    border-radius: 22px;
    padding: 32px;
    min-height: 180px;
}

.home-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

main {
    padding-top: 36px;
}

/* Autocomplete cards */
.autocomplete-box {
    border-radius: 16px;
    padding: 8px;
    background: white;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    border-bottom: 0;
    padding: 10px;
}

.autocomplete-thumb,
.autocomplete-thumb-img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
}

.autocomplete-thumb {
    background: #eef7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.autocomplete-thumb-img {
    object-fit: cover;
}

.autocomplete-content {
    min-width: 0;
}

.autocomplete-label {
    font-size: 15px;
    font-weight: 800;
    color: #12351f;
}

.autocomplete-meta {
    font-size: 13px;
    color: #2f5f3b;
    margin-top: 2px;
}

.autocomplete-category {
    font-size: 12px;
    color: #6a7b6d;
    margin-top: 2px;
    text-transform: capitalize;
}

/* Autocomplete v2 final polish */
.autocomplete-box {
    min-width: 430px;
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid #d8eadc;
}

.autocomplete-item {
    min-height: 66px;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #eef8f0;
}

.autocomplete-label {
    font-size: 16px;
    line-height: 1.1;
}

.autocomplete-meta {
    font-size: 13px;
}

.autocomplete-category {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    background: #e8f4eb;
    border-radius: 999px;
    font-size: 11px;
    color: #1f5131;
    font-weight: 700;
}

.autocomplete-thumb,
.autocomplete-thumb-img {
    width: 52px;
    height: 52px;
}

/* ENGINE 3 - Species hero v2 */
.species-hero-v2 {
    max-width: 1240px;
    margin: 0 auto 28px auto;
    background: linear-gradient(135deg, #ffffff 0%, #eef8ef 100%);
    border: 1px solid #d7eadb;
    border-radius: 28px;
    padding: 34px;
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 38px;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.species-hero-photo-wrap {
    width: 100%;
}

.species-hero-v2-photo,
.species-hero-v2-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 14px 38px rgba(0,0,0,0.16);
}

.species-hero-v2-placeholder {
    background: #eef7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
}

.species-category-pill {
    display: inline-block;
    background: #dff2e3;
    color: #12351f;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 14px;
}

.species-hero-v2 h1 {
    font-size: 52px;
    line-height: 1;
    margin: 0 0 10px 0;
    color: #12351f;
    letter-spacing: -1px;
}

.species-secondary-name {
    font-size: 22px;
    color: #2f5f3b;
    margin-bottom: 8px;
}

.species-latin-v2 {
    font-size: 22px;
    font-style: italic;
    color: #2f5f3b;
    margin-bottom: 14px;
}

.species-id-v2 {
    color: #5d705f;
    margin-bottom: 22px;
}

.species-facts-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.species-facts-v2 div {
    background: white;
    border: 1px solid #dcebe0;
    border-radius: 16px;
    padding: 14px;
}

.species-facts-v2 span {
    display: block;
    color: #6b7d6d;
    font-size: 12px;
    margin-bottom: 5px;
}

.species-facts-v2 strong {
    color: #12351f;
}

@media (max-width: 900px) {
    .species-hero-v2 {
        grid-template-columns: 1fr;
    }

    .species-hero-v2 h1 {
        font-size: 40px;
    }

    .species-facts-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ENGINE 3 - Species Hero V3 test */
.species-hero-v3 {
    max-width: 1280px;
    margin: 0 auto 36px auto;
    background: linear-gradient(135deg, #f7fff8 0%, #e5f5e8 100%);
    border: 1px solid #d3ead8;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.10);
}

.species-hero-v3-image {
    width: 100%;
    height: 430px;
    background: #e8f4eb;
    overflow: hidden;
}

.species-hero-v3-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.species-hero-v3-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: #1f5131;
    font-weight: 800;
}

.species-hero-v3-content {
    padding: 34px 42px 40px 42px;
}

.species-hero-v3-topline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.species-pill {
    display: inline-block;
    background: white;
    border: 1px solid #cfe3d3;
    color: #12351f;
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.species-pill.green {
    background: #dff2e3;
}

.species-hero-v3 h1 {
    font-size: 58px;
    line-height: 1;
    color: #12351f;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.species-hero-v3-secondary {
    font-size: 24px;
    color: #2f5f3b;
    font-weight: 700;
    margin-bottom: 8px;
}

.species-hero-v3-latin {
    font-size: 23px;
    color: #2f5f3b;
    font-style: italic;
    margin-bottom: 14px;
}

.species-hero-v3-id {
    color: #607461;
    margin-bottom: 26px;
}

.species-hero-v3-facts {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.hero-fact {
    background: white;
    border: 1px solid #dcebe0;
    border-radius: 16px;
    padding: 15px;
}

.hero-fact span {
    display: block;
    color: #6b7d6d;
    font-size: 12px;
    margin-bottom: 6px;
}

.hero-fact strong {
    color: #12351f;
    font-size: 16px;
}

@media (max-width: 1000px) {
    .species-hero-v3-image {
        height: 300px;
    }

    .species-hero-v3 h1 {
        font-size: 42px;
    }

    .species-hero-v3-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FORCE Species Hero Professional Layout */
.species-hero-pro {
    max-width: 1320px !important;
    margin: 32px auto 36px auto !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    background: white !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.14) !important;
}

.species-hero-pro-image {
    position: relative !important;
    height: 430px !important;
    overflow: hidden !important;
    background: #12351f !important;
}

.species-hero-pro-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 42% !important;
    display: block !important;
}

.species-hero-pro-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, rgba(8,38,20,0.85), rgba(8,38,20,0.45), rgba(8,38,20,0.05)) !important;
}

.species-hero-pro-text {
    position: absolute !important;
    left: 48px !important;
    bottom: 42px !important;
    color: white !important;
    max-width: 560px !important;
    z-index: 2 !important;
}

.species-hero-pro-text h1 {
    font-size: 58px !important;
    line-height: 1 !important;
    margin: 0 0 12px 0 !important;
    color: white !important;
}

.species-hero-pro-text h2,
.species-hero-latin,
.species-hero-meta {
    color: white !important;
}

.species-hero-pro-text h2 {
    font-size: 26px !important;
    margin: 0 0 10px 0 !important;
}

.species-hero-latin {
    font-size: 26px !important;
    font-style: italic !important;
    margin-bottom: 20px !important;
}

.species-hero-badges {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
}

.species-hero-badges span {
    background: rgba(255,255,255,0.9) !important;
    color: #12351f !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
}

.species-hero-meta {
    display: flex !important;
    gap: 22px !important;
    font-weight: 800 !important;
}

.species-hero-fact-strip-pro {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 14px !important;
    padding: 18px 24px 24px 24px !important;
    background: #f7fff8 !important;
}

.hero-strip-card-pro {
    background: white !important;
    border: 1px solid #dcebe0 !important;
    border-radius: 16px !important;
    padding: 16px !important;
}

.hero-strip-card-pro span {
    display: block !important;
    color: #6b7d6d !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
}

.hero-strip-card-pro strong {
    color: #12351f !important;
    font-size: 17px !important;
}

@media (max-width: 1000px) {
    .species-hero-pro-image {
        height: 330px !important;
    }

    .species-hero-pro-text h1 {
        font-size: 40px !important;
    }

    .species-hero-fact-strip-pro {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* ENGINE 3 - Distribution + Summary Widgets */

.ng-species-overview-row {
    max-width: 1280px;
    margin: 26px auto 28px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(340px, 1fr);
    gap: 22px;
}

.ng-widget-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(16, 71, 38, 0.10);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(13, 48, 28, 0.10);
    padding: 22px;
}

.ng-widget-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ng-widget-header h2 {
    margin: 0;
    font-size: 22px;
    color: #12351f;
    letter-spacing: -0.02em;
}

.ng-widget-header p {
    margin: 5px 0 0 0;
    color: #66786c;
    font-size: 14px;
}

.ng-globe-btn {
    border: 1px solid rgba(18,53,31,0.14);
    background: #f7fbf8;
    color: #12351f;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.ng-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin: 4px 0 16px 0;
    color: #385242;
    font-size: 13px;
    font-weight: 700;
}

.ng-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.year { background: #5ec46d; }
.legend-dot.breeding { background: #ff9a22; }
.legend-dot.wintering { background: #4a9df0; }
.legend-dot.migration { background: #f3d22b; }
.legend-dot.introduced { background: #b75ce8; }
.legend-dot.uncertain { background: #b7b7b7; }

.ng-map-placeholder {
    height: 330px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 22% 42%, rgba(120,166,104,0.35) 0 9%, transparent 10%),
        radial-gradient(circle at 51% 35%, rgba(120,166,104,0.40) 0 13%, transparent 14%),
        radial-gradient(circle at 72% 44%, rgba(120,166,104,0.32) 0 14%, transparent 15%),
        linear-gradient(180deg, #dff2f7 0%, #cce9f1 100%);
    border: 1px solid rgba(18,53,31,0.08);
}

.ng-world-map-soft {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(12deg, transparent 0 43%, rgba(255,255,255,0.35) 44% 46%, transparent 47%),
        radial-gradient(ellipse at 30% 50%, rgba(128,160,96,0.35) 0 18%, transparent 19%),
        radial-gradient(ellipse at 58% 45%, rgba(128,160,96,0.40) 0 24%, transparent 25%),
        radial-gradient(ellipse at 78% 62%, rgba(128,160,96,0.30) 0 11%, transparent 12%);
}

.range-zone {
    position: absolute;
    border-radius: 999px;
    filter: blur(1px);
    opacity: 0.72;
}

.range-europe {
    left: 43%;
    top: 28%;
    width: 170px;
    height: 74px;
    background: rgba(94,196,109,0.78);
    transform: rotate(-8deg);
}

.range-asia {
    left: 57%;
    top: 25%;
    width: 270px;
    height: 86px;
    background: rgba(255,154,34,0.70);
    transform: rotate(4deg);
}

.range-winter {
    left: 67%;
    top: 45%;
    width: 150px;
    height: 52px;
    background: rgba(74,157,240,0.45);
    transform: rotate(-14deg);
}

.map-label {
    position: absolute;
    font-weight: 900;
    color: rgba(18,53,31,0.35);
    font-size: 18px;
}

.map-label.europe {
    left: 46%;
    top: 39%;
}

.map-label.asia {
    left: 69%;
    top: 38%;
}

.ng-map-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    color: #52665a;
    font-size: 12px;
    font-weight: 700;
}

.ng-summary-widget {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ng-summary-text {
    color: #1f3326;
    font-size: 16px;
    line-height: 1.72;
}

.ng-summary-text p {
    margin-top: 0;
}

.ng-read-more-btn {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #165c31;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(22,92,49,0.22);
}

.ng-read-more-btn:hover {
    background: #0f4525;
}

@media (max-width: 980px) {
    .ng-species-overview-row {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .ng-map-placeholder {
        height: 260px;
    }

    .ng-widget-header {
        flex-direction: column;
    }
}



/* ENGINE 3 - Premium species width fix */

.species-hero-pro {
    max-width: 1500px !important;
    width: calc(100% - 96px) !important;
    margin: 70px auto 0 auto !important;
}

.species-hero-pro-image {
    height: 430px !important;
    border-radius: 24px 24px 0 0 !important;
}

.species-hero-fact-strip-pro {
    max-width: 1500px !important;
    width: 100% !important;
    padding: 18px 26px !important;
    box-sizing: border-box !important;
}

.ng-species-overview-row {
    max-width: 1500px !important;
    width: calc(100% - 96px) !important;
    padding: 0 !important;
    grid-template-columns: minmax(0, 1.75fr) minmax(380px, 0.85fr) !important;
    gap: 24px !important;
}

.ng-map-placeholder {
    height: 360px !important;
}

.ng-summary-widget {
    min-height: 100% !important;
}

@media (max-width: 980px) {
    .species-hero-pro,
    .ng-species-overview-row {
        width: calc(100% - 32px) !important;
    }

    .species-hero-pro-image {
        height: 360px !important;
    }

    .ng-species-overview-row {
        grid-template-columns: 1fr !important;
    }
}


/* ENGINE 3 - Position correction */

.species-hero-pro {
    margin-top: 42px !important;
    max-width: 1600px !important;
    width: calc(100% - 72px) !important;
}

.ng-species-overview-row {
    max-width: 1600px !important;
    width: calc(100% - 72px) !important;
    margin-top: 26px !important;
}

.species-hero-pro-image {
    height: 455px !important;
}

.ng-map-placeholder {
    height: 390px !important;
}

@media (max-width: 980px) {
    .species-hero-pro,
    .ng-species-overview-row {
        width: calc(100% - 28px) !important;
    }

    .species-hero-pro {
        margin-top: 24px !important;
    }
}


/* ENGINE 3 - Realistic 2D distribution placeholder */

.ng-map-realistic {
    height: 390px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(18,53,31,0.08);
    background:
        linear-gradient(180deg, rgba(214,239,247,0.95), rgba(187,225,236,0.95));
}

.ng-map-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.55) 1px, transparent 1px);
    background-size: 80px 80px;
}

.continent {
    position: absolute;
    background: rgba(147, 177, 112, 0.42);
    border: 1px solid rgba(83, 116, 76, 0.12);
    filter: blur(0.2px);
}

.continent.north-america {
    left: 8%;
    top: 25%;
    width: 170px;
    height: 105px;
    border-radius: 55% 45% 48% 52%;
    transform: rotate(-14deg);
}

.continent.south-america {
    left: 24%;
    top: 54%;
    width: 85px;
    height: 145px;
    border-radius: 52% 48% 55% 45%;
    transform: rotate(22deg);
}

.continent.europe {
    left: 46%;
    top: 28%;
    width: 115px;
    height: 78px;
    border-radius: 54% 46% 48% 52%;
    transform: rotate(-8deg);
}

.continent.africa {
    left: 47%;
    top: 43%;
    width: 125px;
    height: 155px;
    border-radius: 48% 52% 58% 42%;
    transform: rotate(6deg);
}

.continent.asia {
    left: 58%;
    top: 25%;
    width: 255px;
    height: 145px;
    border-radius: 50% 50% 48% 52%;
    transform: rotate(4deg);
}

.continent.australia {
    right: 10%;
    bottom: 18%;
    width: 110px;
    height: 58px;
    border-radius: 55% 45% 50% 50%;
    transform: rotate(-8deg);
}

.range-layer {
    position: absolute;
    border-radius: 999px;
    opacity: 0.74;
    mix-blend-mode: multiply;
}

.range-layer.resident {
    left: 43%;
    top: 31%;
    width: 170px;
    height: 68px;
    background: rgba(76, 185, 91, 0.72);
    transform: rotate(-8deg);
}

.range-layer.breeding {
    left: 56%;
    top: 30%;
    width: 290px;
    height: 78px;
    background: rgba(255, 151, 34, 0.67);
    transform: rotate(4deg);
}

.range-layer.wintering {
    left: 66%;
    top: 48%;
    width: 150px;
    height: 46px;
    background: rgba(64, 145, 226, 0.55);
    transform: rotate(-12deg);
}

.range-layer.migration {
    left: 44%;
    top: 42%;
    width: 420px;
    height: 34px;
    background: rgba(243, 210, 43, 0.36);
    transform: rotate(8deg);
}

.map-name {
    position: absolute;
    font-size: 18px;
    font-weight: 900;
    color: rgba(18,53,31,0.42);
}

.europe-name {
    left: 49%;
    top: 40%;
}

.asia-name {
    left: 68%;
    top: 40%;
}

.ng-map-placeholder {
    display: none !important;
}


/* ENGINE 3 - SVG world map base */

.ng-map-realistic {
    display: none !important;
}

.ng-map-svg-wrap {
    height: 390px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(18,53,31,0.08);
    background: #cfeef6;
}

.ng-map-svg-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.96;
}

.ng-range {
    position: absolute;
    border-radius: 999px;
    opacity: 0.72;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.ng-range-resident {
    left: 43%;
    top: 31%;
    width: 20%;
    height: 12%;
    background: rgba(76, 185, 91, 0.72);
    transform: rotate(-8deg);
}

.ng-range-breeding {
    left: 55%;
    top: 30%;
    width: 32%;
    height: 13%;
    background: rgba(255, 151, 34, 0.68);
    transform: rotate(4deg);
}

.ng-range-wintering {
    left: 66%;
    top: 48%;
    width: 17%;
    height: 8%;
    background: rgba(64, 145, 226, 0.56);
    transform: rotate(-12deg);
}

.ng-range-migration {
    left: 44%;
    top: 42%;
    width: 43%;
    height: 6%;
    background: rgba(243, 210, 43, 0.36);
    transform: rotate(8deg);
}


/* ENGINE 3 - Tabs Widget */

.ng-tabs-widget {
    max-width: 1600px;
    width: calc(100% - 72px);
    margin: 28px auto 0 auto;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(16, 71, 38, 0.10);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 12px 34px rgba(13, 48, 28, 0.08);
    overflow-x: auto;
}

.ng-tabs-nav {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding: 0 20px;
}

.ng-tabs-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 20px 18px 18px 18px;
    color: #294838;
    text-decoration: none;
    font-weight: 900;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.ng-tabs-nav a.active {
    color: #12622e;
    border-bottom-color: #12622e;
}

.ng-tabs-nav a:hover {
    color: #12622e;
    background: rgba(18,98,46,0.04);
}

.ng-encyclopedia-card {
    max-width: 1600px !important;
    width: calc(100% - 72px) !important;
    margin: 0 auto 32px auto !important;
    border-radius: 0 0 22px 22px !important;
}

@media (max-width: 980px) {
    .ng-tabs-widget,
    .ng-encyclopedia-card {
        width: calc(100% - 28px) !important;
    }
}


/* ENGINE 3 - Cleanup tabs summary map */

.ng-tabs-widget {
    background: #ffffff !important;
    border-radius: 22px 22px 0 0 !important;
    overflow-x: auto !important;
}

.ng-tabs-nav {
    background: #ffffff !important;
}

.ng-tabs-nav a {
    color: #244634 !important;
    background: transparent !important;
    font-size: 14px !important;
}

.ng-tabs-nav a.active {
    color: #12622e !important;
    border-bottom-color: #12622e !important;
}

.ng-summary-widget {
    min-height: auto !important;
}

.ng-read-more-btn {
    margin-top: 28px !important;
    margin-bottom: 0 !important;
}

.ng-map-svg-wrap {
    height: 330px !important;
}

.ng-map-svg-wrap img {
    opacity: 0.88 !important;
    filter: saturate(0.85) contrast(0.95);
}

.ng-range {
    opacity: 0.58 !important;
}

.ng-range-resident {
    left: 44% !important;
    top: 34% !important;
    width: 16% !important;
    height: 9% !important;
}

.ng-range-breeding {
    left: 54% !important;
    top: 33% !important;
    width: 30% !important;
    height: 10% !important;
}

.ng-range-wintering {
    left: 63% !important;
    top: 48% !important;
    width: 17% !important;
    height: 7% !important;
}

.ng-range-migration {
    left: 45% !important;
    top: 43% !important;
    width: 39% !important;
    height: 4% !important;
    opacity: 0.38 !important;
}



/* ENGINE 3 - Move closer to reference design */

body {
    background: #f4f8f5 !important;
}

.species-hero-pro {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto 0 auto !important;
    border-radius: 0 !important;
}

.species-hero-pro-image {
    height: 455px !important;
    border-radius: 0 !important;
}

.species-hero-pro-image img {
    border-radius: 0 !important;
}

.species-hero-pro-text {
    left: 64px !important;
    bottom: 72px !important;
}

.species-hero-pro-text h1 {
    font-size: 64px !important;
}

.species-hero-fact-strip-pro {
    max-width: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    padding: 20px 64px !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 18px !important;
}

.hero-strip-card-pro {
    min-height: 72px !important;
    border-radius: 18px !important;
    padding: 18px 22px !important;
}

.ng-species-overview-row {
    max-width: none !important;
    width: calc(100% - 128px) !important;
    margin: 28px auto 28px auto !important;
    grid-template-columns: minmax(0, 1.85fr) minmax(420px, 1fr) !important;
    gap: 24px !important;
}

.ng-widget-card {
    border-radius: 22px !important;
    padding: 24px !important;
}

.ng-map-svg-wrap {
    height: 390px !important;
}

.ng-summary-text {
    font-size: 18px !important;
    line-height: 1.72 !important;
}

.ng-summary-widget {
    min-height: 390px !important;
}

.ng-read-more-btn {
    margin-top: 34px !important;
}

.ng-tabs-widget {
    max-width: none !important;
    width: calc(100% - 128px) !important;
    margin-top: 0 !important;
}

.ng-encyclopedia-card {
    max-width: none !important;
    width: calc(100% - 128px) !important;
}

@media (max-width: 980px) {
    .species-hero-fact-strip-pro {
        padding: 16px !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .ng-species-overview-row,
    .ng-tabs-widget,
    .ng-encyclopedia-card {
        width: calc(100% - 28px) !important;
    }

    .species-hero-pro-text {
        left: 28px !important;
    }
}


/* ENGINE 3 - Container reset after over-wide test */

.species-hero-pro {
    max-width: 1500px !important;
    width: calc(100% - 96px) !important;
    margin: 42px auto 0 auto !important;
    border-radius: 24px !important;
    overflow: hidden !important;
}

.species-hero-pro-image {
    height: 430px !important;
    border-radius: 24px 24px 0 0 !important;
}

.species-hero-pro-image img {
    border-radius: 24px 24px 0 0 !important;
}

.species-hero-pro-text {
    left: 54px !important;
    bottom: 56px !important;
}

.species-hero-pro-text h1 {
    font-size: 54px !important;
}

.species-hero-fact-strip-pro {
    max-width: 1500px !important;
    width: 100% !important;
    border-radius: 0 0 24px 24px !important;
    padding: 18px 26px !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.hero-strip-card-pro {
    min-height: 62px !important;
    padding: 14px 18px !important;
}

.ng-species-overview-row,
.ng-tabs-widget,
.ng-encyclopedia-card {
    max-width: 1500px !important;
    width: calc(100% - 96px) !important;
}

.ng-map-svg-wrap {
    height: 340px !important;
}

.ng-summary-widget {
    min-height: 340px !important;
}

@media (max-width: 980px) {
    .species-hero-pro,
    .ng-species-overview-row,
    .ng-tabs-widget,
    .ng-encyclopedia-card {
        width: calc(100% - 28px) !important;
    }
}


/* ENGINE 3 - Real Leaflet map + clean tabs */

.ng-map-svg-wrap,
.ng-map-realistic,
.ng-map-placeholder {
    display: none !important;
}

.ng-leaflet-map {
    height: 390px !important;
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(18,53,31,0.10) !important;
    background: #dcefed !important;
}

.ng-leaflet-map .leaflet-tile-pane {
    filter: saturate(0.82) contrast(0.92) brightness(1.04);
}

.ng-tabs-widget {
    overflow: hidden !important;
}

.ng-tabs-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
    padding: 0 22px !important;
    gap: 4px 10px !important;
}

.ng-tabs-nav a {
    font-size: 14px !important;
    padding: 18px 12px 16px 12px !important;
    flex: 0 0 auto !important;
}

.ng-tabs-widget::-webkit-scrollbar {
    display: none !important;
}



/* ENGINE 3 - Softer eBird-like distribution fills */

.ng-leaflet-map {
    background: #eef4f1 !important;
}

.ng-leaflet-map .leaflet-tile-pane {
    filter: saturate(0.45) contrast(0.72) brightness(1.18) opacity(0.62) !important;
}

.ng-leaflet-map .leaflet-overlay-pane svg path {
    stroke: none !important;
    filter: blur(1.4px);
    mix-blend-mode: multiply;
}



/* ENGINE 3 - eBird-like abundance placeholder */

.ng-leaflet-map,
.ng-map-svg-wrap,
.ng-map-realistic,
.ng-map-placeholder {
    display: none !important;
}

.ng-ebird-map {
    height: 390px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(18,53,31,0.08);
    background: #ffffff;
}

.ng-ebird-land {
    position: absolute;
    background: rgba(245, 246, 242, 0.95);
    filter: blur(0.2px);
}

.land-europe {
    left: 25%;
    top: 18%;
    width: 32%;
    height: 44%;
    border-radius: 46% 52% 42% 55%;
    transform: rotate(-7deg);
}

.land-asia {
    left: 49%;
    top: 12%;
    width: 46%;
    height: 52%;
    border-radius: 44% 56% 48% 52%;
    transform: rotate(4deg);
}

.heat {
    position: absolute;
    opacity: 0.82;
    filter: blur(7px);
    mix-blend-mode: multiply;
    transform-origin: center;
}

.heat-green { background: #49c56b; }
.heat-orange { background: #ff8b22; }
.heat-yellow { background: #f5d429; }
.heat-blue { background: #228ee6; }
.heat-purple { background: #b453e6; }

.h1 {
    left: 27%;
    top: 30%;
    width: 21%;
    height: 13%;
    border-radius: 62% 38% 54% 46%;
    transform: rotate(-16deg);
}

.h2 {
    left: 34%;
    top: 40%;
    width: 19%;
    height: 9%;
    border-radius: 58% 42% 50% 50%;
    transform: rotate(7deg);
    opacity: 0.55;
}

.h3 {
    left: 47%;
    top: 27%;
    width: 34%;
    height: 11%;
    border-radius: 55% 45% 52% 48%;
    transform: rotate(8deg);
}

.h4 {
    left: 61%;
    top: 22%;
    width: 26%;
    height: 12%;
    border-radius: 42% 58% 55% 45%;
    transform: rotate(-9deg);
    opacity: 0.55;
}

.h5 {
    left: 39%;
    top: 43%;
    width: 38%;
    height: 8%;
    border-radius: 60% 40% 48% 52%;
    transform: rotate(-3deg);
    opacity: 0.42;
}

.h6 {
    left: 64%;
    top: 50%;
    width: 19%;
    height: 10%;
    border-radius: 52% 48% 45% 55%;
    transform: rotate(-13deg);
}

.h7 {
    left: 78%;
    top: 43%;
    width: 13%;
    height: 9%;
    border-radius: 50%;
    transform: rotate(8deg);
    opacity: 0.45;
}

.h8 {
    left: 50%;
    top: 62%;
    width: 11%;
    height: 7%;
    border-radius: 50%;
    opacity: 0.35;
}

.speckles {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    mix-blend-mode: multiply;
    background-size: 18px 18px;
    filter: blur(0.3px);
}

.speckles.green {
    background-image: radial-gradient(circle, rgba(52,180,82,0.42) 0 1px, transparent 1.6px);
    clip-path: polygon(25% 30%, 48% 24%, 54% 48%, 32% 54%);
}

.speckles.orange {
    background-image: radial-gradient(circle, rgba(255,139,34,0.38) 0 1px, transparent 1.6px);
    clip-path: polygon(45% 22%, 91% 15%, 94% 39%, 50% 42%);
}

.speckles.blue {
    background-image: radial-gradient(circle, rgba(34,142,230,0.38) 0 1px, transparent 1.6px);
    clip-path: polygon(62% 46%, 92% 40%, 91% 62%, 66% 65%);
}


/* ENGINE 3 - Professional real map reset */

.ng-ebird-map,
.ng-map-svg-wrap,
.ng-map-realistic,
.ng-map-placeholder {
    display: none !important;
}

.ng-leaflet-map {
    display: block !important;
    height: 390px !important;
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(18,53,31,0.10) !important;
    background: #dbe9e8 !important;
}

.ng-leaflet-map .leaflet-tile-pane {
    filter: saturate(0.72) contrast(0.88) brightness(1.08) !important;
}

.ng-leaflet-map .leaflet-overlay-pane svg path {
    stroke: none !important;
    filter: blur(0.7px);
    mix-blend-mode: multiply;
}

.ng-leaflet-map .leaflet-control-container {
    display: none !important;
}


/* ENGINE 3 - Distribution data-ready state */

.ng-map-shell {
    position: relative;
}

.ng-leaflet-map {
    display: block !important;
    height: 390px !important;
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(18,53,31,0.10) !important;
    background: #dbe9e8 !important;
}

.ng-leaflet-map .leaflet-tile-pane {
    filter: saturate(0.65) contrast(0.85) brightness(1.08) !important;
}

.ng-leaflet-map .leaflet-control-container {
    display: none !important;
}

.ng-map-data-notice {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: 360px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(18,53,31,0.10);
    border-radius: 14px;
    padding: 13px 15px;
    box-shadow: 0 10px 25px rgba(13,48,28,0.12);
    color: #183c27;
}

.ng-map-data-notice strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.ng-map-data-notice span {
    display: block;
    font-size: 13px;
    color: #617368;
    line-height: 1.35;
}


/* ENGINE 3 - Compact premium tabs */

.ng-tabs-widget {
    padding: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    overflow: hidden !important;
}

.ng-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(11, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 0 18px !important;
    background: #ffffff !important;
}

.ng-tabs-nav a {
    justify-content: center !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    padding: 18px 6px 16px 6px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

.ng-tabs-nav a.active {
    border-bottom: 3px solid #12622e !important;
}

@media (max-width: 1200px) {
    .ng-tabs-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }

    .ng-tabs-nav a {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}


/* ENGINE 3 - Encyclopedia cleanup */

.ng-encyclopedia-card {
    padding: 34px 36px !important;
    background: rgba(255,255,255,0.96) !important;
    border: 1px solid rgba(16,71,38,0.08) !important;
    box-shadow: 0 12px 34px rgba(13,48,28,0.08) !important;
}

.ng-encyclopedia-card > h2 {
    font-size: 28px !important;
    color: #12351f !important;
    margin: 0 0 24px 0 !important;
    letter-spacing: -0.02em !important;
}

.ng-encyclopedia-card .section-nav {
    display: none !important;
}

.ng-encyclopedia-card .content-sections {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.ng-encyclopedia-card .species-content-section {
    background: #f8fbf8 !important;
    border: 1px solid rgba(18,53,31,0.08) !important;
    border-radius: 20px !important;
    padding: 26px 28px !important;
    margin: 0 !important;
}

.ng-encyclopedia-card .species-content-section h3 {
    font-size: 21px !important;
    color: #12351f !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: -0.01em !important;
}

.ng-encyclopedia-card .species-content-section p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #20382a !important;
    margin: 0 !important;
    max-width: 1100px !important;
}


/* ENGINE 3 - Premium tab pills */

.ng-tabs-widget {
    background: rgba(255,255,255,0.96) !important;
    border-radius: 22px !important;
    padding: 14px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
}

.ng-tabs-widget::-webkit-scrollbar {
    display: none !important;
}

.ng-tabs-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 0 !important;
    min-width: max-content !important;
}

.ng-tabs-nav a {
    border: 1px solid rgba(18,53,31,0.10) !important;
    background: #f5faf6 !important;
    border-radius: 999px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #244634 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.ng-tabs-nav a.active {
    background: #12622e !important;
    color: #ffffff !important;
    border-color: #12622e !important;
}

.ng-tabs-nav a:hover {
    background: #eaf5ed !important;
    color: #12622e !important;
}

.ng-tabs-nav a.active:hover {
    background: #12622e !important;
    color: #ffffff !important;
}


/* ENGINE 3 - Tabs wrap cleanly */

.ng-tabs-widget {
    overflow: visible !important;
    padding: 14px 18px 16px 18px !important;
}

.ng-tabs-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
    gap: 10px !important;
}

.ng-tabs-nav a {
    padding: 10px 13px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

@media (max-width: 1400px) {
    .ng-tabs-nav a {
        font-size: 12px !important;
        padding: 9px 11px !important;
    }
}


/* ENGINE 3 - Quick facts widget */

.ng-quick-facts-widget {
    max-width: 1500px;
    width: calc(100% - 96px);
    margin: 0 auto 0 auto;
    background: rgba(255,255,255,0.96);
    border-left: 1px solid rgba(16,71,38,0.08);
    border-right: 1px solid rgba(16,71,38,0.08);
    padding: 30px 36px 20px 36px;
    box-sizing: border-box;
}

.ng-quick-facts-widget h2 {
    margin: 0 0 18px 0;
    color: #12351f;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.ng-quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.ng-quick-fact {
    background: #f8fbf8;
    border: 1px solid rgba(18,53,31,0.08);
    border-radius: 18px;
    padding: 16px 18px;
}

.ng-quick-fact span {
    display: block;
    color: #65786c;
    font-size: 13px;
    margin-bottom: 7px;
}

.ng-quick-fact strong {
    display: block;
    color: #102f1e;
    font-size: 18px;
}

@media (max-width: 1200px) {
    .ng-quick-facts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .ng-quick-facts-widget {
        width: calc(100% - 28px);
        padding: 24px 18px;
    }

    .ng-quick-facts-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ENGINE 3 - Species Profile widget */

.ng-quick-facts-widget {
    display: none !important;
}

.ng-species-profile-widget {
    max-width: 1500px;
    width: calc(100% - 96px);
    margin: 0 auto 0 auto;
    background: rgba(255,255,255,0.96);
    border-left: 1px solid rgba(16,71,38,0.08);
    border-right: 1px solid rgba(16,71,38,0.08);
    padding: 30px 36px 24px 36px;
    box-sizing: border-box;
}

.ng-species-profile-widget h2 {
    margin: 0 0 18px 0;
    color: #12351f;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.ng-species-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ng-profile-item {
    background: #f8fbf8;
    border: 1px solid rgba(18,53,31,0.08);
    border-radius: 18px;
    padding: 16px 18px;
}

.ng-profile-item span {
    display: block;
    color: #65786c;
    font-size: 13px;
    margin-bottom: 7px;
}

.ng-profile-item strong {
    display: block;
    color: #102f1e;
    font-size: 17px;
}

@media (max-width: 1200px) {
    .ng-species-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .ng-species-profile-widget {
        width: calc(100% - 28px);
        padding: 24px 18px;
    }

    .ng-species-profile-grid {
        grid-template-columns: 1fr;
    }
}


/* ENGINE 3 - Gallery widget */

.ng-gallery-widget {
    max-width: 1500px;
    width: calc(100% - 96px);
    margin: 0 auto 0 auto;
    background: rgba(255,255,255,0.96);
    border-left: 1px solid rgba(16,71,38,0.08);
    border-right: 1px solid rgba(16,71,38,0.08);
    padding: 30px 36px 28px 36px;
    box-sizing: border-box;
}

.ng-gallery-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ng-gallery-header h2 {
    margin: 0;
    color: #12351f;
    font-size: 24px;
}

.ng-gallery-header p {
    margin: 6px 0 0 0;
    color: #65786c;
    font-size: 14px;
}

.ng-gallery-header span {
    background: #f5faf6;
    border: 1px solid rgba(18,53,31,0.10);
    border-radius: 999px;
    padding: 9px 13px;
    color: #244634;
    font-weight: 900;
    font-size: 12px;
}

.ng-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ng-gallery-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(18,53,31,0.08);
    cursor: zoom-in;
}

.ng-gallery-empty {
    grid-column: 1 / -1;
    background: #f8fbf8;
    border: 1px dashed rgba(18,53,31,0.18);
    border-radius: 18px;
    padding: 28px;
    color: #12351f;
}

.ng-gallery-empty strong {
    display: block;
    margin-bottom: 6px;
}

.ng-gallery-empty span {
    color: #65786c;
}

@media (max-width: 900px) {
    .ng-gallery-widget {
        width: calc(100% - 28px);
        padding: 24px 18px;
    }

    .ng-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ENGINE 3 - Audio Video widgets */

.ng-media-row {
    max-width: 1500px;
    width: calc(100% - 96px);
    margin: 0 auto 0 auto;
    background: rgba(255,255,255,0.96);
    border-left: 1px solid rgba(16,71,38,0.08);
    border-right: 1px solid rgba(16,71,38,0.08);
    padding: 0 36px 30px 36px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ng-media-widget {
    background: #f8fbf8;
    border: 1px solid rgba(18,53,31,0.08);
    border-radius: 20px;
    padding: 24px;
}

.ng-media-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.ng-media-widget h2 {
    margin: 0;
    color: #12351f;
    font-size: 22px;
}

.ng-media-widget p {
    margin: 8px 0 18px 0;
    color: #65786c;
    line-height: 1.5;
}

.ng-media-placeholder {
    border: 1px dashed rgba(18,53,31,0.18);
    border-radius: 16px;
    padding: 24px;
    color: #244634;
    font-weight: 900;
    background: rgba(255,255,255,0.65);
}

@media (max-width: 900px) {
    .ng-media-row {
        width: calc(100% - 28px);
        padding: 0 18px 24px 18px;
        grid-template-columns: 1fr;
    }
}


/* ENGINE 3 - Premium Gallery */

.ng-gallery-grid {
    display: none !important;
}

.ng-gallery-premium {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: 16px;
}

.ng-gallery-feature {
    position: relative;
    height: 430px;
    border-radius: 22px;
    overflow: hidden;
    background: #eef4ef;
    box-shadow: 0 12px 28px rgba(13,48,28,0.10);
}

.ng-gallery-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.ng-gallery-feature-label {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(10,39,22,0.78);
    color: white;
    border-radius: 16px;
    padding: 13px 15px;
    backdrop-filter: blur(10px);
}

.ng-gallery-feature-label strong {
    display: block;
    font-size: 16px;
}

.ng-gallery-feature-label span {
    display: block;
    opacity: 0.85;
    margin-top: 3px;
    font-style: italic;
}

.ng-gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ng-gallery-thumb,
.ng-gallery-more {
    border: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #eef4ef;
    cursor: pointer;
    min-height: 132px;
    box-shadow: 0 8px 18px rgba(13,48,28,0.07);
}

.ng-gallery-thumb img {
    width: 100%;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
    display: block;
}

.ng-gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #12351f;
    color: white;
    font-weight: 900;
    font-size: 18px;
}

.ng-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4,20,11,0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ng-gallery-lightbox.open {
    display: flex;
}

.ng-gallery-lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.ng-gallery-close {
    position: fixed;
    top: 24px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: white;
    color: #12351f;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 950px) {
    .ng-gallery-premium {
        grid-template-columns: 1fr;
    }

    .ng-gallery-feature {
        height: 320px;
    }
}


/* ENGINE 3 - Compact media placeholders */

.ng-media-row {
    padding-top: 0 !important;
}

.ng-media-widget.compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 22px 26px !important;
    min-height: auto !important;
}

.ng-media-widget.compact h2 {
    font-size: 21px !important;
    margin: 0 0 5px 0 !important;
}

.ng-media-widget.compact p {
    margin: 0 !important;
    font-size: 14px !important;
}

.ng-media-widget.compact span {
    background: #f5faf6;
    border: 1px solid rgba(18,53,31,0.10);
    border-radius: 999px;
    padding: 9px 13px;
    color: #244634;
    font-weight: 900;
    white-space: nowrap;
}

.ng-media-placeholder,
.ng-media-icon {
    display: none !important;
}


/* ENGINE 3 - Premium encyclopedia finish */

.ng-tabs-widget {
    margin-top: 34px !important;
    margin-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    border-bottom: 0 !important;
}

.ng-encyclopedia-card {
    margin-top: 0 !important;
    border-radius: 0 0 26px 26px !important;
    padding-top: 36px !important;
}

.ng-encyclopedia-card > h2 {
    font-size: 30px !important;
    margin-bottom: 28px !important;
}

.ng-encyclopedia-card .content-sections {
    gap: 18px !important;
}

.ng-encyclopedia-card .species-content-section {
    background: linear-gradient(180deg, #fbfdfb 0%, #f7faf7 100%) !important;
    border-radius: 22px !important;
    padding: 28px 32px !important;
}

.ng-encyclopedia-card .species-content-section h3 {
    font-size: 23px !important;
    margin-bottom: 16px !important;
}

.ng-encyclopedia-card .species-content-section p {
    font-size: 17px !important;
    line-height: 1.78 !important;
}


/* ENGINE 3 - Related + Sources widgets */

.ng-related-sources-row {
    max-width: 1500px;
    width: calc(100% - 96px);
    margin: 28px auto 28px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ng-related-widget,
.ng-sources-widget {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(18,53,31,0.08);
    border-radius: 22px;
    padding: 26px 28px;
    box-shadow: 0 12px 34px rgba(13,48,28,0.08);
}

.ng-widget-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.ng-widget-mini-header h2 {
    margin: 0;
    font-size: 23px;
    color: #12351f;
}

.ng-widget-mini-header span {
    background: #f5faf6;
    border: 1px solid rgba(18,53,31,0.10);
    border-radius: 999px;
    padding: 8px 12px;
    color: #244634;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.ng-related-widget p,
.ng-sources-widget li {
    color: #20382a;
    line-height: 1.65;
    font-size: 15px;
}

.ng-sources-widget ul {
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 900px) {
    .ng-related-sources-row {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
    }
}


/* ENGINE 3 - Compact legacy observations */

.ng-related-sources-row + .card {
    max-width: 1500px !important;
    width: calc(100% - 96px) !important;
    margin: 0 auto 40px auto !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid rgba(18,53,31,0.08) !important;
    box-shadow: 0 10px 28px rgba(13,48,28,0.06) !important;
    padding: 24px 28px !important;
}

.ng-related-sources-row + .card h2 {
    margin: 0 0 10px 0 !important;
    font-size: 22px !important;
    color: #12351f !important;
}

.ng-related-sources-row + .card p {
    color: #65786c !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .ng-related-sources-row + .card {
        width: calc(100% - 28px) !important;
    }
}


/* ENGINE 3 - Gallery single image mode */

.ng-gallery-premium.single {
    display: block !important;
}

.ng-gallery-premium.single .ng-gallery-feature {
    height: 430px !important;
}

.ng-gallery-premium.single .ng-gallery-thumbs {
    display: none !important;
}


/* ENGINE 3 - Range area pills */

.ng-range-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 2px 0;
}

.ng-range-area-pill {
    background: #f5faf6;
    border: 1px solid rgba(18,53,31,0.10);
    border-radius: 999px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ng-range-area-pill strong {
    color: #12351f;
    font-size: 13px;
}

.ng-range-area-pill span {
    color: #65786c;
    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   ENGINE 3A — DESIGN SYSTEM FINAL
   Premium species page system for millions of species
   ========================================================= */

:root {
    --ng-page-bg: #f4f8f5;
    --ng-card-bg: rgba(255,255,255,0.96);
    --ng-soft-bg: #f8fbf8;
    --ng-border: rgba(18,53,31,0.09);
    --ng-text: #102f1e;
    --ng-muted: #65786c;
    --ng-green: #12622e;
    --ng-green-dark: #12351f;

    --ng-container: 1500px;
    --ng-page-pad: 96px;

    --ng-radius-lg: 24px;
    --ng-radius-md: 20px;
    --ng-radius-sm: 14px;

    --ng-shadow-card: 0 12px 34px rgba(13,48,28,0.08);
    --ng-shadow-soft: 0 8px 22px rgba(13,48,28,0.06);

    --ng-gap-lg: 28px;
    --ng-gap-md: 18px;
    --ng-gap-sm: 12px;
}

/* Page */
body {
    background: var(--ng-page-bg) !important;
    color: var(--ng-text) !important;
}

/* Global species containers */
.species-hero-pro,
.ng-species-overview-row,
.ng-species-profile-widget,
.ng-gallery-widget,
.ng-media-row,
.ng-tabs-widget,
.ng-encyclopedia-card,
.ng-related-sources-row,
.ng-related-sources-row + .card {
    max-width: var(--ng-container) !important;
    width: calc(100% - var(--ng-page-pad)) !important;
    box-sizing: border-box !important;
}

/* Hero */
.species-hero-pro {
    margin: 42px auto 0 auto !important;
    border-radius: var(--ng-radius-lg) !important;
    overflow: hidden !important;
}

.species-hero-pro-image {
    height: 430px !important;
    border-radius: var(--ng-radius-lg) var(--ng-radius-lg) 0 0 !important;
}

.species-hero-pro-image img {
    border-radius: var(--ng-radius-lg) var(--ng-radius-lg) 0 0 !important;
}

.species-hero-pro-text {
    left: 54px !important;
    bottom: 56px !important;
    max-width: 720px !important;
}

.species-hero-pro-text h1 {
    font-size: 56px !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;
}

.species-hero-pro-text h2 {
    font-size: 28px !important;
}

.species-hero-fact-strip-pro {
    border-radius: 0 0 var(--ng-radius-lg) var(--ng-radius-lg) !important;
    padding: 18px 26px !important;
    gap: 14px !important;
}

.hero-strip-card-pro {
    border-radius: 18px !important;
    min-height: 64px !important;
    box-shadow: none !important;
}

/* Main widgets */
.ng-widget-card,
.ng-species-profile-widget,
.ng-gallery-widget,
.ng-media-row,
.ng-tabs-widget,
.ng-encyclopedia-card,
.ng-related-widget,
.ng-sources-widget,
.ng-related-sources-row + .card {
    background: var(--ng-card-bg) !important;
    border: 1px solid var(--ng-border) !important;
    box-shadow: var(--ng-shadow-card) !important;
}

.ng-species-overview-row {
    margin: 28px auto 28px auto !important;
    padding: 0 !important;
    gap: var(--ng-gap-lg) !important;
    grid-template-columns: minmax(0, 1.75fr) minmax(380px, 0.9fr) !important;
}

.ng-widget-card {
    border-radius: var(--ng-radius-lg) !important;
    padding: 24px !important;
}

.ng-widget-header h2,
.ng-gallery-header h2,
.ng-species-profile-widget h2,
.ng-media-widget h2,
.ng-encyclopedia-card > h2,
.ng-widget-mini-header h2 {
    color: var(--ng-green-dark) !important;
    letter-spacing: -0.025em !important;
}

.ng-widget-header p,
.ng-gallery-header p,
.ng-media-widget p,
.ng-profile-item span,
.ng-map-footer,
.ng-summary-text,
.ng-related-widget p,
.ng-sources-widget li {
    color: var(--ng-muted) !important;
}

/* Species profile */
.ng-species-profile-widget,
.ng-gallery-widget {
    margin: 0 auto !important;
    padding: 32px 36px !important;
    border-radius: var(--ng-radius-lg) !important;
}

.ng-species-profile-grid {
    gap: 14px !important;
}

.ng-profile-item {
    border-radius: 18px !important;
    background: var(--ng-soft-bg) !important;
    border: 1px solid var(--ng-border) !important;
}

/* Gallery */
.ng-gallery-feature {
    border-radius: var(--ng-radius-lg) !important;
    height: 420px !important;
}

.ng-gallery-thumb,
.ng-gallery-more {
    border-radius: 18px !important;
}

.ng-gallery-feature-label {
    border-radius: 16px !important;
}

/* Compact media */
.ng-media-row {
    margin: 0 auto !important;
    padding: 0 36px 32px 36px !important;
    border-radius: var(--ng-radius-lg) !important;
}

.ng-media-widget {
    border-radius: var(--ng-radius-md) !important;
    box-shadow: none !important;
}

/* Tabs */
.ng-tabs-widget {
    margin: 34px auto 0 auto !important;
    padding: 14px 18px 16px 18px !important;
    border-radius: var(--ng-radius-lg) var(--ng-radius-lg) 0 0 !important;
    border-bottom: 0 !important;
    box-shadow: var(--ng-shadow-card) !important;
}

.ng-tabs-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
}

.ng-tabs-nav a {
    background: #f5faf6 !important;
    border: 1px solid var(--ng-border) !important;
    border-radius: 999px !important;
    color: #244634 !important;
    padding: 10px 13px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.ng-tabs-nav a.active {
    background: var(--ng-green) !important;
    border-color: var(--ng-green) !important;
    color: white !important;
}

/* Encyclopedia */
.ng-encyclopedia-card {
    margin: 0 auto 0 auto !important;
    padding: 36px !important;
    border-radius: 0 0 var(--ng-radius-lg) var(--ng-radius-lg) !important;
}

.ng-encyclopedia-card .section-nav {
    display: none !important;
}

.ng-encyclopedia-card .species-content-section {
    border-radius: var(--ng-radius-md) !important;
    padding: 28px 32px !important;
    background: linear-gradient(180deg, #fbfdfb 0%, #f7faf7 100%) !important;
    border: 1px solid var(--ng-border) !important;
}

.ng-encyclopedia-card .species-content-section p {
    font-size: 17px !important;
    line-height: 1.78 !important;
    color: #20382a !important;
}

/* Related / sources */
.ng-related-sources-row {
    margin: 28px auto 28px auto !important;
    gap: var(--ng-gap-md) !important;
}

.ng-related-widget,
.ng-sources-widget {
    border-radius: var(--ng-radius-lg) !important;
}

/* Mobile */
@media (max-width: 980px) {
    :root {
        --ng-page-pad: 28px;
    }

    .species-hero-pro {
        margin-top: 24px !important;
    }

    .species-hero-pro-image {
        height: 360px !important;
    }

    .species-hero-pro-text {
        left: 28px !important;
        bottom: 36px !important;
    }

    .species-hero-pro-text h1 {
        font-size: 42px !important;
    }

    .ng-species-overview-row,
    .ng-related-sources-row,
    .ng-media-row {
        grid-template-columns: 1fr !important;
    }

    .ng-species-profile-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .ng-gallery-premium {
        grid-template-columns: 1fr !important;
    }

    .ng-gallery-feature {
        height: 320px !important;
    }
}

@media (max-width: 620px) {
    .ng-species-profile-grid,
    .ng-gallery-thumbs {
        grid-template-columns: 1fr !important;
    }

    .species-hero-fact-strip-pro {
        grid-template-columns: 1fr 1fr !important;
    }

    .ng-widget-card,
    .ng-species-profile-widget,
    .ng-gallery-widget,
    .ng-media-row,
    .ng-encyclopedia-card {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}


/* ==========================================================
   NatureGuard Species UI stabilization — 6I-B
   Temporary production-safe layer.
   Final redesign will live in species_v2.
   ========================================================== */

.ng-science-stack {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto;
    display: grid;
    gap: 20px;
}

.ng-science-stack > section,
.ng-science-stack > article,
.ng-science-stack > div {
    box-sizing: border-box;
    max-width: 100%;
}

.ng-breeding,
.ng-sex-measurements,
.ng-ecology {
    background: #fff;
    border: 1px solid rgba(15, 65, 40, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow:
        0 10px 30px rgba(20, 60, 40, 0.06);
}

.ng-breeding h2,
.ng-sex-measurements h2,
.ng-ecology h2 {
    margin-top: 0;
}

.ng-eco-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ng-eco-track {
    overflow: hidden;
    border-radius: 999px;
}

.ng-eco-track span {
    display: block;
    min-height: 8px;
}

.ng-science-stack p {
    max-width: 900px;
    line-height: 1.55;
}

@media (max-width: 800px) {

    .ng-science-stack {
        width: min(100% - 20px, 1180px);
        margin: 16px auto;
        gap: 14px;
    }

    .ng-breeding,
    .ng-sex-measurements,
    .ng-ecology {
        padding: 18px;
        border-radius: 14px;
    }

    .ng-eco-grid {
        grid-template-columns: 1fr;
    }
}


/* NatureGuard Hero Attribution V1 */

.ng-hero-attribution {
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 4;

    max-width: calc(100% - 36px);

    padding: 6px 10px;

    border-radius: 8px;

    background: rgba(0, 0, 0, 0.58);

    color: #fff;

    font-size: 11px;
    line-height: 1.35;

    backdrop-filter: blur(4px);
}

.ng-hero-attribution strong {
    font-weight: 600;
}

.ng-hero-license {
    opacity: 0.82;
}

@media (max-width: 700px) {

    .ng-hero-attribution {
        left: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        font-size: 10px;
    }
}
