/* ==========================================================================
   Aquecimento.Global — "Editorial Intelligence"
   Light, high-contrast climate newsroom. Deep-green ink on warm paper,
   one vivid green accent, serif display headlines, data-forward.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* Editorial palette */
    --paper:      #f6f4ec;   /* warm off-white base */
    --paper-2:    #efece1;   /* panel / alt section */
    --card:       #ffffff;   /* card surface */
    --ink:        #11251a;   /* deep green-black text */
    --ink-soft:   #50615a;   /* secondary text */
    --ink-faint:  #8a978f;   /* muted */
    --green:      #0f7a3d;   /* primary editorial green */
    --green-bright:#16b85c;  /* vivid accent (links/highlights) */
    --green-deep: #0a3f24;   /* dark green sections */
    --lime:       #b6e021;   /* energetic highlight, used sparingly */
    --line:       #e2ddcf;   /* hairline borders */
    --line-strong:#cfc8b5;
    --danger:     #c0392b;   /* breaking / negative */

    /* Legacy variable names kept so un-rewritten pages stay coherent */
    --bg-color: var(--paper);
    --bg-2: var(--paper-2);
    --text-primary: var(--ink);
    --text-main: var(--ink);
    --text-secondary: var(--ink-soft);
    --text-gray: var(--ink-faint);
    --accent-green: var(--green);
    --accent-lime: var(--lime);
    --accent-hover: var(--green-bright);
    --accent-deep: var(--green-deep);
    --glass-bg: var(--card);
    --glass-border: var(--line);

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Archivo', system-ui, -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;

    --maxw: 1280px;
    --shadow: 0 1px 2px rgba(17,37,26,.04), 0 8px 28px rgba(17,37,26,.06);
    --shadow-lift: 0 6px 16px rgba(17,37,26,.10), 0 18px 48px rgba(17,37,26,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--paper);
    /* extremely subtle paper texture via layered radial tints */
    background-image:
        radial-gradient(ellipse 60% 40% at 12% -5%, rgba(22,184,92,.06), transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(15,122,61,.05), transparent 55%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--green); }

/* thin living-green rule across the very top */
body::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
    background: linear-gradient(90deg, var(--green-deep), var(--green), var(--lime), var(--green-bright));
}

/* ----------------------------------------------------------- Header / nav */
.glass-header, .site-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: .85rem 5%;
    background: rgba(246, 244, 236, .88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.logo h1, .logo .logo-mark { display: inline-block; font-family: var(--serif); font-weight: 900; font-size: 1.5rem; letter-spacing: -.5px; color: var(--ink); }
.logo a { color: var(--ink); text-decoration: none; }
.logo span { color: var(--green); }

nav ul { list-style: none; display: flex; gap: 1.6rem; align-items: center; }
nav a {
    color: var(--ink); text-decoration: none; font-weight: 600;
    font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
    transition: color .2s ease;
}
nav a:hover { color: var(--green-bright); }

.nav-donate {
    color: #fff !important; background: var(--green);
    padding: 7px 16px !important; border-radius: 999px; letter-spacing: .04em;
    transition: background .2s ease, transform .2s ease;
}
.nav-donate:hover { background: var(--green-deep); transform: translateY(-1px); color:#fff !important; }

/* Hamburger toggle — hidden on desktop, shown below the nav-collapse breakpoint */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--ink);
    margin: 0 auto;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* language dropdown (markup-compatible w/ base.html) */
.lang-dropdown-content { background-color: #fff !important; border: 1px solid var(--line) !important; }
.lang-dropdown-content a { color: var(--ink) !important; }
.lang-dropdown-content a:hover { background-color: var(--paper-2) !important; }
.lang-dropbtn { color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

/* --------------------------------------------------------------- Masthead */
.masthead {
    max-width: var(--maxw); margin: 0 auto; padding: 2.4rem 5% 1.2rem;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.masthead .mast-title {
    font-family: var(--serif); font-weight: 900; line-height: .98;
    font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -.02em; color: var(--ink); max-width: 16ch;
}
.masthead .mast-title em { color: var(--green); font-style: italic; }
.masthead .mast-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 34ch; }

/* legacy .hero-section (other pages) */
.hero-section { padding: 3rem 5% 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.hero-section h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem,4.5vw,3.2rem); line-height: 1.02; color: var(--ink); }
.hero-section p { font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; margin-top: .6rem; }

/* ------------------------------------------------------------ Data ticker */
.data-bar {
    max-width: var(--maxw); margin: 0 auto; padding: 0 5%;
}
.data-strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: var(--card); box-shadow: var(--shadow); margin-top: 1.4rem;
}
.data-cell { padding: 1.1rem 1.4rem; display: flex; flex-direction: column; gap: .25rem; border-right: 1px solid var(--line); }
.data-cell:last-child { border-right: 0; }
.data-cell .dc-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); font-weight: 700; }
.data-cell .dc-val { font-family: var(--mono); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1; }
.data-cell .dc-val .unit { font-size: .9rem; color: var(--ink-soft); }
.data-cell.temp .dc-val { color: var(--danger); }
.data-bar .dc-source { font-size: .72rem; color: var(--ink-faint); text-align: right; margin-top: .5rem; }
.live-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background: var(--green-bright); margin-right:5px; animation: pulse 2s infinite; }

