/* ==========================================================================
   EU Power Data — one style sheet for the whole site
   v2.41.0 — 2026-11-30: the Pro Analysis (/analysis): its controls, charts, heat map, tables and lock.
   v2.40.0 — 2026-11-30: Pricing (the Pro card in blocks, what only the Business has, the table of the plans); the weekly report
            and the links for Excel and Google Sheets on /account.
   v2.39.0 — 2026-11-30: the space under the titles of the two columns at the end of the pages (a rule above took it away).
   v2.38.0 — 2026-11-30: the tag «PRO», light and with a padlock drawn in line, in place of the dark pill.
   v2.37.0 — 2026-11-30: the end of the country pages (facts, the site's pages and the other countries as buttons).
   v2.36.0 — 2026-11-30: the text and the questions of each page in one card of two columns.
   v2.35.0 — 2026-11-30: the contact page (/contact): the form in a card in the middle, the errors next to each field, the thank-you.
   v2.34.0 — 2026-11-26: a lone action at the end of a card or a panel is a button in the middle; the buttons of Pricing of one width.
   v2.33.0 — 2026-11-26: the text of each page under what it shows (what it shows, its questions, the links to the countries).
   v2.32.0 — 2026-11-26: the form of the Custom plan on Pricing.
   v2.31.0 — 2026-11-26: «Sign in» in the header; the links between the pages to sign in and to create an account.
   v2.30.0 — 2026-11-26: the legal sentence of Pricing at the end of the page, in small print.
   v2.29.0 — 2026-11-26: changing plans on /account (the plans to choose, the change to confirm, the change waiting), alerts paused past the limit.
   v2.28.0 — 2026-11-26: the page /account (its cards, what the plan includes) and the button of the account in the header.
   v2.27.0 — 2026-11-26: on a short page the footer sits at the bottom of the window (the body a column, the main taking the room left).
   v2.26.0 — 2026-11-26: the menu in Spanish from 1366 to 1439 px with 6 px on each side, so it stays in the bar with a scrollbar always shown (15 to 17 px).
   v2.25.0 — 2026-11-25: «Pricing» at the end of the main menu: from 1366 to 1439 px the links 7 px on each side.
   v2.24.0 — 2026-11-25: the source at the end of the notes of the Infrastructure, a link.
   v2.23.0 — 2026-11-25: the exports of the whole tables for Pro (their row under each table, the small «Pro» badge, the card
            of the lock).
   v2.22.0 — 2026-11-25: the page Price History (its zones, the note of the sources, the controls and exports of Pro, the
            lock across the card).
   v2.21.0 — 2026-11-25: room between the longest item of a select and its chevron (the room on the chevron's side, the
            field as wide as before); the title and the sentence of /sign-in in the middle; the records of the Insights (their
            filters).
   v2.20.0 — 2026-11-24: the page /sign-in and the language of the alert e-mails in the card of the account; the selects of
            the site (eew-select.js).
   v2.19.0 — 2026-11-24: the filters of the Forward Curves' term structure in the middle.
   v2.18.0 — round of 2026-11-24 (visual): the calendar of the site; the compare card of the Radar in one line; the
            titles of the Forward Curves, the Weekly Market Digest and the Price Alerts in the middle; a label's capsules
            in a set of their own; a line of space in the Carbon Intensity Tracker.
   v2.17.0 — 2026-11-24: the page /pricing (its four plans and the period of Pro) and the buttons of the subscription in
            the card of the account.
   v2.16.0 — 2026-11-24: the card «E-mail Alerts» of the Price Alerts page (eew-accounts.js): the account's head and foot,
            the alerts with the state of their zone's prices, and the «Pro» lock (a blurred preview under a card).
   v2.15.0 — 2026-11-24: a card of charts lower than its neighbour (the Radar's forecast error and balancing price at 1024
            and 1280 px) stretches its chart down to its foot, with no blank under it; one card under the other is unchanged.
   v2.14.0 — round of 2026-11-24: the digits of the legend in the PNG of the map without the fixed width (html2canvas left a gap after
            the number); out went --accent-amber, which nothing used.
   v2.13.0 — round of 2026-11-24: --eewc-mix-pumped, the colour of the pumped-storage slice of the mix: navy #0E2A4F
            in the light theme, periwinkle #A9ACF0 in the dark one (far from the hydro blue and every other colour of the mix).
   v2.12.0 — round of 2026-11-24 (decisions): the shorter card of a row — an empty state alone in the middle of the
            card, up and down; in a card of figures (installed capacity and progress of a country page, the sectors and
            Energy Communities of the Transition) the content at the top and its last block (the progress bar, the line,
            the note) at the foot; the strips of four indicators of the Auction Tracker, the Forward Curves, the Grid
            Monitor and the Data Centers two and two up to 849 px and four in a row from 850, as on the country pages;
            the note under a card's table hidden while it is empty (the Spark Spread's comes with its data).
   v2.11.0 — round of 2026-11-24: the language before the first paint — the language button shows the visitor's language
            from data-eew-lang before eew-core.js runs, and while eew-i18n-wait is on (a language other than English,
            1 s at most) the content, the menu and the footer stay invisible.
   v2.10.0 — round of 2026-11-23: under a finger, the links inside a line of text (a country in a table, the link at the
            foot of a card or of an empty state) reach 44 px without moving the layout, and the map's layer buttons are
            never narrower than a control, nor the notes of the Infrastructure that open on a tap (they were 42 px); the indicators inside a card centred, as the strips (on a phone, one left alone in its row takes the row); «Power Data» of the logo
            at its size between 480 and 768 px (it was 10.5 px); the four indicators of a country page four in a row or
            two and two, never three and one; the halo of the pulsing «live» dot of the Overview in the green of the
            design (it was the old green); the unused colour of gas in the old part (--chart-gas, orange) and the rules
            of the currency buttons, which nothing draws since eew-analytics.js v3.11, are gone.
   v2.9.0 — the Radar page (2026-11-20): its row of countries, strip, four cards with the title, the subtitle and the buttons
            in the middle, and the comparison of two countries (section 10); the navigation folds into the menu button
            below 1366 px (it was 1280 px), since with the Radar entry it does not fit at 1280 px in Spanish.
   v2.8.0 — after the review of the site on Cloudflare (2026-11-19): on a phone, the lists of the text of the Methodology
            centred too (the list of sources), with the marker next to the text; the index and the tables unchanged.
   v2.7.0 — short round of 2026-11-19 (on 2.6.0, never sent): in Policy and Targets, with the two halves side by side,
            both halves share the rows of the grid, so the two numbers and the two bars are always at the same height
            (a label that needs two lines grows upwards); the sectoral shares stay under both.
   v2.6.0 — corrections of 2026-11-19 (on 2.5.0, never sent): Transition, Energy Communities and Policy and Targets
            side by side and Greenhouse Gas Emissions under them, the whole width, with its figures in one line; the
            two halves of Policy and Targets side by side whenever the card is wide enough (container query), with
            the sectoral shares under them; the Electricity card centred; a centred title whose Share button would
            push it off the middle gets the button on the line below (.eewc-share-below, set by eew-tools.js); on a
            phone, the paragraphs of the Methodology centred too.
   v2.5.0 — short round of 2026-11-19: Transition, the three wide cards side by side (three in a row from
            1200 px, two from 768 px) and the sector cards centred; country pages, installed capacity and
            progress side by side; on a phone, the unit of the price of a country page under the number,
            the form of Price Alerts in full-width rows with Share beside the title, and the title, index
            and section titles of the Methodology centred.
   v2.4.0 — visual round of 2026-11-19: the navigation bar as wide as the cards, with the links in the
            middle; less round corners, from four tokens (bar 14, cards and panels 12, controls 10,
            labels 7 px); controls 36 px high with a mouse (Share, PNG, zoom and map layers 32) and
            44 px with a finger, from tokens the kept rooms are counted from too; petrol and burgundy
            in place of blue and orange; the Overview map bar as wide as its content, at the right,
            and the panels on the margin of the cards; cards of figures centred; cards of one row as
            high as each other; the index of the Methodology; the Glossary in two columns; the footer
            without underlines; «Show more» centred; sources without the look of a link.
   v2.3.0 — round of 2026-11-18: Infrastructure on a phone, the notes of the three tables cut to
            two lines (they open on a tap); Price Alerts, an alert whose condition is met
            carries a capsule and a 3 px bar in the colour of its direction.
   v2.2.0 — findings of 2026-11-17: the unit of the country panel never breaks in the
            middle; in the rankings card of the Overview the note of the time of the
            data may take two lines; the height of what a script writes kept from the
            first frame on Insights, Comparator and Auction Tracker, and the room kept
            for the table of Site Status fitted between 601 and 767 px.
   v2.1.0 — final adjustments of 2026-11-16: tables centred (headers and values)
            with the columns of running text read from the left, one language
            button, closer navigation links, number and unit of the Overview strip
            always on one line, hourly bars in two colours, and the height of what
            a script writes kept from the first frame on Site Status, Methodology
            and Glossary.
   v2.0.0 — design C ("Radar") on every page. The former eew.css (v6.2.3) and
            eew-c.css (v1.1.0) are joined here, in the same order as before, so
            the first paint waits for one file instead of two. Out went the rules
            of the former sheet that no page uses any more and every mention of
            Inter (the typefaces are Red Hat Display and Red Hat Text, served
            from /eew/fonts/ through eew-c-fonts.css).
   Part 1 — the base: reset, tokens and components as the pages still use them.
   Part 2 — design C: every rule under html.eew-c, written on top of part 1.
   ========================================================================== */

/* ============================== PART 1 — BASE ============================== */
/* ==========================================================================
   EU Power Data
   Main Stylesheet v6.2.3
   ========================================================================== */

/* ---------- CSS Variables (Light Mode Default) ---------- */
:root {
    --bg-primary: #f8f9fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5;
    --bg-card: #ffffff;
    --bg-hover: #eef1f6;

    --text-primary: #1a1d23;
    --text-secondary: #5a6170;
    --text-tertiary: #8c93a3;
    --text-inverse: #ffffff;

    --border-color: #e2e5eb;
    --border-light: #eef1f6;

    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-green: #16a34a;
    --accent-red: #dc2626;
    --accent-purple: #7c3aed;

    --chart-renewable: #16a34a;
    --chart-fossil: #6b7280;
    --chart-nuclear: #7c3aed;
    --chart-hydro: #0891b2;
    --chart-solar: #eab308;
    --chart-wind: #06b6d4;
    --chart-coal: #57534e;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --header-height: 56px;
    --max-width: 1320px;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-tertiary: #22252f;
    --bg-card: #1a1d27;
    --bg-hover: #262a36;

    --text-primary: #e8eaf0;
    --text-secondary: #9ea3b0;
    --text-tertiary: #6b7082;
    --text-inverse: #0f1117;

    --border-color: #2d3140;
    --border-light: #262a36;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: var(--accent-blue-hover); }

img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.eew-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.eew-main {
    padding-top: calc(var(--header-height) + 10px);
    padding-bottom: 36px;
}

/* ---------- Header ---------- */
.eew-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.eew-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.eew-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
    white-space: nowrap;
}

.eew-logo-icon {
    width: 28px;
    height: 28px;
    background: #003399;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Nav */
.eew-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.eew-nav a {
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.87rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s;
}

.eew-nav a:hover,
.eew-nav a.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.eew-nav a.active {
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.08);
}

/* Controls (theme + lang toggles) */
.eew-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eew-toggle-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.eew-toggle-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.eew-lang-selector {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.eew-lang-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.eew-lang-btn.active {
    background: #003399;
    color: white;
}

.eew-lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Mobile menu */
.eew-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ---------- Hero / Page Title ---------- */
.eew-hero {
    padding: 14px 0 10px;
}

.eew-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.eew-hero p {
    color: var(--text-secondary);
    font-size: 0.93rem;
}

.eew-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 0.78rem;
    margin-top: 8px;
}

.eew-updated .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
}

/* ---------- KPI Cards Row ---------- */
.eew-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.eew-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.eew-kpi-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.eew-kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.eew-kpi-change {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 4px;
}

.eew-kpi-change.positive { color: var(--accent-green); }
.eew-kpi-change.negative { color: var(--accent-red); }
.eew-kpi-change.neutral  { color: var(--text-tertiary); }

/* ---------- Cards / Panels ---------- */
.eew-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.eew-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    /* align-items: flex-start so that PNG/SHARE action buttons sit on the
       title line, not vertically centred between title and subtitle */
    align-items: flex-start;
    justify-content: space-between;
}

.eew-card-title {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--text-primary);
}

.eew-card-subtitle {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.eew-card-body {
    padding: 20px;
}

.eew-card-body.no-padding {
    padding: 0;
}

/* ---------- Grid Layouts ---------- */
.eew-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.eew-grid-map-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ---------- Price Table ---------- */
.eew-price-table {
    width: 100%;
    border-collapse: collapse;
}

.eew-price-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.eew-price-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.eew-price-table tr:last-child td {
    border-bottom: none;
}

.eew-price-table tr:hover td {
    background: var(--bg-hover);
}

.eew-country-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Center country names in all data tables */
.eew-price-table .eew-country-cell {
    justify-content: center;
}

.eew-price-table th:first-child,
.eew-price-table td:first-child {
    text-align: center;
}

.eew-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.eew-price-val {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.eew-price-high { color: var(--accent-red); }

.eew-price-low  { color: var(--accent-green); }

.eew-renewable-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eew-renewable-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.eew-renewable-bar-fill {
    height: 100%;
    background: var(--chart-renewable);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.eew-renewable-pct {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--chart-renewable);
    min-width: 40px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------- Map Container ---------- */
.eew-map-container {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-md);
    position: relative;   /* ensures Leaflet controls stay inside */
    overflow: hidden;
    background: var(--bg-tertiary);
}

/* Leaflet tooltip override */
.eew-map-tooltip {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 8px 12px !important;
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif) !important;
    font-size: 0.82rem !important;
    color: var(--text-primary) !important;
}

.eew-map-tooltip .country-name {
    font-weight: 650;
    margin-bottom: 2px;
}

.eew-map-tooltip .price-value {
    font-size: 1.05rem;
    font-weight: 700;
}

/* ---------- Chart Containers ---------- */
.eew-chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

.eew-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.eew-chart-container.tall  { height: 400px; }

/* ---------- Generation Mix Donut ---------- */
.eew-gen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.eew-gen-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.eew-gen-card h3 {
    font-size: 0.9rem;
    font-weight: 650;
    margin-bottom: 4px;
}

.eew-gen-card .ren-pct {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--chart-renewable);
    margin-bottom: 12px;
}

.eew-gen-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.eew-gen-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.eew-gen-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Loading / Empty States ---------- */
.eew-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
    font-size: 0.88rem;
}

.eew-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: eew-spin 0.7s linear infinite;
    margin-right: 10px;
}

@keyframes eew-spin {
    to { transform: rotate(360deg); }
}

.eew-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.eew-empty p { font-size: 0.88rem; }

.eew-setup-notice {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.eew-setup-notice strong {
    color: var(--accent-blue);
}

.eew-setup-notice code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* ---------- Footer ---------- */
.eew-footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: 24px;
    color: var(--text-tertiary);
    font-size: 0.78rem;
}

.eew-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.eew-footer-links {
    display: flex;
    gap: 16px;
}

.eew-footer-links a {
    color: var(--text-tertiary);
    font-size: 0.78rem;
}

.eew-footer-links a:hover {
    color: var(--text-primary);
}

.eew-footer-sources {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    max-width: 600px;
    text-align: right;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .eew-grid-map-table {
        grid-template-columns: 1fr;
    }
    .eew-map-container {
        height: 380px;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .eew-logo span { font-size: 0.75rem; }

    .eew-nav { display: none; }
    .eew-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 16px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .eew-menu-toggle { display: flex; }

    .eew-grid-2,
    .eew-grid-3 {
        grid-template-columns: 1fr;
    }

    .eew-kpi-row {
        grid-template-columns: 1fr 1fr;
    }

    .eew-hero h1 {
        font-size: 1.3rem;
    }

    /* Reduce space between menu and page title by ~1/3 on mobile */
    .eew-main {
        padding-top: calc(var(--header-height) + 6px);
    }
    .eew-hero {
        padding: 10px 0 8px;
    }

    .eew-map-container {
        height: 520px;
    }

    /* Mobile nav: tools are block items in the open vertical menu */
    .eew-nav.open .eew-mobile-tool {
        display: block;
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .eew-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .eew-footer-sources {
        text-align: center;
    }

    .eew-controls {
        gap: 4px;
    }

    .eew-lang-btn {
        padding: 5px 7px;
        font-size: 0.72rem;
    }
}

/* Data Centers filter card: on narrow screens, stack filters below title */

@media (max-width: 480px) {
    .eew-kpi-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .eew-kpi-card {
        padding: 12px 14px;
    }
    .eew-kpi-value {
        font-size: 1.1rem;
    }

    .eew-gen-grid {
        grid-template-columns: 1fr;
    }

    .eew-price-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .eew-price-table {
        min-width: 560px;
    }
    #dc-energy-table .eew-price-table {
        min-width: 780px;
    }
}

/* ---------- Utility classes ---------- */

.text-right { text-align: right; }

/* Mobile-only / desktop-only visibility helpers */
.eew-show-mobile { display: none; }
@media (max-width: 768px) {
    .eew-hide-mobile { display: none !important; }
    .eew-show-mobile { display: block; }
}

/* Show more / Show less buttons inside horizontally scrollable tables.
   The JS helper `centerShowMoreButtons` (eew-tools.js) physically relocates
   these buttons out of the .eew-price-table-wrap scroll container into a
   sibling div placed right after it, so they stay centred on the viewport
   regardless of table width or scroll position. CSS below is just the
   fallback style in case JS hasn't run yet. */
.eew-show-more-sticky {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.mt-24 { margin-top: 24px; }

.hidden { display: none !important; }

/* ---------- Live Badge ---------- */
.eew-updated .dot.live {
    background: var(--accent-green);
    animation: eew-pulse-dot 1.5s ease-in-out infinite;
}

.eew-live-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 4px;
}

@keyframes eew-pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--eewc-green, #0A7B62) 50%, transparent); }   /* the green of each theme (it was the old #16A34A) */
    50%      { opacity: 0.7; box-shadow: 0 0 0 5px color-mix(in srgb, var(--eewc-green, #0A7B62) 0%, transparent); }
}

/* ---------- Negative Price Alert Banner ---------- */
.eew-alert-negative {
    background: rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(30, 58, 95, 0.25);
    border-left: 4px solid #1e3a5f;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .eew-alert-negative {
    background: rgba(30, 58, 95, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.eew-alert-icon {
    font-size: 1.1rem;
}

.eew-neg-badge {
    display: inline-block;
    background: #1e3a5f;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

/* ---------- Clickable Price Rows ---------- */
.eew-price-row.clickable {
    cursor: pointer;
    transition: background 0.15s;
}

.eew-price-row.clickable:hover td {
    background: var(--bg-hover);
}

.eew-price-row.has-negative td:first-child {
    border-left: 3px solid #1e3a5f;
}

.eew-expand-hint {
    display: inline-block;
    color: var(--text-tertiary);
    font-size: 0.72rem;
    margin-left: 4px;
    transition: transform 0.2s;
}

/* ---------- Hourly Chart Row ---------- */
.eew-hourly-row td {
    padding: 0 !important;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.eew-hourly-chart-container {
    height: 220px;
    padding: 16px 20px;
}

.eew-hourly-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ---------- Map price label pulse (negative prices) ---------- */
@keyframes eew-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

/* ---------- Select Dropdowns ---------- */
.eew-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif);
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
    text-align: center;
    text-align-last: center;
    min-width: max-content;
}

.eew-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ---------- Text Input ---------- */
.eew-input {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif);
}

.eew-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ---------- Primary Button ---------- */
.eew-btn-primary {
    padding: 6px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: #003399;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif);
    cursor: pointer;
    transition: background 0.15s;
}

.eew-btn-primary:hover {
    background: var(--accent-blue-hover);
}

/* ---------- Export Buttons ---------- */
.eew-export-btn {
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.15s;
}

.eew-export-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.05);
}

.eew-export-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}

/* ---------- Triggered Alert Notification ---------- */
.eew-alert-triggered {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

[data-theme="dark"] .eew-alert-triggered {
    background: rgba(37, 99, 235, 0.12);
}

/* ---------- Code Block ---------- */
.eew-code-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    overflow-x: auto;
}

/* ---------- Flow map lines ---------- */

@keyframes eew-dash {
    to { stroke-dashoffset: -24; }
}

/* ---------- Tool Link Cards ---------- */

.eew-tool-link:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ---------- Leaflet overrides for clean look ---------- */
.eew-price-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-tooltip.eew-map-tooltip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px 12px;
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif);
    font-size: 0.82rem;
    color: var(--text-primary);
}

.leaflet-tooltip.eew-map-tooltip::before {
    border-top-color: var(--border-color);
}

/* Hide Leaflet zoom control on mobile — users pinch to zoom */

/* Map attribution: move to subtle position */

/* Tools dropdown menu */
/* Mobile tools: hide on desktop, show on mobile */
.eew-mobile-tool { display: none; }

@media (max-width: 768px) {
    /* On mobile the Tools dropdown is replaced by individual .eew-mobile-tool links */
    .eew-nav-dropdown { display: none !important; }
    /* Default hidden — only shown inside the open mobile menu */
    .eew-mobile-tool { display: none; }
}

/* Inside open mobile menu, show tool links as block items */
.eew-nav.open .eew-mobile-tool {
    display: block !important;
}

.eew-nav-dropdown {
    position: relative;
    display: inline-block;
}

.eew-nav-dropdown > a {
    cursor: pointer;
}

.eew-nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: auto;
    z-index: 1000;
    padding: 4px 0;
    padding-top: 4px;
}

.eew-nav-dropdown:hover .eew-nav-dropdown-content,
.eew-nav-dropdown-content:hover {
    display: block;
}

.eew-nav-dropdown-content a {
    display: block;
    padding: 7px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
}

.eew-nav-dropdown-content a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .eew-nav-dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        display: block;
    }
}

/* Table alignment: first column centered (country), others keep their class */
.eew-price-table th:first-child,
.eew-price-table td:first-child {
    text-align: center;
}
.eew-price-table .text-right { text-align: right !important; }
.eew-price-table .eew-country-cell { justify-content: center; }

/* Ensure anchor links scroll to below the fixed header */
section[id], .eew-card[id] {
    scroll-margin-top: calc(var(--header-height) + 12px);
}

/* Suppress SVG path focus outline — Leaflet SVG renderer causes a browser
   focus ring (visible as black rectangle) on clicked/interactive path elements.
   Also suppresses iOS tap highlight color. */
.eew-map-container path:focus,
.eew-map-container circle:focus,
.eew-map-container .leaflet-interactive:focus {
    outline: none !important;
    box-shadow: none !important;
}
.eew-map-container,
.eew-map-container .leaflet-interactive,
.eew-map-container path,
.eew-map-container circle {
    -webkit-tap-highlight-color: transparent;
}

/* Country Panel Scrollbar (Overview map drill-down) */
#eew-country-panel {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
#eew-country-panel::-webkit-scrollbar {
    width: 4px;
}
#eew-country-panel::-webkit-scrollbar-track {
    background: transparent;
}
#eew-country-panel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* ---------- Leaflet tile seam fix ---------- */
/* Sub-pixel rendering at fractional zoom levels (zoomSnap:0) creates 1px gaps
   between tiles. The outline trick forces a separate GPU compositing layer per
   tile which closes the gap without changing tile dimensions visually. */

/* Also eliminates the tile seam for retina/scaled tiles on high-DPI screens */

/* ── MapLibre GL JS overrides (Data Centers map) ────────────────────────── */
#dc-map .maplibregl-canvas { outline: none !important; -webkit-tap-highlight-color: transparent; }
#dc-map .maplibregl-ctrl-attrib,
#dc-map .maplibregl-ctrl-attrib a {
    font-size: 9px !important;
    opacity: 0.5;
    background: transparent !important;
    color: inherit;
}
#dc-map .maplibregl-ctrl-attrib-button { display: none !important; }
#dc-map .maplibregl-ctrl-bottom-right { font-size: 9px; opacity: 0.5; }
/* Mobile: show compact "i" button, hide the attribution text by default.
   Tapping the button expands the text. Keeps the map clean on narrow widths. */
