/* Forest Overview: the page's original design (from templates/core/forest/forest_overview.html), unchanged. */
/* ============================================
   BRIGHT EMERALD THEME - Sans Only
   ============================================ */
.forest-page {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-300: #6ee7b7;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    
    --yellow-500: #F1C40F;
    --yellow-400: #F1C40F;
    --yellow-300: #F1C40F;
    --yellow-200: #F1C40F;
    --yellow-100: #F1C40F;
    --yellow-50: #fefce8;
    
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.forest-page {
    -webkit-font-smoothing: antialiased;
    color: var(--gray-800);
    line-height: 1.6;
}

.forest-page * { box-sizing: border-box; }

/* Scoped to content wrapper only */
.forest-content-wrapper {
    background: var(--gray-50) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

.forest-animate-up { animation: fadeUp 0.6s var(--ease) both; }
.forest-animate-left { animation: slideLeft 0.6s var(--ease) both; }
.forest-animate-right { animation: slideRight 0.6s var(--ease) both; }
.forest-animate-scale { animation: scaleIn 0.6s var(--ease) both; }
.forest-animate-rotate { animation: rotateIn 0.6s var(--ease) both; }

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.1s; }
.d3 { animation-delay: 0.15s; }
.d4 { animation-delay: 0.2s; }
.d5 { animation-delay: 0.25s; }
.d6 { animation-delay: 0.3s; }

/* ============================================
   HERO - FULL WIDTH IMAGE
   ============================================ */
.forest-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.forest-hero-img {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.712) 0%, transparent 70%), 
                /* linear-gradient(180deg, rgba(5, 20, 10, 0) 0%, rgba(5, 20, 10, 0) 100%),  */
                url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 1;
}

/* Gradient overlay for text readability */
.forest-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, 
        rgba(236, 253, 245, 0.95) 0%, 
        rgba(236, 253, 245, 0.85) 30%, 
        rgba(236, 253, 245, 0.5) 55%, 
        rgba(236, 253, 245, 0.1) 75%,
        rgba(236, 253, 245, 0) 100%
    ); */
}

.forest-hero-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--gray-50), transparent);
}

.forest-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.forest-hero-left {
    max-width: 800px; /* Wider for centering */
    text-align: center;
}

.forest-hero-glass {
    background: transparent;
    border: none;
    padding: 50px;
    position: relative;
    z-index: 5;
    animation: fadeUp 1.2s var(--ease) forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}



.forest-hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.forest-hero-title span {
    color: #fbbf24;
    position: relative;
    display: inline-block;
}

.forest-hero-desc {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 40px; /* Centered with margin auto */
    max-width: 700px; /* Wider for centered text */
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
    text-align: center;
}

.forest-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center; /* Centered buttons */
}

.forest-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--emerald-700);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(6, 95, 70, 0.25);
}

.forest-btn-main:hover {
    background: #F1C40F;
    color: var(--emerald-950);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(241, 196, 15, 0.35);
}

.forest-btn-main svg {
    transition: transform 0.3s var(--ease);
    width: 18px;
    height: 18px;
}

.forest-btn-main:hover svg {
    transform: translateX(4px);
}

.forest-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--emerald-800);
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--emerald-300);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.forest-btn-ghost:hover {
    background: #F1C40F;
    border-color: #F1C40F;
    color: var(--emerald-900);
    transform: translateY(-3px);
}

/* Hero right - floating stats cards */
.forest-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    padding-top: 40px;
}

.forest-hero-float-card {
    background: rgba(255, 255, 255, 0.548);
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--emerald-100);
    animation: float 5s ease-in-out infinite;
    min-width: 180px;
}

.forest-hero-float-card:nth-child(2) { animation-delay: 1s; animation-duration: 6s; }
.forest-hero-float-card:nth-child(3) { animation-delay: 2s; animation-duration: 5.5s; }

.forest-float-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--emerald-700);
    line-height: 1;
}

.forest-float-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.forest-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 3;
    animation: fadeIn 1s ease 1.5s both;
}

.forest-hero-scroll svg {
    width: 24px;
    height: 24px;
    animation: float 2s ease-in-out infinite;
}



/* ============================================
   INTRO SECTION
   ============================================ */
.forest-intro {
    padding: 120px 0;
    background: white;
    position: relative;
}

.forest-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.forest-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.forest-intro-left {
    position: sticky;
    top: 100px;
}

.forest-quote-icon {
    width: 64px;
    height: 64px;
    background: var(--emerald-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.forest-quote-icon svg {
    width: 32px;
    height: 32px;
    color: var(--emerald-600);
}

.forest-quote-text {
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.3;
    color: var(--emerald-900);
    margin-bottom: 16px;
}

.forest-quote-author {
    font-size: 15px;
    color: var(--gray-500);
    font-weight: 600;
}

.forest-intro-right p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.forest-intro-right p:first-child::first-letter {
    font-size: 64px;
    font-weight: 800;
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 8px;
    color: var(--emerald-600);
}

.forest-intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid var(--emerald-100);
}

.forest-stat-item {
    text-align: center;
    padding: 20px;
    background: var(--emerald-50);
    border-radius: 16px;
    border: 1px solid var(--emerald-100);
    transition: all 0.3s var(--ease);
}

.forest-stat-item:hover {
    background: var(--yellow-50);
    border-color: #F1C40F;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(241, 196, 15, 0.1);
}

.forest-stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: 6px;
}

