
/* CH4 Layer Controls */
.ch4-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
    max-width: 200px;
}
.ch4-toggle-btn {
    padding: 8px 12px;
    background: white;
    border: 2px solid #065f46;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}
.ch4-toggle-btn:hover { background: #f0fdf4; }
.ch4-toggle-btn.active { background: #065f46; color: white; }
.ch4-toggle-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ch4-sub-controls {
    background: white;
    border: 2px solid #065f46;
    border-radius: 5px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.ch4-year-btns { display: flex; gap: 4px; }
.ch4-year-btn {
    flex: 1;
    padding: 4px 2px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
    transition: all 0.15s;
}
.ch4-year-btn.active { background: #065f46; color: white; border-color: #065f46; }
.ch4-sector-select {
    font-size: 11px;
    padding: 4px 6px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    color: #374151;
    background: white;
    width: 100%;
}
.ch4-status {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
}
.ch4-upload-section { display: none; }
.ch4-upload-label {
    font-size: 10px;
    color: #065f46;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    display: block;
    text-align: center;
}
.ch4-upload-input { display: none; }

/* CH4 Legend */
#ch4Legend {
    display: none;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 180px;
}
#ch4LegendTitle {
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
#ch4LegendSvg { display: block; width: 100%; height: 12px; margin-bottom: 2px; }
.ch4-legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #6b7280;
}
#ch4NoData { font-size: 10px; color: #9ca3af; margin-top: 4px; }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f4f6f3;
            margin: 0;
            padding: 0;
        }

        .container {
            width: 100%;
            height: 100%;
            background: #f4f6f3;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .nav-tabs {
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: row;
            gap: 6px;
            padding: 10px 0 6px 0;
        }

        .nav-tab {
            flex: 1;
            padding: 8px 16px;
            background: white;
            border: 2px solid #065f46;
            border-radius: 5px;
            font-size: 13px;
            font-weight: 600;
            color: #065f46;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            opacity: 0.5;
        }

        .nav-tab:hover { background: #f0fdf4; opacity: 0.8; }

        .nav-tab.active {
            background: #065f46;
            color: white;
            opacity: 1;
        }

        .tab-short { display: none; }
        .tab-full  { display: inline; }

        .layer-sidebar {
            position: absolute;
            top: 90px;
            left: 20px;
            display: none;
            flex-direction: column;
            gap: 6px;
            z-index: 100;
        }

        .layer-sidebar.visible { display: flex; }

        .layer-btn {
            padding: 8px 12px;
            background: white;
            border: 2px solid #065f46;
            border-radius: 5px;
            font-size: 13px;
            font-weight: 600;
            color: #065f46;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            text-align: center;
            min-width: 80px;
            opacity: 0.5;
        }

        .layer-btn:hover:not(:disabled) { background: #f0fdf4; opacity: 0.8; }
        .layer-btn.active { background: #065f46; color: white; opacity: 1; }
        .layer-btn:disabled { opacity: 0.25; cursor: not-allowed; }

        /* 
        SQUARESPACE TIP: If you need to adjust the map height, 
        change the min-height value below (e.g., 600px, 800px, etc.)
        */
        .map-container {
            position: relative;
            width: 100%;
            min-height: 600px;
            padding: 0px;
            background: #f4f6f3;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        #worldMap {
            width: 100%;
            height: auto;
            max-width: 1200px;
            background: transparent;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .country {
            fill: #d1fae5;
            stroke: #065f46;
            stroke-width: 0.5;
            cursor: pointer;
            transition: all 0.2s;
        }

        .country:hover {
            fill: #a7f3d0;
            stroke: #064e3b;
            stroke-width: 1.5;
        }

        .country.has-data {
            fill: #34d399;
        }

        .country.has-data:hover {
            fill: #10b981;
        }

        .country.selected {
            fill: #059669;
            stroke: #064e3b;
            stroke-width: 2;
        }

        /* Biomethane layer â€” yellow tones */
        .country.has-biomethane {
            fill: #facc15;
            stroke: #f59e0b;
            stroke-width: 0.5;
            cursor: pointer;
        }
        .country.has-biomethane:hover {
            fill: #a16207;
            stroke: #fbbf24;
            stroke-width: 1.2;
        }

        /* VCM layer â€” blue tones */
        .country.has-vcm {
            fill: #3b82f6;
            stroke: #93c5fd;
            stroke-width: 0.5;
            cursor: pointer;
        }
        .country.has-vcm:hover {
            fill: #1d4ed8;
            stroke: #bfdbfe;
            stroke-width: 1.2;
        }

        /* Dismissible info banner â€” near South America */
        .info-banner {
            display: none;
            position: absolute;
            top: 50%;
            left: 22%;
            background: white;
            border: 2.5px solid #065f46;
            border-radius: 8px;
            padding: 16px 40px 16px 20px;
            font-size: 1em;
            color: #374151;
            max-width: 280px;
            line-height: 1.5;
            box-shadow: 0 2px 8px rgba(0,0,0,0.12);
            z-index: 150;
        }
        .info-banner.visible { display: block; }
        .info-banner-close {
            position: absolute;
            top: 8px;
            right: 12px;
            font-size: 16px;
            color: #ef4444;
            cursor: pointer;
            line-height: 1;
            user-select: none;
            font-weight: 700;
        }
        .info-banner-close:hover { color: #b91c1c; }

        /* Agreements tab: all countries same dark grey by default */
        #worldMap.map-agreements .country,
        #worldMap.map-agreements .country.has-data {
            fill: #6b7280;
            stroke: #9ca3af;
        }
        #worldMap.map-agreements .country:hover,
        #worldMap.map-agreements .country.has-data:hover {
            fill: #4b5563;
        }

        /* Ensure highlighted/dimmed classes override map-no-tab grey */
        #worldMap.map-no-tab .country.highlighted {
            fill: #047857;
            stroke: #ffffff;
            stroke-width: .5;
        }
        #worldMap.map-no-tab .country.highlighted:hover {
            fill: #065f46;
            stroke: #ffffff;
        }
        #worldMap.map-no-tab .country.dimmed {
            fill: #9ca3af;
            stroke: #d1d5db;
        }

        /* selectAgreementOverlay â€” narrow, near the Kigali/Methane buttons */
        #selectAgreementOverlay {
            top: 270px;
            right: calc(20% + 20px);
            left: auto;
            transform: none;
            width: 130px;
            padding: 12px 14px;
            text-align: left;
        }
        #selectAgreementOverlay p { font-size: 0.95em; }
        #selectAgreementOverlay span { font-size: 0.78em; }

        /* Data loading progress bar */
        .loading-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 24px 36px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            z-index: 1000;
            width: 260px;
            text-align: center;
        }
        .loading-overlay-label {
            font-size: 14px;
            color: #065f46;
            font-weight: 600;
            margin-bottom: 14px;
        }
        .loading-bar-track {
            width: 100%;
            height: 8px;
            background: #e5e7eb;
            border-radius: 4px;
            overflow: hidden;
        }
        .loading-bar-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #065f46, #10b981);
            border-radius: 4px;
            transition: width 0.25s ease;
        }

        /* Coming soon overlay */
        .coming-soon-overlay {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border: 2px solid #065f46;
            border-radius: 10px;
            padding: 30px 50px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            z-index: 200;
        }
        .coming-soon-overlay.visible { display: block; }
        .coming-soon-overlay p {
            font-size: 1.1em;
            font-weight: 600;
            color: #065f46;
            margin: 0;
        }
        .coming-soon-overlay span {
            font-size: 0.85em;
            color: #6b7280;
            display: block;
            margin-top: 6px;
            font-weight: 400;
        }

        #worldMap.map-no-tab .country,
        #worldMap.map-no-tab .country.has-data {
            fill: #d1d5db;
            stroke: #9ca3af;
            cursor: pointer;
        }
        #worldMap.map-no-tab .country:hover,
        #worldMap.map-no-tab .country.has-data:hover {
            fill: #b0b7c3;
            stroke: #6b7280;
            stroke-width: 1.5;
        }
        #worldMap.map-no-tab .country.selected {
            fill: #9ca3af;
        }

        .tooltip {
            position: fixed;
            background: #fafefb;
            border: 8px solid #065f46;
            border-radius: 8px;
            padding: 15px;
            padding-bottom: 25px;
            pointer-events: auto;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            width: 552px;
            min-width: 300px;
            max-width: 800px;
            height: 660px;
            max-height: 80vh;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            z-index: 9999;
            isolation: isolate;
            will-change: transform;
            cursor: move;
            display: flex;
            flex-direction: column;
        }

        .tooltip.visible {
            opacity: 1;
            visibility: visible;
        }

        .tooltip h3 {
            color: #065f46;
            margin-bottom: 10px;
            font-size: 1.3em;
            user-select: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .country-flag {
            width: 50px;
            height: auto;
            border: 1px solid #065f46;
            border-radius: 3px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            color: #ef4444;
            border: none;
            width: auto;
            height: auto;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
            padding: 0;
            line-height: 1;
        }

        .close-btn:hover {
            color: #dc2626;
            transform: scale(1.2);
        }

        /* Mobile styles */
        @media (max-width: 768px) {
            .map-container {
                min-height: 100vh;
                height: 100vh;
                padding: 10px;
                border-radius: 0;
            }

            #selectPollutantOverlay,
            #comingSoonOverlay {
                top: 30%;
                left: 50%;
                transform: translateX(-50%);
                width: 80vw;
                text-align: center;
            }

            #selectAgreementOverlay {
                top: 18%;
                left: 8px;
                right: auto;
                transform: none;
                width: 138px;
                text-align: left;
            }

            #worldMap {
                width: 100%;
                height: 100%;
            }

            .nav-tabs {
                gap: 4px;
                padding: 6px 4px 4px 4px;
            }

            .nav-tab {
                font-size: 10px;
                padding: 6px 4px;
            }

            .tab-full  { display: none; }
            .tab-short { display: inline; }

            /* On mobile: layer sidebar moves to bottom of map as a horizontal row */
            .layer-sidebar {
                flex-direction: row;
                flex-wrap: wrap;
                top: auto;
                bottom: 50px;
                left: 10px;
                right: 10px;
                gap: 6px;
                justify-content: flex-start;
            }

            .layer-btn {
                min-width: 60px;
                font-size: 12px;
                padding: 6px 10px;
            }

            /* Right panel: narrower, bottom-right, above layer buttons */
            .right-panel {
                top: auto;
                bottom: 110px;
                right: 10px;
                left: auto;
                min-width: 0;
                width: 130px;
            }

            /* Year buttons stack vertically on mobile */
            .ch4-year-btns {
                flex-direction: column;
                gap: 3px;
            }

            .ch4-year-btn {
                width: 100%;
                text-align: center;
            }

            #ch4Legend {
                min-width: 0;
                width: 100%;
            }

            .tooltip {
                width: 90vw !important;
                height: 85vh !important;
                max-width: none;
                max-height: none;
   left: 50% !important;
top: 50% !important;
transform: translate(-50%, -50%) !important;
                right: auto !important;
                bottom: auto !important;
                cursor: default !important;
            }

            .close-btn {
                font-size: 28px;
            }

            .resize-handle {
                display: none;
            }

            .zoom-info {
                display: none;
            }

            .tooltip h3 {
                margin-right: 40px;
            }
        }

        #timelineDetailPanel strong { color: #212529; }
        #timelineDetailPanel a { color: #065f46; }

        .tooltip-content {
            color: #495057;
            line-height: 1.6;
            cursor: default;
            overflow-y: auto;
            flex: 1;
            background: #fafefb;
        }

        .tooltip-content p {
            margin: 5px 0;
        }

        .tooltip-content strong {
            color: #212529;
        }

        .tooltip-content a {
            color: #065f46;
            text-decoration: underline;
        }

        .tooltip-content a:hover {
            color: #064e3b;
        }

        .hover-tooltip {
            position: fixed;
            background: rgba(6, 95, 70, 0.95);
            color: white;
            padding: 8px 12px;
            border-radius: 5px;
            font-size: 14px;
            font-weight: 600;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 99999;
            white-space: nowrap;
        }

        .hover-tooltip.visible {
            opacity: 1;
        }

        /* VCM count bubble â€” blue */
        .hover-tooltip.vcm-count {
            background: rgba(29, 78, 216, 0.92);
            width: auto;
            height: auto;
            border-radius: 8px;
            padding: 6px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            white-space: nowrap;
            text-align: center;
            box-shadow: 0 2px 8px rgba(29, 78, 216, 0.4);
        }

        /* Regulations / Biomethane count bubble â€” green */
        .hover-tooltip.reg-count {
            background: rgba(6, 95, 70, 0.92);
            width: auto;
            height: auto;
            border-radius: 8px;
            padding: 6px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            white-space: nowrap;
            text-align: center;
            box-shadow: 0 2px 8px rgba(6, 95, 70, 0.4);
        }

        .tooltip-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e0e7ff;
            position: relative;
            flex-shrink: 0;
        }

        .tooltip-nav-controls {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .tooltip-arrow {
            background: #fbbf24;
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            pointer-events: auto;
        }

        .tooltip-arrow:hover {
            background: #f59e0b;
            transform: scale(1.1);
        }

        .tooltip-arrow:disabled {
            background: #d1d5db;
            cursor: not-allowed;
            opacity: 0.5;
        }
        .tooltip-counter {
            font-weight: 300;
            color: #000000;
            font-size: 14px;
            min-width: 70px;
            text-align: center;
        }

        .tooltip-label {
            position: absolute;
            font-weight: 400;
            color: #d1d5db;
            font-size: 14px;
            transition: all 0.2s;
        }

        .tooltip-label.active {
            font-weight: 700;
            color: #065f46;
        }

        #overviewLabel {
            left: 0;
        }

        .industry-filters {
            background: #f9fafb;
            border-top: 2px solid #e5e7eb;
            padding: 6px 5px;
            display: none;
            flex-direction: column;
            gap: 4px;
            flex-shrink: 0;
            margin-top: auto;
        }

        .industry-filters-label {
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 3px;
        }

        .industry-filter-options {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .industry-filter-option {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            font-size: 12px;
            color: #4b5563;
            user-select: none;
            margin-left: 6px;
            padding: 2px 0;
        }

        .industry-filter-option input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
            accent-color: #065f46;
        }

        .industry-filter-option span {
            font-weight: 500;
        }

        .industry-filter-option.disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .industry-filter-option.disabled input[type="checkbox"] {
            cursor: not-allowed;
        }

        .industry-filter-option.disabled span {
            color: #9ca3af;
        }

        .resize-handle {
            position: absolute;
            bottom: 8px;
            right: 8px;
            width: 16px;
            height: 16px;
            cursor: nwse-resize;
            z-index: 10;
        }
        
        .resize-handle::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 0 16px 16px;
            border-color: transparent transparent #065f46 transparent;
        }

        .zoom-controls {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 100;
        }

        .zoom-btn {
            width: 40px;
            height: 40px;
            background: white;
            border: 2px solid #065f46;
            border-radius: 5px;
            font-size: 20px;
            font-weight: bold;
            color: #065f46;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .zoom-btn:hover {
            background: #065f46;
            color: white;
            transform: scale(1.1);
        }

        .zoom-info {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.9);
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 14px;
            color: #065f46;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .filter-controls {
            position: absolute;
            top: 180px;
            right: 20px;
            display: none;
            flex-direction: column;
            gap: 10px;
            z-index: 100;
        }

        .filter-controls.visible { display: flex; }

        .right-panel {
            position: absolute;
            top: 180px;
            right: 20px;
            display: none;
            flex-direction: column;
            gap: 8px;
            z-index: 100;
            min-width: 180px;
        }

        .right-panel.visible { display: flex; }

        .filter-option {
            background: white;
            border: 2px solid #065f46;
            border-radius: 5px;
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            width: 65px;
        }

        .filter-option:hover {
            background: #f0fdf4;
            transform: scale(1.02);
        }

        .filter-option input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: #065f46;
            margin: 0;
        }

        .filter-option label {
            cursor: pointer;
            font-size: 12px;
            color: #065f46;
            font-weight: 600;
            user-select: none;
            line-height: 1.2;
            text-align: center;
            margin: 0;
        }

        .country.highlighted {
            fill: #047857;
            stroke: #ffffff;
            stroke-width: .5;
        }

        .country.highlighted:hover {
            fill: #065f46;
            stroke: #ffffff;
        }

        .country.highlighted.selected {
            fill: #059669 !important;
            stroke: #ffffff !important;
            stroke-width: 1.5 !important;
        }

        .country.dimmed {
            fill: #6b7280;
            stroke: #ffffff;
            stroke-width: 1;
        }

        .country.dimmed:hover {
            fill: #4b5563;
            stroke: #ffffff;
        }

        .country.dimmed.selected {
            fill: #374151 !important;
            stroke: #ffffff !important;
            stroke-width: 2 !important;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .modal-overlay.visible {
            display: flex;
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            text-align: center;
            max-width: 400px;
        }

        .modal-content h3 {
            color: #065f46;
            margin-bottom: 20px;
            font-size: 1.5em;
        }

        .modal-content p {
            color: #495057;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .modal-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .modal-btn {
            padding: 12px 24px;
            border: 2px solid #065f46;
            background: white;
            color: #065f46;
            border-radius: 5px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
            min-width: 180px;
            max-width: 200px;
        }

        .modal-btn:hover {
            background: #065f46;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
        }

        .timeline-dot:hover div {
            background: #10b981 !important;
            transform: scale(1.3);
        }
        #timelineToggle span:hover {
            text-decoration: underline;
        }
    