@media (max-width: 768px) {
    #dc-map .maplibregl-ctrl-attrib-button {
        display: block !important;
        opacity: 0.7;
    }
    #dc-map .maplibregl-ctrl-attrib.maplibregl-compact {
        min-height: 24px !important;
    }
    #dc-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner {
        display: none !important;
    }
}
#dc-map .maplibregl-popup-content {
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
#dc-map .maplibregl-popup-close-button {
    font-size: 16px;
    color: #6b7280;
    padding: 4px 8px;
}
#dc-map .maplibregl-ctrl-zoom-in,
#dc-map .maplibregl-ctrl-zoom-out {
    border-radius: 4px !important;
}
@media (max-width: 768px) {
    #dc-map .maplibregl-ctrl-top-left { display: none !important; }
    /* Desktop uses absolute positioning to centre the filter; on mobile
       move it back to normal flow so it wraps below the title. */
    #dc-country-filter {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 12px;
        justify-content: flex-start !important;
    }
    #dc-list .eew-card-header {
        flex-wrap: wrap;
    }
    /* Phase 2 (worldwide): country dropdown can have ~250 entries with
       long names ("République démocratique du Congo", etc.). Constrain
       the select width on mobile so a long entry doesn't push it past
       the viewport and trigger horizontal scroll. The native picker UI
       on iOS/Android shows the full text in its own list. */
    #dc-country-filter .eew-select {
        max-width: 100%;
        min-width: 0;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
}

/* ── MapLibre GL JS overrides (Overview & Grid Monitor maps) ────────────── */
#europe-map .maplibregl-canvas,
#grid-flow-map .maplibregl-canvas {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}
#europe-map .maplibregl-ctrl-attrib,
#europe-map .maplibregl-ctrl-attrib a,
#grid-flow-map .maplibregl-ctrl-attrib,
#grid-flow-map .maplibregl-ctrl-attrib a {
    font-size: 9px !important;
    opacity: 0.5;
    background: transparent !important;
    color: inherit;
}
#europe-map .maplibregl-ctrl-attrib-button,
#grid-flow-map .maplibregl-ctrl-attrib-button { display: none !important; }
#europe-map .maplibregl-ctrl-bottom-right,
#grid-flow-map .maplibregl-ctrl-bottom-right {
    font-size: 9px;
    opacity: 0.5;
}
/* Mobile: show compact "i" button, hide attribution text by default */
@media (max-width: 768px) {
    #europe-map .maplibregl-ctrl-attrib-button,
    #grid-flow-map .maplibregl-ctrl-attrib-button {
        display: block !important;
        opacity: 0.7;
    }
    #europe-map .maplibregl-ctrl-attrib.maplibregl-compact,
    #grid-flow-map .maplibregl-ctrl-attrib.maplibregl-compact {
        min-height: 24px !important;
    }
    #europe-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner,
    #grid-flow-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner {
        display: none !important;
    }
}
#europe-map .maplibregl-popup-content,
#grid-flow-map .maplibregl-popup-content {
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
/* Hover popup: no tip, minimal chrome (reused by Overview + Grid) */
.maplibregl-popup.eew-hover-popup .maplibregl-popup-tip { display: none; }
.maplibregl-popup.eew-hover-popup .maplibregl-popup-content {
    padding: 8px 12px;
    font-size: 0.82rem;
}
#europe-map .maplibregl-ctrl-zoom-in,
#europe-map .maplibregl-ctrl-zoom-out,
#grid-flow-map .maplibregl-ctrl-zoom-in,
#grid-flow-map .maplibregl-ctrl-zoom-out {
    border-radius: 4px !important;
}
@media (max-width: 768px) {
    #europe-map .maplibregl-ctrl-top-left,
    #grid-flow-map .maplibregl-ctrl-top-left { display: none !important; }
}

/* Transition map: identical MapLibre control styling to Overview / Grid Monitor */
#transition-map .maplibregl-canvas { outline: none !important; -webkit-tap-highlight-color: transparent; }
#transition-map .maplibregl-ctrl-attrib,
#transition-map .maplibregl-ctrl-attrib a {
    font-size: 9px !important; opacity: 0.5; background: transparent !important; color: inherit;
}
#transition-map .maplibregl-ctrl-attrib-button { display: none !important; }
#transition-map .maplibregl-ctrl-bottom-right { font-size: 9px; opacity: 0.5; }
#transition-map .maplibregl-popup-content {
    border-radius: 8px; padding: 10px 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    font-family: var(--eewc-font-text, -apple-system, 'Helvetica Neue', Arial, sans-serif); background: var(--bg-card);
    color: var(--text-primary); border: 1px solid var(--border-color);
}
#transition-map .maplibregl-ctrl-zoom-in,
#transition-map .maplibregl-ctrl-zoom-out { border-radius: 4px !important; }
@media (max-width: 768px) {
    #transition-map .maplibregl-ctrl-attrib-button { display: block !important; opacity: 0.7; }
    #transition-map .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 24px !important; }
    #transition-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner { display: none !important; }
    #transition-map .maplibregl-ctrl-top-left { display: none !important; }
}

/* v5.6 — Hide inline "Back to today" button on Overview map toolbar in mobile.
   Keeps only the amber historical banner's Back to today, freeing space so
   the "Viewing date:" label + input fit on a single row on narrow screens. */
@media (max-width: 768px) {
    #map-date-today-btn { display: none !important; }
}

/* v5.7 — Fully-centered tables.
   Per João's explicit list: force text-align:center on every th/td
   (headers + body cells) inside these specific tables, overriding any
   .text-right / .text-left / inline text-align used elsewhere. */
#best-time .eew-price-table th,
#best-time .eew-price-table td,
#weather-table .eew-price-table th,
#weather-table .eew-price-table td,
#spot-prices .eew-price-table th,
#spot-prices .eew-price-table td,
#grid-utilization .eew-price-table th,
#grid-utilization .eew-price-table td,
#grid-splitting .eew-price-table th,
#grid-splitting .eew-price-table td,
#forward-spreads .eew-price-table th,
#forward-spreads .eew-price-table td,
#forward-ppa .eew-price-table th,
#forward-ppa .eew-price-table td,
#forward-spark .eew-price-table th,
#forward-spark .eew-price-table td,
#storage-table .eew-price-table th,
#storage-table .eew-price-table td,
#interconn-table .eew-price-table th,
#interconn-table .eew-price-table td,
#hydrogen-table .eew-price-table th,
#hydrogen-table .eew-price-table td,
#dc-table .eew-price-table th,
#dc-table .eew-price-table td,
#dc-energy-table .eew-price-table th,
#dc-energy-table .eew-price-table td,
#auction-database .eew-price-table th,
#auction-database .eew-price-table td,
#upcoming-auctions .eew-price-table th,
#upcoming-auctions .eew-price-table td,
#calc-results .eew-price-table th,
#calc-results .eew-price-table td,
#carbon-table .eew-price-table th,
#carbon-table .eew-price-table td,
#comp-summary .eew-price-table th,
#comp-summary .eew-price-table td,
#alert-ref-prices .eew-price-table th,
#alert-ref-prices .eew-price-table td {
    text-align: center !important;
}

#best-time .eew-country-cell,
#weather-table .eew-country-cell,
#spot-prices .eew-country-cell,
#grid-utilization .eew-country-cell,
#grid-splitting .eew-country-cell,
#forward-spreads .eew-country-cell,
#forward-ppa .eew-country-cell,
#forward-spark .eew-country-cell,
#storage-table .eew-country-cell,
#interconn-table .eew-country-cell,
#hydrogen-table .eew-country-cell,
#dc-table .eew-country-cell,
#dc-energy-table .eew-country-cell,
#auction-database .eew-country-cell,
#upcoming-auctions .eew-country-cell,
#calc-results .eew-country-cell,
#carbon-table .eew-country-cell,
#comp-summary .eew-country-cell,
#alert-ref-prices .eew-country-cell {
    justify-content: center;
}

/* ============================ PART 2 — DESIGN C ============================
   Every rule is scoped to html.eew-c (every page carries the class).

   1. Fallback fonts   5. Stage (map) and floating panels
   2. Tokens           6. Below the map: strip, cards, tables, rankings, mix
   3. Base, buttons    7. Footer
   4. Navigation       8. Dark theme      9. Narrower screens and phone (< 768 px)
   ========================================================================== */

/* ---------- 1. Fonts ----------
   The Red Hat faces themselves are in eew-c-fonts.css, which the page loads
   after its first paint. Until they arrive the text is set in Arial, adjusted
   here to take the same room (width, ascent and descent measured against the
   Red Hat faces), so nothing moves when they come in. */
@font-face { font-family: 'Red Hat Text Fallback'; font-weight: 400 500; src: local('Arial'); size-adjust: 101%; ascent-override: 101%; descent-override: 29.7%; line-gap-override: 0%; }
@font-face { font-family: 'Red Hat Text Fallback'; font-weight: 600 800; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 99.2%; ascent-override: 102.8%; descent-override: 30.2%; line-gap-override: 0%; }
@font-face { font-family: 'Red Hat Display Fallback'; font-weight: 400 800; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 97.5%; ascent-override: 104.6%; descent-override: 30.8%; line-gap-override: 0%; }

/* ---------- 2. Tokens ----------
   The names eew.css already uses get the values of design C, so every
   existing component follows; the --eewc-* ones are new. */
html.eew-c {
    --bg-primary: #F4F7F9;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F4F7F9;
    --bg-card: #FFFFFF;
    --bg-hover: #EEF2F5;
    --text-primary: #0F1B26;
    --text-secondary: #485867;
    --text-tertiary: #5E6E7C;
    --text-inverse: #FFFFFF;
    --border-color: #C9D3DB;
    --border-light: #E3E9EE;
    --accent-blue: #006774;       /* (the old name of the token: it carries the petrol of "below the average") */
    --accent-blue-hover: #00515C;
    --accent-green: #0A7B62;
    --accent-red: #891F35;        /* (the old name of the token: it carries the burgundy of "above the average", also the colour of a warning) */
    --accent-purple: #0F1B26;
    --chart-renewable: #0A7B62;
    --shadow-sm: none;
    --shadow-md: 0 6px 18px rgba(15, 27, 38, 0.10);
    --shadow-lg: 0 6px 18px rgba(15, 27, 38, 0.10);
    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 12px;
    --max-width: 1392px;

    --eewc-font-display: 'Red Hat Display', 'Red Hat Display Fallback', 'Helvetica Neue', Arial, sans-serif;
    --eewc-font-text: 'Red Hat Text', 'Red Hat Text Fallback', 'Helvetica Neue', Arial, sans-serif;
    --eewc-sea: #E6ECF1;
    --eewc-below: #006774;        /* below the European average: petrol (round of 2026-11-19; it was blue) */
    --eewc-above: #891F35;        /* above the European average, and warnings: burgundy (it was orange) */
    --eewc-green: #0A7B62;
    --eewc-btn-bg: #0F1B26;
    --eewc-btn-text: #FFFFFF;
    --eewc-focus: #006774;
    --eewc-panel-shadow: 0 6px 18px rgba(15, 27, 38, 0.10);
    --eewc-gutter: 24px;
    /* corners (round of 2026-11-19: less round everywhere): the navigation bar; cards, panels over a map and menus;
       buttons, filters, fields and navigation links; map labels, layer buttons, items inside a menu and status tags */
    --eewc-r-bar: 14px; --eewc-r-card: 12px; --eewc-r-ctl: 10px; --eewc-r-tag: 7px;
    /* sizes (round of 2026-11-19): the height of what is clicked. 44 px where the pointer is a finger; with a mouse
       (rule after this block) 36 px, and 32 px for the smaller buttons: Share and PNG, zoom, the layers of a map.
       The room kept for what a script writes is counted from these too, so it fits both.
       --eewc-link is for a link that stands on its own line; --eewc-pad is the room at each side of a word. */
    --eewc-ctl: 44px; --eewc-ctl-s: 44px; --eewc-link: 44px; --eewc-pad: 14px;
    --eewc-layers-w: 150px;                           /* the panel of the layers of a map */
    --eewc-head-h: calc(var(--eewc-ctl) + 14px);      /* the navigation bar: a control, 6 px above and below it, the outline */
    --eewc-top: calc(var(--eewc-head-h) + 38px);      /* where the panels over the map start: 20 px above the bar, 18 px below it */
    --eewc-edge: max(var(--eewc-gutter), calc(50% - 696px));   /* the side margin of the panels over the Overview map: the one of the navigation bar and of the cards */
    /* generation sources (design-c.md) */
    --eewc-mix-wind: #5BB5E8; --eewc-mix-hydro: #1F5FA8; --eewc-mix-pumped: #0E2A4F; --eewc-mix-solar: #F2B01E; --eewc-mix-nuclear: #7E6BD9;
    --eewc-mix-gas: #A62F47; --eewc-mix-coal: #55616B; --eewc-mix-biomass: #3FA36C; --eewc-mix-other: #A9B5BF;
    /* The stage is 860 px high (design-c.md), less on a screen that is shorter
       than that, so the bottom panels stay in the first screen */
    --eewc-stage-h: clamp(560px, 100vh, 860px);
}
/* With a mouse the controls are lower and closer to their words */
@media (hover: hover) and (pointer: fine) {
    html.eew-c { --eewc-ctl: 36px; --eewc-ctl-s: 32px; --eewc-link: 26px; --eewc-pad: 12px; --eewc-layers-w: 128px; }
}

/* ---------- 3. Base ---------- */
html.eew-c body {
    font-family: var(--eewc-font-text);
    font-size: 16px;
    line-height: 1.4;
    background: var(--bg-primary);
    color: var(--text-primary);
}
html.eew-c button, html.eew-c input, html.eew-c select { font-family: var(--eewc-font-text); }
html.eew-c a:focus-visible, html.eew-c button:focus-visible, html.eew-c input:focus-visible,
html.eew-c [tabindex]:focus-visible {
    outline: 2px solid var(--eewc-focus);
    outline-offset: 2px;
}
html.eew-c .eewc-green  { color: var(--eewc-green); }
html.eew-c .eewc-below  { color: var(--eewc-below); }
html.eew-c .eewc-above  { color: var(--eewc-above); }
html.eew-c .eewc-strong { color: var(--text-primary); font-weight: 600; }
html.eew-c .eewc-small  { font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
/* Hour of a value that was kept from an earlier run of the feed */
html.eew-c .eewc-asof { display: block; font-family: var(--eewc-font-text); font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--text-tertiary); white-space: nowrap; }
html.eew-c .eewc-asof-line { padding-top: 4px; }
/* A table that scrolls sideways fades out at the right while there are columns still to be seen (class set by eew-core.js) */
html.eew-c .eewc-more-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
}

/* Buttons */
html.eew-c .eewc-btn, html.eew-c .eew-export-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    box-sizing: border-box; min-height: var(--eewc-ctl); padding: 0 var(--eewc-pad);
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl);
    background: var(--bg-card); color: var(--text-primary);
    font-family: var(--eewc-font-text); font-size: 15px; font-weight: 500; line-height: 1.2;
    text-decoration: none; text-transform: none; letter-spacing: 0; white-space: nowrap;
    cursor: pointer; transition: none;
}
html.eew-c .eewc-btn:hover, html.eew-c .eew-export-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-color); }
html.eew-c .eewc-btn.eewc-btn-primary { background: var(--eewc-btn-bg); border-color: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 600; padding: 0 calc(var(--eewc-pad) + 4px); }
html.eew-c .eew-btn-group { gap: 8px !important; }
/* Share and PNG are a little smaller than the other buttons */
html.eew-c .eew-export-btn:is(.eew-share-btn, .eew-png-btn) { min-height: var(--eewc-ctl-s); padding: 0 calc(var(--eewc-pad) - 2px); font-size: 14px; }
html.eew-c .eewc-btn.eew-show-mobile { display: none; }   /* phone only (rule further down) */

/* ---------- 4. Navigation: a floating panel at the top of the stage ----------
   It stays in place while the page scrolls, as the header always did. The
   header element itself is an invisible strip from the top of the window to
   the bottom of the panel (the panel is .eew-header-inner): eew-core.js reads
   its height to bring a section back into view after a language switch. */
html.eew-c .eew-header {
    position: fixed; top: 0; left: 0; right: 0;
    display: block; box-sizing: border-box; height: auto; padding: 20px var(--eewc-gutter) 0;
    background: transparent; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    pointer-events: none;
    z-index: 1000;
}
html.eew-c .eew-header-inner {
    position: relative; box-sizing: border-box; max-width: 1392px; margin: 0 auto; padding: 6px 10px 6px 18px; gap: 16px; align-items: center;   /* as wide as the cards of the pages */
    background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-bar);
    box-shadow: var(--eewc-panel-shadow);
    pointer-events: auto;
}
/* An address with an anchor lands just below the navigation */
html.eew-c main section[id], html.eew-c main .eew-card[id] { scroll-margin-top: calc(var(--eewc-head-h) + 36px); }
html.eew-c .eew-logo { min-height: var(--eewc-ctl); gap: 9px; font-family: var(--eewc-font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-primary); }
html.eew-c .eew-logo span { font-size: inherit; }   /* «Power Data» at the size of the logo: part 1 made it 0.75rem of a 14 px root (10.5 px) up to 768 px (round of 2026-11-23) */
html.eew-c .eew-logo-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-size: 12px; font-weight: 800; }
/* The links sit in the middle of the room between the logo and the buttons ("safe": from the left when they do not fit, so eewFitNav() can tell) */
html.eew-c .eew-nav { flex: 1 1 auto; min-width: 0; gap: 2px; flex-wrap: nowrap; white-space: nowrap; justify-content: center; justify-content: safe center; }
html.eew-c .eew-nav a {
    display: inline-flex; align-items: center; box-sizing: border-box;
    min-height: var(--eewc-ctl); padding: 0 8px; border-radius: var(--eewc-r-ctl);
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: none;
}
html.eew-c .eew-nav a.eew-mobile-tool { display: none; }   /* only in the folded menu */
html.eew-c .eew-nav a:hover { background: var(--bg-hover); color: var(--text-primary); }
html.eew-c .eew-nav a.active { background: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 600; }
html.eew-c .eew-nav-dropdown-content { top: 100%; padding: 6px; border-radius: var(--eewc-r-card); box-shadow: var(--eewc-panel-shadow); }
html.eew-c .eew-nav-dropdown-content a { display: flex; border-radius: var(--eewc-r-tag); padding: 0 12px; font-size: 14.5px; }
html.eew-c .eew-nav-dropdown-content a:hover { background: var(--bg-hover); }
html.eew-c .eew-controls { gap: 8px; flex-shrink: 0; }
/* One language button: the current language, with the others in a menu under it */
html.eew-c .eew-lang-selector { position: relative; display: block; border: 0; border-radius: 0; background: none; overflow: visible; }
html.eew-c .eew-lang-btn {
    display: none; box-sizing: border-box; align-items: center; gap: 6px;
    min-height: var(--eewc-ctl); min-width: 0; padding: 0 12px; border: 0; border-radius: var(--eewc-r-tag);
    background: none; color: var(--text-primary);
    font-family: var(--eewc-font-text); font-size: 15px; font-weight: 500; letter-spacing: 0; cursor: pointer; transition: none;
}
html.eew-c .eew-lang-selector > .eew-lang-btn.active, html.eew-c .eew-lang-selector > .eew-lang-btn:first-child,
html.eew-c[data-eew-lang="en"] .eew-lang-selector > .eew-lang-btn[data-lang="en"],
html.eew-c[data-eew-lang="pt"] .eew-lang-selector > .eew-lang-btn[data-lang="pt"],
html.eew-c[data-eew-lang="es"] .eew-lang-selector > .eew-lang-btn[data-lang="es"],
html.eew-c[data-eew-lang="fr"] .eew-lang-selector > .eew-lang-btn[data-lang="fr"],
html.eew-c[data-eew-lang="de"] .eew-lang-selector > .eew-lang-btn[data-lang="de"] {
    display: inline-flex; border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); background: var(--bg-card); color: var(--text-primary);
}
html.eew-c .eew-lang-selector > .eew-lang-btn:first-child:not(.active) ~ .eew-lang-btn.active { display: none; }
/* The language before the first paint (v2.11): the script at the top of each page puts the visitor's language in
   data-eew-lang, as initLang() of eew-core.js chooses it, so the button shows it before eew-core.js has run (the HTML has
   English first); eew-core.js keeps the attribute when the language changes. When the language is not English, the class
   eew-i18n-wait keeps the texts invisible (hidden, not removed: nothing moves) until eew-core.js has translated them, on
   DOMContentLoaded, or for 1 s at most (the script takes the class away then, translated or not). */
html.eew-c[data-eew-lang="en"] .eew-lang-selector > .eew-lang-btn:not([data-lang="en"]),
html.eew-c[data-eew-lang="pt"] .eew-lang-selector > .eew-lang-btn:not([data-lang="pt"]),
html.eew-c[data-eew-lang="es"] .eew-lang-selector > .eew-lang-btn:not([data-lang="es"]),
html.eew-c[data-eew-lang="fr"] .eew-lang-selector > .eew-lang-btn:not([data-lang="fr"]),
html.eew-c[data-eew-lang="de"] .eew-lang-selector > .eew-lang-btn:not([data-lang="de"]) { display: none; }
html.eew-i18n-wait main, html.eew-i18n-wait .eew-nav, html.eew-i18n-wait footer { visibility: hidden; }
html.eew-c .eew-lang-selector > .eew-lang-btn::after {
    content: ''; flex: none; width: 14px; height: 14px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
html.eew-c .eew-lang-selector.is-open > .eew-lang-btn::after { transform: rotate(180deg); }
html.eew-c .eew-lang-selector > .eew-lang-btn:hover, html.eew-c .eewc-lang-menu .eew-lang-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
html.eew-c .eewc-lang-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 1002;
    box-sizing: border-box; min-width: 100%; padding: 6px; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); box-shadow: var(--eewc-panel-shadow);
}
html.eew-c .eew-lang-selector.is-open .eewc-lang-menu { display: flex; }
html.eew-c .eewc-lang-menu .eew-lang-btn { display: flex; width: 100%; }
html.eew-c .eew-toggle-btn, html.eew-c .eew-menu-toggle {
    box-sizing: border-box; width: var(--eewc-ctl); height: var(--eewc-ctl); border-radius: 50%;
    border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary);
    font-size: 17px; transition: none;
}
html.eew-c .eew-menu-toggle { border-radius: var(--eewc-r-ctl); }   /* the theme button keeps its round shape; the menu button follows the other buttons */
/* The icon of the theme button is drawn (an SVG in the page): the moon in the light theme, the sun in the dark one */
html.eew-c .eew-toggle-btn { padding: 0; }
html.eew-c .eewc-ico { display: block; flex: none; }
html.eew-c[data-theme="dark"] .eewc-ico-moon { display: none; }
html.eew-c[data-theme="dark"] .eewc-ico-sun { display: block !important; }
html.eew-c:not([data-theme="dark"]) .eewc-ico-sun { display: none; }
html.eew-c .eew-toggle-btn:hover, html.eew-c .eew-menu-toggle:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-color); }

/* Folded navigation: the links open from the menu button. Used below 1366 px
   (rule further down) and, above that, when eew-data.js finds that the links
   of the current language do not fit in one line. */
html.eew-c.eewc-nav-folded .eew-menu-toggle { display: flex; }
html.eew-c.eewc-nav-folded .eew-nav {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; left: auto; width: min(320px, 100%);
    box-sizing: border-box; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card);
    box-shadow: var(--eewc-panel-shadow); z-index: 1001;
}
html.eew-c.eewc-nav-folded .eew-nav.open { display: flex; }
html.eew-c.eewc-nav-folded .eew-nav a { border-radius: var(--eewc-r-tag); }
html.eew-c.eewc-nav-folded .eew-nav-dropdown { display: none !important; }
html.eew-c.eewc-nav-folded .eew-nav.open .eew-mobile-tool { display: inline-flex !important; padding: 0 11px; font-size: 14.5px; }

/* ---------- 5. Stage: the map is the page ---------- */
html.eew-c .eew-main { padding-top: 0; padding-bottom: 0; }
html.eew-c .eewc-stage {
    position: relative; height: var(--eewc-stage-h);
    margin: 0; border: 0; border-radius: 0; box-shadow: none;
    background: var(--eewc-sea); overflow: hidden;
}
html.eew-c .eewc-stage > #europe-map {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    width: auto; height: auto; border-radius: 0;
    background: var(--eewc-sea);
}