.forest-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.forest-section-head {
    text-align: center;
    margin-bottom: 60px;
}



.forest-section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--emerald-950);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ============================================
   GEOGRAPHY - With image
   ============================================ */
.forest-geo {
    padding: 120px 0;
    background: var(--emerald-50);
    position: relative;
    overflow: hidden;
}

.forest-geo::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--emerald-200) 0%, transparent 70%);
    pointer-events: none;
}

.forest-geo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.forest-geo-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    animation: geoFloat 5s ease-in-out infinite;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
    50% { transform: translateY(-12px); box-shadow: 0 32px 60px rgba(5,150,105,0.2); }
}

@keyframes geoDrift {
    0%, 100% { transform: scale(1.05) translateX(0); }
    50% { transform: scale(1.05) translateX(-8px); }
}

@keyframes badgeShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0) translateY(0); opacity: 0.6; }
    50% { transform: translateX(10px) translateY(-5px); opacity: 1; }
}

.forest-geo-img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transform: scale(1.05) translateX(0);
    animation: geoDrift 8s ease-in-out infinite;
    transition: none;
}

.forest-geo-img-wrap:hover {
    animation-play-state: paused;
}

.forest-geo-img-wrap:hover img {
    animation-play-state: paused;
    transform: scale(1.08);
}

.forest-geo-img-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(90deg, white 0%, #f0fdf4 40%, white 60%, #f0fdf4 100%);
    background-size: 200% auto;
    animation: badgeShimmer 3s linear infinite;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald-800);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Floating cloud shapes */
.geo-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50px;
    animation: cloudFloat var(--dur, 4s) ease-in-out infinite var(--delay, 0s);
    pointer-events: none;
    z-index: 5;
    backdrop-filter: blur(2px);
    /* Classic cloud shape */
    width: var(--w, 60px);
    height: calc(var(--w, 60px) * 0.5);
    box-shadow: 0 4px 10px rgba(255,255,255,0.4);
}

.geo-cloud::before,
.geo-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}

.geo-cloud::before {
    width: 55%;
    height: 140%;
    top: -60%;
    left: 15%;
}

.geo-cloud::after {
    width: 40%;
    height: 120%;
    top: -45%;
    left: 45%;
}

.forest-geo-list {
    list-style: none;
}

.forest-geo-list li {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--emerald-100);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    transition: all 0.3s var(--ease);
}

.forest-geo-list li:hover {
    padding-left: 8px;
    color: var(--emerald-800);
}

.forest-geo-list li:last-child {
    border-bottom: none;
}

.forest-geo-icon {
    width: 44px;
    height: 44px;
    background: var(--emerald-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
}

.forest-geo-list li:hover .forest-geo-icon {
    background: #F1C40F;
    transform: scale(1.1);
}

.forest-geo-icon svg {
    width: 22px;
    height: 22px;
    color: var(--emerald-600);
    transition: color 0.3s ease;
}

.forest-geo-list li:hover .forest-geo-icon svg {
    color: var(--yellow-700);
}

/* ============================================
   BIODIVERSITY - Green cards
   ============================================ */
.forest-bio {
    padding: 120px 0;
    background: white;
}

.forest-bio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.forest-bio-card {
    background: var(--emerald-700);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    z-index: 1;
}

.forest-bio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    opacity: 1; /* Visible by default */
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    z-index: 1; /* On top of the background color */
    filter: brightness(0.4) saturate(1.1);
}

.forest-bio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow-400);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
    z-index: 3;
}

.forest-bio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    border-color: #F1C40F;
}

.forest-bio-card:hover::after {
    opacity: 0; /* Hide image on hover to show color */
    transform: scale(1.1);
}

.forest-bio-card:hover::before {
    transform: scaleX(1);
}

.forest-bio-icon, .forest-bio-number, .forest-bio-label {
    position: relative;
    z-index: 2; /* Always above the background/image */
}

.forest-bio-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s var(--ease);
}

.forest-bio-card:hover .forest-bio-icon {
    background: var(--yellow-400);
    transform: rotate(-5deg) scale(1.1);
}

.forest-bio-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: color 0.3s ease;
}

.forest-bio-card:hover .forest-bio-icon svg {
    color: var(--emerald-900);
}

.forest-bio-number {
    font-size: 40px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.forest-bio-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald-200);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   SPECIES - Modern with images
   ============================================ */
.forest-species {
    padding: 120px 0;
    background:  white;
}

.forest-species-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.forest-species-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.5s var(--ease);
    border: 1px solid var(--gray-100);
}

.forest-species-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 56px rgba(0,0,0,0.12);
    border-color: var(--emerald-200);
}

.forest-species-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 45% 55%;
}

