/* ================================================
   CoR & EESC DESIGN SYSTEM 2026, documentation page
   Used by cor-eesc-design-system.html only.
   Tokens follow assets/cor-eesc/design-tokens.json;
   UI tokens come from the Artemis, Dashboard and Opinions screens.
   Everything is scoped under .eu-ds so the portfolio theme is untouched.
   ================================================ */

.eu-ds {
    /* Brand: primary */
    --eu-corporate-blue: #003399;
    --eu-corporate-blue-light: #A3C1E0;
    /* Brand: secondary */
    --eu-light-blue: #7DB4E6;
    --eu-teal: #00A69C;
    --eu-purple: #7B3F8D;
    --eu-magenta: #E6007E;
    --eu-orange: #E85D27;
    --eu-yellow: #F9B233;
    --eu-pink: #F4B3C2;
    --eu-lavender: #B09BC8;
    --eu-peach: #F5C2A8;
    --eu-mint: #9DD4CF;
    --eu-cream: #F9E5B8;
    /* Brand: neutrals and backgrounds */
    --eu-black: #000000;
    --eu-white: #FFFFFF;
    --eu-gray-dark: #4D4D4D;
    --eu-gray-medium: #999999;
    --eu-gray-light: #CCCCCC;
    --eu-bg-light-blue: #D4E5F7;
    --eu-bg-beige: #F5E6D3;
    --eu-gradient: linear-gradient(135deg, #E85D27 0%, #E6007E 100%);

    /* UI: application shell */
    --ui-header: #2C4390;
    --ui-navy: #213766;
    --ui-canvas: #F8F9FA;
    --ui-surface: #FFFFFF;
    --ui-subtle: #F1F3F5;
    --ui-border: #DEE2E6;
    --ui-text: #212529;
    --ui-text-secondary: #495057;
    --ui-text-muted: #5F6670;      /* replaces #868E96 (3.3:1) */
    --ui-link: #2C4390;

    /* UI: semantic, text-safe on white (all >= 4.5:1) */
    --ui-success: #0B6E4F;          /* replaces #0CA678 (3.1:1) */
    --ui-success-bg: #E6F4EE;
    --ui-warning: #8A5A00;
    --ui-warning-bg: #FFF4D6;
    --ui-danger: #C92A2A;           /* replaces #FA5252 (3.3:1) */
    --ui-danger-bg: #FDECEC;
    --ui-info: #2C4390;
    --ui-info-bg: #E8EDF8;

    /* Category colours (commissions), text-safe on white */
    --cat-civex: #7B3F8D;
    --cat-coter: #C2410C;
    --cat-econ: #C92A2A;
    --cat-enve: #007A73;
    --cat-nat: #0B6E4F;
    --cat-sedec: #B8005F;

    /* Typography */
    --eu-font: 'Europea', Arial, Helvetica, sans-serif;
    --eu-font-narrow: 'Europea Narrow', Arial, sans-serif;
    --fs-display: 2.5rem;
    --fs-h1: 2rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.25rem;
    --fs-h4: 1.125rem;
    --fs-body-l: 1.125rem;
    --fs-body: 1rem;
    --fs-body-s: 0.875rem;
    --fs-caption: 0.75rem;
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;

    /* Spacing, radius, elevation */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 40px;
    --sp-3xl: 48px;
    --r-none: 0;
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;
    --shadow-1: 0 1px 2px rgba(33, 37, 41, 0.08);
    --shadow-2: 0 4px 12px rgba(33, 37, 41, 0.10);
    --shadow-3: 0 12px 32px rgba(33, 37, 41, 0.18);
    --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #003399;

    background: var(--ui-canvas);
    color: var(--ui-text);
    font-family: var(--eu-font);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    padding-bottom: var(--sp-3xl);
}

.eu-ds *:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.eu-ds a { color: var(--ui-link); }
.eu-ds a:hover, .eu-ds a:focus-visible { color: var(--ui-navy); font-weight: inherit; }

.eu-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

/* ── Documentation scaffolding ─────────────────── */
.eu-hero {
    background: var(--ui-header);
    color: var(--eu-white);
    padding: var(--sp-3xl) 0 var(--sp-2xl);
}
.eu-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--sp-xl);
    align-items: center;
}
.eu-hero .eu-back { color: #DCE3F5; font-size: var(--fs-body-s); text-decoration: underline; text-underline-offset: 3px; }
.eu-hero .eu-back:hover, .eu-hero .eu-back:focus-visible { color: var(--eu-white); }
.eu-hero .eu-eyebrow {
    margin: var(--sp-lg) 0 var(--sp-sm);
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #DCE3F5;
}
.eu-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
}
.eu-hero p { margin-top: var(--sp-md); max-width: 60ch; color: #EEF2FB; font-size: var(--fs-body-l); line-height: var(--lh-relaxed); }
.eu-hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-lg); padding: 0; list-style: none; }
.eu-hero-meta li {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: var(--r-full);
    font-size: var(--fs-body-s);
    color: var(--eu-white);
}
.eu-hero-logo {
    background: var(--eu-white);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
}
.eu-hero-logo img { display: block; width: 100%; height: auto; }

