/* =============================================================================
   INDUSTRIAL POLICY MONITORING: STYLESHEET (redesign v7b, Phase 1b, 2026-11-07; from the v7 re-skin, Phase 1, 2026-11-05)
   The order of this file:
     1. the Suisse faces and their metric-matched fallbacks (no jump when a face arrives)
     2. the v7 tokens (PLAN.md 1.5; D1 A, D10 A, D15 A) and, in the same block, the legacy token names
        mapped onto them (chat.css, tour.css and the views not rebuilt yet read those; C9)
     3. the legacy view rules, re-tokened (Phases 2-5 rewrite them view by view)
     4. the appearance: light only (owner 2026-11-19, "no dark mode"; the dark blocks are gone)
     5. the v7 base, components and shell, last, so they win the cascade at equal specificity
   ============================================================================= */

/* --- 1. Type: one family, Suisse Intl (headings, UI, running text and figures; v7c, owner 2026-11-13: one family) ---
   Kiel's web licence covers self-hosting (owner, 2026-11-05). File names carry a content hash (no ?v=).
   The weight ranges stop the browser synthesising bold: Intl Medium does Semibold's job (the guide). */
@font-face { font-family: 'Suisse Intl'; src: url('fonts/suisse-intl-400.db99e102.woff2') format('woff2'); font-weight: 100 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('fonts/suisse-intl-500.2685a0d5.woff2') format('woff2'); font-weight: 500 900; font-style: normal; font-display: swap; }

/* Metric-matched fallbacks (measured in Phase 1 from the font files: the width of English UI copy at the same
   size, then Suisse's own ascent and descent over that scale; shell_spec.md has the numbers and the check).
   While a Suisse file loads the text is drawn in the fallback at Suisse's width and line box, so the swap
   moves nothing. The guide's fallbacks first (Arial, Arial Bold for Intl Medium); Android has neither, so a
   second face sits on Roboto. A face whose local() font is missing fails to load and the stack falls through
   to the next. */
@font-face { font-family: 'Suisse Intl Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 100 400; size-adjust: 103.87%; ascent-override: 113.03%; descent-override: 53.53%; line-gap-override: 0%; }
@font-face { font-family: 'Suisse Intl Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 500 900; size-adjust: 99.96%; ascent-override: 117.45%; descent-override: 55.62%; line-gap-override: 0%; }
@font-face { font-family: 'Suisse Intl Fallback Android'; src: local('Roboto'), local('Roboto-Regular'); font-weight: 100 400; size-adjust: 103.91%; ascent-override: 112.98%; descent-override: 53.51%; line-gap-override: 0%; }
@font-face { font-family: 'Suisse Intl Fallback Android'; src: local('Roboto Medium'), local('Roboto-Medium'); font-weight: 500 900; size-adjust: 106.59%; ascent-override: 110.14%; descent-override: 52.16%; line-gap-override: 0%; }
/* The view tabs' own fallback (checker round 1: "Methodology" and "Alerts" ran 3.4-3.7 % narrower in the UI
   fallback, so the tab row grew 8 px on the swap): the same local faces, size-adjust fitted to the six tab labels
   (row width within 0.3 %, each label within 2.6 %), the overrides rescaled so the line box is unchanged. */
@font-face { font-family: 'Suisse Intl Tab Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 100 400; size-adjust: 106.19%; ascent-override: 110.56%; descent-override: 52.36%; line-gap-override: 0%; }
@font-face { font-family: 'Suisse Intl Tab Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 500 900; size-adjust: 102.26%; ascent-override: 114.81%; descent-override: 54.37%; line-gap-override: 0%; }
@font-face { font-family: 'Suisse Intl Tab Fallback Android'; src: local('Roboto'), local('Roboto-Regular'); font-weight: 100 400; size-adjust: 106.23%; ascent-override: 110.51%; descent-override: 52.34%; line-gap-override: 0%; }
@font-face { font-family: 'Suisse Intl Tab Fallback Android'; src: local('Roboto Medium'), local('Roboto-Medium'); font-weight: 500 900; size-adjust: 109.04%; ascent-override: 107.67%; descent-override: 50.99%; line-gap-override: 0%; }

/* --- 2. Tokens ---------------------------------------------------------------------------------------------
   The v7 names (--paper, --surface, --ink, --brand-ink, --band, --heat-*, --st-*) and the legacy names
   (--accent-color, --w-rgb, --text-*, --status-*, ...) in one block, generated from one table
   (test/chat_notes/redesign_v7/shell_spec.md; contrast table there). Light only (section 4). */
:root {
    --paper: #F5F1E7;
    --surface: #EFE9DC;
    --surface-2: #E9E2D2;
    --surface-raised: #FAF7F0;
    --rule: #DAD1BD;
    --rule-ui: #8A8478;
    --ink: #121417;
    --ink-2: #3A3730;
    --muted: #5F5A50;
    --brand: #00A5BF;
    --brand-ink: #007C99;
    --brand-ink-2: #006A7C;
    --band: #007C99;
    --band-ink: #F5F1E7;
    --band-ink-2: #F5F1E7;   /* opaque on the band: beige at 0.86 read 3.8:1 on the Phase 1b band (the header line is 12 px text); v7c's band is #00A5BF (below) */
    --band-rule: rgba(245, 241, 231, 0.42);
    --band-hover: rgba(245, 241, 231, 0.14);
    --accent: #FF6A00;
    --accent-soft: #F6E0CA;
    --kiel-blue: #194ABB;
    --kiel-blue-80: #4169C3;
    --kiel-blue-60: #9BADD5;
    --kiel-blue-40: #C8CFDE;
    --kiel-blue-20: #DFE0E3;
    --focus: #007C99;
    --focus-gap: #F5F1E7;
    --focus-on-band: #F5F1E7;
    --heat-0: #E6E1D4;
    --heat-1: #D3ECEF;
    --heat-2: #A9DCE4;
    --heat-3: #7BCAD6;
    --heat-4: #45B5C7;
    --heat-5: #007C99;
    --heat-6: #005F70;
    --heat-hatch: rgba(18, 20, 23, 0.16);
    --heat-ink: #121417;
    --heat-ink-on-dark: #F5F1E7;
    --heat-ink-switch: 5;
    /* (owner 2026-11-08) the top sector's warm orange tint: v7's --accent hue (#FF6A00, OKLCH h 44.8), each step at the
       SAME relative luminance as the teal step beside it (so one scale, and the same count contrast: 14.96, 12.34, 9.89,
       7.63, 4.58, 6.49:1), chroma 0.9 of the most the sRGB gamut holds there (v7b_orange/colour.py) */
    --heat-top-1: #FDE2D6;
    --heat-top-2: #FCC8B2;
    --heat-top-3: #F8AC8A;
    --heat-top-4: #F68A56;
    --heat-top-5: #B1511D;
    --heat-top-6: #8E3F13;
    --st-active: #23862B;
    --st-announced: #7033CC;
    --st-discussion: #A87700;
    --st-cancelled: #CC3333;
    --st-expired: #7A7466;
    --st-active-ink: #1A6A22;
    --st-announced-ink: #5E2AB0;
    --st-discussion-ink: #7A5500;
    --st-cancelled-ink: #A12424;
    --st-expired-ink: #5F5A50;
    --band-h: 56px;
    --nav-h: 48px;
    --accent-color: #006A7C;
    --accent-rgb: 0, 106, 124;
    --accent-glow: rgba(0, 106, 124, 0.15);
    --accent-hover: #007C99;
    --accent-strong: #006A7C;
    --accent-secondary: #194ABB;
    --accent-fill: #006A7C;
    --accent-ink: #005F70;           /* accent text on accent tints (pills, badges, presets): 4.9:1+ on every tint in use; #006A7C read 4.2-4.4:1 there */
    --accent-secondary-ink: #194ABB;
    --goal-ink: #194ABB;
    --w-rgb: 239, 233, 220;
    --k-rgb: 18, 20, 23;
    --surface-solid: #FAF7F0;
    --overlay-bg: rgba(245, 241, 231, 0.94);
    --warn-txt: #7A5500;
    --bg-main: #F5F1E7;
    --bg-gradient: #F5F1E7;
    --glass-bg: #EFE9DC;
    --glass-border: #DAD1BD;
    --glass-shadow: 0 1px 0 rgba(18, 20, 23, 0.03);
    --glass-shadow-hover: 0 8px 24px rgba(18, 20, 23, 0.08);
    --glass-blur: none;
    --glass-strong: #F5F1E7;
    --text-primary: #121417;
    --text-secondary: #3A3730;
    --text-muted: #5F5A50;
    --text-on-accent: #ffffff;
    --card-border: 1px solid #DAD1BD;
    --border-subtle: rgba(18, 20, 23, 0.10);
    --cb-hairline: #DAD1BD;
    --status-active-bg: rgba(35, 134, 43, 0.12);
    --status-active-txt: #1A6A22;
    --status-active-border: rgba(35, 134, 43, 0.32);
    --status-announced-bg: rgba(112, 51, 204, 0.10);
    --status-announced-txt: #5E2AB0;
    --status-announced-border: rgba(112, 51, 204, 0.28);
    --status-discussion-bg: rgba(168, 119, 0, 0.12);
    --status-discussion-txt: #7A5500;
    --status-discussion-border: rgba(168, 119, 0, 0.32);
    --status-cancelled-bg: rgba(204, 51, 51, 0.10);
    --status-cancelled-txt: #A12424;
    --status-cancelled-border: rgba(204, 51, 51, 0.28);
    --status-expired-bg: rgba(122, 116, 102, 0.12);
    --status-expired-txt: #5F5A50;
    --status-expired-border: rgba(122, 116, 102, 0.30);
    --border-radius: 14px;
    --border-radius-sm: 8px;
    --cmp-c0: #007C99;
    --cmp-c1: #194ABB;
    --cmp-c2: #A15C00;
    --cmp-c3: #A3266B;
    --cmp-key-ink: #ffffff;
    --cmp-sec-bg: rgba(239, 233, 220, 0.94);
    --cmp-auth-eu: #194ABB;
    --cmp-auth-nat: #4169C3;
    --cmp-auth-rgn: #8A8478;
}

/* =============================================================================
   3. LEGACY VIEW RULES (the views keep their old inner markup in Phase 1; the tokens above re-skin them)
   ============================================================================= */
/* --- Design tokens: motion, radius, elevation, scrim, type (redesign phase 0, 2026-10-14) ---
   Shared by the redesign's new surfaces and by motion.js (which reads the easings and springs
   from here, so CSS and Web Animations move alike). Everything that changes in dark mode is
   redefined in BOTH dark blocks at the end of this file. Existing rules keep their literals
   until the phase that restyles them adopts a token. */
:root {
    /* Motion. --motion-scale is 1; ?slowmo=N sets it to N (motion.js) to review motion slowly.
       The global reduced-motion kill switch further down still applies to every CSS transition;
       JS-driven motion checks prefers-reduced-motion itself (motion.js). */
    --motion-scale: 1;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* the house curve: everything that arrives */
    --ease-in: cubic-bezier(0.5, 0, 0.75, 0);         /* exits */
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);    /* paths with both ends in view (flights, fold-backs) */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* the tour's POP: badges, knobs */
    --dur-1: calc(120ms * var(--motion-scale));       /* hover tints, tooltips */
    --dur-2: calc(200ms * var(--motion-scale));       /* fades, colour changes */
    --dur-3: calc(320ms * var(--motion-scale));       /* thumbs, popovers, the palette */
    --dur-4: calc(480ms * var(--motion-scale));       /* sheets, frames, bar widths */
    /* Named springs: damped springs sampled into linear() (below, where supported), with a
       cubic-bezier fallback here. Each has its settling time. glide: frames and focus rings that
       travel (a hint of overshoot); pop: chips, pins, badges landing; soft: panels, sheets;
       snap: thumbs and indicators. */
    --spring-glide: cubic-bezier(0.16, 1, 0.3, 1);
    --spring-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --spring-snap: cubic-bezier(0.16, 1, 0.3, 1);
    --spring-glide-dur: calc(650ms * var(--motion-scale));
    --spring-pop-dur: calc(600ms * var(--motion-scale));
    --spring-soft-dur: calc(640ms * var(--motion-scale));
    --spring-snap-dur: calc(340ms * var(--motion-scale));

    /* Radius */
    --r-pill: 999px;
    --r-card: var(--border-radius);                   /* 20px: glass cards */
    --r-sheet: 22px;                                  /* sheets, dialogs, the drawer's open edge */
    --r-tile: var(--border-radius-sm);                /* 12px: heatmap tiles, inputs, small panels */
    --r-chip: 8px;                                    /* tokens and small chips */

    /* Elevation: 1 cards, 2 hovered cards / popovers, 3 dialogs and sheets (the tour's recipe) */
    --elev-1: var(--glass-shadow);
    --elev-2: var(--glass-shadow-hover);
    --elev-3: 0 24px 64px rgba(var(--scrim-rgb), 0.28), 0 3px 10px rgba(var(--scrim-rgb), 0.12);
    /* the measure sheet (phase 2): a side shadow cast away from its open edge, mirrored when it sits
       on the left beside the chat panel (chat.css .chat-left; T-21 reads the first shadow's x) */
    --elev-drawer: -18px 0 50px rgba(var(--scrim-rgb), 0.12), -1px 0 0 rgba(var(--scrim-rgb), 0.04);
    --elev-drawer-left: 18px 0 50px rgba(var(--scrim-rgb), 0.12), 1px 0 0 rgba(var(--scrim-rgb), 0.04);

    /* Status ink: the v7 D10 inks of the token block above (they are 4.5:1+ on the pills' tinted fills); the
       phase 2 values that used to follow here overrode them in light (Active 4.44:1, Announced 4.46:1) */

    /* Scrim: always a DARK tint (never --k-rgb, which turns white in dark mode). --scrim-a is the
       modal strength (the tour's); --scrim-soft-a the light dim behind the drawer and sheets. */
    --scrim-rgb: 17, 21, 31;
    --scrim-a: 0.52;
    --scrim-soft-a: 0.15;

    /* Type */
    --font-display: 'Suisse Intl', 'Suisse Intl Fallback', 'Suisse Intl Fallback Android', Arial, sans-serif;
    --font-body: 'Suisse Intl', 'Suisse Intl Fallback', 'Suisse Intl Fallback Android', Arial, sans-serif;
    --fs-micro: 0.6875rem;   /* 11px */
    --fs-xs: 0.75rem;        /* 12px */
    --fs-sm: 0.84375rem;     /* 13.5px */
    --fs-base: 0.9375rem;    /* 15px */
    --fs-lg: 1.125rem;       /* 18px */
    --fs-xl: 1.375rem;       /* 22px */
    --fs-display: 2.75rem;   /* 44px */
}

@supports (transition-timing-function: linear(0, 1)) {
    :root {
        --spring-glide: linear(0, 0.027, 0.093, 0.182, 0.281, 0.381, 0.478, 0.567, 0.647, 0.717, 0.777, 0.827, 0.869, 0.902, 0.929, 0.95, 0.966, 0.979, 0.988, 0.994, 0.999, 1.002, 1.004, 1.005, 1.005, 1.005, 1.005, 1.005, 1.004, 1.004, 1.003, 1.003, 1);
        --spring-pop: linear(0, 0.065, 0.225, 0.433, 0.647, 0.841, 0.996, 1.105, 1.169, 1.193, 1.186, 1.158, 1.119, 1.077, 1.039, 1.007, 0.984, 0.969, 0.963, 0.963, 0.968, 0.975, 0.983, 0.991, 0.997, 1.002, 1.005, 1.007, 1.007, 1.006, 1.005, 1.004, 1);
        --spring-soft: linear(0, 0.029, 0.097, 0.186, 0.281, 0.376, 0.466, 0.547, 0.619, 0.682, 0.737, 0.783, 0.822, 0.854, 0.881, 0.904, 0.922, 0.937, 0.949, 0.959, 0.967, 0.974, 0.979, 0.983, 0.987, 0.989, 0.992, 0.993, 0.995, 0.996, 0.997, 0.997, 1);
        --spring-snap: linear(0, 0.026, 0.089, 0.174, 0.27, 0.367, 0.461, 0.548, 0.626, 0.695, 0.755, 0.806, 0.848, 0.883, 0.912, 0.934, 0.952, 0.967, 0.977, 0.985, 0.991, 0.996, 0.999, 1.001, 1.002, 1.003, 1.003, 1.003, 1.003, 1.003, 1.003, 1.002, 1);
    }
}

/* --- Global Reset & Reset Box-sizing --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 2rem;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(rgba(var(--accent-rgb), 0.04) 1.5px, transparent 1.5px),
        linear-gradient(rgba(var(--accent-rgb), 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.015) 1px, transparent 1px);
    background-size: 24px 24px, 120px 120px, 120px 120px;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: -2;
}

/* --- Layout Container --- */
.dashboard-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Product name (the Compass bar's brand line; the old glass header went in redesign phase 1) --- */

.quick-stats-bar {
    display: flex;
    gap: 1.5rem;
    background: rgba(var(--w-rgb), 0.4);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: 1px solid rgba(var(--w-rgb), 0.3);
}

@media (max-width: 575px) {
    .dashboard-container {
        padding: 1rem;
        gap: 1rem;
    }

    .quick-stats-bar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        border-radius: 18px;
    }
}

.quick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-stat .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.quick-stat .value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* --- Control groups (the scope popover's List tab; the old navigation card went in redesign phase 1) --- */

/* Compact Rounded Pill Selectors */

.view-pills {
    display: flex;
    flex-wrap: wrap;
    background: rgba(var(--w-rgb), 0.35);
    border: 1px solid rgba(var(--w-rgb), 0.4);
    padding: 0.25rem;
    border-radius: 40px;
    gap: 0.15rem;
}

.view-pill {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    justify-content: center;
}

.view-pill:hover {
    color: var(--text-primary);
}

.view-pill.active {
    background: var(--surface-solid);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Constrain nav switcher icons (inline SVGs have no width/height attrs) */
.view-pill svg.nav-svg {
    width: 1.15em;
    height: 1.15em;
    stroke-width: 2.2px;
    flex-shrink: 0;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.view-pill:hover svg.nav-svg {
    transform: scale(1.1);
}

@media (max-width: 575px) {
    .view-pills {
        border-radius: 18px;
        gap: 0.25rem;
        width: 100%;
    }

    .view-pill {
        flex: 1 1 calc(50% - 0.25rem);
        padding: 0.55rem 0.65rem;
        font-size: 0.78rem;
    }
}

/* --- Translucent Panel Container Class --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--card-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card.pop-effect:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--glass-shadow-hover);
}

/* --- Main View Layout Structures --- */
.main-dashboard-content {
    min-height: 50vh;
}

.dashboard-view {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-view.active {
    display: flex;
    animation: fadeInView 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Opacity only: a transform here (even a finished one) makes the active view a
   containing block for position:fixed, which threw the filter sheet thousands of
   pixels down the page for the 400ms after every view switch. */
@keyframes fadeInView {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =============================================================================
   VIEW 1: GLOBAL OVERVIEW
   ============================================================================= */

/* Dashboard intro blurb (Overview) */

.margin-top {
    margin-top: 0.5rem;
}

.chart-container-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 380px;
    /* Flex items default to min-width:auto = the canvas's current pixel width,
       which Chart.js re-sets every layout — so cards could grow with the
       viewport but never shrink back (one-way ratchet, clipped off-screen by
       body{overflow-x:hidden}). Zeroing the minimum lets the resize observer
       see a smaller parent again. */
    min-width: 0;
}

@media (max-width: 575px) {
    .chart-container-card {
        padding: 1rem;
    }
}

.card-header-block h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* One-clause methodological footnotes under charts and stat blocks (house
   style: a single short clause naming the limitation, never a wall of text). */

/* The shared Overview-charts caveat sits tight under its charts row despite
   the view's 1.5rem flex gap. */

/* "Curated comparable set" badge — marks surfaces that compare countries on
   core-press sources only (national dailies, business press, newswires;
   trade and regional titles excluded). Rendered by renderCoreBadge() and
   absent entirely when the compile carries no core flag. */

/* Extended-dataset state of the same badge: the reader has switched off the
   curated filter, so the badge warns rather than reassures. Amber, not blue —
   these counts are NOT comparable across countries. */

/* At the narrowest phone widths the curated label ("Curated comparable set:
   2,021 of 2,925 measures", 284 px) is wider than its card's heading and
   widened the whole page by 4 px at 320 px (WCAG 1.4.10 reflow): there it
   wraps inside its pill instead. */

/* Curated <-> Extended switch, rendered beside the badge on every
   cross-country surface (compare, heatmap, monthly coverage). */

/* -----------------------------------------------------------------------------
   Press coverage per cell (2026-10-09). Some country × sector cells are tracked
   from an earlier date ("history cells"). Rendered by app.js only when the
   compile's metadata.coverage holds one; nothing here shows otherwise.
   - .history-mark: the purple corner dot of a history cell (heatmap tile,
     Compare picker, column chip, legend).
   - .window-control: the note + switch under a cross-country card's
     description: counting from the common start, or with the history.
   ----------------------------------------------------------------------------- */
.history-mark {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 0 1.5px var(--surface-solid);
    flex: none;
    vertical-align: middle;
}

/* With the history on, counts are uneven across countries: amber, as the
   extended-dataset badge. */

/* At phone width the switch label may wrap rather than widen the card. */

.coverage-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.coverage-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(var(--k-rgb), 0.04);
    border: 1px solid rgba(var(--k-rgb), 0.08);
    white-space: nowrap;
    vertical-align: middle;
}

.coverage-chip.is-window {
    /* accent text on the accent tint: the ink token keeps 4.5:1 in both themes (go-live 2026-10-16:
       the plain accent read 2.82:1 on the dark Compare column) */
    color: var(--accent-ink, var(--accent-color));
    background: var(--accent-glow);
    border-color: rgba(var(--accent-rgb), 0.25);
}

.cmx-cell.cmx-history { position: relative; }
.cmx-cell.cmx-history::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 0 1.5px var(--surface-solid);
}

/* A 2024-25 month in the monthly coverage card: only some cells cover it. */

.mc-country-note {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: -0.1rem 0 0.3rem;
}

/* No data for that month (the country was not tracked yet), unlike an empty
   month of a tracked country. */
.mc-empty.is-untracked {
    font-style: italic;
    background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(var(--k-rgb), 0.035) 6px 12px);
    border-radius: var(--border-radius-sm);
}

/* Pills and empty notes shared by Most covered, Alerts and Initiatives (the Most covered card's own
   layout is in the redesign phase 3 block at the end) */

.mc-pill {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--k-rgb), 0.08);
    background: rgba(var(--w-rgb), 0.55);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mc-pill:hover { border-color: rgba(var(--accent-rgb), 0.3); color: var(--text-primary); }

.mc-pill.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.mc-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================================================
   VIEW 2: MEASURES REGISTRY
   ============================================================================= */

/* Search & select inputs (used by the Measures Explorer + Compare picker) */

/* Tag chips (used in the measure detail drawer) */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Status Pill Designs */

.instrument-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: rgba(var(--k-rgb), 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(var(--k-rgb), 0.06);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goal-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: rgba(163, 112, 255, 0.06);
    color: var(--goal-ink);
    border: 1px solid rgba(163, 112, 255, 0.18);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status indicator dots (explorer rows, footer, legends) */
.status-indicator-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--status-expired-txt);
}

.status-indicator-dot.active { background: #28c76f; box-shadow: 0 0 8px rgba(40, 199, 111, 0.4); }
.status-indicator-dot.announced { background: var(--accent-color); box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.35); }
.status-indicator-dot.in_discussion { background: #ff9f43; box-shadow: 0 0 8px rgba(255, 159, 67, 0.4); }
.status-indicator-dot.cancelled { background: #ea5455; box-shadow: 0 0 8px rgba(234, 84, 85, 0.4); }
.status-indicator-dot.expired { background: #6c757d; }
.status-indicator-dot.unknown { background: #b0b3b8; }
.status-indicator-dot.high { background: #28c76f; box-shadow: 0 0 8px rgba(40, 199, 111, 0.4); }
.status-indicator-dot.medium { background: #ff9f43; box-shadow: 0 0 8px rgba(255, 159, 67, 0.4); }
.status-indicator-dot.mismatch { background: #ea5455; box-shadow: 0 0 8px rgba(234, 84, 85, 0.4); }
.status-indicator-dot.inline { vertical-align: middle; margin-right: 0.4rem; }

/* =============================================================================
   VIEW 2: MEASURES EXPLORER LAYOUT
   ============================================================================= */

/* Sidebar Filter Panel */
.filter-panel {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Filter pane fills the shared layout height and scrolls internally */
@media (min-width: 992px) {
    .filter-panel {
        height: 100%;
        min-height: 0;
        overflow-y: auto;
    }
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(var(--k-rgb), 0.05);
    padding-bottom: 0.75rem;
}

.filter-panel-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Search input inside panel */

/* Quick Toggles */

/* Instrument Types group wrapper — header matches the other facet headers */

/* Collapsible Accordion Facets */

/* Intervention-side group toggle inside an instrument accordion header */

/* Checkbox facet rows with counts */

/* Explorer Main Content Area */

/* Results pane fills the shared layout height; the list inside it scrolls */

/* Results header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.results-count {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Compact raw compact measures rows */
.measures-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* On desktop the results list is a fixed-height internal scroller. Because its
   box height no longer depends on the number of rows, filtering can never change
   the document height — which is what was clamp-scrolling the window ("page jump").
   The results header above it (count + sort) stays fixed; the sidebar is sticky. */
@media (min-width: 992px) {
    .measures-rows {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 0.4rem;
    }
}

.measure-explorer-row {
    padding: 1.15rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .measure-explorer-row {
        grid-template-columns: 1.8fr 2.5fr 1.2fr;
        gap: 1.5rem;
    }
}

.measure-explorer-row:hover {
    background: var(--surface-solid);
    border-color: rgba(var(--accent-rgb), 0.18);
    /* No lift/scale: rows live inside an overflow scroll container, so a
       transform or large shadow would get clipped at the container edges. */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* =============================================================================
   VIEW 3: COMPARE (rules in the COMPARE section at the end of this file; the
   .compare-* blocks below are shared with the Initiatives view)
   ============================================================================= */
/* Unified metric block inside compare cards */

/* Custom aligned metric rows */
.compare-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.compare-metric-row .val {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
}

/* Aligned mini metrics bar */

/* Stacked CSS bars */

/* Inferred Side Legend */

/* Instrument counts mini list */

/* =============================================================================
   INITIATIVES VIEW (aggregated cross-country / cross-sector programs)
   ============================================================================= */

/* Footprint matrix. Auto-layout tables treat width:100% as a floor — they
   never shrink below min-content, which at 9 country columns exceeds the
   half-width grid cell at every viewport, so the bare table used to paint
   across the grid gap into the "Intervention side" block. The wrap gives the
   table its own scroll context (same pattern as .compare-picker-panel). */

/* Authority delegation chain */

/* Scope toolbar above the cards */

/* Reach line: country + sector chips with per-context measure counts */

/* Side-by-side context comparison inside a card */

.mc-pill.small {
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
}

/* Member measures */

/* Country × sector context groups inside the member-measure list */

/* =============================================================================
   LOGIN GATE (auth.js) — encrypted-data unlock screen
   ============================================================================= */

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(var(--accent-rgb), 0.10), transparent 60%),
        radial-gradient(1000px 500px at 90% 110%, rgba(163, 112, 255, 0.10), transparent 60%),
        var(--overlay-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-overlay.login-done { opacity: 0; pointer-events: none; }

.login-card {
    width: min(380px, 100%);
    padding: 2.2rem 2rem;
    text-align: center;
}

.login-brand svg { color: var(--accent-color); margin-bottom: 0.6rem; }

.login-brand h1 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.3rem;
}

.login-brand p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0 1.4rem;
}

.login-form { display: flex; flex-direction: column; gap: 0.7rem; }

.login-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font: inherit;
    font-size: 0.88rem;
    color: var(--text-primary);
    background: rgba(var(--w-rgb), 0.75);
    border: 1px solid rgba(var(--k-rgb), 0.08);
    border-radius: var(--border-radius-sm, 10px);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.login-submit {
    margin-top: 0.3rem;
    padding: 0.7rem 1rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-color, var(--accent-color));
    border: none;
    border-radius: var(--border-radius-sm, 10px);
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.login-submit:hover:not(:disabled) { filter: brightness(1.08); }
.login-submit:active:not(:disabled) { transform: scale(0.985); }
.login-submit:disabled { opacity: 0.65; cursor: default; }

.login-error {
    font-size: 0.78rem;
    color: #ea5455;
    font-weight: 600;
}

.login-note {
    margin-top: 1.2rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

@keyframes login-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(3px); }
    30%, 50%, 70% { transform: translateX(-5px); }
    40%, 60% { transform: translateX(5px); }
}

.login-card.login-shake { animation: login-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

.view-pill.auth-signout { margin-left: auto; }

/* =============================================================================
   REPORTED SENTIMENT (press framing) — explorer chip + drawer section
   ============================================================================= */

.sentiment-press-note {
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.sentiment-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.sentiment-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.sentiment-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.sentiment-conf {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.sentiment-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.sentiment-holders {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sentiment-holder {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.sentiment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.42rem;
    flex-shrink: 0;
}

.sentiment-holder-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sentiment-holder-group {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sentiment-holder-stance {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.4rem;
}

.sentiment-holder-quote {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.45;
}

/* One line per stakeholder (owner 2026-11-09): a stakeholder's several quotes under its line, each with its source;
   on a Mixed line each quote names its own stance */
.sentiment-holder-quotes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sentiment-holder-q {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sentiment-holder-qstance {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* =============================================================================
   EXPANDABLE DRAWER OVERLAY & PANEL
   ============================================================================= */

.detail-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(var(--scrim-rgb), var(--scrim-soft-a)); /* a dark tint in both themes (was --k-rgb, white in dark) */
    backdrop-filter: blur(8px);
    z-index: 102; /* Overlay sits between Drawer 1 and Drawer 2 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.detail-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 103; /* Drawer 2 sits on top of Drawer 1 */
    background: rgba(var(--w-rgb), 0.94);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: var(--card-border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.07);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 600px) {
    .detail-drawer {
        width: 32vw;
        min-width: 440px;
        max-width: 660px;
        right: -100%;
    }
}

.detail-drawer.active {
    right: 0;
}

.close-drawer-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(var(--k-rgb), 0.05);
    background: rgba(var(--w-rgb), 0.8);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-drawer-btn:hover {
    background: var(--surface-solid);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: scale(1.05);
}

.drawer-scroll-container {
    height: 100%;
    overflow-y: auto;
    padding: 2.5rem;
}

@media (max-width: 599px) {
    .drawer-scroll-container {
        padding: 4rem 1rem 1.25rem;
    }
}

/* Inside Drawer Contents styling */
.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-header {
    border-bottom: 1px solid rgba(var(--k-rgb), 0.05);
    padding-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.drawer-header .policy-ref {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-header h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
}

.drawer-meta-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(var(--w-rgb), 0.4);
    border: 1px solid rgba(var(--k-rgb), 0.03);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.meta-row .lbl {
    color: var(--text-muted);
    font-weight: 500;
}

.meta-row .val {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.drawer-content-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-content-section h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.drawer-content-section p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Monthly Status Snapshot History — vertical timeline */

.step-context, .step-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 0.35rem;
    background: rgba(var(--w-rgb), 0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--w-rgb), 0.4);
}

/* Authority box specialized */

@media (max-width: 599px) {

    .meta-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .meta-row .val {
        text-align: left;
    }
}

/* Quote box (evidence) */
.drawer-quote {
    background: rgba(var(--w-rgb), 0.5);
    border-left: 3px solid var(--accent-color);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.45;
}

.quote-citation {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.quote-citation a {
    color: var(--accent-color);
    text-decoration: none;
}

.quote-citation a:hover {
    text-decoration: underline;
}

/* Link-less citation (article has no source_url): same citation text, plain —
   no accent colour, no underline, no pointer cursor. */
.quote-citation-source {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

/* Articles source list */
.articles-source-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: rgba(var(--w-rgb), 0.4);
    border: 1px solid rgba(var(--k-rgb), 0.03);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

/* Hover lift is a link affordance — only the anchor form gets it. Link-less
   rows (LexisNexis articles have no URL) keep the identical row styling. */
a.article-source-item:hover {
    background: var(--surface-solid);
    box-shadow: 0 2px 8px rgba(var(--k-rgb), 0.02);
    color: var(--accent-color);
}

.article-source-item.is-static {
    cursor: default;
}

.article-source-item span {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    min-width: 0;
}

.article-source-item .date {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* =============================================================================
   GLASS FOOTER & SCROLLBAR STYLING
   ============================================================================= */

.glass-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.25rem 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(var(--k-rgb), 0.03);
}

.meta-tag {
    margin-left: 1rem;
}

/* Thin Glassy Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--k-rgb), 0.08);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--k-rgb), 0.15);
}

/* --- Methodology View Styles --- */

.methodology-header {
    border-bottom: 1px solid rgba(var(--k-rgb), 0.05);
    padding-bottom: 1.5rem;
}

.methodology-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.methodology-header .desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
    max-width: 800px;
}

/* --- Inline Text Link Buttons --- */

/* Collapsible mapped press publications */
.collapsible-articles-details {
    width: 100%;
}

.collapsible-articles-details summary::-webkit-details-marker {
    display: none;
}

.articles-summary-toggle {
    outline: none;
    cursor: pointer;
    list-style: none;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0;
    user-select: none;
    transition: color 0.15s ease;
}

.articles-summary-toggle:hover {
    color: var(--accent-hover, #0056b3);
}

.articles-summary-toggle .summary-arrow {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.collapsible-articles-details[open] .summary-arrow {
    transform: rotate(180deg);
}

/* Verification source links hover effect */

/* Web-search affordance on link-less (LexisNexis) article rows: the corpus
   carries no URLs, so title+outlet+date goes to a search engine instead
   (added 2026-08-27). */
.article-google-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    color: var(--accent-color);
    opacity: 0.7;
    text-decoration: none;
}
.article-google-link:hover,
.article-google-link:focus-visible {
    opacity: 1;
    background: rgba(var(--accent-rgb), 0.12);
}

/* ---- Alerts view (2026-08-27; restyled 2026-09-22; the digest, redesign phase 4, 2026-10-15) ----
   Signal colours as rgb triplets so chips, tiles and stripes tint from one source in both schemes;
   the summary tiles double as the signal filter. Phase 4 (AUDIT_SYNTHESIS P6): a counts-only head,
   the top five as larger cards, day by day with one-line rows and stacks that fan open, a labelled
   Where list that sets the scope, and the last visit (catch-up strip, divider, unseen dots). */
:root {
    --sig-new: 11, 110, 122;
    --sig-status: 63, 81, 181;
    --sig-amount: 180, 83, 9;
    --sig-spike: 194, 65, 12;
    --sig-spread: 109, 40, 217;
    --sig-all: var(--accent-rgb);
    --sig-chip-ink: #fff;
}

/* The head: dateline, a headline of counts, the intro (first visit) or "About alerts", the as-of note */

/* Text measures are in em, not ch (fixer round 2): ch is the width of the face's '0', so a line set in the
   metric-matched fallback (before Suisse arrives) took another measure. 1ch of Suisse Intl Regular = 0.668em:
   82ch = 54.8em here; .al-row-m 46ch = 30.7em, .mx-tok-l 26ch = 17.4em (20ch = 13.4em), .ms-desc 66ch = 44.1em. */

/* The toolbar (the tour's target with #alerts-asof): window, set badge, signal tiles */
.alerts-toolbar { padding: 0.85rem 1.25rem 1rem; margin-bottom: 1.25rem; }

 

/* The digest: the feed, and Where beside it (1200 px and up) or above it (768-1199) */

/* The unseen dot ("new since your visit"); it fades as the card is seen */

/* Catch up */

/* Top five */

/* Cards (the top five, and alerts with more than a first report) */

 

.alert-sig { --sig: var(--sig-all); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.18rem 0.6rem; border-radius: 999px; color: rgb(var(--sig)); background: rgba(var(--sig), 0.13); border: 1px solid rgba(var(--sig), 0.22); }

.alert-sig.new { --sig: var(--sig-new); } .alert-sig.status { --sig: var(--sig-status); } .alert-sig.amount { --sig: var(--sig-amount); } .alert-sig.spike { --sig: var(--sig-spike); } .alert-sig.spread { --sig: var(--sig-spread); }

   /* text in the deeper ink (QA 15 tokens below): the bar orange is 4.4:1 in light */

/* Day by day: a sticky rail (big numeral) beside each day's blocks; a chip on phones */

/* "You were here" */

/* One-line rows: alerts that are only a first report */

/* Stacks: a run folded into one card that fans open */

/* Where: every country named; a row sets the scope */
.al-where { padding: 1rem 1rem 0.9rem; }
.al-where h3 { margin: 0; font: 800 1.05rem/1.2 var(--font-display); color: var(--text-primary); }

/* The Ask circle (bottom right, P17) gets a gutter: beside Where (1200-1599) and the day blocks (768-1199);
   on phones beside the head and the toolbar (phase 4 review X2) */
@media (max-width: 767px) { #view-alerts .alerts-toolbar { padding-right: calc(0.9rem + 46px); }  }
/* Touch: a card opens from anywhere on it (its name is the link; review X6) */

@media (min-width: 1200px) and (max-width: 1599px) { .al-where { padding-right: 2.5rem; } }

@media (max-width: 767px) {

    
    .alerts-toolbar { padding: 0.75rem 0.9rem 0.8rem; }

    

    

    

    

    
    /* the top five scroll sideways, one card at a time */

    

    
    /* days: a chip that sticks under the docked bar until the next day pushes it up */

    

    

    

    

    

}

/* The badge on the Alerts tab: on the icon's corner, so the tab keeps its width */

.al-badge { position: absolute; top: -8px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    background: rgb(var(--sig-spike)); color: var(--sig-chip-ink); font: 800 0.66rem/1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 0;
    box-shadow: 0 0 0 2px var(--surface-solid); pointer-events: none; }
.al-badge[hidden] { display: none; }
/* in the bar the label follows the icon closely: it steps aside while the badge shows */

/* The phone sheet: named chips */

/* =============================================================================
   PLATFORM & MOBILE PASS (2026-09-16)
   Human Interface Guidelines alignment: 44pt touch targets, safe-area insets,
   reduced-motion, visible keyboard focus, tabular figures, hover only on
   hover-capable pointers. Phones get a bottom tab bar, one horizontal rail per
   selector, a bottom-sheet filter panel and a chunked results list. Appended
   last on purpose: at equal specificity these rules win the cascade.
   ============================================================================= */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.dashboard-container {
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
}

/* Figures line up in columns */
.quick-stat .value, .results-count, .cmx-cell {
    font-variant-numeric: tabular-nums;
}

/* Keyboard focus is visible; mouse focus is not */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.view-pill:focus-visible, .cmx-cell:focus-visible {
    outline-offset: 1px;
}

/* Rows and heatmap tiles are given role="button" and tabindex by app.js. The
   row's ring is drawn inside its own edge: .measures-rows is an overflow-x:
   hidden scroller with no left padding, which cuts the left and top of an
   outset ring. The tile's 2px ring fits the wrapper padding and the 8px grid
   gap. Both follow the element's own radius (row 20px, tile 12px). */
.measure-explorer-row:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

/* Lift-on-hover only where a hover exists (touch would leave it stuck) */
@media (hover: none) {
    .cmx-cell:hover, .close-drawer-btn:hover, .measure-explorer-row:hover {
        transform: none;
    }

    .view-pill:hover svg.nav-svg {
        transform: none;
    }
}

/* 44pt targets on coarse pointers */
@media (pointer: coarse) {
    .view-pill, .cmx-cell, .rows-more-btn {
        min-height: 44px;
    }

    .close-drawer-btn {
        width: 44px;
        height: 44px;
    }

    .filter-panel label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .filter-panel input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

/* Motion is optional */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

}

/* --- Radar logo: the sweep is back (dropped in the June redesign) ------------
   One slow rotation of the sweep line + glow wedge, a soft pulse on the centre
   dot. Paused under prefers-reduced-motion (above) and while the tab is hidden
   (app.js toggles .radar-paused on visibilitychange). */

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes radarPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.5); opacity: 0.65; }
}

/* --- Load progress bar ------------------------------------------------------ */
.load-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 600;
    background: rgba(var(--accent-rgb), 0.12);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    overflow: hidden;
}

.load-progress.active {
    opacity: 1;
}

.load-progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent-color);
    border-radius: 0 2px 2px 0;
    transition: width 0.2s ease-out;
}

.load-progress.indeterminate .load-progress-bar {
    width: 30%;
    animation: loadSlide 1.2s ease-in-out infinite;
}

@keyframes loadSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* The fade must NOT keep filling after it ends. An animation that is still in
   effect on opacity keeps a stacking context on the active view for as long as
   it fills, and the phone filter sheet is position:fixed INSIDE that view: with
   forwards it paints under its own z-index:120 scrim, so every control in the
   sheet (search, facets, Clear all) stops responding to taps. The keyframes are
   opacity-only now, so this no longer also fixes a containing-block trap — but
   it is still load-bearing. Measured 2026-09-17. */
.dashboard-view.active {
    animation-fill-mode: none;
}

/* --- Chunked results list --------------------------------------------------- */

.rows-more-btn {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 40px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    background: var(--surface-solid);
    color: var(--accent-color);
    cursor: pointer;
}

/* --- Filters toggle + bottom sheet (under 992px) ---------------------------- */

.filter-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(var(--scrim-rgb), calc(var(--scrim-soft-a) * 1.2)); /* dark tint in both themes */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 991px) {

    .results-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .results-count {
        flex: 1 1 auto;
    }

    .filter-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        max-height: 85vh;
        max-height: 85dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 121;
        border-radius: 22px 22px 0 0;
        background: rgba(var(--w-rgb), 0.97);
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        transform: translateY(105%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
    }

    body.filters-open .filter-panel {
        transform: translateY(0);
        visibility: visible;
    }

    body.filters-open .filter-sheet-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.filters-open {
        overflow: hidden;
    }

    .filter-panel-header {
        position: sticky;
        top: 0;
        z-index: 1;
        margin: -1.5rem -1.5rem 0;
        padding: 1.6rem 1.5rem 0.75rem;
        background: rgba(var(--w-rgb), 0.97);
    }

    /* Grab handle */
    .filter-panel-header::before {
        content: '';
        position: absolute;
        top: 0.55rem;
        left: 50%;
        width: 36px;
        height: 5px;
        margin-left: -18px;
        border-radius: 3px;
        background: rgba(var(--k-rgb), 0.16);
    }
}

/* --- Detail drawer: dynamic viewport + scroll lock -------------------------- */
.detail-drawer,
.detail-drawer-overlay {
    height: 100vh;
    height: 100dvh;
}

body.drawer-open {
    overflow: hidden;
}

.drawer-scroll-container {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

/* --- Phones: bottom tab bar + selector rails -------------------------------- */
@media (max-width: 767px) {
    .dashboard-container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    body {
        /* room for the tab bar */
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .view-pills-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        width: 100%;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(var(--k-rgb), 0.06);
        background: rgba(var(--w-rgb), 0.84);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        padding: 0.3rem 0.4rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
        gap: 0;
        flex-wrap: nowrap;
        justify-content: space-around;
    }

    .view-pill {
        flex: 1 1 0;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.35rem 0.2rem;
        min-height: 50px;
        border-radius: 12px;
        font-size: 0.68rem;
        letter-spacing: 0.01em;
    }

    /* The bar has no active background, so the selected tab needs a cue that is
       not colour alone: a heavier label plus a 2px rule across the top of the
       pill. --accent-strong keeps the label legible on the dark bar. */
    .view-pill.active {
        background: transparent;
        box-shadow: inset 0 2px 0 var(--accent-strong);
        color: var(--accent-strong);
        font-weight: 700;
    }

    .view-pill svg.nav-svg {
        width: 1.5em;
        height: 1.5em;
    }

    .view-pill-label {
        font-size: 0;
    }

    .view-pill-label::before {
        content: attr(data-short);
        font-size: 0.68rem;
    }

    /* Selector rails: one line each, scroll sideways, edges fade */

    .glass-footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.25rem 0.5rem;
    }

    .meta-tag {
        margin-left: 0;
    }
}

/* =============================================================================
   4. APPEARANCE: light only (owner 2026-11-19, "no dark mode"). The OS-dark block and the data-theme=dark block
      (H-THEME) are removed with the appearance button; color-scheme light keeps form controls and scrollbars light
      for a reader whose system is dark (index.html's meta color-scheme says the same before the CSS arrives).
   ============================================================================= */
:root { color-scheme: light; }

/* --- The scope popover (desktop) / bottom sheet (phones) ---------------------- */
/* z-order (PLAN 3.3, checker round 1): the phone sheet and its scrim sit under the chat (101) but over the tab bar,
   which steps down while the sheet is open; the desktop popover keeps its place over the page */

   /* the scrim only ever shows for the sheet */
/* ...so the Ask circle (101) would sit on the sheet's sticky "Done" button: it steps aside while the sheet is open, as
   it does for the Compare picker (chat.css), and comes back on keyboard focus (checker round 2) */

.scope-pop {
    position: fixed; z-index: 130; top: 0; left: 0;
    width: min(780px, calc(100vw - 24px));
    display: flex; flex-direction: column;
    border-radius: var(--r-sheet); background: var(--surface-solid);
    border: 1px solid rgba(var(--k-rgb), 0.08); box-shadow: var(--elev-3);
    overflow: hidden;
    opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: var(--ox, 50%) 0;
    transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out);
}
.scope-pop.open { opacity: 1; transform: none; }
.scope-pop[hidden] { display: none; }
.scope-pop:focus { outline: none; }

.link-btn { border: 0; background: none; color: var(--accent-strong); font: 600 0.82rem/1 var(--font-body); cursor: pointer; padding: 8px 6px; border-radius: 8px; }
.link-btn:hover { text-decoration: underline; }

/* the List tab: the two selector rails, wrapping chips (full names, counts) */

/* the matrix: 11 x 6 with totals, one square-root scale, a frame that glides onto the scope */
.mx { position: relative; display: grid; gap: 3px; --mx-h: 32px;
    grid-template-columns: minmax(136px, 1.4fr) repeat(6, minmax(0, 1fr)) minmax(54px, 0.8fr); }
.mx > * { min-width: 0; border-radius: 8px; border: 0; background: transparent; font: inherit; color: inherit; }
.mx button { cursor: pointer; }

.mx-cell { position: relative; height: var(--mx-h); display: flex; align-items: center; justify-content: center;
    font: 700 0.84rem/1 var(--font-display); font-variant-numeric: tabular-nums;
    background-color: var(--hc, transparent) !important; color: var(--hk, var(--text-primary));
    box-shadow: inset 0 1px 1px rgba(var(--w-rgb), 0.3);
    transition: background-color var(--dur-4) var(--ease-out), color var(--dur-3) ease, opacity var(--dur-2) ease, box-shadow var(--dur-2) ease; }

.mx-cell:hover { box-shadow: inset 0 1px 1px rgba(var(--w-rgb), 0.3), 0 0 0 2px rgba(var(--accent-rgb), 0.45); z-index: 2; }
/* outside the scope: the fill fades, the figure stays legible (and the cell stays a target) */

.mx button:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 1px; z-index: 4; }

/* phones: a bottom sheet; the List tab comes first, the matrix fits all six sectors */

/* the sheet's body scrolls: a fade at its lower edge says there is more, until the end is reached */

@media (max-width: 767px) {
    .mx { grid-template-columns: 42px repeat(6, minmax(0, 1fr)); --mx-h: 44px; gap: 3px; }

    

    

    

    
    .mx-cell { font-size: 0.82rem; }

}

/* --- The palette (Ctrl/Cmd K) ----------------------------------------------- */

.cmdk[hidden] { display: none; }
.cmdk { position: fixed; z-index: 151; left: 0; right: 0; top: 12vh; margin-inline: auto; width: min(660px, calc(100vw - 24px)); max-height: min(560px, 76vh);
    display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-sheet);
    background: var(--surface-solid); border: 1px solid rgba(var(--k-rgb), 0.08); box-shadow: var(--elev-3);
    opacity: 0; transform: translateY(12px) scale(0.97); transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out); }
.cmdk.open { opacity: 1; transform: none; }

@media (max-width: 767px) {
    .cmdk { top: 8px; max-height: calc(100dvh - 16px - 78px); }

}

/* --- Toast ----------------------------------------------------------------- */
.cb-toast { position: fixed; z-index: 170; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 32px);
    transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    padding: 10px 16px; border-radius: var(--r-pill); background: var(--text-primary); color: var(--bg-main);
    font: 600 0.82rem/1.3 var(--font-body); box-shadow: var(--elev-3);
    transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out); }
.cb-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) { .cb-toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }
.cb-toast.has-action.on { pointer-events: auto; }
.cb-toast-act { margin-left: 0.5rem; min-height: 28px; padding: 0 0.7rem; border: 1px solid currentColor; border-radius: var(--r-pill);
    background: transparent; color: inherit; font: 700 0.8rem/1 var(--font-body); cursor: pointer; }
.cb-toast-act:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
@media (pointer: coarse) { .cb-toast-act { min-height: 44px; min-width: 44px; } }

/* the phone sheet's head: the scope on its own line, the count under it */

/* 44 px targets on coarse pointers in the scope popover (after its own rules, which they override) */
@media (pointer: coarse) {
    .scope-pop .mx { --mx-h: 44px; }

    

       /* the popover's flex column squeezed it to 27 px (checker round 2) */

}

/* =============================================================================
   MEASURES AND THE MEASURE SHEET (redesign phase 2, 2026-10-15; app.js)
   A's sentence header and tokens, B's hairline single-card list and calmer craft, C's "Outside the
   curated set". Appended last: at equal specificity these rules win over the older explorer and
   drawer rules above, which stay for anything that still uses them.
   ============================================================================= */

/* --- The heading: eyebrow, sentence with tokens, toolbar, the count line ------------------- */

.mx-sentence {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 8px;
    margin: 8px 0 14px;
    font: 600 1.3rem/1.2 var(--font-display); color: var(--text-primary);
}

/* --- Layout: the facet rail and the list share the viewport under the docked bar ------------ */

/* --- B's hairline single-card list ------------------------------------------------------ */
.measures-rows {
    gap: 0;
    /* a reading surface: near-opaque instead of blurred glass. A backdrop blur under a list that
       repaints on every keystroke cost about 50 ms a paint (P16; measured, software rendering). */
    background: rgba(var(--w-rgb), 0.86);
    border: var(--card-border);
    border-radius: var(--r-card);
    box-shadow: var(--elev-1);
}
@media (min-width: 992px) {
    .measures-rows { padding-right: 0; scroll-padding: 8px 0; }
}
.measures-rows mark, .ms-else mark {
    background: rgba(var(--accent-rgb), 0.18); color: inherit; border-radius: 3px; padding: 0 1px;
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.measure-explorer-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 104px 124px;
    grid-template-areas: "st main money metric";
    align-items: start;
    gap: 4px 18px;
    padding: 15px 22px 15px 18px;
    border-top: 1px solid rgba(var(--k-rgb), 0.07);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color var(--dur-1) ease;
}
.measure-explorer-row:first-child { border-top: 0; border-radius: var(--r-card) var(--r-card) 0 0; }
.measure-explorer-row:hover { background: rgba(var(--accent-rgb), 0.045); box-shadow: none; border-color: rgba(var(--k-rgb), 0.07); }
.measure-explorer-row:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -3px; border-radius: 10px; }
.measure-explorer-row.is-flash { animation: mxRowFlash 0.9s var(--ease-out); }
@keyframes mxRowFlash {
    0% { box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0.85); background: rgba(var(--accent-rgb), 0.1); }
    100% { box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0); background: transparent; }
}

.outside-badge {
    background: rgba(255, 170, 0, 0.1); color: var(--warn-txt); border: 1px solid rgba(255, 170, 0, 0.32);
}

/* compact density: one line per measure */

.mx-empty { padding: 3.5rem 1.5rem; text-align: center; }
.mx-empty h4 { font: 700 1.1rem/1.3 var(--font-display); color: var(--text-primary); }
.mx-empty p { margin-top: 0.4rem; font-size: 0.88rem; color: var(--text-secondary); }

/* --- Status, labelled (never an unlabelled dot; null is "Not reported") ------------------ */
.st-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px;
    border-radius: var(--r-pill); border: 1px solid transparent; white-space: nowrap;
    font: 650 0.74rem/1 var(--font-body); letter-spacing: 0.01em;
}
.st-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st-pill.is-lg { height: 28px; font-size: 0.8rem; padding: 0 12px 0 10px; }
.st-pill.is-sm { height: 20px; font-size: 0.68rem; padding: 0 8px 0 6px; }
.st-pill.st-active { background: var(--status-active-bg); border-color: var(--status-active-border); color: var(--st-active-ink); }
.st-pill.st-active i { background: var(--st-active); }
.st-pill.st-announced { background: var(--status-announced-bg); border-color: var(--status-announced-border); color: var(--st-announced-ink); }
.st-pill.st-announced i { background: var(--st-announced); }
.st-pill.st-in_discussion { background: var(--status-discussion-bg); border-color: var(--status-discussion-border); color: var(--st-discussion-ink); }
.st-pill.st-in_discussion i { background: var(--st-discussion); }
.st-pill.st-cancelled { background: var(--status-cancelled-bg); border-color: var(--status-cancelled-border); color: var(--st-cancelled-ink); }
.st-pill.st-cancelled i { background: var(--st-cancelled); }
.st-pill.st-expired { background: var(--status-expired-bg); border-color: var(--status-expired-border); color: var(--st-expired-ink); }
.st-pill.st-expired i { background: var(--st-expired); }
.st-pill.st-unknown { background: transparent; border: 1px dashed rgba(var(--k-rgb), 0.28); color: var(--text-muted); }
.st-pill.st-unknown i { background: transparent; border: 1.5px solid currentColor; width: 6px; height: 6px; }

