:root {
    --pmt-teal: #14b8a6;
    --pmt-warm: #ea580c;
    --pmt-ice: #7dd3fc;
}

.pmt-hero-question {
    color: var(--pmt-teal);
}

.pmt-stripes-panel {
    margin-top: 1rem;
}

/* Hover readout above the global methane stripes. Year + value take
   the bar's fill colour so the eye instantly ties the number to the
   strip below. Defaults to the latest month on first render. */
.pmt-stripes-readout {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    margin: 0.55rem 0 0.4rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.pmt-stripes-readout-year {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 120ms ease-out;
}
.pmt-stripes-readout-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 120ms ease-out;
}
.pmt-stripes-readout-context {
    flex-basis: 100%;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
@media (min-width: 720px) {
    .pmt-stripes-readout-context {
        flex-basis: auto;
        margin-top: 0;
        margin-left: 0.25rem;
    }
}

/* "New from Arctic Report Card 2025" callout — flagging the rusting
   rivers finding for returning readers without crowding the hero. */
.pmt-rusting-callout {
    margin: 1.25rem 0;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.10), rgba(217, 119, 6, 0.06));
    border: 1px solid rgba(234, 88, 12, 0.35);
    border-left: 4px solid var(--pmt-warm);
}
.pmt-rusting-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pmt-warm);
    background: rgba(234, 88, 12, 0.16);
    padding: 0.18rem 0.55rem;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}
.pmt-rusting-callout p {
    margin: 0;
    line-height: 1.55;
    color: var(--text-primary);
}
.pmt-rusting-callout a {
    color: var(--pmt-warm);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    white-space: nowrap;
}
.pmt-rusting-callout a:hover {
    border-bottom-style: solid;
}

.pmt-carbon-vault-panel {
    border-left: 3px solid var(--pmt-warm);
    margin-top: 1rem;
}

.pmt-carbon-vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.pmt-carbon-vault-grid article {
    padding: 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
}

.pmt-carbon-vault-grid strong {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.pmt-carbon-vault-grid span {
    display: block;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .pmt-carbon-vault-grid {
        grid-template-columns: 1fr;
    }
}

.pmt-station-stripes-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.pmt-station-stripes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

@media (max-width: 900px) {
    .pmt-station-stripes-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .pmt-station-stripes-grid {
        grid-template-columns: 1fr;
    }
}

.pmt-station-stripe-item .nx-stripes-host {
    height: 1.75rem;
}

.pmt-station-stripe-item--ref .nx-basin-stripe-label {
    color: var(--text-muted);
}

.pmt-milestones {
    list-style: none;
    padding: 0.75rem 0 0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.pmt-milestones li {
    padding: 0.2rem 0;
}

.chart-wrap {
    height: 300px;
    position: relative;
    margin-top: 0.75rem;
}

.pmt-thermo-wrap {
    width: 12px;
    height: 48px;
    margin: 0.35rem 0 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: linear-gradient(to top, #0ea5e9 0%, #f8fafc 40%, #ea580c 100%);
    position: relative;
    overflow: hidden;
}

.pmt-thermo-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: rgba(234, 88, 12, 0.55);
    border-radius: 0 0 5px 5px;
}

.pmt-alt-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
    overflow: hidden;
}

.pmt-alt-fill {
    height: 100%;
    width: 32%;
    background: linear-gradient(90deg, var(--pmt-teal), var(--pmt-warm));
    border-radius: 4px;
}

.pmt-flux-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.pmt-flux-row {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) 1fr;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 600px) {
    .pmt-flux-row {
        grid-template-columns: 1fr;
    }
}

.pmt-flux-label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.pmt-flux-track {
    height: 1.25rem;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    grid-column: 1 / -1;
}

@media (min-width: 601px) {
    .pmt-flux-track {
        grid-column: 2;
    }
    .pmt-flux-meta {
        grid-column: 2;
    }
}

.pmt-flux-slice {
    height: 100%;
    min-width: 2px;
    background: linear-gradient(90deg, var(--pmt-teal), var(--pmt-warm));
    border-radius: 3px 0 0 3px;
}

.pmt-flux-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

@media (min-width: 601px) {
    .pmt-flux-meta {
        grid-column: 2;
    }
}

.pmt-flux-pct {
    opacity: 0.9;
}

.pmt-polar-map-wrap {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-top: 0.75rem;
}

@media (max-width: 700px) {
    .pmt-polar-map-wrap {
        grid-template-columns: 1fr;
    }
}