.eu-toc {
    background: var(--ui-surface);
    border-bottom: 1px solid var(--ui-border);
}
.eu-toc ul {
    display: flex;
    gap: var(--sp-xs);
    overflow-x: auto;
    list-style: none;
    padding: var(--sp-sm) 0;
    margin: 0;
}
.eu-toc a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    color: var(--ui-text-secondary);
    font-size: var(--fs-body-s);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.eu-toc a:hover { background: var(--ui-subtle); color: var(--ui-navy); }

.eu-section { padding-top: var(--sp-3xl); scroll-margin-top: 72px; }
.eu-section-head { max-width: 72ch; margin-bottom: var(--sp-lg); }
.eu-section-num {
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--eu-corporate-blue);
}
.eu-section h2 {
    margin-top: var(--sp-xs);
    font-size: var(--fs-h1);
    line-height: var(--lh-tight);
    color: var(--ui-navy);
    font-weight: 800;
}
.eu-section-head p { margin-top: var(--sp-sm); color: var(--ui-text-secondary); line-height: var(--lh-relaxed); }
.eu-h3 {
    margin: var(--sp-xl) 0 var(--sp-md);
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ui-text-secondary);
}

.eu-panel {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-1);
}
.eu-panel + .eu-panel { margin-top: var(--sp-md); }
.eu-grid-2, .eu-grid-3, .eu-grid-4 { display: grid; gap: var(--sp-md); }
.eu-grid-2 > *, .eu-grid-3 > *, .eu-grid-4 > * { min-width: 0; }
.eu-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eu-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eu-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eu-specimen-label {
    display: block;
    margin-bottom: var(--sp-sm);
    font-size: var(--fs-caption);
    color: var(--ui-text-muted);
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.eu-row { display: flex; flex-wrap: wrap; gap: var(--sp-sm); align-items: center; }
.eu-stack > * + * { margin-top: var(--sp-md); }
.eu-note { color: var(--ui-text-secondary); font-size: var(--fs-body-s); line-height: var(--lh-normal); }
.eu-note strong { color: var(--ui-text); }

/* Principles */
.eu-principle h3 { font-size: var(--fs-h4); color: var(--ui-navy); margin-bottom: var(--sp-sm); }
.eu-principle p { font-size: var(--fs-body-s); color: var(--ui-text-secondary); line-height: var(--lh-relaxed); }
.eu-principle .eu-principle-icon { width: 32px; height: 32px; color: var(--eu-corporate-blue); margin-bottom: var(--sp-md); }

/* Logos */
.eu-logo-tile { border-radius: var(--r-md); padding: var(--sp-xl); display: flex; align-items: center; justify-content: center; min-height: 200px; }
.eu-logo-tile img { max-width: 100%; height: auto; }
.eu-logo-tile.positive { background: var(--eu-white); border: 1px solid var(--ui-border); }
.eu-logo-tile.negative { background: var(--eu-corporate-blue); }
.eu-dodont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-md); }
.eu-do, .eu-dont { border-top: 4px solid; padding: var(--sp-md); background: var(--ui-surface); border-radius: 0 0 var(--r-md) var(--r-md); border-left: 1px solid var(--ui-border); border-right: 1px solid var(--ui-border); border-bottom: 1px solid var(--ui-border); }
.eu-do { border-top-color: var(--ui-success); }
.eu-dont { border-top-color: var(--ui-danger); }
.eu-do h4, .eu-dont h4 { font-size: var(--fs-body-s); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-sm); }
.eu-do h4 { color: var(--ui-success); }
.eu-dont h4 { color: var(--ui-danger); }
.eu-do ul, .eu-dont ul { padding-left: 18px; font-size: var(--fs-body-s); color: var(--ui-text-secondary); display: grid; gap: 6px; }

