        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Space Grotesk', sans-serif;
            background: #ffffff;
            color: #171717;
            font-size: 18px;
            line-height: 1.56;
        }

        /* ── Testimonial quote ────────────────────────────────────── */
        .testimonial {
            max-width: 900px;
            margin: 32px auto;
            padding: 28px 36px;
            background: #f8faf9;
            border-left: 4px solid #1A4338;
            border-radius: 0 8px 8px 0;
            font-size: 16px;
            line-height: 1.7;
            color: #2d3a35;
        }
        .testimonial p {
            margin-bottom: 12px;
        }
        .testimonial p:last-of-type {
            margin-bottom: 16px;
        }
        .testimonial cite {
            display: block;
            font-style: normal;
            font-weight: 600;
            font-size: 14px;
            color: #1A4338;
        }

        /* ── Header (white background, black text) ─────────────────── */
        .header {
            background: #ffffff;
            padding: 20px 32px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }
        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .header-left h1 {
            font-size: 22px;
            font-weight: 700;
            color: #171717;
            letter-spacing: -0.3px;
        }
        .header-left h1 span {
            color: #171717;
        }
        .header-left p {
            font-size: 13px;
            color: #6b7280;
            margin-top: 2px;
        }
        .header-nav {
            display: flex;
            gap: 6px;
        }
        .theme-tab {
            text-decoration: none;
            padding: 6px 16px;
            border-radius: 9999px;
            font-size: 13px;
            font-weight: 600;
            color: #6b7280;
            background: #f3f4f6;
            border: 1px solid #d1d5db;
            cursor: pointer;
            transition: all 0.15s;
        }
        .theme-tab:hover {
            color: #171717;
            border-color: #9ca3af;
            background: #e5e7eb;
        }
        .theme-tab.active {
            color: #ffffff;
            background: #1a4338;
            border-color: #1a4338;
        }

        /* ── Sub-tabs (nested within a parent tab) ────────────────── */
        .sub-tab-nav {
            display: flex;
            gap: 6px;
            padding: 16px 20px 12px;
        }
        .sub-tab {
            text-decoration: none;
            padding: 8px 20px;
            border-radius: 9999px;
            font-size: 14px;
            font-weight: 600;
            color: #6b7280;
            background: #f3f4f6;
            border: 1px solid #d1d5db;
            cursor: pointer;
            transition: all 0.15s;
        }
        .sub-tab:hover {
            color: #171717;
            border-color: #9ca3af;
            background: #e5e7eb;
        }
        .sub-tab.active {
            color: #ffffff;
            background: #245045;
            border-color: #245045;
        }
        .sub-tab-content {
            display: none;
        }
        .sub-tab-content.active {
            display: block;
        }

        /* ── Summary cards ───────────────────────────────────────────── */
        .summary-section {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 16px 20px 8px;
        }
        .summary-card {
            background: #1a4338;
            border-radius: 10px;
            padding: 14px 18px;
            min-width: 170px;
            flex: 1;
            border: 1px solid #245045;
            position: relative;
            overflow: hidden;
        }
        .summary-card::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 3px;
            background: #cff8e4;
        }
        .summary-card h4 {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: rgba(207,248,228,0.5);
            margin-bottom: 6px;
            font-weight: 600;
        }
        .summary-card .value {
            font-size: 22px;
            font-weight: 700;
            color: #cff8e4;
        }
        .summary-card .detail {
            font-size: 11px;
            color: rgba(207,248,228,0.4);
            margin-top: 2px;
        }

        /* ── Section header ──────────────────────────────────────────── */
        .section-header {
            text-align: center;
            padding: 28px 20px 10px;
        }
        .section-header h2 {
            font-size: 20px;
            font-weight: 700;
            color: #171717;
        }

        /* ── Tab intro / description ────────────────────────────────── */
        .tab-intro {
            max-width: 820px;
            margin: 0 auto;
            padding: 24px 28px 0;
            text-align: center;
        }
        .tab-intro p {
            font-size: 18px;
            line-height: 1.56;
            color: #171717;
            margin: 0;
        }
        .tab-description {
            max-width: 820px;
            margin: 0 auto;
            padding: 10px 28px 20px;
            border-bottom: 1px solid #e5e7eb;
            margin-bottom: 10px;
        }
        .tab-description p {
            font-size: 18px;
            line-height: 1.56;
            color: #171717;
            margin: 8px 0 0;
        }
        .tab-description h3 {
            color: #171717;
            margin-top: 28px;
        }
        .tab-description a {
            color: #171717;
            text-decoration: underline;
        }
        .tab-description em {
            color: #555555;
        }

        /* ── Tab content ─────────────────────────────────────────────── */
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }

        /* ── Map grid ────────────────────────────────────────────────── */
        .map-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
            gap: 10px;
            padding: 10px 20px;
        }
        .map-cell {
            background: #1a4338;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid #245045;
        }
        .map-cell-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            border-bottom: 1px solid #245045;
            background: #163930;
        }
        .map-cell-header h3 {
            font-size: 13px;
            font-weight: 600;
            color: #cff8e4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
        }
        .header-controls {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .opacity-control {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            color: rgba(207,248,228,0.5);
        }
        .opacity-control input[type="range"] {
            width: 70px;
            accent-color: #cff8e4;
        }
        .opacity-value {
            width: 32px;
            text-align: right;
            font-variant-numeric: tabular-nums;
        }
        .map-container {
            height: 500px;
            background: #1a4338;
        }

        /* ── Panel visibility toolbar ─────────────────────────────────── */
        .panel-toolbar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .panel-toolbar-label {
            font-size: 12px;
            color: #171717;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-right: 4px;
        }
        .panel-chip {
            font-size: 11px;
            padding: 4px 12px;
            border-radius: 9999px;
            border: 1px solid #245045;
            background: #1a4338;
            color: rgba(207,248,228,0.7);
            cursor: pointer;
            transition: all 0.15s;
            user-select: none;
        }
        .panel-chip.active {
            background: #245045;
            border-color: #cff8e4;
            color: #cff8e4;
            font-weight: 600;
        }
        .panel-chip:hover {
            border-color: #cff8e4;
            color: #cff8e4;
        }

        /* ── Hide button in map-cell header ──────────────────────────── */
        .hide-panel-btn {
            background: none;
            border: none;
            color: rgba(207,248,228,0.4);
            cursor: pointer;
            font-size: 16px;
            padding: 2px 6px;
            line-height: 1;
            border-radius: 4px;
            transition: all 0.15s;
        }
        .hide-panel-btn:hover {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.15);
        }

        .map-cell.hidden-panel {
            display: none;
        }

        /* ── Background toggle ───────────────────────────────────────── */
        .bg-toggle {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .bg-label {
            font-size: 10px;
            color: rgba(207,248,228,0.5);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-right: 2px;
        }
        .bg-btn {
            font-size: 10px;
            padding: 2px 8px;
            border: 1px solid #245045;
            border-radius: 3px;
            background: transparent;
            color: rgba(207,248,228,0.6);
            cursor: pointer;
            transition: all 0.15s;
        }
        .bg-btn:hover {
            border-color: #cff8e4;
            color: #cff8e4;
        }
        .bg-btn.active {
            background: #cff8e4;
            border-color: #cff8e4;
            color: #1a4338;
        }

        /* ── Legend ───────────────────────────────────────────────────── */
        .legend-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 12px;
            padding: 8px 14px;
            font-size: 10px;
            border-top: 1px solid #245045;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
            color: rgba(207,248,228,0.6);
        }
        .legend-swatch {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            flex-shrink: 0;
        }

        /* ── Charts ──────────────────────────────────────────────────── */
        .charts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
            gap: 10px;
            padding: 10px 20px 32px;
        }
        .chart-card {
            background: #1a4338;
            border-radius: 10px;
            padding: 18px 20px;
            border: 1px solid #245045;
        }
        .chart-card h3 {
            font-size: 13px;
            font-weight: 600;
            color: #cff8e4;
            margin-bottom: 14px;
            text-align: center;
        }
        .chart-card canvas {
            max-height: 360px;
        }

        /* ── Footer ──────────────────────────────────────────────────── */
        .footer {
            text-align: center;
            padding: 20px;
            font-size: 11px;
            color: #9ca3af;
            border-top: 1px solid #e5e7eb;
        }
        .license-toggle {
            background: none;
            border: 1px solid #d1d5db;
            color: #6b7280;
            padding: 6px 16px;
            border-radius: 9999px;
            cursor: pointer;
            font-size: 11px;
            font-family: 'Space Grotesk', sans-serif;
            margin-top: 10px;
            transition: all 0.15s;
        }
        .license-toggle:hover {
            border-color: #171717;
            color: #171717;
        }
        .license-section {
            display: none;
            text-align: left;
            max-width: 900px;
            margin: 16px auto 0;
            padding: 20px 24px;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            font-size: 11px;
            color: #4b5563;
            line-height: 1.6;
        }
        .license-section.open { display: block; }
        .license-section h4 {
            font-size: 12px; color: #171717;
            margin: 14px 0 6px; font-weight: 600;
        }
        .license-section h4:first-child { margin-top: 0; }
        .license-table {
            width: 100%; border-collapse: collapse; margin: 10px 0;
        }
        .license-table th {
            text-align: left; font-size: 10px;
            text-transform: uppercase; letter-spacing: 0.5px;
            color: #6b7280; padding: 6px 10px;
            border-bottom: 1px solid #e5e7eb;
        }
        .license-table td {
            padding: 6px 10px;
            border-bottom: 1px solid #f3f4f6;
            vertical-align: top;
        }
        .license-table tr:last-child td { border-bottom: none; }
        .license-table a { color: #171717; text-decoration: underline; }
        .license-badge {
            display: inline-block; padding: 1px 7px;
            border-radius: 4px; font-size: 10px; font-weight: 600;
        }
        .badge-open { background: #dcfce7; color: #166534; }
        .badge-restricted { background: #fef9c3; color: #854d0e; }
        .badge-copyleft { background: #fee2e2; color: #991b1b; }

        /* ── Leaflet overrides ───────────────────────────────────────── */
        .leaflet-container {
            background: #1a4338 !important;
        }

        /* SR-tabben jämför pixelnivå-skillnader mellan metoder. Browserns
           default bilinear-smoothing suddar ut just det vi vill se, så
           rendera image overlays utan smoothing — varje SR-pixel blir en
           skärm-pixel, varje LR-pixel blir ett skarpt 4×4-block. */
        #tab-sr .leaflet-image-layer {
            image-rendering: pixelated;
            image-rendering: crisp-edges;  /* Firefox fallback */
        }

        @media (max-width: 900px) {
            .map-grid { grid-template-columns: 1fr; }
            .charts-grid { grid-template-columns: 1fr; }
            .header { padding: 16px; }
        }

        /* ── Lede / hint / methods disclosure (showcase-copy rewrite) ──
           Specificity bumped with .tab-intro prefix so these win over the
           legacy `.tab-intro p { text-align: center }` rule. */
        .tab-intro .lede {
            font-size: 19px;
            line-height: 1.55;
            color: #171717;
            max-width: 70ch;
            margin: 0 auto;
            text-align: left;
        }
        .tab-intro .hint {
            font-size: 14px;
            line-height: 1.45;
            color: #4b5563;
            font-style: italic;
            max-width: 70ch;
            margin: 14px auto 0;
            padding: 8px 12px;
            border-left: 3px solid #cff8e4;
            background: #f8faf9;
            text-align: left;
        }
        .tab-intro details.methods {
            max-width: 70ch;
            margin: 18px auto 0;
            padding-top: 14px;
            border-top: 1px solid #e5e7eb;
            text-align: left;
        }
        details.methods > summary {
            cursor: pointer;
            list-style: none;
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            padding: 4px 0;
            user-select: none;
        }
        details.methods > summary::-webkit-details-marker { display: none; }
        details.methods > summary::before {
            content: '▸ ';
            display: inline-block;
            transition: transform 0.15s;
            color: #9ca3af;
        }
        details.methods[open] > summary::before { transform: rotate(90deg); }
        details.methods > summary:hover { color: #171717; }
        details.methods h4 {
            font-size: 13px;
            font-weight: 600;
            color: #171717;
            margin: 16px 0 6px;
            text-transform: none;
            letter-spacing: 0;
        }
        details.methods p {
            font-size: 15px;
            line-height: 1.55;
            color: #374151;
            margin: 6px 0;
        }
        details.methods a { color: #1a4338; text-decoration: underline; }
        details.methods code {
            background: #f3f4f6;
            padding: 1px 5px;
            border-radius: 3px;
            font-size: 0.9em;
        }

        /* ── Glossary tooltip (acronym hover) ────────────────────────── */
        .gloss {
            border-bottom: 1px dotted #6b7280;
            cursor: help;
        }
        #gloss-card {
            position: absolute;
            z-index: 1000;
            max-width: 300px;
            padding: 10px 13px;
            background: #1a4338;
            color: #cff8e4;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
            font-size: 13px;
            line-height: 1.45;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.12s;
        }
        #gloss-card.visible { opacity: 1; }
        #gloss-card strong { color: #ffffff; font-weight: 700; }
        #gloss-card .gloss-card-sv {
            display: block;
            margin-top: 4px;
            color: rgba(207, 248, 228, 0.78);
            font-size: 12px;
        }
    </style>