.pmt-polar-map {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.pmt-polar-ocean {
    fill: rgba(30, 58, 138, 0.35);
    stroke: var(--border-subtle);
    stroke-width: 1;
}

.pmt-polar-land {
    fill: rgba(148, 163, 184, 0.12);
    stroke: rgba(148, 163, 184, 0.35);
    stroke-width: 1;
}

.pmt-borehole-dot {
    fill: var(--pmt-warm);
    stroke: rgba(15, 23, 42, 0.85);
    stroke-width: 1.5;
    opacity: 0.9;
}

.pmt-borehole-legend {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

.pmt-borehole-legend li {
    padding: 0.15rem 0;
}

/* Small polar context map above the methane-stripes grid — shows
   readers where each flask station sits before they read the stripes.
   Uses the same EPSG:5936 polar basemap as the borehole panel but at
   a wider zoom so Mace Head (53°N) can sit on the southern edge. */
.pmt-stations-map {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0.5rem auto 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    background: #eaf2f8;
    border: 1px solid var(--border-subtle);
}
.pmt-stations-map .leaflet-tooltip {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.pmt-stations-map .leaflet-tooltip-top:before {
    border-top-color: rgba(15, 23, 42, 0.92);
}

/* Real Arctic polar-stereographic map of permafrost boreholes. The
   same data also renders below as a ranked-bars list so readers get
   both the geographic and the ordinal view. */
.pmt-borehole-map {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0.75rem auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: #eaf2f8;
    border: 1px solid var(--border-subtle);
}
.pmt-borehole-map .leaflet-tooltip {
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    line-height: 1.35;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.pmt-borehole-map .leaflet-tooltip-top:before {
    border-top-color: rgba(15, 23, 42, 0.92);
}

/* Ranked-list view of GTN-P boreholes (sits below the polar map) */
.pmt-borehole-rank {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    counter-reset: bhole;
    display: grid;
    gap: 0.6rem;
}

.pmt-borehole-rank-item {
    counter-increment: bhole;
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem 0.65rem 2.2rem;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--pmt-warm, #ea580c);
    border-radius: 6px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
    position: relative;
}

.pmt-borehole-rank-item::before {
    content: counter(bhole);
    position: absolute;
    left: 0.65rem;
    top: 0.65rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--pmt-warm, #ea580c);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.74rem;
    font-weight: 700;
}

.pmt-borehole-rank-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pmt-borehole-rank-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.15);
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
}

.pmt-borehole-rank-bar {
    position: relative;
    height: 1.25rem;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.pmt-borehole-rank-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.4), rgba(234, 88, 12, 0.85));
    border-radius: 3px;
}

.pmt-borehole-rank-value {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.pmt-borehole-empty {
    color: var(--text-muted);
    font-style: italic;
}

.pmt-meaning-bullets li {
    border-left-color: var(--pmt-teal);
}

/* Plain-meaning gloss under each KPI value. Helps non-specialist
   readers parse what the headline number means. Kept small + muted
   so it doesn't compete with the headline value. */
.pmt-kpi-meaning {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* "How does Arctic permafrost thaw affect you?" panel — country
   dropdown + opt-in geolocation + per-country impact card. */
.pmt-localized-panel {
    margin-top: 1rem;
}
.pmt-picker-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .pmt-picker-row {
        grid-template-columns: 1fr;
    }
}
.pmt-picker-label {
    font-size: 0.85rem;
    font-weight: 600;
}
.pmt-country-select {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
    color: var(--text-primary);
    font-size: 0.92rem;
    min-width: 12rem;
}
.pmt-use-location-btn {
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--pmt-teal);
    background: rgba(20, 184, 166, 0.12);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease;
}
.pmt-use-location-btn:hover:not([disabled]) {
    background: rgba(20, 184, 166, 0.22);
}
.pmt-use-location-btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}
.pmt-picker-hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pmt-impact-card {
    padding: 1rem 1.1rem;
    border-radius: 8px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--pmt-warm);
}
.pmt-impact-card--global {
    border-left-color: var(--pmt-teal);
}
.pmt-impact-card-head {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.pmt-impact-card-head h3 {
    margin: 0;
    font-size: 1.05rem;
}
.pmt-impact-card h4 {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.95rem;
}
.pmt-impact-card p {
    margin: 0 0 0.6rem;
    line-height: 1.55;
}
.pmt-impact-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.55rem;
    border-radius: 99px;
}
.pmt-impact-badge--direct {
    background: rgba(234, 88, 12, 0.18);
    color: var(--pmt-warm);
}
.pmt-impact-badge--indirect {
    background: rgba(20, 184, 166, 0.18);
    color: var(--pmt-teal);
}
.pmt-impact-list {
    padding-left: 1.2rem;
    margin: 0 0 0.8rem;
}
.pmt-impact-list li {
    margin: 0.4rem 0;
    line-height: 1.55;
}
.pmt-detected-note {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.7rem;
    background: rgba(125, 211, 252, 0.15);
    border-left: 3px solid var(--pmt-ice);
    border-radius: 4px;
    font-size: 0.88rem;
}

.nx-hero-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nx-hero-status {
    background: var(--surface-elevated, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
}