/* Colour swatches */
.eu-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--sp-md); list-style: none; padding: 0; margin: 0; }
.eu-swatch { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--r-md); overflow: hidden; }
.eu-swatch-chip { height: 72px; border-bottom: 1px solid var(--ui-border); }
.eu-swatch-body { padding: 10px 12px 12px; font-size: var(--fs-caption); color: var(--ui-text-secondary); display: grid; gap: 2px; }
.eu-swatch-body strong { color: var(--ui-text); font-size: var(--fs-body-s); }
.eu-swatch-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.72rem; }
.eu-contrast { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.eu-contrast-pill { padding: 1px 6px; border-radius: var(--r-full); font-weight: 700; font-size: 0.68rem; }
.eu-contrast-pill.pass { background: var(--ui-success-bg); color: var(--ui-success); }
.eu-contrast-pill.large { background: var(--ui-warning-bg); color: var(--ui-warning); }
.eu-contrast-pill.fail { background: var(--ui-danger-bg); color: var(--ui-danger); }

/* Typography specimen */
.eu-type-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--sp-md); align-items: baseline; padding: var(--sp-md) 0; border-bottom: 1px solid var(--ui-border); }
.eu-type-row:last-child { border-bottom: 0; }
.eu-type-meta { font-size: var(--fs-caption); color: var(--ui-text-muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.eu-type-meta strong { display: block; font-family: var(--eu-font); color: var(--ui-text); font-size: var(--fs-body-s); }

/* Spacing, radius, elevation */
.eu-space-row { display: grid; grid-template-columns: 70px 60px minmax(0, 1fr); gap: var(--sp-md); align-items: center; font-size: var(--fs-body-s); padding: 6px 0; }
.eu-space-bar { height: 16px; background: var(--eu-corporate-blue); border-radius: 2px; }
.eu-radius-demo { width: 72px; height: 72px; background: var(--eu-bg-light-blue); border: 2px solid var(--eu-corporate-blue); }
.eu-elev-demo { height: 96px; background: var(--ui-surface); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: var(--fs-body-s); color: var(--ui-text-secondary); }

/* ── Components ─────────────────────────────────── */
.eu-icon { width: 20px; height: 20px; flex-shrink: 0; }
.eu-icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

/* App header */
.eu-appbar {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    min-height: 56px;
    padding: 0 var(--sp-md);
    background: var(--ui-header);
    color: var(--eu-white);
    border-radius: var(--r-md) var(--r-md) 0 0;
}
.eu-appbar-name { font-size: 1.35rem; font-weight: 700; font-style: italic; letter-spacing: -0.01em; }
.eu-appbar-mark { width: 30px; height: 30px; color: var(--eu-yellow); }
.eu-appbar-spacer { flex: 1; }
.eu-appbar button {
    display: inline-flex; align-items: center; gap: 4px;
    min-height: 40px; padding: 0 10px;
    background: transparent; border: 0; border-radius: var(--r-sm);
    color: var(--eu-white); font: inherit; font-size: var(--fs-body-s); cursor: pointer;
}
.eu-appbar button:hover { background: rgba(255,255,255,0.12); }
.eu-appbar .eu-focus-light:focus-visible { box-shadow: 0 0 0 2px var(--ui-header), 0 0 0 4px #FFFFFF; }
.eu-user { display: flex; align-items: center; gap: 10px; text-align: left; }
.eu-user-name { display: block; font-weight: 600; font-size: var(--fs-body-s); line-height: 1.2; }
.eu-user-org { display: block; font-size: var(--fs-caption); color: #DCE3F5; }
.eu-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--eu-bg-light-blue); color: var(--ui-navy);
    font-size: var(--fs-caption); font-weight: 700; flex-shrink: 0;
}
.eu-modulebar {
    display: flex; align-items: stretch; flex-wrap: wrap;
    background: var(--ui-surface); border: 1px solid var(--ui-border); border-top: 0;
    border-radius: 0 0 var(--r-md) var(--r-md);
}
.eu-modulebar a {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 var(--sp-md);
    border-right: 1px solid var(--ui-border);
    color: var(--ui-text-secondary); font-size: var(--fs-body-s); text-decoration: none;
}
.eu-modulebar a[aria-current="page"] { color: var(--ui-navy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ui-header); }
.eu-modulebar .eu-search { margin-left: auto; display: flex; align-items: center; padding: 0 var(--sp-sm); }

/* Sidebar */
.eu-sidenav { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--r-md); padding: var(--sp-sm) 0; }
.eu-sidenav-label { padding: var(--sp-md) var(--sp-md) var(--sp-xs); font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.08em; color: var(--ui-text-muted); text-transform: uppercase; }
.eu-sidenav ul { list-style: none; padding: 0; margin: 0; }
.eu-sidenav a {
    display: flex; align-items: center; gap: 10px;
    min-height: 40px; padding: 0 var(--sp-md);
    color: var(--ui-text-secondary); font-size: var(--fs-body-s); text-decoration: none;
}
.eu-sidenav a:hover { background: var(--ui-subtle); }
.eu-sidenav a[aria-current="page"] { background: var(--ui-info-bg); color: var(--ui-navy); font-weight: 700; box-shadow: inset 3px 0 0 var(--ui-header); }
.eu-count {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-full); background: var(--cat-civex); color: var(--eu-white);
    font-size: 0.7rem; font-weight: 700;
}
.eu-count.success { background: var(--ui-success); }
.eu-count.warning { background: var(--eu-yellow); color: var(--eu-black); }

/* Buttons */
.eu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 40px; padding: 0 var(--sp-md);
    border: 1px solid transparent; border-radius: var(--r-sm);
    font: inherit; font-size: var(--fs-body-s); font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.eu-btn-primary { background: var(--ui-header); color: var(--eu-white); }