/* --- The facet rail: options are chips with live counts (B), zeros dimmed ------------------ */
.filter-panel { gap: 0.9rem; }
.filter-panel-header h3 { font-size: 1.05rem; }

/* --- The phone filter sheet: grab handle (above), a live "Show N measures" ----------------- */
@media (max-width: 991px) {

    

    /* the sheet's header sticks at the very top of the sheet (its padding no longer lets chips show above it) */
    .filter-panel-header { top: -1.5rem; background: rgb(var(--w-rgb)); }
    .filter-panel { background: rgb(var(--w-rgb)); }

}
.filter-panel-header h3 { flex: none; }
@media (max-width: 767px) {

    .mx-sentence { margin: 6px 0 12px; font-size: 1.1rem; gap: 6px; }

    

    

    

    

    

    .measure-explorer-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "st metric" "main main" "money money";
        gap: 8px 12px;
        padding: 14px 16px;
    }

    

    

    

}
@media (min-width: 768px) and (max-width: 1199px) {
    .measure-explorer-row { grid-template-columns: 112px minmax(0, 1fr) auto auto; gap: 4px 14px; }
}

/* =============================================================================
   The measure sheet
   ============================================================================= */
.detail-drawer {
    display: flex;
    flex-direction: column;
    box-shadow: var(--elev-drawer);
}
.detail-drawer:focus { outline: none; }
.ms-bar {
    flex: none; position: relative; z-index: 2;
    display: flex; align-items: center; gap: 6px;
    padding: 12px 14px 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}
.ms-bar.show-title { border-bottom-color: rgba(var(--k-rgb), 0.08); background: rgba(var(--w-rgb), 0.5); }
.ms-step { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; }
.ms-bar.show-title .ms-step { flex: none; }
.ms-ic {
    width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; padding: 0;
    border-radius: 50%; border: 1px solid rgba(var(--k-rgb), 0.1); background: rgba(var(--w-rgb), 0.7);
    color: var(--text-secondary); cursor: pointer;
    transition: background-color var(--dur-1) ease, color var(--dur-1) ease, opacity var(--dur-2) ease;
}
.ms-ic svg { width: 16px; height: 16px; }
.ms-ic:hover:not(:disabled) { background: var(--surface-solid); color: var(--text-primary); }
.ms-ic:disabled { opacity: 0.38; cursor: default; }
.close-drawer-btn.ms-ic { position: static; top: auto; right: auto; width: 36px; height: 36px; z-index: auto; }
.close-drawer-btn.ms-ic:hover { transform: none; box-shadow: none; }
.ms-pos {
    margin-left: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font: 500 0.82rem/1.2 var(--font-body); color: var(--text-muted);
}
.ms-pos b { font: 700 0.86rem/1 var(--font-display); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ms-bar-title { display: none; }
.ms-bar.show-title .ms-bar-title {
    display: block; flex: 1 1 auto; min-width: 0; margin-left: 6px;
    font: 700 0.92rem/1.2 var(--font-display); color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ms-bar.show-title .ms-pos-in { display: none; }
.drawer-scroll-container {
    flex: 1 1 auto; min-height: 0; height: auto;
    padding: 4px 28px calc(2.5rem + env(safe-area-inset-bottom, 0px));
}
.drawer-content { gap: 1.35rem; }
.drawer-header { gap: 0.45rem; margin-top: 0.25rem; padding-bottom: 1rem; }
.ms-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.ms-crumb {
    border: 0; background: none; padding: 4px 4px; margin: -4px 0; border-radius: 6px;
    font: 700 0.72rem/1.3 var(--font-body); letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--accent-ink); cursor: pointer;
}
button.ms-crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.ms-crumb.is-sector::before {
    content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
    background: rgb(var(--sec-rgb, var(--accent-rgb))); vertical-align: 0;
}
.ms-crumb.is-eu {
    cursor: help; color: var(--text-secondary); padding: 3px 8px; margin: 0 0 0 2px;
    border: 1px solid rgba(var(--k-rgb), 0.16); border-radius: var(--r-pill); letter-spacing: 0.06em;
}
.ms-sep { color: var(--text-muted); font-size: 0.8rem; }
.drawer-header h2 { font-size: 1.5rem; line-height: 1.22; }
.drawer-header h2:focus { outline: none; }
.drawer-header h2:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 4px; border-radius: 6px; }
.drawer-header .policy-ref { text-transform: none; letter-spacing: 0; font: 600 0.84rem/1.35 var(--font-body); color: var(--text-muted); }
.tags-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.outside-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); font: 650 0.74rem/1 var(--font-body); }

.ms-why {
    border-left: 3px solid var(--accent-color); background: rgba(var(--accent-rgb), 0.06);
    border-radius: 0 var(--r-tile) var(--r-tile) 0; padding: 10px 14px;
}
.ms-why-t { display: block; font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.ms-why p { font-size: 0.86rem; line-height: 1.45; color: var(--text-secondary); }

.drawer-content-section h3,
.ms-facts .ms-h {
    font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.drawer-content-section h3 .sentiment-press-note { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ms-h-n { margin-left: 4px; color: var(--text-secondary); }
.ms-summary .ms-desc { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); max-width: 44.1em; }
.ms-desc.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.ms-more { align-self: flex-start; padding: 6px 0; }
.ms-none { color: var(--text-muted); font-style: italic; }
.ms-sub-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* key facts: a grid of small cards (the tour's "drawer" step spans header, tags and these) */
.drawer-meta-section.ms-facts { background: none; border: 0; padding: 0; gap: 10px; }
.ms-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }   /* no dense packing: the facts keep their reading and tab order (phase 5 review, R5); app.js widens a half fact left alone before a wide one */
.ms-fact {
    display: flex; flex-direction: column; gap: 3px; min-width: 0;
    padding: 10px 12px; border-radius: var(--r-tile);
    border: 1px solid rgba(var(--k-rgb), 0.07); background: rgba(var(--w-rgb), 0.5);
}
.ms-fact.is-wide { grid-column: 1 / -1; }
.ms-fact .lbl { font: 700 0.64rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.ms-fact .val { font: 600 0.88rem/1.35 var(--font-body); color: var(--text-primary); overflow-wrap: break-word; }
.ms-fact .val small { font-weight: 500; color: var(--text-muted); }
.ms-fact .note { font-size: 0.72rem; line-height: 1.35; color: var(--text-muted); }
.ms-fact .ms-money { color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; }
.ms-fact .ms-reach { display: block; margin-top: 2px; }
.ms-link {
    border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
    font: inherit; color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), 0.35); text-underline-offset: 3px;
}
.ms-link:hover { text-decoration-color: currentColor; }
.ms-hist-rows { display: flex; flex-direction: column; gap: 0.6rem; padding: 10px 12px; border-radius: var(--r-tile); border: 1px solid rgba(var(--k-rgb), 0.07); }

/* evidence */
.ms-evidence .drawer-quote {
    position: relative; margin: 0; font-style: normal; font-size: 0.92rem; line-height: 1.55; color: var(--text-primary);
    padding: 14px 16px 14px 42px; border-left: 0; border-radius: var(--r-tile);
    background: rgba(var(--accent-rgb), 0.05); border: 1px solid rgba(var(--accent-rgb), 0.16);
}
.ms-evidence .drawer-quote::before {
    content: '\201C'; position: absolute; left: 12px; top: 2px;
    font: 800 2.4rem/1 var(--font-display); color: rgba(var(--accent-rgb), 0.55);
}
.quote-headline { display: block; margin-top: 2px; }
.quote-headline { font-weight: 500; font-size: 0.74rem; color: var(--text-muted); line-height: 1.35; }

/* coverage */
.ms-cov-line { font-size: 0.9rem; color: var(--text-primary); }
.ms-cov-line b { font-weight: 650; }
.ms-cov-dates { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 600 0.86rem/1.3 var(--font-body); color: var(--text-primary); }
.ms-cov-dates small { display: block; font: 700 0.64rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.ms-cbars { display: flex; align-items: stretch; gap: 4px; height: 82px; margin-top: 6px; }
.ms-cbar { flex: 0 1 30px; min-width: 0; display: grid; grid-template-rows: 64px 16px; justify-items: stretch; }
.ms-cbar-col {
    align-self: end; min-height: 2px; display: flex; flex-direction: column; justify-content: flex-end;
    border-radius: 3px 3px 0 0; background: rgba(var(--accent-rgb), 0.26); overflow: hidden;
}
.ms-cbar-core { background: var(--accent-color); }
.ms-cbar.is-partial .ms-cbar-col {
    background: repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.3) 0 4px, rgba(var(--accent-rgb), 0.12) 4px 8px);
    outline: 1px dashed rgba(var(--accent-rgb), 0.6); outline-offset: -1px;
}
.ms-cbar-m { align-self: end; text-align: center; font: 600 0.62rem/1 var(--font-body); color: var(--text-muted); }
.ms-cbars-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.72rem; color: var(--text-muted); }
.ms-cbars-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ms-cbars-key .k-core { background: var(--accent-color); }
.ms-cbars-key .k-other { background: rgba(var(--accent-rgb), 0.26); }
.ms-partial-badge {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
    border: 1px dashed rgba(var(--accent-rgb), 0.55); color: var(--accent-ink); font-weight: 650; font-size: 0.7rem; cursor: help;
}