/* A floating panel */
html.eew-c .eewc-panel {
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-card);
    box-shadow: var(--eewc-panel-shadow);
    color: var(--text-primary);
    font-family: var(--eewc-font-text);
}

/* Layers and currency */
html.eew-c .eewc-layers-slot { position: absolute; top: var(--eewc-top); left: var(--eewc-edge); z-index: 4; }
html.eew-c .eewc-layers { width: var(--eewc-layers-w); padding: 8px; }
html.eew-c .eewc-layer-list { display: flex; flex-direction: column; gap: 4px; }
html.eew-c .eewc-layer-btn {
    display: flex; align-items: center; box-sizing: border-box; width: 100%;
    min-height: var(--eewc-ctl-s); padding: 0 16px;
    border: 0; border-radius: var(--eewc-r-tag); background: transparent;
    color: var(--text-primary); font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
}
html.eew-c .eewc-layer-btn:hover { background: var(--bg-hover); }
html.eew-c .eewc-layer-btn.is-active { background: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 600; }
html.eew-c .eewc-currency { display: flex; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-cur-btn {
    flex: 1 1 0; box-sizing: border-box; min-height: var(--eewc-ctl-s); padding: 0 2px;
    border: 1px solid transparent; border-radius: var(--eewc-r-tag); background: transparent;
    color: var(--text-secondary); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
html.eew-c .eewc-cur-btn:hover { background: var(--bg-hover); }
html.eew-c .eewc-cur-btn.is-active { border-color: var(--text-primary); color: var(--text-primary); font-weight: 600; }
/* With a mouse the panel is narrower (--eewc-layers-w), its buttons are 32 px high and its type is smaller */
@media (hover: hover) and (pointer: fine) {
    html.eew-c .eewc-layers { padding: 6px; }
    html.eew-c .eewc-layer-btn { padding: 0 8px; font-size: 13.5px; }
    html.eew-c .eewc-cur-btn { font-size: 12.5px; }
    html.eew-c .eewc-currency { margin-top: 5px; padding-top: 5px; }
}

/* Zoom buttons: beside the layers panel */
html.eew-c #europe-map .maplibregl-ctrl-top-left { top: var(--eewc-top); left: calc(var(--eewc-edge) + var(--eewc-layers-w) + 16px); }
html.eew-c #europe-map .maplibregl-ctrl-top-left .maplibregl-ctrl { margin: 0; }
/* (the list of map ids only gives these rules the weight of the per-map rules of eew.css; it goes when the two sheets become one) */
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-group {
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl);
    box-shadow: var(--eewc-panel-shadow); background: var(--bg-card); overflow: hidden;
}
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-group button { width: var(--eewc-ctl-s); height: var(--eewc-ctl-s); border-radius: 0 !important; background-color: var(--bg-card); }
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-group button:hover { background-color: var(--bg-hover); }
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-group button + button { border-top: 1px solid var(--border-light); }
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-top-left { display: block !important; }   /* zoom buttons on every screen size */

/* Country labels: a capsule with the code and the value. Plain inline boxes,
   not flex: html2canvas 1.4.1 (PNG export) drops the text of an inline-flex box. */
html.eew-c .eewc-label {
    display: inline-block; box-sizing: border-box;
    height: 22px; padding: 0 8px;
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-tag);
    background: var(--bg-card); color: var(--text-primary);
    font-family: var(--eewc-font-display); font-size: 12.5px; font-weight: 700; line-height: 20px; white-space: nowrap;
}
html.eew-c .eewc-label-code { margin-right: 1px; font-size: 11.5px; font-weight: 600; color: var(--text-secondary); }
html.eew-c .eewc-label.is-selected { background: var(--eewc-btn-bg); border-color: var(--eewc-btn-bg); color: var(--eewc-btn-text); }
html.eew-c .eewc-label.is-selected .eewc-label-code { color: var(--border-color); }

/* A label that would overlap a more important one, or be cut by the edge (eew-core.js) */
html.eew-c .eewc-label-off { visibility: hidden; }

/* Hint shown when the wheel or one finger is used over a map: a capsule, not a dark veil */
html.eew-c .maplibregl-cooperative-gesture-screen { background: transparent; padding: 16px; font-family: var(--eewc-font-text); font-size: 15px; line-height: 1.3; text-align: center; }
html.eew-c .maplibregl-cooperative-gesture-screen > div { padding: 12px 18px; border-radius: var(--eewc-r-ctl); background: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 600; box-shadow: var(--eewc-panel-shadow); }