.eu-btn-primary:hover { background: var(--ui-navy); color: var(--eu-white); }
.eu-btn-secondary { background: var(--ui-surface); color: var(--ui-header); border-color: var(--ui-header); }
.eu-btn-secondary:hover { background: var(--ui-info-bg); }
.eu-btn-text { background: transparent; color: var(--ui-text-secondary); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 10px; }
.eu-btn-text:hover { background: var(--ui-subtle); color: var(--ui-navy); }
.eu-btn-danger { background: var(--ui-danger); color: var(--eu-white); }
.eu-btn-danger:hover { background: #A61E1E; }
.eu-btn-icon { width: 40px; padding: 0; background: var(--ui-header); color: var(--eu-white); }
.eu-btn-icon.ghost { background: transparent; color: var(--ui-text-secondary); }
.eu-btn-icon.ghost:hover { background: var(--ui-subtle); }
.eu-btn-sm { min-height: 32px; padding: 0 12px; font-size: var(--fs-caption); }
.eu-btn-toolbar { min-height: 32px; padding: 0 10px; background: var(--ui-header); color: var(--eu-white); font-weight: 500; }
.eu-btn-toolbar:hover { background: var(--ui-navy); }
.eu-btn[disabled], .eu-btn[aria-disabled="true"] { background: var(--ui-subtle); color: #737B83; border-color: var(--ui-border); cursor: not-allowed; }

/* Form controls */
.eu-field { display: grid; gap: 6px; }
.eu-label { font-size: var(--fs-body-s); font-weight: 600; color: var(--ui-text); }
.eu-help { font-size: var(--fs-caption); color: var(--ui-text-muted); }
.eu-input, .eu-select {
    width: 100%; min-height: 40px; padding: 0 12px;
    background: var(--ui-surface); color: var(--ui-text);
    border: 1px solid #8A9199; border-radius: var(--r-sm);
    font: inherit; font-size: var(--fs-body-s);
}
.eu-input::placeholder { color: var(--ui-text-muted); }
.eu-input:hover, .eu-select:hover { border-color: var(--ui-text-secondary); }
.eu-input:focus-visible, .eu-select:focus-visible { border-color: var(--eu-corporate-blue); }
.eu-field.error .eu-input { border-color: var(--ui-danger); border-width: 2px; }
.eu-error { display: flex; gap: 6px; align-items: center; font-size: var(--fs-caption); color: var(--ui-danger); font-weight: 600; }
.eu-input-icon { position: relative; }
.eu-input-icon .eu-icon-sm { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ui-text-muted); pointer-events: none; }
.eu-input-icon .eu-input { padding-left: 36px; }
.eu-check { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: var(--fs-body-s); cursor: pointer; }
.eu-check input { width: 18px; height: 18px; accent-color: var(--ui-header); margin: 0; }
.eu-switch { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-body-s); cursor: pointer; }
.eu-switch input { appearance: none; width: 40px; height: 22px; border-radius: var(--r-full); background: #8A9199; position: relative; cursor: pointer; margin: 0; transition: background 0.15s; }
.eu-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--eu-white); transition: transform 0.15s; }
.eu-switch input:checked { background: var(--ui-header); }
.eu-switch input:checked::after { transform: translateX(18px); }
.eu-segmented { display: inline-flex; padding: 3px; background: var(--ui-subtle); border-radius: var(--r-md); gap: 2px; }
.eu-segmented button {
    min-height: 32px; padding: 0 14px; border: 0; border-radius: 6px;
    background: transparent; color: var(--ui-text-secondary);
    font: inherit; font-size: var(--fs-caption); font-weight: 600; cursor: pointer;
}
.eu-segmented button[aria-pressed="true"] { background: var(--ui-surface); color: var(--ui-navy); box-shadow: var(--shadow-1); }

/* Filter bar */
.eu-filterbar { display: flex; flex-wrap: wrap; gap: var(--sp-sm); padding: var(--sp-sm); background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--r-md); }
.eu-filter {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 14px;
    background: var(--ui-surface); color: var(--ui-text);
    border: 1px solid var(--ui-border); border-radius: var(--r-md);
    font: inherit; font-size: var(--fs-body-s); cursor: pointer;
}
.eu-filter:hover { border-color: #8A9199; }
.eu-filter b { color: var(--ui-header); }
.eu-filter[aria-expanded="true"] { border-color: var(--ui-header); }
.eu-chip {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 32px; padding: 0 6px 0 12px;
    border-radius: var(--r-full); background: var(--ui-info-bg); color: var(--ui-navy);
    font-size: var(--fs-caption); font-weight: 600;
}
.eu-chip button { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.eu-chip button:hover { background: rgba(33,55,102,0.12); }

/* Badges and tags */
.eu-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 10px; border-radius: var(--r-full);
    font-size: var(--fs-caption); font-weight: 700;
}
.eu-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eu-status.draft { background: var(--ui-subtle); color: var(--ui-text-secondary); }
.eu-status.submitted { background: var(--ui-info-bg); color: var(--ui-info); }
.eu-status.adopted { background: var(--ui-success-bg); color: var(--ui-success); }
.eu-status.ongoing { background: var(--ui-warning-bg); color: var(--ui-warning); }
.eu-status.rejected { background: var(--ui-danger-bg); color: var(--ui-danger); }
.eu-tag {
    display: inline-flex; align-items: center;
    padding: 3px 8px; border-radius: var(--r-sm);
    font-size: var(--fs-caption); font-weight: 600; color: var(--eu-white);
    background: var(--ui-header);
}
.eu-tag.cor { background: var(--ui-navy); }
.eu-tag.eesc { background: #1F5F99; }
.eu-tag.group { background: var(--ui-header); }
.eu-tag.role { background: var(--cat-sedec); }
.eu-tag.dept { background: var(--ui-success); }
.eu-tag.civex { background: var(--cat-civex); }
.eu-tag.coter { background: var(--cat-coter); }
.eu-tag.econ { background: var(--cat-econ); }
.eu-tag.enve { background: var(--cat-enve); }
.eu-tag.nat { background: var(--cat-nat); }
.eu-tag.sedec { background: var(--cat-sedec); }

/* Cards and KPIs */
.eu-card { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.eu-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); padding: var(--sp-md) var(--sp-lg); }
.eu-card-head h3 { font-size: var(--fs-h4); color: var(--ui-text); font-weight: 700; }
.eu-card-body { padding: 0 var(--sp-lg) var(--sp-lg); }
.eu-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-sm); }
.eu-kpi { padding: 12px 14px; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--r-md); }
.eu-kpi-value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ui-navy); line-height: 1.1; }
.eu-kpi-label { display: block; font-size: var(--fs-body-s); color: var(--ui-text-secondary); }
.eu-kpi.cat { border: 0; color: var(--eu-white); }
.eu-kpi.cat .eu-kpi-value, .eu-kpi.cat .eu-kpi-label { color: var(--eu-white); }
.eu-kpi.cat .eu-kpi-value { font-size: 1.15rem; }
.eu-kpi-title { display: block; font-size: var(--fs-body-s); font-weight: 800; letter-spacing: 0.04em; }

