/* AMURA Group — Waste-to-Energy website */
:root {
  --green-950: #0b2e1d;
  --green-900: #0f3d27;
  --green-800: #14532f;
  --green-700: #1b6b3f;
  --green-600: #2a7d4f;
  --green-100: #e3efe7;
  --green-50: #f1f7f3;
  --ink: #15201a;
  --ink-2: #3f4b44;
  --muted: #6b766f;
  --line: #e2e7e3;
  --line-2: #d3dbd5;
  --bg: #ffffff;
  --bg-soft: #f7f9f7;
  --land: #dfe5e1;
  --tag-green-bg: #e8f3ea; --tag-green: #1f6b3a;
  --tag-blue-bg: #e7f0fb;  --tag-blue: #2459a6;
  --tag-violet-bg: #f0ebfb; --tag-violet: #5a3fb8;
  --tag-amber-bg: #fbf2df; --tag-amber: #8a5a00;
  --tag-teal-bg: #e2f4f1;  --tag-teal: #0f6b5f;
  --tag-rose-bg: #fbe9ee;  --tag-rose: #a3324f;
  --tag-gray-bg: #eef1ef;  --tag-gray: #4b5650;
  /* fate-of-waste categorical slots (validated palette) */
  --fate-1: #1baf7a;
  --fate-2: #2a78d6;
  --fate-3: #eda100;
  --fate-4: #7d7266;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 40, 26, .05), 0 8px 24px rgba(16, 40, 26, .06);
  --shadow-lg: 0 10px 40px rgba(16, 40, 26, .16);
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--green-900); text-decoration: none !important; }
.brand img { width: 30px; height: 30px; opacity: .92; }
.brand-name { font-size: 17px; letter-spacing: .08em; font-weight: 700; color: var(--green-900); }
.brand-name span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-700); text-decoration: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green-700); padding-bottom: 4px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 11px 18px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-800); }
.btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
/* language picker */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink); cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--green-700); color: var(--green-700); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn .lang-caret { width: 13px; height: 13px; opacity: .6; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,61,39,.14); z-index: 60; }
.lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.lang-menu a:hover { background: #f1f5f2; text-decoration: none; }
.lang-menu a[aria-current] { color: var(--green-700); font-weight: 600; background: #eef5f0; }
.lang-menu small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }

/* ---------- Data bands ---------- */
.band { border-bottom: 1px solid var(--line); padding: 26px 0; }
.band-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.band h2, .section-title { font-size: 21px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin: 0; color: var(--ink); }
.band-sub { color: var(--muted); font-size: 14px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { display: flex; gap: 12px; align-items: flex-start; padding: 6px 18px; border-left: 1px solid var(--line); min-width: 0; }
.stat > div:last-child { min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.stat-icon svg { width: 22px; height: 22px; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 2px; overflow-wrap: anywhere; }
.stat-value { font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--green-900); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 13px; color: var(--ink-2); }
.stat-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.est { display: inline-block; font-size: 11px; font-weight: 600; color: var(--tag-amber); background: var(--tag-amber-bg); border-radius: 4px; padding: 0 5px; margin-left: 4px; vertical-align: 2px; }

/* fate-of-waste bar */
.fate { margin-top: 22px; display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; }
.fate-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fate-title small { display: block; font-weight: 400; color: var(--muted); }
.fate-bar { display: flex; gap: 2px; height: 16px; border-radius: 4px; overflow: hidden; background: #fff; }
.fate-seg { height: 100%; cursor: default; position: relative; transition: opacity .15s; }
.fate-bar:hover .fate-seg { opacity: .55; }
.fate-bar .fate-seg:hover { opacity: 1; }
.fate-legend { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.fate-legend li { display: flex; align-items: center; gap: 7px; }
.fate-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.fate-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Map ---------- */
.map-section { padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.sources-line { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.sources-line a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); }
.map-wrap { position: relative; }
.map-svg { width: 100%; height: auto; }
.map-svg .land { fill: var(--land); }
.bubble { fill: var(--green-900); stroke: #fff; stroke-width: 2; cursor: pointer; transition: fill .15s; }
.bubble:hover, .bubble.is-active { fill: var(--green-600); }
.bubble-hit { fill: transparent; cursor: pointer; }
.bubble-label { font-size: 13px; font-weight: 700; fill: #fff; pointer-events: none; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.pipe { fill: #fff; stroke: var(--green-700); stroke-width: 2.5; cursor: pointer; }
.pipe:hover, .pipe.is-active { fill: var(--green-100); stroke-width: 3.5; }
.map-legend { position: absolute; left: 8px; bottom: 10px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--ink-2); display: flex; gap: 16px; align-items: center; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green-900); display: inline-block; }
.lg-ring { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--green-700); background: #fff; display: inline-block; }
.map-card { position: absolute; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; z-index: 5; font-size: 13px; }
.map-card[hidden] { display: none; }
.map-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.map-card-head h3 { margin: 0; font-size: 16px; }
.pill-sel { background: var(--green-900); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.map-card dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 7px 12px; }
.map-card dt { color: var(--ink-2); }
.map-card dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.map-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.map-card .more:hover { color: var(--green-700); }
.map-card .more svg { width: 16px; height: 16px; }
.map-card .close { position: absolute; top: 8px; right: 8px; display: none; }

/* region drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 30, 20, .35); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #fff; z-index: 91; box-shadow: var(--shadow-lg); overflow-y: auto; padding: 28px; transform: translateX(0); }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer h3 { margin: 0 0 6px; font-size: 22px; }
.drawer p { color: var(--ink-2); }
.drawer .x { position: absolute; top: 18px; right: 18px; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 20px; line-height: 1; }
.drawer table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.drawer td, .drawer th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.drawer td.r, .drawer th.r { text-align: right; font-variant-numeric: tabular-nums; }
.drawer .src { font-size: 12px; color: var(--muted); }

/* ---------- Plants table ---------- */
.section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 8px 14px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--green-900); color: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.plants { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.plants th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.plants th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
table.plants th button:focus-visible { outline: 2px solid var(--green-600); }
table.plants th.r, table.plants td.r { text-align: right; }
table.plants td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.plants tr:last-child td { border-bottom: 0; }
table.plants tbody tr:hover { background: var(--green-50); }
.barcell { display: flex; align-items: center; gap: 10px; }
.barcell > span:first-child { width: 46px; text-align: right; flex: none; }
.bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--green-700); min-width: 2px; }
.bar-track { width: 160px; display: flex; }
.basis { font-size: 11px; color: var(--muted); margin-left: 4px; }
.table-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.show-more { margin-top: 12px; }

/* ---------- News cards ---------- */
.news-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.link-arrow svg { width: 18px; height: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none !important; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3.1; position: relative; }
.thumb svg { width: 100%; height: 100%; }
.card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-date { font-size: 13px; color: var(--muted); }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 6px; background: var(--tag-gray-bg); color: var(--tag-gray); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag.green { background: var(--tag-green-bg); color: var(--tag-green); }
.tag.blue { background: var(--tag-blue-bg); color: var(--tag-blue); }
.tag.violet { background: var(--tag-violet-bg); color: var(--tag-violet); }
.tag.amber { background: var(--tag-amber-bg); color: var(--tag-amber); }
.tag.teal { background: var(--tag-teal-bg); color: var(--tag-teal); }
.tag.rose { background: var(--tag-rose-bg); color: var(--tag-rose); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* ---------- Content sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--green-700); font-weight: 700; margin-bottom: 8px; }
.svc { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.svc-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.svc-item h3 { font-size: 16px; margin: 12px 0 6px; }
.svc-item p { margin: 0; color: var(--ink-2); font-size: 14px; }
.svc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--green-900); color: #fff; display: grid; place-items: center; }
.svc-ic svg { width: 22px; height: 22px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; color: var(--ink-2); }
.check-list svg { flex: none; width: 20px; height: 20px; color: var(--green-700); margin-top: 2px; }
.contact-box { background: var(--green-900); color: #fff; border-radius: 16px; padding: 36px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.contact-box h2 { color: #fff; margin: 0 0 10px; font-size: 28px; }
.contact-box p { color: #cfe3d6; }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.contact-form ::placeholder { color: #a9c6b4; }
.contact-form select option { color: var(--ink); }
.contact-form .btn { background: #fff; color: var(--green-900); justify-self: start; }

.site-footer { padding: 30px 0 40px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- News page ---------- */
.page-hero { background: var(--green-950); color: #fff; padding: 40px 0 34px; }
.page-hero h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: .01em; }
.page-hero p { margin: 0; color: #c4dacb; max-width: 70ch; }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 13px; color: #c4dacb; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; display: inline-block; box-shadow: 0 0 0 0 rgba(95,211,141,.6); animation: pulse 2s infinite; margin-right: 6px; }
.live-dot.off { background: #c9a227; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(95,211,141,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,141,0); } }
.hero-meta button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.hero-meta button:hover { background: rgba(255,255,255,.18); }
.hero-meta button[disabled] { opacity: .6; cursor: progress; }

.news-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 28px 0 60px; align-items: start; }
.filters { position: sticky; top: 92px; display: grid; gap: 20px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.fgroup h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.fselect { width: 100%; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--green-600); }
.chip[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.chip .n { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.chip[disabled] { opacity: .45; cursor: default; }
.fgroup .clear { margin-top: 2px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-count { font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters .chip { background: var(--green-50); border-color: var(--green-100); color: var(--green-900); }
.active-filters .chip:hover { border-color: var(--green-600); }
.sortsel { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.news-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.news-item h2 { font-size: 17px; line-height: 1.35; margin: 0; font-weight: 650; }
.news-item h2 a { color: var(--ink); }
.news-item h2 a:hover { color: var(--green-700); }
.news-item .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.news-item .sum { margin: 0; color: var(--ink-2); font-size: 14px; }
.news-item .body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.notice { font-size: 12px; color: var(--muted); margin-top: 18px; }
.load-more { margin: 18px auto 0; display: flex; }
.filter-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 18px; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .menu-toggle { display: block; order: 3; margin-left: 8px; }
  .lang { order: 2; margin-left: auto; }
  .news-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .split, .contact-box { grid-template-columns: 1fr; }
  .fate { grid-template-columns: 1fr; }
  .fate-legend { grid-column: 1; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding-left: 0; padding-right: 8px; }
  .stat-value { font-size: 26px; }
  .stat-icon { width: 42px; height: 42px; }
  .stat-icon svg { width: 21px; height: 21px; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: 110px 1fr; }
  .svc { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .thumb { aspect-ratio: 16 / 6; }
  .brand-name { font-size: 15px; }
  .brand img { width: 26px; height: 26px; }
  .map-card { position: static; width: auto; margin: 10px 0; box-shadow: var(--shadow); }
  .map-legend { position: static; margin-top: 8px; display: inline-flex; }
  .bubble-label { font-size: 30px; }
  .stat-label { white-space: normal; }
  .page-hero h1 { font-size: 28px; }
  .contact-box { padding: 24px; }
}
[data-region], [data-pipe] { outline: none; }
[data-region]:focus-visible .bubble { stroke: var(--green-600); stroke-width: 5; }
[data-pipe]:focus-visible { stroke-width: 5; }

/* ---------- Latest-news ticker ---------- */
.ticker { background: var(--green-950); color: #e6f1ea; font-size: 14px; border-bottom: 1px solid var(--green-900); }
.ticker[hidden] { display: none; }
.ticker-inner { display: flex; align-items: center; gap: 16px; height: 42px; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 6px; text-decoration: none !important; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker-scroll var(--ticker-dur, 80s) linear infinite; }
.ticker-viewport:hover .ticker-track, .ticker-viewport:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track li { white-space: nowrap; padding-right: 36px; position: relative; }
.ticker-track li::after { content: ""; position: absolute; right: 16px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #5fa47c; }
.ticker-track a { color: #e6f1ea; text-decoration: none; }
.ticker-track a:hover, .ticker-track a:focus-visible { color: #fff; text-decoration: underline; }
.ticker-track time { color: #8fbf9f; font-variant-numeric: tabular-nums; margin-right: 8px; }
.ticker-track .tk-c { color: #fff; font-weight: 600; margin-right: 6px; }
.ticker-all { flex: none; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 13px; }
.ticker-all svg { width: 15px; height: 15px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 700px) {
  .ticker-all { display: none; }
  .ticker-inner { gap: 10px; }
}

/* ---------- Zoomable plant map ---------- */
.map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.map-head .sources-line { margin: 0; text-align: left; }
.map-box { position: relative; }
.wmap-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fbfcfb; }
.wmap-stage { position: relative; height: 520px; overflow: hidden; }
.wmap { touch-action: none; user-select: none; -webkit-user-select: none; }
.wmap-tiles { position: absolute; inset: 0; transition: opacity .3s; }
.wmap-tiles img { position: absolute; left: 0; top: 0; transform-origin: 0 0; filter: saturate(.55); }
.wmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.wmap-svg:active { cursor: grabbing; }
.wmap .land { fill: var(--land); }
.wmap .land-shape { fill: #eef2ef; stroke: #d5ddd7; vector-effect: non-scaling-stroke; }
.wmap .mk { cursor: pointer; outline: none; }
.wmap .mk .hit { fill: transparent; }
.wmap .mk .dot { fill: var(--green-900); stroke: #fff; stroke-width: 2; transition: fill .15s; }
.wmap .mk:hover .dot, .wmap .mk:focus-visible .dot, .wmap .mk.is-active .dot { fill: var(--green-600); }
.wmap .mk:focus-visible .dot { stroke: var(--green-600); stroke-width: 4; }
.wmap .mk .lbl { fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; font-variant-numeric: tabular-nums; }
.wmap .mk-cluster .dot { fill: var(--green-700); stroke-width: 3; stroke: rgba(255,255,255,.9); }
.wmap .mk-plant .dot { fill: var(--green-900); stroke-width: 2.5; }
.wmap .mk-project .dot { fill: #fff; stroke: var(--green-700); stroke-width: 2.5; }
.wmap .mk-project:hover .dot, .wmap .mk-project.is-active .dot { fill: var(--green-100); }
.wmap .mk.is-pending .dot { fill: #9fb3a6; }
.wmap-top { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; z-index: 5; }
.wmap-top > * { pointer-events: auto; }
.wmap-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; min-height: 36px; }
.wmap-crumbs button { background: none; border: 0; padding: 0; color: var(--green-700); cursor: pointer; font-weight: 500; }
.wmap-crumbs button:hover { text-decoration: underline; }
.wmap-crumbs span { color: var(--muted); }
.wmap-search { position: relative; width: 280px; }
.wmap-search > span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.wmap-search input { width: 100%; padding: 8px 10px 8px 32px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 14px; }
.wmap-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto; }
.wmap-results button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 7px 9px; border-radius: 6px; cursor: pointer; }
.wmap-results button:hover, .wmap-results button:focus-visible { background: var(--green-50); }
.wmap-results b { display: block; font-size: 14px; font-weight: 600; }
.wmap-results span { font-size: 12px; color: var(--muted); }
.wmap-results .none { padding: 8px; color: var(--muted); font-size: 13px; }
.wmap-zoom { position: absolute; right: 12px; bottom: 34px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); z-index: 3; }
.wmap-zoom button { width: 36px; height: 34px; border: 0; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.wmap-zoom button + button { border-top: 1px solid var(--line); }
.wmap-zoom button:hover { background: var(--green-50); }
.wmap-zoom svg { width: 18px; height: 18px; }
.wmap-legend { position: absolute; left: 12px; bottom: 30px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: 12px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; z-index: 2; max-width: calc(100% - 80px); }
.wmap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot.pending { background: #9fb3a6; }
.wmap-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,61,39,.35); color: #fff; font-weight: 600; font-size: 15px; z-index: 4; pointer-events: none; }
.wmap-hint[hidden] { display: none; }
.wmap-attr { position: absolute; right: 0; bottom: 0; font-size: 10.5px; color: var(--muted); background: rgba(255,255,255,.85); padding: 2px 8px; border-top-left-radius: 6px; z-index: 2; }
.wmap-card { position: relative; height: 520px; overflow-y: auto; background: #fff; border-left: 1px solid var(--line); padding: 18px 20px; font-size: 13px; }
.wmap-card[hidden] { display: none; }
.wmap-card .wmap-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 22px 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.wmap-card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.wmap-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; }
.wmap-card dt { color: var(--ink-2); }
.wmap-card dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.wmap-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.wmap-sub { margin: 14px 0 6px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.wmap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wmap-list button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.wmap-list button:hover, .wmap-list button:focus-visible { background: var(--green-50); }
.wmap-list b { font-variant-numeric: tabular-nums; }
.wmap-calc { margin: 10px 0 0; padding: 8px 10px; background: var(--bg-soft); border-radius: 6px; color: var(--ink-2); font-size: 12px; }
.wmap-note { margin: 10px 0 0; font-size: 12px; color: var(--tag-amber); }
.wmap-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.wmap-tbl { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.wmap-tbl th { text-align: right; color: var(--muted); font-weight: 600; padding: 4px; border-bottom: 1px solid var(--line); }
.wmap-tbl td { text-align: right; padding: 4px; border-bottom: 1px solid var(--line); }
.wmap-tbl th:first-child, .wmap-tbl td:first-child { text-align: left; }
.yr { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 2px; }
.muted { color: var(--muted); font-weight: 400; }
.calc { display: inline-block; font-size: 11px; font-weight: 600; color: var(--tag-blue); background: var(--tag-blue-bg); border-radius: 4px; padding: 0 5px; vertical-align: 2px; cursor: help; }
.est { cursor: help; }
.status { text-transform: capitalize; }
.st-construction, .st-planned { color: var(--tag-amber); }
.map-error { position: absolute; inset: auto 20px 50% 20px; }
.stat-empty .stat-value { color: var(--muted); }
@media (max-width: 900px) {
  .wmap-body { grid-template-columns: 1fr; }
  .wmap-stage { height: 400px; }
  .wmap-card { height: auto; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .wmap-top { flex-direction: column-reverse; align-items: stretch; }
  .wmap-search { width: 100%; }
  .wmap-legend { display: none; }
}

/* ---------- Methodology page ---------- */
.meth { padding: 28px 24px 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.meth h2 { font-size: 20px; margin: 0 0 12px; }
.meth h3 { font-size: 15px; margin: 18px 0 6px; }
.meth p, .meth li { color: var(--ink-2); max-width: 85ch; }
.meth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meth-grid > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 10px; background: var(--bg-soft); }
.meth-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.meth-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; max-width: 100%; }
.meth-tools .fselect { width: auto; min-width: 200px; max-width: 100%; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.meth-table td { vertical-align: top; font-size: 13px; }
.meth-table td:nth-child(6) { min-width: 280px; }
.meth-table tr.superseded td { opacity: .55; }
.meth-table tr:target td { background: var(--green-50); }
.meth-methods { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }
.meth-sources { padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
@media (max-width: 900px) { .meth-grid { grid-template-columns: 1fr; } }

/* ---------- Map card → plant profile ---------- */
.wmap-profile { margin-top: 12px; padding: 8px 14px; font-size: 14px; width: 100%; justify-content: center; }

/* ---------- Plant profile page ---------- */
.plant-hero { padding: 28px 0 30px; }
.pl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #9fc2ac; margin-bottom: 10px; }
.pl-crumbs a { color: #c4dacb; }
.pl-crumbs a:hover { color: #fff; }
.pl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-sub [data-icon] svg { width: 16px; height: 16px; vertical-align: -3px; }
.muted-light { color: #9fc2ac; }
.pl-status, .pl-tech { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: rgba(255,255,255,.12); color: #fff; text-transform: capitalize; }
.pl-status.st-operating { background: #2a7d4f; }
.pl-status.st-construction, .pl-status.st-planned { background: #8a5a00; }
.pl-tech { text-transform: none; font-weight: 500; }

.plant { padding-top: 28px; padding-bottom: 56px; }
.pl-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pl-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.pl-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pl-photo figcaption { font-size: 12px; color: var(--muted); padding: 8px 12px; }
.pl-photo figcaption a { color: var(--ink-2); }
.pl-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.pl-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; width: 96px; }
.pl-thumbs button[aria-pressed="true"] { border-color: var(--green-700); }
.pl-thumbs img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pl-tilemap { position: relative; height: 340px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--land); }
.pl-tilemap img { position: absolute; width: 256px; height: 256px; }
.pl-tile-attr { position: absolute; right: 0; bottom: 0; font-size: 10px; background: rgba(255,255,255,.85); padding: 1px 6px; color: var(--ink-2); }
.pl-pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--green-700); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(27,107,63,.25); }
.pl-pin.approx { width: 90px; height: 90px; margin: -45px 0 0 -45px; background: rgba(27,107,63,.15); border: 2px dashed var(--green-700); box-shadow: none; }
.pl-nophoto { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.pl-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.pl-kpi-l { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pl-kpi-v { font-size: 22px; font-weight: 750; margin: 4px 0 6px; line-height: 1.2; }
.pl-kpi-v .muted { display: block; font-size: 12px; font-weight: 500; }
.pl-kpi-v.na, .na { color: var(--muted); font-weight: 500; font-size: 14px; }
.approx { color: var(--tag-amber); margin-right: 2px; font-weight: 600; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; vertical-align: 1px; white-space: nowrap; }
.b-reported { background: var(--tag-green-bg); color: var(--tag-green); }
.b-calculated { background: var(--tag-blue-bg); color: var(--tag-blue); }
.b-estimated { background: var(--tag-amber-bg); color: var(--tag-amber); }
.pl-legend { font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 2; }
.pl-legend .badge { margin-left: 6px; }
.pl-legend .badge:first-child { margin-left: 0; }

.pl-details { margin-top: 40px; }
.pl-details-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.pl-details-head h2, .pl-bottom h2 { font-size: 20px; margin: 0; }
.pl-details-head .link-arrow { font-size: 14px; }
.pl-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-700); margin: 26px 0 4px; }
.pl-dl { margin: 0; }
.pl-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pl-row dt { font-weight: 600; color: var(--ink-2); }
.pl-row dd { margin: 0; min-width: 0; }
.pl-val { font-size: 16px; font-weight: 600; }
.pl-val .muted { font-weight: 500; font-size: 13px; }
.pl-src, .pl-alts { font-size: 12px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.pl-src a, .pl-alts a { color: var(--ink-2); }
.pl-how { margin-top: 6px; font-size: 13px; }
.pl-how summary { cursor: pointer; color: var(--tag-amber); font-weight: 600; font-size: 12px; }
.pl-how ul { margin: 8px 0 4px; padding-left: 18px; }
.pl-how li { margin-bottom: 6px; }
.pl-how .muted { font-size: 12px; overflow-wrap: anywhere; }
.pl-how p { margin: 4px 0; font-size: 12px; }
.pl-fx { font-size: 12px; margin-top: 12px; }

.pl-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.pl-near, .pl-links { list-style: none; padding: 0; margin: 12px 0; }
.pl-near li, .pl-links li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.pl-near a, .pl-links a { font-weight: 600; }

@media (max-width: 900px) {
  .pl-top, .pl-bottom { grid-template-columns: 1fr; }
  .pl-row { grid-template-columns: 1fr; gap: 4px; }
  .pl-tilemap { height: 260px; }
  .pl-kpi-v { font-size: 19px; }
}
.pl-msrc { font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.pl-msrc a { color: var(--ink-2); }
.stat-note a, .fate-title small a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); }
.src-cell { font-size: 12px; color: var(--muted); max-width: 220px; }
.src-cell a { color: var(--ink-2); }
.pl-unplaced { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--ink-2); background: var(--bg-soft); }
.pl-unplaced p { max-width: 40ch; margin: 0; }
.mk.is-zero .dot { fill: #fff; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 2; }
.mk.is-zero .lbl { fill: var(--muted); }
.mk.is-zero.is-active .dot { fill: #fff; stroke: var(--green-800); stroke-width: 2.5; stroke-dasharray: none; }
.mk.is-zero.is-active .lbl { fill: var(--green-800); }
/* Announced by government (not confirmed): kept visibly apart from confirmed plants and projects */
.wmap .mk-announced .dot { fill: #fff; stroke: var(--tag-amber); stroke-width: 2; stroke-dasharray: 3 2; }
.wmap .mk-announced:hover .dot, .wmap .mk-announced.is-active .dot { fill: var(--tag-amber-bg); }
.lg-ann { width: 11px; height: 11px; border-radius: 50%; border: 2px dashed var(--tag-amber); background: #fff; display: inline-block; }
.wmap-ann { margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--tag-amber); border-radius: 8px; background: #fffaf0; }
.wmap-ann .wmap-sub { margin-top: 0; color: var(--tag-amber); }
.wmap-ann a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: var(--ink); }
.wmap-ann p.muted { font-size: 12px; margin: 6px 0 0; }
.st-announced { color: var(--tag-amber); }
.pl-status.st-announced { background: transparent; border: 1px dashed #f0c470; color: #ffd98a; }
.pl-announced { border: 1px dashed var(--tag-amber); background: #fffaf0; border-radius: var(--radius); padding: 18px 20px; }
.pl-announced h2 { font-size: 17px; margin: 0 0 6px; color: var(--tag-amber); }
.pl-announced p { margin: 6px 0; }
.news-plants { font-size: 13px; color: var(--muted); margin-top: 8px; }
.news-plants a { font-weight: 600; }
/* in-place editing on plant pages (Admin signed in only) */
.pl-adminbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; background: #fffaf0; border: 1px dashed var(--tag-amber); border-radius: 8px; padding: 10px 14px; margin-bottom: 18px; }
.linkbtn { background: none; border: none; padding: 0; color: var(--green-700); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.pl-edit { margin-left: 8px; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; width: 26px; height: 26px; cursor: pointer; color: var(--green-700); font-size: 14px; line-height: 1; vertical-align: middle; }
.pl-edit:hover { background: var(--green-50); }
.pl-dlg { border: none; border-radius: 12px; padding: 0; width: min(520px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pl-dlg::backdrop { background: rgba(10, 30, 20, .45); }
.pl-dlg-form { display: grid; gap: 10px; padding: 20px; }
.pl-dlg-form h2 { font-size: 18px; margin: 0; }
.pl-dlg-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pl-dlg-form input { padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; }
.pl-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.pl-dlg-err { color: #8a1c13; background: #fff1f0; border-radius: 6px; padding: 8px 10px; margin: 0; font-size: 13px; }

/* ---------- Landfill map ---------- */
:root { --lf-900: #6b4a1e; --lf-700: #9a6a2c; --lf-500: #c08a3e; --lf-100: #f7ecd9; --lf-closed: #8f948f; }
/* .lf-section sits right after the waste figures, like the plant map after the WtE figures */
.wmap.lf .mk .dot { fill: var(--lf-900); }
.wmap.lf .mk:hover .dot, .wmap.lf .mk:focus-visible .dot, .wmap.lf .mk.is-active .dot { fill: var(--lf-500); }
.wmap.lf .mk:focus-visible .dot { stroke: var(--lf-500); }
.wmap.lf .mk-cluster .dot { fill: var(--lf-700); }
.wmap.lf .mk.is-pending .dot { fill: #c9b79c; }
.wmap.lf .mk.is-nofig .dot { fill: #fff; stroke: var(--lf-700); stroke-width: 2; }
.wmap.lf .mk-site.is-closed .dot { fill: var(--lf-closed); }
.wmap.lf .mk-site.is-modelled .dot { fill: #fff; stroke: var(--lf-700); stroke-width: 2; stroke-dasharray: 3 2; }
.wmap.lf .mk-site.is-modelled:hover .dot, .wmap.lf .mk-site.is-modelled.is-active .dot { fill: var(--lf-100); }
.lg-dot.lf { background: var(--lf-900); }
.lg-site { width: 11px; height: 11px; border-radius: 50%; background: var(--lf-900); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--lf-900); display: inline-block; }
.lg-site.closed { background: var(--lf-closed); box-shadow: 0 0 0 1px var(--lf-closed); }
.lg-site.modelled { background: #fff; border: 2px dashed var(--lf-700); box-shadow: none; }
.lf-badge { display: inline-block; margin: 0 0 10px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lf-badge.off { background: #e7f3ec; color: var(--green-800); }
.lf-badge.mod { background: var(--lf-100); color: var(--lf-900); }
.wmap-src { font-size: 11.5px; color: var(--muted); margin: -2px 0 8px; text-align: right; }

/* ---------- About us (bottom of the homepage) ---------- */
.about-us { padding: 30px 0 40px; border-top: 1px solid var(--line); }
.about-us .wrap { display: flex; gap: 40px; align-items: baseline; flex-wrap: wrap; }
.about-us .section-title { margin: 0; flex: none; }
.about-us p { margin: 0; flex: 1 1 420px; max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 640px) { .about-us .wrap { gap: 10px; } .about-us p { font-size: 15.5px; } }

.lfg-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.lfg-block h3 { font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0; color: var(--ink); }

/* Three themes, color stays inside the content width */
.tone-waste .wrap, .tone-landfill .wrap, .tone-wte .wrap {
  background: var(--tone, transparent);
  border-radius: 16px;
  padding: 22px 22px 26px;
}
.tone-waste { --tone: #f7f4ee; }
.tone-landfill { --tone: #f1f7f3; }
.tone-wte { --tone: #f3f5f7; }
.tone-waste, .tone-landfill, .tone-wte { background: transparent; border-bottom: 0; }
.tone-wte + .tone-wte .wrap { margin-top: 14px; }

.msw-split { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.msw-stack { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 18px; }
.ms-total { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ms-total-n { font-size: 52px; line-height: 1; font-weight: 800; color: var(--green-900); font-variant-numeric: tabular-nums; }
.ms-total-t { font-size: 17px; font-weight: 700; color: var(--ink); }
.ms-proj { display: inline-block; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: #eef1ee; font-size: 13px; font-weight: 600; color: #2f3f37; }
.ms-sub { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; }
.ms-src { margin-top: 4px; }
.ms-src a { color: inherit; text-decoration: underline; }
.ms-groups { display: grid; grid-template-rows: auto auto 1fr; column-gap: 12px; margin-top: 18px; }
.ms-grp { min-width: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.ms-glabel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: var(--ink); }
.ms-lead { font-size: 28px; line-height: 32px; font-weight: 800; }
.ms-lead-t { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 20px; font-weight: 600; text-wrap: balance; max-width: 260px; }
.ms-lead-a { color: #17784d; }
.ms-lead-b { color: #5e544a; }
.ms-bracket { margin: 6px 0 10px; height: 7px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; }
.ms-cols { display: flex; gap: 6px; }
.ms-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ms-tag { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; background: var(--ms); }
.ms-info { flex: 1; box-sizing: border-box; border-radius: 12px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; text-align: center; color: var(--ink); background: var(--ms-tint); }
.ms-info b { display: block; font-size: 26px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.ms-info small { display: block; margin-top: 3px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-2); }
.ms-label { min-height: 36px; display: flex; align-items: flex-start; justify-content: center; font-size: 13px; line-height: 18px; font-weight: 600; }
.ms-1 { --ms: #17784d; --ms-tint: #e3f2ea; }
.ms-2 { --ms: #1a62a8; --ms-tint: #e2eefa; }
.ms-3 { --ms: #b45309; --ms-tint: #fbebdc; }
.ms-4 { --ms: #7d7266; --ms-tint: #efebe5; }
.ms-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .ms-groups { display: flex; flex-direction: column; gap: 26px; }
  .ms-grp { display: block; width: 100%; }
  .ms-lead-t { max-width: none; }
  .ms-cols { flex-direction: column; gap: 20px; }
  .ms-col { flex: none !important; width: 100%; }
  .ms-tag { width: calc(var(--p) * 1%); min-width: 72px; }
  .ms-total-n { font-size: 44px; }
}
.gen-map-wrap { min-width: 0; }
.gen-map-wrap .wmap-body { grid-template-columns: 1fr; }
.gen-map-wrap .wmap-top, .gen-map-wrap .wmap-search, .gen-map-wrap .wmap-crumbs { display: none !important; }
.gen-map-wrap .wmap-stage { height: 420px; }
.gen-map-wrap .wmap-card { display: none !important; }
.gen-detail { display: flex; gap: 10px; align-items: baseline; margin-top: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.gen-detail[hidden] { display: none; }
.gen-detail .gen-x { margin-left: auto; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); }
@media (max-width: 800px) { .msw-split { grid-template-columns: 1fr; } }
.pl-local { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* ---- Plant table (lowest map level): name, city and technology, status ---- */
.wmap-src, .wmap-src * { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.wmap-card dd small.wmap-sub-val { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.wmap-plants { margin-top: 14px; }
.wmap-pfilter { width: 100%; box-sizing: border-box; margin: 4px 0 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.wmap-ptbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.wmap-ptbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.wmap-ptbl th:last-child, .wmap-ptbl td:last-child { text-align: right; white-space: nowrap; }
.wmap-ptbl td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wmap-ptbl tbody tr { cursor: pointer; }
.wmap-ptbl tbody tr:hover, .wmap-ptbl tbody tr:focus-visible { background: var(--green-50); outline: none; }
.wmap-ptbl td b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.wmap-ptbl td small { display: block; color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.wmap-more { width: 100%; margin-top: 8px; }
.wmap-card dd small.wmap-sub-val { white-space: nowrap; }
.wmap-card .pl-local { margin: 8px 0 12px; color: var(--muted); font-size: 12.5px; }

/* ---- Technology page ---- */
.tech-hero { background: var(--green-50); border-bottom: 1px solid var(--line); padding: 44px 0 28px; }
.tech-hero h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; color: var(--green-900); }
.tech-intro { max-width: 720px; margin: 0 0 8px; font-size: 17px; color: var(--ink-2); }
.tech-hier { max-width: 720px; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.tech-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-jump a { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.tech-jump a:hover { border-color: var(--green-600); color: var(--green-800); text-decoration: none; }
.tech-wrap { padding-top: 12px; padding-bottom: 8px; }
.tech-family { margin: 36px 0 12px; }
.tech-family > h2 { margin: 0 0 4px; font-size: 22px; color: var(--green-900); }
.tech-fdesc { margin: 0 0 18px; color: var(--ink-2); max-width: 760px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; scroll-margin-top: 90px; }
.tech-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tech-card h3 { margin: 0; font-size: 19px; line-height: 1.25; color: var(--green-900); }
.tech-card h4 { margin: 16px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tech-tag { margin: 8px 0 0; font-size: 15px; color: var(--ink); }
.tech-steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.tech-steps li { margin: 3px 0; }
.tech-card dl { margin: 16px 0 0; display: grid; gap: 10px; }
.tech-card dl > div { border-top: 1px solid var(--line); padding-top: 10px; }
.tech-card dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tech-card dd { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.tech-src { margin: 16px 0 4px; font-size: 12.5px; color: var(--muted); }
.tech-srcs { margin: 0; padding-left: 18px; font-size: 12.5px; }
.tech-srcs li { margin: 2px 0; overflow-wrap: anywhere; }
.tech-lv { flex: none; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tech-lv.lv-3 { background: #dff1e6; color: #14532f; }
.tech-lv.lv-2 { background: #e6f0fa; color: #1a4f87; }
.tech-lv.lv-1 { background: #fdf1dc; color: #8a5a07; }
.tech-lv.lv-0 { background: #eceff0; color: #4b5560; }
.tech-tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tech-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tech-tbl th, .tech-tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tech-tbl th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--green-50); }
.tech-tbl tr:last-child td { border-bottom: 0; }
.tech-note { margin: 24px 0 48px; font-size: 13px; color: var(--muted); max-width: 760px; }
/* cards in the same row line up section by section, whatever the language or text length */
@supports (grid-template-rows: subgrid) {
  .tech-grid { row-gap: 0; }
  .tech-card { display: grid; grid-row: span 10; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 20px; }
  .tech-card header { align-self: start; }
  .tech-card dl { align-content: start; }
}
.tech-count { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--green-800); }
.tech-count span { display: block; }
.tech-count.muted { color: var(--muted); font-weight: 400; }
.tech-tbl th.num, .tech-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Data & sources page */
.meth-wrap { padding: 8px 0 48px; max-width: 820px; }
.meth-sec { margin: 28px 0 0; }
.meth-sec h2 { font-size: 22px; margin: 0 0 8px; }
.meth-sec p, .meth-sec li { font-size: 16px; line-height: 1.6; color: var(--text, #26332d); }
.meth-sec ul { padding-left: 20px; margin: 8px 0; }

/* Technology: process at a glance */
.pf { margin: 6px 0 14px; }
.pf-row { display: flex; align-items: flex-start; gap: 4px; flex-wrap: nowrap; }
.pf-step { display: flex; align-items: flex-start; gap: 2px; flex: 1 1 0; min-width: 0; }
.pf-cell { flex: 1 1 0; min-width: 0; }
.pf-step > .pf-n { flex: 1 1 0; min-width: 0; }
.pf-cell > .pf-n { display: block; width: 100%; }
.pf-cell { display: flex; flex-direction: column; align-items: center; }
.pf-n { display: inline-block; font-size: 12px; line-height: 1.3; padding: 8px 6px; overflow-wrap: anywhere; hyphens: auto; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); text-align: center; box-shadow: 0 1px 0 rgba(16,40,26,.04); }
.pf-n.pf-in { background: var(--bg-soft); border-style: dashed; }
.pf-n.pf-gas { background: var(--tag-teal-bg); border-color: #bfe3dc; color: var(--tag-teal); }
.pf-n.pf-rec, .pf-p.pf-rec { background: var(--tag-green-bg); border-color: #c9e4ce; color: var(--tag-green); }
.pf-n.pf-loop { background: var(--tag-green-bg); border-color: #c9e4ce; color: var(--tag-green); border-radius: 999px; }
.pf-ar { display: inline-block; align-self: flex-start; margin-top: 15px; width: 14px; height: 10px; position: relative; flex: none; }
.pf-ar::before { content: ""; position: absolute; left: 0; right: 3px; top: 4px; height: 2px; background: var(--line-2); border-radius: 2px; }
.pf-ar::after { content: ""; position: absolute; right: 0; top: 1px; border: 4px solid transparent; border-left: 6px solid var(--line-2); border-right: 0; }
.pf-ar.pf-down { transform: rotate(90deg); margin: 8px 0 6px; align-self: center; }
.pf-br { display: flex; flex-direction: column; align-items: center; margin-top: 2px; }
.pf-br .pf-n:not(.pf-gas) { margin-top: 8px; }
.pf-br .pf-n + .pf-ar { margin: 8px 0 6px; transform: rotate(90deg); align-self: center; }
.pf-out { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; max-width: 34%; }
.pf-p { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--tag-gray-bg); color: var(--tag-gray); }
.pf-p.pf-power { background: var(--tag-amber-bg); color: var(--tag-amber); }
.pf-p.pf-heat { background: var(--tag-rose-bg); color: var(--tag-rose); }
.pf-p.pf-fuel { background: var(--tag-blue-bg); color: var(--tag-blue); }
.pf-left { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); }
.pf-left b { font-weight: 600; margin-right: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .pf-ar::after { animation: pfnudge 2.2s ease-in-out infinite; }
  @keyframes pfnudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
  .pf-ar.pf-down::after { animation: none; }
}
@media (max-width: 640px) {
  .pf-row { flex-direction: column; align-items: stretch; }
  .pf-step { flex: none; }
  .pf-out { max-width: none; }
  .pf-step { flex-direction: column; align-items: stretch; }
  .pf-step > .pf-ar { transform: rotate(90deg); margin: 6px auto 2px; align-self: center; }
  .pf-out { flex-direction: row; flex-wrap: wrap; }
}

.pf-n:lang(en), .pf-p:lang(en) { hyphens: manual; }
.tech-card { min-width: 0; }
.tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .tech-grid { grid-template-columns: minmax(0, 1fr); } }

/* Technology illustrations */
.tech-art { margin: -22px -22px 16px; border-radius: 14px 14px 0 0; overflow: hidden; background: #0b1713; line-height: 0; }
.tech-art img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 540; }

/* ---------- One colour per topic, the same as the four cards under "Global waste data" ----------
   green = recycled / environment (brand), blue = energy and WtE, orange = landfills, neutral = all waste generated */
.tone-waste { --tone: #f5f4f1; }
.tone-landfill { --tone: #fcf3e8; }
.tone-wte { --tone: #eef4fb; }
.ms-total-n { color: var(--ink); }

/* Landfills: orange */
.lf-section { --lf-900: #8a3f06; --lf-700: #b45309; --lf-500: #d9822b; --lf-100: #fbebdc; --lf-closed: #8f948f; }
.wmap.lf, .lf-section { --lf-900: #8a3f06; --lf-700: #b45309; --lf-500: #d9822b; --lf-100: #fbebdc; }
.lf-badge.off { background: #fbebdc; color: #8a3f06; }
.tone-landfill .stat-value { color: #8a3f06; }
.tone-landfill .stat-icon { color: #b45309; background: #fff; border-color: #f0d7bb; }
.tone-landfill .wmap-crumbs button, .tone-landfill a:not(.btn) { color: #8a3f06; }
.tone-landfill .wmap-hint { background: rgba(138, 63, 6, .35); }
.tone-landfill .wmap-list button:hover, .tone-landfill .wmap-list button:focus-visible, .tone-landfill .wmap-results button:hover, .tone-landfill .wmap-zoom button:hover { background: #fbebdc; }

/* Energy and WtE: blue */
.tone-wte .stat-value { color: #0f3f73; }
.tone-wte .stat-icon { color: #1a62a8; background: #fff; border-color: #cfe0f3; }
.tone-wte .wmap .mk .dot { fill: #0f3f73; }
.tone-wte .wmap .mk:hover .dot, .tone-wte .wmap .mk:focus-visible .dot, .tone-wte .wmap .mk.is-active .dot { fill: #1a62a8; }
.tone-wte .wmap .mk:focus-visible .dot { stroke: #1a62a8; }
.tone-wte .wmap .mk-cluster .dot { fill: #1a62a8; }
.tone-wte .wmap .mk-plant .dot { fill: #0f3f73; }
.tone-wte .wmap .mk-project .dot { fill: #fff; stroke: #1a62a8; }
.tone-wte .wmap .mk-project:hover .dot, .tone-wte .wmap .mk-project.is-active .dot { fill: #e2eefa; }
.tone-wte .wmap .mk.is-pending .dot { fill: #9db4cc; }
.tone-wte .wmap-crumbs button { color: #1a62a8; }
.tone-wte .wmap-hint { background: rgba(15, 63, 115, .35); }
.tone-wte .wmap-list button:hover, .tone-wte .wmap-list button:focus-visible, .tone-wte .wmap-results button:hover, .tone-wte .wmap-zoom button:hover { background: #e2eefa; }
.tone-wte .wmap-profile { background: #1a62a8; border-color: #1a62a8; }