/* ----------------------------------------------------------- Layout shell */
.wire { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 5% 1rem; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 2.6rem; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1.6rem; }
.sec-head h2 { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.sec-head .badge-info { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* --------------------------------------------------------------- Lead row */
.lead { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.6rem; margin-bottom: 2.4rem; }
.lead-main {
    position: relative; border-radius: 16px; overflow: hidden; min-height: 430px;
    background: var(--green-deep); box-shadow: var(--shadow); display: flex; align-items: flex-end;
}
.lead-main .ph { position:absolute; inset:0; background-size: cover; background-position: center; }
.lead-main .ph img, .lead-sub .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-main .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,28,16,.92) 12%, rgba(8,28,16,.30) 55%, rgba(8,28,16,.05)); }
.lead-main .lead-body { position: relative; z-index: 2; padding: 2rem; }
.lead-main h3 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.08; color: #fff; margin: .5rem 0 .7rem; text-wrap: balance; }
.lead-main a.more { color: #eafff2; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.lead-main a.more:hover { border-color: #fff; }

.lead-side { display: flex; flex-direction: column; gap: 1.2rem; }
.lead-sub {
    position: relative; border-radius: 14px; overflow: hidden; flex: 1; min-height: 200px;
    display: flex; align-items: flex-end; background: var(--green-deep); box-shadow: var(--shadow);
}
.lead-sub .ph { position:absolute; inset:0; background-size: cover; background-position: center; }
.lead-sub .scrim { position:absolute; inset:0; background: linear-gradient(to top, rgba(8,28,16,.92), rgba(8,28,16,.15) 70%); }
.lead-sub .lead-body { position: relative; z-index: 2; padding: 1.2rem; }
.lead-sub h4 { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.lead-sub h4 a { color: #fff; text-decoration: none; }
.lead-sub h4 a:hover { color: var(--lime); }

.kicker { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--lime); }
.kicker.dark { color: var(--green); }
.meta { font-size: .72rem; color: rgba(255,255,255,.8); font-family: var(--mono); }
.tag-top { display:inline-block; background: var(--danger); color:#fff; font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; padding:3px 9px; border-radius:999px; }

/* ------------------------------------------------------------- Story grid */
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.6rem; }
.story {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.story:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.story .img { height: 184px; background-size: cover; background-position: center; background-color: var(--paper-2); border-bottom: 1px solid var(--line); }
.story .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story .img.empty { display:flex; align-items:center; justify-content:center; color: var(--ink-faint); background: linear-gradient(135deg, var(--paper-2), #e4eee4); }
.story .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.story .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; }
.story .src { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--green); }
.story .date { font-size: .7rem; color: var(--ink-faint); font-family: var(--mono); }
.story h3 { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; line-height: 1.22; color: var(--ink); margin-bottom: .5rem; text-wrap: balance; }
.story h3 a { color: inherit; text-decoration: none; }
.story h3 a:hover { color: var(--green); }
.story .excerpt { font-size: .9rem; color: var(--ink-soft); flex-grow: 1; margin-bottom: 1rem; }
.story .more { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--green); text-decoration: none; border-top: 1px solid var(--line); padding-top: .8rem; display:inline-flex; align-items:center; gap:.4rem; }
.story .more:hover { color: var(--green-deep); gap: .6rem; }

/* ---------------------------------------------------------------- Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.6rem; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow); }
.widget.accent { border: 1px solid var(--green); }
.widget h3 { font-family: var(--serif); font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-bottom: 1rem; }
.widget .w-sub { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }

.support-btn { display:flex; align-items:center; justify-content:center; gap:.5rem; width:100%; padding: 12px; border-radius: 10px; font-weight: 800; text-decoration: none; margin-bottom: .7rem; font-size:.9rem; transition: transform .15s ease, filter .15s ease; }
.support-btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.support-btn.coffee { background: #ffdd00; color: #1a1a1a; }
.support-btn.stripe { background: var(--green-deep); color: #fff; }
.support-note { font-size: .72rem; color: var(--ink-faint); text-align:center; margin-top:.2rem; }

.nl-input { width:100%; padding: 11px 13px; border:1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); outline:none; margin-bottom:.7rem; font-family: var(--sans); }
.nl-input:focus { border-color: var(--green); }
.btn-primary { background: var(--green); color:#fff; font-weight:800; border:0; padding: 12px; border-radius: 10px; width:100%; cursor:pointer; font-family: var(--sans); transition: background .2s ease; }
.btn-primary:hover { background: var(--green-deep); }

.trending h3 { border-bottom: 2px solid var(--green); padding-bottom: .5rem; display:block; }
.trending ol { list-style: none; counter-reset: t; display:flex; flex-direction:column; gap: .9rem; margin:0; }
.trending li { counter-increment: t; display:flex; gap:.7rem; align-items:flex-start; }
.trending li::before { content: counter(t); font-family: var(--serif); font-weight: 900; font-size: 1.3rem; color: var(--green); line-height: 1; min-width: 1.2rem; }
.trending li a { color: var(--ink); text-decoration:none; font-size: .9rem; font-weight: 600; line-height: 1.32; }
.trending li a:hover { color: var(--green); }

/* ------------------------------------------------------ Breaking / relief */
.breaking {
    max-width: var(--maxw); margin: 1.4rem auto 0; padding: 0 5%;
}
.breaking-inner {
    display:flex; align-items:center; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(120deg, #fff, #fff6f5);
    border: 1px solid #f0c9c4; border-left: 5px solid var(--danger);
    border-radius: 12px; padding: .9rem 1.2rem; box-shadow: var(--shadow);
}
.breaking-inner .flag { background: var(--danger); color:#fff; font-weight:800; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; padding: 4px 10px; border-radius:999px; }
.breaking-inner a.headline { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1rem; }
.breaking-inner a.headline:hover { color: var(--danger); }
.breaking-inner .help-link { margin-left:auto; color: var(--green-deep); font-weight: 800; text-decoration: none; font-size: .85rem; white-space:nowrap; }
.breaking-inner .help-link:hover { text-decoration: underline; }

.help-callout { background: linear-gradient(135deg, var(--green-deep), #0c5a31); color: #eafff2; border-radius: 16px; padding: 1.6rem; }
.help-callout h3 { font-family: var(--serif); color:#fff; font-size: 1.25rem; margin-bottom: .4rem; }
.help-callout p { color: rgba(255,255,255,.85); font-size: .85rem; margin-bottom: 1rem; }
.help-callout a.org { display:flex; justify-content:space-between; align-items:center; padding:.7rem .9rem; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius: 10px; color:#fff; text-decoration:none; font-weight:600; font-size:.9rem; margin-bottom:.6rem; transition: background .15s ease; }
.help-callout a.org:hover { background: rgba(255,255,255,.18); }
.help-callout a.org::after { content: "↗"; opacity:.7; }

/* ------------------------------------------------------------- Newsletter */
.newsletter-section { padding: 3.5rem 5%; }
.newsletter-box {
    max-width: 820px; margin: 0 auto; text-align: center;
    background: linear-gradient(135deg, var(--green-deep), #0c6536);
    border-radius: 22px; padding: 3rem 2rem; color: #eafff2;
    box-shadow: var(--shadow-lift);
}
.newsletter-box h3 { font-family: var(--serif); font-weight: 800; font-size: 2rem; margin-bottom: .5rem; color:#fff; }
.newsletter-box p { color: rgba(255,255,255,.82); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: .6rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 10px; border: 0; background: rgba(255,255,255,.95); color: var(--ink); font-family: var(--sans); }
.newsletter-form button { background: var(--lime); color: var(--green-deep); font-weight: 800; border: 0; padding: 14px 28px; border-radius: 10px; cursor: pointer; font-family: var(--sans); transition: transform .2s ease; }
.newsletter-form button:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------- Footer  */
footer { text-align: center; padding: 2.6rem 2rem; font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); background: var(--paper-2); }
footer a { color: var(--ink-soft) !important; text-decoration: none; }
footer a:hover { color: var(--green) !important; }

/* ------------------------------------------------------------- Article pg */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 2.4rem 5% 1rem; }
.article-hero { width: 100%; height: 440px; border-radius: 16px; background-size: cover; background-position: center; box-shadow: var(--shadow); margin-bottom: 1.6rem; background-color: var(--paper-2); }
.article-kicker { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.article-title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.06; color: var(--ink); margin: .5rem 0 .8rem; text-wrap: balance; }
.article-meta { display:flex; gap: 1rem; align-items:center; flex-wrap:wrap; color: var(--ink-faint); font-size: .82rem; font-family: var(--mono); border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.6rem; }
.article-meta .trust { color: var(--green); font-weight: 600; }
.article-content { font-size: 1.12rem; line-height: 1.8; color: #1c2c24; }
.article-content h3 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 1.8rem 0 .7rem; }
.article-content p { margin-bottom: 1.2rem; }
.article-content a { color: var(--green); }
.article-back { display:inline-block; margin: 1.5rem 0; color: var(--green); font-weight: 700; text-decoration: none; }

/* ----------------------------------------------------------------- Charts */
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow); margin-bottom: 1.6rem; }
.chart-card h2 { font-family: var(--serif); color: var(--ink); }

/* --------------------------------------------------------------- Utilities */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.25); } }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .lead { grid-template-columns: 1fr; }
    .lead-main { min-height: 320px; }
    .sidebar { flex-direction: row; flex-wrap: wrap; }
    .sidebar .widget { flex: 1; min-width: 240px; }
}

/* Collapse the header nav into a hamburger-triggered dropdown panel below
   this width — the nav's 6 items + language switcher don't fit a phone or
   small-tablet viewport as a single flex row (see the mobile-nav-overflow
   audit finding: the row was measured at 620px wide inside a 375px
   viewport with no wrap, forcing the whole page to render zoomed out). */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    nav {
        position: static;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lift);
    }
    nav#site-nav.nav-open ul { display: flex; }
    nav ul li { width: 100%; }
    nav ul li a {
        display: block;
        padding: .9rem 5%;
        border-bottom: 1px solid var(--line);
    }
    nav ul li a.nav-donate {
        margin: .7rem 5%;
        width: auto;
        text-align: center;
        border-bottom: none;
    }
    nav ul li.lang-selector { padding: .5rem 5% .9rem; }
    .lang-dropbtn { padding: .5rem 0; }
}