/* ============================================================
   INDUCTIVE LAYER — Corporate Estimator
   ============================================================ */

/* Full-screen overlay base */
.inductive-overlay {
    position: fixed;
    inset: 0;
    background: #c8e6c2;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.4s ease;
}

/* Progressive background — step 1 darkest, step 5 lightest */
.wizard-step-bg-1 { background: #1a5511; }
.wizard-step-bg-2 { background: #3a7d2a; }
.wizard-step-bg-3 { background: #6aac56; }
.wizard-step-bg-4 { background: #a8d49a; }
.wizard-step-bg-5 { background: #d6ecd1; }

/* Shared header */
.inductive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.inductive-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.4em;
    font-weight: 400;
    color: #1e3d0f;
    margin: 0;
}
.inductive-back-btn {
    background: none;
    border: 1.5px solid #1e3d0f;
    color: #1e3d0f;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.inductive-back-btn:hover { background: #1e3d0f; color: white; }
.inductive-step-label { font-size: 13px; color: #6b7280; font-weight: 500; }

/* ── Wizard ── */
.inductive-wizard {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Step progress bar */
.wizard-step-progress {
    padding: 16px 32px 12px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.step-track {
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid #d1d5db;
    transition: all 0.2s;
}
.step-dot.active { background: #1e3d0f; border-color: #1e3d0f; }
.step-dot.done   { background: #4a7c3f; border-color: #4a7c3f; }
.step-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 20px;
}
.step-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}
.step-label.active { color: #1e3d0f; font-weight: 700; }
.step-label.done   { color: #4a7c3f; }

/* Step container — scrollable content area */
.wizard-step-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 32px;
    display: flex;
    justify-content: center;
    background: transparent;
}
.wizard-step {
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 36px 36px 28px;
}
.wizard-step-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6em;
    font-weight: 400;
    color: #1e3d0f;
    margin: 0 0 6px 0;
}
.wizard-step-hint {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0 0 28px 0;
    line-height: 1.5;
}
.wizard-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 6px;
    margin-top: 20px;
}
.wizard-label:first-of-type { margin-top: 0; }
.wizard-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    background: #f9f9f9;
    transition: border-color 0.15s;
    appearance: auto;
}
.wizard-select:focus { border-color: #1e3d0f; outline: none; background: white; }

/* Country check list */
.wizard-none-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    margin-bottom: 14px;
    transition: all 0.15s;
    background: #f9f9f9;
}
.wizard-none-option.selected { border-color: #1e3d0f; background: #f0f7ed; color: #1e3d0f; font-weight: 600; }
.wizard-none-option input { accent-color: #1e3d0f; }
.wizard-country-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.wizard-country-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #f9f9f9;
    transition: border-color 0.15s;
}
.wizard-country-search:focus { border-color: #1e3d0f; outline: none; background: white; }
.wizard-selected-count {
    font-size: 12px;
    font-weight: 600;
    color: #1e3d0f;
    white-space: nowrap;
}
.wizard-country-list {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
    background: white;
}
.wizard-country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}
.wizard-country-item:last-child { border-bottom: none; }
.wizard-country-item:hover { background: #f0f7ed; }
.wizard-country-item.checked { background: #f0f7ed; color: #1e3d0f; font-weight: 600; }
.wizard-country-item.disabled { opacity: 0.4; cursor: not-allowed; }
.wizard-country-item input { accent-color: #1e3d0f; }

/* Sector info chip */
.wizard-sector-info {
    margin-top: 14px;
    padding: 10px 14px;
    background: #f0f7ed;
    border: 1px solid #b7d9a8;
    border-radius: 6px;
    font-size: 13px;
    color: #1e3d0f;
}

/* Revenue options */
.wizard-revenue-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wizard-revenue-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    background: #f9f9f9;
    transition: all 0.15s;
}
.wizard-revenue-option:hover { border-color: #1e3d0f; background: #f0f7ed; }
.wizard-revenue-option.selected { border-color: #1e3d0f; background: #f0f7ed; color: #1e3d0f; font-weight: 700; }
.wizard-revenue-option input { accent-color: #1e3d0f; }

/* Wizard footer */
.wizard-error {
    margin: 0 32px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}
.wizard-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 32px;
    background: white;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.wizard-btn {
    padding: 11px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}
.wizard-btn-primary  { background: #d4a017; color: #1a1000; }
.wizard-btn-primary:hover  { background: #e8b420; }
.wizard-btn-secondary {
    background: none;
    border: 1.5px solid #1e3d0f;
    color: #1e3d0f;
    margin-right: auto;
    visibility: hidden;
}
.wizard-btn-secondary:hover { background: #f0f7ed; }
.wizard-btn-secondary[style*="visible"] { visibility: visible; }

/* ── Results ── */
.inductive-results {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f4f6f4;
}
.results-profile-summary {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 32px;
    flex-shrink: 0;
}
.profile-pill {
    display: inline;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 13px;
    color: #374151;
}
.profile-pill + .profile-pill::before {
    content: ' · ';
    color: #9ca3af;
    margin: 0 6px;
}
.results-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
    overflow-x: auto;
    padding: 0 32px;
}
.results-tab-btn {
    padding: 14px 20px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.15s;
}
.results-tab-btn:hover { color: #1e3d0f; }
.results-tab-btn.active { color: #1e3d0f; border-bottom-color: #1e3d0f; }
.results-tab-badge {
    display: inline-block;
    background: #1e3d0f;
    color: white;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    margin-left: 5px;
}
.results-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.results-section-label {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1em;
    color: #1e3d0f;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}
.results-section-heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25em;
    font-weight: 400;
    color: #1e3d0f;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.results-empty {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    padding: 48px 24px;
    text-align: center;
    color: #374151;
    font-family: Georgia, 'Times New Roman', serif;
}
.results-empty p { margin: 0 0 10px; font-size: 1em; font-family: Georgia, 'Times New Roman', serif; }
.results-empty-hint { font-size: 0.85em; color: #9ca3af; font-style: italic; font-family: Georgia, 'Times New Roman', serif; }

/* Result cards */
.result-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.result-card:hover { border-color: #1e3d0f; box-shadow: 0 2px 10px rgba(30,61,15,0.08); }
.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.result-card-country {
    font-size: 12px;
    font-weight: 700;
    color: #1e3d0f;
    background: #f0f7ed;
    padding: 2px 8px;
    border-radius: 10px;
}
.result-card-jurisdiction { font-size: 11px; color: #9ca3af; }
.result-card-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1em;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.4;
}
.result-card-pollutants { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.result-card-sowhat {
    font-size: 12px;
    color: #374151;
    background: #fffbeb;
    border-left: 3px solid #d4a017;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 8px;
    line-height: 1.5;
}
.result-card-link { font-size: 12px; margin-bottom: 6px; }
.result-card-link a { color: #1e3d0f; }
.result-card-cta {
    font-size: 11px;
    color: #1e3d0f;
    text-align: right;
    font-weight: 600;
    opacity: 0.6;
}
.result-card:hover .result-card-cta { opacity: 1; }

/* Detail overlay */
.inductive-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.inductive-detail-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.inductive-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.inductive-detail-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-weight: 400;
}
.inductive-detail-close:hover { color: #374151; }
.inductive-detail-content {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* Mobile */
@media (max-width: 768px) {
    .inductive-header { padding: 10px 16px; }
    .inductive-title { font-size: 1.1em; }
    .wizard-step-container { padding: 20px 16px; }
    .wizard-step { padding: 24px 20px; }
    .wizard-footer { padding: 12px 16px; }
    .results-content { padding: 16px; }
    .results-tabs { padding: 0 16px; }
    .results-tab-btn { padding: 10px 12px; font-size: 12px; }
    .inductive-detail-panel { max-height: 90vh; }
}

/* ============================================================
   SPLASH SCREEN & MODE SWITCHING
   ============================================================ */

.splash-screen {
    position: fixed;
    inset: 0;
    background: #f0f2f5;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 16px;
}

.splash-card {
    background: #1e3d0f;
    border-radius: 12px;
    padding: 56px 48px 48px;
    text-align: center;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.splash-title-line1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.6em;
    font-weight: 400;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.splash-title-line2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.6em;
    font-weight: 400;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.splash-subtitle {
    font-size: 1.05em;
    color: rgba(255,255,255,0.85);
    margin: 0 0 36px 0;
    line-height: 1.5;
    font-weight: 400;
}

.splash-choices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.splash-btn {
    background: #f5c400;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    color: #1a1a00;
    transition: all 0.15s;
    white-space: nowrap;
    letter-spacing: 0.01em;
    min-width: 220px;
}

.splash-btn:hover {
    background: #ffd426;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.splash-btn:active {
    transform: translateY(0);
}

.splash-privacy {
    background: white;
    border-radius: 10px;
    padding: 18px 32px;
    font-size: 0.88em;
    color: #374151;
    max-width: 1100px;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Mode switch button in map nav bar */
.mode-switch-btn {
    padding: 8px 18px;
    background: white;
    border: 2px solid #1e3d0f;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3d0f;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    min-width: 90px;
    text-align: center;
}
.mode-switch-btn:hover { background: #f0f7ed; border-color: #1e3d0f; }

/* Mobile splash */
@media (max-width: 640px) {
    .splash-title { font-size: 1.7em; }
    .splash-choices { flex-direction: column; gap: 16px; }
    .splash-btn { width: 100%; max-width: 320px; padding: 24px 20px; }
    .splash-divider { padding: 0; }
    .mode-switch-btn { font-size: 11px; padding: 6px 10px; min-width: 70px; }
}

/* Corporate Estimator persistent button — top-left of map, above CH4 */
.corp-estimator-btn {
    position: absolute;
    top: -40px;
    left: 20px;
    z-index: 101;
    background: white;
    border: 2px solid #1e3d0f;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3d0f;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    text-align: center;
    min-width: 90px;
}
.corp-estimator-btn:hover { background: #f0f7ed; }

@media (max-width: 768px) {
    .corp-estimator-btn { font-size: 11px; padding: 6px 10px; min-width: 70px; }
}

/* Profile summary row with Assumptions button */
.profile-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.profile-summary-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    line-height: 1.7;
}
.assumptions-btn {
    background: white;
    border: 1.5px solid #1e3d0f;
    color: #1e3d0f;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    transition: all 0.15s;
}
.assumptions-btn:hover { background: #1e3d0f; color: white; }

/* Country grouping in results tabs */
.country-group-count {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

/* Country card — one card per country, rows per regulation */
.country-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.country-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #f0f7ed;
    border-bottom: 1px solid #e0e0e0;
}
.country-card-header.collapsible-heading { cursor: pointer; user-select: none; }
.country-card-header.collapsible-heading:hover { background: #e4f2df; }
.country-card-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 400;
    color: #1e3d0f;
}
.country-card-body { }

/* Regulation row inside country card */
.reg-row {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.1s;
}
.reg-row:last-child { border-bottom: none; }
.reg-row:hover { background: #fafffe; }
.reg-row-treaty { opacity: 0.65; }
.reg-row-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 3px;
}
.reg-row-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    color: #111827;
    line-height: 1.4;
    flex: 1;
}
.reg-row-jurisdiction {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}
.reg-row-pollutants { font-size: 11px; color: #6b7280; margin-bottom: 6px; }
.reg-row-sowhat {
    font-size: 12px;
    color: #374151;
    background: #fffbeb;
    border-left: 3px solid #d4a017;
    padding: 5px 9px;
    border-radius: 0 3px 3px 0;
    margin-bottom: 5px;
    line-height: 1.5;
}
.reg-row-link { font-size: 11px; margin-bottom: 3px; }
.reg-row-link a { color: #1e3d0f; }
.reg-row-cta {
    font-size: 11px;
    color: #1e3d0f;
    text-align: right;
    font-weight: 600;
    opacity: 0.6;
}
.reg-row:hover .reg-row-cta { opacity: 1; }

/* Three info buttons row */
.info-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
}

/* VCM three-section layout */
.vcm-section {
    margin-bottom: 40px;
}
.vcm-section-desc {
    font-size: 13px;
    color: #6b7280;
    margin: -8px 0 16px 0;
    line-height: 1.5;
}
.vcm-empty-section {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    margin: 0 0 16px 0;
}

/* Collapsible country groups */
.collapsible-heading {
    cursor: pointer;
    user-select: none;
}
.collapsible-heading:hover {
    background: #f0f7ed;
    border-radius: 4px;
    padding-left: 6px;
    margin-left: -6px;
}
.collapse-arrow {
    font-size: 11px;
    color: #6b7280;
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.15s;
}
.country-group-body {
    /* open by default — hidden via JS when toggled */
}

/* VCM section nav links */
.vcm-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.vcm-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f0f7ed;
    border: 1.5px solid #1e3d0f;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e3d0f;
    text-decoration: none;
    transition: all 0.15s;
}
.vcm-nav-link:hover { background: #1e3d0f; color: white; }
.vcm-nav-link:hover .vcm-nav-count { background: rgba(255,255,255,0.25); color: white; }
.vcm-nav-count {
    background: #1e3d0f;
    color: white;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
}
.vcm-nav-link:hover .vcm-nav-count { background: rgba(255,255,255,0.3); }

/* Impact grouping within country card */
.impact-group {
    border-bottom: 1px solid #f0f0f0;
}
.impact-group:last-child { border-bottom: none; }
.impact-group-heading {
    padding: 10px 16px 6px;
    background: #fafffe;
}
.impact-group-label {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 400;
    color: #1e3d0f;
    display: block;
    margin-bottom: 3px;
}
.impact-group-text {
    font-size: 12px;
    color: #374151;
    background: #fffbeb;
    border-left: 3px solid #d4a017;
    padding: 5px 9px;
    border-radius: 0 3px 3px 0;
    margin: 0;
    line-height: 1.5;
}
.impact-group-regs { }
.impact-group-regs .reg-row { padding-left: 24px; }