/* Data grid */
.eu-grid-wrap { overflow: auto; max-height: 420px; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--r-md); }
.eu-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-body-s); min-width: 820px; }
.eu-table caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--ui-navy); }
.eu-table th, .eu-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--ui-border); white-space: nowrap; }
.eu-table thead th { position: sticky; top: 0; z-index: 1; background: var(--ui-subtle); color: var(--ui-text); font-weight: 700; font-size: var(--fs-body-s); }
.eu-table tbody tr:hover > * { background: #F5F7FB; }
.eu-table tbody th { font-weight: 700; color: var(--ui-navy); }
.eu-table td.num { font-variant-numeric: tabular-nums; }
.eu-sort {
    display: inline-flex; align-items: center; gap: 4px;
    min-height: 32px; padding: 0 4px; margin: -6px -4px;
    border: 0; background: transparent; font: inherit; font-weight: 700; color: inherit; cursor: pointer; border-radius: var(--r-sm);
}
.eu-sort .eu-icon-sm { opacity: 0.55; }
[aria-sort="ascending"] .eu-sort .eu-icon-sm, [aria-sort="descending"] .eu-sort .eu-icon-sm { opacity: 1; color: var(--ui-header); }
[aria-sort="descending"] .eu-sort .eu-icon-sm { transform: rotate(180deg); }
.eu-grid-footer {
    display: flex; flex-wrap: wrap; gap: var(--sp-sm); align-items: center; justify-content: space-between;
    margin-top: var(--sp-sm); padding: var(--sp-sm) 12px;
    background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--r-md);
    font-size: var(--fs-body-s); color: var(--ui-text-secondary);
}
.eu-grid-footer .eu-row { gap: 6px; }
.eu-grid-footer select { min-height: 32px; width: auto; }

/* Workflow table actions */
.eu-person { display: inline-flex; align-items: center; gap: 8px; }
.eu-person .eu-icon-sm { color: var(--ui-header); }
.eu-table tr.is-active > * { color: var(--ui-success); font-weight: 600; }
.eu-table-actions { display: flex; justify-content: flex-end; gap: 4px; padding: var(--sp-sm) 0 0; }

/* Dialog */
.eu-dialog {
    width: min(1000px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0; border: 0; border-radius: var(--r-md);
    box-shadow: var(--shadow-3); color: var(--ui-text); font-family: var(--eu-font);
}
.eu-dialog::backdrop { background: rgba(33, 37, 41, 0.55); }
.eu-dialog-head { display: flex; align-items: center; gap: var(--sp-sm); padding: var(--sp-md) var(--sp-lg); border-bottom: 1px solid var(--ui-border); }
.eu-dialog-head h2 { font-size: var(--fs-body); font-weight: 700; color: var(--ui-text); margin-right: auto; }
.eu-dialog-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 360px; }
.eu-vtabs { border-right: 1px solid var(--ui-border); padding: var(--sp-sm) 0; }
.eu-vtabs [role="tab"] {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 48px; padding: 0 var(--sp-md);
    border: 0; background: transparent; color: var(--ui-text-secondary);
    font: inherit; font-size: var(--fs-body-s); text-align: left; cursor: pointer;
}
.eu-vtabs [role="tab"]:hover { background: var(--ui-subtle); }
.eu-vtabs [role="tab"][aria-selected="true"] { background: var(--ui-info-bg); color: var(--ui-header); font-weight: 700; box-shadow: inset 3px 0 0 var(--ui-header); }
.eu-tabpanel { padding: var(--sp-md); overflow: auto; }
.eu-tabpanel .eu-grid-wrap { max-height: 300px; }
/* Inline (non-modal) preview of the dialog */
.eu-dialog-preview { border: 1px solid var(--ui-border); border-radius: var(--r-md); background: var(--ui-surface); box-shadow: var(--shadow-2); overflow: hidden; }