@media (max-width: 640px) {
    .stories { grid-template-columns: 1fr; }
    .data-strip { grid-template-columns: 1fr; }
    .data-cell { border-right: 0; border-bottom: 1px solid var(--line); }
    .data-cell:last-child { border-bottom: 0; }
    .masthead .mast-title { font-size: 2.1rem; }
}

/* ============================================================
   Phase 2 SEO — AI badge, pillar page, live data indicators
   ============================================================ */

/* AI-moderated badge near the article headline (links to /sobre). */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin: .1rem 0 .9rem;
    padding: .28em .7em;
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--green-deep, #0f7a3d);
    background: rgba(22, 184, 92, .10);
    border: 1px solid rgba(22, 184, 92, .30);
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.ai-badge:hover { background: rgba(22, 184, 92, .18); border-color: rgba(22, 184, 92, .5); }
.ai-badge i { font-size: .82em; }

/* Live climate indicators (server-rendered, on /data and the pillar). */
.live-indicators { padding-top: .4rem; }
.live-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto;
    max-width: 720px;
}
.live-stat {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1.1rem 1.3rem;
    background: var(--paper-2, #f4f1ea);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green, #16b85c);
    border-radius: 12px;
}
.live-stat-num {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.05;
}
.live-stat-label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.live-stat-sub { color: var(--ink-soft); font-size: .82rem; }
.live-stat-source {
    text-align: center;
    color: var(--ink-faint);
    font-size: .76rem;
    margin-top: .9rem;
}

/* Pillar page ("What is global warming?"). */
.pillar .pillar-lead p { font-size: 1.12rem; line-height: 1.7; color: var(--ink); }
.pillar-section { margin: 2.2rem 0; }
.pillar-section h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: .6rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--line);
}
.pillar-section ul { padding-left: 1.2rem; line-height: 1.7; }
.pillar-section li { margin-bottom: .35rem; }
.pillar-data {
    margin: 1.8rem 0;
    padding: 1.4rem;
    background: var(--paper-2, #f4f1ea);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.pillar-data h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-bottom: .3rem; }
.pillar-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.pillar-stat {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .9rem 1.1rem;
    background: var(--paper, #fff);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.pillar-stat-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--green-deep, #0f7a3d); }
.pillar-stat-label { color: var(--ink-soft); font-size: .85rem; }
.pillar-cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.pillar-btn {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .6em 1.1em;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 999px;
    background: var(--green, #16b85c);
    color: #fff;
    border: 1px solid var(--green, #16b85c);
    transition: filter .15s ease;
}
.pillar-btn:hover { filter: brightness(1.05); }
.pillar-btn.ghost { background: transparent; color: var(--green-deep, #0f7a3d); }
.pillar-table-wrap { overflow-x: auto; }
.pillar-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pillar-table th, .pillar-table td { text-align: left; padding: .5em .8em; border-bottom: 1px solid var(--line); }
.pillar-table th { color: var(--ink-soft); font-weight: 600; }
.pillar-source { color: var(--ink-faint); font-size: .78rem; margin-top: .6rem; }
.pillar-faq-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .5rem .9rem;
    margin-bottom: .6rem;
    background: var(--paper, #fff);
}
.pillar-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
}
.pillar-faq-item summary::-webkit-details-marker { display: none; }
.pillar-faq-item summary::before { content: "＋"; color: var(--green, #16b85c); margin-right: .5em; font-weight: 700; }
.pillar-faq-item[open] summary::before { content: "－"; }
.pillar-faq-item p { margin: .6rem 0 .2rem; line-height: 1.65; color: var(--ink-soft); }

/* ============================================================
   Phase 3b — data-page HTML table fallback (crawlable, no-JS)
   ============================================================ */
.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;
}
.data-table-fallback { margin-top: 1rem; }
.data-table-fallback > summary {
    cursor: pointer;
    font-size: .86rem;
    font-weight: 600;
    color: var(--green-deep, #0f7a3d);
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: .4em;
}
.data-table-fallback > summary::-webkit-details-marker { display: none; }
.data-table-fallback > summary::before { content: "▸"; transition: transform .15s ease; }
.data-table-fallback[open] > summary::before { content: "▾"; }
.data-table-wrap { max-height: 320px; overflow-y: auto; margin-top: .8rem; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table th, .data-table td { text-align: left; padding: .4em .8em; border-bottom: 1px solid var(--line); }
.data-table thead th {
    position: sticky; top: 0;
    background: var(--paper-2, #f4f1ea);
    color: var(--ink-soft);
    font-weight: 600;
}
.data-table tbody tr:hover { background: var(--paper-2, #f4f1ea); }
.data-download {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin-top: .8rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--green-deep, #0f7a3d);
    text-decoration: none;
}
.data-download:hover { text-decoration: underline; }

/* ============================================================
   Phase 3c — article H2 (matches former H3 visual), pillar TOC
   ============================================================ */
/* Promoted article section headings: keep the exact former H3 look. */
.article-content h2 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 1.8rem 0 .7rem; }

/* Pillar table of contents. */
.pillar-toc {
    margin: 1.6rem 0;
    padding: 1rem 1.2rem;
    background: var(--paper-2, #f4f1ea);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.pillar-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.pillar-toc li { position: relative; }
.pillar-toc a { color: var(--green-deep, #0f7a3d); text-decoration: none; font-weight: 600; font-size: .92rem; }
.pillar-toc a:hover { text-decoration: underline; }
/* Offset anchor jumps so headings aren't hidden under the sticky header. */
.pillar-section h2[id], .pillar-faq h2[id] { scroll-margin-top: 90px; }