/* status history */
.ms-stages { list-style: none; display: flex; gap: 6px; margin: 4px 0 2px; padding: 0; }
.ms-stage { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 18px; }
.ms-stage::before { content: ''; position: absolute; top: 6px; left: 10px; right: -6px; height: 2px; background: rgba(var(--k-rgb), 0.1); }
.ms-stage:last-child::before { display: none; }
.ms-stage > i {
    position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(var(--k-rgb), 0.22); background: var(--surface-solid);
}
.ms-stage.is-seen > i { border-color: transparent; }
.ms-stage.is-seen.st-in_discussion > i { background: #ff9f43; }
.ms-stage.is-seen.st-announced > i { background: #0a84ff; }
.ms-stage.is-seen.st-active > i { background: #28c76f; }
.ms-stage.is-seen.st-cancelled > i { background: #ea5455; }
.ms-stage.is-seen.st-expired > i { background: #8a9096; }
.ms-stage.is-current > i { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.ms-stage b { font: 650 0.78rem/1.25 var(--font-body); color: var(--text-primary); }
.ms-stage small { font-size: 0.72rem; color: var(--text-muted); }
.ms-stage:not(.is-seen) b { color: var(--text-muted); font-weight: 600; }
.ms-note { font-size: 0.78rem; color: var(--warn-txt); line-height: 1.4; }
.ms-obs-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.ms-obs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0; border-top: 1px solid rgba(var(--k-rgb), 0.06); }
.ms-obs-when { font: 650 0.84rem/1.3 var(--font-body); color: var(--text-primary); min-width: 8.5em; }
.ms-obs-date { font-size: 0.74rem; color: var(--text-muted); }
.ms-obs .step-context { flex-basis: 100%; margin-top: 2px; }
.ms-sub { margin-top: 0.75rem; font: 700 0.64rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.ms-loose { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* goal and conditions */
.ms-details p { font-size: 0.86rem; }
.ms-inline-l { color: var(--text-primary); font-weight: 650; }
.ms-conditions { background: rgba(255, 193, 7, 0.06); border: 1px solid rgba(255, 193, 7, 0.2); border-radius: var(--r-tile); padding: 0.65rem 0.9rem; }

/* sources: newest first, by month, the headline over its outlet and date */
.ms-sources .articles-source-list { gap: 0; }
.ms-month { margin: 12px 0 2px; font: 700 0.64rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.ms-month:first-child { margin-top: 2px; }
.ms-month-list { display: flex; flex-direction: column; }
.ms-sources .article-source-item {
    display: flex; flex-direction: column; align-items: stretch; gap: 3px;
    padding: 9px 2px; background: none; border: 0; border-top: 1px solid rgba(var(--k-rgb), 0.06); border-radius: 0;
}
.ms-sources .article-source-item span { white-space: normal; max-width: none; overflow: visible; }
.ms-sources .art-head { font: 550 0.86rem/1.4 var(--font-body); color: var(--text-primary); overflow-wrap: anywhere; }
.ms-sources .art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.74rem; color: var(--text-muted); }
.ms-sources .art-meta b { font-weight: 650; color: var(--text-secondary); }
.ms-sources .art-meta .date { font-size: 0.74rem; }
.ms-core { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: var(--r-pill); background: rgba(var(--accent-rgb), 0.1); color: var(--accent-ink); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ms-sources .article-google-link { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px 0; border-radius: 50%; color: var(--text-muted); }
.ms-sources .article-google-link:hover { background: rgba(var(--k-rgb), 0.06); color: var(--accent-ink); }
.ms-sources .collapsible-articles-details { margin-top: 0.4rem; width: 100%; }
.ms-sources .hidden-articles-container { display: flex; flex-direction: column; }

/* where else */
.ms-else-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ms-else-item {
    width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "where pill" "name pill";
    gap: 2px 10px; align-items: center; text-align: left; cursor: pointer;
    padding: 9px 12px; border-radius: var(--r-tile); border: 1px solid rgba(var(--k-rgb), 0.08); background: rgba(var(--w-rgb), 0.5);
    color: var(--text-primary); font: inherit;
    transition: border-color var(--dur-1) ease, background-color var(--dur-1) ease;
}
.ms-else-item:hover { border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.05); }
.ms-else-where { grid-area: where; font: 700 0.66rem/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.ms-else-name { grid-area: name; font: 600 0.86rem/1.35 var(--font-body); overflow-wrap: anywhere; }
.ms-else-item .st-pill { grid-area: pill; }

@media (max-width: 599px) {
    .drawer-scroll-container { padding: 4px 16px calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
    .ms-bar { padding-left: 12px; padding-right: 10px; }
    .drawer-header h2 { font-size: 1.32rem; }
}
@media (max-width: 459px) {
    .ms-facts-grid { grid-template-columns: minmax(0, 1fr); }
    .ms-pos .ms-pos-in { display: none; }
}
@media (pointer: coarse) {
    .ms-ic, .close-drawer-btn.ms-ic { width: 44px; height: 44px; }
    /* tokens stay 36 px tall; their remove buttons reach 44 px with an invisible margin */

    

    
    .ms-crumb { padding: 10px 4px; margin: -10px 0; }
}
@media (forced-colors: active) {
    .st-pill, .ms-fact, .ms-else-item { border: 1px solid CanvasText; }

    .measures-rows mark { background: Mark; color: MarkText; }
}

/* =============================================================================
   PHASE 2 REVIEW FIXES (2026-10-15): the phone heading, dark-mode muted text on the list and the
   sheet, touch targets, the breadcrumb, the Ask launcher's gutter, the quiet count line
   ============================================================================= */

/* The count line keeps its element and wording (the tests and the chat read it) but shows only when it
   carries the history text, or while it holds focus (the chat and "Show N" put the reader there). */

.mx-sentence:focus { outline: none; }
.mx-sentence:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 4px; border-radius: 8px; }

/* A search that names a country or a sector: one tap sets the scope */

/* Facet counts not yet rewritten after a change read as pending, never as current */

/* Dark mode: the list and the sheet are lighter, near-opaque surfaces; their small muted text gets a
   lighter muted (4.8:1+ on rgb 60, 64, 76; the global token stays for the page and the glass) */

/* The breadcrumb: each separator wraps with the crumb after it, never alone at a line's end */
.ms-cg { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* The sheet's position: the short scope label when the full one does not fit ("in DE × EV"; app.js
   fitSheetPos sets .is-short) */
.ms-pos-in .sh { display: none; }
.ms-pos.is-short .ms-pos-in .lg { display: none; }
.ms-pos.is-short .ms-pos-in .sh { display: inline; }
/* Opened on a view that shows no list (Overview, Compare): no position and no stepping */
.ms-bar.no-list #ms-prev, .ms-bar.no-list #ms-next, .ms-bar.no-list .ms-pos { display: none; }

/* The Ask launcher stays a 48 px circle on Measures (chat.css); the rows keep a right-hand gutter for
   it, so it never covers a row's money or metric. The launcher sits 20 px from the window's edge and the
   card 32 px (wider windows centre the 1,440 px page and leave it clear). */
@media (min-width: 768px) and (max-width: 1599px) {
    .measure-explorer-row { padding-right: 48px; }
}
/* the list can always be scrolled clear of it */

/* Phones: the first rows on the first screen. The bar's chip right above names the scope, so the
   sentence keeps the count and what narrows it; Sort, Filters and Copy share one row under the search;
   the density switch is a desktop and tablet control. */
@media (max-width: 767px) {

    .mx-sentence { margin: 4px 0 10px; }

    

    
    /* a scope with 2024-25 history shows its count line ('… · tracked since Jan 2024'): it takes the
       room of the list's top margin, so the first row stays on the first screen (go-live 2026-10-16) */

    
}

/* 44 px touch targets on coarse pointers (BUILD_BRIEF) */
@media (pointer: coarse) {

    

    
    .ms-crumb { padding: 15px 6px; margin: -15px 0; }
    .ms-sources .article-google-link { width: 44px; height: 44px; margin: -10px -8px -10px 0; }
    .ms-more { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; }
    .ms-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; text-align: left; }
}

/* The narrowest phones (under 360 px): Filters keeps its icon and count (its name stays for screen
   readers), so Sort, Filters and Copy still share one row; a row's metric wraps its label above the
   value instead of running into the status pill. */
@media (max-width: 359px) {

    
    .measure-explorer-row { grid-template-columns: auto minmax(0, 1fr); }

}

/* =============================================================================
   THE OVERVIEW (redesign phase 3, 2026-10-15; AUDIT_SYNTHESIS P10-P14, P17)
   A dateline and a headline made of counts, the KPI strip with the same numbers,
   then the heatmap beside Most covered (from 1200 px) and the three charts.
   Motion lives on .ov-inner and below, never on the view (H-MOTION).
   ============================================================================= */

/* --- the lead ---------------------------------------------------------------- */

.ov-headline { grid-column: 1 / -1; }

.ov-headline { margin: 0; font: 800 clamp(1.4rem, 0.95rem + 1.45vw, 2.25rem)/1.14 var(--font-display); letter-spacing: -0.02em;
    color: var(--text-primary); text-wrap: balance; overflow-wrap: anywhere; }
   /* v7: figures in the UI family with tabular figures (v7c: one family) */

/* the KPI strip: five figures, each saying which set it counts */

   /* v7: figures in the UI family with tabular figures (v7c: one family) */

.ov-about { grid-column: 2; justify-self: end; font-size: var(--fs-sm); }
.ov-about[open] { grid-column: 1 / -1; justify-self: stretch; }
.ov-about summary { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 32px; padding: 0 0.75rem; border-radius: var(--r-pill);
    cursor: pointer; list-style: none; font-weight: 600; font-size: var(--fs-xs); color: var(--text-secondary);
    border: 1px solid rgba(var(--k-rgb), 0.1); background: rgba(var(--w-rgb), 0.5); }
.ov-about summary::-webkit-details-marker { display: none; }
.ov-about summary::before { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg); transition: transform var(--dur-2) var(--ease-out); }
.ov-about[open] summary::before { transform: rotate(45deg); }
.ov-about summary:hover { color: var(--text-primary); border-color: rgba(var(--accent-rgb), 0.3); }

/* --- the first row: the heatmap beside Most covered ---------------------------- */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 1200px) {
    .ov-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
    /* beside the heatmap: one line per measure in the per-country rows (the full name is the row's title
       and accessible name), so the two cards end near each other */

    
}
.ov-grid > .chart-container-card { min-height: 0; padding: 1.4rem 1.5rem 1.3rem; gap: 0.9rem; }
.ov-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 768px) and (max-width: 1199px) {
    .ov-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ov-charts > .chart-container-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
    .ov-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ov-charts > .chart-container-card { min-height: 340px; padding: 1.4rem 1.5rem; gap: 1rem; }

/* --- the heatmap: one scale, totals, the scope framed ------------------------- */
#sector-focus-card { overflow: visible; }

/* the scope's row and column names: an accent tint and a ring, as in the scope matrix (P14) */

/* zero cells: hatched and inert, never a live-looking fill */

/* outside the scope the fill fades; the figure stays legible */

/* The heat ramp (PLAN 1.5, D8 A): the steps of one square-root scale, set by app.js / compass.js as data-step
   (1-6; zero cells carry none and keep the hatch). The count's colour switches at --heat-ink-switch (step 5 in
   both themes: ink below it in light, paper below it in dark), so every count reads 4.5:1 or more. A dimmed cell
   (outside the scope, or a full Compare) mixes its step 40 % into the card and sets its count in --text-secondary
   (5.1:1 or more in both themes). */
.mx-cell[data-step="1"] { --hc: var(--heat-1); --hk: var(--heat-ink); }
.mx-cell[data-step="2"] { --hc: var(--heat-2); --hk: var(--heat-ink); }
.mx-cell[data-step="3"] { --hc: var(--heat-3); --hk: var(--heat-ink); }
.mx-cell[data-step="4"] { --hc: var(--heat-4); --hk: var(--heat-ink); }
.mx-cell[data-step="5"] { --hc: var(--heat-5); --hk: var(--heat-ink-on-dark); }
.mx-cell[data-step="6"] { --hc: var(--heat-6); --hk: var(--heat-ink-on-dark); }

/* the cell's tooltip: on hover and on keyboard focus */

/* the legend: one scale for the whole grid */

/* touch screens have no tooltip: one line says what a cell opens (defect 4; refreshHeatmap writes it); on
   phones it also stands in for the card's description */

/* --- Most covered (absorbs Trending) ------------------------------------------ */

/* a fade and an arrow only on an edge that hides months (railEdges in app.js; phase 3 review) */

@media (min-width: 1200px) {
    /* beside the heatmap the period gets its own row, so more months show at once */

}
#monthly-coverage-card .mc-pill { flex: none; padding: 0.42rem 0.72rem; font-size: var(--fs-xs); white-space: nowrap; }
/* One width for every month (fixer round 2): 'May 2026' is 82 px in Suisse and 78 px in the fallback, so with
   pills sized to their labels the rail moved up to 37 px when Suisse arrived late; 7em (84 px) holds the widest in both. */
#monthly-coverage-card #mc-month-pills .mc-pill { min-width: 7em; text-align: center; }
/* selected: an accent tint with an accent ring (P14's selection primitive), never a solid fill */
#monthly-coverage-card .mc-pill.active { background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.55); color: var(--accent-ink); }
#monthly-coverage-card .mc-pill.is-partial { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(var(--k-rgb), 0.07) 4px 8px); }
.monthly-coverage-list { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.mc-country-col { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); column-gap: 0.6rem; align-items: start;
    padding: 0.3rem 0; border-top: 1px solid rgba(var(--k-rgb), 0.06); min-width: 0; }
.monthly-coverage-list > .mc-country-col:first-child { border-top: 0; padding-top: 0.1rem; }

.mc-country-head { display: flex; align-items: center; gap: 6px; max-width: 100%; font: 700 0.84rem/1.2 var(--font-display); color: var(--text-primary); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-country-head::before { content: attr(data-code); display: inline-grid; place-items: center; flex: none; min-width: 22px; height: 16px; padding: 0 3px;
    border-radius: 5px; font: 700 0.58rem/1 var(--font-body); letter-spacing: 0.04em; color: var(--text-secondary); background: rgba(var(--k-rgb), 0.06); }
.mc-country-head[data-code=""]::before { display: none; }

.mc-country-note { font-size: 0.68rem; color: var(--text-muted); }

.mc-item { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.42rem 0.55rem; border-radius: var(--r-tile); cursor: pointer;
    background: transparent; transition: background-color var(--dur-2) ease, box-shadow var(--dur-2) ease; }
.mc-item:hover { background: rgba(var(--accent-rgb), 0.06); box-shadow: inset 0 0 0 1.5px rgba(var(--accent-rgb), 0.25); }
.mc-item:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }

/* a collapsed country shows only its top measure: no "1" on every row (the space stays, so opening does not shift names) */

.mc-count { flex: none; font: 750 0.92rem/1.3 var(--font-display); color: var(--accent-ink); font-variant-numeric: tabular-nums; text-align: right; }

/* countries with nothing to show: one line at the end (P10) */

#monthly-coverage-card .mc-empty { padding: 1rem; }

/* --- no jump (owner, 2026-10-19) ----------------------------------------------
   A control the reader clicks stays where it is: text that changes beside it sits after it or keeps
   the room of its longest variant, the disclosure opens below its own button, and the first row's two
   cards share one height from 1200 px (Most covered's list scrolls inside it). What still changes size
   eases through the motion core (app.js calmly / easeHeight); reduced motion: no animation, no jump. */
/* the history switch first, its note after it; the note as tall as the longer of its two texts */
/* (the scope sheet's row, #sp-hist, keeps its own order: the "History" label, the switch, the note below) */

/* Most covered's line keeps the room of its longest variant (a month, every month, with or without the
   history), drawn invisibly under it */

/* "What is this monitor?" opens below its own button: beside the ratio line the open disclosure shares
   the ratio's row and keeps its button at the right (it used to drop to a row of its own on the left) */
@media (min-width: 768px) {

    .ov-about { grid-row: 4; align-self: start; }
    .ov-about[open] { pointer-events: none; }
    .ov-about[open] > * { pointer-events: auto; }
    .ov-about[open] > summary { display: flex; width: max-content; margin-left: auto; }

}

/* beside the heatmap: one height for both cards; Most covered's list fills the rest of its card and
   scrolls inside it, with a calm fade on an edge that hides rows (mcListEdges in app.js) */
@property --mc-ft { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --mc-fb { syntax: '<length>'; inherits: false; initial-value: 0px; }
@media (min-width: 1200px) {
    .ov-grid { align-items: stretch; }
    #monthly-coverage-card .monthly-coverage-list { flex: 1 1 0px; min-height: 12rem; contain: size; overflow-y: auto; overscroll-behavior-y: auto;
        scrollbar-width: thin; scrollbar-color: rgba(var(--k-rgb), 0.18) transparent; scrollbar-gutter: stable;
        margin-right: -0.5rem; padding-right: 0.5rem;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--mc-ft), #000 calc(100% - var(--mc-fb)), transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0, #000 var(--mc-ft), #000 calc(100% - var(--mc-fb)), transparent 100%);
        transition: --mc-ft var(--dur-3, 240ms) var(--ease-out), --mc-fb var(--dur-3, 240ms) var(--ease-out); }

    
}

/* --- P17: the Ask launcher never sits on Overview data ------------------------
   chat.css keeps it a 48 px circle on the Overview from 768 px; the cards that reach
   the right edge keep a gutter wide enough for it (it sits 20 px from the edge). */
@media (min-width: 768px) and (max-width: 1199px) {
    #view-overview .chart-container-card { padding-right: 3.5rem; }
}
@media (min-width: 1200px) and (max-width: 1535px) {
    #view-overview .ov-grid > .chart-container-card:last-child,
    #view-overview .ov-charts > .chart-container-card:last-child { padding-right: 3.5rem; }
}

/* --- tablet and phone ---------------------------------------------------------- */

@media (max-width: 767px) {

    .ov-about { grid-column: 1; justify-self: start; }

    

    

    
    .ov-grid > .chart-container-card, .ov-charts > .chart-container-card { padding: 1rem; }
    /* the heatmap fits the phone: codes for countries and sectors, all six sectors, no sideways scroll (P12) */

    /* the description's job passes to the line under the grid (#heatmap-touch-note), so the grid starts
       higher (the header held badge, switch and three lines of text above it) */

    

    

    

    

    

    

    
    .mc-country-col { grid-template-columns: minmax(0, 1fr); }

    

}

@media (pointer: coarse) {
    #monthly-coverage-card .mc-pill, .ov-about summary { min-height: 44px; }

    /* 44 px targets at every touch width (phase 3 review): cells, names, totals, the set switch, rows */

    .mc-item { min-height: 44px; }

    /* the set switch: a 44 px tall button; the pill keeps its look, drawn by ::before */

    
    /* the 2024-25 history switch (heatmap, Most covered, Compare, the scope sheet): its label may wrap on
       phones, so the pill itself is 44 px tall (go-live 2026-10-16: it was 26 px once the data had history) */

}

/* =============================================================================
   COMPARE (redesign phase 4, 2026-10-15): the tray, the picker, the aligned columns
   (AUDIT_SYNTHESIS P5, P11, P12, P14, P18). One scale and one category order across
   the columns; each metric is a subgrid row; below 992 px the same DOM turns
   metric-first (display: contents + order, set inline by app.js).
   ============================================================================= */

/* --- the tray --- */
.compare-picker-panel { display: flex; flex-direction: column; gap: 0.8rem; padding: 1rem 1.25rem 1.1rem; margin-bottom: 1.25rem;
    border-radius: var(--border-radius); background: rgba(var(--w-rgb), 0.72); border: 1px solid rgba(var(--w-rgb), 0.85); box-shadow: var(--glass-shadow); }
.cmp-tray-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }

.cmp-try { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; }

/* --- the columns: a label column, then one card per column; every metric is a subgrid row --- */

/* the column head */

/* measures */

/* 100% stacks in a fixed order; a small sample draws one square per item */

.c-disc { background: #ff9f43; }
.c-ann { background: var(--accent-color); }
.c-act { background: #28c76f; }
.c-end { background: #8a9199; }
.c-nr { background: repeating-linear-gradient(135deg, rgba(var(--k-rgb), 0.24) 0 3px, rgba(var(--k-rgb), 0.07) 3px 6px); }
.c-dem { background: var(--accent-color); }
.c-sup { background: #a370ff; }
.c-inf { background: #28c76f; }
.c-tra { background: #ff9f43; }
.c-rgl { background: #ea5455; }
.c-eu { background: var(--cmp-auth-eu); }
.c-nat { background: var(--cmp-auth-nat); }
.c-rgn { background: var(--cmp-auth-rgn); }
.c-s-sup { background: #28c76f; }
.c-s-mix { background: #ff9f43; }
.c-s-cri { background: #ea5455; }
.c-s-neu { background: #b0b3b8; }

/* instruments: the same rows in every column, one share scale */

/* most reported */

/* one category lit in every column */

/* --- the picker: the scope popover's frame and the matrix, adding columns --- */

.cmx { --mx-h: 34px; }
.cmx button:disabled { cursor: not-allowed; }

.cmx .ck { position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 4px; background: var(--col); color: var(--cmp-key-ink);
    font: 700 0.6rem/15px var(--font-display); text-align: center; pointer-events: none; }

/* a whole-country (or everything) column is marked on its row total; on phones, where the totals are
   hidden, its row head carries the ring and the key (review L2) */

.cmx .mx-cell.is-full { cursor: not-allowed; }
.cmx .mx-cell.is-full[data-step] { background-color: color-mix(in srgb, var(--hc) 40%, var(--surface)) !important; }
.cmx .mx-cell.is-full .n { color: var(--text-secondary); }

/* the flights: a chip from a cell to its slot, or from a pin to the Compare tab */

/* --- below 992 px: metric-first. One section per metric; every column a compact row in it --- */

@media (max-width: 767px) {

    .compare-picker-panel { padding: 0.85rem 0.85rem 0.95rem; }
    .cmp-tray-head { gap: 0.5rem 0.6rem; }

    

    

    .cmx { --mx-h: 44px; }

    /* phones: one slot per line, and only the next free slot (no placeholders) */

    

}

@media (pointer: coarse) and (max-width: 767px) {
    .cmx.mx { grid-template-columns: 44px repeat(6, minmax(0, 1fr)); }
}
/* The Ask circle (bottom right; chat.css keeps it a 48 px circle on Compare from 768 px) never sits on a
   figure or a control: the tray and the columns keep a gutter for it (P17; phase 4 review U1, X2). Wider
   windows centre the page and leave it clear. */
@media (min-width: 992px) and (max-width: 1599px) {

    #view-compare .compare-picker-panel { padding-right: 4.4rem; }
}
@media (min-width: 768px) and (max-width: 991px) {

    #view-compare .compare-picker-panel { padding-right: 4.4rem; }
}
@media (max-width: 767px) {
    /* phones: the 52 px circle's column stays free beside the tray; the presets come first, so the
       two-click path is on the first screen (X9); the add sheet hides the grand total with the row totals */
    .cmp-try, .cmp-tray-head { padding-right: 46px; }
    .cmp-try { order: 0; }

    
}
@media (forced-colors: active) {
    .cmx .ck { forced-color-adjust: none; }

    
}

/* =============================================================================
   REDESIGN PHASE 5: QA (PHASE_5_QA_FINDINGS.md; dark contrast, touch targets, the phone Ask slot)
   ============================================================================= */
/* Accent text that read at 2.7-3.7:1 in dark (QA 9; the 'Show more' button, the methodology's key terms,
   QA 16): --accent-strong is the accent itself in light (unchanged) and #7fc3ff in both dark blocks. */
.rows-more-btn { color: var(--accent-strong); }
/* Light: the selected chip in the scope and Alerts filter sheets (4.1:1) and the Methodology tour button
   (3.5:1) take the darker accent ink (QA 15). */

/* Alert signal chips: the amber and orange hues stay on the dot and the tint; the chip text takes a deeper
   ink in light (3.98 and 4.06:1 before) and the hue itself in dark (QA 15) */
:root { --sig-amount-ink: #92400e; --sig-spike-ink: #9a3412; }
.alert-sig.amount { color: var(--sig-amount-ink); }
.alert-sig.spike { color: var(--sig-spike-ink); }
/* A facet with nothing left stays a live checkbox (selecting it is allowed), so its label keeps 4.5:1: dimmed
   by colour, not by opacity (2.6:1 in dark; phase 2 review note) */

/* (2026-10-19, owner report) no opacity on the input here: in the filter panel it is the invisible overlay that
   makes the whole chip clickable, and any opacity drew the native checkbox as a square across the label */
/* Dark: the segmented controls' thumb (the Alerts window, the set switch) was surface on glass, hard to
   see (phase 4 Alerts open issue 6): a light accent tint and ring */

/* 44 px touch targets (QA 17): the Compare picker sheet's column heads, corner and search field; the skip link */
@media (pointer: coarse) {

       /* the field inside is 44 px; the sheet's flex column had squeezed it to 34 (23 at 320) */
    .skip-link { min-height: 44px; display: inline-flex; align-items: center; }
}
/* 320 px (QA 18, owner: all six sectors stay, the cells pass WCAG 2.5.8; tighter spacing below 360 px is fine):
   the heatmap borrows half the card's side padding and a pixel of each gap, about 35 px cells (32 before) */

/* Phones (owner decision, QA 10 a): the Ask circle rests in a slot at the right end of the tab bar (chat.css
   places it; chat.js is untouched), so at rest it never sits on the page's data or controls. The bar keeps
   the slot free: five tabs share the rest (about 64 px each at 390, 50 at 320). The phase 4 gutters that
   kept the circle's column free beside Compare's tray and the Alerts head are no longer needed. */
@media (max-width: 767px) {
    /* the slot is kept only where the circle is there (phase 5 review, R4): with no chat (the proxy down or
       unconfigured, a host without the chat) the five tabs share the whole bar, centred. Since 2026-10-26 the
       chat's hosts keep the slot from the first render, empty when the chat is off (the Ask room, end of file) */
    body:has(#chat-launcher:not([hidden])) .view-pills-bar { padding-right: calc(0.4rem + 56px + env(safe-area-inset-right, 0px)); }

    #view-alerts .alerts-toolbar { padding-right: 0.9rem; }

    .cmp-try, .cmp-tray-head { padding-right: 0; }
}
@media (max-width: 359px) {
    /* five tabs of at least 44 px beside the slot at 320 ('Alerts' was 40 wide) */
    .view-pills-bar .view-pill { min-width: 44px; padding-left: 0.1rem; padding-right: 0.1rem; letter-spacing: 0; }
    .view-pills-bar .view-pill-label::before { font-size: 0.62rem; }
}
/* The footnote under the Overview's charts runs the full width: it keeps the circle's gutter too (QA audit, 1440) */

/* ---------- Phase 5 review fixes ----------
   U4: the Sort and Focus selects, the Measures search and the sheet's article-list toggle had outline: none
   and only a faint border on focus: keyboard focus shows the site's ring. */
.articles-summary-toggle:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
/* U5 (WCAG 2.2 2.4.11): on phones a control reached by keyboard scrolls clear of the fixed tab bar */
@media (max-width: 767px) {
    html { scroll-padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Load-speed stage 2 (2026-10-23): the short wait for the full text ----------
   The Measures search, the measure sheet and the palette's measure matches wait for the rest of the data,
   which arrives just after the first screen: one status block with a slim moving bar (under reduced
   motion the rule at the top of this file ends it at once), never a partial answer. */
.ipm-wait { padding: 2.6rem 1.5rem 2.4rem; }
.ipm-wait-bar {
    display: block; width: min(220px, 60%); height: 3px; margin: 1rem auto 0; border-radius: 3px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0) 0%, rgba(var(--accent-rgb), 0.55) 50%, rgba(var(--accent-rgb), 0) 100%);
    background-size: 200% 100%; animation: ipm-wait-slide 1.2s linear infinite;
}
@keyframes ipm-wait-slide { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.drawer-content.is-waiting .ipm-wait { padding: 2rem 1rem; }

/* ---------- The Ask room (2026-10-26, owner: no layout jumps; contract C25) ----------
   chat.js loads only once the whole data is in (load-speed stage 2), seconds after the first screen on a phone.
   On the chat's hosts app.js reserves its room from the first render (html[data-ask]: pending, ready or off):
   each card's Ask button is drawn at once, pending, and on phones the tab bar keeps the Ask circle's slot.
   The card buttons' rules moved here from chat.css, which loads with chat.js. */
/* Quiet text for the entry points: the muted grey in light mode (4.5:1+),
   the secondary grey in dark, where the muted one drops below 4.5:1.
   --ask-pending-a: how much of that grey the pending card spark shows: 3:1 or more on the cards in both themes
   (owner 2026-10-28; contract C25b), and calmer than the ready spark, which is the accent blue. The phone tab bar's
   placeholder spark is the same grey, whole (3:1+ on the glass bar).
   --ask-ready-a: the ready spark's opacity, 3:1 or more on the cards too (owner 2026-10-28): the accent at 0.8 in
   light; whole in dark, where 0.8 read 2.7:1 on a phone's 17 px spark. */
:root { --ask-fg: var(--text-muted); --ask-hover-fg: #0058b0; --ask-pending-a: 0.88; --ask-ready-a: 0.8; }
.card-header-block.has-ask {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    align-items: start;
}
/* The button shares only the title's row; the description below runs the
   full width, so narrow cards do not gain a line. */
.card-header-block.has-ask > * { grid-column: 1 / -1; }
.card-header-block.has-ask > h3 { grid-column: 1; grid-row: 1; }
.card-header-block.has-ask > .ask-card-btn { grid-column: 2; grid-row: 1; }

.ask-card-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    height: 28px; padding: 0 0.7rem 0 0.55rem;
    border: 1px solid rgba(var(--k-rgb), 0.09);
    border-radius: 999px;
    background: transparent;
    color: var(--ask-fg);
    /* Longhands: "font: 600 0.76rem/1 inherit" is invalid (inherit cannot
       stand for the family in the shorthand), so the button kept the
       browser's 13.33 px / 400. */
    font-weight: 600; font-size: 0.76rem; line-height: 1; font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ask-card-btn svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent-color); opacity: var(--ask-ready-a); transition: opacity 0.15s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) {
    .ask-card-btn:hover { color: var(--ask-hover-fg); background: rgba(var(--accent-rgb), 0.07); border-color: rgba(var(--accent-rgb), 0.28); }
    .ask-card-btn:hover svg { opacity: 1; transform: rotate(15deg) scale(1.08); }
}
.ask-card-btn:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
@media (pointer: coarse) {
    .ask-card-btn { height: 44px; padding: 0 0.85rem 0 0.7rem; }
}
@media (max-width: 575px) {
    /* Phones keep the spark and drop the word; the button keeps its name for
       assistive tech through aria-label. */
    .ask-card-btn { padding: 0; width: 44px; justify-content: center; }
    .ask-card-btn span { display: none; }
    .ask-card-btn svg { width: 17px; height: 17px; }
}
/* Pending: the same button in the same place, its spark in the quiet grey (3:1+, --ask-pending-a) instead of the
   accent blue, and the title saying the assistant is starting. A click is queued (aria-busy, announced in
   #ask-room-status) and opens the chat on that card's questions once it is ready, unless the reader moves on first
   (another view or a measure's sheet drops it); while queued the spark is blue and breathes (held still under
   reduced motion). */
.ask-card-btn.is-pending { cursor: progress; }
.ask-card-btn.is-pending:not(.is-queued) svg { color: var(--ask-fg); opacity: var(--ask-pending-a); }
.ask-card-btn.is-queued { border-color: rgba(var(--accent-rgb), 0.32); }
.ask-card-btn.is-queued svg { opacity: 1; animation: ask-queued 0.9s ease-in-out infinite alternate; }
@keyframes ask-queued { from { opacity: 0.35; } to { opacity: 1; } }
/* Off (the chat's script failed, its proxy never said ready, or the full text failed): the buttons keep their room,
   out of sight and out of the tab order, so nothing moves and nothing dead is offered. */
html[data-ask="off"] .ask-card-btn.is-pending { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
    .ask-card-btn svg { transition: none; }
    .ask-card-btn.is-queued svg { animation: none; opacity: 1; }
}
/* Phones: the tab bar keeps the Ask circle's slot from the first render on the chat's hosts (the rule above keeps it
   once the circle shows), so the five tabs never re-lay out when chat.js arrives. While pending, a quiet outline of
   the circle (decoration, not a control) sits where it will appear; off, the slot is simply empty. */
@media (max-width: 767px) {
    html[data-ask] .view-pills-bar { padding-right: calc(0.4rem + 56px + env(safe-area-inset-right, 0px)); }
    html[data-ask="pending"] .view-pills-bar::before,
    html[data-ask="pending"] .view-pills-bar::after {
        content: ''; position: absolute; pointer-events: none;
        right: calc(8px + env(safe-area-inset-right, 0px)); bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        width: 48px; height: 48px; box-sizing: border-box; border-radius: 50%;
    }
    html[data-ask="pending"] .view-pills-bar::after {
        border: 1.5px solid rgba(var(--accent-rgb), 0.3);
        background: rgba(var(--accent-rgb), 0.06);
    }
    html[data-ask="pending"] .view-pills-bar::before {
        background: var(--ask-fg);   /* the pending card spark's grey, whole: 3:1+ on the glass bar in both themes */
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9z'/%3E%3Cpath d='M18.5 15l.9 2.1 2.1.9-2.1.9-.9 2.1-.9-2.1-2.1-.9 2.1-.9z'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9z'/%3E%3Cpath d='M18.5 15l.9 2.1 2.1.9-2.1.9-.9 2.1-.9-2.1-2.1-.9 2.1-.9z'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
    }
}
@media (max-width: 767px) and (forced-colors: active) {
    html[data-ask="pending"] .view-pills-bar::before { background: GrayText; }
    html[data-ask="pending"] .view-pills-bar::after { border-color: GrayText; background: none; }
}

/* =============================================================================
   5. v7 BASE, COMPONENTS AND SHELL (redesign v7, Phase 1, 2026-11-05)
   Last in the file on purpose: at equal specificity these rules win. Tiers are the pinned cutoffs (H-BP):
   phone <= 767, tablet 768-1199 (991/992 inside it), desktop >= 1200, short screens (max-height: 500px).
   Nothing here puts a transform on a view or on an ancestor of a fixed layer (H-MOTION).
   ============================================================================= */
:root {
    --font-ui: 'Suisse Intl', 'Suisse Intl Fallback', 'Suisse Intl Fallback Android', Arial, sans-serif;
    --font-text: var(--font-ui);   /* (v7c) one family: the running text and the figures are Suisse Intl too; the names stay */
    --font-num: var(--font-ui);
    --font-tab: 'Suisse Intl', 'Suisse Intl Tab Fallback', 'Suisse Intl Tab Fallback Android', Arial, sans-serif;
    --font-display: var(--font-ui);
    --font-body: var(--font-ui);
    /* the type scale: 8 tokens (PLAN 1.5) */
    --t-display: clamp(30px, 4.6vw, 64px);
    --t-h1: clamp(26px, 3.4vw, 42px);
    --t-h2: 26px;
    --t-h3: 19px;
    --t-body: 17px;
    --t-ui: 15px;
    --t-meta: 13px;
    --t-micro: 12px;
    /* radii: pills, cards, controls, cells */
    --r-ctl: 8px;
    --r-cell: 4px;
    /* the page grid: a 1280 container with a 16-32 px gutter */
    --container: 1280px;
    --gutter: clamp(16px, 4vw, 32px);
    --pad-x: max(var(--gutter), calc((100% - var(--container)) / 2));
    --cb-top: 0px;
    --cb-h: 104px;            /* the undocked header's height; compass.js measures it */
    --cb-dock-h: 48px;        /* the docked nav row; compass.js measures it */
}
@media (max-width: 767px) {
    :root { --band-h: 52px; --nav-h: 44px; --cb-h: 96px; --cb-dock-h: 44px; }
}
@media (min-width: 768px) and (max-height: 500px) {
    /* the spacer's room is the 40 px band + the 48 px nav row from the first paint (checker round 3: at 104 px the
       whole page moved up 16 px when compass.js measured the header, after the first paint, at 844 x 390) */
    :root { --band-h: 40px; --cb-h: 88px; }
}

/* --- base ------------------------------------------------------------------------------------------------- */
html { background: var(--paper); scroll-padding-top: calc(var(--cb-dock-h) + 12px); }
body {
    font-family: var(--font-ui);
    color: var(--ink);
    background: var(--paper);
    padding-bottom: 0;
    font-feature-settings: 'kern' 1;
}
body::before { display: none; }
::selection { background: rgba(0, 165, 191, 0.28); color: var(--ink); }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.num, .mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
svg use { pointer-events: none; }

/* The focus ring (A16): 2 px in --focus with a 2 px gap, on every control; on the band it turns paper. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.colophon :focus-visible { outline-color: var(--focus-on-band); }   /* tour.css's .tour-launch ring (accent) loads later and would win: #006A7C on the band is 1.2:1 */

/* The skip link: hidden until focused, then the first thing on screen, in the band's colours */
.skip-link {
    position: fixed; z-index: 200; left: var(--gutter); top: 6px;
    padding: 12px 18px; min-height: 44px; border-radius: var(--r-ctl);
    background: var(--paper); color: var(--ink); font: 500 var(--t-ui)/1.2 var(--font-ui); text-decoration: none;
    box-shadow: var(--elev-3), inset 0 0 0 2px var(--focus);
    transform: translateY(-160%);
    transition: transform var(--dur-3) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; outline: 2px solid var(--focus); outline-offset: 2px; }
.main-dashboard-content:focus { outline: none; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* The page: full-bleed header and footer, a 1280 content column between them */
.dashboard-container {
    position: relative;
    max-width: none; margin: 0; padding: 0 !important;
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column; gap: 0;
}
.main-dashboard-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 28px var(--gutter) 64px;
}
@media (max-width: 767px) {
    .dashboard-container { padding: 0 !important; }
    .main-dashboard-content { padding: 16px max(16px, env(safe-area-inset-left, 0px)) 40px max(16px, env(safe-area-inset-right, 0px)); }
}

/* --- components -------------------------------------------------------------------------------------------
   card */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    box-shadow: none;
    border-radius: var(--r-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
/* button: filled (turquoise fill with ink text, or the deep fill with white), quiet, link */

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-ctl);
    border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: 500 var(--t-ui)/1 var(--font-ui); cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.link-btn { color: var(--brand-ink-2); font-family: var(--font-ui); font-weight: 500; }
/* icon button (copy link on Measures, the band's tools) */
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-ctl); display: inline-grid; place-items: center; flex: none; cursor: pointer; padding: 0;
    color: var(--ink-2); border: 1px solid var(--rule); background: var(--surface); transition: background-color var(--dur-2) ease, color var(--dur-2) ease; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
@media (pointer: coarse) { .icon-btn { width: 44px; height: 44px; } }
/* chip */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill);
    border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font: 400 var(--t-meta)/1 var(--font-ui); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink); }
/* segments (the Counting control, Most covered's mode, the Alerts window): a track with a sliding thumb */
.seg {
    position: relative; display: inline-flex; align-items: center; padding: 3px; gap: 0; flex: none;
    border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--rule);
}

.seg button {
    position: relative; z-index: 1; height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent;
    font: 500 var(--t-meta)/1 var(--font-ui); letter-spacing: 0; color: var(--ink-2); white-space: nowrap; cursor: pointer;
    transition: color var(--dur-2) ease;
}
.seg button[aria-checked="true"] { color: var(--ink); }

/* list row */

/* popover and sheet (the scope popover, the Compare picker, the Alerts sheet, the palette) */
.scope-pop, .cmdk {
    background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
    box-shadow: 0 18px 44px rgba(18, 20, 23, 0.22), 0 2px 6px rgba(18, 20, 23, 0.08);
}

.compass kbd, .scope-pop kbd, .cmdk kbd { font: 400 11px/1 var(--font-num); border-color: var(--rule); background: var(--surface); color: var(--ink-2); }
/* toast: ink on paper inverted, bottom centre, never moves anything (fixed) */
.cb-toast { background: var(--ink); color: var(--paper); border-radius: 12px; font: 400 var(--t-meta)/1.35 var(--font-ui); padding: 12px 18px; }
/* (owner 2026-11-12) the dead-link notice: two short sentences and a Search button. A toast at left: 50% may only be half
   the screen wide (a 160 px column at 320), so the notice takes the width of its text, up to the screen's less 32 px and
   34em, left-aligned; the button keeps its 44 px target on touch screens */
/* (fix 5) the toast comes up and goes down the same way: --dur-3 on the house curve, both properties, both ways */
.cb-toast { transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.cb-toast.is-note { width: max-content; max-width: min(calc(100vw - 32px), 34em); text-align: left; }
.cb-toast.is-note .cb-toast-act { display: inline-flex; align-items: center; margin: 6px 0 0 0; vertical-align: middle; font-family: var(--font-ui); }
/* --- the phone tab bar (#view-mode-pills.view-pills-bar, re-parented to <body> by app.js) ----------------------
   56 px + the safe area, paper with a hairline; five tabs of a 22 px line icon and a 12 px label; the active tab
   in --brand-ink with a 3 px top line; the Ask slot at the right end (the Ask room, below; chat.css draws the
   circle in it). */
@media (max-width: 767px) {
    body { padding-bottom: 0; }
    .colophon { padding-bottom: calc(24px + 56px + env(safe-area-inset-bottom, 0px)) !important; }
    .view-pills-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; width: 100%;
        display: flex; align-items: stretch; flex-wrap: nowrap; justify-content: space-around; gap: 0;
        min-height: calc(56px + env(safe-area-inset-bottom, 0px));   /* PLAN 3.2: 56 px plus the safe area */
        padding: 2px max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
        border: 0; border-top: 1px solid var(--rule); border-radius: 0;
        background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -4px 14px rgba(18, 20, 23, 0.05);
    }
    .view-pills-bar .view-pill {
        flex: 1 1 0; min-width: 44px; min-height: 53px; position: relative;   /* 1 px rule + 2 px + 53 px = the 56 px bar */
        display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        padding: 6px 2px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
        color: var(--ink-2); font: 400 var(--t-micro)/1 var(--font-tab); letter-spacing: 0;
    }
    .view-pills-bar .view-pill svg.nav-svg { display: block; width: 22px; height: 22px; stroke-width: 1.8; }
    .view-pills-bar .view-pill-label { font-size: 0; line-height: 1; }
    .view-pills-bar .view-pill-label::before { content: attr(data-short); content: attr(data-short) / ""; font-size: var(--t-micro); }
    .view-pills-bar .view-pill.active { color: var(--brand-ink); font-weight: 500; background: transparent; box-shadow: none; }
    .view-pills-bar .view-pill.active::before {
        content: ''; position: absolute; top: -2px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 2px 2px; background: var(--brand-ink);
    }
    .view-pills-bar .view-pill:focus-visible { outline-offset: -3px; }
}
@media (max-width: 359px) {
    /* 320 (checker round 1): five 51 px tabs ran "Overview", "Measures" and "Compare" together. A narrower Ask slot
       (a 44 px circle 4 px from the edge: 52 px, was 62) gives each tab 53 px, and the 11 px labels close up a
       little, so neighbouring labels keep 4 px or more between them (C31) */
    .view-pills-bar .view-pill-label::before { font-size: 11px; letter-spacing: -0.02em; }
    html[data-ask] .view-pills-bar, body:has(#chat-launcher:not([hidden])) .view-pills-bar { padding-right: calc(52px + env(safe-area-inset-right, 0px)); }
    html[data-ask="pending"] .view-pills-bar::before,
    html[data-ask="pending"] .view-pills-bar::after { right: calc(4px + env(safe-area-inset-right, 0px)); bottom: calc(7px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
}

/* --- the footer (the band, both publishers, the contact) --------------------------------------------------------- */
.glass-footer.colophon {
    display: flex; flex-direction: column; align-items: stretch; gap: 20px;
    margin-top: 0; padding: 32px var(--pad-x) 26px;
    background: var(--band); color: var(--band-ink); border: 0; border-radius: 0;
    font: 400 var(--t-meta)/1.45 var(--font-ui);
}

@media (max-width: 767px) {
    .glass-footer.colophon { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); text-align: left; }
}

/* --- the load progress line (under the top edge, over the band) --------------------------------------------- */
.load-progress-bar { background: var(--brand); }

/* --- the chat keeps its own surfaces until its re-skin (Phase 6, D11 A): its panel, sheet and full screen and
   the chart cards on them stay as pinned (CONTRACT_CHARTS 5.2; ui T-1, T-33, more T-M12). Its text, links and
   faces take the v7 tokens. */
.ipm-chat { --w-rgb: 255, 255, 255; --surface-solid: #ffffff; --k-rgb: 0, 0, 0; }

/* --- forced colours: the band, the heat shading and the bars drop their backgrounds -------------------------- */
@media (forced-colors: active) {

    .glass-footer.colophon { border-bottom: 1px solid CanvasText; }
    /* the beige logos would vanish on a light Canvas: they keep the band behind them as a backplate */

    .lh-rule { forced-color-adjust: none; background: #F5F1E7; }

    /* the locked switch (Measures) too: its beige thumb rule (.seg.is-locked .seg-thumb) won here and left the
       HighlightText label white on beige, about 1.3:1 (checker round 3); the dashed border still says locked */

    .view-pills-bar .view-pill.active::before { forced-color-adjust: none; background: Highlight; }
    .compass .view-pill.active, .compass .view-pill.active *, .seg button[aria-checked="true"], .seg button[aria-checked="true"] * { color: HighlightText; forced-color-adjust: none; }
    .compass .view-pill.active { background: Highlight; }
    .view-pills-bar .view-pill.active, .view-pills-bar .view-pill.active * { color: LinkText; background: Canvas; }

    

    :focus-visible { outline: 2px solid Highlight; }
    /* the Curated / history switches (checker round 1: the track's fill is dropped, so on and off looked the same):
       an outlined track, a CanvasText thumb, and the on state filled with Highlight */

    

    
    /* the scope sheet's Grid | List tabs: the selected one filled (the fill alone marked it; checker round 2) */

}
/* The Ask launcher's focus ring: chat.css draws it in the accent at 0.45 alpha, 2.0:1 on the beige page (2.8:1 dark);
   the v7 ring (--focus, 4.6:1 light, 9.4:1 dark) like every other control (PLAN A16; checker round 2) */
html .chat-launcher:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Short screens from 768 px (a landscape phone, 844 x 390): the closed "What is this monitor?" pill keeps the Ask
   circle's gutter, which sat on its end at the top of the page (checker round 1) */
@media (min-width: 768px) and (max-height: 500px) {
    #view-overview .ov-about:not([open]) { margin-right: 3.5rem; }
}

/* --- print: the page's content, without the chrome ------------------------------------------------------------- */
@media print {
    .compass, .scope-pop, .cmdk, .cb-toast, .skip-link, .view-pills-bar, .load-progress { display: none !important; }
    body, html { background: #fff; }
    .glass-footer.colophon { background: #fff; color: #000; }
}

/* --- reduced motion: nothing slides (the global kill switch above ends every CSS transition) ---------------- */
@media (prefers-reduced-motion: reduce) {
    .skip-link { transition: none; }

}

/* =============================================================================
   6. THE v7b SHELL (redesign v7b, Phase 1b): last in the file, so at equal specificity it wins over the
   re-skin's sections above (taken by path from redesign-v7-reskin 5e4e632: the faces, the tokens and both dark
   blocks, the legacy view rules re-tokened, the v7 base and components, the tab bar, the footer, the Ask room).
   The re-skin's Compass header section is not taken: v7b has v7's own header.
   ============================================================================= */
/* --- the v7b shell (redesign v7b, Phase 1b, 2026-11-07) -----------------------------------------------------------
   v7's own header (two rows on the band), its "Reported in" period group and its footer, filled with our controls
   (Tour, appearance, the data date, the load status) and our phone chrome (owner O9 A): the 52 px brand bar that
   scrolls away, the 44 px period strip that docks and carries the scope, the bottom tab bar with the Ask slot.
   The band with beige text and logos (D1 A: Phase 1b's deep turquoise; v7c: #00A5BF). Docking is position: sticky, so the nav row
   keeps its own room and nothing moves when it docks or undocks. Tiers: phone <= 767, tablet 768-1199, desktop
   >= 1200, short screens (max-height: 500px). Nothing here sets a transform on an ancestor of a fixed layer. */
:root { --hd-band-h: 56px; --dock-h: 48px; }
@media (max-width: 767px) { :root { --hd-band-h: 52px; --dock-h: 44px; } }
@media (min-width: 768px) and (max-height: 500px) { :root { --hd-band-h: 48px; } }
/* the scrollbar's room is reserved, so a page that starts or stops scrolling (a view switch, the drawer's scroll
   lock) never moves sideways; focus never lands under the docked row (WCAG 2.4.11) or, on phones, the tab bar */
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--dock-h) + 12px); }
@media (max-width: 767px) { html { scroll-padding-bottom: calc(56px + 16px + env(safe-area-inset-bottom, 0px)); } }
.hd-in {
    display: flex; align-items: center; height: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
/* the band's own focus ring (v7c: ink on the light band, --focus-on-band) */
.hd-band :focus-visible, .hd-nav :focus-visible, .v7b-footer :focus-visible,
#tour-launch:focus-visible { outline: 2px solid var(--focus-on-band); outline-offset: 2px; }

/* row 1: the band */
.hd-band { position: relative; z-index: 91; height: var(--hd-band-h); background: var(--band); color: var(--band-ink); }
.hd-band .hd-in { gap: 12px 20px; }
.hd-home {
    display: flex; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 44px; min-height: 44px;
    margin-left: -4px; padding: 0 4px; border-radius: 6px; color: inherit; text-decoration: none;
}
.hd-logos { display: flex; align-items: center; gap: 12px; flex: none; }
.hd-logos .lh-logo { display: block; width: auto; }
.hd-logos .lh-kiel { height: 23px; }
.hd-logos .lh-ipl { height: 26px; }
.hd-wm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 21px/1.05 var(--font-ui); letter-spacing: -0.02em; color: var(--band-ink); }
/* (Phase 2, the 1b checker's carry-in) from 768 px the wordmark keeps a box of its width in em (12.54em measured in Suisse Intl 500), so a
   late face moves nothing in the band */
@media (min-width: 768px) { .hd-wm { flex: 0 1 12.7em; width: 12.7em; } }
.hd-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.hd-about {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; margin-right: 8px;
    border: 1px solid var(--band-ink); border-radius: var(--r-pill);   /* the outline in full beige: 3:1+ on the band (1.4.11) */
    color: var(--band-ink); font: 500 15px/1 var(--font-ui); text-decoration: none; white-space: nowrap;
    transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.hd-about:hover { background: var(--band-ink); color: var(--band); }
/* its width in em (the same in Suisse and the metric-matched fallback): the band's right-hand group never moves on a late face.
   A minimum, not a width (checker 1b): the text fits it in both faces, and under WCAG 1.4.12 text spacing the pill grows
   with its text instead of letting it run over its edge and the Tour button */
.hd-about { box-sizing: border-box; min-width: 18.6em; justify-content: center; }
@media (max-width: 1023px) { .hd-about { min-width: 7.8em; } }
.ic-ext { width: 13px; height: 13px; flex: none; }
/* Tour: a 44 px icon button (owner: "header row 1, right"); its room is held until tour.js shows it, so nothing in the
   band moves */
#tour-launch.hd-icon {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0; inset: auto;   /* (tour.css places a phone .tour-launch absolutely) */
    border: 0; border-radius: var(--r-ctl); background: transparent; box-shadow: none;
    color: var(--band-ink); cursor: pointer; transition: background-color var(--dur-2) ease;
}
#tour-launch.hd-icon[hidden] { display: inline-flex; visibility: hidden; }
#tour-launch.hd-icon:hover { background: var(--band-hover); color: var(--band-ink); }
#tour-launch.hd-icon svg { width: 21px; height: 21px; flex: none; }
#tour-launch .tour-launch-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* (owner 2026-11-19, "no dark mode") the appearance button is gone; its slot at the band's right end is held as empty
   room (44 px and the 4 px gap; on phones 40 px and its 2 px margins), so the Tour button, About us and the wordmark
   keep the places they had at every width */
.hd-tools::after { content: ''; display: block; flex: none; width: 44px; height: 44px; }

/* row 2: v7's nav and the "Reported in" group, one nowrap row; sticky, so it docks once the band has gone. The
   tour lays the page out with nothing sticky (tour.js freeArea), and while a text field has the keyboard on a
   phone the strip does not dock either (html.kb-open, views.js). */
.hd-nav {
    position: sticky; top: 0; z-index: 90; height: var(--dock-h);
    background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-rule);
}
html.ipm-tour-on .hd-nav, html.kb-open .hd-nav { position: relative; }
.hd-tabs { display: flex; align-items: stretch; align-self: stretch; flex: 1 1 auto; min-width: 0; }
/* (from 768 px: below it the same pills are the tab bar) */
@media (min-width: 768px) {
    #hd-nav .view-pills {
        position: static; display: flex; align-items: stretch; flex-wrap: nowrap; gap: 28px;
        height: 100%; width: auto; min-height: 0; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
    }
    #hd-nav .view-pill {
        position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
        height: 100%; min-height: 44px; min-width: 0; padding: 3px 0 0; margin: 0;
        border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; box-shadow: none; transform: none;
        color: var(--band-ink); font: 400 15.5px/1 var(--font-tab); letter-spacing: 0; white-space: nowrap; cursor: pointer;
        transition: border-color var(--dur-2) ease;
    }
    #hd-nav .view-pill svg.nav-svg { display: none; }
    #hd-nav .view-pill:hover { border-bottom-color: var(--band-rule); background: none; color: var(--band-ink); }
    #hd-nav .view-pill.active { font-weight: 500; border-bottom-color: var(--band-ink); background: none; box-shadow: none; color: var(--band-ink); }
    #hd-nav .view-pill:focus-visible { outline-offset: -4px; }
    /* each label in a box of its own width, in em: the same in Suisse and in the metric-matched fallback, bold or not,
       so a late face or the active tab's weight moves no other tab (C31). Minimums (checker 1b): every label fits its box
       in both faces, so the boxes are as before; under WCAG 1.4.12 text spacing a box grows with its label */
    #hd-nav .view-pill-label { display: inline-block; text-align: center; }
    #hd-nav .view-pill[data-view="overview"] .view-pill-label { min-width: 4.7em; }
    #hd-nav .view-pill[data-view="measures"] .view-pill-label { min-width: 8.9em; }
    #hd-nav .view-pill[data-view="compare"] .view-pill-label { min-width: 4.6em; }
    #hd-nav .view-pill[data-view="methodology"] .view-pill-label { min-width: 6.5em; }
}
.hd-right { display: flex; align-items: center; gap: 16px; flex: none; margin-left: 24px; }
html[data-view="methodology"] .hd-right { visibility: hidden; }    /* the period does not apply there (PLAN 3.1) */
.hd-nav.fit-wait .hd-right { visibility: hidden; }                  /* waitFaces: until the faces are in, at most 1.5 s */
.hd-data-to { font: 400 var(--t-meta)/1 var(--font-num); letter-spacing: -0.02em; color: var(--band-ink); white-space: nowrap; }
.hd-data-to .meta-tag { margin: 0; }
@media (min-width: 1100px) { .hd-right .hd-data-to.tw-slot { min-width: 10.4em; } }   /* (tucked below 1100: its 1 px box stays) */
/* a slot as wide as its longest text: the aria-hidden twin shares its grid cell */
.tw-slot { display: inline-grid; }
.tw-slot > * { grid-area: 1 / 1; white-space: nowrap; }
.tw-slot > .tw-size { visibility: hidden; }
.v7b-period { display: flex; align-items: center; gap: 12px; flex: none; }
.v7b-period-lbl { display: inline-block; min-width: 5.6em; text-align: right; font: 400 13.5px/1 var(--font-ui); color: var(--band-ink); white-space: nowrap; }   /* a minimum (1.4.12, checker 1b) */
.pseg {
    display: flex; align-items: center; gap: 2px; padding: 3px;
    border: 1px solid var(--band-rule); border-radius: 10px; background: rgba(18, 20, 23, 0.12);   /* a shade darker than the band: the labels read 5:1+ (a beige tint read 3.75:1) */
}
.v7b-period-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent;
    color: var(--band-ink); font: 500 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer;
    transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
/* widths in em (face-proof), v7's 14 px side padding around the longest label */
.v7b-period-btn[data-period="all"] { width: 3.3em; }
.v7b-period-btn[data-period="3m"] { width: 6.6em; }
.v7b-period-btn .sh { display: none; }
/* hover a shade darker, not lighter, on the light band (checker 1b: the beige tint read 4.16:1 under 14 px labels; this
   reads 6.8:1); the dark band keeps the beige tint (9.3:1) */
.v7b-period-btn:hover { background: rgba(18, 20, 23, 0.18); }
.v7b-period-btn[aria-checked="true"] { background: var(--band-ink); color: var(--band); }
/* 44 px hit areas on coarse pointers: the visual stays 32 px, the hit area reaches into the group's padding */
@media (pointer: coarse) {
    .v7b-period-btn::after { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
    #hd-nav .view-pill { min-height: 44px; }
    .hd-about { min-height: 44px; }
    /* the drawer's disclosures (Phase 3 rebuilds the drawer; until then its one small target reaches 44 px) */
    .drawer-scroll-container summary { min-height: 44px; display: flex; align-items: center; }
}
/* the phone scope bar: phones only (Phase 2 draws it in place from 768) */
.hd-scope { display: none; }

/* --- tier: desktop 1200+: every part; tablet 768-1199: the written drop order (PLAN F1): (1) the nav's gaps 28 -> 20,
   (2) the date tucked below 1100, (3) short tab labels below 900; "Reported in" stays a word down to 768 ------------ */
@media (min-width: 768px) and (max-width: 1199px) {
    #hd-nav .view-pills { gap: 20px; }
}
@media (max-width: 1099px) {
    .hd-data-to { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 1023px) {
    .hd-about-lab { display: none; }
}
@media (min-width: 768px) and (max-width: 899px) {
    #hd-nav .view-pill-label { font-size: 0; }
    /* the short label is drawn, not read: "/ ''" keeps it out of the button's name, which stays the full label (checker 1b:
       screen readers heard "Explore Explore measures"); a browser without the alt-text syntax keeps the first value */
    #hd-nav .view-pill-label::before { content: attr(data-short); content: attr(data-short) / ""; font-size: 15.5px; }
    #hd-nav .view-pill[data-view="overview"] .view-pill-label::before { display: inline-block; min-width: 4.7em; }
    #hd-nav .view-pill[data-view="measures"] .view-pill-label::before { display: inline-block; min-width: 3.8em; }
    #hd-nav .view-pill[data-view="compare"] .view-pill-label::before { display: inline-block; min-width: 4.6em; }
    #hd-nav .view-pill[data-view="methodology"] .view-pill-label::before { display: inline-block; min-width: 3.8em; }
    #hd-nav .view-pill[data-view] .view-pill-label { width: auto; min-width: 0; }
    /* (checker 1b) the wordmark keeps "Industrial" here: the band has room for v7's full name down to 768 */
    .hd-right { margin-left: 16px; }
}
@media (min-width: 768px) and (max-height: 500px) {
    .hd-logos .lh-kiel { height: 20px; }
    .hd-logos .lh-ipl { height: 23px; }
    .lh-rule { height: 24px; }
    .hd-wm { font-size: 18px; }
}

/* --- tier: phones <= 767: the 52 px brand bar (scrolls away), the 44 px period strip (docks, with the scope), the
   bottom tab bar (the same pills, fixed from the first paint, re-parented to <body> by placeViewPills) ------------ */
@media (max-width: 767px) {
    .hd-in { padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
    .hd-band .hd-in { gap: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); }
    .hd-home { gap: 10px; }
    .hd-logos { gap: 9px; }
    .hd-logos .lh-kiel { height: 22px; }   /* PLAN 3.2: the Kiel logo 22 px high on phones */
    .hd-logos .lh-ipl { height: 24px; }
    .lh-rule { height: 24px; }
    .hd-wm { font-size: 14px; line-height: 1.05; white-space: normal; max-width: 6.2em; }
    .hd-wm .wm-a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .hd-about { display: none; }            /* About us: in the footer and the Methodology on phones */
    /* 40 px buttons with 44 px hit areas in the 52 px bar: 6 px clear of the top edge, where the tour's final card
       draws its ring round the Tour button (tour.js keeps a 6 px margin) */
    #tour-launch.hd-icon { width: 40px; height: 40px; min-width: 40px; margin: 0 2px; }
    #tour-launch.hd-icon::after { content: ''; position: absolute; inset: -2px; }
    .hd-tools::after { width: 44px; height: 40px; }   /* the former appearance button's 40 px and its 2 px margins */
    .hd-tools { gap: 0; margin-right: -6px; }
    /* the strip: shown where the period applies (Overview, Explore, Compare), never on the Methodology */
    html[data-view="methodology"] .hd-nav { height: 0; border-bottom: 0; }
    html[data-view="methodology"] .hd-right { display: none; }
    .hd-tabs { display: contents; }
    .hd-right { flex: 1 1 auto; min-width: 0; margin: 0; gap: 8px; height: 44px; }
    .hd-data-to { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .v7b-period-lbl { display: none; }
    .v7b-period-btn { height: 34px; font-size: 14px; }
    .v7b-period-btn .lg { display: none; }
    .v7b-period-btn .sh { display: inline; }
    .v7b-period-btn[data-period="all"] .lg { display: inline; }
    .v7b-period-btn[data-period="all"] { width: 3.15em; }
    .v7b-period-btn[data-period="3m"] { width: 3.9em; }
    .v7b-period-btn::after { content: ''; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }
    .hd-scope {
        display: flex; align-items: center; justify-content: flex-end; gap: 0; flex: 1 1 auto; min-width: 0; height: 44px;
    }
    .hd-scope[hidden] { display: none; }
    .hd-scope-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1.6 var(--font-ui); color: var(--band-ink); }
    .hd-scope-t .sh, .hd-scope-t .cd { display: none; }
    .hd-scope-x {
        display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0;
        border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--band-ink); cursor: pointer;
    }
    .hd-scope-x svg { width: 18px; height: 18px; }
    .hd-scope-x:hover { background: var(--band-hover); }
}
/* the scope's text shrinks first (K12): names, then short names below 430, then codes below 375; never wraps */
@media (max-width: 429px) {
    .hd-scope-t .lg { display: none; }
    .hd-scope-t .sh { display: inline; }
}
@media (max-width: 374px) {
    .hd-scope-t .sh { display: none; }
    .hd-scope-t .cd { display: inline; }
    .hd-wm { display: none; }               /* the wordmark goes below 375 (RPLAN 10; the re-skin's checker round 3) */
}

/* The tab bar from the first paint: #view-mode-pills is the fixed bar below 768 wherever it sits (in the strip until
   views.js moves it to <body>, so the move changes nothing on screen). */
@media (max-width: 767px) {
    #view-mode-pills {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; width: 100%; height: auto;
        display: flex; align-items: stretch; flex-wrap: nowrap; justify-content: space-around; gap: 0; margin: 0;
        min-height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding: 2px max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
        /* the Ask slot, from the first paint on every host: the circle (chat.css) rests in it; empty when the chat is off */
        padding-right: calc(0.4rem + 56px + env(safe-area-inset-right, 0px));
        border: 0; border-top: 1px solid var(--rule); border-radius: 0;
        background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -4px 14px rgba(18, 20, 23, 0.05);
    }
    #view-mode-pills .view-pill {
        flex: 1 1 0; min-width: 44px; min-height: 53px; height: auto; position: relative;
        display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        padding: 6px 2px 4px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none;
        color: var(--ink-2); font: 400 var(--t-micro)/1 var(--font-tab); letter-spacing: 0; white-space: nowrap;
    }
    #view-mode-pills .view-pill svg.nav-svg { display: block; width: 22px; height: 22px; stroke-width: 1.8; }
    #view-mode-pills .view-pill-label { font-size: 0; line-height: 1; width: auto; }
    /* drawn, not read (checker 1b: "ExploreExplore measures"): the tab's name stays its full label */
    #view-mode-pills .view-pill-label::before { content: attr(data-short); content: attr(data-short) / ""; font-size: var(--t-micro); }
    #view-mode-pills .view-pill.active { color: var(--brand-ink); font-weight: 500; background: transparent; box-shadow: none; }
    #view-mode-pills .view-pill.active::before {
        content: ''; position: absolute; top: -2px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 2px 2px; background: var(--brand-ink);
    }
    #view-mode-pills .view-pill:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
    /* the keyboard is up (a text field has focus): the bar steps aside so the field and its first rows show */
    html.kb-open #view-mode-pills { visibility: hidden; }
    html[data-ask] .view-pills-bar { padding-right: calc(0.4rem + 56px + env(safe-area-inset-right, 0px)); }
}
@media (max-width: 359px) {
    /* four tabs (no Alerts) keep 12 px labels at 320 (the re-skin's five needed 11 px); the slot narrows to 52 px */
    #view-mode-pills { padding-right: calc(52px + env(safe-area-inset-right, 0px)); }
    #view-mode-pills .view-pill-label::before { font-size: var(--t-micro); letter-spacing: 0; }
    html[data-ask] .view-pills-bar { padding-right: calc(52px + env(safe-area-inset-right, 0px)); }
}

/* The shell's first draw (index.html window.ipmShell) has not run yet: what it draws waits, invisible (a browser
   without rel=expect may paint the static markup first). Without JavaScript html.ipm-js is absent and all shows. */
html.ipm-js:not(.shell-drawn) #hd-nav .hd-right,
html.ipm-js:not(.shell-drawn) #view-mode-pills { visibility: hidden; }

/* --- the Ask room on tablet and desktop: while the chat is starting, a quiet outline of its circle where it will
   appear (decoration, never a control; it covers nothing the circle would not). The footer keeps the circle's
   gutter below its content on every host, so the circle never sits on Back to top or a link. ------------------- */
@media (min-width: 768px) {
    html[data-ask="pending"] body::after {
        content: ''; position: fixed; z-index: 99; pointer-events: none;
        right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        width: 48px; height: 48px; box-sizing: border-box; border-radius: 999px;
        border: 1.5px solid rgba(var(--accent-rgb), 0.32); background: rgba(var(--accent-rgb), 0.07);
    }
}
@media (min-width: 768px) and (forced-colors: active) {
    html[data-ask="pending"] body::after { border-color: GrayText; background: none; }
}

/* --- the footer: v7's (the band, the IP Lab logo, the copyright, the links, Back to top in the page flow) ------------ */
.glass-footer.colophon.v7b-footer {
    display: flex; flex-direction: column; align-items: stretch; gap: 24px;
    margin: 0; padding: 36px var(--pad-x);   /* (owner 2026-11-14) no data line; the Ask circle's gutter went with v7c's nav-row Ask */
    background: var(--band); color: var(--band-ink); border: 0; border-radius: 0; text-align: left;
    font: 400 var(--t-meta)/1.45 var(--font-ui);
}
.ft-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: start; }
.ft-credits { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.ft-ipl { display: block; height: 46px; width: auto; }
.ft-copy { margin: 0; font: 400 14.5px/1.45 var(--font-ui); color: var(--band-ink); }
.ft-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 26px; }
.ft-links a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    color: var(--band-ink); font: 500 15.5px/1.2 var(--font-ui); text-decoration: none; white-space: nowrap;
}
.ft-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft-links .ft-about { display: none; }
/* (Phase 2, the 1b checker's carry-in) each link in a box of its own width in em (measured in Suisse Intl 500, 15.5 px, with
   2 % to spare; minimums, so text spacing still grows them): the right-aligned links moved about 4 px when the face came late */
@media (min-width: 768px) {
    .ft-links a { justify-content: flex-start; }
    .ft-links a[href^="mailto"] { min-width: 5.35em; }
    /* (owner 2026-11-12) the Lab's own pages; the Institute's old addresses answer 404 */
    .ft-links a[href*="legal-notice"] { min-width: 6.05em; }
    .ft-links a[href*="/privacy"] { min-width: 3.6em; }
    .ft-links a[href*="accessibility-statement"] { min-width: 11.55em; }
}
.ft-top {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0;
    border: 1px solid #F5F1E7; border-radius: 6px; background: #194ABB; color: #F5F1E7; cursor: pointer;   /* v7's Kiel blue in both themes (7.0:1), a beige edge on the band */
    transition: background-color var(--dur-2) ease;
}
.ft-top svg { width: 22px; height: 22px; }
.ft-top:hover { background: var(--ink); }
@media (max-width: 767px) {
    .glass-footer.colophon.v7b-footer {
        padding: 28px max(16px, env(safe-area-inset-right, 0px)) calc(24px + 56px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    }
    .ft-in { grid-template-columns: minmax(0, 1fr); }
    .ft-side { align-items: flex-start; }
    .ft-links { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 0; align-self: stretch; }   /* full width: a late face changes no link's box */
    .ft-links .ft-about { display: inline-flex; }
    .ft-links a { white-space: normal; }
}

/* --- the drawer shell (PLAN 2.1, F5): 440-600 px from 600 px up (the chat's beside layout from 900 holds), full width
   below; on phones a 52 px bar with a 44 x 44 close, the title condensing into it once scrolled away ---------------- */
@media (min-width: 600px) {
    .detail-drawer { width: 32vw; min-width: 440px; max-width: 600px; }
}
.detail-drawer-overlay { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(var(--scrim-rgb), 0.36); }
@media (max-width: 599px) {
    .detail-drawer { border-radius: 0; border-left: 0; }
    .ms-bar { box-sizing: border-box; height: calc(52px + env(safe-area-inset-top, 0px)); min-height: 0; padding: calc(3px + env(safe-area-inset-top, 0px)) 6px 4px 8px; }
    .ms-ic, .close-drawer-btn.ms-ic { width: 44px; height: 44px; }
}

/* --- the shell's components (views.js window.ipmUI): popovers from 768 px, bottom sheets on phones ------------------
   Both are body-level layers below the tab bar's 100 (popover) or at it (sheet, after the bar in the DOM), under the
   chat (101) and the drawer (102/103); both carry data-ipm-popover (tour.js holds a first visit's auto-start) and
   close when the chat opens or the tour starts. */
.v7-pop {
    position: absolute; z-index: 95; min-width: 220px; max-width: calc(100vw - 32px);
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px;
    box-shadow: 0 18px 44px rgba(18, 20, 23, 0.22), 0 2px 6px rgba(18, 20, 23, 0.08);
}
.v7-pop-list { overflow-y: auto; overscroll-behavior: contain; padding: 6px; margin: 0; list-style: none; }
.v7-opt {
    display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: center; gap: 10px;
    min-height: 36px; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--ink);
    font: 400 var(--t-ui)/1.25 var(--font-ui);
}
.v7-opt.no-code { grid-template-columns: minmax(0, 1fr) auto; }
.v7-opt .o-code { font: 400 var(--t-meta)/1 var(--font-num); letter-spacing: -0.02em; color: var(--muted); }
.v7-opt .o-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v7-opt .o-count { font: 400 var(--t-meta)/1 var(--font-num); letter-spacing: -0.02em; color: var(--ink-2); }
.v7-opt:hover, .v7-opt:focus-visible { background: var(--surface); }
.v7-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.v7-opt[aria-selected="true"] { background: var(--surface-2); font-weight: 500; }
.v7-opt[aria-selected="true"] .o-name::after { content: ' \2713'; color: var(--brand-ink); }
@media (pointer: coarse) { .v7-opt { min-height: 44px; } }
.v7-scrim {
    position: fixed; inset: 0; z-index: 100; background: rgba(var(--scrim-rgb), 0.36);
    opacity: 0; transition: opacity var(--dur-3) var(--ease-out);
}
.v7-scrim.on { opacity: 1; }
.v7-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    display: flex; flex-direction: column; max-height: 85vh; max-height: 85dvh;
    background: var(--paper); color: var(--ink); border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(18, 20, 23, 0.22); overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    /* (owner 2026-11-12, fix 5) up and down the same way, --dur-3 on the house curve: it went up in 480 ms and was taken
       away at 320 ms of its 480 ms way down (views.js V7UI.close), a cut, not an exit */
    transform: translateY(100%); transition: transform var(--dur-3) var(--ease-out);
}
.v7-sheet.on { transform: none; }
.v7-sheet:focus { outline: none; }
.v7-sheet-head {
    position: sticky; top: 0; z-index: 1; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center;
    gap: 8px; padding: 14px 8px 6px 16px; background: var(--paper); border-radius: 16px 16px 0 0; touch-action: none;
}
.v7-sheet-grab { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--rule-ui); }
.v7-sheet-head h2 { margin: 0; font: 500 var(--t-h3)/1.2 var(--font-ui); letter-spacing: -0.01em; color: var(--ink); }
.v7-sheet-x {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.v7-sheet-x svg { width: 18px; height: 18px; }
.v7-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 12px; }
.v7-sheet .v7-opt { min-height: 48px; padding: 8px 12px; font-size: 16px; }
body.v7-layer-open .chat-launcher:not(:focus-visible) { opacity: 0; pointer-events: none; }   /* the circle never sits on a sheet's rows */
@media (prefers-reduced-motion: reduce) {
    .v7-sheet, .v7-scrim { transition: none; }
}
@media (forced-colors: active) {
    .v7-pop, .v7-sheet { border: 1px solid CanvasText; }
    .v7-opt[aria-selected="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
    .v7-opt[aria-selected="true"] .o-code, .v7-opt[aria-selected="true"] .o-count { color: HighlightText; }
}

/* --- the toast: ink on paper inverted, bottom centre, above the tab bar on phones; fixed, so it moves nothing ----- */
@media (max-width: 767px) {
    .cb-toast { bottom: calc(56px + 16px + env(safe-area-inset-bottom, 0px)); }
}

/* --- Phase 1a/1b placeholder views: their boxes hold the room of what the data draws (Phase 2-5 replace them) ----- */
/* an Ask host's title shares the first row with its button (the static header holds the button's 44 px from the
   first paint, so the button arriving with views.js moves nothing) */
.card-header-block.has-ask > h2 { grid-column: 1; grid-row: 1; }
.v7b-h1 { margin: 0 0 16px; font: 500 var(--t-h1)/1.1 var(--font-ui); letter-spacing: -0.02em; color: var(--ink); }

/* --- THE OVERVIEW (redesign v7b, Phase 2): v7's Heatmap-led Overview, Beige 1b (PLAN 3.2, F3) ------------------------
   Every box holds the room of its longest variant from the first paint: the heading's lines are fixed in number per
   tier (a long name is set smaller to fit, views.js ovFitHeadline), the subtitle is as tall as its longest text, the
   grid as tall as its 12 rows, five fixed rows per list, the cards' facts a fixed number of lines. Tiers: desktop from
   992 (the hero side by side, v7's 1020), tablet 768-991 (stacked, v7's order), phones (F3: the kicker, the heading on
   two lines, the dataset line, the heatmap, then the search). */
.ov-hero { --ov-gap: 24px; display: flex; flex-direction: column; gap: 32px; align-items: stretch; padding: 20px 0 40px; margin: 0 0 28px; border-bottom: 1px solid var(--rule); }
.ov-text { display: flex; flex-direction: column; gap: var(--ov-gap); min-width: 0; }
@media (min-width: 992px) {
    .ov-hero { flex-direction: row; align-items: center; gap: 44px; padding: clamp(24px, 3vw, 44px) 0 clamp(36px, 4vw, 56px); }
    .ov-text { flex: 0 0 min(540px, 48%); }
    .ov-heat { flex: 1 1 0; min-width: 0; }
}

/* the heading: "Industrial policy in [all countries ▾] across [all sectors ▾]" ("on" with a sector). (Phase 6, WCAG 1.4.12)
   Its lines' room and the strip's figure slots are MIN sizes: the same as before for the page's own type, and they grow
   with a reader's text spacing instead of letting the text run over what follows (views.js refits the menus then) */
.ov-h1 {
    --h: clamp(40px, 4.6vw, 66px); --lh: calc(var(--h) * 1.06); --fit: 1; --lines: 4;
    position: relative; margin: 0; min-height: calc(var(--lines) * var(--lh)); white-space: nowrap;
    font: 500 var(--h) / var(--lh) var(--font-ui); letter-spacing: -0.03em; color: var(--ink);
}
.ov-h1 .ov-dd, .ov-h1 .h-mid { font-size: calc(var(--h) * var(--fit, 1)); }
.ov-h1 .hb { display: none; }
.ov-h1 .hb1, .ov-h1 .hb2, .ov-h1 .hb3 { display: block; }               /* desktop: four lines */
/* (desktop) "in" in a box of its own width in em, so a late face never moves the country menu after it */
@media (min-width: 992px) { .ov-h1 .h-in { display: inline-block; width: 0.95em; } }
.ov-dd {
    display: inline-block; vertical-align: baseline; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; line-height: calc(var(--lh) - 6px); letter-spacing: inherit; color: var(--brand-ink-2); white-space: nowrap;
    border-bottom: 4px solid var(--brand); border-radius: 0;
}
.ov-dd:hover { color: var(--ink); border-bottom-color: var(--brand-ink); }
.ov-dd .ov-chev { display: inline-block; width: max(12px, 0.36em); height: max(12px, 0.36em); margin-left: 0.14em; vertical-align: middle; stroke-width: 3; }
.ov-dd[aria-expanded="true"] .ov-chev { transform: rotate(180deg); }
.ov-dd:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 991px) {
    .ov-h1 { --h: clamp(36px, 5.4vw, 50px); --lines: 2; }
    .ov-h1 .hb1, .ov-h1 .hb2 { display: none; }
    /* the words before the country take a box of their own width in em, so a late face never moves the menu after them; the
       sector menu starts the second line ("... across" ends the first), so "across" -> "on" moves nothing either */
    .ov-h1 .h-pre { display: inline-block; width: 8.25em; }   /* 8.10em measured in Suisse Intl 500 at -0.03em */
}
/* the subtitle: as tall as its longest variant (the intro, or a scope's count) */
.ov-sub { display: grid; max-width: 560px; height: calc(3 * 1.5 * 19px); }   /* three lines in either face, so a late face moves nothing below */
.ov-sub > .ov-sub-t { grid-area: 1 / 1; margin: 0; font: 400 19px/1.5 var(--font-ui); color: var(--ink-2); }
.ov-sub > .ov-sz { visibility: hidden; }
.ov-line { display: none; }
/* "Show all countries and sectors": its row is held on desktop (shown with a scope); the scope bar does it below 992 */
.ov-reset-row { display: none; }
@media (min-width: 992px) {
    .ov-reset-row { display: block; height: 36px; margin: calc(-1 * var(--ov-gap) + 4px) 0 0; }
}
.ov-reset {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r-pill);
    background: var(--surface); color: var(--ink); font: 400 13.5px/1 var(--font-ui); white-space: nowrap; cursor: pointer; visibility: hidden;
}
.ov-reset svg { width: 13px; height: 13px; }
.ov-reset:hover { background: var(--surface-2); }
.ov-hero[data-scoped] .ov-reset { visibility: visible; }

/* the search, its typeahead an overlay (never pushes the page) */
.ov-search { position: relative; width: 100%; max-width: 620px; }
.ov-search-box {
    display: flex; align-items: center; height: 62px; padding: 6px; border: 1px solid var(--rule); border-radius: 12px;
    background: var(--surface); box-shadow: 0 12px 32px rgba(5, 15, 45, 0.12);
}
.ov-search-box:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ov-search-ic { flex: none; width: 20px; height: 20px; margin: 0 10px 0 12px; color: var(--brand-ink-2); }
.ov-search-box input {
    flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ink);
    font: 400 16.5px/1.2 var(--font-ui); outline: none;
}
.ov-search-box input::placeholder { color: var(--muted); opacity: 1; }
.ov-search-box input::-webkit-search-cancel-button { cursor: pointer; }
.ov-search-go {
    flex: none; height: 100%; padding: 0 22px; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--brand); color: #121417; font: 600 15.5px/1 var(--font-ui); white-space: nowrap;
}
.ov-search-go:hover { background: #33B7CC; }
.ov-ta {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; max-height: min(62vh, 520px); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink);
    box-shadow: 0 18px 44px rgba(5, 15, 45, 0.22);
}
.ov-ta[hidden] { display: none; }
.ov-ta.is-up { top: auto; bottom: calc(100% + 8px); }   /* (Phase 2 checker) no room below: it opens above the field */
.ov-ta .ta-k { margin: 0; padding: 8px 12px 4px; font: 400 12.5px/1.3 var(--font-ui); color: var(--muted); }
.ov-ta .ta-k-m { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--rule); }
.ta-terms { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.ta-term {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r-pill);
    background: var(--surface); color: var(--ink); font: 400 13.5px/1.2 var(--font-ui); white-space: nowrap; cursor: pointer;
}
.ta-term svg { flex: none; width: 13px; height: 13px; color: var(--brand-ink-2); }
/* (2026-11-16) a long suggestion stays inside the panel; with the phone keyboard open three chips at most */
.ta-term { max-width: 100%; min-width: 0; } .ta-term-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html.kb-open .ta-term:nth-child(n+4) { display: none; }
.ta-term:hover { border-color: var(--brand); }
.ta-hit {
    display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: none;
    color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.ta-hit:hover { background: var(--surface-2); }
.ta-hit-t { font: 500 15px/1.3 var(--font-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ta-hit-s { font: 400 12.5px/1.3 var(--font-ui); color: var(--muted); }
.ta-hit.is-wait { cursor: default; color: var(--muted); }
.ta-all {
    display: block; width: 100%; min-height: 40px; padding: 10px 12px; border: 0; border-top: 1px solid var(--rule); background: none;
    color: var(--brand-ink-2); text-align: left; font: 500 14px/1.3 var(--font-ui); cursor: pointer;
}
.ov-ta button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (pointer: coarse) { .ta-term { min-height: 44px; } .ta-hit, .ta-all { min-height: 48px; } }

/* the Live dataset strip: two rows of fixed members (a third, "Data to", where the header tucks the date) */
#view-overview .ov-ds {
    /* (owner 2026-11-20) without the curated-measures and articles-behind rows; then "make it the same" as Explore's box:
       a title row, then two rows of two with the same figures (and "Data to" on a row of its own where the header tucks it) */
    display: grid; grid-template-areas: "live live" "n r" "c s" "d d";   /* the box as Explore's (.ex-ds) */
    justify-content: start; align-items: baseline; gap: 8px 16px; margin: 0; padding: 12px 18px; min-height: 0;
    /* (Phase 2, the 1b checker's carry-in) columns in em, measured in Suisse with 2-3 % to spare: a late face changes no
       column, so no figure moves (the strip shifted by CLS 0.0005 when its columns followed the text).
       (owner review A, O-A1) the measures and the articles behind them name their set and period ("2,218 curated measures
       since 1 Jan 2026"), so each takes a row of its own across both columns: the longest, "press articles behind them
       since 30 Sept 2026" with its figure, measures 26.55em in Suisse and 25.97em in the metric fallback, against
       15em + 16px + 12em = 28.2em here; "articles read" 11.2em in its 12em column; the period's text sits in a slot as
       wide as its longest variant, so no period moves anything */
    grid-template-columns: 15em 12em;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; align-self: flex-start;
    font: 400 13.5px/1.4 var(--font-ui); color: var(--muted);
}
/* (owner 2026-11-20) the two figures the box no longer shows: kept in the DOM for the tour and the chat nudge, not drawn */
#view-overview .ov-ds .ds-off { display: none !important; }
.ov-ds .ds-row2 { display: contents; }                                   /* phones: the second row (a flex line) */
.ov-ds-live { grid-area: live; display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1.4 var(--font-ui); color: var(--ink); white-space: nowrap; }
.ov-ds-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ov-ds .quick-stat { display: inline-flex; flex-direction: row; align-items: baseline; gap: 6px; white-space: nowrap; }
.ov-ds .qs-m { grid-area: m; } .ov-ds .qs-r { grid-area: r; } .ov-ds .qs-c { grid-area: c; }
.ov-ds .qs-a { grid-area: a; } .ov-ds .qs-s { grid-area: s; } .ov-ds .qs-d { grid-area: d; } .ov-ds .qs-n { grid-area: n; }
#view-overview .ov-ds .value { display: inline-block; flex: none; font: 700 15px/1.4 var(--font-num); letter-spacing: -0.02em; color: var(--ink); text-align: right; }
/* the figures in slots as wide as their longest value, so a new period or the
   data arriving moves no label after them */
/* in em, not ch: ch is the '0' of the face in use, so it would change with a late face (0.63em per figure, measured) */
#stat-measures-val, #stat-articles-val { min-width: 3.8em; }
/* (owner 2026-11-19) the cards' window line (.ov-sec-win, "Curated measures since ...") under both Explore-by headings is gone */
#stat-scanned-val { min-width: 4.45em; }
#stat-countries-val, #stat-sectors-val { min-width: 1.3em; }
@media (max-width: 767px) { #stat-measures-val { min-width: 3.2em; } }
#view-overview .ov-ds .label { font: 400 13.5px/1.4 var(--font-ui); color: var(--muted); text-transform: none; letter-spacing: 0; }
@media (min-width: 1100px) {
    #view-overview .ov-ds { grid-template-areas: "live live" "n r" "c s"; }
    .ov-ds .qs-d { display: none; }                                          /* the header shows "Data to" from 1100 px */
}

/* the heatmap panel (O4 A) */
.ov-heat { --cell-h: 32px; --g-gap: 10px; --c-gap: 7px; --code-w: 122px; --head-h: 56px; padding: 20px 22px 18px; border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 42, 110, 0.08); }
.ov-heat .card-header-block { min-height: 44px; margin: 0 0 8px; }
.ov-heat .card-header-block h2 { margin: 0; padding-top: 8px; font: 500 var(--t-h3)/1.3 var(--font-ui); color: var(--ink); }
.ov-hm-wrap { position: relative; }
.ov-hm {
    container-type: inline-size; display: flex; flex-direction: column; gap: var(--g-gap);
    min-height: calc(var(--head-h) + 4px + 11 * var(--cell-h) + 11 * var(--g-gap));
}
.g-row { display: grid; grid-template-columns: var(--code-w) repeat(6, minmax(0, 1fr)); gap: var(--c-gap); align-items: center; }
.g-head { align-items: end; height: var(--head-h); padding-bottom: 4px; }
.g-corner, .g-hc, .g-rhc { display: block; min-width: 0; }
.g-hd {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; width: 100%; height: var(--head-h); padding: 0 0 6px;
    border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; font: 400 12px/1 var(--font-ui);
}
.g-hd svg { width: 24px; height: 24px; color: var(--brand-ink-2); }
.g-hd .sh { display: none; }
.g-hd > span { padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.g-hd[aria-pressed="true"] { border-bottom-color: var(--brand); }
.g-hd[aria-pressed="true"] > span { background: var(--brand); color: #121417; font-weight: 600; }
.g-hd:hover > span { color: var(--ink); }
.g-rh {
    display: flex; align-items: center; justify-content: flex-start; width: 100%; height: var(--cell-h); padding: 0 6px; border: 0; border-radius: 5px;
    background: none; color: var(--ink-2); cursor: pointer; font: 400 13px/1.1 var(--font-ui); text-align: left; overflow: hidden;
}
/* (v7c, UX review 11) the country's name where it fits, its short form on narrow grids, the code below that */
.g-rh .nm, .g-rh .ns, .g-rh .cd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-rh .ns, .g-rh .cd { display: none; }
@container (max-width: 560px) { .g-row { --code-w: 76px; } .g-rh .nm { display: none; } .g-rh .ns { display: inline; } .g-rh { font-size: 12.5px; padding: 0 3px; } }
@container (max-width: 420px) { .g-row { --code-w: 30px; } .g-rh .ns { display: none; } .g-rh .cd { display: inline; } .g-rh { justify-content: center; padding: 0; } }
.g-rh[aria-pressed="true"] { background: var(--brand); color: #121417; font-weight: 600; }
.g-rh:hover { color: var(--ink); }
.g-c {
    --hc: var(--heat-0); --hk: var(--heat-ink);
    position: relative; display: flex; align-items: center; justify-content: center; height: var(--cell-h); min-width: 0;
    border-radius: 7px; background: var(--hc); color: var(--hk); cursor: pointer; font: 400 12px/1 var(--font-num); letter-spacing: -0.02em;
    transition: transform var(--dur-1) ease, background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.g-c[data-step="1"] { --hc: var(--heat-1); } .g-c[data-step="2"] { --hc: var(--heat-2); } .g-c[data-step="3"] { --hc: var(--heat-3); }
.g-c[data-step="4"] { --hc: var(--heat-4); } .g-c[data-step="5"] { --hc: var(--heat-5); --hk: var(--heat-ink-on-dark); }
.g-c[data-step="6"] { --hc: var(--heat-6); --hk: var(--heat-ink-on-dark); }
/* a real zero: v7's empty look (the paler sand) with a hatch, distinct from a low count */
.g-c[data-step="0"] { background-image: repeating-linear-gradient(135deg, var(--heat-hatch) 0 1.5px, transparent 1.5px 6px); color: var(--muted); }
/* (owner 2026-11-08) the row's top sector where it is clear (no tie, row >= 20): a warm orange tint at its own step, no
   ring and no glyph. The tint sits on the one scale (each --heat-top-N has the luminance of --heat-N), so a darker cell
   still holds more and the count keeps its ink; colour is not the only cue (WCAG 1.4.1): the count is set heavier (the
   figure face then had one weight, so a 0.5 px stroke of its own colour draws the weight; the advance is unchanged, nothing moves),
   and the label, the tooltip and the cell sheet say "top sector" / "#1 of 6" */
/* (v7c, owner 2026-11-13, B.28) the row's top sector in ONE orange, the Kiel orange, whatever its count (no number in the
   cell, B.1: the label, the tooltip and the cell sheet say "top sector of its row") */
.g-c[data-top], .g-c[data-top][data-step] { --hc: var(--accent); }
/* outside the scope the fill fades (the orange as the teal: 22 % of its step); the figure stays legible (and the cell a target) */
.g-c[data-dim] { background-color: color-mix(in srgb, var(--hc) 22%, var(--surface)); color: var(--ink-2); box-shadow: none; }
.g-c:focus-visible, .g-hd:focus-visible, .g-rh:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 2; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .g-c:hover { transform: scale(1.06); z-index: 3; box-shadow: 0 0 0 2px var(--brand), 0 8px 22px rgba(5, 15, 45, 0.25); }
}
@media (hover: hover) { .g-c:hover { outline: 2px solid var(--brand); outline-offset: 0; } }
/* short heads whenever a column is under 72 px (PLAN F3: 6 x 72 + the code column + the gaps) */
@container (max-width: 600px) {
    .g-hd .lg { display: none; }
    .g-hd .sh { display: inline; }
}
.ov-tip {
    position: absolute; z-index: 20; display: none; flex-direction: column; gap: 4px; padding: 12px 16px; pointer-events: none; white-space: nowrap;
    background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 12px;   /* (owner 2026-11-19) no coloured strip on the top edge */
    box-shadow: 0 18px 44px rgba(5, 15, 45, 0.3); font: 400 14px/1.35 var(--font-ui);
}
.ov-tip.on { display: flex; }
.ov-tip b { font: 600 15.5px/1.3 var(--font-ui); }
.ov-tip span { color: var(--ink-2); }
.ov-tip .t-go { font: 400 12px/1.3 var(--font-ui); color: var(--brand-ink-2); }
.ov-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 14px 0 0 0; font: 400 13px/1.4 var(--font-ui); color: var(--muted); }
.lg-i { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.lg-i i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.lg-top i { background: var(--accent); }                              /* (v7c, B.28) the one orange */
.lg-none i { background: var(--heat-0) repeating-linear-gradient(135deg, var(--heat-hatch) 0 1.5px, transparent 1.5px 5px); }
.lg-ramp { gap: 3px; }
.lg-ramp i:nth-child(1) { background: var(--heat-1); } .lg-ramp i:nth-child(2) { background: var(--heat-3); } .lg-ramp i:nth-child(3) { background: var(--heat-5); margin-right: 3px; }
.ov-note { margin: 6px 0 0; padding-left: calc(var(--code-w) + var(--c-gap)); font: 400 13px/1.4 var(--font-ui); color: var(--muted); }

/* the scope bar, in place from 768 px; always holds its row ("Showing All countries · all sectors") */
.ov-scopebar {
    display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0 0 28px; padding: 6px 8px 6px 16px;
    background: var(--surface); border: 1px solid var(--rule); border-left: 1px solid var(--rule);   /* (checker, B.13 as the owner probably meant it) no vertical accent strip */ border-radius: 12px; font: 400 15px/1.3 var(--font-ui);
}
.ov-scopebar .sb-l { color: var(--muted); }
.ov-scopebar .sb-t { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-scopebar .sb-t:focus { outline: none; }
.sb-x {
    display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r-pill);
    background: var(--paper); color: var(--ink); font: 400 13.5px/1 var(--font-ui); cursor: pointer; visibility: hidden;
}
.sb-x svg { width: 13px; height: 13px; }
.sb-x:hover { border-color: var(--brand); }
.ov-scopebar[data-scoped] .sb-x { visibility: visible; }
@media (pointer: coarse) { .sb-x, .ov-reset { height: 44px; } .ov-reset-row { height: 44px; } }

/* Most covered and New in the debate: five fixed rows each */
.ov-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; align-items: start; margin: 0 0 52px; }
.ov-card { padding: 0; overflow: hidden; border-radius: 16px; }
.ov-card .card-header-block { min-height: 44px; margin: 0; padding: 14px 18px 0 26px; background: var(--surface-2); }
.ov-card .card-header-block h2 { margin: 0; padding-top: 6px; font: 500 22px/1.3 var(--font-ui); letter-spacing: -0.015em; color: var(--ink); }
.ov-card-sub { margin: 0; padding: 0 26px 14px; background: var(--surface-2); border-bottom: 1px solid var(--rule); font: 400 12.5px/1.4 var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* (Phase 2 checker) a long scope name gives way first: the set and the window after it are never cut */
.ov-card-sub > #mc-sub, .ov-card-sub > #nd-sub { display: flex; max-width: 100%; min-width: 0; }
.ov-card-sub .sub-scope { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.ov-card-sub .sub-fix { flex: none; }
.ov-rows { --row-h: 112px; list-style: none; margin: 0; padding: 4px 26px; height: calc(3 * var(--row-h) + 8px); }
.ov-row { position: relative; }
.ov-row-btn {
    display: grid; grid-template-columns: 22px minmax(0, 1fr) 88px; gap: 16px; align-items: center; width: 100%; height: var(--row-h);
    padding: 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.ov-row:last-child .ov-row-btn { border-bottom: 0; }
.ov-row-btn:hover .r-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ov-row-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.r-rank { font: 400 14px/1 var(--font-num); letter-spacing: -0.02em; color: var(--muted); }
.r-main { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.r-title { font: 500 17px/1.25 var(--font-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.r-meta { display: flex; align-items: center; gap: 6px 12px; min-width: 0; font: 400 14px/1.3 var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; }
.r-meta > * { flex: none; }
.r-meta .r-inst { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.r-fig { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.r-n { font: 700 17px/1 var(--font-num); letter-spacing: -0.03em; color: var(--brand-ink-2); }
.r-bar { display: block; width: 88px; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.r-bar i { display: block; height: 5px; background: var(--brand-ink); }
.ov-rows-new .ov-row-btn { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; }
.r-when { font: 400 14px/1.35 var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sub { font: 400 14.5px/1.35 var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-empty { margin: 0; padding: 18px 0; list-style: none; font: 400 15px/1.4 var(--font-ui); color: var(--muted); }
.ov-card-foot { margin: 0; padding: 4px 26px 14px; border-top: 1px solid var(--rule); }
.ov-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--brand-ink-2); font: 500 15px/1.3 var(--font-ui); text-align: left;
}
.ov-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ov-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill);
    background: var(--surface-2); color: var(--ink); font: 500 13.5px/1.2 var(--font-ui); white-space: nowrap;
}
.ov-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-ui); }
.ov-pill[data-st="in_discussion"] { background: var(--status-discussion-bg); } .ov-pill[data-st="in_discussion"] i { background: var(--st-discussion); }
.ov-pill[data-st="announced"] { background: var(--status-announced-bg); } .ov-pill[data-st="announced"] i { background: var(--st-announced); }
.ov-pill[data-st="active"] { background: var(--status-active-bg); } .ov-pill[data-st="active"] i { background: var(--st-active); }
.ov-pill[data-st="expired"] { background: var(--status-expired-bg); } .ov-pill[data-st="expired"] i { background: var(--st-expired); }
.ov-pill[data-st="cancelled"] { background: var(--status-cancelled-bg); } .ov-pill[data-st="cancelled"] i { background: var(--st-cancelled); }

/* Explore by sector / by country: the cards keep a fixed number of lines per fact, so a period moves nothing */
.ov-sec { margin: 0 0 52px; }
.ov-sec-head { min-height: 44px; margin: 0; }
.ov-sec-head h2 { margin: 0; padding-top: 4px; font: 500 28px/1.25 var(--font-ui); letter-spacing: -0.02em; color: var(--ink); }
.ov-sec-sub { margin: 2px 0 18px; font: 400 14.5px/1.4 var(--font-ui); color: var(--muted); }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; align-items: start; }
.ov-tile {
    display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden;
    background: var(--surface); color: var(--ink); text-align: left; font: inherit;
    transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}
.ov-tile:hover { border-color: var(--brand-ink); }
.ov-tile.is-open { background: var(--paper); border-color: var(--brand-ink); box-shadow: 0 8px 24px rgba(15, 42, 110, 0.08); }
.ov-tile > .t-head {
    width: 100%; margin: 0; padding: 14px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
    grid-template-columns: auto minmax(0, 1fr) auto; min-height: 70px;
}
.ov-tile > .t-head:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 16px; }
.t-chev { width: 16px; height: 16px; color: var(--muted); transition: transform var(--dur-2) ease; }
.t-head[aria-expanded="true"] .t-chev { transform: rotate(180deg); }
.t-body { padding: 0 18px 14px; border-top: 1px solid var(--rule); }
.t-body[hidden] { display: none; }
.t-body .t-facts { margin: 14px 0 6px; }
.t-body dd { margin: 0; }
.t-body .t-v { display: block; height: auto; -webkit-line-clamp: unset; overflow: visible; }
.t-mc-b { margin: 0; padding: 0; border: 0; background: none; color: var(--brand-ink-2); font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(0, 106, 124, 0.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.t-mc-b:hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .t-chev { transition: none; } }
.t-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 12px; min-height: 42px; }
.t-nb { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--heat-1); color: var(--brand-ink-2); }
.t-ic svg { width: 22px; height: 22px; }
.t-code { flex: none; padding: 3px 8px; border-radius: 5px; background: var(--surface-2); font: 400 12.5px/1.2 var(--font-ui); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.t-name { min-width: 0; font: 500 19px/1.2 var(--font-ui); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-badge { font: 400 13px/1.2 var(--font-num); letter-spacing: -0.02em; color: var(--brand-ink-2); white-space: nowrap; }
.t-facts { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 10px 12px; font: 400 14.5px/1.35 var(--font-ui); }
.t-k { color: var(--muted); }
.t-v { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; height: calc(3 * 1.35em); overflow-wrap: anywhere; }
.t-v.t-mf { -webkit-line-clamp: 2; height: calc(2 * 1.35em); }
.t-lead { display: flex; flex-direction: column; -webkit-line-clamp: unset; }
.t-v.t-att { display: block; -webkit-line-clamp: unset; height: calc(4 * 1.35em); }
.t-att > span { display: block; }
.t-lead .f-l { white-space: nowrap; }
.t-lead b, .t-so b { font-weight: 500; }
.t-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 15px/1.3 var(--font-ui); color: var(--brand-ink-2); }
.t-cta svg { width: 15px; height: 15px; }
.ov-more-row { margin: 18px 0 0; text-align: center; }
.ov-more { min-height: 44px; padding: 0 20px; border: 1px solid var(--rule); border-radius: var(--r-pill); background: none; color: var(--ink); font: 400 14.5px/1 var(--font-ui); cursor: pointer; }
.ov-more:hover { border-color: var(--brand-ink); }

/* the scoped stats */
.ov-stats-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.ov-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ov-sc { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; }
.sc-k { margin: 0; font: 400 12.5px/1.3 var(--font-ui); color: var(--muted); }
.sc-stack { display: flex; height: 14px; gap: 2px; }
.sc-stack i, .sc-dot { background: var(--rule-ui); }
.sc-stack i { display: block; min-width: 2px; }
[data-st="in_discussion"].sc-dot, .sc-stack i[data-st="in_discussion"] { background: var(--st-discussion); }
[data-st="announced"].sc-dot, .sc-stack i[data-st="announced"] { background: var(--st-announced); }
[data-st="active"].sc-dot, .sc-stack i[data-st="active"] { background: var(--st-active); }
[data-st="expired"].sc-dot, .sc-stack i[data-st="expired"] { background: var(--st-expired); }
[data-st="cancelled"].sc-dot, .sc-stack i[data-st="cancelled"] { background: var(--st-cancelled); }
.sc-list, .sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-list li { display: block; font: 400 14px/1.35 var(--font-ui); }
.sb-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; width: 100%; min-height: 32px; margin: 0; padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sc-list .sb-b { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; }
.sb-b:hover { background: var(--surface-2); }
.sb-b:hover .sb-l { text-decoration: underline; text-underline-offset: 3px; }
.sb-b:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (pointer: coarse) { .sb-b { min-height: 44px; } }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; }
.sb-p { font: 400 13px/1.35 var(--font-num); letter-spacing: -0.02em; color: var(--ink); text-align: right; }
.sb-row { display: block; font: 400 14px/1.35 var(--font-ui); }
.sb-row .sb-l, .sc-list .sb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-bar { grid-column: 1 / -1; display: block; height: 5px; background: var(--rule); }
.sb-bar i { display: block; height: 5px; background: var(--brand-ink); }
.is-goal .sb-bar i { background: var(--kiel-blue); }
.sc-note { margin: 2px 0 0; min-height: 2.8em; font: 400 12.5px/1.4 var(--font-ui); color: var(--muted); }

/* (v7c, owner 2026-11-13, B.14, B.4) the trend row: v7's trend cards (kicker, title and figure, a 100 x 32 line, the
   sub-line, the link) and the level of government card; each holds a fixed room, so the data and a period move nothing */
.ov-trends { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 306px), 1fr)); gap: 16px; margin: 0 0 40px; }
.ov-tr { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 44px auto 1fr; gap: 8px; padding: 20px 22px 12px; border-radius: 16px; height: 284px; overflow: hidden; box-sizing: border-box; }
.ov-tr .tr-k { margin: 0; font: 400 13px/1.3 var(--font-ui); color: var(--muted); }
.ov-tr .tr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; min-height: 1.3em; }
.ov-tr .tr-t { min-width: 0; font: 500 21px/1.2 var(--font-ui); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tr .tr-n { flex: none; font: 700 24px/1 var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--brand-ink-2); }
.tr-line { height: 44px; }
.tr-svg { display: block; width: 100%; height: 44px; overflow: visible; }
.tr-svg polyline { stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ov-tr .tr-sub { margin: 0; height: calc(3 * 1.4em); overflow: hidden; font: 400 13.5px/1.4 var(--font-ui); color: var(--muted); }
.ov-tr .tr-go { align-self: end; justify-self: start; }
.ov-lv { grid-template-rows: auto auto auto auto 1fr; }
.ov-lv .lv-head { justify-content: flex-start; align-items: baseline; gap: 10px; }
.ov-lv .lv-t { font: 400 14px/1.35 var(--font-ui); color: var(--ink-2); height: calc(3 * 1.35em); overflow: hidden; }
.lv-bar { display: flex; gap: 2px; height: 14px; border-radius: 3px; overflow: hidden; background: var(--rule); }
.lv-bar i { display: block; min-width: 2px; }
.lv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.lv-b { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 32px; margin: 0; padding: 0 4px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 400 14px/1.3 var(--font-ui); text-align: left; cursor: pointer; }
.lv-b .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-b:hover { background: var(--surface-2); }
.lv-b:hover .l { text-decoration: underline; text-underline-offset: 3px; }
.lv-b:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (pointer: coarse) { .lv-b { min-height: 44px; } }
.ov-lv .tr-sub { height: auto; max-height: calc(3 * 1.4em); font-size: 12.5px; }
@media (max-width: 767px) { .ov-trends { gap: 12px; margin-bottom: 32px; } .ov-tr { padding: 16px 16px 8px; height: 284px; } .ov-lv { height: 322px; } }
@media (forced-colors: active) { .tr-svg polyline { stroke: CanvasText; } .lv-bar i { forced-color-adjust: none; border-right: 1px solid CanvasText; } }

/* (v7c, B.2) Explore's line under the count: what All holds, and the link to the Methodology */
.ex-hist { flex-basis: 100%; order: 3; margin: 0; font: 400 13.5px/1.4 var(--font-ui); color: var(--muted); }
.ex-hist-a { color: var(--brand-ink-2); white-space: nowrap; }
.ex-hist-g { display: inline-grid; vertical-align: top; }
.ex-hist-g > * { grid-area: 1 / 1; }
.ex-hist-sz { visibility: hidden; }
html.kb-open .ex-hist { display: none; }
@media (pointer: coarse) { .ex-hist-a { display: inline-flex; align-items: center; min-height: 44px; } }

/* Cite / Questions / Media (v7) */
.ov-cite { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ov-cite-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); }
.ov-cite-card.is-cite { background: #194ABB; color: #F5F1E7; border-color: #194ABB; }
.oc-k { font: 400 12.5px/1.3 var(--font-ui); color: var(--muted); }
.is-cite .oc-k { color: #DFE0E3; }
.oc-t { margin: 0; font: 400 16px/1.55 var(--font-ui); color: var(--ink-2); }
.is-cite .oc-t { min-height: calc(7 * 1.55em); }
/* the room for the longest citation's lines, held so nothing below moves ((review A) phones too: 8 lines at 320 and at
   414 against the 7 held; v7c's one family keeps the rooms as they were, so nothing on screen changed) */
@media (max-width: 1199px) { .is-cite .oc-t { min-height: calc(9 * 1.55em); } }
@media (max-width: 767px) { .ov-cite-card:not(.is-cite) .oc-t { min-height: calc(3 * 1.55em); } }   /* (review A) the Questions and Media lines: room for 3 at 414 */
/* (release gate 2026-11-08) and in the two-column grid (768 px up to the third column at about 1002 px): at 892-915 px
   the Media card sits alone in its row; its room for 3 lines is held (a late serif face once moved the footer 24.8 px) */
@media (min-width: 768px) and (max-width: 1001.98px) { .ov-cite-card:not(.is-cite) .oc-t { min-height: calc(3 * 1.55em); } }
/* (review A, D5) the card's "See all N measures from all sources" takes two lines below 390 once its figure is in: its room
   is held from the first render */
@media (max-width: 389px) { .ov-card-foot .ov-link { min-height: 48px; vertical-align: top; } }   /* (release gate) top: the link's two lines move its baseline, which grew the line 0.5 px when the figure came in (320-360) */
.is-cite .oc-t { color: #F5F1E7; }
.oc-btn { align-self: flex-start; margin-top: auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: #F5F1E7; color: #121417; font: 600 14px/1 var(--font-ui); cursor: pointer; }
.oc-btn:hover { background: #E6DFCF; }
.oc-btn:focus-visible { outline: 2px solid #F5F1E7; outline-offset: 2px; }
.oc-a { margin-top: auto; font: 500 16px/1.4 var(--font-ui); overflow-wrap: anywhere; color: var(--brand-ink-2); }
@media (pointer: coarse) { .oc-btn { min-height: 44px; } .oc-a { display: inline-flex; align-items: center; min-height: 44px; } }

/* the cell sheet (a popover from 768 px, a bottom sheet on phones) and "What is this monitor?" */
.v7-pop.ov-cs-pop { width: 320px; padding: 14px 16px 16px; overflow: visible; }
.ov-cs .cs-t { margin: 0 0 6px; font: 600 16px/1.3 var(--font-ui); color: var(--ink); }
.ov-cs .cs-n, .ov-cs .cs-m { margin: 0 0 4px; font: 400 14px/1.4 var(--font-ui); color: var(--ink-2); }
.ov-cs .cs-n b { font: 700 15px/1.4 var(--font-num); color: var(--ink); }
.cs-acts { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.cs-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 8px;
    background: var(--surface); color: var(--ink); text-align: left; font: 500 15px/1.2 var(--font-ui); cursor: pointer;
}
.cs-btn small { display: block; font-weight: 400; font-size: 13px; color: inherit; }
.cs-btn.is-main { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 6px 14px; }
.cs-btn.is-main { background: #006A7C; color: #fff; border-color: #006A7C; }   /* white on #006A7C in both themes (6:1, as the Ask launcher) */
.cs-btn svg { width: 15px; height: 15px; color: var(--brand-ink-2); }
.cs-btn:hover { border-color: var(--brand); }
.v7-sheet .ov-cs { padding: 4px 8px 8px; }
.ov-about-sheet { padding: 0 8px 8px; font: 400 16px/1.55 var(--font-ui); color: var(--ink-2); }
.ov-about-sheet p { margin: 0 0 12px; }
/* the sector menu's share column (O3 A: a share in place of v7's trend %) */
.v7-opt.has-share { grid-template-columns: minmax(0, 1fr) 3.2em 3.4em; }
.v7-opt .o-share { font: 400 var(--t-meta)/1 var(--font-num); letter-spacing: -0.02em; color: var(--brand-ink-2); text-align: right; }
.v7-opt .o-count { text-align: right; }

/* --- tablet: the hero stacked in v7's order ---------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
    .ov-sub { max-width: 640px; }
}

/* --- phones (O9 A, F3) ------------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .ov-hero { display: flex; flex-direction: column; gap: 0; padding: 8px 0 32px; margin-bottom: 24px; }
    .ov-text { display: contents; }
    .ov-h1 { --h: clamp(28px, 8vw, 40px); --lh: calc(var(--h) * 1.08); order: 1; min-height: calc(26px + 2 * var(--lh)); }
    .ov-h1 .hb1, .ov-h1 .hb2 { display: none; }
    .ov-h1 .h-pre { display: block; min-height: 26px; font: 400 15px/22px var(--font-ui); letter-spacing: 0; color: var(--ink-2); }
    .ov-h1 .h-pre .h-in { white-space: pre; }
    .ov-sub, .ov-reset-row { display: none; }
    .ov-line { order: 2; display: flex; align-items: center; height: 30px; margin: 4px 0 0; min-width: 0; }
    .ov-about-btn {
        display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer;
        color: var(--brand-ink-2); font: 500 14px/1 var(--font-ui); white-space: nowrap; position: relative;
    }
    .ov-about-btn::after { content: ''; position: absolute; left: -4px; right: -4px; top: -7px; bottom: -7px; }
    .ov-about-btn svg { width: 13px; height: 13px; }
    .ov-line-n { display: none; min-width: 0; font: 400 13px/1.3 var(--font-ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ov-hero[data-scoped] .ov-about-btn { display: none; }
    .ov-hero[data-scoped] .ov-line-n { display: block; }
    /* the dataset line, two fixed rows (owner review A, O-A1): the measures with their set and period alone on the first
       ("2,218 curated measures since 1 Jan 2026"; alone on its row, so a period's longer date moves nothing), the
       countries, the sectors (tucked below 375) and Data to on the second, figures and words in Suisse Intl. "Articles read" and the articles behind them are tucked on phones (the
       strip's title and the Methodology carry them); the separators belong to the second row's later members only, so a
       row never starts with a dot (seen live at 390: "· 331,708 articles read") */
    #view-overview .ov-ds {
        order: 3; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; justify-content: stretch;
        gap: 2px 0; margin: 6px 0 10px; padding: 0; border: 0; background: none; border-radius: 0; font: 400 13px/1.4 var(--font-ui);
    }
    .ov-ds-live { display: none; }
    #view-overview .ov-ds .qs-m { grid-area: 1 / 1; }
    #view-overview .ov-ds .ds-row2 { grid-area: 1 / 1; display: flex; align-items: baseline; min-width: 0; white-space: nowrap; }
    #view-overview .ov-ds .value { font: 400 13px/1.4 var(--font-num); letter-spacing: -0.02em; color: var(--ink); }
    #view-overview .ov-ds .label { font: 400 13px/1.4 var(--font-ui); letter-spacing: 0; color: var(--ink-2); }
    .ov-ds .quick-stat { gap: 0.4em; }
    /* in em boxes measured in both faces (Suisse 6.11 / 6.84 em, the fallback 5.91 / 6.69): a late face moves nothing after them */
    #view-overview .ov-ds .ds-row2 > .qs-c { flex: none; width: 6.3em; }
    #view-overview .ov-ds .ds-row2 > .qs-s { flex: none; width: 7.05em; }
    .ov-ds .ds-row2 > .qs-s::before, .ov-ds .ds-row2 > .qs-d::before { content: '\00b7'; margin: 0 0.5em; color: var(--muted); }
    .ov-ds .qs-r, .ov-ds .qs-a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    /* (owner 2026-11-12, display check finding 2) read, not drawn: their text wraps inside the hidden box instead of
       running on past the screen's right edge (the articles line reached 336 px at 320) */
    #view-overview .ov-ds .qs-r, #view-overview .ov-ds .qs-a, #view-overview .ov-ds .qs-r .label, #view-overview .ov-ds .qs-a .label { white-space: normal; }
    .ov-heat { order: 4; --cell-h: 44px; --g-gap: 4px; --c-gap: 4px; --code-w: 30px; --head-h: 44px; padding: 8px 12px 14px; border-radius: 18px; box-shadow: none; }
    .ov-heat .card-header-block { margin-bottom: 2px; }
    .ov-heat .card-header-block h2 { padding-top: 10px; font-size: 18px; }
    .g-hd { gap: 4px; padding-bottom: 4px; }
    .g-hd svg { width: 18px; height: 18px; }
    .g-hd > span { padding: 1px 3px; }
    .g-rh { font-size: 13px; }
    .g-c { font-size: 13px; border-radius: 6px; }
    .ov-legend, .ov-note { padding-left: 0; }
    .ov-search { order: 5; max-width: none; margin-top: 18px; }
    .ov-search-box { height: 54px; padding: 4px; box-shadow: none; }
    .ov-search-go { padding: 0 16px; }
    .ov-scopebar { display: none; }                                    /* the docked strip carries the scope */
    .ov-lists { gap: 16px; margin-bottom: 36px; }
    .ov-card .card-header-block { padding: 10px 10px 0 16px; min-height: 54px; }   /* (review A, D5) its Ask button's room (10 + 44 px) held before views.js draws it */
    .ov-card .card-header-block h2 { font-size: 19px; padding-top: 10px; }
    .ov-card-sub { padding: 0 16px 10px; }
    .ov-rows { --row-h: 96px; padding: 0 16px; }
    .ov-row-btn { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; }
    .r-main { gap: 6px; }
    .r-title { font-size: 16px; }
    .r-meta { font-size: 13px; gap: 4px 8px; }
    .r-meta .r-inst { display: none; }
    /* (owner 2026-11-12, display check finding 2) the place gives way with an ellipsis where it would run past the row
       (320-360 px: "United Kingdom · EVs & automotive" beside a pill); its whole text stays in the row's name */
    .r-meta .r-where { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .ov-pill { padding: 2px 8px; font-size: 13px; }
    .r-fig { align-self: center; }
    .r-n { font-size: 16px; }
    .r-bar { position: absolute; left: 34px; right: 0; bottom: 0; width: auto; height: 2px; border-radius: 0; background: none; }
    .r-bar i { height: 2px; }
    .ov-rows-new .ov-row-btn { gap: 4px; }
    .r-when, .r-sub { font-size: 13px; }
    .ov-card-foot { padding: 0 16px 6px; }
    .ov-sec { margin-bottom: 36px; }
    .ov-sec-head h2 { font-size: 22px; padding-top: 8px; }
    .ov-sec-sub { margin-bottom: 12px; font-size: 14px; }
    .ov-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    /* compact one-column cards (C-A): name and icon or code, one fact line, the whole card the control */
    .ov-tile { min-height: 0; border-radius: 14px; }
    .ov-tile > .t-head { min-height: 56px; padding: 8px 14px; }
    .t-head { min-height: 36px; gap: 10px; }
    .t-ic { width: 36px; height: 36px; border-radius: 9px; }
    .t-ic svg { width: 19px; height: 19px; }
    .t-name { font-size: 17px; }
    .t-facts { grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; font-size: 13.5px; }
    /* (review A, D3) the one fact runs on with its label over two fixed lines; its figures are atomic groups that wrap
       whole ("53 of 264" is never cut: "Stands out in Chemicals 20% vs 14% of all (53 of 264)"), so the card is 112 px */
    .t-v .f-g { white-space: nowrap; }
    /* (owner review B, 2026-11-08) "Stands out in Chemicals 1.4× the average (53 of 264)": the two shares stay on the
       wider cards and in the Methodology; the two fixed lines hold the factor and the count at 320 px */
    .t-so .so-sh { display: none; }
    .t-lead { display: inline; }
    .t-lead .f-l:not(:last-child)::after { content: ','; }
    .t-cta { display: none; }
    .ov-stats-grid { grid-template-columns: minmax(0, 1fr); }
    .ov-sc { padding: 14px 16px; }
    .sc-list li, .sb-row { font-size: 14px; }
    .ov-cite { gap: 12px; }
    .ov-cite-card { padding: 18px; }
}
@media (max-width: 374px) {
    .ov-h1 { height: calc(22px + 2 * var(--lh)); }
    .ov-h1 .h-pre { height: 22px; }
    .ov-line { margin-top: 0; }
    #view-overview .ov-ds { margin: 4px 0 8px; }
    .ov-heat { --code-w: 26px; --c-gap: 3px; --g-gap: 3px; margin: 0 -8px; padding: 10px 8px 12px; border-radius: 14px; }
    .ov-ds .qs-s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .g-c { font-size: 12px; }
}

/* 44 px targets under a coarse pointer (F8): the cells, heads and codes reach into the gaps and the card's padding; the
   heading's menus reach above and below their text */
@media (pointer: coarse) {
    .g-c::after, .g-hd::after { content: ''; position: absolute; top: calc(var(--g-gap) / -2 - 1px); bottom: calc(var(--g-gap) / -2 - 1px); left: calc(var(--c-gap) / -2 - 1px); right: calc(var(--c-gap) / -2 - 1px); }
    .g-hd, .g-rh { position: relative; }
    .g-rh::after { content: ''; position: absolute; top: calc(var(--g-gap) / -2 - 1px); bottom: calc(var(--g-gap) / -2 - 1px); left: -16px; right: calc(var(--c-gap) / -2); }
    .ov-dd { position: relative; }
    .ov-dd::after { content: ''; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; min-height: 44px; }
}
/* (review A, D4) phones: the sentence's two menus sit on lines 30-34 px apart, between the kicker and "What is this
   monitor?". The country menu's hit area reaches up over the kicker (not a control): 48 px or more, all its own. The
   sector menu's is a 44 px box from its line down; its lower part lies under "What is this monitor?", which is later in
   the page and takes those taps, so the sector menu answers on 32-42 px of it (320-430 px wide): the most the lines'
   pitch leaves without moving the heading (WCAG 2.5.8's 24 px spacing holds). The button below keeps 44 px. */
@media (max-width: 767px) and (pointer: coarse) {
    #ov-dd-c::after { top: calc(-1 * (26px + 8px)); bottom: 0; min-height: 0; }
    #ov-dd-s::after { top: -3px; bottom: auto; height: 44px; min-height: 44px; }
}
@media (max-width: 374px) and (pointer: coarse) { #ov-dd-c::after { top: calc(-1 * (22px + 8px)); } }
@media (max-width: 767px) {
    .ov-card-sub, .ov-ta .ta-k, .sc-k, .oc-k, .ov-legend, .ov-note { font-size: 13px; }
}
/* --- forced colours: counts and a 1 px keyline on every cell, the top cell a Highlight edge and its heavier count (a plain
   hue is gone there), the bars their edges --- */
@media (forced-colors: active) {
    .g-c { border: 1px solid CanvasText; forced-color-adjust: none; background: Canvas; color: CanvasText; }
    .g-c[data-top] { box-shadow: none; outline: 3px solid Highlight; outline-offset: -3px; }
    .g-c[data-dim] { color: GrayText; }
    .g-hd[aria-pressed="true"] > span, .g-rh[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
    /* (Phase 2 checker) the heads' transparent underline was forced to CanvasText, so every sector looked chosen */
    .g-hd { border-bottom-color: Canvas; }
    .g-hd[aria-pressed="true"] { border-bottom-color: Highlight; }
    .ov-tile[aria-pressed="true"] { outline: 2px solid Highlight; }
    .sc-stack i { border: 1px solid CanvasText; }
    .r-bar, .sb-bar { border: 1px solid CanvasText; }
    .ov-pill { border: 1px solid CanvasText; }
    .ov-cite-card.is-cite { border: 1px solid CanvasText; }
    .lg-i i { border: 1px solid CanvasText; }
    .lg-top i { forced-color-adjust: none; background: Canvas; outline: 2px solid Highlight; outline-offset: -2px; }   /* the cell's Highlight edge */
}

/* (Phase 3) Explore's placeholder rules are gone: the EXPLORE MEASURES section below holds the page */
/* the tour's Methodology button keeps its row until tour.js shows it (no shift when it arrives) */
#view-methodology .methodology-tour-row[hidden] { display: flex; visibility: hidden; }
/* the chat's launcher pill (its surfaces keep chat.css until their re-skin): white on the deep turquoise, 6:1+ in both themes */
html .chat-launcher { background: #006A7C; color: #fff; }
/* (Phase 5) the placeholder sentence's rule is gone: the METHODOLOGY section at the end of the file holds the page */

/* --- forced colours: the band and the strip keep their edges, the logos a plate, the selection an outline --------- */
@media (forced-colors: active) {
    .hd-band, .hd-nav, .glass-footer.colophon.v7b-footer { border-bottom: 1px solid CanvasText; }
    /* the beige logos would vanish on a light Canvas: they keep the dark band behind them as a backplate */
    .hd-logos, .ft-ipl { forced-color-adjust: none; background: #0B353D; border-radius: 6px; padding: 6px 8px; }
    .hd-logos .lh-rule { forced-color-adjust: none; background: #F5F1E7; }
    .hd-about, .pseg, .ft-top { border: 1px solid CanvasText; }
    .v7b-period-btn[aria-checked="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; outline: 2px solid CanvasText; outline-offset: -2px; }
    /* (checker 1b) the inactive tabs' transparent 3 px underline is forced to CanvasText, so every tab looked chosen: it
       takes the Canvas, and only the active tab keeps a bar (Highlight) */
    #hd-nav .view-pill { border-bottom-color: Canvas; }
    /* (checker 1b) the Tour icon kept the band's beige through its svg's preserve-parent-color (about 1.1:1 on a white
       Canvas, the theme icon beside it did not): the band's icons take the button text colour */
    .hd-icon svg { color: ButtonText; }
    #hd-nav .view-pill.active { border-bottom-color: Highlight; text-decoration: underline; text-underline-offset: 6px; }
    #view-mode-pills .view-pill.active { color: LinkText; text-decoration: underline; text-underline-offset: 3px; }
    #view-mode-pills .view-pill.active::before { forced-color-adjust: none; background: Highlight; }
    :focus-visible, .hd-band :focus-visible, .hd-nav :focus-visible, .v7b-footer :focus-visible { outline: 2px solid Highlight; }
}

/* --- print: the page's content, without the chrome (Phase 5 renders the Methodology first, K18) ------------------- */
@media print {
    .hd-band, .hd-nav, #view-mode-pills, .v7-pop, .v7-sheet, .v7-scrim, .cb-toast, .skip-link, .load-progress, .ft-top,
    #chat-launcher, .ask-card-btn { display: none !important; }
    body, html { background: #fff; }
    .glass-footer.colophon.v7b-footer { background: #fff; color: #000; padding-bottom: 24px; }
}

/* =============================================================================
   EXPLORE MEASURES (Phase 3; PLAN 3.3, F4): v7's page. The hero (h1, the search with its clear button, the Live dataset
   strip of the set it lists), the filter bar (v7's five chips, the removable chips, Clear all; sticky under the docked
   row: 44 + 52 px on phones, so what sticks stays at 100 px or less), the count line with the sort, v7's wide table from
   1200 px and its narrow rows below, 40 rows at a time. The placeholder's rules (1b) are replaced here.
   ============================================================================= */
#view-measures { gap: 0; }
.ex-hero { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3.4vw, 48px) 0 clamp(24px, 3vw, 40px); margin: 0 0 24px; border-bottom: 1px solid var(--rule); }
#view-measures .ex-h1 { margin: 0; font: 500 clamp(34px, 4vw, 52px)/1.05 var(--font-ui); letter-spacing: -0.03em; color: var(--ink); }
.ex-search {
    position: relative; display: flex; align-items: center; height: 64px; max-width: 860px; padding: 6px; border: 1px solid var(--rule); border-radius: 14px;
    background: var(--surface-raised); box-shadow: 0 0 0 4px rgba(0, 165, 191, 0.28), 0 14px 36px rgba(5, 15, 45, 0.14);
}
.ex-search:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.ex-search-ic { flex: none; width: 22px; height: 22px; margin: 0 10px 0 12px; color: var(--brand-ink-2); }
#view-measures #registry-search {
    flex: 1 1 auto; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink);
    font: 400 18px/1.2 var(--font-ui); outline: none; box-shadow: none;
}
#view-measures #registry-search::placeholder { color: var(--muted); opacity: 1; text-overflow: ellipsis; }
/* (2026-11-12) views.js fits the hint to the field (exFitHint); were a hint ever wider, it ends in an ellipsis, not a cut */
#view-measures #registry-search { text-overflow: ellipsis; }
#view-measures #registry-search::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.ex-search-x {
    flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; padding: 0; border: 0; border-radius: 10px;
    background: none; color: var(--muted); cursor: pointer; visibility: hidden;
}
.ex-search-x.is-on { visibility: visible; }
.ex-search-x svg { width: 20px; height: 20px; }
.ex-search-x:hover { background: var(--surface-2); color: var(--ink); }
.ex-search-x:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* the strip: three fixed members in em boxes (the figures in fixed slots), so a period or a late face moves nothing */
.ex-ds {
    display: grid; grid-template-columns: 15em 12em; grid-template-areas: "live live" "m r" "c s"; align-items: baseline; gap: 8px 16px; align-self: flex-start;
    margin: 0; padding: 12px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); font: 400 13.5px/1.4 var(--font-ui); color: var(--muted);
}
#view-measures .ex-ds .quick-stat { display: inline-flex; flex-direction: row; align-items: baseline; gap: 6px; white-space: nowrap; }
#view-measures .ex-ds .value { display: inline-block; flex: none; font: 700 15px/1.4 var(--font-num); letter-spacing: -0.02em; color: var(--ink); text-align: right; }
#view-measures .ex-ds .label { font: 400 13.5px/1.4 var(--font-ui); color: var(--muted); text-transform: none; letter-spacing: 0; }
/* (owner 2026-11-20) a title row, then two rows of two: the figures of a column share one right-aligned slot (the widest
   figure's), so they end and their labels start on one line */
#ex-ds-n, #ex-ds-c { min-width: 3.8em; } #ex-ds-read, #ex-ds-s { min-width: 4.45em; }
.ex-ds .ov-ds-live { grid-area: live; } .ex-ds .ex-ds-m { grid-area: m; } .ex-ds .ex-ds-r { grid-area: r; } .ex-ds .ex-ds-c { grid-area: c; } .ex-ds .ex-ds-s { grid-area: s; }

/* the filter bar: v7's chips in one row (wrapping from 768 px, scrolling sideways on phones) */
#view-measures .results-header.ex-bar {
    position: sticky; top: var(--dock-h); z-index: 40; display: block; margin: 0; padding: 10px 0; background: var(--paper);
    border-bottom: 1px solid transparent;
}
@media (min-width: 768px) and (max-height: 500px) { #view-measures .results-header.ex-bar { position: static; } }
.ex-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 40px; }
.ex-chip, .ex-token {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--rule-ui); border-radius: 4px;
    background: var(--surface); color: var(--ink); font: 400 14px/1.2 var(--font-ui); white-space: nowrap; cursor: pointer; position: relative;
}
/* (Phase 5, owner D-B 2026-11-07) FIXED-WIDTH chips: each chip is as wide as its key and a typical value, whatever is chosen;
   a longer value is cut with an ellipsis (its whole text in the chip's title and accessible name), so a pick never widens a
   chip, wraps the row or moves the count and the table (V-JUMP5 at 820, 1024-1199 with all five set, 1440 with removable
   chips). The removable chips have a box of their own that is always there, as wide as what is left of the row (at least
   9em) and scrolls sideways inside, so the row's lines are the same with or without them; "Clear all" is always shown
   (dimmed and inert while there is nothing to clear). The sort buttons keep their widest default text in either face. */
/* (owner review B, 2026-11-08) Country, Sector and Status are wide enough for every value in full ("United Kingdom",
   "EVs & automotive", "In discussion": key + value + chevron + 2-3 px, measured in Suisse Intl 500 and its metric-matched
   fallback), about 99 px more than before, taken from the removable chips' box; Instrument and Objective stay fixed and
   cut (their whole value in the title and the accessible name). From 1200 px the row is one line: at 1200-1349 px (the
   row is narrower than its 1280 px cap) Instrument and Objective are 12.6em and the gaps 6 px, so the box keeps
   57-206 px; from 1350 px the widths of Phase 5. Below 1200 px the row wraps to two lines, the same with or without a
   pick or a removable chip. */
.ex-chip { flex: none; justify-content: flex-start; overflow: hidden; }
/* (v7c, B.3) six chips on one line from 1200 px: the widths shrank to make room for Level (a long value ends in an ellipsis,
   its whole text in the chip's name and title) */
.ex-chip[data-chip="country"] { width: 12em; } .ex-chip[data-chip="sector"] { width: 13em; } .ex-chip[data-chip="status"] { width: 11.5em; }
.ex-chip[data-chip="instrument"] { width: 12em; } .ex-chip[data-chip="goal"] { width: 12.5em; } .ex-chip[data-chip="authority"] { width: 11em; } .ex-clear { flex: none; width: 4.6em; }
.ex-sort-b { display: inline-flex; align-items: center; justify-content: center; } .ex-sort-b[data-sort="attention"] { min-width: 8.35em; } .ex-sort-b[data-sort="reported"] { min-width: 4.8em; }
.ex-sort-b[data-sort="amount"] { min-width: 9.35em; } .ex-sort-k { display: inline-block; min-width: 2.1em; }
.ex-chip-k { flex: none; color: var(--muted); }
.ex-chip-v { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ex-chev { flex: none; width: 12px; height: 12px; margin-left: auto; color: var(--muted); }
.ex-chip[aria-expanded="true"] .ex-chev { transform: rotate(180deg); }
.ex-chip.is-on { background: var(--heat-1, #D3ECEF); border-color: var(--brand-ink); }
.ex-chip:hover, .ex-token:hover { border-color: var(--brand-ink); }
.ex-token { background: var(--paper); border-color: var(--brand-ink); border-style: dashed; }
.ex-token svg { width: 14px; height: 14px; color: var(--muted); }
.ex-tokens {
    display: flex; align-items: center; gap: 8px; flex: 1 1 3em; min-width: 3em; height: 36px; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; scrollbar-width: thin; padding: 0 2px;
}
.ex-token { flex: none; }
@media (pointer: coarse) { .ex-tokens { height: 44px; } }
@media (min-width: 1200px) and (max-width: 1349.98px) {
    .ex-chips { gap: 6px; }
    .ex-chip[data-chip="instrument"], .ex-chip[data-chip="goal"] { width: 10.6em; }
    .ex-chip[data-chip="country"], .ex-chip[data-chip="authority"] { width: 10.4em; }
    .ex-tokens { flex: 1 1 0; min-width: 3em; }
}
.ex-clear {
    min-height: 36px; padding: 6px 4px; border: 0; background: none; color: var(--brand-ink-2); font: 500 14px/1.2 var(--font-ui);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ex-clear:not(.is-on) { color: var(--muted); text-decoration: none; cursor: default; }
.ex-chip:focus-visible, .ex-token:focus-visible, .ex-clear:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (pointer: coarse) { .ex-chip, .ex-token, .ex-clear { min-height: 44px; } }

/* the count line (an Ask host) and the sort */
#view-measures .ex-count-row.card-header-block {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 52px; margin: 8px 0 0; padding: 0 0 10px;
    border-bottom: 1.5px solid var(--ink); background: none;
}
#view-measures .results-count.ex-count {
    flex: 1 1 18em; min-width: 0; min-height: 0; margin: 0; font: 400 15px/1.4 var(--font-ui); color: var(--ink-2);
}
#view-measures .results-count.ex-count:focus { outline: none; }
#view-measures .results-count.ex-count:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the Ask button's room is held from the first paint (it is added by views.js, the last script): it sits at the row's right
   end, out of the flow, so its arrival (or a slow views.js) moves neither the count nor the sort */
#view-measures .ex-count-row { position: relative; }
#view-measures .ex-count-row .ask-card-btn { position: absolute; right: 0; top: 7px; margin: 0; }
#view-measures .ex-sort { margin-right: 76px; }
.ex-sort { display: flex; align-items: center; gap: 6px; flex: none; }
.ex-sort-k { margin-right: 4px; font: 400 12px/1 var(--font-ui); color: var(--muted); }
.ex-sort-b {
    min-height: 36px; padding: 5px 10px; border: 1px solid var(--rule-ui); border-radius: 4px; background: var(--surface); color: var(--ink);
    font: 400 13.5px/1.2 var(--font-ui); white-space: nowrap; cursor: pointer; position: relative;
}
.ex-sort-b[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ex-sort-b:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (pointer: coarse) { .ex-sort-b { min-height: 44px; } }

/* the table: v7's wide grid from 1200 px */
.ex-table { display: block; }
.ex-hrow, #measures-rows > .measure-explorer-row {
    display: grid; grid-template-columns: minmax(0, 3fr) 132px minmax(0, 1.4fr) 110px 76px 96px; gap: 16px; align-items: center;
}
.ex-hrow { padding: 10px 6px 8px; font: 400 11.5px/1.3 var(--font-ui); letter-spacing: -0.01em; color: var(--muted); }
.ex-hrow .c-v, .ex-hrow .c-a, .ex-hrow .c-d { text-align: right; }
.ex-hrow [aria-sort] { color: var(--ink); font-weight: 600; }
.ex-hrow [aria-sort]::after { content: ' \2193'; }
#measures-rows:empty { min-height: 100vh; }   /* (1b) a #/measures link holds the list's room until the rows come: nothing below moves */
#measures-rows > .measure-explorer-row {
    position: relative; min-height: 44px; padding: 14px 6px; margin: 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0;
    background: none; box-shadow: none; cursor: pointer; transition: background-color var(--dur-1, 0.15s) ease; grid-template-areas: none;
}
#measures-rows > .measure-explorer-row:hover { background: var(--surface); }
#measures-rows > .measure-explorer-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
#measures-rows > .measure-explorer-row.is-flash { animation: none; background: var(--surface); }
.measure-explorer-row .c-m { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ex-title {
    display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer;
    font: 500 15.5px/1.25 var(--font-ui); overflow-wrap: anywhere;
}
/* the whole row is the title's target (a click anywhere on it opens the drawer; the title is the one tab stop) */
.ex-title::after { content: ''; position: absolute; inset: 0; }
.ex-title:focus { outline: none; }
.ex-title:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.measure-explorer-row:hover .ex-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ex-meta, .ex-nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 400 12.5px/1.3 var(--font-ui); color: var(--muted); }
.ex-nmeta { display: none; }
.ex-code { padding: 0 4px; border: 1px solid var(--rule-ui); color: var(--ink); font-size: 12px; }
.ex-new { padding: 0 5px; background: #F6E0CA; color: #121417; font-weight: 700; }
/* (owner 2026-11-12, display finding 6) the EU-level marker beside the country tag (views.js v7EuTag): a small outlined
   label, no taller than the text line it sits in (so no row grows), flex: none (it never shrinks into an ellipsis) */
.eu-tag:not(.v7d-chip) { display: inline-block; flex: none; box-sizing: border-box; margin-right: 6px; padding: 0 4px; border: 1px solid currentColor; border-radius: 3px;
    color: var(--brand-ink-2); font: 600 12px/14px var(--font-ui); letter-spacing: 0.01em; white-space: nowrap; vertical-align: 1px; text-decoration: none; }
.r-meta .eu-tag { margin-right: 0; }
.ex-meta .eu-tag, .ex-nmeta .eu-tag { margin-right: 0; }
.cmp-mc-b .m .eu-tag { line-height: 12px; vertical-align: 0; }   /* Compare's 16 px meta line holds it */
.v7d-chip.is-eu { background: #DFE6F7; color: #194ABB; }
.measure-explorer-row .c-st { display: flex; align-items: center; gap: 7px; font: 400 14px/1.3 var(--font-ui); color: var(--ink); }
.measure-explorer-row .c-st i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rule-ui); }
.measure-explorer-row .c-st[data-st="in_discussion"] i { background: var(--st-discussion); }
.measure-explorer-row .c-st[data-st="announced"] i { background: var(--st-announced); }
.measure-explorer-row .c-st[data-st="active"] i { background: var(--st-active); }
.measure-explorer-row .c-st[data-st="expired"] i { background: var(--st-expired); }
.measure-explorer-row .c-st[data-st="cancelled"] i { background: var(--st-cancelled); }
.measure-explorer-row .c-in { font: 400 14px/1.3 var(--font-ui); color: var(--ink-2); overflow-wrap: anywhere; }
.measure-explorer-row .c-v { font: 400 13px/1.3 var(--font-ui); text-align: right; color: var(--ink); }
.measure-explorer-row .c-v.is-none { color: var(--muted); }
.measure-explorer-row .c-a { font: 400 13px/1.3 var(--font-num); letter-spacing: -0.02em; text-align: right; color: var(--ink); }
.measure-explorer-row .c-d { font: 400 13px/1.3 var(--font-ui); text-align: right; color: var(--muted); }
.ex-more { display: flex; justify-content: center; min-height: 0; padding: 12px 0 0; }
.ex-more:empty { padding: 0; }
.ex-more .rows-more-btn { min-height: 44px; padding: 0 20px; border: 1px solid var(--rule-ui); border-radius: var(--r-pill, 999px); background: none; color: var(--ink); font: 400 14.5px/1 var(--font-ui); cursor: pointer; }
.ex-wait-row, .ex-empty-row { display: block; border-top: 1px solid var(--rule); }
/* (checker 3) a search waiting for the details keeps the room the empty list held (#measures-rows:empty): on a #/measures?q=
   link the footer rose into view and dropped away again when the rows came (CLS 0.50 at 390, 0.03 at 1440) */
.ex-wait-row { min-height: 100vh; }
.ex-empty { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 40px 0; }
.ex-empty p { margin: 0; }
.ex-empty-t { font: 500 18px/1.3 var(--font-ui); color: var(--ink); }
.ex-empty-s, .ex-empty-h { font: 400 15px/1.45 var(--font-ui); color: var(--muted); }
.ex-empty-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.ex-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-ui); border-radius: 4px; background: var(--surface); color: var(--ink); font: 400 14px/1 var(--font-ui); cursor: pointer; }
.ex-btn.is-main { background: #006A7C; border-color: #006A7C; color: #fff; }
.ex-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* narrow rows below 1200 px: code · sector · date / the title / status · instrument · value (the value only when there
   is one); no table head, no articles column */
@media (max-width: 1199px) {
    .ex-thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    /* (owner 2026-11-12, display check finding 3c) the head is read, not drawn, below 1200 px: its cells stack inside the
       hidden box instead of keeping the wide grid's 132 + 110 + 76 + 96 px columns ("Articles" ran 14 px past a 390 screen) */
    .ex-thead .ex-hrow { display: block; padding: 0; }
    .ex-thead .ex-hrow > span { display: block; }
    #measures-rows > .measure-explorer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 14px 2px; }
    .measure-explorer-row .c-m { flex: 0 0 100%; gap: 7px; }
    .ex-nmeta { display: flex; order: -1; font-size: 13px; }
    .ex-meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }   /* read, not drawn */
    .ex-title { font-size: 16px; }
    .measure-explorer-row .c-st, .measure-explorer-row .c-in, .measure-explorer-row .c-v { flex: none; font-size: 13.5px; }
    .measure-explorer-row .c-v { font-size: 13px; text-align: left; }
    .measure-explorer-row .c-v.is-none, .measure-explorer-row .c-a, .measure-explorer-row .c-d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
/* phones (F4): the h1 on one line at 24 px, no dataset box, the search 48 px, the chips scroll sideways in a 44 px row that
   docks under the period strip (44 + 52: 96 px stick); the count in its own line, the sort under it */
@media (max-width: 767px) {
    .ex-hero { gap: 12px; padding: 12px 0 14px; margin-bottom: 0; border-bottom: 0; }
    /* 24 px (F4); "on one line" holds from 430 px only, so it may take two (its text is fixed: nothing moves) */
    #view-measures .ex-h1 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
    .ex-search { height: 52px; padding: 2px; border-radius: 10px; box-shadow: none; }
    #view-measures #registry-search { font-size: 16px; }
    .ex-ds { display: none; }
    /* (presets round, V-PHONE3 docX) the bar bleeds by the phone page's own padding (.main-dashboard-content: 16 px or the
       safe area), not by --gutter: 4vw passes 16 px above 400 px, and the bar ran 0.6-1.2 px past each edge at 414-430 */
    #view-measures .results-header.ex-bar {
        --ex-bleed-l: max(16px, env(safe-area-inset-left, 0px)); --ex-bleed-r: max(16px, env(safe-area-inset-right, 0px));
        padding: 4px 0; margin: 0 calc(-1 * var(--ex-bleed-r)) 0 calc(-1 * var(--ex-bleed-l)); padding-left: var(--ex-bleed-l);
    }
    .ex-chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; min-height: 44px; padding-right: var(--ex-bleed-r, 16px); }
    .ex-chips::-webkit-scrollbar { display: none; }
    .ex-chip, .ex-token, .ex-clear { flex: none; min-height: 44px; }
    /* (D-B) phones: the row scrolls sideways; the removable chips take their own width, and "Clear all" stays at the row's
       right edge (sticky), so it is always in view */
    .ex-tokens { flex: none; min-width: 0; height: 44px; overflow: visible; padding: 0; }
    /* (owner 2026-11-12, display check finding 3b) "Clear all" sat on the scrolling row (sticky), over the Sector chip at
       rest. It now has a slot of its own at the bar's right end, outside the row's clip: the bar (sticky, so positioned)
       holds it, the row ends 8 px before it, and no chip is ever under it. Its width is fixed (77 px, 5.5em of its 14 px),
       so a late face moves nothing */
    #view-measures .results-header.ex-bar { --ex-clear-w: 77px; }
    .ex-chips { margin-right: calc(var(--ex-clear-w) + 8px + var(--ex-bleed-r, 16px)); padding-right: 14px; }
    /* the row's cut edge fades into the paper: a layer of the bar, not a mask on the row (a mask would take Clear all, the
       row's child, with it) */
    #view-measures .results-header.ex-bar::after {
        content: ''; position: absolute; top: 4px; bottom: 4px; right: calc(var(--ex-clear-w) + 8px + var(--ex-bleed-r, 16px)); width: 14px;
        background: linear-gradient(to right, transparent, var(--paper)); pointer-events: none;
    }
    .ex-clear { position: absolute; z-index: 1; top: 4px; right: var(--ex-bleed-r, 16px); width: var(--ex-clear-w); padding: 6px 0; text-align: right; background: var(--paper); }
    #view-measures .ex-count-row.card-header-block { min-height: 0; margin-top: 4px; padding-bottom: 8px; }
    /* the count (two lines held: a count never moves the sort) with its Ask circle beside it, the sort on the line below */
    #view-measures .results-count.ex-count { flex: 1 1 100%; min-width: 0; min-height: calc(2 * 1.4em); padding-right: 52px; font-size: 14px; }
    #view-measures .ex-count-row .ask-card-btn { top: -4px; }
    #view-measures .ex-sort { margin-right: 0; }
    .ex-sort-k { display: none; }
    .ex-sort-b { min-height: 44px; font-size: 13px; padding: 4px 10px; }
}
/* below 375 px the three sorts share the row in equal parts (their 303 px of text ran 15 px past a 320 px screen and widened
   the page until views.js drew; C31) */
@media (max-width: 374px) {
    #view-measures .ex-sort { width: 100%; gap: 4px; }
    #view-measures .ex-sort-b { flex: 1 1 0; min-width: 0; padding: 4px 6px; white-space: normal; line-height: 1.15; text-align: center; }
    /* (2026-11-12) Clear all's slot is tighter here (64 px, 4 px from the row, no fade), so the first chip (Country, 15.5em =
       217 px) still shows whole at 320 in the 220 px left to the row, and focusing it (Clear all hands focus to it) scrolls
       nothing */
    #view-measures .results-header.ex-bar { --ex-clear-w: 64px; }
    .ex-chips { margin-right: calc(var(--ex-clear-w) + 4px + var(--ex-bleed-r, 16px)); padding-right: 0; }
    #view-measures .results-header.ex-bar::after { display: none; }
}
html.kb-open #view-measures .results-header.ex-bar { position: static; }
/* (2026-11-12) phones: the bar still holds Clear all's slot (absolute) while it does not stick */
@media (max-width: 767px) { html.kb-open #view-measures .results-header.ex-bar { position: relative; } }
/* typing on a phone: the sort steps aside too, so the field, the chips and two rows show above the keyboard */
@media (max-width: 767px) { html.kb-open #view-measures .ex-sort { display: none; } }
/* nothing docks while the keyboard is up, so a typed caret needs no room for the strip (scroll-padding-top otherwise pulled the
   field 35 px down at the first key) */
html.kb-open { scroll-padding-top: 12px; }
@media (forced-colors: active) {
    .ex-chip.is-on, .ex-sort-b[aria-checked="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
    .ex-chip.is-on .ex-chip-k, .ex-chip.is-on .ex-chev { color: HighlightText; }   /* (checker 3) the muted key read grey on Highlight */
    .ex-token { border: 1px dashed CanvasText; }
    .measure-explorer-row .c-st i { forced-color-adjust: none; border: 1px solid CanvasText; }
}

/* =============================================================================
   THE MEASURE DRAWER (Phase 3; PLAN 3.4, F5, O8 A): v7's right-hand panel on the beige paper, flush with the window's
   edge, 440-600 px wide (beside the chat from 900 px), full screen on phones with the 52 px bar. Facts in v7's grid (two
   columns of at least 140 px on phones), the sections in v7's order.
   ============================================================================= */
/* (Phase 3) the skip link's shadow (elev-3, 64 px of blur) peeked out of its hiding place above the window: a grey smudge at
   the top left of the beige drawer on phones. It has its shadow only when it shows. */
.skip-link:not(:focus) { box-shadow: none; }
.detail-drawer.glass-card { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-left: 1px solid var(--rule); border-radius: 0; box-shadow: -12px 0 40px rgba(18, 20, 23, 0.18); }
.detail-drawer.glass-card.chat-left { border-left: 0; border-right: 1px solid var(--rule); border-radius: 0; box-shadow: 12px 0 40px rgba(18, 20, 23, 0.18); }
/* The reserved scrollbar gutter (1b: scrollbar-gutter stable, so a scroll lock never moves the page) is 6 px at the right
   that fixed boxes stop at. The layers that take the window's edge reach over it: the drawer (from 600 px; below it is
   the whole width), the full-screen chat and the enlarged chart; the chat panel keeps its 20 px from the window's edge
   (14 px from the scrollbar), so at 900 px the drawer (440) + 20 + the panel (420) + 20 fit side by side (ui T-21, T-23). */
/* (owner 2026-11-12, fix 5) THE MEASURE PANEL'S ONE ENTRANCE and its mirrored exit, in every state (the chat closed or
   beside it, from a row, a cell sheet, a chat source, a link, Back): the sheet always sits where it shows (right: the
   window's edge; beside the chat, chat.css: left 0) and slides by a transform alone, from the side it sits on and back
   there, the same distance (its own width), --dur-4 and the house curve (--ease-out) each way. It slid by `right` (a
   layout property: a link's slide counted as a layout shift, so links opened it in place), its exit left the screen in
   ~60 ms (100vw on an ease-out), and beside the chat it went out with no slide at all. The scrim fades with it, the same
   way. Reduced motion: the global switch makes both instant. */
.detail-drawer { right: 0; transform: translateX(calc(100% + 64px)); transition: transform var(--dur-4) var(--ease-out); }
.detail-drawer.active { transform: none; }
@media (min-width: 600px) { .detail-drawer:not(.chat-left) { right: calc(100% - 100vw); } }
.detail-drawer-overlay { transition: opacity var(--dur-4) var(--ease-out); }
html.drawer-instant .detail-drawer, html.drawer-instant .detail-drawer-overlay { transition: none !important; }
@media (min-width: 900px) { body .ipm-chat:not(.is-full) .chat-panel { right: calc(max(var(--chat-gap), env(safe-area-inset-right, 0px)) - (100vw - 100%)); } }
@media not all and (max-width: 767px) { html .ipm-chat.is-full .chat-panel { right: calc(100% - 100vw); } }
html .ipm-chart-overlay { right: calc(100% - 100vw); }
@media not all and (max-width: 767px) { @media (max-width: 919px) { html .ipm-chat.is-full .ipm-chart-dialog { right: calc(100% - 100vw); width: auto; } } }
.ms-bar { min-height: 52px; padding: 6px 10px 6px 26px; background: var(--paper); border-bottom: 1px solid transparent; }
.ms-bar.show-title { background: var(--paper); border-bottom-color: var(--rule); }
.ms-bar-title { flex: 1 1 auto; }
.ms-bar.show-title .ms-bar-title { font: 500 15px/1.25 var(--font-ui); color: var(--ink); }
.ms-bar .close-drawer-btn.ms-ic { margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); }
.ms-bar .close-drawer-btn.ms-ic svg { width: 22px; height: 22px; }
.ms-bar .close-drawer-btn.ms-ic:hover { background: var(--surface-2); }
.ms-bar .close-drawer-btn.ms-ic:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
#drawer-content-target.drawer-scroll-container { padding: 0 26px calc(36px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.drawer-content.v7d { display: flex; flex-direction: column; gap: 26px; color: var(--ink); font-family: var(--font-ui); }
.v7d .drawer-header.v7d-head { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; border: 0; }
.v7d .drawer-header h2 { margin: 0; font: 500 clamp(24px, 2.6vw, 30px)/1.12 var(--font-ui); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.v7d .drawer-header h2:focus { outline: none; }
.v7d .drawer-header h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.v7d .tags-row.v7d-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v7d-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font: 500 14px/1.25 var(--font-ui); color: #121417; }
.v7d-chip.is-country { background: var(--brand); font-weight: 600; }
.v7d-chip.is-country .cc { font-size: 12px; font-weight: 400; }
.v7d-chip.is-sector { background: #D3ECEF; }
.v7d-chip.is-status { background: var(--status-expired-bg); color: var(--ink); }
.v7d-chip.is-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-ui); }
.v7d-chip.is-status[data-st="in_discussion"] { background: var(--status-discussion-bg); } .v7d-chip.is-status[data-st="in_discussion"] i { background: var(--st-discussion); }
.v7d-chip.is-status[data-st="announced"] { background: var(--status-announced-bg); } .v7d-chip.is-status[data-st="announced"] i { background: var(--st-announced); }
.v7d-chip.is-status[data-st="active"] { background: var(--status-active-bg); } .v7d-chip.is-status[data-st="active"] i { background: var(--st-active); }
.v7d-chip.is-status[data-st="expired"] i { background: var(--st-expired); }
.v7d-chip.is-status[data-st="cancelled"] { background: var(--status-cancelled-bg); } .v7d-chip.is-status[data-st="cancelled"] i { background: var(--st-cancelled); }
.v7d-chip.is-new { background: #F6E0CA; }
/* (owner 2026-11-12, display check finding 4) the facts wrap as a row of equal cells (columns of at least 170 px, as the
   grid's auto-fit had them) whose last cell in a line grows across what the line leaves: a fact alone in its row (an odd
   count, phones dropping the absent facts, a wide fact after an odd one) spans the row, so the box never ends in an
   empty cell */
.v7d .drawer-meta-section.v7d-facts {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; overflow: hidden;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
}
.v7d-fact { display: flex; flex-direction: column; flex: 1 1 170px; gap: 4px; padding: 12px 16px; box-shadow: 0 0 0 0.5px var(--rule); min-width: 0; box-sizing: border-box; }
.v7d-fact .k { font: 400 12px/1.3 var(--font-ui); color: var(--muted); }
.v7d-fact .v { font: 400 15px/1.35 var(--font-ui); color: var(--ink); overflow-wrap: break-word; }
.v7d-fact.is-wide { flex-basis: 100%; }
.v7d-fact.is-none .v { color: var(--muted); }
.v7d .drawer-content-section { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; background: none; }
.v7d .drawer-content-section h3 { margin: 0; font: 500 17px/1.3 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--ink); }
.v7d-text { margin: 0; font: 400 16.5px/1.55 var(--font-text, var(--font-ui)); color: var(--ink-2); }
/* (checker 3) the conditions are often a list, one per line ("- ...
- ..."; 546 measures): the lines are kept */
.v7d-cond .v7d-text { white-space: pre-line; }
.v7d-fl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; }
.v7d-fl > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; background: var(--surface); }
.v7d-fl .k { font: 400 12px/1.3 var(--font-ui); color: var(--muted); }
.v7d-fl .v { font: 400 15px/1.3 var(--font-ui); color: var(--ink); }
.v7d-note { margin: 0; font: 400 14px/1.45 var(--font-ui); color: var(--ink-2); }
/* (v7c, B.13) no vertical accent bar: the note is a quiet box */
.v7d-note.ms-before { padding: 10px 14px; border: 0; border-radius: 10px; background: var(--surface); }
/* (v7c, B.8) the count and the one toggle share the head row: the toggle never moves when the list opens */
.v7d-arts-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; min-height: 44px; }
.v7d-cov { font: 400 12.5px/1.3 var(--font-ui); color: var(--muted); }
.v7d-cons { margin: 0; font: inherit; color: inherit; }
.v7d-art-list { list-style: none; margin: 0; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.v7d-art { display: flex; gap: 10px; align-items: center; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--rule); }
.v7d-art:last-child { border-bottom: 0; }
.v7d-art .t { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.v7d-art .h { font: 500 14px/1.3 var(--font-ui); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v7d-art .m { font: 400 12.5px/1.3 var(--font-ui); color: var(--muted); }
.v7d-search { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--brand-ink-2); font: 400 13px/1 var(--font-ui); white-space: nowrap; text-decoration: none; }
.v7d-search:hover { text-decoration: underline; }
.v7d-all { flex: none; min-height: 44px; padding: 0 2px; }
/* (owner 2026-11-09) a stakeholder quote's source: "— outlet, date", Search ↗ and "+N more" on one quiet line under the quote */
.v7d-qs { display: flex; flex-direction: column; gap: 0; font-style: normal; }
.drawer-content-section .v7d-qs-line, .v7d-qs-list li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; margin: 0; font: 400 12px/1.35 var(--font-ui); color: var(--muted); }
.v7d-qs-list { list-style: none; margin: 0; padding: 0 0 0 12px; }
.v7d-qs-cite { overflow-wrap: anywhere; }
.v7d-search.v7d-qs-link { min-height: 24px; font-size: 12px; }
.v7d-qs-more { display: inline-flex; align-items: center; min-height: 24px; margin: 0; padding: 0 4px; border: 0; border-radius: 4px; background: none; color: var(--brand-ink-2); font: 400 12px/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.v7d-qs-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.v7d-qs-more { display: inline-grid; place-items: center start; }
.v7d-qs-lbl { grid-area: 1 / 1; }
.v7d-qs-more[aria-expanded="true"] .is-closed, .v7d-qs-more:not([aria-expanded="true"]) .is-open { visibility: hidden; }
.v7d-qs-more:focus-visible, .v7d-qs-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (pointer: coarse), (max-width: 767px) {
    .v7d-search.v7d-qs-link, .v7d-qs-more { min-height: 44px; min-width: 44px; justify-content: center; }
}
/* (v7c, B.9, B.13) the Evidence quote opens the articles section: no title, no vertical bar, the base face */
.v7d-quote { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.v7d .ms-evidence .drawer-quote, .v7d-quote .drawer-quote {
    margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
    font: italic 400 16px/1.55 var(--font-ui); color: var(--ink);
}
.v7d-quote .drawer-quote::before { content: none; }
.v7d-quote .quote-citation { margin: 0; font: 400 13px/1.4 var(--font-ui); color: var(--muted); }
/* (owner 2026-11-11) the article's title on its own line, marked 'Headline:' and without quotation marks, so it is never read as a second quote */
.v7d-quote .quote-headline { display: block; margin-top: 2px; font: inherit; color: inherit; overflow-wrap: anywhere; }
.v7d-quote .quote-headline-k { font-weight: 600; color: var(--ink-2); }
.v7d-acts { gap: 0 !important; overflow: hidden; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.v7d-act {
    display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; width: 100%; min-height: 48px; margin: 0;
    padding: 12px 16px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); text-align: left; font: 400 14.5px/1.35 var(--font-ui); cursor: pointer;
}
.v7d-act:last-child { border-bottom: 0; }
.v7d-act.is-text { cursor: default; }
.v7d-act .a-k { font-size: 12.5px; color: var(--muted); }
.v7d-act .a-v { overflow-wrap: anywhere; }
.v7d-act .a-go { color: var(--brand-ink-2); }
button.v7d-act:hover { background: var(--surface-2); }
button.v7d-act:hover .a-v { text-decoration: underline; text-underline-offset: 3px; }
button.v7d-act:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.v7d .drawer-ask { margin-top: 0; }
/* (v7c, B.11) "Part of" in the facts: the initiative as a link to Explore's list */
.v7d-part { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--brand-ink-2); font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(0, 106, 124, 0.4); text-underline-offset: 3px; overflow-wrap: anywhere; }
.v7d-part:hover { text-decoration-color: currentColor; }
.v7d-part:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.v7d-part-n { color: var(--muted); }
@media (pointer: coarse) { .v7d-part { display: inline-block; min-height: 44px; } }
.v7d .ms-stages { margin-top: 6px; }
/* the waiting drawer: the index's facts and one wait, never a partial record */
.v7d.is-waiting .ipm-wait, .v7d.is-waiting .full-wait { margin-top: 0; }
/* phones (F5): full screen, the facts in two columns, absent facts dropped */
@media (max-width: 767px) {
    .ms-bar { padding-left: 16px; }
    #drawer-content-target.drawer-scroll-container { padding: 0 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
    .drawer-content.v7d { gap: 22px; }
    .v7d .drawer-header h2 { font-size: 24px; }
    /* two to a row (34 % + 34 % fit, a third does not); a fact alone in its row takes the whole row (finding 4) */
    .v7d-fact { flex-basis: 34%; padding: 10px 12px; }
    .v7d-fact.is-wide { flex-basis: 100%; }
    .v7d-fact.is-none { display: none; }
    .v7d-fact .v { font-size: 14.5px; }
    .v7d-text { font-size: 16px; }
    .v7d-act { grid-template-columns: minmax(0, 1fr) auto; }
    .v7d-act .a-k { grid-column: 1 / -1; }
    .v7d-art { padding: 4px 4px 4px 12px; }
}
@media (forced-colors: active) {
    .v7d-chip, .v7d .drawer-meta-section.v7d-facts, .v7d-fl, .v7d-art-list, .v7d-acts { border: 1px solid CanvasText; }
    .v7d-chip.is-status i { forced-color-adjust: none; border: 1px solid CanvasText; }
}
@media print {
    .detail-drawer.active { position: static; width: auto; max-width: none; box-shadow: none; }
    .v7d-acts, .v7d .drawer-ask, .ms-bar { display: none !important; }
}

/* =============================================================================
   COMPARE (Phase 4; PLAN 3.5, F6, owner O7 A / O9 A): v7's Compare. The control row (the countries' chips with x, + Add
   country, the divider, Sector, Reset countries and sector; an Ask host whose button's room is held from the first paint),
   then v7's table: a 170 px label column and one column per country (a dashed ghost column to add one, desktop only),
   rows Measures, Status, Level of government, Instrument type, Reported policy goal, Most covered. #view-compare[data-n]
   shows the chosen columns of the four static slots. Every row holds a fixed room (its cells' lines are fixed in number and
   height, titles clamped), so the data, a period, an add or a removal moves nothing outside its own cells; the control row
   is one line from 1200 px and two below, whatever is chosen. Tablets (768-1199): the table scrolls sideways inside its
   card with the label column sticky. Phones (CMP-A): each row a card, one block per country; no sideways scroll.
   ============================================================================= */
:root { --lv-eu: #194ABB; --lv-nat: #4169C3; --lv-rgn: #9BADD5; --lv-ns: #CFC7B5; }

#view-compare { --cmp-lab: 170px; --cmp-colmin: 150px; --cmp-n: 3; gap: 0; }
#view-compare[data-n="1"] { --cmp-n: 1; } #view-compare[data-n="2"] { --cmp-n: 2; } #view-compare[data-n="4"] { --cmp-n: 4; }
/* the chosen columns of the four slots (chips, heads, cells) */
#view-compare[data-n="0"] [data-i], #view-compare[data-n="1"] [data-i]:not([data-i="0"]),
#view-compare[data-n="2"] [data-i="2"], #view-compare[data-n="2"] [data-i="3"], #view-compare[data-n="3"] [data-i="3"] { display: none !important; }
#view-compare[data-n="4"] .cmp-add, .cmp-add[hidden] { display: none; }
#view-compare[data-n="0"] .cmp-wrap, #view-compare[data-n="0"] .cmp-sub { display: none; }
#view-compare:not([data-n="0"]) .cmp-empty { display: none; }

.cmp-head { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 3vw, 40px) 0 20px; }
#view-compare .cmp-h1 { margin: 0; font: 500 clamp(28px, 3.2vw, 38px)/1.1 var(--font-ui); letter-spacing: -0.025em; color: var(--ink); }
.cmp-intro { margin: 0; max-width: 700px; font: 400 17px/1.5 var(--font-ui); color: var(--ink-2); }

/* the control row: an Ask host (its button out of the flow at the row's right end, its room held from the first paint) */
#view-compare .compare-picker-panel { padding: 0; margin: 0 0 20px; background: none; border: 0; box-shadow: none; }
#compare-picker-panel .cmp-ctl.card-header-block {
    position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0;
    background: none; border: 0;
}
#compare-picker-panel .cmp-ctl .ask-card-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.cmp-chips { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; box-sizing: border-box; }
.cmp-chip {
    display: inline-flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; height: 44px; padding: 0 0 0 12px;
    border: 1px solid var(--rule-ui); border-radius: 2px; background: var(--surface); color: var(--ink); font: 400 14.5px/1 var(--font-ui); white-space: nowrap;
}
/* from 1200 px the countries hold a fixed room (four chips at most), so an add or a removal never slides Sector and Reset
   along the row (V-JUMP4); the chips' names give way first when four long names meet a narrow window */
@media (min-width: 1200px) { .cmp-chips { flex: 0 1 720px; } }
/* 1200-1439: Reset says "Reset" (its name stays whole for assistive tech), so four countries keep their names */
@media (min-width: 1200px) and (max-width: 1439px) { #view-compare .cmp-reset .rs-l { display: none; } #view-compare .cmp-reset .rs-s { display: inline; } }
.cc-code { flex: none; font: 400 12px/1 var(--font-ui); color: var(--muted); }
.cc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* (v7c, UX review 14) the remove buttons are 44 x 44 px on every pointer */
.cc-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--muted); cursor: pointer; }
.cc-x svg { width: 14px; height: 14px; }
.cc-x:hover { color: var(--ink); background: var(--surface-2); }
.cmp-add, .cmp-ghost-btn { color: var(--brand-ink-2); border: 1px dashed var(--brand-ink); background: none; cursor: pointer; font: 400 14px/1.2 var(--font-ui); }
.cmp-add { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 2px; white-space: nowrap; }
.cmp-add:hover, .cmp-ghost-btn:hover { background: var(--surface-2); }
.cmp-div { flex: none; width: 1px; height: 24px; margin: 0 6px; background: var(--rule-ui); }
.cmp-secrow { display: flex; align-items: center; gap: 8px; flex: none; box-sizing: border-box; }
.cmp-sector {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--rule-ui); border-radius: 2px;
    background: var(--surface); color: var(--ink); font: 400 14px/1 var(--font-ui); white-space: nowrap; cursor: pointer;
}
/* from 768 px the sector button holds the room of its longest label in em ("Sector: Critical minerals"), so a late face or a
   sector choice never moves Reset beside it */
@media (min-width: 768px) { .cmp-sector { min-width: 14.6em; justify-content: space-between; } .cmp-sector.cmp-level { min-width: 12.4em; } }
/* (v7c, B.3) with Level beside Sector the control row takes two lines below 1440 px: the countries, then Sector, Level, Reset */
@media (min-width: 768px) and (max-width: 1439.98px) { #compare-picker-panel .cmp-ctl.card-header-block { flex-wrap: wrap; row-gap: 10px; } #compare-picker-panel .cmp-ctl .cmp-div { display: none; } }
@media (min-width: 1440px) { .cmp-chips { flex-basis: 760px; } #view-compare .cmp-reset .rs-l { display: none; } #view-compare .cmp-reset .rs-s { display: inline; } }   /* (checker) four long names whole; Reset says "Reset" here too */
.cmp-sector .cs-k { color: var(--muted); }
.cmp-sector .cs-v { font-weight: 500; }
.cmp-sector[aria-expanded="true"] .ex-chev, .cmp-add[aria-expanded="true"] .ex-chev { transform: rotate(180deg); }
.cmp-sector.cmp-level .cs-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cmp-sector:hover { border-color: var(--brand-ink); }
.cmp-reset {
    height: 40px; padding: 0 4px; border: 0; background: none; color: var(--brand-ink-2); font: 400 14px/1 var(--font-ui);
    text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; visibility: hidden;
}
.cmp-reset.is-on { visibility: visible; }
.cmp-reset .rs-s { display: none; }
.cc-x:focus-visible, .cmp-add:focus-visible, .cmp-sector:focus-visible, .cmp-reset:focus-visible, .cmp-ghost-btn:focus-visible, .cmp-mc-b:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (pointer: coarse) {
    .cmp-chip { height: 44px; padding-right: 0; }
    .cc-x { width: 44px; height: 44px; }
    .cmp-add, .cmp-sector, .cmp-reset { height: 44px; }
}

/* the scope line above the cards (phones; from 768 px the table's corner says it) */
.cmp-sub { display: none; margin: 0 0 12px; font: 400 13px/1.4 var(--font-ui); color: var(--muted); }
.cmp-empty { margin: 8px 0 0; font: 400 16px/1.5 var(--font-ui); color: var(--muted); }

/* the table (tablet and desktop) */
.cmp-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow-x: auto; overflow-y: hidden; }
.cmp-grid { min-width: calc(var(--cmp-lab) + var(--cmp-n) * var(--cmp-colmin)); }
.cmp-row { display: grid; grid-template-columns: var(--cmp-lab) repeat(var(--cmp-n), minmax(var(--cmp-colmin), 1fr)); border-bottom: 1px solid var(--rule); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-ghost-cell { display: none; }
@media (min-width: 1200px) {
    #view-compare:not([data-n="4"]) .cmp-grid { min-width: calc(var(--cmp-lab) + (var(--cmp-n) + 1) * var(--cmp-colmin)); }
    #view-compare:not([data-n="4"]) .cmp-row { grid-template-columns: var(--cmp-lab) repeat(var(--cmp-n), minmax(var(--cmp-colmin), 1fr)) minmax(var(--cmp-colmin), 1fr); }
    #view-compare:not([data-n="4"]) .cmp-ghost-cell { display: block; border-left: 1px dashed var(--rule); }
    #view-compare:not([data-n="4"]) .cmp-ghost { display: flex; padding: 12px 14px; }
}
.cmp-ghost-btn { flex: 1; min-height: 44px; border-width: 1.5px; border-radius: 10px; font-weight: 500; font-size: 14.5px; }
.cmp-lab, .cmp-cell { min-width: 0; padding: 16px 20px; }
.cmp-cell { border-left: 1px solid var(--rule); }
.cmp-lab { position: sticky; left: 0; z-index: 1; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.cl-t { font: 500 15px/22px var(--font-ui); color: var(--ink); }
.cl-n { font: 400 12.5px/17px var(--font-ui); color: var(--muted); }
.cl-ph { display: none; }
.cmp-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cmp-legend li { display: flex; align-items: center; gap: 7px; height: 20px; font: 400 12.5px/20px var(--font-ui); color: var(--ink-2); white-space: nowrap; }
.cmp-legend .sc-dot { flex: none; }
.lv-sq { flex: none; display: inline-block; width: 10px; height: 10px; background: var(--lv-ns); }
.lv-sq[data-lv="eu"], .cmp-stack i[data-lv="eu"], .lv-bar i[data-lv="eu"] { background: var(--lv-eu); }
.lv-sq[data-lv="national"], .cmp-stack i[data-lv="national"], .lv-bar i[data-lv="national"] { background: var(--lv-nat); }
.lv-sq[data-lv="regional_local"], .cmp-stack i[data-lv="regional_local"], .lv-bar i[data-lv="regional_local"] { background: var(--lv-rgn); }
.cmp-stack i[data-lv="not_stated"], .lv-bar i[data-lv="not_stated"] { background: var(--lv-ns); }
/* fixed rooms per row: the most each row's cells draw, whatever the data */
.cmp-r-head { grid-template-rows: minmax(104px, auto); border-bottom: 1.5px solid var(--ink); }
.cmp-row[data-row="n"] { grid-template-rows: minmax(124px, auto); }
.cmp-row[data-row="st"] { grid-template-rows: minmax(188px, auto); }
.cmp-row[data-row="lv"] { grid-template-rows: minmax(172px, auto); }
.cmp-row[data-row="in"] { grid-template-rows: minmax(212px, auto); }
.cmp-row[data-row="go"] { grid-template-rows: minmax(188px, auto); }
.cmp-row[data-row="mc"] { grid-template-rows: minmax(256px, auto); }
.cmp-r-head > .cmp-lab, .cmp-r-head > .cmp-cell { padding: 18px 20px; }
.cmp-corner { justify-content: flex-end; gap: 0; font: 400 12px/16px var(--font-ui); color: var(--muted); }
.cmp-corner-t { display: block; max-height: 64px; overflow: hidden; }
.cmp-corner-s { color: var(--ink-2); }
.cmp-col { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.cmp-code { font: 400 12px/16px var(--font-ui); color: var(--muted); }
.cmp-name { margin: 0; font: 500 19px/24px var(--font-ui); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Measures: the count (smaller than v7's 26 px: compare shares), its set and window on two lines, the small-sample chip */
.cmp-row[data-row="n"] .cmp-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cmp-n { font: 700 22px/28px var(--font-num); letter-spacing: -0.03em; color: var(--brand-ink-2); }
.cmp-n-sub { display: block; max-width: 100%; min-height: 32px; font: 400 12px/16px var(--font-ui); color: var(--muted); }
.cmp-n-since { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-small { display: inline-block; margin-top: 2px; padding: 0 7px; border: 1px solid var(--rule-ui); border-radius: 999px; font: 400 12px/18px var(--font-ui); color: var(--ink-2); visibility: hidden; }
.cmp-cell[data-small] .cmp-small { visibility: visible; }
.cmp-small .sm-s { display: none; }
.cmp-code-n, .cmp-nbar, .cmp-cc { display: none; }
/* Status and Level: the stacked bar, then each share as text (K14: no meaning on colour alone) */
.cmp-stack { height: 14px; margin: 0 0 10px; }
.cmp-stack i { flex: 1 1 0; }
.cmp-list { list-style: none; margin: 0; padding: 0; }
.cmp-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; height: 20px; font: 400 12.5px/20px var(--font-ui); color: var(--ink-2); }
.cmp-list .lv-sq { width: 8px; height: 8px; }
.cmp-list .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-list .p { font: 400 12.5px/20px var(--font-num); letter-spacing: -0.02em; color: var(--ink); text-align: right; }
/* Instrument type (top 5) and Reported policy goal (top 4): bars on one scale per row (the largest share in the row is full) */
.cmp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cmp-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 4px; min-height: 29px; }
.cmp-bars .l { font: 400 13.5px/20px var(--font-ui); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-bars .p { font: 400 12.5px/20px var(--font-num); letter-spacing: -0.02em; color: var(--ink); }
.cmp-bars .is-none { display: block; font: 400 13px/18px var(--font-ui); color: var(--muted); }
/* Most covered: three titles (two lines at most) with status and core articles; each opens the drawer */
.cmp-row[data-row="mc"] .cmp-cell { padding: 8px 12px 16px; }
.cmp-mc { list-style: none; margin: 0; padding: 0; }
.cmp-mc li { min-height: 74px; border-bottom: 1px solid var(--rule); }
.cmp-mc li.is-empty, .cmp-mc li.is-none { border-bottom: 0; }
.cmp-mc li.is-none { padding: 10px 8px; font: 400 13px/18px var(--font-ui); color: var(--muted); }
.cmp-mc-b { display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 74px; padding: 8px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.cmp-mc-b:hover { background: var(--surface-2); }
.cmp-mc-b .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 38px; font: 500 14px/19px var(--font-ui); }
.cmp-mc-b .m { font: 400 12px/16px var(--font-ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tablets: the control row on two lines (the countries; the sector and Reset, with the Ask room at its right end) */
@media (max-width: 1199px) {
    #compare-picker-panel .cmp-ctl.card-header-block { flex-wrap: wrap; row-gap: 8px; padding-right: 0; }
    .cmp-chips { flex: 1 1 100%; }
    .cmp-div { display: none; }
    .cmp-secrow { flex: 1 1 100%; padding-right: 76px; }
    #compare-picker-panel .cmp-ctl .ask-card-btn { top: auto; bottom: 0; transform: none; }
    @media (pointer: coarse) { #compare-picker-panel .cmp-ctl .ask-card-btn { bottom: 0; } }
    @media (pointer: fine) { #compare-picker-panel .cmp-ctl .ask-card-btn { bottom: 6px; } }
}
/* tablets (768-1199): wider columns (the table scrolls sideways from four countries at 820), and the instrument and goal
   labels on two lines (v7 wraps them; ours are clamped to two, so the row's room stays fixed) */
@media (min-width: 768px) and (max-width: 1199px) {
    #view-compare { --cmp-colmin: 176px; }
    .cmp-lab, .cmp-cell { padding: 14px; }
    .cmp-r-head > .cmp-lab, .cmp-r-head > .cmp-cell { padding: 16px 14px; }
    .cmp-bars li { min-height: 49px; }
    .cmp-bars .l { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; height: 40px; }
    .cmp-row[data-row="in"] { grid-template-rows: minmax(308px, auto); }
    .cmp-row[data-row="go"] { grid-template-rows: minmax(252px, auto); }
}
@media (max-width: 575px) { .cmp-secrow { padding-right: 52px; } }
/* (checker 4) below 375 px the sector button drops its visible 'Sector:' key (kept for assistive tech), so 'Critical minerals' stays whole beside Reset */
@media (max-width: 374px) { .cmp-sector .cs-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* phones (O9 A, CMP-A): v7's rows as cards, one block per country (code and name, then the row's figures); the chips in one
   row that scrolls sideways (44 px x buttons); Add and Sector open bottom sheets; no ghost column, no sideways page scroll */
@media (max-width: 767px) {
    .cmp-head { padding: 8px 0 14px; }
    #view-compare .cmp-h1 { font-size: 28px; }
    .cmp-intro { font-size: 16px; }
    #view-compare .compare-picker-panel { margin-bottom: 14px; }
    .cmp-chips { flex: 0 0 calc(100% + 32px); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
    .cmp-chips::-webkit-scrollbar { display: none; }
    .cmp-chip, .cmp-add { flex: none; }
    .cmp-secrow { flex-wrap: nowrap; min-width: 0; }   /* (checker 4) min-width 0: the sector button shrinks (its label ellipsed), so a long sector and Reset never push the page sideways at 320 */
    .cmp-sector { flex: 0 1 auto; min-width: 0; }
    .cmp-sector .cs-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .cmp-reset { flex: none; }
    #view-compare .cmp-reset .rs-l { display: none; }
    #view-compare .cmp-reset .rs-s { display: inline; }
    .cmp-sub { display: block; }
    .cmp-wrap { background: none; border: 0; border-radius: 0; overflow: visible; }
    .cmp-grid { min-width: 0; }
    .cmp-row, #view-compare .cmp-row { display: flex; flex-direction: column; margin: 0 0 12px; padding: 14px 16px 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; }
    .cmp-row:last-child { border-bottom: 1px solid var(--rule); }
    .cmp-r-head { display: none !important; }
    .cmp-lab { position: static; padding: 0 0 4px; gap: 2px; background: none; }
    .cl-t { font-size: 17px; line-height: 24px; }
    .cl-n { font-size: 13px; line-height: 18px; }
    .cl-ph { display: block; }
    .cmp-legend, .cmp-ghost-cell, .cmp-ghost { display: none !important; }
    .cmp-cell, .cmp-row[data-row="mc"] .cmp-cell { border-left: 0; border-top: 1px solid var(--rule); padding: 10px 0; }
    /* each country block holds the room its row draws (the first frame of a link, a period, a column without measures) */
    .cmp-cell { box-sizing: border-box; }
    .cmp-row[data-row="st"] .cmp-cell { min-height: 128px; }
    .cmp-row[data-row="lv"] .cmp-cell { min-height: 108px; }
    .cmp-row[data-row="in"] .cmp-cell { min-height: 225px; }
    .cmp-row[data-row="go"] .cmp-cell { min-height: 188px; }
    .cmp-row[data-row="mc"] .cmp-cell { min-height: 276px; }
    .cmp-cc { display: block; height: 20px; margin: 0 0 6px; font: 400 13px/20px var(--font-ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cmp-cc b { margin-right: 4px; font: 500 13px/20px var(--font-num); color: var(--ink); }
    /* Measures: one line per country: the code, the bar on one scale, the count, "small" when under 10 */
    .cmp-row[data-row="n"] .cmp-cell { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto 3.4em; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; }
    .cmp-code-n { display: block; font: 500 13px/20px var(--font-num); color: var(--ink); }
    .cmp-nbar { display: block; height: 6px; background: var(--rule); }
    .cmp-nbar i { display: block; height: 6px; background: var(--brand-ink); }
    .cmp-n { font-size: 17px; line-height: 24px; text-align: right; }
    .cmp-n-sub { display: none; }
    .cmp-small { margin: 0; padding: 0 4px; text-align: center; white-space: nowrap; font-family: var(--font-num); }
    .cmp-small .sm-l { display: none; }
    .cmp-small .sm-s { display: inline; }
    /* Status and Level: the shares in two columns */
    .cmp-stack { height: 12px; margin-bottom: 8px; }
    .cmp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
    .cmp-list li { font-size: 13px; }
    .cmp-bars .l { font-size: 14px; }
    .cmp-bars .is-none, .cmp-mc li.is-none { font-size: 13px; }
    .cmp-mc { margin: 0 -8px; }
    .cmp-mc li, .cmp-mc-b { min-height: 72px; }
    .cmp-mc-b .m { font-size: 13px; line-height: 17px; }
}

@media (forced-colors: active) {
    .cmp-chip, .cmp-sector, .cmp-add, .cmp-ghost-btn, .cmp-wrap, .cmp-small { border: 1px solid CanvasText; }
    .cmp-stack i, .lv-sq, .cmp-list .sc-dot, .cmp-legend .sc-dot, .cmp-nbar { forced-color-adjust: none; border: 1px solid CanvasText; }
    .cmp-reset { color: LinkText; }
}
@media (max-width: 767px) and (forced-colors: active) { .cmp-row { border: 1px solid CanvasText; } }
@media print {
    .cmp-ctl .cc-x, .cmp-add, .cmp-reset:not(.is-on), .cmp-ghost-cell { display: none !important; }
    .cmp-wrap { overflow: visible; }
}

/* =============================================================================
   THE METHODOLOGY (2026-11-25, owner: the hand-over methodology.html in place of the old page). The hand-over's inline
   styles as classes on the site's tokens: its #0C5A68 petrol is --brand-ink-2 (#006A7C, the primary buttons' and the
   cite card's petrol), #EFE9DC / #DDD6C6 / #F5F2EA its stand-ins for --surface / --rule / --paper, #A89F8C (the "On
   this page" frames) --rule-ui, #E2DACA (the goal chips) --surface-2, #1B2A2F / #3A474B / #4F5B5E --ink / --ink-2 /
   --muted, #CDE7EB (the pale text on petrol) #E6F4F6 as on the Overview's cite card; its 600 / 700 weights are the
   site's 500 face (the only bold file). The status dots are the site's status tokens (.sc-dot). Grids are auto-fit with
   min(100%, ...) so no column is wider than a 320 px screen. Every figure sits in a .tw-slot (index.html).
   ============================================================================= */
#view-methodology { gap: 0; padding: clamp(24px, 3.4vw, 48px) 0 8px; }
#view-methodology .tw-slot { font-variant-numeric: tabular-nums; }
#view-methodology .methodology-header.mt-hero {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; padding: 0; margin: 0; border-bottom: 0;
}
.mt-hero-t { flex: 999 1 560px; min-width: 0; }
#view-methodology .mt-h1 { margin: 0 0 16px; }
.mt-intro { margin: 0; font: 400 19px/1.55 var(--font-ui); color: var(--ink-2); }
.mt-pdf-card {
    flex: 0 0 auto; align-self: center; box-sizing: border-box; width: min(100%, 18rem); padding: 24px;
    border: 1px solid var(--rule); border-radius: 12px; background: var(--surface);
}
.mt-pdf-h { margin: 0 0 16px; font: 500 16px/1.3 var(--font-ui); color: var(--ink); }
.mt-pdf {
    display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 44px; padding: 12px 18px;
    border-radius: 8px; background: var(--brand-ink-2); color: #FFFFFF; font: 500 15px/1.2 var(--font-ui); text-decoration: none;
}
.mt-pdf svg { width: 18px; height: 18px; flex: none; }
.mt-pdf[href]:hover { background: #007C99; color: #FFFFFF; }
.mt-pdf:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* not there yet (and while the HEAD is out): no href, so no focus stop and no navigation; drawn as unavailable */
.mt-pdf[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule-ui); cursor: not-allowed; }
.mt-pdf-note { min-height: 1.4em; margin: 8px 0 0; font: 400 13px/1.4 var(--font-ui); color: var(--muted); }
.mt-pdf-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; font: 400 13px/1.4 var(--font-ui); color: var(--muted); }
.mt-pdf-dl dd { margin: 0; color: var(--ink); }
/* On this page */
.mt-otp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.mt-otp-l { margin-right: 6px; font: 400 15px/1.4 var(--font-ui); color: var(--muted); }
.mt-otp-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mt-otp-a {
    display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: 44px; padding: 10px 16px;
    border: 1px solid var(--rule-ui); border-radius: 4px; background: var(--surface); color: var(--ink); font: 400 15px/1.3 var(--font-ui); text-decoration: none;
}
.mt-otp-a svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.mt-otp-a:hover { background: var(--surface-2); color: var(--ink); }
.mt-otp-a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the sections */
.mt-sec { margin: clamp(48px, 6vw, 72px) 0 0; }
.mt-h2 { margin: 0 0 8px; font: 500 clamp(24px, 2.4vw, 30px)/1.2 var(--font-ui); letter-spacing: -0.01em; color: var(--ink); }
.mt-h2:focus { outline: none; }
.mt-h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.mt-sub { margin: 0 0 24px; font: 400 16px/1.55 var(--font-ui); color: var(--muted); }
.mt-grid { display: grid; gap: 16px; }
.mt-grid-scope { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mt-grid-sets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mt-grid-terms { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.mt-card { box-sizing: border-box; min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.mt-h3 { margin: 0 0 16px; font: 500 18px/1.3 var(--font-ui); color: var(--ink); }
.mt-card-sub { margin: -12px 0 16px; font: 400 14px/1.5 var(--font-ui); color: var(--muted); }
.mt-sectors { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font: 400 15px/1.4 var(--font-ui); color: var(--ink); }
.mt-sectors li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.mt-sectors li:last-child { padding-bottom: 0; border-bottom: 0; }
.mt-short { font-size: 13px; color: var(--muted); }
/* (owner 2026-11-25) "Not stated" in the Methodology's status list: the hand-over's hollow ring, not a filled dot */
#mt-status .sc-dot[data-st="not_stated"] { background: transparent; border: 1px solid var(--st-cancelled); box-sizing: border-box; }
.mt-countries { margin: 0; font: 400 15px/1.9 var(--font-ui); color: var(--ink); }
.mt-win { margin: 0; }
.mt-win-r { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 14px; font: 400 15px/1.45 var(--font-ui); color: var(--ink); }
.mt-win-r + .mt-win-r { margin-bottom: 8px; }
.mt-win-r dt { font-weight: 500; white-space: nowrap; color: var(--brand-ink-2); }
.mt-win-r dd { margin: 0; }
.mt-pairs { margin: 0 0 12px 4px; padding-left: 16px; font: 400 14px/1.5 var(--font-ui); color: var(--muted); }
.mt-note { margin: 0; font: 400 14px/1.5 var(--font-ui); color: var(--muted); }
/* the links to a view (the hand-over's "Explore measures", "Overview", "Compare"): a 44 px hit area around the word */
.mt-vlink { position: relative; color: var(--brand-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.mt-vlink::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.mt-vlink:hover { color: var(--ink); }
.mt-vlink:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
/* From article to measure */
.mt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mt-step { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.mt-step-k { font: 500 13px/1.3 var(--font-ui); color: var(--muted); }
.mt-step-n { font: 500 26px/1.15 var(--font-num); letter-spacing: -0.01em; color: var(--ink); }
.mt-step-u { margin-top: -6px; font: 400 13px/1.35 var(--font-ui); color: var(--muted); }
.mt-step-b { font: 400 14px/1.5 var(--font-ui); color: var(--ink-2); }
.mt-step.is-curated { border-color: var(--brand-ink-2); background: var(--brand-ink-2); }
.mt-step.is-curated .mt-step-n, .mt-step.is-curated .mt-step-b { color: #FFFFFF; }
.mt-step.is-curated .mt-step-k, .mt-step.is-curated .mt-step-u { color: #E6F4F6; }
.mt-def { margin: 16px 0 0; max-width: 70em; font: 400 13px/1.55 var(--font-ui); color: var(--muted); }
/* Curated set and full dataset */
.mt-set-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.mt-set .mt-h3 { margin: 0; font-size: 20px; }
.mt-set-n { font: 500 22px/1.2 var(--font-num); color: var(--ink); }
.mt-set.is-curated { border: 2px solid var(--brand-ink-2); }
.mt-set.is-curated .mt-set-n { color: var(--brand-ink-2); }
.mt-set-t { margin: 10px 0 16px; font: 400 15px/1.55 var(--font-ui); color: var(--ink); }
.mt-set-t strong { font-weight: 500; }
.mt-set-k { margin: 0 0 6px; font: 500 13px/1.3 var(--font-ui); color: var(--muted); }
.mt-set-u { margin: 0; font: 400 15px/1.5 var(--font-ui); color: var(--ink); }
/* What the numbers show */
.mt-rules-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mt-rule { min-width: 0; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.mt-rule-n {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 999px;
    background: var(--brand-ink-2); color: #FFFFFF; font: 500 15px/1 var(--font-num);
}
.mt-rule-h { margin: 0 0 6px; font: 500 16px/1.4 var(--font-ui); color: var(--ink); }
.mt-rule-t { margin: 0; font: 400 14px/1.5 var(--font-ui); color: var(--muted); }
/* Key terms */
.mt-gloss { padding: 8px 24px; }
.mt-gloss-r { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.mt-gloss-r:last-child { border-bottom: 0; }
.mt-gloss dt { margin-bottom: 4px; font: 500 16px/1.4 var(--font-ui); color: var(--ink); }
.mt-gloss dd { margin: 0; font: 400 15px/1.55 var(--font-ui); color: var(--ink-2); }
.mt-terms-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mt-terms-side .mt-h3 { margin-bottom: 4px; font-size: 16px; }
.mt-terms-side .mt-card-sub { margin: 0 0 16px; }
.mt-status { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px 16px; margin: 0; font: 400 14px/1.45 var(--font-ui); }
.mt-status dt { display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.mt-status dd { margin: 0; color: var(--ink-2); }
.mt-status .sc-dot { flex: none; width: 10px; height: 10px; }
.mt-goals { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mt-goals li { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); font: 400 13px/1.4 var(--font-ui); color: var(--ink); }
.mt-cite { margin: clamp(48px, 6vw, 72px) 0 8px; }
@media (max-width: 767px) {
    #view-methodology { padding-top: 20px; }
    .mt-intro { font-size: 17px; }
    .mt-pdf-card { align-self: stretch; }
    .mt-card, .mt-pdf-card { padding: 20px; }
    .mt-gloss { padding: 4px 20px; }
    .mt-step, .mt-rule { padding: 18px; }
}
@media (forced-colors: active) {
    .mt-card, .mt-step, .mt-rule, .mt-pdf-card, .mt-otp-a, .mt-pdf { border: 1px solid CanvasText; }
    .mt-pdf[aria-disabled="true"] { color: GrayText; }
    .mt-status .sc-dot, .mt-rule-n { forced-color-adjust: none; border: 1px solid CanvasText; }
}
/* print: the page as it is, the dark cards on white, no "On this page" and no PDF button; links print their address */
@media print {
    .mt-otp, .mt-pdf, .mt-pdf-note, .oc-btn, .hd-data-to, .ov-tip, .ex-more, .ov-ta { display: none !important; }
    .mt-step, .mt-rule, .mt-card, .ov-cite-card { break-inside: avoid; }
    .mt-step.is-curated { background: #fff !important; border: 1px solid #000 !important; }
    .mt-step.is-curated * { color: #000 !important; }
    .ov-cite-card.is-cite { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
    .ov-cite-card.is-cite .oc-t, .ov-cite-card.is-cite .oc-k { color: #000 !important; }
    .ov-cite-card .oc-t { min-height: 0 !important; }
    #main-content a[href^="mailto:"]::after, #main-content a[href^="http"]::after, .v7b-footer a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
    /* (Phase 5 checker) the footer on paper: its beige band ink drew near-white on white, and the printed link addresses
       squeezed the copyright into a one-word column; black ink, one column, the logo in black */
    .glass-footer.colophon.v7b-footer { --band-ink: #000; --band-ink-2: #333; --band-rule: #999; }
    .v7b-footer .ft-in { grid-template-columns: minmax(0, 1fr); }
    .v7b-footer .ft-side { align-items: flex-start; }
    .v7b-footer .ft-links { justify-content: flex-start; }
    .v7b-footer .ft-ipl { filter: brightness(0); }
    /* (Phase 5 checker) a print with a measure open prints that measure, whole: the page behind it and the scrim are left
       out (the scrim printed as a grey veil over every page), and the panel's scroll box opens to its full height (it
       printed one screen of it, cutting the articles, the quote and the reactions) */
    .detail-drawer-overlay { display: none !important; }
    body.drawer-open > .dashboard-container { display: none !important; }
    .detail-drawer.active, .detail-drawer.active #drawer-content-target { height: auto !important; max-height: none !important; overflow: visible !important; }
}
/* (Phase 5 checker) forced colours: "Clear all" with nothing to clear reads as unavailable (GrayText), as a disabled button would */
@media (forced-colors: active) { .ex-clear:not(.is-on) { color: GrayText; } }

/* =============================================================================
   ROUND v7c (owner 2026-11-13, the UX review's recommendations 10, 11, 12, 14): last in the file, so it wins at equal
   specificity. (owner 2026-11-19: light only; the dark band and its family of these colours went with the dark mode.)
   ============================================================================= */
:root {
    /* (10) the header and the footer in a LIGHTER turquoise, v7's own #00A5BF. (owner 2026-11-14) with the earlier LIGHT
       text again (beige, as on the deep turquoise band before v7c): "go back the color of the font for the header and footer,
       ignore the contrast issue for this one for now". Beige on #00A5BF reads 2.6:1, knowingly accepted for now (the
       checks record it as waived: contract_v7b.py's docstring lists each row). The focus ring on the band stays ink
       (6.3:1): a keyboard indicator, not the band's text. */
    --band: #00A5BF; --band-ink: #F5F1E7; --band-ink-2: #F5F1E7; --band-rule: rgba(245, 241, 231, 0.42); --band-hover: rgba(245, 241, 231, 0.14);
    --focus-on-band: #121417;
    /* (12) no stray blue: the Kiel blue's places take the dashboard's petrol */
    --kiel-blue: #006A7C; --accent-secondary: #006A7C; --accent-secondary-ink: #005F70; --goal-ink: #005F70;
    --cmp-c1: #2A9AB0; --cmp-auth-eu: #006A7C; --cmp-auth-nat: #7BCAD6; --cmp-auth-rgn: #C2E9EF;
    /* (14) the levels. (owner 2026-11-19) Regional & local is no longer a dark red ("it's not signaling alert") but a teal
       LIGHTER than National: three teals from dark to light (EU #006A7C, National #7BCAD6, Regional & local #C2E9EF;
       relative luminance 0.12 < 0.51 < 0.76) and the beige grey of Not stated. The light pairs are under 3:1 (National /
       Regional 1.4, Regional / Not stated 1.3), so the marks are told apart by form as well: the segments of a stacked level
       bar keep a gap in the surface colour between them. (owner 2026-11-20) The light mark carries no outline. */
    --lv-eu: #006A7C; --lv-nat: #7BCAD6; --lv-rgn: #C2E9EF; --lv-ns: #CFC7B5;
    /* (14) the statuses as one ordered family, light to dark from In discussion to Active; Expired, Cancelled and Not stated
       in greys, set apart */
    --st-discussion: #7BCAD6; --st-announced: #2A9AB0; --st-active: #005F70; --st-expired: #B5AEA0; --st-cancelled: #6B655A;
    --st-discussion-ink: #005F70; --st-announced-ink: #005F70; --st-active-ink: #005F70; --st-expired-ink: #5F5A50; --st-cancelled-ink: #4A463F;
    --status-discussion-bg: rgba(123, 202, 214, 0.28); --status-discussion-txt: #005F70; --status-discussion-border: rgba(0, 95, 112, 0.25);
    --status-announced-bg: rgba(42, 154, 176, 0.18); --status-announced-txt: #005F70; --status-announced-border: rgba(0, 95, 112, 0.3);
    --status-active-bg: rgba(0, 95, 112, 0.14); --status-active-txt: #005F70; --status-active-border: rgba(0, 95, 112, 0.35);
    --status-expired-bg: rgba(122, 116, 102, 0.14); --status-expired-txt: #5F5A50; --status-expired-border: rgba(122, 116, 102, 0.3);
    --status-cancelled-bg: rgba(107, 101, 90, 0.16); --status-cancelled-txt: #4A463F; --status-cancelled-border: rgba(107, 101, 90, 0.34);
}
/* (owner 2026-11-19, point 2) the level marks by form as well as colour: the light Regional & local mark (square, bar
   segment, stack segment) has an inner hairline in ink at 25 %, so it holds its edge on the paper, the cards and beside
   National and Not stated; a stacked level bar shows the surface it sits on in its 2 px gaps (the Overview's bar drew its
   empty-track colour there), so each segment ends in a gap of the surface colour */
/* (owner 2026-11-20) no outline on the Regional & local mark: the tint and the gaps between segments carry it */
.lv-bar:has(> i) { background: none; }
/* (12) tabular figures where numbers line up (lists, tables, bars); one face */
.r-n, .measure-explorer-row .c-a, .measure-explorer-row .c-v, .sb-p, .cmp-list .p, .cmp-bars .p, .cmp-n, .lv-b .p, .tr-n, .sc-list .sb-p { font-variant-numeric: tabular-nums; }
/* (owner 2026-11-14) the logos in their own beige on both bands again (v7c had inked them on the light band) */
/* (10) the chosen period in the dashboard's colours, not ink: paper on the light band, set heavier as well */
.v7b-period-btn[aria-checked="true"] { font-weight: 600; }
/* (owner 2026-11-14) no black selected state: on the light band the chosen period is a paper button with ink text and an
   ink edge (paper alone reads 2.6:1 on #00A5BF; the edge carries the 3:1), like the Ask pill beside it. The dark band
   keeps its beige fill with the band's own colour as text (set above; 11.7:1). */
:root:root .v7b-period-btn[aria-checked="true"] { background: #F5F1E7; color: #121417; box-shadow: inset 0 0 0 1px #121417; }
/* (owner 2026-11-14) with beige text on the light band again: an unchosen period's hover is the band a shade darker, as
   before v7c (the base rule); the About-us pill's hover is a paper fill with ink text, like the chosen period and the Ask
   pill (the band's own turquoise as text on beige read 2.6:1) */
:root:root .hd-about:hover { background: #F5F1E7; color: #121417; }
/* Back to top on the light band: pre-v7c's look (a filled square, a beige edge and a beige arrow) in the dashboard's petrol,
   since v7c (12) took the Kiel blue out; ink on hover, as before. The dark band keeps v7c's beige square. */
:root:root .ft-top { background: #006A7C; border-color: #F5F1E7; color: #F5F1E7; }
:root:root .ft-top:hover { background: #121417; }
/* (10) fields and choosers framed at 3:1 (#8A8478 on the paper 3.4:1) */
.ov-search-box, .ex-search, .ex-chip, .ex-token, .cmp-sector { border-color: var(--rule-ui); }
/* (10) primary buttons: white on the dashboard's petrol (5.9:1), not ink on turquoise */
.ov-search-go { background: #006A7C; color: #FFFFFF; }
.ov-search-go:hover { background: #007C99; }
/* (10) the chosen sort in petrol (aria-checked, a radiogroup), set heavier, never ink */
.ex-sort-b[aria-checked="true"] { background: #006A7C; border-color: #006A7C; color: #FFFFFF; font-weight: 600; }
/* (12) the cite card in petrol, not the Kiel blue */
.ov-cite-card.is-cite { background: #006A7C; border-color: #006A7C; color: #F5F1E7; }
.ov-cite-card.is-cite .oc-k { color: #E6F4F6; }
.v7d-chip.is-eu { background: #D3ECEF; color: #005F70; }
/* (14) the greys set apart from the stages: a gap before the first of them in every stacked bar */
.sc-stack i:is([data-st="in_discussion"], [data-st="announced"], [data-st="active"]) + i:is([data-st="expired"], [data-st="cancelled"], [data-st="not_stated"]) { margin-left: 4px; }
.sc-stack i[data-st="not_stated"], [data-st="not_stated"].sc-dot { background: var(--lv-ns); }
/* (B.18) v7's Cite / Questions / Media: one row of three from 1024 px; 1 + 2 between 600 and 1023 px; stacked on phones */
@media (min-width: 600px) and (max-width: 1023.98px) {
    .ov-cite { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ov-cite-card.is-cite { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .ov-cite { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* (11) phones: the full product name on two lines; the search right under the headline */
@media (max-width: 767px) {
    .hd-wm { max-width: 8.6em; font-size: 13.5px; }
    .hd-wm .wm-a { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; }
    .hd-logos .lh-kiel { height: 20px; }
    .hd-logos .lh-ipl { height: 22px; }
    .ov-search { order: 3; margin-top: 8px; }
    #view-overview .ov-ds { order: 4; margin-top: 12px; }
    .ov-heat { order: 5; }
}
@media (max-width: 359.98px) { .hd-logos .lh-rule, .hd-logos .lh-ipl { display: none; } }
/* (v7c, B.1) the heatmap's hint: the number shows on hover or a tap */
.ov-note-h .h-touch { display: none; }
@media (pointer: coarse) { .ov-note-h .h-mouse { display: none; } .ov-note-h .h-touch { display: inline; } }
@media (max-width: 767px) { .cmp-sub { min-height: calc(2 * 1.4em); } }
/* (v7c, review B rule: Country, Sector and Status show every value whole) the six chips: Country, Sector, Status at their
   whole widths; Instrument, Policy goal and Level narrower. One row from 1440 px; below, two rows whose room is held, so a
   pick, a removable chip or Clear all never changes the rows */
.ex-chip[data-chip="country"] { width: 15.5em; } .ex-chip[data-chip="sector"] { width: 15.5em; } .ex-chip[data-chip="status"] { width: 13.3em; }
.ex-chip[data-chip="instrument"] { width: 10.6em; } .ex-chip[data-chip="goal"] { width: 10.6em; } .ex-chip[data-chip="authority"] { width: 10em; }
@media (min-width: 768px) and (max-width: 1439.98px) { #ex-chips.ex-chips { min-height: 88px; align-content: flex-start; } }
/* (owner 2026-11-15) a removable chip was squeezed into what the six choosers left of the row and cut ("Initiative: Ger..."
   after a click on Part of): from 768 px the removable chips take a row of their own under the choosers, each at its whole
   label, wrapping if they must. The row appears only while there is such a chip. Phones keep the one scrolling row. */
@media (min-width: 768px) {
    #ex-chips .ex-tokens:has(.ex-token) { order: 10; flex: 1 0 calc(100% - 74px); min-width: 0; height: auto; min-height: 36px; flex-wrap: wrap; overflow: visible; padding: 0; }
    #ex-chips .ex-tokens:has(.ex-token) .ex-token { max-width: 100%; height: auto; min-height: 36px; white-space: normal; text-align: left; }
    /* (review) "Clear all" follows the removable chips onto their row while there are any, at its right end beside their
       last line (the chips' box leaves it its 64.4 px and a gap): the keyboard reaches it after them (DOM order: choosers,
       removable chips, Clear all), so it must not sit before them on the choosers' row */
    #ex-chips:has(.ex-token) .ex-clear { order: 11; align-self: flex-end; }
}
/* (review) on touch the removable chips keep their 44 px targets (the rule above out-ranked the coarse 44 px) */
@media (min-width: 768px) and (pointer: coarse) { #ex-chips .ex-tokens:has(.ex-token) .ex-token { min-height: 44px; } }
/* (review) from 1440 px the choosers' one line is centred in the row's 40 px; with the chip row under it the line would
   shrink to the chips' 36 px and lift them 2 px: the 2 px is kept above them */
@media (min-width: 1440px) and (not (pointer: coarse)) { #ex-chips.ex-chips:has(.ex-token) { padding-top: 2px; row-gap: 10px; } }
/* (v7c, one family) the strip's figures in Suisse Intl: left in slots wider than their longest value in either face, so a
   late face moves no figure and no label after it (Intl's tabular figures and the fallback's differ in width) */
#view-overview .ov-ds .value { text-align: left; }
/* (owner 2026-11-20, the box as Explore's) from 768 px the figures sit right in their slots, against their labels, as in
   Explore's box: the slot and the label keep their places whatever the face */
@media (min-width: 768px) {
    #view-overview .ov-ds .value { text-align: right; }
    /* the slots of Explore's box (#ex-ds-n / #ex-ds-c 3.8em, #ex-ds-read / #ex-ds-s 4.45em): the figures of a column end on one line */
    #view-overview #ov-ds-n, #view-overview #stat-countries-val { min-width: 3.8em; } #view-overview #stat-scanned-val, #view-overview #stat-sectors-val { min-width: 4.45em; }
}
/* phones keep their one line (countries, sectors, Data to): the measures figure is not drawn there */
@media (max-width: 767px) { #view-overview .ov-ds .qs-n { display: none; } }
#stat-countries-val, #stat-sectors-val { min-width: 1.6em; }
#stat-scanned-val { min-width: 4.9em; }
#stat-measures-val, #stat-articles-val { min-width: 4.1em; }
@media (max-width: 767px) { #stat-measures-val { min-width: 3.5em; } }
/* the heatmap's hint on a line of its own (after the date slot it moved with a late face); the legend's first item a fixed room */
.ov-note-h { display: block; }
.lg-i.lg-top { flex: none; width: 13.6em; }
/* the trend row's figures likewise: left in boxes of a fixed em width */
.ov-tr .tr-n { min-width: 3.4em; text-align: left; }
.ov-lv .lv-head .tr-n { min-width: 3.1em; }
.lv-b { grid-template-columns: 10px minmax(0, 1fr) 2.6em; }
.lv-b .p { text-align: left; }
@media (max-width: 374px) { .lv-b { gap: 6px; padding: 0; } }   /* (checker) room for "National" beside its share at 320 px */
/* ---- v7c fix round (2026-11-14) ---- */
/* P11: the period control's frame at 3:1 or more on the dark band. (owner 2026-11-14) on the light band it is the
   band's beige rule again (the base rule, var(--band-rule)), as before v7c: the light text's contrast is waived for now */
/* P12: the cite card as tall as its content (the room held for the old long citation goes) */
.is-cite .oc-t { min-height: 0; }
@media (max-width: 1199px) { .is-cite .oc-t { min-height: 0; } }
/* P16: the evidence quote upright (the family has no italic face: no synthetic slant); its marks set it apart */
.v7d .ms-evidence .drawer-quote, .v7d-quote .drawer-quote { font-style: normal; font-synthesis: none; }
.v7d-quote .drawer-quote::before { content: open-quote; position: static; font: inherit; color: inherit; } .v7d-quote .drawer-quote::after { content: close-quote; }
.v7d-quote .drawer-quote.has-marks::before, .v7d-quote .drawer-quote.has-marks::after { content: none; }   /* (checker) a passage that brings its own quotation marks gets no second pair */
.v7d-quote .drawer-quote { quotes: '\201C' '\201D'; }
/* P17: 44 px targets on touch (padding with a matching negative margin, so no row grows) */
@media (pointer: coarse) {
    .measure-explorer-row .ex-title { padding-top: 12px; padding-bottom: 12px; margin-top: -12px; margin-bottom: -12px; min-height: 44px; }
    .t-mc-b { padding-top: 6px; padding-bottom: 6px; margin-top: -6px; margin-bottom: -6px; min-height: 44px; }
}
/* P20: petrol buttons 3:1 against the dark page (and white text 5.2:1) */
/* P7: phones: Compare's two choosers each take the row's width, so their values show whole (320-575); no Ask room (A.4) */
.cmp-secrow { padding-right: 0; }
@media (max-width: 1199px) { .cmp-secrow { padding-right: 0; } }
@media (max-width: 575px) {
    .cmp-secrow { padding-right: 0; flex-wrap: wrap; row-gap: 8px; }
    .cmp-secrow .cmp-sector { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 374px) { .cmp-sector .cs-k { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; } }
/* P8: the full product name down to 320 px (two lines, smaller logos; the IP Lab mark gives way below 360) */
@media (max-width: 374px) { .hd-wm { display: block; font-size: 12.5px; max-width: 8.2em; } .hd-logos .lh-kiel { height: 18px; } }
/* P2: nothing in the trend row is cut. Titles may take two lines (the slot always holds two, so the
   card keeps one height whatever the scope); the level card's line may take four. Fixed heights: no shift. */
.ov-tr .tr-head { height: calc(2 * 1.2 * 21px); align-items: flex-start; }
.ov-tr .tr-t { white-space: normal; overflow: hidden; text-overflow: clip; height: calc(2 * 1.2em); overflow-wrap: anywhere; }
.ov-tr .tr-n { line-height: 1.2; font-size: 24px; }
.ov-tr { height: 310px; }
.ov-lv .lv-head { height: auto; }
.ov-lv .lv-t { height: calc(4 * 1.35em); }
@media (max-width: 767px) { .ov-tr { height: 310px; } .ov-lv { height: 330px; } }
.ov-tr .tr-t.is-long { font-size: 16px; letter-spacing: -0.02em; }
@media (max-width: 374px) { .ov-tr .tr-t.is-long { font-size: 14.5px; } }
/* P3: the Ask launcher, labelled, in the nav row's own slot from 768 px (index.html #ask-slot; chat.js moves the
   launcher in). It covers no content at rest on any view. The slot keeps one width in em from the first paint:
   pending, a quiet outline of the pill; off (no chat), an empty end of the row. The row makes room for it: from
   768 to 979 the period's "Reported in" word goes (the group keeps it as its name) */
/* (owner 2026-11-17) the launcher floats at the bottom right again (chat.js ASK_IN_NAV = false): the slot takes no room
   unless html[data-ask-nav] is set, which nothing does today */
.ask-slot { display: none; }
@media (min-width: 768px) {
    html[data-ask-nav] .ask-slot { display: flex; align-items: center; flex: none; box-sizing: border-box; width: 11.2em; height: 34px; margin-left: 16px; font: 500 14px/1 var(--font-ui); }
    html[data-ask="pending"] .ask-slot::before { content: ''; width: 100%; height: 100%; box-sizing: border-box; border-radius: 999px; border: 1px solid var(--band-rule); }
    html body #ask-slot .chat-launcher, html body #ask-slot .chat-launcher:not(:hover):not(:focus-visible) {
        position: relative; inset: auto; z-index: auto; width: 100%; height: 34px; min-height: 0; padding: 0 12px !important; gap: 6px !important;
        justify-content: center; border-radius: 999px; background: #F5F1E7; color: #121417; border: 1px solid rgba(18, 20, 23, 0.7); box-shadow: none; transform: none; opacity: 1;
        font: 500 14px/1 var(--font-ui); letter-spacing: 0;
    }
    html body #ask-slot .chat-launcher .chat-launcher-label { position: static; width: auto; height: auto; clip: auto; clip-path: none; max-width: none !important; opacity: 1 !important; overflow: visible; }
    html body #ask-slot .chat-launcher svg { width: 17px; height: 17px; color: #006A7C; }
    html body #ask-slot .chat-launcher:hover { background: #fff; transform: none; box-shadow: none; }
    /* while the chat is open (side panel or full screen) the launcher steps out of sight, as the old circle did; its slot
       keeps the room, so nothing moves */
    html body #ask-slot .chat-launcher[aria-expanded="true"] { opacity: 0 !important; pointer-events: none; }
    /* 44 px hit area on touch (the pill stays 34 px: its 32 px padding box and 6 px each side) */
    #ask-slot .chat-launcher { position: relative; }
    @media (pointer: coarse) { #ask-slot .chat-launcher::after { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; } }
}
@media (min-width: 768px) and (max-width: 979px) { .v7b-period-lbl { display: none; } }
@media (min-width: 768px) and (max-width: 899px) { .hd-right { margin-left: 12px; } }
@media (min-width: 768px) and (forced-colors: active) {
    html[data-ask="pending"] .ask-slot::before { border-color: GrayText; }
    html body #ask-slot .chat-launcher { border: 1px solid ButtonText; }
}
/* the old bottom-right circle's pending outline goes (the launcher is no longer there from 768 px) */
@media (min-width: 768px) { html[data-ask="pending"] body::after { content: none; } }
/* P3 phones: the tab bar's Ask slot carries a word under its icon, like the tabs beside it */
@media (max-width: 767px) {
    .ipm-chat .chat-launcher { flex-direction: column; gap: 3px; background: transparent; color: var(--brand-ink); box-shadow: none; }
    .ipm-chat .chat-launcher svg { width: 22px; height: 22px; padding: 0; }
    .ipm-chat .chat-launcher::after { content: 'Ask'; content: 'Ask' / ''; font: 400 var(--t-micro)/1 var(--font-tab); color: var(--ink-2); letter-spacing: 0; }
    html[data-ask="pending"] .view-pills-bar::after { border-radius: 12px; border-color: transparent; background: none; }
    html[data-ask="pending"] .view-pills-bar::before { -webkit-mask-position: center 8px; mask-position: center 8px; }
}
/* P18: a link with nothing to list is hidden (.ov-link sets its own display, which beat the [hidden] default) */
.ov-link[hidden] { display: none !important; }
/* P12 follow-up (V-JUMP / V-RA): the cite card follows its content, and its room is held from the first paint: the citation
   and an invisible twin as long as its longest form share one grid cell, so the generated "Data to ... Data version ..."
   moves nothing below it */
.oc-hold { display: grid; }
.oc-hold > * { grid-area: 1 / 1; }
.oc-hold > .oc-size { visibility: hidden; }
/* P3 follow-up (C31): the launcher in the band keeps the band's own focus ring (3:1+ on both bands) */
html body #ask-slot .chat-launcher:focus-visible { outline: 2px solid var(--focus-on-band); outline-offset: 2px; }
/* ---- v7c second fix round (2026-11-14) ---- */
/* R7: a 0% row is text, not a control: the same box as the buttons, no pointer, no hover */
.sb-b.is-zero, .lv-b.is-zero { box-sizing: border-box; cursor: default; }
.sb-b.is-zero:hover, .lv-b.is-zero:hover { background: none; }
.sb-b.is-zero:hover .sb-l, .lv-b.is-zero:hover .l { text-decoration: none; }
/* R8: the phone tab bar's "Ask" sits on its neighbours' line: icon and word set from the bottom, 4 px apart, as the tabs */
@media (max-width: 767px) { .ipm-chat .chat-launcher { justify-content: flex-end; gap: 4px; padding-bottom: 0.5px; } }
@media (max-width: 359px) { .ipm-chat .chat-launcher { padding-bottom: 0; bottom: calc(6.5px + env(safe-area-inset-bottom, 0px)); } }

/* =============================================================================
   (owner 2026-11-25) PHONES: ONE HEADER ROW THAT DOCKS. Both logos at the left, the period ("All | 3 mo") and the
   country / sector chip in the middle, the "?" at the right; the product name leaves the row (the home link's label
   still says it). The band (#site-header) docks itself; the strip (#hd-nav) keeps its place in the document (its
   controls stay where scripts and tests find them) but lies on the band's row: pulled up by the band's height,
   transparent, and clicks pass through it to the band except on its own controls. Focus order stays home, "?",
   period, scope. When a chip shows, the Lab logo gives way so the chip has room; the Methodology has no strip.
   ============================================================================= */
@media (max-width: 767px) {
    :root { --dock-h: var(--hd-band-h); --hd-left: 148px; }
    .hd-band { position: sticky; top: 0; box-shadow: 0 1px 0 var(--band-rule); }
    html.ipm-tour-on .hd-band, html.kb-open .hd-band { position: relative; }
    .hd-wm { display: none; }
    .hd-tools::after { display: none; }
    .hd-nav { margin-top: calc(-1 * var(--hd-band-h)); height: var(--hd-band-h); z-index: 92; background: transparent; border-bottom: 0; pointer-events: none; }
    .hd-nav .hd-in { padding-left: var(--hd-left); padding-right: calc(56px + env(safe-area-inset-right, 0px)); }
    .hd-nav .hd-right { pointer-events: auto; }
    html[data-view="methodology"] .hd-nav { margin-top: 0; height: 0; }
    /* the period sits at the row's right end, beside the "?", so a chip coming or going never moves it; the chip fills
       the room after the logos */
    .hd-nav .hd-right { justify-content: flex-end; }
    .hd-nav .v7b-period { order: 2; flex: none; }
    .hd-nav .hd-scope { order: 1; justify-content: flex-start; }
    /* a chip showing: the Kiel logo alone */
    html:not([data-view="methodology"]):has(#hd-scope:not([hidden])) { --hd-left: 85px; }
    html:not([data-view="methodology"]):has(#hd-scope:not([hidden])) .hd-logos .lh-rule,
    html:not([data-view="methodology"]):has(#hd-scope:not([hidden])) .hd-logos .lh-ipl { display: none; }
    /* the chip's text by the room it has: codes, short names, full names */
    .hd-scope-t .lg, .hd-scope-t .sh { display: none; }
    .hd-scope-t .cd { display: inline; }
}
@media (min-width: 412px) and (max-width: 767px) { .hd-scope-t .cd { display: none; } .hd-scope-t .sh { display: inline; } }
@media (min-width: 600px) and (max-width: 767px) { .hd-scope-t .sh { display: none; } .hd-scope-t .lg { display: inline; } }
@media (max-width: 374px) { :root { --hd-left: 142px; } html:not([data-view="methodology"]):has(#hd-scope:not([hidden])) { --hd-left: 80px; } }
@media (max-width: 359.98px) { :root { --hd-left: 80px; } }
/* the smallest phones (< 360) with a chip: tighter gaps, the chip's text a size down, its x drawn 32 px wide (its
   44 px hit area reaches into the gap and the chip's own text, never a neighbour) */
@media (max-width: 359.98px) {
    html:not([data-view="methodology"]):has(#hd-scope:not([hidden])) { --hd-left: 76px; }
    .hd-nav .hd-in { padding-right: calc(52px + env(safe-area-inset-right, 0px)); }
    .hd-nav .hd-right { gap: 6px; }
    /* the codes on two short lines inside the 52 px row rather than cut ("DE ·" over "Chips") */
    .hd-scope-t { font-size: 12.5px; line-height: 1.75; white-space: normal; overflow-wrap: normal; text-overflow: clip; max-height: 3.5em; }
    .hd-scope-t > span { font-size: inherit; line-height: inherit; }
    .hd-scope-x { position: relative; width: 32px; }
    .hd-scope-x::after { content: ''; position: absolute; top: 0; bottom: 0; left: -12px; right: 0; }
}
/* (2026-11-26) the one-row phone header: the screen-reader-only "Data to" slot sits at the strip's left edge, so its text
   never lies past the right edge of the screen (V-EDGE, V-EULEVEL at 320 and 360) */
@media (max-width: 767px) { .hd-nav .hd-right .hd-data-to { left: 0; top: 0; } }
