/* ============================================================
   Methane plume register — Fair Finance Pakistan
   Deliberately distinct from the AQI palette: this is emissions
   evidence (kg/hr), not an air-quality index, and the UI should
   never let a reader confuse the two.
   ============================================================ */

.ch4-hero {
    background: linear-gradient(135deg, #2b1a3d 0%, #4a2b5e 100%);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}
.ch4-hero h1 { color: var(--color-white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.ch4-hero p { color: rgba(255,255,255,0.8); max-width: 760px; margin: 0 auto; }

.ch4-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(190,120,220,0.18); border: 1px solid #b478d6;
    color: #dcb6f0; font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.9rem;
    border-radius: 999px; margin-bottom: 0.9rem;
}

.ch4-page { background: var(--color-off-white); padding: var(--spacing-md) 0 var(--spacing-xl); }

/* ---------- Summary tiles ---------- */
.ch4-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: var(--spacing-md); }
@media (max-width: 860px) { .ch4-stats { grid-template-columns: repeat(2, 1fr); } }
.ch4-stat {
    background: var(--color-white); border: 1px solid var(--color-grey-light);
    border-radius: 10px; padding: 1rem 1.15rem;
}
.ch4-stat-num { font-family: var(--font-serif, serif); font-size: 1.9rem; line-height: 1; color: #4a2b5e; }
.ch4-stat-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-grey-dark); margin-top: 0.4rem; }

/* ---------- Layout ---------- */
.ch4-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--spacing-md); align-items: start; }
@media (max-width: 980px) { .ch4-layout { grid-template-columns: 1fr; } }

.ch4-card {
    background: var(--color-white); border: 1px solid var(--color-grey-light);
    border-radius: 10px; overflow: hidden;
}
.ch4-card-head {
    padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--color-grey-light);
    font-weight: 700; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
}
.ch4-map { height: 560px; width: 100%; }

/* ---------- Filters ---------- */
.ch4-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--spacing-sm, 1rem); }
.ch4-filters select, .ch4-filters input {
    padding: 0.5rem 0.75rem; border: 1px solid var(--color-grey-light);
    border-radius: 8px; font-size: 0.86rem; background: var(--color-white); color: var(--color-charcoal);
}

/* ---------- Plume list ---------- */
.ch4-list { max-height: 560px; overflow-y: auto; }
.ch4-item {
    display: block; padding: 0.8rem 1.15rem; border-bottom: 1px solid var(--color-grey-light);
    text-decoration: none; color: inherit; cursor: pointer;
}
.ch4-item:hover { background: #faf7fc; }
.ch4-item.is-active { background: #f3e9f9; }
.ch4-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.ch4-rate { font-weight: 700; color: #4a2b5e; white-space: nowrap; }
.ch4-rate small { font-weight: 400; color: var(--color-grey-dark); }
.ch4-item-place { font-weight: 600; font-size: 0.92rem; }
.ch4-item-meta { font-size: 0.76rem; color: var(--color-grey-dark); margin-top: 0.2rem; }
.ch4-sector-tag {
    display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
    background: #f0e6f6; color: #4a2b5e; border-radius: 999px; padding: 0.1rem 0.55rem; margin-right: 0.4rem;
}

/* ---------- Marker + popup ---------- */
.ch4-marker {
    border-radius: 50%; border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35); background: #8e44ad;
}
.ch4-pop { min-width: 220px; font-size: 0.85rem; }
.ch4-pop h4 { font-size: 0.98rem; margin: 0 0 0.35rem; color: #4a2b5e; }
.ch4-pop img { width: 100%; border-radius: 6px; margin-top: 0.5rem; }
.ch4-pop dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.6rem; margin: 0.4rem 0 0; }
.ch4-pop dt { color: var(--color-grey-dark); font-size: 0.78rem; }
.ch4-pop dd { margin: 0; font-size: 0.78rem; font-weight: 600; }

/* ---------- Methodology callout ---------- */
.ch4-caveat {
    background: #fff8e6; border: 1px solid #e8d08a; border-left: 4px solid #d9a521;
    border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: var(--spacing-md);
    font-size: 0.87rem; line-height: 1.6;
}
.ch4-caveat strong { color: #8a6412; }

.ch4-note { font-size: 0.82rem; color: var(--color-grey-dark); margin-top: var(--spacing-md); }
.ch4-note a { color: var(--color-green-accent); font-weight: 600; }
.ch4-empty { padding: 2rem; text-align: center; color: var(--color-grey-dark); }