/* Horizontal tabs */
.eu-tabs [role="tablist"] { display: flex; gap: var(--sp-xs); border-bottom: 1px solid var(--ui-border); overflow-x: auto; }
.eu-tabs [role="tab"] {
    min-height: 44px; padding: 0 var(--sp-md);
    border: 0; background: transparent; color: var(--ui-text-secondary);
    font: inherit; font-size: var(--fs-body-s); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.eu-tabs [role="tab"][aria-selected="true"] { color: var(--ui-navy); box-shadow: inset 0 -3px 0 var(--ui-header); }
.eu-tabs [role="tabpanel"] { padding: var(--sp-md) 0 0; font-size: var(--fs-body-s); color: var(--ui-text-secondary); }

/* Timeline */
.eu-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.eu-timeline li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--sp-md); position: relative; padding-bottom: var(--sp-md); }
.eu-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--ui-border); }
.eu-timeline-dot { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--eu-white); }
.eu-timeline-card { padding: 12px 16px; border: 1px solid var(--ui-border); border-radius: var(--r-md); background: var(--ui-surface); }
.eu-timeline-card h4 { font-size: var(--fs-h4); color: var(--ui-text); }
.eu-timeline-card time { display: block; font-size: var(--fs-caption); color: var(--ui-text-muted); margin: 2px 0 6px; }
.eu-timeline-card p { font-size: var(--fs-body-s); color: var(--ui-text-secondary); }

/* Member list */
.eu-list { list-style: none; padding: 0; margin: 0; }
.eu-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ui-border); }
.eu-list li:last-child { border-bottom: 0; }
.eu-list-main { flex: 1; min-width: 160px; }
.eu-list-main strong { display: block; font-size: var(--fs-body-s); }
.eu-list-main span { font-size: var(--fs-caption); color: var(--ui-text-muted); }

/* Alerts and toast */
.eu-alert { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-radius: var(--r-md); border-left: 4px solid; font-size: var(--fs-body-s); }
.eu-alert strong { display: block; color: var(--ui-text); }
.eu-alert p { color: var(--ui-text-secondary); }
.eu-alert.info { background: var(--ui-info-bg); border-color: var(--ui-info); color: var(--ui-info); }
.eu-alert.success { background: var(--ui-success-bg); border-color: var(--ui-success); color: var(--ui-success); }
.eu-alert.warning { background: var(--ui-warning-bg); border-color: #E8A304; color: var(--ui-warning); }
.eu-alert.error { background: var(--ui-danger-bg); border-color: var(--ui-danger); color: var(--ui-danger); }
.eu-toast { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--ui-navy); color: var(--eu-white); box-shadow: var(--shadow-2); font-size: var(--fs-body-s); }
.eu-toast button { min-height: 32px; padding: 0 8px; border: 0; background: transparent; color: #FFE08A; font: inherit; font-weight: 700; cursor: pointer; text-transform: uppercase; }

/* Empty / error state */
.eu-empty { text-align: center; padding: var(--sp-2xl) var(--sp-lg); }
.eu-empty h3, .eu-empty h4 { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-h3); color: var(--ui-text); }
.eu-empty p { margin-top: var(--sp-sm); color: var(--ui-text-secondary); font-size: var(--fs-body-s); }
.eu-empty .eu-empty-art { width: 96px; height: 96px; margin: var(--sp-md) auto; color: var(--eu-corporate-blue-light); }

/* Patterns: screenshots */
.eu-shot { margin: 0; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.eu-shot a { display: block; background: var(--ui-subtle); }
.eu-shot img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: top left; }
.eu-shot figcaption { padding: var(--sp-md); font-size: var(--fs-body-s); color: var(--ui-text-secondary); }
.eu-shot figcaption strong { display: block; color: var(--ui-text); font-size: var(--fs-body); margin-bottom: 4px; }

/* Accessibility table */
.eu-a11y-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-s); background: var(--ui-surface); }
.eu-a11y-table th, .eu-a11y-table td { padding: 10px 14px; border-bottom: 1px solid var(--ui-border); text-align: left; vertical-align: top; }
.eu-a11y-table thead th { background: var(--ui-subtle); }
.eu-mini-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,0.15); }

/* Tokens code block */
.eu-code { position: relative; }
.eu-code pre {
    max-height: 420px; overflow: auto; margin: 0; padding: var(--sp-md) var(--sp-lg);
    background: #16213E; color: #E6ECFA; border-radius: var(--r-md);
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.6;
}
.eu-code .eu-btn { position: absolute; top: 10px; right: 14px; }

