/* ClimatCheck climate dashboard (2026-11-15, after globalnaturewatch.org;
   rebranded the same day, owner « rebrand as full stack developer »): the
   same look as the about page — dark head with the brand stripe, chips for
   the territories, tabs with line icons, figure tiles, white cards, charts
   with a hover tooltip and a table view. */
.gcd { --gcd-ink: #2c2b47; --gcd-text: #3b3a55; --gcd-mute: #6b6a80; --gcd-line: #e8e7ef; --gcd-sand: #f6f5f0;
  --gcd-loss: #c2417a; --gcd-loss-hot: #8f1d52; --gcd-wet: #2b7bb9; --gcd-dry: #d97706; --gcd-warm: #c2412d; --gcd-green: #2f7d5b;
  --gcd-title: var(--g2-title, "Draft Natural", "Barlow", sans-serif);
  max-width: 1180px; margin: 0 auto 2.5rem; color: var(--gcd-ink); }
.gcd[data-loading] { min-height: 60vh; }
.gcd-i { width: 1.15em; height: 1.15em; flex: none; }

/* Head */
.gcd-head { position: relative; margin: 0; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #3c3a68 0%, #2c2b47 55%, #23223a 100%); color: #fff; }
.gcd-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, #eca327 0 25%, #2b7bb9 25% 50%, #2f7d5b 50% 75%, #c2417a 75%); }
.gcd-head__in { padding: 1.6rem 1.8rem 1.1rem; }
.gcd-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.gcd-kicker { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .1);
  color: #e7e6f5; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gcd-upd { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: #b9b8d3; font-size: .82rem; }
.gcd-title { margin: .9rem 0 1rem; color: #fff; font: 800 clamp(1.6rem, 3.4vw, 2.4rem)/1.15 var(--gcd-title); }
.gcd-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.gcd-chips button { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem .5rem .7rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px;
  background: rgba(255, 255, 255, .06); color: #e7e6f5; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.gcd-chips button:hover, .gcd-chips button:focus-visible { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.gcd-chips button span { display: flex; flex-direction: column; line-height: 1.15; }
.gcd-chips b { font-size: 1rem; }
.gcd-chips small { color: #b9b8d3; font-size: .74rem; }
.gcd-chips button[aria-pressed="true"] { background: #eca327; border-color: #eca327; color: var(--gcd-ink); }
.gcd-chips button[aria-pressed="true"] small { color: #4a3a12; }
.gcd-lead { max-width: 54rem; margin: 1rem 0 0; color: #dcdbee; font-size: 1.05rem; line-height: 1.6; }
.gcd-lead b { color: #fff; }
.gcd-tabs { display: flex; gap: .3rem; padding: 0 1.4rem .9rem; overflow-x: auto; scrollbar-width: none; }
.gcd-tabs::-webkit-scrollbar { display: none; }
.gcd-tabs button { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border: 0; border-radius: 999px; background: transparent;
  color: #c8c7e0; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s; }
.gcd-tabs button:hover, .gcd-tabs button:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.gcd-tabs button[aria-selected="true"] { background: #fff; color: var(--gcd-ink); }

/* Body */
.gcd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 1.3rem; margin: 1.4rem 0 0; align-items: start; }
.gcd-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gcd-card { padding: 1.15rem 1.25rem; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(44, 43, 71, .1), 0 8px 24px rgba(44, 43, 71, .05); }
.gcd-card--wide, .gcd-kpis, .gcd-src { grid-column: 1 / -1; }
.gcd-card h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .85rem; color: var(--gcd-ink); font-size: 1rem; font-weight: 800; }
.gcd-card h3 .gcd-i { width: 1.9rem; height: 1.9rem; padding: .4rem; box-sizing: border-box; border-radius: 10px; background: #f1eff8; color: #5b4a9a; }
.gcd-card p { margin: .6rem 0 0; color: var(--gcd-text); line-height: 1.55; }
.gcd-big { margin: 0 !important; color: var(--gcd-ink) !important; font: 800 2.1rem/1.1 var(--gcd-title); }
.gcd-big small { font-size: 1rem; }
.gcd-note, .gcd-empty { color: var(--gcd-mute) !important; font-size: .86rem; }

/* Figure tiles */
.gcd-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.gcd-kpi { display: flex; flex-direction: column; min-width: 0; padding: 1rem 1.05rem; border-radius: 18px; background: #fff;
  box-shadow: 0 1px 3px rgba(44, 43, 71, .1), 0 8px 24px rgba(44, 43, 71, .05); border-top: 4px solid var(--c); --c: var(--gcd-green); }
.gcd-kpi__top { display: flex; align-items: center; gap: .55rem; min-height: 2.4rem; }
.gcd-kpi__ico { flex: none; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 11px;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
.gcd-kpi__lbl { display: flex; flex-direction: column; min-width: 0; color: var(--gcd-ink); font-size: .84rem; font-weight: 800; line-height: 1.2; }
.gcd-kpi__lbl small { color: var(--gcd-mute); font-size: .74rem; font-weight: 600; }
.gcd-kpi__val { margin: .7rem 0 .45rem; color: var(--gcd-ink); font: 800 clamp(1.5rem, 2.4vw, 2rem)/1 var(--gcd-title); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gcd-kpi__val small { margin-left: .25rem; color: var(--gcd-mute); font-size: .5em; font-weight: 700; }
.gcd-chip { align-self: flex-start; padding: .2rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 80%, #000);
  font-size: .74rem; font-weight: 800; white-space: nowrap; }
.gcd-spark { width: 100%; height: 28px; margin-top: .6rem; overflow: visible; }
.gcd-spark polyline { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linejoin: round; opacity: .7; }
.gcd-spark polyline { vector-effect: non-scaling-stroke; }
.gcd-spark circle { display: none; }
.gcd-kpi__foot { margin: auto 0 0 !important; padding-top: .6rem; color: var(--gcd-mute) !important; font-size: .76rem; line-height: 1.35; }
.gcd-kpi--bad { --c: #b42318; }
.gcd-kpi--mid { --c: #c2410c; }
.gcd-kpi--ok { --c: var(--gcd-green); }
.gcd-kpi--info { --c: var(--gcd-wet); }

/* Land cover */
.gcd-cover { display: flex; align-items: center; gap: 1.4rem; }
.gcd-dl { flex: 1; min-width: 0; margin: 0; }
.gcd-dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--gcd-line); }
.gcd-dl div:last-child { border-bottom: 0; }
.gcd-dl dt { color: var(--gcd-text); font-size: .9rem; }
.gcd-dl dd { margin: 0; color: var(--gcd-ink); font-weight: 800; font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gcd-dl dd small { color: var(--gcd-mute); font-size: .75rem; font-weight: 700; }
.gcd-carbon { margin-top: .2rem !important; }
.gcd-chip--green { --c: var(--gcd-green); display: inline-block; margin-top: .2rem; }

/* Charts */
.gcd-chart { display: block; width: 100%; height: auto; }
.gcd-grid { stroke: #efeef4; }
.gcd-zero { stroke: #b9b8cc; }
.gcd-ref { stroke: #b42318; stroke-dasharray: 5 4; }
.gcd-axis { fill: #7a7990; font-size: 11px; }
.gcd-axis--ref { fill: #b42318; font-weight: 700; }
.gcd-axis--val { fill: var(--gcd-ink); font-weight: 800; font-size: 12px; }
.gcd-bar { fill: var(--gcd-loss); opacity: .55; }
.gcd-bar--hot { fill: var(--gcd-loss-hot); opacity: 1; }
.gcd-bar--wet { fill: var(--gcd-wet); opacity: 1; }
.gcd-bar--dry { fill: var(--gcd-dry); opacity: 1; }
.gcd-bar--warm { fill: var(--gcd-warm); opacity: 1; }
.gcd-bar--cool { fill: var(--gcd-wet); opacity: 1; }
.gcd-hit { fill: transparent; cursor: crosshair; }
.gcd-hit:hover { fill: rgba(44, 43, 71, .05); }
.gcd-line { fill: none; stroke: var(--gcd-wet); stroke-width: 2; stroke-linejoin: round; }
.gcd-area { fill: color-mix(in srgb, var(--gcd-wet) 10%, transparent); stroke: none; }
.gcd-dot { fill: var(--gcd-wet); stroke: #fff; stroke-width: 2; }
.gcd-tip { position: fixed; z-index: 1000; padding: .4rem .6rem; border-radius: 8px; background: var(--gcd-ink, #2c2b47); color: #fff; font-size: .82rem; font-weight: 700;
  pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); white-space: nowrap; }
.gcd-tbl { margin-top: .6rem; padding: 0; border: 0; background: none; }
.gcd-tbl summary { padding: 0; border: 0; background: none; }
.gcd-tbl summary { display: inline-flex; align-items: center; gap: .4rem; color: var(--gcd-mute); font-size: .82rem; font-weight: 700; cursor: pointer; list-style: none; }
.gcd-tbl summary::-webkit-details-marker { display: none; }
.gcd-tbl summary:hover { color: var(--gcd-ink); }
.gcd-tbl table { width: 100%; margin-top: .5rem; border-collapse: collapse; font-size: .85rem; }
.gcd-tbl th, .gcd-tbl td { padding: .3rem .5rem; border-bottom: 1px solid var(--gcd-line); text-align: left; }
.gcd-tbl td:last-child, .gcd-tbl th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.gcd-tbl tbody { display: block; max-height: 14rem; overflow-y: auto; }
.gcd-tbl thead, .gcd-tbl tbody tr { display: table; width: 100%; table-layout: fixed; }
.gcd-split { display: flex; align-items: center; gap: 1.1rem; }
.gcd-donut { flex: none; width: 124px; height: 124px; }
.gcd-donut__bg { fill: none; stroke: #efeef4; stroke-width: 16; }
.gcd-donut__fg { fill: none; stroke: var(--gcd-green); stroke-width: 16; stroke-linecap: round; }
.gcd-donut__txt { fill: var(--gcd-ink); font: 800 24px var(--gcd-title); }
.gcd-hbars { margin: 0; padding: 0; list-style: none; }
.gcd-hbars li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .35rem 0; font-size: .88rem; color: var(--gcd-text); }
.gcd-hbars i { height: .6rem; border-radius: 0 4px 4px 0; background: var(--gcd-loss); }
.gcd-hbars b { color: var(--gcd-ink); font-size: .85rem; font-variant-numeric: tabular-nums; }
.gcd-list { margin: 0; padding: 0; list-style: none; }
.gcd-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--gcd-line); font-size: .92rem; }
.gcd-list li:first-child { border-top: 0; }
.gcd-list li span { display: inline-flex; align-items: center; gap: .45rem; }
.gcd-list li .gcd-i { color: #e07a1f; }
.gcd-list time { flex: none; color: var(--gcd-mute); }
.gcd-flux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.gcd-flux div { display: flex; flex-direction: column; gap: .25rem; padding: .85rem; border-radius: 14px; background: var(--gcd-sand); }
.gcd-flux span { color: var(--gcd-mute); font-size: .8rem; font-weight: 700; }
.gcd-flux b { font: 800 1.4rem/1.1 var(--gcd-title); }
.gcd-flux .is-em { color: #b42318; }
.gcd-flux .is-rem { color: var(--gcd-green); }
.gcd-src { margin: .2rem 0 0; color: var(--gcd-mute); font-size: .8rem; line-height: 1.5; }

/* Map */
.gcd-mapcol { position: sticky; top: 5rem; }
.gcd-map { height: 70vh; min-height: 420px; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgba(44, 43, 71, .1), 0 8px 24px rgba(44, 43, 71, .05); }
.gcd-maplegend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .6rem 0 0; padding: 0; list-style: none; color: var(--gcd-mute); font-size: .8rem; }
.gcd-maplegend li { display: inline-flex; align-items: center; gap: .4rem; }
.gcd-maplegend i { width: .85rem; height: .85rem; border-radius: 3px; }
.gcd-maplegend .is-loss { background: #e5338c; }
.gcd-maplegend .is-limit { border: 2px dashed #2c2b47; border-radius: 2px; }
.gcd-maplegend .is-fire { border-radius: 50%; background: #e07a1f; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e07a1f; }
.gcd-maplegend .is-flash { border-radius: 50%; background: #7a4fb4; }

@media (max-width: 960px) {
  .gcd-body { grid-template-columns: minmax(0, 1fr); }
  .gcd-mapcol { position: static; order: -1; }
  .gcd-map { height: 46vh; min-height: 280px; }
  .gcd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gcd-head { border-radius: 18px; }
  .gcd-head__in { padding: 1.2rem 1rem .9rem; }
  .gcd-tabs { padding: 0 .7rem .8rem; }
  .gcd-tabs button { padding: .5rem .75rem; font-size: .85rem; }
  .gcd-chips button { padding: .4rem .7rem .4rem .55rem; }
  .gcd-main { grid-template-columns: minmax(0, 1fr); }
  .gcd-kpi strong { font-size: 1.5rem; }
  .gcd-hbars li { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) auto; }
  .gcd-flux { grid-template-columns: minmax(0, 1fr); }
  .gcd-split, .gcd-cover { flex-direction: column; align-items: stretch; }
  .gcd-cover .gcd-donut { align-self: center; }
  .gcd-kpi__val { font-size: 1.45rem; }
}
/* Nothing widens the page on a phone. */
.gcd, .gcd-head, .gcd-body, .gcd-main { min-width: 0; max-width: 100%; }
.gcd > .gcd-head { width: 100%; max-width: none; box-sizing: border-box; }
/* Inside the « Forêts et sol » tab of /climate-innovation (narrower column): the map on top, the cards below. */
.cw-dash .gcd { max-width: none; }
.cw-dash .gcd-body { grid-template-columns: minmax(0, 1fr); }
.cw-dash .gcd-mapcol { position: static; order: -1; }
.cw-dash .gcd-map { height: 420px; min-height: 0; }