.forest-species-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.forest-species-card.featured .forest-species-img {
    height: 100%;
    min-height: 380px;
}

.forest-species-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.forest-species-card:hover .forest-species-img img {
    transform: scale(1.1);
}

.forest-species-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.forest-species-card:hover .forest-species-img-overlay {
    opacity: 1;
}

.forest-species-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--yellow-400);
    color: var(--emerald-950);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s var(--ease);
}

.forest-species-card:hover .forest-species-badge {
    background: var(--emerald-700);
    color: white;
}

.forest-species-info {
    padding: 28px;
}

.forest-species-card.featured .forest-species-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.forest-species-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--emerald-950);
    margin-bottom: 4px;
}

.forest-species-sci {
    font-size: 14px;
    color: var(--emerald-600);
    font-style: italic;
    margin-bottom: 14px;
}

.forest-species-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
}

.forest-species-meta {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-100);
}

.forest-species-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
}

.forest-species-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--emerald-500);
}

/* ============================================
   SEASONAL - Dark with image
   ============================================ */
.forest-seasonal {
    padding: 120px 0;
    background: var(--emerald-950);
    position: relative;
    overflow: hidden;
}

.forest-seasonal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle, #1b5e20 0%, #004d2c 60%, #052e16 100%);
}

.forest-seasonal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.forest-seasonal-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.forest-seasonal-img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}

.forest-seasonal-img-wrap:hover img {
    transform: scale(1.05);
}

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

.sparkle::before, .sparkle::after {
    content: '✦';
    position: absolute;
    color: #F1C40F;
    font-size: 18px;
    animation: sparkle 2s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.9), 0 0 16px rgba(241, 196, 15, 0.5);
}

.sparkle::after {
    color: white;
    font-size: 10px;
    animation-delay: 1s;
    top: 12px;
    left: 12px;
}

/* Ripple / Splash effect for bio cards */
@keyframes ripple-splash {
    0% { transform: scale(0) translate(-50%, -50%); opacity: 1; }
    100% { transform: scale(6) translate(-50%, -50%); opacity: 0; }
}

.bio-ripple {
    position: absolute;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(241,196,15,0.8) 40%, transparent 70%);
    transform: scale(0) translate(-50%, -50%);
    transform-origin: 0 0;
    animation: ripple-splash 1.2s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: screen;
}

.forest-seasonal-img-frame {
    position: absolute;
    inset: -16px;
    border: 2px solid var(--emerald-600);
    border-radius: 32px;
    opacity: 0.3;
    pointer-events: none;
}

.forest-seasonal-content {
    color: white;
}



.forest-hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff; /* Changed to white for better contrast on the new dark overlay */
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.forest-hero-title span {
    color: #fbbf24; /* Match the user's yellow/amber preference */
}

.forest-hero-desc {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 540px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.forest-seasonal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--yellow-400);
    color: var(--emerald-950);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    border: none;
    cursor: pointer;
}

.forest-seasonal-btn:hover {
    background: #F1C40F;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(241, 196, 15, 0.3);
}

/* ============================================
   TABLE
   ============================================ */
.forest-trees {
    padding: 120px 0;
    background: white;
}

.forest-trees-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

.forest-search {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--gray-800);
    width: 300px;
    outline: none;
    transition: all 0.3s ease;
}

.forest-search::placeholder {
    color: var(--gray-400);
}

.forest-search:focus {
    border-color: var(--emerald-400);
    background: white;
    box-shadow: 0 0 0 4px var(--emerald-100);
}

.forest-table-wrap {
    border: 2px solid var(--emerald-100);
    border-radius: 20px;
    overflow: hidden;
    background: var(--emerald-50);
}

.forest-table {
    width: 100%;
    border-collapse: collapse;
}

.forest-table thead {
    background: var(--emerald-100);
}

.forest-table th {
    text-align: left;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-700);
    border-bottom: 2px solid var(--emerald-200);
}

.forest-table td {
    padding: 16px 24px;
    font-size: 15px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--emerald-100);
    transition: all 0.2s ease;
}

.forest-table tbody tr:hover td {
    background: #F1C40F;
    color: var(--emerald-950);
}

.forest-table tbody tr:last-child td {
    border-bottom: none;
}

.forest-botanical {
    font-size: 14px;
    color: var(--emerald-700);
    font-style: italic;
    font-weight: 500;
}

.forest-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--yellow-200);
    color: var(--yellow-800);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    font-style: normal;
    transition: all 0.3s ease;
}

.forest-table tbody tr:hover .forest-state-badge {
    background: var(--yellow-400);
    color: var(--emerald-950);
}

.forest-state-badge svg {
    width: 12px;
    height: 12px;
}

.forest-hidden-row {
    display: none !important;
}

/* ============================================
   EXPLORE
   ============================================ */
.forest-explore {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.forest-explore-title {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    color: var(--emerald-950);
    margin-bottom: 10px;
}

.forest-explore-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 36px;
}

.forest-explore-grid {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.forest-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--emerald-800);
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--emerald-200);
    transition: all 0.3s var(--ease);
}