/* Tooltip over a country */
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-popup-content {
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); padding: 10px 12px;
    background: var(--bg-card); color: var(--text-primary);
    box-shadow: var(--eewc-panel-shadow); font-family: var(--eewc-font-text); font-size: 14px; line-height: 1.4;
}
html.eew-c .maplibregl-popup-tip { display: none; }
html.eew-c .eew-map-container .eew-map-tooltip {
    background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important;
    font-family: var(--eewc-font-text) !important; font-size: 14px !important; color: var(--text-primary);
}
html.eew-c .eew-map-container .eew-map-tooltip .country-name { font-family: var(--eewc-font-display); font-weight: 700; font-size: 15px; }
html.eew-c .eew-map-container .eew-map-tooltip .price-value { font-family: var(--eewc-font-display); font-size: 17px; font-weight: 700; }
html.eew-c .eew-map-container { background: var(--eewc-sea); }
html.eew-c .eew-map-container .eew-map-loading { background: var(--eewc-sea) !important; }
html.eew-c[data-theme="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
/* Credit of a map that shows OpenStreetMap data: always readable, in the corner */
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-attrib {
    margin: 0 8px 8px 0; padding: 2px 8px; border: 1px solid var(--border-color); border-radius: var(--eewc-r-tag);
    background: var(--bg-card) !important; opacity: 1; font-family: var(--eewc-font-text); font-size: 12px !important; line-height: 16px; color: var(--text-secondary);
}
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-attrib a { font-size: 12px !important; opacity: 1; color: var(--text-secondary); background: none !important; text-decoration: none; cursor: text; }   /* the credit keeps its link, without the look of one */
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-attrib a:hover { color: var(--text-secondary); text-decoration: none; }
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-bottom-right { font-size: 12px; opacity: 1; }
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-attrib-button { display: none !important; }
html.eew-c :is(#europe-map, #grid-flow-map, #dc-map, #transition-map) .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner { display: block !important; }

/* A map inside a card (Grid Monitor, Data Centers, Transition): the map fills
   the card from edge to edge; its layer buttons float at the top left on a
   computer and sit in a row above it on a phone */
html.eew-c .eewc-mapbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; padding: 0 24px 16px; font-size: 14px; color: var(--text-secondary); }
html.eew-c .eewc-mapbar .eewc-date-note { text-align: left; }
html.eew-c .eewc-mapbox { position: relative; padding: 0 !important; border-top: 1px solid var(--border-color); --eewc-layers-w: 150px; }   /* (the names of the layers of these maps are longer than the ones of the Overview) */
html.eew-c .eewc-mapbox > .eew-map-container { height: 560px; border-radius: 0; }
html.eew-c .eewc-mapbox > .eewc-layers-slot { top: 16px; left: 16px; }
html.eew-c .eewc-mapbox .maplibregl-ctrl-top-left { top: 16px; left: 16px; }
html.eew-c .eewc-mapbox.has-layers .maplibregl-ctrl-top-left { left: calc(16px + var(--eewc-layers-w) + 12px); }
@media (hover: hover) and (pointer: fine) { html.eew-c .eewc-mapbox:has(> #dc-layers-slot) { --eewc-layers-w: 172px; } }   /* Data Centers: a wider panel, and the zoom buttons after it */
html.eew-c .eewc-mapbox .maplibregl-ctrl-top-left .maplibregl-ctrl { margin: 0; }
html.eew-c .eewc-mapnote { padding: 12px 24px; border-top: 1px solid var(--border-light); font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
/* Legend of a map inside a card, and the labels of the groups of its buttons */
html.eew-c .eewc-mapbox > .eewc-maplegend-slot { position: absolute; left: 16px; bottom: 16px; z-index: 4; }
html.eew-c .eewc-maplegend { padding: 8px 12px 9px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
html.eew-c .eewc-maplegend-title { margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--text-primary); }
html.eew-c .eewc-maplegend-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
html.eew-c .eewc-maplegend-row .eewc-dot { width: 10px; height: 10px; }
html.eew-c .eewc-layer-label { padding: 2px 8px 4px; font-size: 12.5px; line-height: 1.3; color: var(--text-secondary); }
html.eew-c .eewc-layer-label.is-second { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-layer-check.is-on { box-shadow: inset 0 0 0 1.5px var(--text-primary); font-weight: 600; }
/* Popup of a point */
html.eew-c .eewc-dcpop { min-width: 190px; font-size: 14px; line-height: 1.55; }
html.eew-c .eewc-dcpop-name { margin-bottom: 2px; font-family: var(--eewc-font-display); font-size: 15px; font-weight: 700; }
html.eew-c .eewc-dcpop hr { margin: 8px 0; border: 0; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-dcpop b { font-weight: 600; }
html.eew-c .eewc-dcpop span.eewc-sub { font-size: 12.5px; }
html.eew-c .eewc-dcpop-link { margin-top: 6px; font-size: 13px; }
html.eew-c .eewc-dcpop-link a { color: var(--text-secondary); text-decoration: underline; }
html.eew-c .maplibregl-popup-close-button { width: var(--eewc-ctl-s); height: var(--eewc-ctl-s); font-size: 18px; color: var(--text-secondary); border-radius: var(--eewc-r-ctl); }
/* Table details: a line that is less certain, a clipped name, a row that separates two groups, a unit under a header */
html.eew-c .eew-price-table tr.eewc-dim td { opacity: 0.72; }
html.eew-c .eew-price-table tr.eewc-dim.is-more td { opacity: 0.6; }
html.eew-c .eewc-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.eew-c .eew-price-table tr.eewc-sep-row td { padding: 14px 0 6px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--text-secondary); }
html.eew-c .eew-price-table th .eewc-sub { display: block; font-size: 12px; }

/* Labels of flows and balances on a map: capsules, like the country labels */
html.eew-c .eewc-flow-tag {
    display: inline-block; box-sizing: border-box; padding: 2px 9px;
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-tag);
    background: var(--bg-card); color: var(--text-primary);
    font-family: var(--eewc-font-display); font-size: 11.5px; font-weight: 700; line-height: 14px; white-space: nowrap; text-align: center;
}
html.eew-c .eewc-flow-tag small { display: block; font-family: var(--eewc-font-text); font-size: 11px; font-weight: 500; color: var(--text-secondary); }
html.eew-c .eewc-flow-tag.is-high { border-color: var(--eewc-above); }
html.eew-c .eewc-flow-tag.is-high small { color: var(--eewc-above); font-weight: 600; }
html.eew-c .eewc-flow-tag.is-quiet { font-weight: 600; color: var(--text-secondary); }
/* A notice in the flow of the page (a past date is being shown) */
html.eew-c .eewc-notice {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
    box-sizing: border-box; padding: 10px 16px;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card);
    font-size: 14px; line-height: 1.4; color: var(--text-primary);
}
html.eew-c .eewc-tip-note { margin-top: 2px; font-size: 12.5px; color: var(--text-secondary); }

/* Banner of the historical date */
html.eew-c .eewc-banner {
    position: absolute; top: var(--eewc-top); left: 0; right: 0; z-index: 3;
    width: fit-content; max-width: calc(100% - 2 * (var(--eewc-edge) + var(--eewc-layers-w) + 16px + var(--eewc-ctl-s) + 16px));
    margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px;
    font-size: 14px; line-height: 1.4;
}

/* Bottom of the stage: legend and map bar */
html.eew-c .eewc-dock {
    position: absolute; left: var(--eewc-edge); right: var(--eewc-edge); bottom: 24px; z-index: 4;
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px;
    pointer-events: none;
}
html.eew-c .eewc-dock > * { pointer-events: auto; }
html.eew-c .eewc-legend-slot { flex: 0 1 372px; min-width: 0; min-height: 62px; display: flex; align-items: flex-end; }
html.eew-c .eewc-legend { width: 100%; padding: 7px 12px 8px; display: flex; flex-direction: column; gap: 3px; }
html.eew-c .eewc-legend-title { font-size: 13px; font-weight: 600; line-height: 17px; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-ph { visibility: hidden; }   /* stands in for a number that has not arrived yet */
html.eew-c .eewc-legend-bar { height: 7px; border-radius: 4px; background: var(--border-light); }   /* the scale itself is set by eew-map.js */
html.eew-c .eewc-legend-scale { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 15px; color: var(--text-secondary); }
html.eew-c .eewc-legend-export { position: absolute; bottom: 44px; width: 372px; max-width: calc(100% - 32px); z-index: 3; box-shadow: none; }
html.eew-c .eewc-legend-export.is-compact { top: 12px; left: 12px; bottom: auto; padding: 10px 12px; gap: 6px; }
html.eew-c .eewc-legend-export.is-compact .eewc-legend-title { font-size: 12.5px; line-height: 1.3; }
html.eew-c .eewc-legend-export .eewc-legend-title { font-variant-numeric: normal; }   /* (html2canvas draws the digits without the fixed width: a gap opened after the number) */
html.eew-c .eewc-legend-export.is-compact .eewc-legend-bar { height: 8px; }
html.eew-c .eewc-legend-export.is-compact .eewc-legend-scale { font-size: 11.5px; }

html.eew-c .eewc-timeline {
    flex: 0 1 auto; min-width: 0; min-height: 62px; margin-left: auto; padding: 8px 8px 8px 14px;   /* as wide as what it holds, at the right */
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
}
html.eew-c .eewc-timeline .eew-card-header { display: contents; }
html.eew-c .eewc-timeline-title { order: 1; flex: 0 1 auto; min-width: 0; }
html.eew-c .eewc-timeline .eew-card-title { font-family: var(--eewc-font-display); font-size: 15px; font-weight: 700; line-height: 18px; letter-spacing: -0.01em; }
html.eew-c .eewc-timeline .eew-card-subtitle { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }
html.eew-c #overview-map-toolbar { order: 2; flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; min-width: 0; font-size: 13.5px; color: var(--text-secondary); }
html.eew-c .eewc-timeline .eew-btn-group { order: 4; }
/* The room of the PNG and Share buttons, kept from the first paint (index.html): each half goes when its button arrives.
   (4 px less at its right: the gap between two buttons of a group is 8 px, the one between two parts of the bar 12) */
html.eew-c .eewc-btns-ph { order: 3; display: flex; gap: 8px; margin-right: -4px; visibility: hidden; }
html.eew-c .eewc-btns-ph > .eewc-btn { min-height: var(--eewc-ctl-s); padding: 0 calc(var(--eewc-pad) - 2px); font-size: 14px; }
html.eew-c .eewc-timeline:has(.eew-png-btn) .eewc-ph-png, html.eew-c .eewc-timeline:has(.eew-share-btn) .eewc-ph-share,
html.eew-c .eewc-timeline:has(.eew-png-btn):has(.eew-share-btn) .eewc-btns-ph { display: none; }
html.eew-c .eewc-date-note { flex: 0 1 auto; min-width: 0; text-align: right; font-size: 13.5px; line-height: 1.3; color: var(--text-secondary); }
/* The mark of the map bar while the map shows today's values */
html.eew-c .eewc-live-mark { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--eewc-green); white-space: nowrap; }
html.eew-c .eewc-live-mark::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
html.eew-c .eewc-date-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
html.eew-c .eewc-date-field input[type="date"] {
    box-sizing: border-box; min-height: var(--eewc-ctl-s); padding: 0 10px;
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl);
    background: var(--bg-card); color: var(--text-primary); font-size: 15px;
}

/* Country card */
html.eew-c .eewc-country-slot {
    position: absolute; top: var(--eewc-top); right: var(--eewc-edge); z-index: 5;
    width: 372px; max-width: calc(100% - 2 * var(--eewc-gutter));
    /* stops above the bottom panels, whatever height they have (eew-map.js keeps --eewc-dock-h up to date) */
    max-height: calc(100% - var(--eewc-top) - 24px - 16px - var(--eewc-dock-h, 62px));
    display: flex; flex-direction: column; pointer-events: none;
}
html.eew-c .eewc-country { pointer-events: auto; min-height: 0; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
html.eew-c .eewc-country > * { flex: none; }
html.eew-c .eewc-country-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
html.eew-c .eewc-country-name { font-family: var(--eewc-font-display); font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
html.eew-c .eewc-country-name a { color: inherit; text-decoration: none; }
html.eew-c .eewc-country-price { padding-top: 8px; }
html.eew-c .eewc-country-big { font-family: var(--eewc-font-display); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-country-unit { font-size: 16px; color: var(--text-secondary); }
/* The unit never breaks in the middle: it stays on the line of the number when it fits and goes whole to the line below when it does not */
html.eew-c .eewc-country-price .eewc-country-big { margin-right: 8px; }
html.eew-c .eewc-country-big + .eewc-country-unit { display: inline-block; white-space: nowrap; }
html.eew-c .eewc-dev { padding-top: 6px; font-size: 15px; font-weight: 600; }
html.eew-c .eewc-dev.is-below { color: var(--eewc-below); }
html.eew-c .eewc-dev.is-above { color: var(--eewc-above); }
html.eew-c .eewc-country-close {
    flex: none; width: var(--eewc-ctl-s); height: var(--eewc-ctl-s); margin: calc(12px - var(--eewc-ctl-s) / 2) calc(10px - var(--eewc-ctl-s) / 2) 0 0;
    border: 0; border-radius: var(--eewc-r-ctl); background: transparent; color: var(--text-secondary);
    font-size: 16px; line-height: 1; cursor: pointer;
}
html.eew-c .eewc-country-close:hover { background: var(--bg-hover); color: var(--text-primary); }
html.eew-c .eewc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
html.eew-c .eewc-stat { padding: 10px 10px 10px 0; }
html.eew-c .eewc-stat + .eewc-stat { padding-left: 10px; border-left: 1px solid var(--border-light); }
html.eew-c .eewc-stat-label { font-size: 13px; color: var(--text-secondary); }
html.eew-c .eewc-stat-value { font-family: var(--eewc-font-display); font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-stat-value.is-below { color: var(--eewc-below); }
html.eew-c .eewc-stat-value.is-above { color: var(--eewc-above); }
html.eew-c .eewc-stat-value.is-empty { color: var(--text-secondary); font-weight: 400; }
html.eew-c .eewc-stat-note { font-size: 12px; line-height: 1.3; color: var(--text-tertiary); }
html.eew-c .eewc-section { display: flex; flex-direction: column; gap: 8px; }
html.eew-c .eewc-section-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
html.eew-c .eewc-chart-box canvas { display: block; max-width: 100%; }
html.eew-c .eewc-tabs { display: flex; gap: 4px; }
html.eew-c .eewc-tab {
    flex: 1 1 0; box-sizing: border-box; min-height: var(--eewc-ctl); padding: 0 8px;
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); background: var(--bg-card);
    color: var(--text-primary); font-size: 15px; font-weight: 500; cursor: pointer;
}
html.eew-c .eewc-tab.is-active { background: var(--eewc-btn-bg); border-color: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 600; }
html.eew-c .eewc-block { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
html.eew-c .eewc-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; margin-bottom: 4px; }
html.eew-c .eewc-bar-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
html.eew-c .eewc-bar-value { color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
html.eew-c .eewc-bar-track { height: 6px; border-radius: 3px; overflow: hidden; background: var(--border-light); }
html.eew-c .eewc-bar-fill { height: 100%; border-radius: 3px; }
html.eew-c .eewc-cap-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-secondary); }
html.eew-c .eewc-cap-row { display: flex; align-items: center; gap: 6px; }
html.eew-c .eewc-cap-num { flex: none; width: 40px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-cap-num.is-cap { text-align: right; font-weight: 400; color: var(--text-secondary); }
html.eew-c .eewc-cap-bars { flex: 1 1 auto; display: flex; align-items: center; gap: 4px; min-width: 0; }
html.eew-c .eewc-cap-track { flex: 1 1 0; height: 6px; border-radius: 3px; overflow: hidden; background: var(--border-light); }
html.eew-c .eewc-cap-track.is-cap { display: flex; justify-content: flex-end; }
html.eew-c .eewc-cap-name { flex: none; min-width: 52px; text-align: center; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
html.eew-c .eewc-flow-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
html.eew-c .eewc-flow-row strong { font-weight: 500; }
html.eew-c .eewc-flow-arrow { color: var(--text-secondary); }
html.eew-c .eewc-flow-value { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-flow-dir { font-weight: 400; color: var(--text-secondary); }
html.eew-c .eewc-country > .eewc-card-action { align-self: stretch; }

/* ---------- 6. Below the map ---------- */
html.eew-c .eew-container {
    box-sizing: border-box; max-width: calc(1392px + 2 * var(--eewc-gutter));
    padding: 28px var(--eewc-gutter) 40px;
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px;
}
html.eew-c .eew-container > * { flex: 1 1 100%; min-width: 0; margin: 0; }
html.eew-c .eew-container > section { display: flex; flex-direction: column; }
html.eew-c .eew-container > section.eew-grid-2, html.eew-c .eew-container > section.eew-grid-3 { display: grid; align-items: stretch; }   /* cards of one row are as high as each other */
html.eew-c .eew-container > section > .eew-card { flex: 1 1 auto; }
html.eew-c #alert-notifications:empty { display: none; }
html.eew-c .eew-container > #spot-prices { flex: 999 1 560px; }
html.eew-c .eew-container > #cheapest { flex: 1 1 600px; }
html.eew-c .eew-container > #weather { flex: 999 1 640px; }
html.eew-c .eew-container > .eewc-weather { flex: 1 1 520px; }

/* Strip: title and live counter, then the four indicators */
html.eew-c .eewc-strip {
    display: flex; flex-wrap: wrap; gap: 16px 0; padding: 20px 0;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card);
}
html.eew-c .eew-hero { flex: 1.6 1 320px; min-width: 0; box-sizing: border-box; padding: 2px 24px; }
html.eew-c .eew-hero h1 { margin: 0; font-family: var(--eewc-font-display); font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
html.eew-c .eew-hero p { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--text-secondary); }
html.eew-c .eew-updated { margin-top: 6px; gap: 8px; min-height: 21px; font-size: 15px; color: var(--text-secondary); }   /* its line is kept before the counter starts */
html.eew-c .eew-updated .dot { width: 9px; height: 9px; background: var(--eewc-green); }
html.eew-c .eew-live-label { margin-right: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--eewc-green); }
html.eew-c .eew-kpi-row {
    flex: 4 1 640px; min-width: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 0; align-items: center;
}
html.eew-c .eew-kpi-card {
    display: flex; flex-direction: column; gap: 4px; justify-content: center; align-self: stretch;
    padding: 2px 24px; background: transparent; border: 0; border-left: 1px solid var(--border-color); border-radius: 0; box-shadow: none;
}
html.eew-c .eew-kpi-label { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--text-secondary); text-transform: none; letter-spacing: 0; }
html.eew-c .eew-kpi-value { font-family: var(--eewc-font-display); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
html.eew-c .eew-kpi-value small { margin-left: 4px; font-family: var(--eewc-font-text); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--text-secondary); }
html.eew-c .eew-kpi-row > .eew-loading { grid-column: 1 / -1; padding: 12px 24px; justify-content: flex-start; }
/* The strips of indicators at the top of the pages: the label and the number in the middle of each cell */
html.eew-c .eew-container > .eew-kpi-row > .eew-kpi-card, html.eew-c .eewc-strip .eew-kpi-card { align-items: center; text-align: center; }
/* Overview strip: number and unit always on one line. The columns follow what they hold (the price,
   the widest, gets the room it needs), the cards get closer below 1366 px, and when the four do not
   fit beside the title they go under it (min-width: min-content). */
html.eew-c .eewc-strip .eew-kpi-value { white-space: nowrap; }
html.eew-c .eewc-strip .eew-kpi-row { min-width: min-content; grid-template-columns: repeat(4, minmax(min-content, 1fr)); }
@media (max-width: 1365px) { html.eew-c .eewc-strip .eew-kpi-card { padding: 2px 16px; } }

/* Cards: outline, no shadow */
html.eew-c .eew-container .eew-card { margin: 0; border-radius: var(--eewc-r-card); box-shadow: none; overflow: hidden; }
/* (the header is as high as the Share button from the start, so it does not grow when the button is added) */
html.eew-c .eew-container .eew-card-header { box-sizing: border-box; min-height: calc(22px + var(--eewc-ctl-s)); padding: 22px 24px 0; border-bottom: 0; align-items: flex-start; gap: 12px; }
html.eew-c .eew-container .eew-card-title { font-family: var(--eewc-font-display); font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
html.eew-c .eew-container .eew-card-subtitle { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--text-secondary); }
html.eew-c .eew-container .eew-card-body, html.eew-c .eew-container .eew-card-body.no-padding { padding: 14px 24px 22px; }
html.eew-c .eewc-note { display: block; margin-top: 4px; font-size: 13px; color: var(--text-secondary); }
html.eew-c .eewc-note a { color: var(--accent-blue); }
html.eew-c .eew-loading { padding: 32px 0; font-size: 15px; color: var(--text-secondary); }

/* Tables: centred, headers and values, in every table and every column, on desktop and phone
   (as the live site does in its main tables); tabular figures, no capitals */
html.eew-c .eew-price-table { font-variant-numeric: tabular-nums; }
/* (:not(#_) only raises the weight of this rule above the per-table rules of part 1) */
html.eew-c .eew-price-table th:not(#_), html.eew-c .eew-price-table td:not(#_) { text-align: center !important; }
/* A column of running text (notes, descriptions) reads from the left, and so does its header */
html.eew-c .eew-price-table th.eewc-col-text:not(#_), html.eew-c .eew-price-table td.eewc-col-text:not(#_) { text-align: left !important; }
/* Infrastructure: the notes take two or three lines on a computer; on a phone the table slides sideways */
html.eew-c #storage-table td.eewc-col-text, html.eew-c #interconn-table td.eewc-col-text, html.eew-c #hydrogen-table td.eewc-col-text { width: 40%; min-width: 300px; }
html.eew-c .eew-price-table td.eewc-num { white-space: nowrap; }   /* .eewc-num is set by eew-core.js on the columns of numbers */
html.eew-c #grid-splitting .eew-price-table td:first-child { white-space: nowrap; }   /* a pair of countries stays on one line (SE ↔ DK) */
/* A bar inside a cell: the bar and its number, together, in the middle of the column */
html.eew-c .eew-price-table .eew-renewable-bar { justify-content: center; }
html.eew-c .eew-price-table .eew-renewable-bar-track { flex: 0 1 96px; }
html.eew-c .eew-price-table th {
    padding: 9px 10px; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--text-secondary);
    text-transform: none; letter-spacing: 0; background: transparent; border-bottom: 1px solid var(--border-color);
}
html.eew-c .eew-price-table td { padding: 9px 10px; font-size: 15px; line-height: 1.4; border-bottom: 1px solid var(--border-light); }
html.eew-c .eew-price-table th:first-child, html.eew-c .eew-price-table td:first-child { padding-left: 0; }
html.eew-c .eew-price-table th:last-child, html.eew-c .eew-price-table td:last-child { padding-right: 0; }
html.eew-c .eew-price-table tr:last-child td { border-bottom: 1px solid var(--border-light); }
html.eew-c .eew-price-table tr:hover td { background: transparent; }
html.eew-c .eew-price-table .eew-price-row.clickable:hover td { background: var(--bg-hover); }
html.eew-c .eew-country-cell:not(#_) { justify-content: center !important; gap: 6px; font-weight: 500; }   /* (!important: some cells still carry an inline centring) */
html.eew-c .eew-price-table td.text-right, html.eew-c .eewc-hours { white-space: nowrap; }
html.eew-c .eew-flag-emoji:empty { display: none; }
html.eew-c .eew-price-val { font-family: var(--eewc-font-display); font-weight: 600; color: var(--text-secondary); }
html.eew-c .eew-price-val.eewc-below { color: var(--eewc-below); }
html.eew-c .eew-price-val.eewc-above { color: var(--eewc-above); }
html.eew-c .eew-price-val.eewc-green { color: var(--eewc-green); }
html.eew-c #best-time .eew-price-val { color: var(--text-primary); }
html.eew-c #best-time .eew-price-val.eewc-green { color: var(--eewc-green); }
html.eew-c .eewc-hours { color: var(--text-secondary); }
html.eew-c .eew-neg-badge { background: var(--eewc-btn-bg); color: var(--eewc-btn-text); border-radius: var(--eewc-r-tag); padding: 2px 7px; font-size: 12px; }
html.eew-c .eew-price-row.has-negative td:first-child { border-left: 0; }
html.eew-c .eew-expand-hint { font-size: 12px; color: var(--text-tertiary); transition: none; }
html.eew-c .eew-renewable-bar { gap: 10px; }
html.eew-c .eew-renewable-bar-track { height: 6px; border-radius: 3px; background: var(--border-light); }
html.eew-c .eew-renewable-bar-fill { border-radius: 3px; background: var(--eewc-green); transition: none; }
html.eew-c .eew-renewable-pct { min-width: 52px; text-align: right; font-family: var(--eewc-font-display); font-size: 15px; font-weight: 600; color: var(--eewc-green); }
html.eew-c .eew-hourly-row td { background: var(--bg-primary); border-bottom: 1px solid var(--border-light); }
html.eew-c .eew-hourly-chart-container { padding: 16px 12px; }
/* "Show more" and "Show less" sit in the middle of their table or list, on every page */
html.eew-c .eew-show-more-sticky, html.eew-c .eew-show-more-outside { justify-content: center !important; padding: 14px 0 0 !important; }
html.eew-c .eewc-city { display: block; font-size: 13px; font-weight: 400; color: var(--text-tertiary); }
html.eew-c #weather-table .eew-country-cell { display: block; }
html.eew-c .eewc-wicon { vertical-align: -3px; margin-right: 4px; color: var(--text-secondary); }
html.eew-c .eewc-impact { font-size: 15px; }

/* A ranking list (Rankings page; the Overview shows two of them, without the bars) */
html.eew-c .eewc-rank-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 15px; }
html.eew-c .eewc-rank-n { flex: none; width: 26px; font-family: var(--eewc-font-display); font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
html.eew-c .eewc-rank-name { flex: none; width: 150px; font-weight: 500; }
html.eew-c .eewc-rank-bar { flex: 1 1 auto; min-width: 0; }
html.eew-c .eewc-rank-val { flex: none; min-width: 104px; text-align: right; font-family: var(--eewc-font-display); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-snapshot img { display: block; max-width: 100%; border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); }

/* Rankings: the two lists share one card, as two columns */
html.eew-c .eew-container > #cheapest {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px 36px; align-content: start;
    box-sizing: border-box; padding: 22px 24px;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card);
}
html.eew-c #cheapest > .eew-card { background: none; border: 0; border-radius: 0; overflow: visible; }
html.eew-c #cheapest .eew-card-header { padding: 0 0 6px; align-items: center; min-height: calc(var(--eewc-ctl-s) + 6px); }
html.eew-c #cheapest .eew-card-title { font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
html.eew-c #cheapest .eew-card-body { padding: 0; }
html.eew-c #cheapest .eew-card-body > div { font-size: 15px; gap: 8px !important; padding: 8px 0; }
html.eew-c #cheapest .eew-card-body > div > span:first-child { flex: none; width: 24px !important; text-align: left !important; color: var(--text-tertiary); font-family: var(--eewc-font-display); font-size: 15px !important; font-weight: 600; font-variant-numeric: tabular-nums; }
html.eew-c #cheapest .eew-card-body > div > span:nth-child(2) { flex: 1 1 auto; min-width: 0 !important; font-weight: 400 !important; }
html.eew-c #cheapest .eew-card-body > div > div { display: none; }
/* (the note of the time of the data, under the name: in these narrow columns it may take two lines instead of running into the value) */
html.eew-c #cheapest .eewc-rank-name .eewc-asof { white-space: normal; }
html.eew-c #cheapest .eew-card-body > div > span:last-child { min-width: 0 !important; font-family: var(--eewc-font-display); font-weight: 600 !important; white-space: nowrap; }
/* The value takes the colour of what the list is about (Overview and Rankings page alike) */
html.eew-c #rank-cheapest > div > span:last-child { color: var(--eewc-below); }
html.eew-c #rank-expensive > div > span:last-child { color: var(--eewc-above); }
html.eew-c #rank-greenest > div > span:last-child { color: var(--eewc-green); }

/* Generation mix: one row per country */
html.eew-c .eewc-mix .eew-gen-grid { display: block; }
html.eew-c .eewc-mix .eew-gen-card {
    display: grid; grid-template-columns: 150px minmax(0, 1fr) 160px; grid-template-areas: "name bar pct" "name legend pct";
    column-gap: 16px; row-gap: 6px; align-items: center;
    padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--border-light); border-radius: 0; box-shadow: none; text-align: left;
}
html.eew-c .eewc-mix .eew-gen-card h3 { grid-area: name; margin: 0; font-family: var(--eewc-font-text); font-size: 16px; font-weight: 600; letter-spacing: 0; }
html.eew-c .eewc-mix .eew-gen-card h3 a { color: inherit; text-decoration: none; }
html.eew-c .eewc-mix .eew-gen-card .ren-pct { grid-area: pct; margin: 0; text-align: right; font-family: var(--eewc-font-display); font-size: 16px; font-weight: 600; color: var(--eewc-green); white-space: nowrap; }
html.eew-c .eewc-mix-bar { grid-area: bar; display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--border-light); }
html.eew-c .eewc-mix .eew-gen-legend { grid-area: legend; justify-content: flex-start; gap: 4px 14px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
html.eew-c .eewc-mix .eew-gen-legend-dot { width: 10px; height: 10px; }
html.eew-c .eewc-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 14px; }
html.eew-c .eewc-more-row { display: flex; flex-wrap: wrap; gap: 8px; }
html.eew-c .eewc-more-row:not(:empty) { padding-top: 14px; }
html.eew-c #auction-show-more, html.eew-c #upcoming-show-more { justify-content: center; }

/* ---------- 6b. The other pages: shared components ----------
   Page title, strip of indicators, grids, forms, charts and notes, with the
   same shapes and type as the Overview. */
html.eew-c .eew-main { padding-top: calc(var(--eewc-head-h) + 40px); }   /* clears the floating navigation */
html.eew-c .eew-main.eewc-main-stage { padding-top: 0; }           /* Overview: the stage starts at the top */
html.eew-c .eew-container > .eew-hero { flex: 1 1 100%; padding: 0; }
html.eew-c .eew-container > .eew-hero h1 { font-size: 28px; }
html.eew-c .eew-container > .eew-hero p { margin-top: 6px; max-width: 920px; font-size: 16px; }
/* Strip of indicators: one card, the indicators divided by lines (the first of each row hides its line under the edge) */
html.eew-c .eew-container > .eew-kpi-row {
    display: grid; flex: 1 1 100%; box-sizing: border-box; padding: 20px 0; overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 0;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card);
}
html.eew-c .eew-container > .eew-kpi-row > .eew-kpi-card { margin-left: -1px; }
/* The four indicators of a country page: four in a row when each has its 200 px, otherwise two and two, never three
   and one (round of 2026-11-23; at 768 px they were three and one). The minimum of a column is a quarter of the row
   from 800 px on and half of it below: clamp() turns on the sign of (800 px − the row). The strips of four of the
   Auction Tracker, the Forward Curves, the Grid Monitor and the Data Centers the same (round of 2026-11-24). */
html.eew-c :is(#country-kpis, #auction-kpis, #forward-kpis, #grid-kpis, #dc-kpis) { grid-template-columns: repeat(auto-fit, minmax(clamp(25%, (800px - 100%) * 999, 50%), 1fr)); }
html.eew-c .eew-kpi-change { margin-top: 2px; font-size: 13.5px; font-weight: 500; }
html.eew-c .eew-kpi-change.positive { color: var(--eewc-green); }
html.eew-c .eew-kpi-change.negative { color: var(--eewc-above); }
html.eew-c .eew-kpi-change.neutral  { color: var(--text-tertiary); }
html.eew-c .eew-grid-2, html.eew-c .eew-grid-3 { gap: 20px; }
html.eew-c .eew-container .eew-card-header > div:first-child { min-width: 0; }
/* Cards inside cards do not repeat the outline */
html.eew-c .eew-container .eew-card .eew-card { border-radius: var(--eewc-r-card); }

/* Form controls */
html.eew-c .eew-select, html.eew-c .eew-input {
    box-sizing: border-box; min-height: var(--eewc-ctl); padding: 0 var(--eewc-pad);
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl);
    background-color: var(--bg-card); color: var(--text-primary);
    font-family: var(--eewc-font-text); font-size: 15px; line-height: 1.2;
    text-align: left; text-align-last: left; text-overflow: ellipsis;
}
html.eew-c .eew-select {
    -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235E6E7C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
html.eew-c[data-theme="dark"] .eew-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23B3C0D2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
html.eew-c .eew-select:focus, html.eew-c .eew-input:focus { border-color: var(--eewc-focus); box-shadow: none; outline: 2px solid var(--eewc-focus); outline-offset: 2px; }
html.eew-c .eew-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-height: var(--eewc-ctl); padding: 0 calc(var(--eewc-pad) + 4px); border: 1px solid var(--eewc-btn-bg); border-radius: var(--eewc-r-ctl);
    background: var(--eewc-btn-bg); color: var(--eewc-btn-text);
    font-family: var(--eewc-font-text); font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    cursor: pointer; transition: none;
}
html.eew-c .eew-btn-primary:hover { background: var(--eewc-btn-bg); opacity: 0.88; transform: none; box-shadow: none; }
/* A card header with filters: the title on the left, the filters to the right, wrapping under the title when there is no room */
html.eew-c .eew-container .eewc-head-filters { flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; padding-bottom: 4px; }
html.eew-c .eewc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
html.eew-c .eewc-filters .eew-select { max-width: 100%; }
html.eew-c .eewc-filters label { font-size: 14px; color: var(--text-secondary); }

/* Filters: a row of capsules. The active ones are dark; a dot carries the colour of a chart series */
html.eew-c .eewc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
html.eew-c .eewc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html.eew-c .eewc-chips-label { margin-right: 4px; font-size: 13.5px; color: var(--text-secondary); white-space: nowrap; }
/* A label and its capsules (24/11/2026): the capsules in a set of their own beside the label, so that a second row lines
   up with the first capsule, not under the label */
html.eew-c .eewc-chips:has(> .eewc-chips-set) { flex-wrap: nowrap; align-items: flex-start; }
html.eew-c .eewc-chips:has(> .eewc-chips-set) > .eewc-chips-label { display: inline-flex; align-items: center; min-height: var(--eewc-ctl); }
html.eew-c .eewc-chips-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; }
html.eew-c .eewc-chip {
    display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box;
    min-height: var(--eewc-ctl); padding: 0 var(--eewc-pad);
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); background: var(--bg-card); color: var(--text-primary);
    font-family: var(--eewc-font-text); font-size: 14.5px; font-weight: 500; line-height: 1.2; white-space: nowrap;
    cursor: pointer; text-decoration: none;
}
html.eew-c .eewc-chip:hover { background: var(--bg-hover); }
html.eew-c .eewc-chip.is-active { background: var(--eewc-btn-bg); border-color: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 600; }
html.eew-c .eewc-chip .eewc-dot { width: 10px; height: 10px; box-shadow: 0 0 0 1.5px var(--bg-card); }   /* the ring keeps a dark dot visible on the active (dark) capsule */
html.eew-c .eewc-field { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
html.eew-c .eewc-foot { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-tertiary); }
html.eew-c .eewc-lead { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
html.eew-c .eewc-sub { font-size: 13px; font-weight: 400; color: var(--text-tertiary); }
html.eew-c .eewc-signal { font-size: 14px; font-weight: 600; white-space: nowrap; }
html.eew-c .eewc-signal.is-good { color: var(--eewc-green); }
html.eew-c .eewc-signal.is-mid  { color: var(--text-secondary); }
html.eew-c .eewc-signal.is-bad  { color: var(--eewc-above); }

/* Large figures inside a card, a progress bar, and the link back at the top of a country page */
html.eew-c .eewc-figures { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-bottom: 16px; }
html.eew-c .eewc-figure-value { font-family: var(--eewc-font-display); font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-figure-value.is-big { font-size: 44px; }
html.eew-c .eewc-figure-value.is-empty { color: var(--text-tertiary); font-weight: 400; }
html.eew-c .eewc-figure-label { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--text-secondary); }
html.eew-c .eewc-target { max-width: 560px; }
html.eew-c .eewc-target .eewc-figure-label { margin: 0 0 6px; }
html.eew-c .eewc-progress { height: 14px; margin-top: 16px; border-radius: 7px; overflow: hidden; background: var(--border-light); }
html.eew-c .eewc-progress-fill { height: 100%; border-radius: 7px; background: var(--eewc-green); }
html.eew-c .eewc-progress-scale { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--text-secondary); }
html.eew-c .eewc-progress-scale strong { font-weight: 600; color: var(--text-primary); }
/* Cards of figures (numbers, progress bars and a short text): everything sits in the middle, the title and the
   subtitle too, with more room between the title and the figures. A Share button stays at the right. */
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 12px; align-items: start; text-align: center; --eew-centred-head: 1; }
/* (--eew-centred-head tells eew-tools.js this header has its title in the middle: when the title and its subtitle do not fit
   in the middle beside the Share button, it adds .eewc-share-below and the button goes to the line under the title, at the right) */
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header.eewc-share-below { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header.eewc-share-below > :first-child { grid-column: 1; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header.eewc-share-below > .eew-btn-group { grid-column: 1; justify-self: end; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header > :first-child { grid-column: 2; min-width: 0; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header > .eew-btn-group { grid-column: 3; justify-self: end; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-body { padding-top: 28px; text-align: center; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) .eewc-figures { justify-content: center; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) :is(.eewc-target, .eewc-figure-note.eewc-para, .eewc-spark) { margin-left: auto; margin-right: auto; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) .eewc-stack { align-items: center; }
html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) .eew-gen-legend { justify-content: center; }
/* From 768 to 1199 px these cards are side by side and narrow: the button is always under the title, with its row kept from the first paint */
@media (min-width: 768px) and (max-width: 1199px) {
    html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header > :first-child { grid-column: 1; }
    html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header > .eew-btn-group { grid-column: 1; justify-self: end; }
    html.eew-c:has(script[src*="eew-tools.js"]) :is(.eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header:not(:has(.eew-btn-group))::after { content: ''; height: var(--eewc-ctl-s); }
}
/* Cards of figures side by side, each as high as the others of its row (the container stretches the row; the section
   passes the height to its card). Country pages: installed capacity and progress, two in a row from 768 px.
   Transition, from 768 px: the two tallest cards, Energy Communities and Policy and Targets, side by side on top, and
   Greenhouse Gas Emissions under them, the whole width, with its figures in one line (the number, the trend and the
   progress bar side by side), so it stays low. Where there is no Energy Communities card (any country but Portugal),
   Policy and Targets takes the whole width. On a phone the three keep their order and their layout. */
@media (min-width: 768px) {
    html.eew-c .eew-container > :is(section:has(> .eew-card > #country-capacity), section:has(> .eew-card > #country-target)) { flex: 1 1 calc((100% - 20px) / 2); max-width: calc((100% - 20px) / 2); }
    html.eew-c .eew-container > :is(#policy, #communities) { flex: 1 1 calc((100% - 20px) / 2); max-width: calc((100% - 20px) / 2); }
    html.eew-c .eew-container:has(> #communities[style*="none"]) > #policy { flex-basis: 100%; max-width: none; }
    html.eew-c .eew-container > #emissions { order: 1; flex: 1 1 100%; max-width: none; }
    html.eew-c .eew-container > #communities { order: 0; }
    html.eew-c .eew-container > #policy { order: 0; }
    html.eew-c #transition-ghg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 48px; }
    html.eew-c #emissions #transition-ghg > :is(.eewc-spark, .eewc-target, .eewc-stack) { margin: 0; }   /* (beats the auto margins of the cards of figures) */
    html.eew-c #emissions #transition-ghg > .eewc-target { flex: 0 1 440px; }
}
/* The shorter card of a row of cards (decision of 24/11/2026). A card as high as its row has room left at its foot when
   its neighbour is taller:
   - an empty state alone (one sentence, as the forward curve of a country without data) sits in the middle of the card,
     up and down;
   - in a card of figures (installed capacity and progress of a country page, the four sectors and Energy Communities of
     the Transition) the content starts at the top, level with the neighbours, and its last block goes down to the foot
     of the card: the progress bar with its scale, the line, the note with its source. A spacer (::before, after the
     content and before that block) takes the room left; when there is none it has no height, so a card as high as its
     content looks as it did. */
html.eew-c .eew-container .eew-card:has(> .eew-card-body > .eew-empty:only-child),
html.eew-c :is(#communities > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) { display: flex; flex-direction: column; }
html.eew-c .eew-container .eew-card > .eew-card-body:has(> .eew-empty:only-child),
html.eew-c :is(#communities > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
html.eew-c .eew-container .eew-card > .eew-card-body:has(> .eew-empty:only-child) { justify-content: center; }
/* the box that holds the blocks: the body itself (capacity), or the one element inside it */
html.eew-c :is(#country-target > .eewc-target, #communities .eew-card-body > div, #transition-sectors > .eew-card > .eew-card-body > div) { flex: 1 1 auto; display: flex; flex-direction: column; }
html.eew-c #country-target > .eewc-target { box-sizing: border-box; width: 100%; }
html.eew-c :is(#country-capacity, #country-target > .eewc-target, #communities .eew-card-body > div, #transition-sectors > .eew-card > .eew-card-body > div)::before { content: ''; flex: 1 1 0; order: 1; }
html.eew-c :is(#country-capacity > .eewc-foot, #country-target > .eewc-target > :is(.eewc-progress, .eewc-progress-scale), #communities .eew-card-body > div > :is(.eewc-figure-note, .eewc-foot), #transition-sectors > .eew-card > .eew-card-body > div > :last-child:not(.eew-empty, .eew-loading)) { order: 2; }
/* Policy and Targets: its two halves side by side whenever the card is wide enough for them, one under the other when not */
html.eew-c #policy > .eew-card > .eew-card-body { container-type: inline-size; }
html.eew-c #policy .eewc-cols-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
html.eew-c #policy .eewc-cols-2 > * + * { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-light); }
@container (min-width: 420px) {
    html.eew-c #policy .eewc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
    html.eew-c #policy .eewc-cols-2 > * + * { margin-top: 0; padding-top: 0; border-top: 0; }
    /* the sectoral shares (in the left half) take a line of their own under the two halves, the width of the card */
    html.eew-c #policy .eewc-cols-2:has(> :first-child > .eewc-subblock) { grid-template-areas: "res ghg" "bar ghg" "sec sec"; row-gap: 0; }
    html.eew-c #policy .eewc-cols-2 > :first-child:has(> .eewc-subblock) { display: contents; }
    html.eew-c #policy .eewc-cols-2 > :first-child > .eewc-stack { grid-area: res; }
    html.eew-c #policy .eewc-cols-2 > :first-child > :is(.eewc-target, .eewc-foot) { grid-area: bar; width: 100%; }
    html.eew-c #policy .eewc-cols-2 > :first-child > .eewc-subblock { grid-area: sec; }
    /* with both halves, they share the rows: the numbers on one line, lined up at the bottom (a label that needs two lines grows
       upwards), and the bars on the next; the sectoral shares stay under both */
    html.eew-c #policy .eewc-cols-2:has(> :nth-child(2)) { grid-template-areas: "res ghg" "bar gbar"; row-gap: 0; }
    html.eew-c #policy .eewc-cols-2:has(> :nth-child(2)):has(> :first-child > .eewc-subblock) { grid-template-areas: "res ghg" "bar gbar" "sec sec"; }
    html.eew-c #policy .eewc-cols-2:has(> :nth-child(2)) > * { display: contents; }
    html.eew-c #policy .eewc-cols-2:has(> :nth-child(2)) > * > .eewc-stack { align-self: end; }
    html.eew-c #policy .eewc-cols-2 > :last-child:not(:first-child) > .eewc-stack { grid-area: ghg; }
    html.eew-c #policy .eewc-cols-2 > :last-child:not(:first-child) > .eewc-target { grid-area: gbar; width: 100%; }
}
html.eew-c .eewc-back { display: inline-flex; align-items: center; min-height: var(--eewc-link); margin: calc((24px - var(--eewc-link)) / 2) 0 0; font-size: 14.5px; color: var(--text-secondary); text-decoration: none; }
html.eew-c .eewc-back:hover { color: var(--text-primary); text-decoration: underline; }
/* Text pages (Methodology): an article in a readable measure, and the list of sources */
html.eew-c .eew-container .eew-card-body.eewc-article { max-width: none; padding-top: 22px; }
html.eew-c .eewc-article > * { max-width: 820px; }
html.eew-c .eewc-article h2 { margin: 28px 0 8px; font-family: var(--eewc-font-display); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; color: var(--text-primary); scroll-margin-top: calc(var(--eewc-head-h) + 42px); }
html.eew-c .eewc-article h2:first-child { margin-top: 0; }
html.eew-c .eewc-article p { margin: 0 0 12px; }
html.eew-c .eewc-article a { color: var(--text-primary); text-decoration: underline; }
html.eew-c .eewc-sources { list-style: none; margin: 14px 0 16px; padding: 0; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-sources li { padding: 11px 0; border-bottom: 1px solid var(--border-light); line-height: 1.5; }
html.eew-c .eewc-sources .eewc-sources-name { font-weight: 600; }
html.eew-c .eewc-sources-text { display: block; margin-top: 2px; font-size: 15px; color: var(--text-secondary); }
/* Sources do not look like links (round of 2026-11-19). Where a licence asks for attribution the link stays and opens
   in a new tab, but it reads as the text around it: no underline, no colour of its own, nothing changes under the
   pointer. The focus outline of the keyboard stays (rule of section 3). */
html.eew-c a.eewc-plain-link, html.eew-c a.eewc-plain-link:hover, html.eew-c .eewc-sources a, html.eew-c .eewc-sources a:hover { color: inherit; text-decoration: none; cursor: text; }
/* Methodology: the index of the sections, written by the page from the titles of the language in use. It is as wide
   as its longest title, starts at the inner margin of the card and stays in view while the page scrolls; the text
   starts right after it. Below 1024 px it is a row of links above the text (rules further down). */
html.eew-c .eew-container .eew-card:has(> .eewc-with-toc) { overflow: visible; }   /* (a card that clips its content cannot keep a part of it in view) */
html.eew-c .eewc-article.eewc-with-toc { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 36px; align-items: start; }
html.eew-c .eewc-article > .eewc-toc { position: sticky; top: calc(var(--eewc-head-h) + 40px); box-sizing: border-box; max-height: calc(100vh - var(--eewc-head-h) - 64px); overflow-y: auto; scrollbar-width: thin; }
html.eew-c .eewc-toc-list { list-style: none; margin: 0; padding: 0; }
html.eew-c .eewc-toc a { display: block; padding: 7px 20px 7px 0; border-right: 1px solid var(--border-light); font-size: 14.5px; line-height: 1.35; color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
html.eew-c .eewc-toc a::after { content: attr(data-text); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 600; }   /* keeps the room the title takes when it is the current one */
html.eew-c .eewc-toc a:hover { color: var(--text-primary); }
html.eew-c .eewc-toc a.is-active { padding-right: 19px; border-right: 2px solid var(--text-primary); color: var(--text-primary); font-weight: 600; }
html.eew-c .eewc-article > .eewc-toc-text { max-width: 1000px; }
html.eew-c .eewc-toc-text > h2:first-child { margin-top: 0; }

/* Room kept from the first paint for what a script fills in later, so that nothing
   below it moves when it arrives (measured with Lighthouse on 2026-11-16) */
html.eew-c #grid-map-toolbar { box-sizing: border-box; min-height: calc(var(--eewc-ctl-s) + 16px); }
html.eew-c #country-subtitle { min-height: 22px; }
html.eew-c #country-prices:has(> .eew-loading) { box-sizing: border-box; min-height: 336px; }
html.eew-c #country-gen:has(> .eew-loading) { box-sizing: border-box; min-height: 192px; }
html.eew-c #digest-content:has(> .eew-loading) { box-sizing: border-box; min-height: 165px; }
html.eew-c #alerts-panel:empty { min-height: calc(var(--eewc-ctl) + 34px); }
html.eew-c #comp-filter-shared:empty { min-height: calc(3 * var(--eewc-ctl) + 12px); }   /* three rows of filters */
html.eew-c #calc-kpis:has(> .eew-loading), html.eew-c #carbon-kpis:has(> .eew-loading) { min-height: 82px; }
html.eew-c .eew-card-body[id^="rank-"]:has(> .eew-loading):not(#cheapest .eew-card-body) { box-sizing: border-box; min-height: 436px; }
html.eew-c #forward-main:has(> .eew-loading) { box-sizing: border-box; min-height: 436px; }
html.eew-c #auction-trend:empty { box-sizing: border-box; min-height: calc(var(--eewc-ctl) + 350px); }
html.eew-c #term-structure-filters:empty { min-height: var(--eewc-ctl); }
html.eew-c #storage-kpis:empty, html.eew-c #interconn-kpis:empty { min-height: 57px; }
html.eew-c #storage-table:has(> .eew-loading) { min-height: 662px; }
html.eew-c #calc-results:empty { min-height: 1278px; }
html.eew-c #carbon-table:has(> .eew-loading) { min-height: 1158px; }
html.eew-c #alert-ref-prices:has(> .eew-loading) { min-height: 1278px; }
/* Insights, Comparator and Auction Tracker: the charts, the summary table and the count of auctions keep their place
   (the smallest height each one has at any width, so the room kept is never more than what arrives) */
html.eew-c #ppa-index-chart:has(> .eew-loading) { box-sizing: border-box; min-height: calc(var(--eewc-ctl) + 479px); }
html.eew-c #multiyear-chart:has(> .eew-loading) { box-sizing: border-box; min-height: calc(2 * var(--eewc-ctl) + 458px); }
html.eew-c #comp-hourly:has(> .eew-loading), html.eew-c #comp-forward:has(> .eew-loading) { box-sizing: border-box; min-height: 467px; }
html.eew-c #comp-summary:has(> .eew-loading) { box-sizing: border-box; min-height: 198px; }
html.eew-c #auction-count:empty { min-height: 21px; }
/* Site Status: the indicators and the table of datasets keep their final height while the data is on its way */
html.eew-c #status-summary:empty { box-sizing: border-box; min-height: 130px; }
html.eew-c #status-table:has(> .eew-loading) { box-sizing: border-box; min-height: calc(11 * var(--eewc-ctl) + 283px); }   /* eleven rows, each with a button */
@media (max-width: 849px) { html.eew-c #status-summary:empty { min-height: 202px; } }
/* Methodology and Glossary: the text is written by a script; until then its card fills the window, so the footer is never drawn above the text */
html.eew-c #meth-body:empty, html.eew-c #glossary-content:empty { box-sizing: border-box; min-height: 100vh; }

/* Glossary: one term after another; Status: labels of tables, the log of an update, raw text */
html.eew-c .eewc-term { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
html.eew-c .eewc-term:first-child { padding-top: 0; }
html.eew-c .eewc-term h3 { margin: 0 0 4px; font-family: var(--eewc-font-display); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
html.eew-c .eewc-article .eewc-term p { margin: 0; }
/* Glossary: two columns from 1024 px on, filling the card (the terms read from left to right, row by row) */
@media (min-width: 1024px) {
    html.eew-c #glossary-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-items: start; }
    html.eew-c #glossary-content > * { max-width: none; }
    html.eew-c #glossary-content > .eewc-term { align-self: stretch; }
    html.eew-c #glossary-content > .eewc-term:nth-child(2) { padding-top: 0; }
    html.eew-c #glossary-content > .eewc-foot { grid-column: 1 / -1; }
}
html.eew-c .eewc-article > .eewc-foot { margin-top: 18px; }
html.eew-c .eewc-table-label { margin: 0 0 4px; }
html.eew-c .eewc-foot.eewc-foot-gap { margin-bottom: 22px; }
html.eew-c .eewc-progress-log { flex: 1 1 100%; }
html.eew-c .eewc-progress-log > div { padding: 4px 0; }
html.eew-c .eewc-progress-log code, html.eew-c .eewc-pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
html.eew-c .eewc-pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
html.eew-c .eew-kpi-value.eewc-kpi-text { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
html.eew-c .eew-kpi-value.eewc-green { color: var(--eewc-green); }
html.eew-c .eew-kpi-value.eewc-above { color: var(--eewc-above); }

/* Price Alerts: the form in one row, the list of alerts, an icon button to close or remove */
html.eew-c .eewc-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
html.eew-c .eewc-form-row .eew-select:first-child { flex: 0 1 220px; }
html.eew-c .eewc-alert-list { display: flex; flex-direction: column; max-width: 720px; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: calc(var(--eewc-ctl) + 4px); border-bottom: 1px solid var(--border-light); font-size: 15px; }
/* An alert whose condition is met: a capsule before the text and a 3 px bar on the left of the row, both in the
   colour the design gives to the direction of the alert: the petrol of "below the average" for "falls below",
   the burgundy of "above" for "rises above" (the tokens follow the theme) */
html.eew-c .eewc-alert-row.is-triggered { padding-left: 14px; box-shadow: inset 3px 0 0 var(--eewc-below); }
html.eew-c .eewc-alert-row.is-triggered.is-above { box-shadow: inset 3px 0 0 var(--eewc-above); }
/* E-mail alerts and the account (Price Alerts, eew-accounts.js, 24/11/2026) */
html.eew-c #email-alerts[hidden] { display: none; }
html.eew-c .eewc-acc-email { flex: 1 1 260px; min-width: 0; }
html.eew-c .eewc-acc-head { max-width: 720px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; font-size: 15px; overflow-wrap: anywhere; }
html.eew-c .eewc-acc-plan { margin: 0 0 14px; }
html.eew-c .eewc-acc-alert { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 0; overflow-wrap: anywhere; }
html.eew-c .eewc-acc-add { margin-top: 14px; }
html.eew-c .eewc-acc-add .eew-select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }   /* (the longest kind, in French, is wider than a phone) */
html.eew-c .eewc-acc-warn { color: var(--eewc-above); }
html.eew-c .eewc-acc-foot { max-width: 720px; display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-acc-del { color: var(--eewc-above); }
html.eew-c .eewc-acc-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
html.eew-c .eewc-acc-sub:empty { display: none; }
/* The Pro lock: sample alerts blurred under a card that says what Pro adds and when */
/* (the preview and the card in the same cell of a grid: the box is as high as the taller of the two) */
html.eew-c .eewc-pro-lock { display: grid; max-width: 720px; margin-top: 14px; border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); overflow: hidden; }
html.eew-c .eewc-pro-preview, html.eew-c .eewc-pro-card { grid-area: 1 / 1; }
html.eew-c .eewc-pro-preview { padding: 6px 16px; filter: blur(4px); opacity: 0.6; pointer-events: none; user-select: none; }
html.eew-c .eewc-pro-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; background: color-mix(in srgb, var(--bg-card) 72%, transparent); font-size: 15px; }
/* (30/11/2026) The tag «PRO»: light, with a padlock drawn in line; inside a button, after its word; larger on the lock card */
html.eew-c .eewc-pro-tag { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 7px; border-radius: 999px; background: var(--bg-hover); color: var(--text-secondary); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em; }
html.eew-c .eewc-pro-tag .eewc-ico { width: 11px; height: 11px; }
html.eew-c .eewc-btn > .eewc-pro-tag { margin-left: 4px; }
html.eew-c .eewc-pro-tag.eewc-pro-tag-lg { padding: 3px 10px; font-size: 12.5px; }
html.eew-c .eewc-pro-tag.eewc-pro-tag-lg .eewc-ico { width: 13px; height: 13px; }
html.eew-c .eewc-alert-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; padding: 6px 0; }
html.eew-c .eewc-alert-tag { flex: none; padding: 1px 8px; border: 1px solid currentColor; border-radius: var(--eewc-r-tag); color: var(--eewc-below); font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
html.eew-c .eewc-alert-row.is-above .eewc-alert-tag { color: var(--eewc-above); }
html.eew-c .eewc-close {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--eewc-ctl); height: var(--eewc-ctl); margin: 0; padding: 0;
    border: 0; border-radius: var(--eewc-r-ctl); background: none; color: var(--text-secondary); font-size: 15px; line-height: 1; cursor: pointer;
}
html.eew-c .eewc-close:hover { background: var(--bg-hover); color: var(--text-primary); }
html.eew-c .eew-alert-triggered { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; animation: none; }
html.eew-c .eew-alert-triggered > div { flex: 1 1 auto; min-width: 0; }
html.eew-c .eew-alert-triggered .eewc-close { margin: -8px -10px -8px 0; }
html.eew-c p.eewc-prose { margin: 0; }

/* Calculator: a number field, its unit, quiet cells, a second heading inside a card */
html.eew-c .eew-input.eewc-input-num { width: 116px; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-unit { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
html.eew-c .eew-price-table td.eewc-muted { color: var(--text-tertiary); }
html.eew-c .eew-container .eew-card-header.eewc-head-ruled { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--border-light); }

/* Names of the series of a chart, each with a dot in its colour (Comparator) */
html.eew-c .eewc-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: var(--text-secondary); }
html.eew-c .eewc-key { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
html.eew-c th .eewc-key { justify-content: center; }

/* Transition: the country selector (the rules used to be injected by eew-transition.js),
   the blocks of the sections and the legend of the map */
html.eew-c .eew-dd { position: relative; display: inline-block; flex: none; }
html.eew-c .eew-dd-trigger {
    position: relative; display: inline-flex; align-items: center; box-sizing: border-box;
    min-height: var(--eewc-ctl); padding: 0 40px 0 16px;
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); background: var(--bg-card); color: var(--text-primary);
    font-family: var(--eewc-font-text); font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-align: left; cursor: pointer;
}
html.eew-c .eew-dd-trigger:focus-visible { outline: 2px solid var(--eewc-focus); outline-offset: 2px; }
html.eew-c .eew-dd-sizer { visibility: hidden; white-space: nowrap; }
html.eew-c .eew-dd-current { position: absolute; left: 16px; right: 40px; top: 50%; transform: translateY(-50%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
html.eew-c .eew-dd-chevron { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary); transition: transform 0.15s ease; }
html.eew-c .eew-dd.open .eew-dd-chevron { transform: translateY(-50%) rotate(180deg); }
html.eew-c .eew-dd-panel {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 1000;
    min-width: 100%; width: max-content; max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); box-shadow: var(--eewc-panel-shadow);
    scrollbar-width: thin; scrollbar-color: var(--border-color) transparent;
}
html.eew-c .eew-dd-panel[hidden] { display: none; }
html.eew-c .eew-dd-option { display: flex; align-items: center; min-height: var(--eewc-ctl); padding: 0 12px; border-radius: var(--eewc-r-tag); font-size: 15px; color: var(--text-primary); white-space: nowrap; cursor: pointer; }
html.eew-c .eew-dd-option:hover, html.eew-c .eew-dd-option.active { background: var(--bg-hover); }
html.eew-c .eew-dd-option[aria-selected="true"] { font-weight: 600; }
html.eew-c .eewc-sector-grid, html.eew-c .eew-container > section.eewc-sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
html.eew-c .eewc-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
html.eew-c .eewc-figure-note { font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
html.eew-c .eewc-figure-note strong, html.eew-c .eewc-foot strong { font-weight: 600; color: var(--text-primary); }
html.eew-c .eewc-figure-note.eewc-para { max-width: 760px; margin: 16px 0 0; font-size: 15px; line-height: 1.55; }
html.eew-c .eewc-spark { display: block; margin-top: 14px; color: var(--eewc-below); }
html.eew-c .eewc-subblock { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-subblock > .eewc-figures { margin: 10px 0 0; }
html.eew-c .eewc-progress-head { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--text-secondary); }
html.eew-c .eewc-progress-head strong { font-weight: 600; color: var(--text-primary); }
html.eew-c .eewc-progress-head + .eewc-progress { margin-top: 6px; }
html.eew-c .eewc-figure-value small { margin-left: 2px; font-family: var(--eewc-font-text); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--text-secondary); }
html.eew-c .eewc-figure-value.is-small { font-size: 22px; }
html.eew-c .eewc-figures.is-compact { gap: 12px 32px; margin-bottom: 0; }
html.eew-c .eewc-cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; align-items: start; }
html.eew-c .eewc-cols-2 > :only-child { grid-column: 1 / -1; }
html.eew-c #transition-legend-slot { width: 340px; max-width: calc(100% - 32px); }
html.eew-c .eewc-mapnote { padding: 12px 16px; border-top: 1px solid var(--border-light); line-height: 1.5; }
html.eew-c .eew-kpi-card > .eewc-asof { margin-top: 2px; }

/* Insights: the digest as running text, the records as rows, the notes at the foot of a card */
html.eew-c .eewc-prose { max-width: 920px; font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
html.eew-c .eewc-prose h3 { margin: 0 0 10px; font-family: var(--eewc-font-display); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
html.eew-c .eewc-prose p { margin: 0 0 8px; }
html.eew-c .eewc-prose p:last-child { margin-bottom: 0; }
html.eew-c .eewc-prose strong { font-weight: 600; color: var(--text-primary); }
html.eew-c .eewc-prose strong.eewc-below { color: var(--eewc-below); }
html.eew-c .eewc-prose strong.eewc-above { color: var(--eewc-above); }
html.eew-c .eewc-green, html.eew-c .eewc-prose strong.eewc-green { color: var(--eewc-green); }
html.eew-c .eewc-prose .eewc-asof { display: inline; font-size: 14px; white-space: normal; }
html.eew-c .eewc-record { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
html.eew-c .eewc-record:first-child { padding-top: 0; }
html.eew-c .eewc-record-kind { padding-top: 2px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--text-secondary); }
html.eew-c .eewc-record-text { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--text-primary); }
html.eew-c .eewc-record .eewc-sub { display: block; margin-top: 4px; }
html.eew-c .eew-container .eew-card-body.eewc-card-note { padding-top: 14px; border-top: 1px solid var(--border-light); }
html.eew-c .eew-container .eew-card-body.eewc-card-note:empty { display: none; }   /* (the note of the Spark Spread comes with its data) */
html.eew-c .eewc-card-note .eewc-foot { margin: 0; }
html.eew-c .eewc-foot.eewc-foot-lead { margin: 10px 0 14px; }
html.eew-c .eewc-foot.eewc-foot-ruled { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-chips.eewc-chips-block { margin-bottom: 16px; }
html.eew-c .eewc-foot a { color: var(--text-secondary); text-decoration: underline; }
html.eew-c .eewc-foot a:hover { color: var(--text-primary); }
/* Stacked bar of sources outside the Overview, and its legend in one column */
html.eew-c .eewc-mix-bar.is-tall { height: 20px; margin-bottom: 14px; }
html.eew-c .eew-gen-legend { gap: 4px 14px; font-size: 14px; line-height: 1.4; color: var(--text-secondary); justify-content: flex-start; }
html.eew-c .eew-gen-legend strong { font-weight: 500; color: var(--text-primary); }
html.eew-c .eew-gen-legend-dot { width: 10px; height: 10px; }
html.eew-c .eewc-legend-col { flex-direction: column; align-items: flex-start; gap: 6px; }
/* Generation Mix of a country page: the card is as high as the one beside it and the items of the legend share that height */
html.eew-c .eew-card:has(> #country-gen) { display: flex; flex-direction: column; }
html.eew-c #country-gen { flex: 1 1 auto; display: flex; flex-direction: column; }
html.eew-c #country-gen > .eewc-legend-col { flex: 1 1 auto; flex-wrap: nowrap; justify-content: space-between; }
html.eew-c .eew-price-table tr.eewc-total-row td { border-top: 1px solid var(--border-color); }

/* A row of indicators inside a card (not the strip at the top of a page): the label and the number in the
   middle of each cell, as in the strips (round of 2026-11-23; they were on the left) */
html.eew-c .eew-card-body > .eew-kpi-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 0; margin: 0; overflow: hidden;
}
html.eew-c .eew-card-body > .eew-kpi-row > .eew-kpi-card { margin-left: -1px; padding: 2px 24px; align-items: center; text-align: center; }
html.eew-c .eew-card-body > .eew-kpi-row .eew-kpi-value { font-size: 28px; }
/* The cell with the name of a project (its note has a column of its own, at the end of the row) */
html.eew-c .eewc-cell-main { min-width: 150px; }
html.eew-c .eewc-cell-main strong { font-weight: 600; }
html.eew-c td .eewc-sub { display: block; line-height: 1.4; }
html.eew-c .eewc-nowrap { white-space: nowrap; }

/* Links inside a line of text — the name of a country in a table, the link at the foot of a card or of an empty
   state — are 44 px high under a finger (design-c.md), with no change to the layout: the padding reaches above and
   below the line, and a negative margin as large gives the room back where the link is a flex item (the cell of a
   country); an inline link does not move its line anyway (round of 2026-11-23; they were 17 to 21 px) */
@media not all and (hover: hover) and (pointer: fine) {
    html.eew-c .eew-price-table .eew-country-cell a, html.eew-c .eewc-foot a, html.eew-c .eew-empty a:not(.eewc-btn) {
        --eewc-tap: max(0px, calc((46px - 1.4em) / 2));
        padding-block: var(--eewc-tap); margin-block: calc(-1 * var(--eewc-tap));
    }
}

/* Charts, notes, empty states */
html.eew-c .eew-chart-container { padding: 0; }
html.eew-c .eew-empty { padding: 28px 0; color: var(--text-secondary); }
html.eew-c .eew-empty p { font-size: 15px; }
html.eew-c .eew-setup-notice { border-radius: var(--eewc-r-card); border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); font-size: 15px; }
html.eew-c .eew-alert-negative, html.eew-c .eew-alert-triggered {
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); background: var(--bg-card); color: var(--text-primary);
    font-size: 15px; line-height: 1.4; padding: 14px 18px;
}
html.eew-c .eew-code-block { border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); background: var(--bg-primary); color: var(--text-primary); font-size: 13.5px; }
html.eew-c .eew-tool-link { border-radius: var(--eewc-r-card); border: 1px solid var(--border-color); background: var(--bg-card); box-shadow: none; transition: none; }
html.eew-c .eew-tool-link:hover { background: var(--bg-hover); transform: none; box-shadow: none; border-color: var(--border-color); }
/* Colour only with meaning: a price is petrol when low and burgundy when high */
html.eew-c .eew-price-low  { color: var(--eewc-below); }
html.eew-c .eew-price-mid  { color: var(--text-primary); }
html.eew-c .eew-price-high { color: var(--eewc-above); }

/* ---------- 7. Footer ---------- */
html.eew-c .eew-footer { margin-top: 0; padding: 12px 0; background: var(--bg-card); border-top: 1px solid var(--border-color); font-size: 15px; color: var(--text-secondary); }
html.eew-c .eew-footer-inner { box-sizing: border-box; max-width: calc(1392px + 2 * var(--eewc-gutter)); padding: 0 var(--eewc-gutter); gap: 8px 24px; }
html.eew-c .eew-footer strong { font-weight: 600; color: var(--text-primary); }
html.eew-c #footer-updated { font-size: 13px !important; }
html.eew-c .eew-footer-links { gap: 4px 20px; flex-wrap: wrap; }
html.eew-c .eew-footer-links a { display: inline-flex; align-items: center; min-height: var(--eewc-link); font-size: 15px; color: var(--text-secondary); text-decoration: none; }
html.eew-c .eew-footer-links a:hover { color: var(--text-primary); }
html.eew-c .eew-footer-sources { font-size: 13px; color: var(--text-secondary); }
/* The e-mail address has a line of its own, above the copyright line, at the right of the block */
html.eew-c .eew-footer-sources a { display: flex !important; align-items: center; width: fit-content; min-height: var(--eewc-link); margin: 0 0 0 auto !important; color: var(--text-secondary) !important; text-decoration: none; }
html.eew-c .eew-footer-sources a:hover { color: var(--text-primary) !important; }
/* From 768 px down the three blocks of the footer are stacked (rule of part 1): they sit in the middle */
@media (max-width: 768px) {
    html.eew-c .eew-footer-inner { flex-direction: column; align-items: center; text-align: center; }
    html.eew-c .eew-footer-links { justify-content: center; }
    html.eew-c .eew-footer-sources { max-width: none; text-align: center; }
    html.eew-c .eew-footer-sources a { margin: 0 auto !important; }
}

/* ---------- 8. Dark theme (board D, with the shapes and the type of C) ---------- */
html.eew-c[data-theme="dark"] {
    color-scheme: dark;
    --bg-primary: #0E1A2B;
    --bg-secondary: #15243A;
    --bg-tertiary: #0E1A2B;
    --bg-card: #15243A;
    --bg-hover: #1E3150;
    --text-primary: #EAF0F7;
    --text-secondary: #B3C0D2;
    --text-tertiary: #93A3B8;
    --text-inverse: #0E1A2B;
    --border-color: #2E405B;
    --border-light: #24354D;
    --accent-blue: #78C1CC;
    --accent-blue-hover: #9DD6DF;
    --accent-green: #4CC3A4;
    --accent-red: #EB98A6;
    --accent-purple: #EAF0F7;
    --chart-renewable: #4CC3A4;
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 6px 18px rgba(0, 0, 0, 0.35);
    --eewc-sea: #0E1A2B;
    --eewc-below: #78C1CC;
    --eewc-above: #EB98A6;
    --eewc-green: #4CC3A4;
    --eewc-btn-bg: #EAF0F7;
    --eewc-btn-text: #0E1A2B;
    --eewc-focus: #8CD5E1;
    --eewc-panel-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --eewc-mix-coal: #8A97A3;   /* readable on the dark cards */
    --eewc-mix-pumped: #A9ACF0; /* pumped storage (24/11/2026): the navy of the light theme would vanish on the dark cards */
    --eewc-mix-gas: #C76276;    /* the burgundy of the gas, lighter on the dark cards */
}

/* ---------- 9. Narrower screens ---------- */
@media (max-width: 1365px) {
    /* The navigation folds into the menu button (same rules as .eewc-nav-folded). From 1366 px: with the Radar
       entry (2026-11-20) the bar does not fit at 1280 px in Spanish (26 px short, measured with the site's typefaces) */
    html.eew-c .eew-menu-toggle { display: flex; }
    html.eew-c .eew-nav {
        display: none; position: absolute; top: calc(100% + 8px); right: 0; left: auto; width: min(320px, 100%);
        box-sizing: border-box; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
        background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card);
        box-shadow: var(--eewc-panel-shadow); z-index: 1001;
    }
    html.eew-c .eew-nav.open { display: flex; position: absolute; top: calc(100% + 8px); right: 0; left: auto; padding: 8px; border: 1px solid var(--border-color); }
    html.eew-c .eew-nav a { border-radius: var(--eewc-r-tag); }
    html.eew-c .eew-nav-dropdown { display: none !important; }
    html.eew-c .eew-nav.open .eew-mobile-tool { display: inline-flex !important; padding: 0 11px; font-size: 14.5px; }
}
@media (max-width: 1199px) {
    /* No room kept for the country card: it opens over the map. The banner of a past date starts after the zoom buttons
       (it used to sit lower, at the left, where the panel of the layers covered the start of its sentence) */
    html.eew-c .eewc-banner { left: calc(var(--eewc-gutter) + var(--eewc-layers-w) + 16px + var(--eewc-ctl-s) + 16px); right: var(--eewc-gutter); margin: 0; max-width: none; justify-content: flex-start; }
}

@media (max-width: 1023px) {
    /* Methodology: the index goes above the text, as a row of links (they wrap; on a phone they are one row that slides sideways) */
    html.eew-c .eewc-article.eewc-with-toc { display: block; }
    html.eew-c .eewc-article > .eewc-toc { position: static; max-width: none; max-height: none; overflow: visible; margin: 0 0 22px; }
    html.eew-c .eewc-toc-list { display: flex; flex-wrap: wrap; gap: 6px; }
    html.eew-c .eewc-toc-list > li { flex: none; }
    html.eew-c .eewc-toc a, html.eew-c .eewc-toc a.is-active {
        display: inline-flex; align-items: center; box-sizing: border-box; min-height: var(--eewc-ctl); padding: 0 12px;
        border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); background: var(--bg-card);
        font-size: 14.5px; font-weight: 500; line-height: 1.2; color: var(--text-primary); white-space: nowrap;
    }
    html.eew-c .eewc-toc a::after { display: none; }
    html.eew-c .eewc-toc a.is-active { background: var(--eewc-btn-bg); border-color: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 600; }
}
/* Phone: nothing floats over the map except the zoom buttons and the labels */
@media (max-width: 767px) {
    html.eew-c { --eewc-gutter: 16px; }
    /* The navigation becomes a bar at the top */
    html.eew-c .eew-header { padding: 0; pointer-events: auto; }
    html.eew-c .eew-header-inner { padding: 8px 12px 8px 16px; gap: 8px; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
    html.eew-c .eew-main, html.eew-c .eew-main.eewc-main-stage { padding-top: calc(var(--eewc-ctl) + 17px); }   /* the bar: a control, 8 px above and below it, the line */
    html.eew-c main section[id], html.eew-c main .eew-card[id] { scroll-margin-top: calc(var(--eewc-ctl) + 29px); }
    html.eew-c .eew-controls { gap: 8px; }
    html.eew-c .eew-nav, html.eew-c .eew-nav.open { top: calc(100% + 4px); right: 8px; width: min(320px, calc(100% - 16px)); }

    html.eew-c .eewc-stage { height: auto; overflow: visible; background: transparent; display: flex; flex-direction: column; gap: 12px; }
    html.eew-c .eewc-stage > #europe-map { position: relative; top: auto; right: auto; bottom: auto; left: auto; flex: none; height: 60vh; height: 60svh; min-height: 320px; }
    html.eew-c #europe-map .maplibregl-ctrl-top-left { display: block !important; top: 12px; left: 12px; }
    html.eew-c .eewc-mapbar { padding: 0 16px 14px; justify-content: flex-start; }
    html.eew-c .eewc-mapbox > .eew-map-container { height: 60vh; height: 60svh; min-height: 320px; }
    html.eew-c .eewc-mapbox > .eewc-layers-slot { position: static; margin: 12px 16px; min-height: 0; }
    html.eew-c .eewc-mapbox > .eewc-maplegend-slot { position: static; margin: 12px 16px; }
    html.eew-c .eewc-maplegend-slot .eewc-maplegend { display: flex; flex-wrap: wrap; gap: 2px 14px; }
    html.eew-c .eewc-maplegend-slot .eewc-maplegend-title { flex: 1 1 100%; }
    html.eew-c .eewc-mapbox .maplibregl-ctrl-top-left, html.eew-c .eewc-mapbox.has-layers .maplibregl-ctrl-top-left { top: 12px; left: 12px; }
    html.eew-c .eewc-mapnote { padding: 12px 16px; }
    html.eew-c .eewc-panel { box-shadow: none; }
    html.eew-c .eewc-layers-slot, html.eew-c .eewc-dock, html.eew-c .eewc-country-slot, html.eew-c .eewc-banner {
        position: static; width: auto; max-width: none; max-height: none; margin: 0 var(--eewc-gutter);
    }
    html.eew-c .eewc-banner { justify-content: flex-start; }
    html.eew-c .eewc-btn.eew-show-mobile { display: inline-flex; }
    /* Map bar: title, note, then the date and the two buttons in one row */
    html.eew-c #overview-map-toolbar { display: contents; }
    html.eew-c .eewc-date-note { order: 2; flex: 1 1 100%; text-align: left; }
    html.eew-c #map-date-today-btn { order: 3; }
    html.eew-c .eewc-date-field { order: 4; flex: 1 1 168px; min-width: 0; }
    html.eew-c .eewc-date-field input[type="date"] { flex: 1 1 auto; min-width: 0; padding: 0 10px; }
    html.eew-c .eewc-date-field .eewc-date-btn { flex: 1 1 auto; min-width: 0; }
    html.eew-c .eewc-timeline .eew-btn-group { order: 6; }
    html.eew-c .eewc-btns-ph { order: 5; }
    html.eew-c .eewc-timeline .eew-export-btn, html.eew-c .eewc-btns-ph > .eewc-btn { padding: 0 10px; }
    html.eew-c .eewc-layers { width: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
    html.eew-c .eewc-record { grid-template-columns: minmax(0, 1fr); }
    html.eew-c #grid-map-toolbar { min-height: 84px; }
    html.eew-c #country-subtitle { min-height: 45px; }
    html.eew-c #country-prices:has(> .eew-loading) { min-height: 330px; }
    html.eew-c #digest-content:has(> .eew-loading) { min-height: 264px; }
    html.eew-c #alerts-panel:empty { min-height: calc(3 * var(--eewc-ctl) + 69px); }   /* three rows of controls, their gaps and margin, two lines of note */
    html.eew-c #comp-filter-shared:empty { min-height: 594px; }
    html.eew-c #calc-kpis:has(> .eew-loading) { min-height: 180px; }
    html.eew-c #carbon-kpis:has(> .eew-loading) { min-height: 155px; }
    html.eew-c .eew-card-body[id^="rank-"]:has(> .eew-loading):not(#cheapest .eew-card-body) { min-height: 550px; }
    html.eew-c #forward-main:has(> .eew-loading) { min-height: 430px; }
    html.eew-c #auction-trend:empty { min-height: 538px; }
    html.eew-c #term-structure-filters:empty { min-height: 198px; }
    html.eew-c #calc-results:empty { min-height: 1339px; }
    html.eew-c #carbon-table:has(> .eew-loading) { min-height: 1219px; }
    html.eew-c #status-summary:empty { min-height: 193px; }
    html.eew-c #status-table:has(> .eew-loading) { min-height: 1075px; }
    html.eew-c #comp-hourly:has(> .eew-loading), html.eew-c #comp-forward:has(> .eew-loading) { min-height: 461px; }
    /* Infrastructure on a phone: the notes of the three tables are cut to two lines; one that does not fit
       opens on a tap (eew-infra.js marks it with is-cut and, when open, is-open) */
    html.eew-c #storage-table .eewc-fold, html.eew-c #interconn-table .eewc-fold, html.eew-c #hydrogen-table .eewc-fold {
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
    }
    html.eew-c #storage-table .eewc-fold.is-open, html.eew-c #interconn-table .eewc-fold.is-open, html.eew-c #hydrogen-table .eewc-fold.is-open {
        display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible;
    }
    html.eew-c .eewc-fold.is-cut { cursor: pointer; min-height: var(--eewc-ctl); }   /* 44 px under a finger: two lines of a note are 42 (round of 2026-11-23) */
    /* The Share button is added by eew-tools.js after the first paint. In a card header with a
       subtitle it takes a row of its own on a phone: the row is kept for it from the start. */
    html.eew-c:has(script[src*="eew-tools.js"]) main:not(.eewc-main-stage) .eew-card > .eew-card-header:first-child:not([data-no-share]):has(.eew-card-subtitle:not(.eew-hide-mobile)):not(:has(.eew-btn-group))::after { content: ''; flex: 0 0 100%; height: var(--eewc-ctl-s); }
    html.eew-c main:not(.eewc-main-stage) .eew-card > .eew-card-header:first-child:has(.eew-card-subtitle:not(.eew-hide-mobile)) > .eew-btn-group { flex: 0 0 100%; }
    /* (not on the Overview: its cards keep the arrangement approved on 2026-11-15) */
    /* The PNG and Share buttons of the Data Centers map arrive with the map: their row is kept for them */
    html.eew-c #dc-map-section .eew-card-header:not(:has(.eew-btn-group))::after,
    html.eew-c #cross-border-flows .eew-card-header:not(:has(.eew-btn-group))::after { content: ''; flex: 0 0 100%; height: var(--eewc-ctl-s); }
    /* ...and they sit on a row of their own from the start (Share comes first, PNG when the map is ready) */
    html.eew-c #dc-map-section .eew-card-header > .eew-btn-group,
    html.eew-c #cross-border-flows .eew-card-header > .eew-btn-group { flex: 0 0 100%; }
    /* Cards of figures: the title in the middle and the Share button on the row below it, at the right (the row is kept for it from the start) */
    html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header > :first-child, html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header > .eew-btn-group { grid-column: 1; }
    html.eew-c:has(script[src*="eew-tools.js"]) :is(.eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-header:not(:has(.eew-btn-group))::after { content: ''; height: var(--eewc-ctl-s); }
    html.eew-c :is(#emissions > .eew-card, #policy > .eew-card, #communities > .eew-card, #electricity > .eew-card, #transition-sectors > .eew-card, .eew-card:has(> #country-capacity), .eew-card:has(> #country-target)) > .eew-card-body { padding-top: 20px; }
    /* Country page: the unit of the price goes under the number, in the middle, in every language (the room for it is kept
       from the first paint, when the value is still a dash) */
    html.eew-c #country-kpis .eew-kpi-value small { display: block; margin: 4px 0 0; line-height: 1.2; }
    html.eew-c #country-kpis > .eew-kpi-card:first-child .eew-kpi-value { min-height: calc(1em + 23.2px); }
    /* Price Alerts: the country takes the whole width, the condition and the value share the next line, the button takes
       the whole width; the Share button sits at the right of the title, as in the other cards */
    html.eew-c #alerts-panel .eewc-form-row .eew-select:first-child { flex: 1 1 100%; }
    html.eew-c #alerts-panel #alert-direction-field { flex: 0 1 auto; min-width: 0; }   /* (the select of the site, eew-select.js) */
    html.eew-c #alerts-panel #alert-threshold { flex: 1 1 0; width: auto; min-width: 72px; }
    html.eew-c #alerts-panel > .eewc-foot { min-height: 3em; }   /* two lines (13 px × 1.5) in every language */
    html.eew-c #alerts-panel .eewc-form-row > .eew-btn-primary { flex: 1 1 100%; }
    /* Methodology: the title of the page, the row of the index (when it fits) and the titles of the sections in the middle */
    html.eew-c #meth-title, html.eew-c .eewc-toc-text > h2, html.eew-c .eewc-toc-text > p { text-align: center; }
    /* ...and the lists of the text too (the list of sources included), with the marker, where there is one, next to
       the first line; the index (the row that slides sideways) and the tables stay as they are */
    html.eew-c .eewc-toc-text > :is(ul, ol) { padding-left: 0; list-style-position: inside; }
    html.eew-c .eewc-toc-text > :is(ul, ol) > li { text-align: center; }
    html.eew-c .eewc-toc-list > li:first-child { margin-left: auto; }
    html.eew-c .eewc-toc-list > li:last-child { margin-right: auto; }
    html.eew-c .eew-dd { display: block; width: 100%; }
    html.eew-c .eew-dd-trigger { display: flex; width: 100%; }
    html.eew-c .eew-dd-panel { left: 0; right: 0; width: auto; }
    html.eew-c .eewc-cols-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
    html.eew-c .eewc-cols-2 > * + * { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-light); }
    html.eew-c #transition-legend-slot { width: auto; max-width: none; }
    html.eew-c .eewc-layer-list { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; }   /* a button that does not fit goes to the row below */
    html.eew-c .eewc-layer-btn { flex: 1 1 auto; width: auto; min-width: var(--eewc-ctl-s); justify-content: center; padding: 0 6px; font-size: 14.5px; white-space: nowrap; }   /* never narrower than a control (French «Prix» was 42 px) */
    html.eew-c .eewc-currency { flex: 0 0 auto; margin: 0; padding: 0 0 0 8px; border-top: 0; border-left: 1px solid var(--border-light); }
    html.eew-c .eewc-cur-btn { flex: 0 0 auto; padding: 0 6px; font-size: 13.5px; }
    html.eew-c .eewc-dock { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; pointer-events: auto; }
    /* The room of each panel is kept from the first paint (the panels are filled in
       by script a moment later), so nothing below them moves */
    html.eew-c .eewc-layers-slot { min-height: 62px; }
    html.eew-c .eewc-legend-slot { flex: none; min-height: 62px; display: block; }
    html.eew-c .eewc-timeline { flex: none; min-height: 132px; padding: 10px 12px; align-content: flex-start; }
    html.eew-c .eewc-timeline-title { flex-basis: 100%; }
    html.eew-c .eewc-country-slot:empty { display: none; }
    html.eew-c .eewc-country-slot { display: block; pointer-events: auto; }
    html.eew-c .eewc-country { overflow: visible; padding: 18px 16px; scroll-margin-top: calc(var(--eewc-ctl) + 29px); }

    html.eew-c .eew-container { padding-top: 20px; gap: 16px; }
    html.eew-c .eewc-strip { padding: 16px 0; }
    html.eew-c .eew-hero { padding: 2px 16px; flex-basis: 100%; }
    html.eew-c .eew-kpi-row, html.eew-c .eew-container > .eew-kpi-row { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.eew-c .eewc-strip .eew-kpi-row { grid-template-columns: repeat(2, minmax(min-content, 1fr)); }
    html.eew-c .eew-container > .eew-kpi-row { padding: 16px 0; }
    html.eew-c .eew-container > .eew-kpi-row > .eew-kpi-card { margin-left: 0; }
    html.eew-c .eew-container > .eew-hero h1 { font-size: 24px; }
    /* Filters of a card: two per line, sharing the width (one per line they
       would push the content four rows down) */
    html.eew-c .eewc-filters { width: 100%; margin-left: 0; }
    html.eew-c .eewc-filters .eew-select { flex: 1 1 140px; min-width: 0; }
    /* Indicators inside a card: two per line, as in the strips */
    html.eew-c .eew-card-body > .eew-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.eew-c .eew-card-body > .eew-kpi-row > .eew-kpi-card { margin-left: 0; padding: 2px 12px; }
    html.eew-c .eew-card-body > .eew-kpi-row > .eew-kpi-card:nth-child(odd) { border-left: 0; }
    html.eew-c .eew-card-body > .eew-kpi-row > .eew-kpi-card:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* one left alone in its row: in the middle of the card */
    /* Tables: eew.css forces every table to 560 px on a phone, so tables that
       would fit (two or three short columns) scroll sideways with their values
       out of sight. A table now takes the width its content needs and scrolls,
       with the fade, only when that is more than the screen. The three tables
       of the Overview keep the width they were approved with. */
    html.eew-c .eew-price-table { min-width: 0; }
    html.eew-c #spot-prices .eew-price-table, html.eew-c #best-time .eew-price-table, html.eew-c #weather-table .eew-price-table { min-width: 560px; }
    /* Ranking lists: name and value on one line, the bar below at full width
       (side by side the bar would be left with some 25 px) */
    html.eew-c .eewc-rank-row { flex-wrap: wrap; row-gap: 6px; }
    html.eew-c .eewc-rank-name { flex: 1 1 auto; width: auto; min-width: 0; }
    html.eew-c .eewc-rank-val { min-width: 0; }
    html.eew-c .eewc-rank-bar { order: 4; flex: 1 1 100%; }
    html.eew-c .eew-kpi-card { padding: 2px 16px; }
    html.eew-c .eew-kpi-card:nth-child(odd) { border-left: 0; }
    html.eew-c .eew-kpi-value { font-size: 28px; }
    html.eew-c .eew-container .eew-card-header { min-height: calc(18px + var(--eewc-ctl-s)); padding: 18px 16px 0; flex-wrap: wrap; }
    html.eew-c .eew-container .eew-card-title { font-size: 21px; }
    html.eew-c .eew-container .eew-card-body, html.eew-c .eew-container .eew-card-body.no-padding { padding: 12px 16px 18px; }
    html.eew-c .eew-container > #cheapest { padding: 18px 16px; }
    html.eew-c #cheapest .eew-card-header { min-height: calc(var(--eewc-ctl-s) + 6px); padding: 0 0 6px; }
    html.eew-c .eewc-mix .eew-gen-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pct" "bar bar" "legend legend"; }
    /* Methodology: the index is one row that slides sideways, with the fade of the tables */
    html.eew-c .eewc-toc-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    html.eew-c .eewc-toc-list::-webkit-scrollbar { display: none; }
}
/* Site Status between 624 and 767 px: the cells of the table of datasets take fewer lines as the page widens,
   so the table is shorter than on a phone and the room kept for it follows */
@media (min-width: 624px) and (max-width: 767px) { html.eew-c #status-table:has(> .eew-loading) { min-height: 970px; } }
@media (min-width: 669px) and (max-width: 767px) { html.eew-c #status-table:has(> .eew-loading) { min-height: 913px; } }
@media (min-width: 682px) and (max-width: 767px) { html.eew-c #status-table:has(> .eew-loading) { min-height: 875px; } }
@media (min-width: 709px) and (max-width: 767px) { html.eew-c #status-table:has(> .eew-loading) { min-height: 761px; } }
@media (max-width: 479px) {
    html.eew-c .eew-logo span { display: none; }
    html.eew-c .eew-logo { min-width: var(--eewc-ctl); }   /* the circle alone is 30 px wide: the link is as wide as a control */
}
@media (max-width: 411px) {
    /* Overview: the currency no longer fits beside the three layers in every language: it takes a row of its own */
    html.eew-c #eew-map-layer-ctrl .eewc-layer-list { flex: 1 1 100%; }
    html.eew-c #eew-map-layer-ctrl .eewc-currency { flex: 1 1 100%; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--border-light); }
    html.eew-c #eew-map-layer-ctrl .eewc-cur-btn { flex: 1 1 0; }
}
@media (max-width: 399px) {
    /* The date and the two buttons no longer fit in one row in every language: the date takes its own */
    html.eew-c .eewc-timeline { min-height: 182px; }
    html.eew-c .eewc-date-field { flex-basis: 100%; }
}

/* The narrowest phones: the two indicators of each line of the Overview strip still fit, each on its line */
@media (max-width: 359px) {
    html.eew-c .eewc-strip .eew-kpi-value { font-size: 24px; }
    html.eew-c .eewc-strip .eew-kpi-card { padding: 2px 12px; }
}

/* ---------- 10. Radar page (2026-11-20, design-c.md v1.2 «Página Radar») ----------
   The row of countries, a strip of four numbers, four cards in two columns (one under the other on a phone)
   and the comparison of two countries. In each card the title, the subtitle and the row of buttons are in the
   middle; in each row of two cards the heads and the rows of three numbers take the height of the taller one
   (eew-radar.js), so the content of both begins at the same height, and the cards end at the same level. */
html.eew-c .eew-container > section.eewc-radar-countries { flex: 1 1 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; }
html.eew-c .eewc-radar-countries-label { margin-right: 4px; font-size: 15px; color: var(--text-secondary); }
/* The dropdowns of this page are as wide as the country they show (no room kept for the longest name) */
html.eew-c .eewc-radar .eew-dd { display: inline-block; width: auto; }
html.eew-c .eewc-radar .eew-dd-trigger { display: inline-flex; width: auto; }
html.eew-c .eewc-radar .eew-dd-sizer { display: none; }
html.eew-c .eewc-radar .eew-dd-current { position: static; transform: none; display: block; padding-right: 22px; }
html.eew-c .eewc-radar .eew-dd-panel { min-width: 220px; }
html.eew-c .eewc-radar-countries .eew-dd.is-current .eew-dd-trigger { background: var(--eewc-btn-bg); border-color: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 600; }
html.eew-c .eewc-radar-countries .eew-dd.is-current .eew-dd-chevron { color: var(--eewc-btn-text); }
html.eew-c #radar-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.eew-c #radar-kpis .eew-kpi-value { white-space: nowrap; }
html.eew-c .eew-container .eew-card-header.eewc-radar-head { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 12px; padding-bottom: 4px; }
html.eew-c .eewc-radar-headtext { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
html.eew-c .eewc-radar-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: var(--eewc-ctl-s); }
html.eew-c .eewc-radar-btns:empty { display: none; }
html.eew-c .eewc-radar-btns > .eewc-btn { white-space: nowrap; }
html.eew-c .eewc-radar-pair { align-items: center; }
html.eew-c .eewc-radar-vs { font-size: 14px; color: var(--text-tertiary); }
/* Compare two countries (24/11/2026): the title and the subtitle at the left and the two selectors at the right, on one
   line, so that the card is lower; below 768 px the selectors go under the title */
@media (min-width: 768px) {
    html.eew-c .eew-container #radar-compare-section .eew-card-header.eewc-radar-head { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 12px 24px; padding-bottom: 14px; }
    html.eew-c #radar-compare-section .eewc-radar-headtext { align-items: flex-start; width: auto; min-width: 0; }
    html.eew-c #radar-compare-section .eewc-radar-pair { flex-wrap: nowrap; justify-content: flex-end; flex: none; }
}
html.eew-c .eewc-radar .eew-card-body { padding-top: 14px; }
html.eew-c .eewc-radar-chips { display: flex; justify-content: center; gap: 6px; margin: 0 0 12px; }
html.eew-c .eewc-radar-chips > .eewc-btn { min-height: 30px; padding: 0 12px; font-size: 13.5px; }
html.eew-c .eewc-radar-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin: 0 0 14px; text-align: center; }
html.eew-c .eewc-radar-stat-value { font-family: var(--eewc-font-display); font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.eew-c .eewc-radar-stat-label { margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--text-secondary); }
html.eew-c .eewc-radar-up { color: var(--eewc-above); }
html.eew-c .eewc-radar-down { color: var(--eewc-below); }
html.eew-c .eewc-radar-chart { position: relative; height: 270px; }
/* A card of charts lower than its neighbour (decision of 24/11/2026): the chart stretches down to the foot of the card,
   with no blank under it; its height is the least it takes. One card under the other (a phone) has no room to fill. */
html.eew-c .eew-card:has(> .eew-card-body > .eewc-radar-chart) { display: flex; flex-direction: column; }
html.eew-c .eew-card:has(> .eew-card-body > .eewc-radar-chart) > .eew-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
html.eew-c .eew-card-body > .eewc-radar-chart { flex: 1 0 auto; }
html.eew-c .eewc-radar-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); text-align: center; }
html.eew-c .eewc-radar-note + .eewc-radar-note { margin-top: 4px; }
html.eew-c .eewc-radar-empty { padding: 24px 0; }
html.eew-c .eewc-radar-table td, html.eew-c .eewc-radar-table th { white-space: nowrap; }
html.eew-c .eewc-radar-table td:first-child, html.eew-c .eewc-radar-table td:last-child, html.eew-c .eewc-radar-table th { white-space: normal; }
html.eew-c .eewc-radar-unplanned { color: var(--eewc-above); font-weight: 600; }
html.eew-c .eewc-radar-dir { display: block; }
html.eew-c .eewc-radar-cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
html.eew-c .eewc-radar-cmp-table td:first-child { white-space: normal; }
html.eew-c .eewc-radar-cmp-table td .eewc-sub { display: inline; white-space: nowrap; }
html.eew-c .eewc-radar-cmp-chart-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); text-align: center; }
html.eew-c .eewc-radar-table td:first-child { overflow-wrap: anywhere; }
@media (max-width: 1199px) {
    html.eew-c .eewc-radar-cmp-grid { grid-template-columns: minmax(0, 1fr); }
    html.eew-c .eewc-radar-table th, html.eew-c .eewc-radar-table td { padding-left: 8px; padding-right: 8px; font-size: 14px; }
}
@media (max-width: 767px) {
    html.eew-c #radar-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.eew-c #radar-kpis .eew-kpi-card { padding: 2px 12px; }
    html.eew-c #radar-kpis .eew-kpi-value { font-size: 26px; white-space: normal; }
    html.eew-c #radar-kpis .eew-kpi-label { font-size: 14px; }
    html.eew-c .eewc-radar-stat-value { font-size: 18px; white-space: normal; }
    html.eew-c .eewc-radar-stat-label { font-size: 12.5px; }
    html.eew-c .eewc-radar-chart { height: 240px; }
    html.eew-c .eewc-radar-btns > .eewc-btn { padding: 0 12px; }
    html.eew-c .eewc-radar-table th, html.eew-c .eewc-radar-table td { padding-left: 6px; padding-right: 6px; font-size: 14px; }
    html.eew-c .eewc-radar-table td:last-child, html.eew-c .eewc-radar-table th { white-space: normal; }
    html.eew-c .eewc-radar-table td:first-child { overflow-wrap: anywhere; }
    html.eew-c .eewc-radar-table th, html.eew-c .eewc-radar-table td { font-size: 13px; }
    html.eew-c .eewc-radar-cmp-table th, html.eew-c .eewc-radar-cmp-table td { padding-left: 6px; padding-right: 6px; font-size: 14px; }
    html.eew-c .eewc-radar-cmp-table td .eewc-sub { display: block; white-space: normal; }
    html.eew-c .eewc-radar .eew-dd-panel { left: 0; right: auto; }
}

/* ---------- The page /pricing (eew-pricing.js, 24/11/2026) ----------
   The four plans side by side from 1024 px, two and two from 600 px, one under the other on a phone; Pro marked by
   its border. The period of Pro (monthly, yearly) is chosen above them. */
html.eew-c .eewc-plan-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
html.eew-c .eewc-plan-save { margin-left: 4px; font-size: 12.5px; font-weight: 600; opacity: 0.85; }
html.eew-c .eewc-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (min-width: 600px) { html.eew-c .eewc-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { html.eew-c .eewc-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html.eew-c .eewc-plan { display: flex; flex-direction: column; }
html.eew-c .eewc-plan > .eew-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
html.eew-c .eewc-plan.is-featured { border: 2px solid var(--eewc-btn-bg); }
html.eew-c .eewc-plan-name { font-family: var(--eewc-font-display); font-size: 20px; font-weight: 700; }
html.eew-c .eewc-plan-price { font-family: var(--eewc-font-display); font-size: 32px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-plan-price small { margin-left: 2px; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
html.eew-c .eewc-plan-price.is-text { font-size: 22px; }
html.eew-c .eewc-plan-list { margin: 4px 0 6px; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
html.eew-c .eewc-plan-list li + li { margin-top: 4px; }
html.eew-c .eewc-plan > .eew-card-body > .eewc-btn, html.eew-c .eewc-plan-action { margin-top: auto; }
html.eew-c .eewc-plan-action { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
/* (26/11/2026) the buttons of the four cards of one width, the card's */
html.eew-c .eewc-plan > .eew-card-body > .eewc-btn, html.eew-c .eewc-plan-action > .eewc-btn { width: 100%; }
html.eew-c .eewc-plan-when { margin: 0; font-weight: 600; color: var(--text-primary); }
html.eew-c .eewc-plan-terms { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 12.5px; line-height: 1.5; }   /* (26/11/2026) at the end of the page, in small print */
html.eew-c .eewc-plan-mail { overflow-wrap: anywhere; }

/* Forward Curves (24/11/2026): the title and the subtitle of its five cards in the middle, the Share button where it was
   (at the right); the markets of the history and the controls of the Spark Spread in the middle too. As the cards of
   figures, --eew-centred-head tells eew-tools.js the title is in the middle: when it does not fit beside the button, the
   button goes under it, at the right (.eewc-share-below). */
html.eew-c :is(#spreads, #ppa-prices, #historical-prices, #market-digest, #pa-alerts, #email-alerts, #pa-reference, #pa-how) > .eew-card > .eew-card-header { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 12px; align-items: start; text-align: center; --eew-centred-head: 1; }
html.eew-c :is(#spreads, #ppa-prices, #historical-prices, #market-digest, #pa-alerts, #email-alerts, #pa-reference, #pa-how) > .eew-card > .eew-card-header > :first-child { grid-column: 2; min-width: 0; }
html.eew-c :is(#spreads, #ppa-prices, #historical-prices, #market-digest, #pa-alerts, #email-alerts, #pa-reference, #pa-how) > .eew-card > .eew-card-header > .eew-btn-group { grid-column: 3; justify-self: end; }
html.eew-c :is(#spreads, #ppa-prices, #historical-prices, #market-digest, #pa-alerts, #email-alerts, #pa-reference, #pa-how) > .eew-card > .eew-card-header.eewc-share-below { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
html.eew-c :is(#spreads, #ppa-prices, #historical-prices, #market-digest, #pa-alerts, #email-alerts, #pa-reference, #pa-how) > .eew-card > .eew-card-header.eewc-share-below > :first-child,
html.eew-c :is(#spreads, #ppa-prices, #historical-prices, #market-digest, #pa-alerts, #email-alerts, #pa-reference, #pa-how) > .eew-card > .eew-card-header.eewc-share-below > .eew-btn-group { grid-column: 1; }
html.eew-c .eewc-head-row { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 12px; align-items: start; text-align: center; }
html.eew-c .eewc-head-row > :first-child { grid-column: 2; min-width: 0; }
html.eew-c .eewc-head-row > .eew-btn-group { grid-column: 3; justify-self: end; }
@media (max-width: 767px) {
    html.eew-c .eewc-head-row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    html.eew-c .eewc-head-row > :first-child, html.eew-c .eewc-head-row > .eew-btn-group { grid-column: 1; }
}
html.eew-c #forward-history > .eewc-chips { justify-content: center; }
/* the filters of the term structure in the middle too (24/11/2026) */
html.eew-c #term-structure-filters .eewc-toolbar, html.eew-c #term-structure-filters .eewc-chips { justify-content: center; }
html.eew-c #term-structure-filters .eewc-chips-set { flex: 0 1 auto; justify-content: center; }
@media (max-width: 767px) {
    /* (on a phone the set takes the room left beside its label: two capsules a row rather than one) */
    html.eew-c :is(#term-structure-filters, #forward-history) .eewc-chips-set { flex: 1 1 0; }
}
html.eew-c #forward-history .eewc-chips-set { flex: 0 1 auto; justify-content: center; }
html.eew-c #forward-spark-controls { display: flex; justify-content: center; text-align: center; }
html.eew-c #forward-spark-controls .eewc-field { justify-content: center; }
@media (max-width: 1199px) {
    /* (below 1200 px the button always goes under a centred title, as in the cards of figures) */
    html.eew-c :is(#spreads, #ppa-prices, #historical-prices, #market-digest, #pa-alerts, #email-alerts, #pa-reference, #pa-how) > .eew-card > .eew-card-header { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    html.eew-c :is(#spreads, #ppa-prices, #historical-prices, #market-digest, #pa-alerts, #email-alerts, #pa-reference, #pa-how) > .eew-card > .eew-card-header > :is(:first-child, .eew-btn-group) { grid-column: 1; }
}
/* Insights: the Weekly Market Digest all in the middle */
html.eew-c #digest-content { text-align: center; }
html.eew-c #digest-content .eewc-prose { margin-left: auto; margin-right: auto; }
/* Price Alerts (24/11/2026): the browser alerts, the e-mail alerts and How It Works in the middle wherever they can be */
html.eew-c #alerts-panel > .eewc-form-row, html.eew-c #email-alerts-panel .eewc-form-row, html.eew-c .eewc-acc-head, html.eew-c .eewc-acc-sub, html.eew-c .eewc-acc-foot { justify-content: center; }
html.eew-c #alerts-panel > .eewc-foot, html.eew-c #email-alerts-panel > .eewc-foot, html.eew-c .eewc-acc-head { text-align: center; }
html.eew-c :is(#alerts-panel, #email-alerts-panel) .eewc-alert-list, html.eew-c .eewc-pro-lock, html.eew-c .eewc-acc-head, html.eew-c .eewc-acc-foot { margin-left: auto; margin-right: auto; }
html.eew-c #pa-how .eewc-prose { margin-left: auto; margin-right: auto; text-align: center; }
/* Calculator: a line of space between the subtitle of the Carbon Intensity Tracker and its figures (24/11/2026) */
html.eew-c #carbon-intensity #carbon-kpis { margin-top: 1.5em; }

/* ---------- The calendar of the site (eewDateField of eew-core.js, 24/11/2026) ----------
   The field: as the date fields were (a control of design C), with the date in the language of the page and a
   calendar icon. The calendar: a panel under the field (above it when there is no room), the month and its two
   arrows, the days from Monday, the days without data greyed out, today ringed, the chosen day in the ink of the
   buttons, and «Today» at its foot. At most the window less 16 px wide: it fits at 360 px. */
html.eew-c .eewc-date-btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box;
    min-height: var(--eewc-ctl-s); padding: 0 10px; border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl);
    background: var(--bg-card); color: var(--text-primary); font-family: var(--eewc-font-text); font-size: 15px; font-weight: 500;
    font-variant-numeric: tabular-nums; cursor: pointer;
}
html.eew-c .eewc-date-btn::after {
    content: ''; flex: none; width: 16px; height: 16px; background: currentColor; opacity: 0.75;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
html.eew-c .eewc-date-btn:hover { background: var(--bg-hover); }
html.eew-c .eewc-date-btn:focus-visible { outline: 2px solid var(--eewc-focus); outline-offset: 2px; }
html.eew-c .eewc-date-btn:disabled { cursor: default; color: var(--text-tertiary); background: var(--bg-card); }
html.eew-c .eewc-cal {
    position: absolute; z-index: 2000; box-sizing: border-box; width: 300px; max-width: calc(100vw - 16px); padding: 12px;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); box-shadow: var(--eewc-panel-shadow);
    font-family: var(--eewc-font-text); color: var(--text-primary);
}
html.eew-c .eewc-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
html.eew-c .eewc-cal-title { font-family: var(--eewc-font-display); font-size: 16px; font-weight: 700; text-align: center; }
html.eew-c .eewc-cal-nav, html.eew-c .eewc-cal-day {
    box-sizing: border-box; border: 0; background: none; color: var(--text-primary); font-family: inherit; cursor: pointer;
}
html.eew-c .eewc-cal-nav { width: var(--eewc-ctl-s); height: var(--eewc-ctl-s); border-radius: var(--eewc-r-tag); font-size: 22px; line-height: 1; }
html.eew-c .eewc-cal-nav:hover:not(:disabled), html.eew-c .eewc-cal-day:hover:not(:disabled) { background: var(--bg-hover); }
html.eew-c .eewc-cal-nav:disabled { opacity: 0.3; cursor: default; }
html.eew-c .eewc-cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
html.eew-c .eewc-cal-grid th { padding: 4px 0; font-size: 12.5px; font-weight: 600; color: var(--text-tertiary); text-align: center; }
html.eew-c .eewc-cal-grid td { padding: 1px; text-align: center; }
html.eew-c .eewc-cal-day { width: 100%; aspect-ratio: 1; max-height: 40px; border-radius: var(--eewc-r-tag); font-size: 14.5px; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-cal-day.is-today { box-shadow: inset 0 0 0 1px var(--border-color); }
html.eew-c .eewc-cal-day.is-selected { background: var(--eewc-btn-bg); color: var(--eewc-btn-text); font-weight: 700; }
html.eew-c .eewc-cal-day:disabled { color: var(--text-tertiary); opacity: 0.45; cursor: default; }
html.eew-c .eewc-cal-nav:focus-visible, html.eew-c .eewc-cal-day:focus-visible { outline: 2px solid var(--eewc-focus); outline-offset: 1px; }
html.eew-c .eewc-cal-foot { display: flex; justify-content: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-light); }

/* The page /sign-in (site/eew/sign-in.html, eew-signin.js) and the language of the alert e-mails in the card of Price
   Alerts (eew-accounts.js), 24/11/2026 */

/* /sign-in: the hero and the card in one narrow column */
html.eew-c .eewc-signin-wrap { max-width: 640px; }
html.eew-c .eewc-signin-wrap .eew-hero { padding: 2px 0; margin-bottom: 18px; text-align: center; }   /* (title and sentence in the middle, 25/11/2026) */
html.eew-c #signin-form { margin-bottom: 0; }
html.eew-c #signin-msg:empty { display: none; }
html.eew-c .eewc-signin-warn { margin: 0 0 12px; }
/* after sending: the notice to check the e-mail */
html.eew-c .eewc-signin-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
html.eew-c .eewc-signin-sent > strong { font-family: var(--eewc-font-display); font-size: 17px; font-weight: 700; color: var(--text-primary); }
html.eew-c .eewc-signin-sent > .eewc-foot { margin: 0 0 8px; font-size: 14px; color: var(--text-secondary); }

/* the card of Price Alerts: «Language of the alert e-mails» and its select */
html.eew-c .eewc-acc-lang { max-width: 720px; margin-left: auto; margin-right: auto; justify-content: center; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 0; margin-bottom: 14px; font-size: 13px; color: var(--text-tertiary); }
html.eew-c .eewc-acc-lang .eew-select { flex: 0 1 200px; min-width: 0; }

/* ==========================================================================================================
   EDITS TO THE EXISTING RULES OF eew-c.css (for the main thread; everything else keeps working as it is)

   How it fits: eew-select.js puts the field (a <button class="eewc-sel ...the select's own classes...">, id
   «<select id>-field») just BEFORE the select, and hides the select (select[data-eew-sel]). So every rule that
   targets the class .eew-select now also reaches the field, and :first-child finds the field, not the select.

   1. CHANGE (the only selector that must change) — line ~2829, inside the phone block:
        html.eew-c #alerts-panel #alert-direction { flex: 0 1 auto; min-width: 0; padding-left: 12px; padding-right: 32px; background-position: right 12px center; }
      becomes (the id is now on the hidden select; the padding and the chevron of the field come from the block below):
        html.eew-c #alerts-panel #alert-direction-field { flex: 0 1 auto; min-width: 0; }

   2. NO CHANGE needed (each reaches the field through its class .eew-select; checked at 360 and 1280 px):
      - line ~1006  .eew-select { ... min-width: max-content; ... }      the field is as wide as its longest item, as before
      - line ~1026  .eew-select:focus                                    overridden by html.eew-c button.eewc-sel:focus below
      - line ~1348  #dc-country-filter .eew-select (phone)               max-width / min-width / ellipsis: kept
      - line ~1608  html.eew-c button, html.eew-c input, html.eew-c select { font-family }
      - lines ~2237–2252  html.eew-c .eew-select, ...:focus, html.eew-c[data-theme="dark"] .eew-select
                    the box (height, border, radius, card background, 15 px) is kept; the padding, the left alignment (text-align and text-align-last)
                    and the background chevron are overridden below by html.eew-c button.eewc-sel and, for the dark chevron,
                    html.eew-c[data-theme="dark"] button.eewc-sel (higher specificity)
      - line ~2264  html.eew-c .eewc-filters .eew-select { max-width: 100%; }
      - line ~2477  html.eew-c .eewc-form-row .eew-select:first-child { flex: 0 1 220px; }   (the field is the first child now)
      - line ~2492  html.eew-c .eewc-acc-add .eew-select { max-width: 100%; min-width: 0; ... }
      - line ~2828  html.eew-c #alerts-panel .eewc-form-row .eew-select:first-child { flex: 1 1 100%; }
      - line ~2873  html.eew-c .eewc-filters .eew-select { flex: 1 1 140px; min-width: 0; }

   3. ADD the block below at the end of eew-c.css (after the calendar of the site), and load
      /eew/js2/eew-select.js (defer) right after eew-core.js in every page that has a select (or in all pages).
   ========================================================================================================== */

/* ---------- The select of the site (eew-select.js, 24/11/2026) ----------
   The field: a control of design C, the chosen value in the middle and a chevron at the right (it turns when the list
   is open), as wide as the longest item. The list: a panel under the field (above it when there is no room), the
   items in the middle, the one under the pointer or the keys on the hover colour, the chosen one in bold; at most
   the window less 16 px wide (a long item wraps) and 320 px high (it scrolls). The original select stays hidden. */
html.eew-c select[data-eew-sel] { display: none !important; }
html.eew-c button.eewc-sel {
    position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-height: var(--eewc-ctl); max-width: 100%; margin: 0; padding: 0 38px 0 14px; vertical-align: middle;
    border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl);
    background: var(--bg-card); color: var(--text-primary);
    font-family: var(--eewc-font-text); font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; text-align-last: center;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
html.eew-c button.eewc-sel::after {
    content: ''; position: absolute; right: 14px; top: 50%; width: 12px; height: 8px; margin-top: -4px; pointer-events: none;
    background: var(--text-tertiary); transition: transform 0.15s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
}
html.eew-c[data-theme="dark"] button.eewc-sel::after { background: var(--text-secondary); }   /* (the colours of the chevron of .eew-select) */
html.eew-c[data-theme="dark"] button.eewc-sel { background-image: none; }   /* (not the chevron of html.eew-c[data-theme="dark"] .eew-select, which is more specific than the rule above) */
html.eew-c button.eewc-sel[aria-expanded="true"]::after { transform: rotate(180deg); }
html.eew-c button.eewc-sel:hover:not(:disabled) { background: var(--bg-hover); }
html.eew-c button.eewc-sel:focus { border-color: var(--border-color); box-shadow: none; outline: none; }
html.eew-c button.eewc-sel:focus-visible { outline: 2px solid var(--eewc-focus); outline-offset: 2px; }
html.eew-c button.eewc-sel:disabled { cursor: default; color: var(--text-tertiary); }
/* The room is on the side of the chevron (25/11/2026): 12 px between the longest item and the chevron («Germany–Luxembourg»
   touched it), and the field as wide as the native select was (14 + 38 px around the value; with a mouse 12 + 38), so a row
   of filters and «Share» still fits on one line. The value is centred in the room left of the chevron. */
@media (hover: hover) and (pointer: fine) {
    html.eew-c button.eewc-sel { padding: 0 36px 0 14px; }
    html.eew-c button.eewc-sel::after { right: 12px; }
}
/* On a phone the filters share the width two by two: a little less room around the value (10 px to the chevron), so
   «All countries» still fits */
@media (max-width: 767px) {
    html.eew-c button.eewc-sel { padding: 0 32px 0 10px; }
    html.eew-c button.eewc-sel::after { right: 10px; }
}
/* The value, over the longest items (hidden), which give the field its width; cut with «…» when the field is narrower */
html.eew-c .eewc-sel-box { display: grid; min-width: 0; max-width: 100%; }
html.eew-c .eewc-sel-text, html.eew-c .eewc-sel-sizer { grid-area: 1 / 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; text-align-last: center; }
html.eew-c .eewc-sel-sizer { visibility: hidden; }
html.eew-c .eewc-sel-list {
    position: absolute; z-index: 2000; box-sizing: border-box; width: max-content; max-width: calc(100vw - 16px); max-height: 320px;
    margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); box-shadow: var(--eewc-panel-shadow);
    font-family: var(--eewc-font-text); color: var(--text-primary); outline: none;
    scrollbar-width: thin; scrollbar-color: var(--border-color) transparent;
}
html.eew-c .eewc-sel-opt {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: var(--eewc-ctl); padding: 6px 14px;
    border-radius: var(--eewc-r-tag); font-size: 15px; font-weight: 500; line-height: 1.25; text-align: center; text-align-last: center; overflow-wrap: anywhere;
    cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
html.eew-c .eewc-sel-opt.is-active { background: var(--bg-hover); }
html.eew-c .eewc-sel-opt.is-selected { font-weight: 700; }
html.eew-c .eewc-sel-opt[aria-disabled="true"] { color: var(--text-tertiary); opacity: 0.55; cursor: default; }
html.eew-c .eewc-sel-group-label { padding: 8px 12px 4px; font-size: 12.5px; font-weight: 600; color: var(--text-tertiary); text-align: center; }
html.eew-c .eewc-sel-group + .eewc-sel-group, html.eew-c .eewc-sel-opt + .eewc-sel-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border-light); }

/* Price History (site/eew/price-history.html, eew-history.js), 25/11/2026: the zones as selects of the site with their
   colour and a button to remove each, the note of the sources under the chart, the controls and exports of Pro, and
   the «Pro» lock across the whole card over a blurred chart of sample data */
html.eew-c .eewc-ph-zones { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-bottom: 14px; }
html.eew-c .eewc-ph-zone-set { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
html.eew-c .eewc-ph-zone { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
html.eew-c .eewc-ph-zone .eewc-dot { flex: none; }
html.eew-c .eewc-ph-zone .eewc-close { width: 32px; height: 32px; }
html.eew-c .eewc-ph-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-ph-note .eewc-foot { margin: 0 0 6px; }
html.eew-c .eewc-ph-sources { margin: 0 0 8px; padding-left: 18px; }
html.eew-c .eewc-ph-sources li { margin: 2px 0; }
html.eew-c .eewc-ph-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-bottom: 14px; }
html.eew-c .eewc-ph-export { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
html.eew-c .eewc-ph-msg { margin: 10px 0 0; text-align: center; }
html.eew-c .eewc-ph-msg:empty { display: none; }
html.eew-c .eewc-ph-limit { margin: 10px 0 0; text-align: center; }
html.eew-c #ph-pro .eewc-pro-lock { max-width: none; margin-top: 0; }
html.eew-c .eewc-ph-lock .eewc-pro-preview { padding: 14px 16px; }
html.eew-c .eewc-ph-lock .eewc-pro-card { min-height: 300px; }
html.eew-c .eewc-ph-preview-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 12px; }
html.eew-c .eewc-ph-preview-controls span { width: 120px; height: 34px; border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); }
@media (max-width: 767px) {
    html.eew-c .eewc-ph-zone-set { width: 100%; }
    html.eew-c .eewc-ph-zone, html.eew-c .eewc-ph-zones .eewc-ph-add { flex: 1 1 100%; }
    html.eew-c .eewc-ph-zone .eew-select { flex: 1 1 auto; min-width: 0; }
    html.eew-c .eewc-ph-controls .eewc-date-field { flex: 1 1 140px; }
    html.eew-c .eewc-ph-controls .eew-select { flex: 1 1 100%; }
}

/* The exports of the whole tables for Pro (eew-pro.js), 25/11/2026: a row under each table of the Auction Tracker and
   the Infrastructure; without Pro the buttons carry a small «Pro» badge and open the card of the lock under them */
html.eew-c .eewc-export-bar { padding-top: 12px; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-export-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; }
html.eew-c .eewc-export-label { font-size: 14px; color: var(--text-secondary); }
html.eew-c .eewc-export-row .eewc-btn { display: inline-flex; align-items: center; gap: 6px; }
html.eew-c .eewc-export-msg { margin: 8px 0 0; text-align: center; }
html.eew-c .eewc-export-msg:empty { display: none; }
html.eew-c .eewc-export-lock { max-width: 560px; margin: 12px auto 0; border: 1px solid var(--border-color); border-radius: var(--eewc-r-card); }
/* (on a phone the words on a line of their own, the two buttons side by side under them) */
@media (max-width: 767px) {
    html.eew-c .eewc-export-label { flex: 1 1 100%; text-align: center; }
}

/* The source at the end of the notes of the Infrastructure's three tables (eew-infra.js v3.19), 25/11/2026: its
   publisher a link to the page that confirms the row */
html.eew-c .eewc-src a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
html.eew-c .eewc-src a:hover { color: var(--text-primary); }

/* «Pricing» at the end of the main menu (25/11/2026): from 1366 to 1439 px the links have 7 px on each side instead of
   8, so the menu of the widest language (Spanish, with «Infraestructura» active) still fits in the bar from 1366 px */
@media (min-width: 1366px) and (max-width: 1439px) {
    html.eew-c .eew-nav a { padding: 0 7px; }
}
/* (26/11/2026) With a scrollbar always shown (17 px on Windows, 15 px on a Mac with that option) a window of 1366 px leaves
   1349 to 1351 px, and the Spanish menu was 1 to 6 px too wide, so eewFitNav() folded it: in Spanish only, 6 px on each
   side (the other languages keep 33 px or more of room) */
@media (min-width: 1366px) and (max-width: 1439px) {
    html.eew-c[data-eew-lang="es"] .eew-nav a { padding: 0 6px; }
}

/* (26/11/2026) The footer at the bottom of the window when the page is shorter than it (Pricing and Sign in at 1920 × 879
   left 157 and 475 px under it): the body is a column of at least the window's height and the main takes the room left.
   A long page is as it was. Only on a page with the footer (not the widget). */
html.eew-c body:has(> footer.eew-footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
html.eew-c body:has(> footer.eew-footer) > main.eew-main { flex: 1 0 auto; }
html.eew-c body:has(> footer.eew-footer) > footer.eew-footer { flex-shrink: 0; }

/* (26/11/2026) The button of the account in the header (eew-core.js), as round as the theme button; and the page /account */
html.eew-c .eewc-account-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
html.eew-c .eewc-account-btn[aria-current="page"] { background: var(--eewc-btn-bg); color: var(--eewc-btn-text); border-color: var(--eewc-btn-bg); }
html.eew-c .eewc-account-wrap { max-width: 760px; }
html.eew-c #account-page { display: flex; flex-direction: column; gap: 16px; }
html.eew-c .eewc-acc-card .eew-card-body > p.eewc-prose { margin: 0 0 12px; }
html.eew-c .eewc-acc-plan { margin: 0 0 12px; }
html.eew-c .eewc-acc-head-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
html.eew-c .eewc-acc-incl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
html.eew-c .eewc-acc-incl li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-color); }
html.eew-c .eewc-acc-incl li:first-child { border-top: 0; padding-top: 0; }
html.eew-c .eewc-acc-incl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html.eew-c .eewc-acc-incl-tag { flex: none; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-color); color: var(--text-secondary); white-space: nowrap; }
html.eew-c .eewc-acc-incl-tag.is-on { background: var(--eewc-btn-bg); border-color: var(--eewc-btn-bg); color: var(--eewc-btn-text); }

/* (26/11/2026, the review of the page) On /account everything starts from the left, as the titles of its cards: the
   account (e-mail on the left, Sign out on the right), the buttons, the form and the list of the alerts; the buttons
   below their text, never over it */
html.eew-c #account-page .eewc-acc-head { max-width: none; justify-content: space-between; text-align: left; margin-left: 0; margin-right: 0; }
html.eew-c #account-page .eewc-acc-sub { justify-content: flex-start; margin: 12px 0 0; }
html.eew-c #account-page #email-alerts-panel .eewc-form-row { justify-content: flex-start; }
html.eew-c #account-page #email-alerts-panel > .eewc-foot { text-align: left; }
html.eew-c #account-page .eewc-alert-list, html.eew-c #account-page .eewc-pro-lock { margin-left: 0; margin-right: 0; }
html.eew-c #account-page .eewc-acc-card .eew-card-body > p, html.eew-c #account-page .eewc-acc-plan { margin: 0; }
html.eew-c #account-page .eewc-acc-card .eew-card-body > p + p { margin-top: 12px; }
/* Price Alerts: a line of space between the notice that e-mails are not set up and the account */
html.eew-c #email-alerts-panel > .eewc-acc-warn + .eewc-acc-head { margin-top: 10px; }
html.eew-c #account-page .eewc-acc-lang { margin-left: 0; margin-right: 0; justify-content: flex-start; }

/* (26/11/2026) Changing plans on /account: the plans of the catalog as buttons, the current one marked; the change to
   confirm and the change waiting for the end of the period; alerts past the limit of the plan, paused */
html.eew-c .eewc-plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
html.eew-c .eewc-plan-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); background: var(--bg-card); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; }
html.eew-c .eewc-plan-opt:hover { background: var(--bg-hover); }
html.eew-c .eewc-plan-opt.is-current { border-color: var(--eewc-btn-bg); cursor: default; }
html.eew-c .eewc-plan-opt.is-current:hover { background: var(--bg-card); }
html.eew-c .eewc-plan-opt.is-picked { outline: 2px solid var(--eewc-btn-bg); outline-offset: 1px; }
html.eew-c .eewc-plan-opt-name { font-weight: 600; }
html.eew-c .eewc-plan-opt .eewc-acc-incl-tag { margin-top: 2px; }
html.eew-c .eewc-acc-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
html.eew-c .eewc-acc-confirm { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); background: var(--bg-secondary, transparent); }
html.eew-c .eewc-acc-confirm .eewc-acc-sub { margin-top: 10px; }
html.eew-c .eewc-acc-paused-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-color); font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
html.eew-c .eewc-alert-row.is-paused .eewc-acc-alert > span:first-child { color: var(--text-secondary); }
html.eew-c .eewc-acc-keep { flex: none; margin-left: auto; min-height: 32px; padding: 0 10px; font-size: 13.5px; }
html.eew-c .eewc-acc-paused-note { margin: 0 0 8px; }

/* (26/11/2026) «Sign in» in the header, as tall as its buttons; the pages to sign in and to create an account */
html.eew-c .eewc-signin-btn { min-height: var(--eewc-ctl); padding: 0 12px; font-size: 14px; white-space: nowrap; text-decoration: none; }
html.eew-c .eewc-signin-switch { margin-top: 14px; }
html.eew-c .eewc-signin-terms { margin-top: 6px; font-size: 12.5px; }
html.eew-c .eewc-pro-signin { justify-content: center; margin: 4px 0 0; }

/* (26/11/2026) The form of the Custom plan on Pricing: one field under the other, the trap out of sight */
html.eew-c .eewc-contact { display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; }
html.eew-c .eewc-contact-field { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--text-secondary); }
html.eew-c .eewc-contact-field .eew-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--text-primary); }
html.eew-c .eewc-contact-field textarea.eew-input { min-height: 96px; resize: vertical; padding-top: 8px; padding-bottom: 8px; }
html.eew-c .eewc-contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
html.eew-c .eewc-contact-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* The text of each page under what it shows (26/11/2026, scripts/seo/blocks.mjs): what the page shows, its questions
   (they open with <details>, no script), on the Overview the 32 countries, on a country page the other countries and
   the pages with its data. The headings are h2 (a page has one h1) with the look of the other cards' titles. */
html.eew-c .eewc-seo > .eewc-seo-card + .eewc-seo-card { margin-top: 24px; }
html.eew-c .eewc-seo h2.eew-card-title { margin: 0; }
html.eew-c .eewc-seo .eewc-prose { max-width: 820px; }
html.eew-c .eewc-seo-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
html.eew-c .eewc-seo-links a { display: inline-flex; align-items: center; min-height: var(--eewc-link); font-size: 15px; color: var(--text-secondary); text-decoration: none; }
html.eew-c .eewc-seo-links a:hover { color: var(--text-primary); text-decoration: underline; }
html.eew-c .eewc-seo-sub { margin: 18px 0 4px; font-family: var(--eewc-font-display); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
html.eew-c .eewc-faq { max-width: 820px; }
html.eew-c .eewc-faq-item + .eewc-faq-item { border-top: 1px solid var(--border-light); }
html.eew-c .eewc-faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--eewc-ctl); padding: 8px 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text-primary); cursor: pointer; list-style: none; }
html.eew-c .eewc-faq-item > summary::-webkit-details-marker { display: none; }
html.eew-c .eewc-faq-item > summary::after { content: '+'; flex: none; font-size: 20px; font-weight: 400; line-height: 1; color: var(--text-tertiary); }
html.eew-c .eewc-faq-item[open] > summary::after { content: '\2212'; }
html.eew-c .eewc-faq-item > .eewc-prose { padding: 0 0 14px; }
/* (30/11/2026) The text and the questions in one card of two columns: the text at the left, at the width it had (its
   lines no longer), the questions at the right with their «+» at the card's edge; one under the other below 900 px.
   A country page: its paragraph and facts at the left, the site's pages with its data as buttons at the right, and the
   other countries in a grid of buttons (6 columns; 3 below 900 px, 2 below 520 px). */
html.eew-c .eewc-seo-split > .eew-card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
html.eew-c .eewc-seo-split.is-one > .eew-card-body { grid-template-columns: minmax(0, 1fr); }
html.eew-c .eew-container .eewc-seo-split > .eew-card-body { padding-top: 22px; }
html.eew-c .eewc-seo .eewc-seo-split h2.eewc-seo-h { margin: 0 0 12px; }   /* (30/11/2026: above .eewc-seo h2.eew-card-title, which took the margin away) */
html.eew-c .eewc-seo-split .eewc-prose, html.eew-c .eewc-seo-split .eewc-faq { max-width: none; }
html.eew-c .eewc-seo-split .eewc-faq-item:first-child > summary { padding-top: 0; min-height: calc(var(--eewc-ctl) - 8px); }
html.eew-c .eewc-seo-col > .eewc-seo-sub:first-child { margin: 6px 0 12px; }
html.eew-c .eewc-seo-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 16px 0 0; font-size: 14.5px; line-height: 1.45; }
html.eew-c .eewc-seo-facts > div { display: contents; }
html.eew-c .eewc-seo-facts dt { color: var(--text-secondary); }
html.eew-c .eewc-seo-facts dd { margin: 0; color: var(--text-primary); }
html.eew-c .eewc-seo-btns, html.eew-c .eewc-seo-grid { margin: 0; padding: 0; list-style: none; }
html.eew-c .eewc-seo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
html.eew-c .eewc-seo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
html.eew-c :is(.eewc-seo-btns, .eewc-seo-grid) .eewc-btn { border-radius: 999px; font-size: 14px; color: var(--text-secondary); }
html.eew-c :is(.eewc-seo-btns, .eewc-seo-grid) .eewc-btn:hover { color: var(--text-primary); }
html.eew-c .eewc-seo-grid .eewc-btn { width: 100%; padding: 0 8px; white-space: normal; text-align: center; line-height: 1.2; }
@media (max-width: 899px) {
    html.eew-c .eewc-seo-split > .eew-card-body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    html.eew-c .eewc-seo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
    html.eew-c .eewc-seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.eew-c .eewc-seo-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
    html.eew-c .eewc-seo-facts dd { margin-bottom: 8px; }
}

/* A lone action at the end of a card or a panel (26/11/2026): a button (eewc-btn) in the middle, with no arrow — under
   the sentence of an empty card, never inside it. On the page of the account, the row of one button at the foot of a
   card (See Pro, Manage the subscription, Delete my account); the confirmations with two keep their place. */
html.eew-c .eewc-card-action { display: flex; justify-content: center; margin-top: 16px; }
html.eew-c .eew-empty > .eewc-card-action { margin-top: 12px; }
html.eew-c .eew-empty > .eewc-card-action:first-child { margin-top: 0; }
html.eew-c #account-page .eewc-acc-sub:has(> :only-child) { justify-content: center; }

/* The contact page (30/11/2026, eew-contact.js): the form in a card in the middle, at most 640 px wide; each field with
   what is wrong under it (burgundy, the field's border too); «Send» in the middle; the thank-you in its place once sent. */
html.eew-c #contact { display: flex; flex-direction: column; align-items: center; }
html.eew-c #contact > .eewc-contact-card { box-sizing: border-box; width: 100%; max-width: 640px; }
html.eew-c .eew-hero:has(+ #contact) { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
html.eew-c .eewc-contact-card .eew-card-body { padding: 24px; }
html.eew-c .eewc-contact-card .eewc-contact { gap: 14px; }
html.eew-c .eewc-contact-field > span:first-child { font-weight: 500; color: var(--text-primary); }
html.eew-c .eewc-contact-field small { font-size: inherit; font-weight: 400; color: var(--text-tertiary); }
html.eew-c .eewc-contact-field .eew-select { width: 100%; }
html.eew-c .eewc-contact-field.is-invalid .eew-input { border-color: var(--eewc-above); }
html.eew-c .eewc-field-err { font-size: 13.5px; line-height: 1.4; color: var(--eewc-above); }
html.eew-c .eewc-contact-card .eewc-card-action { margin-top: 4px; }
html.eew-c .eewc-contact-card .eewc-card-action .eewc-btn-primary { min-width: 160px; }
html.eew-c .eewc-contact-msg { margin: 0; text-align: center; }
html.eew-c .eewc-contact-note { margin: 0; text-align: center; }
html.eew-c .eewc-contact-thanks { text-align: center; padding: 12px 0 4px; }
html.eew-c .eewc-contact-thanks h2 { margin: 0 0 8px; font-family: var(--eewc-font-display); font-size: 24px; font-weight: 800; color: var(--text-primary); outline: none; }
html.eew-c .eewc-contact-thanks .eewc-prose { margin: 0 auto; }
@media (max-width: 767px) { html.eew-c .eewc-contact-card .eew-card-body { padding: 18px 16px; } }

/* Pricing (30/11/2026, eew-pricing.js v1.13): the Pro card in blocks (a short bold title, one line under it), the tag
   «Soon» (PR_ANALYSIS_SOON), and under the four cards the table comparing Free, Pro and Business, the Pro column
   lightly marked. Below 768 px each row of the table stacks: its name on top, then the three plans side by side, each
   with its name above its value, so nothing scrolls sideways. */
html.eew-c .eewc-plan-feats { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 6px; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; }
html.eew-c .eewc-plan-feats > li { display: flex; flex-direction: column; gap: 1px; }
html.eew-c .eewc-plan-feat-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; color: var(--text-primary); }
html.eew-c .eewc-plan-feat-d { color: var(--text-secondary); }
html.eew-c .eewc-plan-soon { display: inline-flex; align-items: center; flex: none; padding: 1px 8px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-hover); color: var(--text-secondary); font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
html.eew-c .eewc-plan-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.eew-c #pricing > .eewc-plan-compare { margin: 24px 0 0; }
html.eew-c .eewc-plan-compare h2.eew-card-title { margin: 0; }
html.eew-c .eewc-plan-compare > .eew-card-body { padding: 0; }
html.eew-c .eewc-cmp { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
html.eew-c .eewc-cmp th, html.eew-c .eewc-cmp td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); text-align: center; vertical-align: middle; }
html.eew-c .eewc-cmp tbody tr:last-child > * { border-bottom: 0; }
html.eew-c .eewc-cmp thead th { width: 20%; border-bottom-color: var(--border-color); background: var(--bg-tertiary); font-family: var(--eewc-font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); }
html.eew-c .eewc-cmp thead th:first-child { width: 40%; }
html.eew-c .eewc-cmp thead th .eewc-sub { display: block; font-family: var(--eewc-font-text); font-size: 12.5px; }
html.eew-c .eewc-cmp tbody th { text-align: left; font-weight: 500; color: var(--text-primary); }
html.eew-c .eewc-cmp tbody th .eewc-plan-soon { margin-left: 4px; }
html.eew-c .eewc-cmp td { color: var(--text-secondary); }
html.eew-c .eewc-cmp .is-featured { background: color-mix(in srgb, var(--eewc-btn-bg) 5%, transparent); }
html.eew-c .eewc-cmp thead th.is-featured { background: color-mix(in srgb, var(--eewc-btn-bg) 9%, var(--bg-tertiary)); }
html.eew-c .eewc-cmp-yes { font-weight: 700; color: var(--eewc-green); }
html.eew-c .eewc-cmp-no { color: var(--text-tertiary); }
html.eew-c .eewc-cmp-with { margin-left: 3px; }
html.eew-c .eewc-cmp-plan { display: none; }
@media (max-width: 767px) {
    html.eew-c .eewc-cmp, html.eew-c .eewc-cmp tbody { display: block; }
    html.eew-c .eewc-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    html.eew-c .eewc-cmp tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 6px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
    html.eew-c .eewc-cmp tbody tr:last-child { border-bottom: 0; }
    html.eew-c .eewc-cmp tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
    html.eew-c .eewc-cmp tbody td { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 6px 4px; border: 0; border-radius: var(--eewc-r-ctl); background: var(--bg-tertiary); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
    html.eew-c .eewc-cmp tbody td.is-featured { background: color-mix(in srgb, var(--eewc-btn-bg) 9%, var(--bg-tertiary)); }
    html.eew-c .eewc-cmp-plan { display: block; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
}

/* The weekly report and the links for Excel and Google Sheets on /account (30/11/2026, eew-pro-tools.js): the zones as
   check boxes in pills, the dates of a link on one line each, the address of a new link with its copy button, the
   list of links, and how to use them in two columns (one under the other below 768 px). */
html.eew-c .eewc-pt-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; text-align: left; }
html.eew-c .eewc-pt-label { font-size: 13.5px; font-weight: 500; color: var(--text-primary); }
html.eew-c .eewc-zone-checks { display: flex; flex-wrap: wrap; gap: 6px; }
html.eew-c .eewc-zone-check { position: relative; display: inline-flex; }
html.eew-c .eewc-zone-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
html.eew-c .eewc-zone-check span { display: inline-flex; align-items: center; min-height: var(--eewc-ctl-s); padding: 0 12px; border: 1px solid var(--border-color); border-radius: 999px; font-size: 13.5px; color: var(--text-secondary); cursor: pointer; }
html.eew-c .eewc-zone-check input:checked + span { background: var(--eewc-btn-bg); border-color: var(--eewc-btn-bg); color: var(--eewc-btn-text); }
html.eew-c .eewc-zone-check input:focus-visible + span { outline: 2px solid var(--text-primary); outline-offset: 2px; }
html.eew-c .eewc-pt-dates { display: flex; flex-direction: column; gap: 8px; }
html.eew-c .eewc-pt-radio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-secondary); }
html.eew-c .eewc-pt-radio .eew-input { min-height: var(--eewc-ctl-s); font: inherit; font-size: 14.5px; color: var(--text-primary); }
html.eew-c .eewc-pt-days { width: 90px; }
html.eew-c .eewc-pt-new { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--eewc-r-ctl); background: var(--bg-hover); }
html.eew-c .eewc-pt-new .eewc-foot { margin: 0 0 8px; color: var(--text-primary); }
html.eew-c .eewc-pt-url { display: flex; gap: 8px; }
html.eew-c .eewc-pt-url .eew-input { flex: 1; min-width: 0; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-primary); }
html.eew-c .eewc-pt-links { margin: 12px 0 0; padding: 0; list-style: none; }
html.eew-c .eewc-pt-links li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-light); }
html.eew-c .eewc-pt-links li:first-child { border-top: 0; }
html.eew-c .eewc-pt-links .eewc-acc-incl-text { display: flex; flex-direction: column; min-width: 0; }
html.eew-c .eewc-pt-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-light); text-align: left; }
html.eew-c .eewc-pt-how .eewc-seo-sub { margin: 0 0 6px; }
html.eew-c .eewc-pt-how ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
@media (max-width: 767px) {
    html.eew-c .eewc-pt-how { grid-template-columns: minmax(0, 1fr); }
    html.eew-c .eewc-pt-links li { flex-wrap: wrap; }
}

/* ---------- Pro Analysis: the heat map of the negative hours (eew-analysis-charts.js, anHeatmap) ----------
   An HTML table: 24 rows (local hour) x 12 columns (month); the colours of the cells come inline from the script.
   On phones the months are shown by their initial and the hours every 3 hours (the others stay for screen readers). */
.an-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.an-hm { width: 100%; max-width: 880px; }
.an-hm-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; font-size: 11.5px; line-height: 1; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.an-hm-table th { font-weight: 600; padding: 0; color: var(--text-secondary); }
.an-hm-table thead th { height: 20px; vertical-align: bottom; padding-bottom: 3px; text-align: center; white-space: nowrap; overflow: hidden; }
.an-hm-corner { width: 30px; }
.an-hm-hour { text-align: right; padding-right: 6px !important; font-weight: 500 !important; white-space: nowrap; }
.an-hm-m1 { display: none; }
.an-hm-cell { height: 14px; padding: 0; border-radius: 2px; cursor: crosshair; outline: none; }
.an-hm-na { background-image: repeating-linear-gradient(135deg, var(--border-light) 0 2px, transparent 2px 5px) !important; }
.an-hm-cell.an-hm-on { box-shadow: inset 0 0 0 2px var(--text-primary); }
.an-hm-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--eewc-focus, #006774), 0 0 0 1px var(--bg-card); }
.an-hm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 10px 0 0 32px; min-height: 18px; }
.an-hm-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.an-hm-ramp { display: inline-block; width: 120px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--border-light); }
.an-hm-readout { font-size: 12.5px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; min-height: 1em; }
@media (max-width: 560px) {
    .an-hm-table { border-spacing: 1px; font-size: 10.5px; }
    .an-hm-corner { width: 22px; }
    .an-hm-hour { padding-right: 4px !important; }
    .an-hm-hx { color: transparent !important; }
    .an-hm-mfull { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .an-hm-m1 { display: inline; }
    .an-hm-cell { height: 11px; border-radius: 1px; }
    .an-hm-foot { margin-left: 23px; }
    .an-hm-ramp { width: 90px; }
}

/* The Pro Analysis (30/11/2026, eew-analysis.js): the zone and the period side by side, the charts 320 px high, the
   tables of each section, the estimate's tag, the toggles and the ranking's buttons, and the lock: blurred previews of
   sample data with the tag «PRO», the card of the lock in the place of the controls. */
html.eew-c .eewc-an-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
html.eew-c .eewc-an-controls .eewc-contact-field { min-width: 220px; }
html.eew-c .eewc-an-chart { height: 320px; margin: 12px 0 16px; }
html.eew-c #an-negative-map { margin: 8px 0 12px; }
html.eew-c .eewc-an-toggle, html.eew-c .eewc-an-rank-controls .eew-btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
html.eew-c .eewc-an-rank-controls { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
html.eew-c .eewc-an-table { margin-top: 4px; }
html.eew-c .eewc-an-table td, html.eew-c .eewc-an-table tbody th { white-space: nowrap; }
html.eew-c .eewc-an-map-year { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
html.eew-c .eewc-an-map-year .eew-select { width: auto; min-width: 110px; }
html.eew-c .eewc-an-estimate { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
html.eew-c .eewc-an-estimate-tag { margin-right: 4px; vertical-align: 1px; }
html.eew-c .eewc-an-sources { margin-top: 8px; }
html.eew-c .eewc-an-lock { position: relative; }
html.eew-c .eewc-an-lock .eewc-pro-preview { padding: 6px 0; }
html.eew-c .eewc-an-sample-tag { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
html.eew-c .eewc-an-lockcard .eewc-pro-card { min-height: 0; padding: 18px 16px; background: transparent; }
@media (max-width: 767px) { html.eew-c .eewc-an-chart { height: 280px; } html.eew-c .eewc-an-controls .eewc-contact-field { min-width: 0; width: 100%; } }