.eu-disclaimer { margin-top: var(--sp-3xl); padding: var(--sp-md) var(--sp-lg); border: 1px dashed #8A9199; border-radius: var(--r-md); font-size: var(--fs-body-s); color: var(--ui-text-secondary); background: var(--ui-surface); }

/* Logos: quick facts, family, clear space, backgrounds, don'ts */
.eu-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-md); }
.eu-quick-card { background: var(--ui-header); color: var(--eu-white); border-radius: var(--r-md); padding: var(--sp-lg); display: grid; gap: 6px; align-content: start; font-size: var(--fs-body-s); line-height: var(--lh-normal); }
.eu-quick-num { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #FFED00; }
.eu-family-intro { max-width: 72ch; margin-bottom: var(--sp-md); }
.eu-family-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-md); }
.eu-family-item { margin: 0; grid-column: span 2; }
.eu-family-item:has(.wide) { grid-column: span 3; }
.eu-family-item .eu-logo-tile { min-height: 200px; padding: var(--sp-md); }
.eu-family-item .eu-logo-tile img { max-height: 168px; width: auto; }
.eu-family-item .eu-logo-tile.wide img { max-height: 76px; }
.eu-family-item .eu-logo-tile img.eu-logo-mute { max-height: 88px; }
.eu-family-item figcaption { margin-top: var(--sp-sm); font-size: var(--fs-body-s); color: var(--ui-text-secondary); line-height: var(--lh-normal); }
.eu-family-item figcaption strong { display: block; color: var(--ui-text); }
.eu-logo-tile.brand-blue { background: #2C4390; }
.eu-spec-table { min-width: 560px; width: 100%; }
.eu-spec-table caption { text-align: left; padding: 12px 14px; font-weight: 700; color: var(--ui-navy); }
.eu-spec-table td { white-space: normal; }
.eu-clear-demo { position: relative; display: flex; justify-content: center; background: repeating-linear-gradient(45deg, #E8EDF8 0 6px, #F5F7FB 6px 12px); border: 1px dashed var(--ui-header); border-radius: var(--r-sm); padding: 28px; margin-bottom: var(--sp-md); }
.eu-clear-demo img { height: 150px; width: auto; background: var(--eu-white); outline: 1px solid rgba(44, 67, 144, 0.35); }
.eu-clear-tag { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); background: var(--ui-danger); color: var(--eu-white); font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: var(--r-sm); }
.eu-bg-grid, .eu-donts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-md); }
.eu-bg-grid li, .eu-donts li { display: grid; gap: var(--sp-sm); align-content: start; font-size: var(--fs-body-s); color: var(--ui-text-secondary); }
.eu-bg-chip, .eu-dont-chip { position: relative; height: 120px; border-radius: var(--r-md); border: 1px solid var(--ui-border); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--eu-white); }
.eu-bg-chip img, .eu-dont-chip img { max-height: 84px; max-width: 80%; width: auto; }
.eu-bg-grid b { font-weight: 700; }
.eu-bg-grid .ok b { color: var(--ui-success); }
.eu-bg-grid .no b { color: var(--ui-danger); }
.eu-bg-grid .no .eu-bg-chip::after, .eu-dont-chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 2px), rgba(201, 42, 42, 0.9) calc(50% - 2px), rgba(201, 42, 42, 0.9) calc(50% + 2px), transparent calc(50% + 2px)); }
.eu-donts span::before { content: "✕ "; color: var(--ui-danger); font-weight: 700; }
.eu-list-check { list-style: none; padding: 0; margin: var(--sp-md) 0 0; display: grid; gap: 8px; font-size: var(--fs-body-s); color: var(--ui-text-secondary); }
.eu-list-check li { padding-left: 26px; position: relative; }
.eu-list-check li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--ui-success-bg); color: var(--ui-success); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; }