.forest-explore-btn:hover {
    background: #F1C40F;
    border-color: #F1C40F;
    color: var(--emerald-950);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(241, 196, 15, 0.25);
}

.forest-explore-btn svg {
    width: 16px;
    height: 16px;
    color: var(--emerald-500);
    transition: transform 0.3s ease;
}

.forest-explore-btn:hover svg {
    transform: translateX(4px);
    color: var(--emerald-950);
}

/* ============================================
   SEARCH & PAGINATION
   ============================================ */
.forest-search {
    background: white;
    color: var(--gray-900);
    border: 2px solid var(--emerald-950);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    width: 300px;
    outline: none;
    transition: all 0.3s ease;
}
.forest-search::placeholder {
    color: var(--gray-400);
}
.forest-search:focus {
    border-color: var(--emerald-400);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.forest-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}
.forest-page-btn {
    background: var(--emerald-700);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.forest-page-btn:hover:not(:disabled) {
    background: var(--emerald-600);
}
.forest-page-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
}
.forest-page-info {
    font-weight: 600;
    color: var(--gray-700);
}

/* ============================================
   REVEAL
   ============================================ */
.forest-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.forest-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Unhide footer for this page */
footer.footer {
    display: block !important;
}

@media (max-width: 1024px) {
    .forest-hero-inner { grid-template-columns: 1fr; padding: 0 30px; text-align: center; }
    .forest-hero-left { max-width: 100%; }
    .forest-hero-desc { margin-left: auto; margin-right: auto; }
    .forest-hero-btns { justify-content: center; }
    .forest-hero-right { display: none; }
    .forest-intro-grid, .forest-geo-grid, .forest-seasonal-grid { grid-template-columns: 1fr; gap: 40px; }
    .forest-intro-left { position: relative; top: 0; }
    .forest-bio-grid { grid-template-columns: repeat(2, 1fr); }
    .forest-species-grid { grid-template-columns: 1fr; }
    .forest-species-card.featured { grid-template-columns: 1fr; }
    .forest-species-card.featured .forest-species-img { min-height: 260px; }
}

@media (max-width: 768px) {
    .forest-hero-title { font-size: 36px; }
    .forest-bio-grid { grid-template-columns: 1fr; }
    .forest-trees-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .forest-search { width: 100%; }
    .forest-explore-grid { flex-direction: column; align-items: center; }
    .forest-explore-btn { width: 100%; max-width: 300px; justify-content: center; }
    .forest-container { padding: 0 20px; }
    .forest-hero-inner { padding: 0 20px; }
}

/* ── Cradle of Angiosperms: an editorial spread on the golden ratio (templates/core/designs/forest_overview/intro.html).
   Columns 38.2 / 61.8. Type steps by φ from a 14px text size: 14 · 22.6 · 36.6 · 59.3 · 96. Spacing 4/8/12/20/32/52/84.
   The portrait is a cut-out lithograph (transparent PNG) on a flat sage arch, its head rising above the arch. ── */
.hk-spread { padding: 32px 0 !important; background: #f9f6ef; overflow: hidden; }
.hk-wrap { display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); gap: 52px; align-items: stretch;
    max-width: none; margin: 0 auto; padding: 0 5%; box-sizing: border-box; }
.hk-portrait { position: relative; margin: 0; min-height: 520px; height: auto; display: flex; align-items: flex-end; justify-content: center; isolation: isolate; }
.hk-arch { position: absolute; left: 6%; right: 6%; bottom: 0; height: 92%; z-index: -1; background: #d6e6da; border-radius: 999px 999px 8px 8px; }
/* the portrait and its signature share one frame the shape of the original lithograph (933 × 1158), so they line up;
   each layer slides sideways with the mouse by its own amount (var(--mx), set by forest_overview.js) through "translate" */
.hk-art { position: absolute; left: 50%; bottom: 0; height: 100%; max-width: 112%; aspect-ratio: 933 / 1158; transform: translateX(-50%);
    translate: calc(var(--mx, 0) * 36px) 0; }
.hk-art-portrait { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.hk-art-signature { position: absolute; left: 3.215%; bottom: .518%; width: 33.119%; height: auto; translate: calc(var(--mx, 0) * 64px) 0; }
.hk-arch { translate: calc(var(--mx, 0) * -30px) 0; }
.hk-credit { position: absolute; left: 6%; bottom: -24px; font-size: 11px; line-height: 1; color: rgba(15, 28, 16, .45); }

.hk-copy { min-width: 0; padding-bottom: 4px; }
.hk-title { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(30px, 3.4vw, 50px);
    line-height: .96; letter-spacing: -.04em; color: #0a2e1a; text-wrap: balance; }
.hk-title strong { font-weight: inherit; }
.hk-by { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 14px; font-weight: 600; color: #1a472a; }
.hk-by::before { content: ""; width: 32px; height: 2px; background: #f1c40f; }

.hk-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px;
    border-top: 1px solid rgba(15, 28, 16, .14); border-bottom: 1px solid rgba(15, 28, 16, .14); }
.hk-figure { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 20px 0; }
.hk-figure + .hk-figure { padding-left: 20px; border-left: 1px solid rgba(15, 28, 16, .14); }
.hk-figure-num { font-family: 'Roboto', sans-serif; font-variant-numeric: tabular-nums; font-size: clamp(28px, 2.6vw, 37px); font-weight: 500;
    line-height: 1; letter-spacing: -.02em; color: #0a2e1a; }
.hk-figure-label { font-size: 13px; font-weight: 600; color: #4b5563; }
.hk-note { margin: 8px 0 0; display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1; color: rgba(15, 28, 16, .42); }
.hk-note::before { content: "i"; display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; border-radius: 50%;
    border: 1px solid currentColor; font: 700 7px/1 'Plus Jakarta Sans', sans-serif; }

.hk-text { margin-top: 32px; columns: 2; column-gap: 32px; }
.hk-text h3 { column-span: all; margin: 0 0 12px; font-size: 22px; color: #0a2e1a; }
.hk-text p { margin: 0 0 12px; font-size: 14px; line-height: 1.618; color: #1f2a22; }
.hk-text p strong { color: #1a472a; }

@media (prefers-reduced-motion: no-preference) {
    .hk-spread .hk-arch { transform-origin: bottom; animation: hkArch .9s cubic-bezier(.16, 1, .3, 1) both; }
    .hk-spread .hk-art { animation: hkRise 1s cubic-bezier(.16, 1, .3, 1) .1s both; }
    @keyframes hkArch { from { transform: scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }
    @keyframes hkRise { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
}

@media (max-width: 1100px) {
    .hk-text { columns: 1; }
}
@media (max-width: 900px) {
    .hk-spread { padding: 32px 0 !important; }
    html body .hk-wrap { grid-template-columns: minmax(0, 1fr) !important; gap: 32px; padding: 0 20px; }
    .hk-portrait { min-height: 0; height: min(96vw, 440px); }
    .hk-title { font-size: clamp(28px, 8vw, 40px); }
    .hk-figure { padding: 12px 12px 12px 0; }
    .hk-figure + .hk-figure { padding-left: 12px; }
    .hk-figure-num { font-size: 26px; }
    .hk-figure-label { font-size: 12px; }
}

/* ── The rest of the page in the same editorial language as the Cradle spread: φ type steps (14 · 22.6 · 36.6 · 59),
   spacing 4/8/12/20/32/52/84, 1px rules, corners 8px, golden-ratio splits; each section its own composition. ── */
.ed-sec { padding: 84px 0 !important; background: #f9f6ef; }
.ed-wrap { max-width: none; margin: 0 auto; padding: 0 5%; box-sizing: border-box; }   /* edge to edge within the page's 5% margins */
.ed-h2 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(28px, 2.5vw, 38px); line-height: 1; letter-spacing: -.035em; color: #0a2e1a; text-wrap: balance; }
.ed-h2-light { color: #fff; }
.ed-lead { margin: 20px 0 0; font-size: 22px; font-weight: 600; line-height: 1.3; color: #1a472a; }
.ed-note { margin: 12px 0 0; display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1; color: rgba(15, 28, 16, .42); }
.ed-note::before { content: "i"; display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; border-radius: 50%;
    border: 1px solid currentColor; font: 700 7px/1 'Plus Jakarta Sans', sans-serif; }
.ed-note-light { color: rgba(255, 255, 255, .45); }
.ed-credit { margin-top: 8px; font-size: 11px; color: rgba(15, 28, 16, .45); }
.ed-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.ed-head-note { max-width: 46ch; font-size: 14px; line-height: 1.618; color: #4b5563; }
.ed-head-note p { margin: 0; }
.ed-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Geography & Climate: facts 38.2 | landscape 61.8 */
.ed-split { display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); gap: 52px; align-items: stretch; }
.ed-facts { margin-top: 32px; border-top: 1px solid rgba(15, 28, 16, .14); }
.ed-facts p { margin: 0; padding: 12px 8px; border-bottom: 1px solid rgba(15, 28, 16, .14); font-size: 14px; line-height: 1.618; color: #1f2a22;
    border-radius: 4px; transition: background-color 150ms cubic-bezier(.4, 0, .2, 1); }
.ed-facts p:hover { background: rgba(26, 71, 42, .05); }
.ed-facts strong { display: block; margin-bottom: 4px; font-size: 16px; color: #0a2e1a; }
.ed-photo { position: relative; margin: 0; min-height: 520px; border-radius: 8px; overflow: hidden; background: #d6e6da; perspective: 900px; }
.ed-photo img { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.ed-photo .ed-credit { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 2px 8px; border-radius: 999px; background: rgba(10, 46, 26, .45); color: rgba(255, 255, 255, .8); }


/* Rare & Endemic Species: panels that widen when chosen */
.ed-panels { display: flex; gap: 12px; height: clamp(460px, 42vw, 600px); }
.ed-panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: 8px; overflow: hidden; background: #123b26; cursor: pointer; isolation: isolate;
    transition: flex-grow .6s cubic-bezier(.16, 1, .3, 1); }
.ed-panel.is-open { flex-grow: 2.618; cursor: default; }
.ed-panel img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .6s; filter: saturate(.7) brightness(.8); }
.ed-panel.is-open img { filter: none; }
.ed-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 46, 26, 0) 35%, rgba(10, 46, 26, .9) 100%); }
.ed-panel-text { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.ed-panel-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; color: #fff; }
.ed-panel.is-open .ed-panel-title { font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.02em; }
.ed-panel-sci { margin: 4px 0 0; font-size: 14px; font-style: italic; color: rgba(255, 255, 255, .78); }
.ed-panel-story { max-width: 52ch; margin: 12px 0 0; font-size: 14px; line-height: 1.618; color: rgba(255, 255, 255, .88);
    max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s cubic-bezier(.16, 1, .3, 1), opacity .4s .1s; }
.ed-panel.is-open .ed-panel-story { max-height: 220px; opacity: 1; }
.ed-panel:focus-visible { outline: 2px solid #f1c40f; outline-offset: 3px; }

/* Important Tree Species: a ruled three-column index with search */
.ed-trees { background: #f2ede1; }
.ed-search { display: flex; align-items: center; gap: 8px; width: min(320px, 100%); padding: 0 12px; height: 44px; border-radius: 8px;
    border: 1px solid rgba(15, 28, 16, .14); background: #f9f6ef; color: #4b5563; transition: border-color 150ms cubic-bezier(.4, 0, .2, 1); }
.ed-search:focus-within { border-color: #1a472a; }
.ed-search-input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 14px 'Plus Jakarta Sans', sans-serif; color: #0f1c10; outline: none; }
.ed-index-key { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: #2d6a4f; }
.ed-index-key span { color: rgba(15, 28, 16, .3); padding: 0 4px; }
.ed-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid rgba(15, 28, 16, .14); }
.ed-index-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-bottom: 1px solid rgba(15, 28, 16, .14); border-radius: 4px;
    transition: background-color 150ms cubic-bezier(.4, 0, .2, 1); }
.ed-index-row:hover { background: rgba(26, 71, 42, .05); }
.ed-index-row[hidden] { display: none; }
.ed-index-sci { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 600; color: #0a2e1a; }
.ed-index-sci em { font-style: italic; }
.ed-index-common { font-size: 13px; color: #4b5563; }
.ed-state { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #7a5d00; }
.ed-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f1c40f; }
.ed-index-empty { margin: 20px 0 0; font-size: 14px; color: #4b5563; }

@media (max-width: 1100px) { .ed-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .ed-sec { padding: 52px 0 !important; }
    .ed-wrap { padding: 0 20px; }
    html body .ed-split { grid-template-columns: minmax(0, 1fr) !important; gap: 32px; }
    .ed-photo { min-height: 0; height: min(80vw, 380px); }
    .ed-head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ed-panels { flex-direction: column; height: auto; }
    .ed-panel { flex: none; height: 400px; }
    .ed-panel-story { max-height: none !important; opacity: 1 !important; }
    .ed-panel img { filter: none; }
    .ed-index { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .ed-panel, .ed-panel img, .ed-photo img { transition: none !important; }
}

/* Many species (5 or more): the row scrolls sideways once the panels no longer fit, and a narrowed panel shows its name
   upright; on a phone the panels become a swipeable row instead of a long stack. */
.ed-panels-many { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 8px; }
.ed-panels-many .ed-panel { flex-basis: 132px; min-width: 132px; scroll-snap-align: start; }
.ed-panels-many .ed-panel.is-open { min-width: min(560px, 80%); }
.ed-panels-many .ed-panel:not(.is-open) .ed-panel-text { left: 50%; right: auto; bottom: 20px; transform: translateX(-50%); writing-mode: vertical-rl; rotate: 180deg; }
.ed-panels-many .ed-panel:not(.is-open) .ed-panel-title { font-size: 18px; white-space: nowrap; }
.ed-panels-many .ed-panel:not(.is-open) .ed-panel-sci,
.ed-panels-many .ed-panel:not(.is-open) .ed-panel-story { display: none; }
@media (max-width: 900px) {
    .ed-panels { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
    .ed-panels::-webkit-scrollbar { display: none; }
    .ed-panel, .ed-panels-many .ed-panel, .ed-panels-many .ed-panel.is-open { flex: 0 0 82vw; min-width: 0; height: 440px; scroll-snap-align: center; }
    .ed-panels-many .ed-panel:not(.is-open) .ed-panel-text { left: 20px; right: 20px; transform: none; writing-mode: horizontal-tb; rotate: none; }
    .ed-panels-many .ed-panel:not(.is-open) .ed-panel-sci, .ed-panels-many .ed-panel:not(.is-open) .ed-panel-story { display: block; }
}

/* Living Treasure: six photo cards in a grid. --mx/--my (-1 to 1, the pointer's place on the card) and --lit (0 or 1)
   are set by forest_overview.js ("treasure cards"): the card leans toward the pointer, a soft light sits under it and
   the photo drifts the other way. Cards rise into place one after another when the section is first seen (.is-seen). */
.ed-treasures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; perspective: 1200px; }
.ed-treasure { --mx: 0; --my: 0; --lit: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between;
    min-height: 280px; padding: 20px; border-radius: 8px; overflow: hidden; isolation: isolate; background: #0a2e1a; color: #fff;
    transform: rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 6deg)) translateY(calc(var(--lit) * -6px));
    transition: transform 400ms cubic-bezier(.16, 1, .3, 1), box-shadow 400ms cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 calc(var(--lit) * 24px) calc(var(--lit) * 48px) calc(var(--lit) * -16px) rgba(10, 46, 26, .55); }
.ed-treasure.is-tracking { transition: transform 120ms linear, box-shadow 400ms cubic-bezier(.16, 1, .3, 1); }
.ed-treasure-img { position: absolute; inset: -6%; z-index: -2; width: 112%; height: 112%; object-fit: cover;
    transform: translate(calc(var(--mx) * -2.5%), calc(var(--my) * -2.5%)) scale(calc(1 + var(--lit) * .05));
    transition: transform 600ms cubic-bezier(.16, 1, .3, 1); }
.ed-treasure::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10, 46, 26, .35) 0%, rgba(10, 46, 26, .55) 45%, rgba(10, 46, 26, .92) 100%); }
.ed-treasure::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--lit);
    background: radial-gradient(320px circle at calc(50% + var(--mx) * 50%) calc(50% + var(--my) * 50%), rgba(241, 196, 15, .22), transparent 65%);
    transition: opacity 300ms cubic-bezier(.4, 0, .2, 1); }
.ed-treasure-icon { display: block; width: 32px; height: 32px; color: #b7dcc3; transition: color 150ms cubic-bezier(.4, 0, .2, 1), transform 400ms cubic-bezier(.16, 1, .3, 1); }
.ed-treasure-icon svg { display: block; width: 100%; height: 100%; }
.ed-treasure:hover .ed-treasure-icon, .ed-treasure:focus-within .ed-treasure-icon { color: #f1c40f; transform: translateY(-2px) rotate(-6deg); }
.ed-treasure-text { display: flex; flex-direction: column; gap: 8px; }
.ed-treasure-num { font-family: 'Roboto', sans-serif; font-variant-numeric: tabular-nums; font-size: clamp(40px, 3.6vw, 56px); font-weight: 500;
    line-height: 1; letter-spacing: -.02em; color: #fff; transition: color 150ms cubic-bezier(.4, 0, .2, 1); }
.ed-treasure:hover .ed-treasure-num { color: #f1c40f; }
.ed-treasure-label { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .9); }
/* rising into place (only when the script is running and motion is welcome) */
.ed-treasures.will-rise .ed-treasure { opacity: 0; translate: 0 24px; }
.ed-treasures.will-rise.is-seen .ed-treasure { opacity: 1; translate: 0 0;
    transition: opacity 600ms cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 80ms), translate 700ms cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 80ms),
                transform 400ms cubic-bezier(.16, 1, .3, 1), box-shadow 400ms cubic-bezier(.16, 1, .3, 1); }
@media (max-width: 1100px) { .ed-treasures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ed-treasures { grid-template-columns: minmax(0, 1fr); gap: 12px; } .ed-treasure { min-height: 200px; } }
@media (prefers-reduced-motion: reduce) { .ed-treasure, .ed-treasure-img, .ed-treasure-icon { transition: none !important; transform: none !important; } }

/* Nokrek: one sand card, the photo on the left (61.8%) and the name, tagline and text on the right (38.2%) */
.ed-nk-card { display: grid; grid-template-columns: minmax(0, 61.8fr) minmax(0, 38.2fr); border-radius: 8px; overflow: hidden; background: #f2ede1;
    transition: transform 400ms cubic-bezier(.16, 1, .3, 1), box-shadow 400ms cubic-bezier(.16, 1, .3, 1); }
.ed-nk-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(10, 46, 26, .35); }
.ed-nk-card.is-text-only { grid-template-columns: minmax(0, 1fr); }
.ed-nk-photo.ed-photo { min-height: 480px; border-radius: 0; }
.ed-nk-info { display: flex; flex-direction: column; justify-content: center; padding: 52px 52px 52px 32px; }
.ed-nk-sub { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font-size: 18px; font-weight: 600; color: #2d6a4f; }
.ed-nk-sub::before { content: ""; width: 32px; height: 2px; flex: none; background: #f1c40f; }
.ed-nk-text { margin-top: 20px; }
.ed-nk-text p { margin: 0 0 12px; font-size: 15px; line-height: 1.618; color: #1f2a22; }
.ed-nk-text strong { color: #1a472a; }
@media (max-width: 900px) {
    .ed-nk-card { grid-template-columns: minmax(0, 1fr); }
    .ed-nk-photo.ed-photo { min-height: 0; height: min(64vw, 340px); }
    .ed-nk-info { padding: 32px 20px; }
    .ed-nk-sub { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ed-nk-card { transition: none; } .ed-nk-card:hover { transform: none; } }

/* Species row on phones: dots for the panel in view and a "Swipe to see more" hint that fades after the first swipe */
.ed-swipe { display: none; }
@media (max-width: 900px) {
    .ed-swipe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
    .ed-dots { display: flex; gap: 8px; }
    .ed-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(15, 28, 16, .2); transition: width 250ms cubic-bezier(.4, 0, .2, 1), background-color 250ms cubic-bezier(.4, 0, .2, 1); }
    .ed-dot.is-on { width: 20px; background: #1a472a; }
    .ed-swipe-hint { font-size: 13px; font-weight: 600; color: #4b5563; transition: opacity 400ms ease; }
    .ed-swipe.is-used .ed-swipe-hint { opacity: 0; }
    @media (prefers-reduced-motion: no-preference) {
        .ed-swipe-arrow { display: inline-block; animation: edNudge 1.4s ease-in-out infinite; }
        @keyframes edNudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
    }
}

/* ── Landscapes slider (landscapes.html): a coverflow row; the centre slide large, its neighbours peeking smaller ── */
.ls { padding: 84px 0 !important; background: #0a2e1a; overflow: hidden; }
.ls-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0 5%; margin-bottom: 32px; }
.ls-title { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.02; letter-spacing: -.035em; color: #fff; }
.ls-sub { margin: 12px 0 0; font-size: 16px; color: rgba(255, 255, 255, .72); max-width: 52ch; }
.ls-controls { display: flex; align-items: center; gap: 12px; flex: none; }
.ls-count { margin-right: 8px; font-family: 'Roboto', sans-serif; font-variant-numeric: tabular-nums; font-size: 14px; color: rgba(255, 255, 255, .6); }
.ls-count b { font-weight: 500; color: #fff; }
.ls-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background-color 150ms cubic-bezier(.4, 0, .2, 1), color 150ms cubic-bezier(.4, 0, .2, 1), transform 150ms cubic-bezier(.4, 0, .2, 1); }
.ls-btn:hover { background: #f1c40f; color: #0a2e1a; }
.ls-btn:active { transform: translateY(1px); }
.ls-btn:focus-visible, .ls-track:focus-visible { outline: 2px solid #f1c40f; outline-offset: 3px; }
.ls-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px calc(50% - min(31vw, 460px)); cursor: grab; outline: none; }
.ls-track::-webkit-scrollbar { display: none; }
.ls-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.ls-slide { position: relative; flex: 0 0 min(62vw, 920px); aspect-ratio: 16 / 9; margin: 0; border-radius: 8px; overflow: hidden; scroll-snap-align: center; background: #123b26;
    transform: scale(.88); opacity: .45; transition: transform 600ms cubic-bezier(.16, 1, .3, 1), opacity 600ms cubic-bezier(.16, 1, .3, 1); cursor: pointer; }
.ls-slide.is-on { transform: none; opacity: 1; cursor: default; }
.ls-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; transform: scale(1.08); transition: transform 7s linear; }
.ls-slide.is-on img { transform: scale(1.0) translateX(-1.5%); }
.ls-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 46, 26, 0) 55%, rgba(10, 46, 26, .78) 100%); pointer-events: none; }
.ls-cap { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 28px; display: flex; flex-direction: column; gap: 4px; color: #fff;
    opacity: 0; transform: translateY(12px); transition: opacity 400ms cubic-bezier(.4, 0, .2, 1) 150ms, transform 500ms cubic-bezier(.16, 1, .3, 1) 150ms; }
.ls-slide.is-on .ls-cap { opacity: 1; transform: none; }
.ls-cap strong { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.ls-cap span { font-size: 15px; color: rgba(255, 255, 255, .85); }
.ls-progress { width: min(62vw, 920px); height: 2px; margin: 32px auto 0; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.ls-progress span { display: block; height: 100%; background: #f1c40f; transform: scaleX(0); transform-origin: left; }
@media (max-width: 900px) {
    .ls { padding: 52px 0 !important; }
    .ls-head { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 20px; }
    .ls-track { gap: 12px; padding: 8px 9vw; }
    .ls-slide { flex-basis: 82vw; aspect-ratio: 4 / 3; }
    .ls-cap { left: 20px; right: 20px; bottom: 20px; }
    .ls-progress { width: 82vw; }
}
@media (prefers-reduced-motion: reduce) { .ls-slide, .ls-slide img, .ls-cap { transition: none; } .ls-slide.is-on img { transform: none; } }
.ls-slide.is-on img { transform: scale(1.05) translateX(-1.5%); }   /* the drift stays inside the frame */
html body .ls-btn svg { width: 18px !important; height: 18px !important; flex: none; }

/* Section headings kept to the site's smaller size (up to 36px) */
html body .forest-section-title { font-size: clamp(28px, 2.5vw, 38px); }

/* The tree index: each scientific name in italics, as everywhere on the site (its "State tree" tag stays upright) */
.ed-index-sci { font-style: italic; }
.ed-index-sci .ed-state { font-style: normal; }