/* Headers */
.eu-header-tools { display: flex; flex-wrap: wrap; gap: var(--sp-lg); align-items: center; margin-bottom: var(--sp-sm); }
.eu-hdr-frame { position: relative; border: 1px solid var(--ui-border); border-radius: var(--r-md); overflow: hidden; background: var(--eu-white); box-shadow: var(--shadow-2); }
.eu-hdr { position: relative; display: flex; align-items: center; gap: var(--sp-md); background: #2C4390; color: var(--eu-white); padding: 0 20px; }
.eu-hdr-ext { height: 80px; }
.eu-hdr-compact, .eu-hdr-mobile { height: 64px; }
.eu-hdr-mobile { padding: 0 16px; gap: 12px; }
.eu-hdr-app { display: flex; align-items: center; gap: 14px; min-width: 0; }
.eu-hdr-icon { flex-shrink: 0; }
.eu-hdr-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eu-hdr-compact .eu-hdr-title, .eu-hdr-mobile .eu-hdr-title { font-size: 1.15rem; }
.eu-hdr-mobile .eu-hdr-title { flex: 1; }
.eu-hdr-logo { margin-left: auto; display: flex; align-items: center; padding: 10px 0; flex-shrink: 0; border-radius: var(--r-sm); }
.eu-hdr .eu-hdr-logo:focus-visible, .eu-hdr-menu:focus-visible { box-shadow: 0 0 0 2px #2C4390, 0 0 0 4px #FFFFFF; }
.eu-hdr-web .eu-hdr-logo:focus-visible { box-shadow: var(--focus-ring); }
.eu-hdr-logo img { width: auto; display: block; }
[data-org-scope="cor"] .is-eesc, [data-org-scope="eesc"] .is-cor { display: none; }
.eu-hdr-menu { width: 40px; height: 40px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--eu-white); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.eu-hdr-menu:hover { background: rgba(255, 255, 255, 0.12); }
.eu-hdr-phone { max-width: 375px; }
.eu-hdr-crumbs { position: relative; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--ui-canvas); border-bottom: 1px solid var(--ui-border); font-size: var(--fs-body-s); color: var(--ui-text-muted); }
.eu-hdr-crumbs a { color: var(--ui-header); display: inline-flex; }
.eu-hdr-crumbs [aria-current] { color: var(--ui-text); font-weight: 600; }
.eu-hdr-web { height: 96px; background: var(--eu-white); color: var(--ui-text); border-bottom: 4px solid #2C4390; gap: var(--sp-xl); }
.eu-hdr-web .eu-hdr-logo { margin-left: 0; }
.eu-hdr-nav { display: flex; gap: var(--sp-lg); margin-left: auto; font-weight: 600; font-size: var(--fs-body-s); }
.eu-hdr-nav a { color: var(--ui-navy); text-decoration: none; padding: 8px 0; }
.eu-hdr-nav a:hover { box-shadow: inset 0 -3px 0 #2C4390; }
.eu-hdr-lang { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 1px solid var(--ui-border); border-radius: var(--r-sm); background: var(--eu-white); color: var(--ui-navy); font-weight: 700; cursor: pointer; }
.eu-rl { display: none; position: absolute; pointer-events: none; z-index: 2; }
.show-redlines .eu-rl { display: block; }
.eu-rl-h { width: 0; border-left: 1px solid #E03131; }
.eu-rl-w { height: 0; border-top: 1px solid #E03131; }
.eu-rl b { position: absolute; background: #C92A2A; color: #FFFFFF; font-size: 0.68rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; }
.eu-rl-h b { top: 50%; left: 4px; transform: translateY(-50%); }
.eu-rl-w b { top: 4px; left: 50%; transform: translateX(-50%); }
.show-redlines .eu-hdr-app, .show-redlines .eu-hdr-logo { outline: 1px dashed rgba(255, 214, 97, 0.9); }

/* PM launch checklist */
.eu-checklist-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-md); margin-bottom: var(--sp-md); }
.eu-checklist-head p { font-size: var(--fs-body-s); color: var(--ui-text-secondary); }
.eu-progress { flex: 1; min-width: 160px; height: 8px; background: var(--ui-subtle); border-radius: var(--r-full); overflow: hidden; }
.eu-progress span { display: block; height: 100%; width: 0; background: var(--ui-header); border-radius: inherit; transition: width 0.2s; }
.eu-checklist.is-complete .eu-progress span { background: var(--ui-success); }
.eu-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px var(--sp-lg); }
.eu-checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: var(--r-sm); font-size: var(--fs-body-s); color: var(--ui-text); cursor: pointer; line-height: var(--lh-normal); }
.eu-checklist label:hover { background: var(--ui-subtle); }
.eu-checklist input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ui-header); }

/* Responsive */
@media (max-width: 1024px) {
    .eu-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eu-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eu-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eu-family-item, .eu-family-item:has(.wide) { grid-column: auto; }
    .eu-bg-grid, .eu-donts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .eu-hero-grid, .eu-grid-2, .eu-grid-3, .eu-grid-4, .eu-dodont { grid-template-columns: 1fr; }
    .eu-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eu-family-grid { grid-template-columns: 1fr; }
    .eu-bg-grid, .eu-donts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eu-checklist ul { grid-template-columns: 1fr; }
    .eu-hdr-ext { height: 64px; }
    .eu-hdr-ext .eu-hdr-icon { width: 32px; height: 32px; }
    .eu-hdr-ext .eu-hdr-title { font-size: 1.15rem; }
    .eu-hdr-ext .eu-hdr-logo img.is-cor { height: 44px; }
    .eu-hdr-ext .eu-hdr-logo img.is-eesc { height: 38px; }
    .eu-hdr-ext .eu-rl, .eu-hdr-compact .eu-rl, .eu-hdr-crumbs .eu-rl { display: none; }
    .eu-hdr-nav { display: none; }
    .eu-hdr-web { height: 80px; }
    .eu-hdr-web .eu-hdr-lang { margin-left: auto; }
    .eu-type-row { grid-template-columns: 1fr; gap: 4px; }
    .eu-dialog-body { grid-template-columns: 1fr; }
    .eu-vtabs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ui-border); padding: 0; }
    .eu-vtabs [role="tab"] { width: auto; white-space: nowrap; }
    .eu-vtabs [role="tab"][aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--ui-header); }
    .eu-appbar .eu-user-text { display: none; }
    .eu-modulebar .eu-search { margin-left: 0; }
    .eu-shot img { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
    .eu-switch input, .eu-switch input::after { transition: none; }
}

/* Accessibility: bigger targets in the header demos, wrapping section menu on small screens */
.eu-hdr-crumbs a { min-height: 24px; min-width: 24px; align-items: center; justify-content: center; }
.eu-switch input { height: 24px; width: 42px; }
.eu-switch input::after { top: 4px; }
@media (max-width: 767px) {
    .eu-toc ul { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 420px) {
    .eu-appbar { flex-wrap: wrap; row-gap: 4px; padding: 8px 12px; }
    .eu-appbar-spacer { display: none; }
}
