/* ═══════════════════════════════════════════════════════════
   AfriVote — Design System
   Exact color schema from brand stylesheet
═══════════════════════════════════════════════════════════ */

/* ── Palette ───────────────────────────────────────────────
   Two things worth knowing before editing these:

   1. Brand navy is split in two. `--primary` is the brand used as INK (links,
      headings, icons); `--primary-solid` is the brand used as a SURFACE
      (buttons, nav rails, headers). They are identical in light mode and
      diverge in dark mode, where navy text would be unreadable on a dark page
      but a navy header still looks right.
   2. `--dark` is the BODY TEXT colour and `--dark-solid` is a dark panel
      surface. In dark mode `--dark` becomes light — the name is historical.

   Every colour a theme changes lives in this block and the
   [data-theme="dark"] block below it. */
:root {
    --primary:       #1a3a6c;
    --primary-solid: #1a3a6c;
    --secondary:     #2c5282;
    --accent:        #e63946;

    --bg:            #f8f9fa;
    --light:         #f8f9fa;
    --surface:       #ffffff;
    --dark:          #212529;
    --dark-solid:    #212529;
    --gray:          #6c757d;
    --gray-light:    #dee2e6;
    --white:         #ffffff;

    --success:       #28a745;
    --success-ink:   #155724;
    --warning:       #ffc107;
    --warning-ink:   #856404;
    --danger-ink:    #842029;

    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --radius:     8px;
    --radius-lg:  12px;
    --row-hover:     #f8faff;
    --shadow:     0 5px 25px rgba(0,0,0,0.08);
    --shadow-lg:  0 15px 35px rgba(0,0,0,0.15);

    color-scheme: light;
}

/* ── Dark theme ────────────────────────────────────────────
   Set by js/theme.js as data-theme="dark" on <html>. Brand hues stay
   recognisable but are lifted so they keep their contrast against the dark
   page, and shadows get heavier so cards still read as raised. */
[data-theme="dark"] {
    --primary:       #8fb8f0;
    --primary-solid: #23406e;
    --secondary:     #4a7ab5;
    --accent:        #ff6b78;

    --bg:            #0e141d;
    --light:         #0e141d;
    --surface:       #18212e;
    --dark:          #e7edf6;
    --dark-solid:    #121a26;
    --gray:          #97a5b8;
    --gray-light:    #2b3a4e;

    --success:       #3ddc84;
    --success-ink:   #7ee2a8;
    --warning:       #ffd166;
    --warning-ink:   #ffd166;
    --danger-ink:    #ff8a94;

    --row-hover:     rgba(143,184,240,0.10);
    --shadow:        0 5px 25px rgba(0,0,0,0.45);
    --shadow-lg:     0 15px 35px rgba(0,0,0,0.60);

    color-scheme: dark;
}

/* ── Theme switch (sidebar) ──────────────────────────────── */
/* Lives in the sidebar rather than Settings so signed-out visitors can reach
   it. The sidebar is navy in both themes, so these colours are fixed. */
.theme-switch {
    display: flex; gap: 4px; margin: 0 0 12px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius); padding: 4px;
}
.theme-switch button {
    flex: 1; background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.60); padding: 7px 0; border-radius: 6px;
    font-size: .85rem; line-height: 1; transition: var(--transition);
}
.theme-switch button:hover { color: var(--white); background: rgba(255,255,255,.10); }
.theme-switch button.active { background: var(--accent); color: var(--white); }
.theme-switch button:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; }

/* ── Theme picker (Settings) ─────────────────────────────── */
.theme-picker { display:flex; gap:8px; flex-wrap:wrap; }
.theme-option {
    flex:1 1 88px;
    display:flex; flex-direction:column; align-items:center; gap:6px;
    padding:12px 10px; cursor:pointer;
    background:var(--light); color:var(--gray);
    border:2px solid var(--gray-light); border-radius:var(--radius);
    font-family:inherit; font-size:.82rem; font-weight:600;
    transition:var(--transition);
}
.theme-option i { font-size:1.15rem; }
.theme-option:hover { border-color:var(--secondary); color:var(--primary); }
.theme-option.active {
    border-color:var(--accent); color:var(--primary);
    background:var(--surface); box-shadow:var(--shadow);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img { max-width:100%; display:block; }
a   { color:var(--primary); text-decoration:none; transition:var(--transition); }
a:hover { color:var(--accent); }
ul  { list-style:none; }

/* ── Button ──────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(230,57,70,0.25);
}
.btn:hover {
    background: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230,57,70,0.35);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
}
.btn-outline:hover { background:var(--white); color:var(--primary); transform:translateY(-3px); }
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}
.btn-outline-primary:hover { background:var(--primary-solid); color:#fff; }
.btn-sm  { padding: 9px 20px; font-size:.85rem; letter-spacing:.5px; }
.btn-block { display:block; width:100%; text-align:center; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top:0; left:0;
    height: 100vh;
    width: 280px;
    background: var(--primary-solid);
    box-shadow: 3px 0 15px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(-100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar.active { transform: translateX(0); }

/* The rail is hidden at every width and only appears when the visitor asks for
   it — clicking the menu button, or hovering the left edge. Content runs the
   full width, so no space is reserved for a menu that is usually not there. */
@media (min-width: 993px) {
    .sidebar            { transform: translateX(-100%); }
    #app                { margin-left: 0; }
    .content-overlay    { display: none !important; }
}

/* A thin invisible strip down the left edge that reveals the rail on hover.
   It sits below the menu button and the rail so it never swallows a click. */
.sidebar-hover-zone {
    position: fixed; top: 0; left: 0; bottom: 0; width: 16px;
    display: none; z-index: 998; background: transparent;
}

/* Revealed on desktop only. This has to come AFTER the rule above: both have the
   same specificity, so an override declared earlier in the file loses — which is
   exactly how this strip ended up permanently hidden and hover never fired. */
@media (min-width: 993px) {
    .sidebar-hover-zone { display: block; }
}

/* Brand lockup in the sidebar. The rail is 280px with 25px padding, so the
   logo is sized to fit the space rather than its natural 480px width. */
.brand-logo {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
}

/* The logo band follows the surface colour, so the mark has to switch with it.
   Both files are small and both are loaded; only one is ever displayed. */
.brand-logo-on-dark { display: none; }
[data-theme="dark"] .brand-logo-on-dark  { display: block; }
[data-theme="dark"] .brand-logo-on-light { display: none; }

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo-placeholder .logo-icon {
    width: 50px; height: 50px;
    background: var(--primary-solid);
    border-radius: var(--radius);
    display: flex; align-items:center; justify-content:center;
    color: white;
    margin-right: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
}
.logo-placeholder span {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-nav ul { padding: 20px 0; }
.sidebar-nav ul li { margin: 5px 0; }
.sidebar-nav ul li a {
    display: flex; align-items: center;
    padding: 15px 25px;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.05rem;
    border-left: 3px solid transparent;
}
.sidebar-nav ul li a i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 25px; text-align: center;
}
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    background: rgba(255,255,255,0.10);
    color: white;
    padding-left: 30px;
    border-left-color: var(--accent);
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}

/* ── Menu toggle ─────────────────────────────────────────── */
.menu-toggle {
    position: fixed;
    top: 25px; left: 25px;
    width: 50px; height: 50px;
    background: var(--primary-solid);
    border-radius: var(--radius);
    display: flex; align-items:center; justify-content:center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 900;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.20);
    transition: var(--transition);
}
.menu-toggle:hover { background:var(--secondary); transform:scale(1.05); }

.content-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 990;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.content-overlay.active { opacity:1; visibility:visible; }

/* ── Loading spinner ─────────────────────────────────────── */
.app-loading {
    display: flex; flex-direction:column;
    align-items:center; justify-content:center;
    min-height: 60vh; gap:16px;
    color: var(--gray);
}
.spinner {
    width:44px; height:44px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Page wrapper ────────────────────────────────────────── */
.page { padding: 80px 30px 60px; max-width:1200px; margin:0 auto; }
.page-header { margin-bottom:36px; }
.page-header h1 { font-size:2rem; color:var(--primary); margin-bottom:6px; }
.page-header p  { color:var(--gray); font-size:1.05rem; }

/* ── Section title ───────────────────────────────────────── */
.section-title { text-align:center; margin-bottom:60px; }
.section-title h2 {
    font-size: 2.8rem; color:var(--primary);
    position: relative; display:inline-block;
    margin-bottom: 20px;
}
.section-title h2::after {
    content: '';
    position: absolute; bottom:-15px; left:50%; transform:translateX(-50%);
    width:80px; height:5px;
    background:var(--accent); border-radius:3px;
}
.section-title p { color:var(--gray); max-width:700px; margin:25px auto 0; font-size:1.1rem; }

/* ── Card (from brand CSS) ───────────────────────────────── */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}
.card::before {
    content: '';
    position: absolute; top:0; left:0;
    width: 5px; height:100%;
    background: var(--accent);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}
.card-body  { padding: 28px; }
.card-img   { width:100%; height:200px; object-fit:cover; }
.card-icon  { font-size:2.8rem; color:var(--primary); margin-bottom:16px; }
.card h3    { font-size:1.5rem; color:var(--primary); margin-bottom:12px; }
.card p     { color:var(--gray); font-size:1rem; line-height:1.6; }
.read-more  {
    position:absolute; bottom:18px; right:18px;
    color:var(--accent); font-weight:600; font-size:.85rem;
    opacity:.75; transition:var(--transition);
}
.card:hover .read-more { opacity:1; transform:translateX(5px); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    height: 100vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, #1a3a6c 0%, #2c5282 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* ── Rotating hero backgrounds ────────────────────────────────
   Each photograph is its own layer so they can crossfade. The image is only
   fetched when the slide is about to be shown, so five photographs do not all
   download during first paint. */
.hero-slides { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.1s ease, transform 8s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

/* The photograph is a real <img> rather than a CSS background so that it is
   cropped to whatever the screen actually is — a phone in portrait, a laptop in
   landscape — instead of being scaled by the background-size algorithm, which
   phones were not honouring the same way. object-fit does the cropping. */
.hero-slide img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tint layer above the photographs. Light enough that the photograph still reads
   as a photograph rather than a flat navy panel, dark enough that white text
   survives the busiest of them; the headline carries a shadow too, for the
   frames where the image behind it is bright. */
.hero-slides::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,58,108,.84) 0%, rgba(44,82,130,.74) 100%);
}

.hero-dots {
    position: absolute; z-index: 2; bottom: 28px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; align-items: center;
}
.hero-dot {
    width: 9px; height: 9px; padding: 0; border: 0; cursor: pointer;
    border-radius: 50%; background: rgba(255,255,255,.42);
    transition: width .3s ease, background .3s ease, border-radius .3s ease;
}
.hero-dot.is-active { width: 26px; border-radius: 5px; background: #fff; }
.hero-dot:hover { background: rgba(255,255,255,.75); }

/* Respect the accessibility preference: no movement, no auto-advance. */
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity .3s ease; transform: none; }
    .hero-dot  { transition: none; }
}
.hero-content { position: relative; z-index: 1; max-width:650px; padding:0 30px; }
.hero h1 {
    font-size: 3.8rem; margin-bottom:25px;
    line-height:1.15; text-shadow:0 2px 14px rgba(0,0,0,0.45);
}
.hero p  { font-size:1.25rem; margin-bottom:40px; opacity:.92; max-width:600px; text-shadow:0 1px 8px rgba(0,0,0,0.4); }
.hero-cta { display:flex; gap:16px; flex-wrap:wrap; }

.tagline {
    display: inline-block;
    background: var(--accent);
    padding: 8px 20px; border-radius:30px;
    margin-bottom: 20px;
    font-weight:600; font-size:1.1rem; letter-spacing:1px;
}

/* ── Industry cards (staggered — matches brand) ──────────── */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px; margin-top:60px;
}
.industry-grid .card:nth-child(1) { transform:translateY(-20px) rotate(-3deg); }
.industry-grid .card:nth-child(2) { transform:translateY(20px)  rotate(2deg);  }
.industry-grid .card:nth-child(3) { transform:translateY(-20px) rotate(3deg);  }
.industry-grid .card:hover        { transform:translateY(-10px) rotate(0deg) !important; }

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap:20px; margin-bottom:40px;
}
.stat-card {
    background:var(--surface); border-radius:var(--radius-lg);
    padding:24px; box-shadow:var(--shadow); text-align:center;
    border-top:4px solid var(--accent);
}
.stat-value { font-family:'Montserrat',sans-serif; font-size:2.2rem; font-weight:700; color:var(--primary); }
.stat-label { color:var(--gray); font-size:.85rem; margin-top:4px; }

/* ── Grid helpers ────────────────────────────────────────── */
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }

/* ── News cards ──────────────────────────────────────────── */
.news-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:28px; }
.news-card .card-body h3 { font-size:1.1rem; color:var(--primary); margin:10px 0 8px; line-height:1.35; }
.news-card .card-body p  { color:var(--gray); font-size:.9rem; }
.news-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.news-source { color:var(--gray); font-size:.8rem; }
.news-meta span { font-size:.78rem; color:var(--gray); }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
    display:inline-block; padding:4px 12px; border-radius:30px;
    font-size:.75rem; font-weight:600; letter-spacing:.3px;
    background:rgba(26,58,108,0.10); color:var(--primary);
}
.badge-accent   { background:rgba(230,57,70,0.12); color:var(--accent); }
.badge-success  { background:rgba(40,167,69,0.12);  color:var(--success-ink); }
.badge-warning  { background:rgba(255,193,7,0.18);  color:var(--warning-ink); }
.badge-gray     { background:rgba(108,117,125,0.12);color:var(--gray); }

/* Election status */
.status-upcoming { background:rgba(255,193,7,0.15);  color:var(--warning-ink); }
.status-active   { background:rgba(40,167,69,0.15);  color:var(--success-ink); }
.status-past     { background:rgba(108,117,125,0.15);color:var(--gray); }

/* ── Candidate card ──────────────────────────────────────── */
.candidate-card { text-align:center; padding:28px 20px; }
.candidate-avatar {
    width:90px; height:90px; border-radius:50%;
    object-fit:cover; margin:0 auto 14px;
    border:3px solid var(--gray-light);
}
.candidate-name  { font-size:1.1rem; color:var(--primary); font-weight:700; }
.candidate-party { color:var(--gray); font-size:.875rem; margin-bottom:10px; }
.rating-stars    { color:#f4c430; font-size:1rem; letter-spacing:2px; }

/* ── Search bar ──────────────────────────────────────────── */
.search-bar { display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap; }
.search-bar input {
    flex:1; min-width:200px;
    padding:12px 18px;
    border:2px solid var(--gray-light); border-radius:var(--radius);
    font-family:'Poppins',sans-serif; font-size:.95rem;
    transition:var(--transition);
}
.search-bar input:focus { outline:none; border-color:var(--primary); }

/* ── Tabs ────────────────────────────────────────────────── */
/* Tabs — a segmented control. The previous version was a thin underline, which
   read the same as body text, so the tabs were easy to miss entirely. */
.tabs {
    display:flex; gap:6px; padding:6px;
    background:var(--surface); border:1px solid var(--gray-light);
    border-radius:14px;
    margin-bottom:28px; overflow-x:auto;
    scrollbar-width:none;
}
.tabs::-webkit-scrollbar { display:none; }
.tab-btn {
    padding:11px 20px; border:none; border-radius:10px;
    background:transparent;
    font-family:'Poppins',sans-serif; font-size:.93rem; font-weight:600;
    color:var(--gray); cursor:pointer; white-space:nowrap;
    display:inline-flex; align-items:center;
    transition:var(--transition);
}
.tab-btn:hover    { color:var(--primary); background:rgba(127,127,127,.12); }
.tab-btn.active   {
    background:var(--primary); color:var(--bg);
    box-shadow:0 2px 10px rgba(0,0,0,.18);
}
.tab-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.tab-panel        { display:none; }
.tab-panel.active { display:block; }

/* ── Native splash ───────────────────────────────────────── */
.afv-splash {
    position:fixed; inset:0; z-index:99999;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:12px; background:var(--primary);
    transition:opacity .42s ease, visibility .42s ease;
}
.afv-splash.out { opacity:0; visibility:hidden; }
.afv-splash-mark { position:relative; width:104px; height:104px; display:grid; place-items:center; }
.afv-splash-mark img { width:88px; height:88px; border-radius:20px; opacity:0; transform:scale(.82); }
.afv-splash.on .afv-splash-mark img { animation:afv-pop .7s cubic-bezier(.2,.9,.3,1.2) forwards; }
.afv-splash-ring {
    position:absolute; inset:-14px; border-radius:50%;
    border:3px solid rgba(255,255,255,.28); border-top-color:#fff;
    animation:afv-spin 1.1s linear infinite;
}
.afv-splash-name {
    font-family:'Montserrat',sans-serif; font-weight:800; font-size:1.9rem;
    color:#fff; letter-spacing:.5px; opacity:0;
}
.afv-splash.on .afv-splash-name { animation:afv-rise .6s .22s ease forwards; }
.afv-splash-tag {
    font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
    color:rgba(255,255,255,.85); opacity:0;
    padding:0 30px; text-align:center; line-height:1.6;
}
.afv-splash.on .afv-splash-tag { animation:afv-rise .6s .42s ease forwards; }
@keyframes afv-spin { to { transform:rotate(360deg); } }
@keyframes afv-pop  { to { opacity:1; transform:scale(1); } }
@keyframes afv-rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* ── Native sign-in ──────────────────────────────────────── */
/* The app opens on this screen when nobody is signed in: brand at the top, one
   card, no navigation chrome around it. */
.afv-auth-screen {
    min-height:100vh; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:22px;
    padding:44px 22px; text-align:center;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(26,58,108,.24), transparent 70%),
        var(--bg);
}
.afv-auth-brand { display:flex; flex-direction:column; align-items:center; gap:12px; }
.afv-auth-logo { max-width:200px; height:auto; }
.afv-auth-lead { max-width:300px; margin:0; color:var(--gray); font-size:.92rem; line-height:1.55; }

.afv-auth-card {
    width:100%; max-width:420px; text-align:left;
    background:var(--surface); border:1px solid var(--gray-light);
    border-radius:18px; padding:26px 24px;
    box-shadow:0 18px 44px rgba(0,0,0,.16);
}
.afv-auth-or {
    display:flex; align-items:center; gap:12px;
    margin:20px 0 16px; color:var(--gray); font-size:.8rem;
}
.afv-auth-or::before, .afv-auth-or::after {
    content:''; flex:1; height:1px; background:var(--gray-light);
}
.afv-auth-oauth { display:flex; gap:10px; }
.afv-oauth-btn {
    flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
    padding:11px 8px; border:1px solid var(--gray-light); border-radius:10px;
    background:var(--surface); color:var(--dark);
    font-size:.88rem; font-weight:600; text-decoration:none;
    transition:var(--transition);
}
.afv-oauth-btn:hover { border-color:var(--primary); color:var(--primary); }
.afv-oauth-apple { background:#111; color:#fff; border-color:#111; }
.afv-oauth-apple:hover { color:#fff; opacity:.88; }
.afv-auth-foot {
    margin:18px 0 0; text-align:center;
    font-size:.85rem; color:var(--gray);
}
.afv-auth-foot a { color:var(--accent); font-weight:600; text-decoration:none; }

/* While the sign-in screen is up, the app chrome is out of the way. */
body.afv-auth #mobileTopbar,
body.afv-auth #mobileNav,
body.afv-auth #sidebar,
body.afv-auth #menuToggle { display:none !important; }

/* ── In-app notification toast ──────────────────────────── */
/* Android/iOS draw nothing while the app is in the foreground, so a received
   push is shown here instead. */
.afv-toast {
    position:fixed; left:14px; right:14px; top:14px; z-index:99998;
    display:flex; flex-direction:column; gap:4px;
    padding:14px 16px; border-radius:14px;
    background:var(--primary); color:#fff;
    box-shadow:0 12px 30px rgba(0,0,0,.28);
    transform:translateY(-140%); opacity:0;
    transition:transform .32s cubic-bezier(.2,.9,.3,1.15), opacity .32s ease;
    pointer-events:none;
}
.afv-toast.on { transform:none; opacity:1; }
.afv-toast strong { font-size:.95rem; }
.afv-toast span   { font-size:.86rem; opacity:.9; }

/* Register sheet, when opened from the sign-in screen, has no close button:
   it is the only way forward besides signing in. */
body.afv-native #authModal .close-modal { display:none !important; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom:20px; }
.form-group label {
    display:block; font-weight:600;
    font-size:.9rem; color:var(--dark); margin-bottom:7px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width:100%; padding:12px 16px;
    border:2px solid var(--gray-light); border-radius:var(--radius);
    font-family:'Poppins',sans-serif; font-size:.95rem;
    background:var(--surface); transition:var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline:none; border-color:var(--primary); }
.form-group textarea { resize:vertical; min-height:120px; }
.form-error { color:var(--accent); font-size:.82rem; margin-top:5px; }

.form-msg {
    padding:13px 18px; border-radius:var(--radius);
    margin-bottom:18px; font-size:.92rem; font-weight:500;
}
.form-msg.success {
    background:rgba(40,167,69,0.12); color:var(--success-ink);
    border:1px solid rgba(40,167,69,0.25);
}
.form-msg.error {
    background:rgba(230,57,70,0.10); color:var(--danger-ink);
    border:1px solid rgba(230,57,70,0.25);
}

/* ── Modal ───────────────────────────────────────────────── */
.modal {
    position:fixed; inset:0;
    background:rgba(0,0,0,0.80);
    display:flex; align-items:center; justify-content:center;
    z-index:2000;
    opacity:0; visibility:hidden;
    transition: var(--transition);
}
.modal.active { opacity:1; visibility:visible; }

.modal-content {
    background:var(--surface); width:90%; max-width:800px;
    border-radius:var(--radius-lg); overflow:hidden;
    transform:translateY(50px); opacity:0;
    transition:all 0.6s ease; position:relative;
    /* Never taller than the screen it is on. dvh follows the browser bar as it
       slides away, which vh does not; the vh line is the fallback. */
    max-height:calc(100vh - 48px);
    max-height:calc(100dvh - 48px);
    display:flex; flex-direction:column;
    margin:auto;
}
.modal.active .modal-content { transform:translateY(0); opacity:1; }

.modal-header {
    background:var(--primary-solid); color:white;
    padding:25px; position:relative;
}
.modal-header h3 { font-size:2.2rem; margin-bottom:10px; }
.modal-icon      { font-size:3.5rem; margin-bottom:20px; opacity:.8; }

.close-modal {
    position:absolute; top:20px; right:20px;
    background:none; border:none;
    color:white; font-size:2rem; cursor:pointer;
    transition:var(--transition); line-height:1;
}
.close-modal:hover { transform:rotate(90deg); }

.modal-body       { padding:40px; overflow-y:auto; flex:1 1 auto; min-height:0; -webkit-overflow-scrolling:touch; }
.modal-body:focus-visible { outline:none; }
.modal-header     { flex:0 0 auto; }
.modal-body p     { margin-bottom:20px; font-size:1.1rem; line-height:1.8; }
.modal-body ul    { padding-left:20px; margin-bottom:25px; }
.modal-body ul li { margin-bottom:12px; line-height:1.6; }
.modal-body h4    { color:var(--primary); margin:30px 0 15px; font-size:1.5rem; }

/* ── Poll widget ─────────────────────────────────────────── */
.poll-option {
    display:flex; align-items:center; gap:14px;
    padding:13px 18px; border-radius:var(--radius);
    border:2px solid var(--gray-light);
    margin-bottom:10px; cursor:pointer;
    transition:var(--transition);
}
.poll-option:hover  { border-color:var(--secondary); background:rgba(26,58,108,0.04); }
.poll-option.voted  { border-color:var(--accent);    background:rgba(230,57,70,0.06); }
.poll-label         { flex:1; font-weight:500; }
.poll-pct           { font-size:.85rem; color:var(--gray); min-width:40px; text-align:right; }
.poll-bar           { height:6px; background:var(--gray-light); border-radius:3px; flex:1; overflow:hidden; }
.poll-bar-fill      { height:100%; background:var(--accent); border-radius:3px; transition:width .6s ease; }

/* ── Process steps ───────────────────────────────────────── */
.process { display:flex; flex-wrap:wrap; justify-content:center; margin-top:50px; }
.process-step {
    flex:0 0 calc(25% - 30px); margin:15px; text-align:center;
    padding:40px 25px; background:var(--surface); border-radius:var(--radius-lg);
    box-shadow:var(--shadow); transition:var(--transition);
}
.process-step:hover { transform:translateY(-15px); box-shadow:var(--shadow-lg); }
.step-number {
    width:70px; height:70px; background:var(--primary-solid); color:white;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:1.8rem; font-weight:bold; margin:0 auto 25px;
    transition:var(--transition);
}
.process-step:hover .step-number { background:var(--accent); transform:scale(1.1); }
.step-content h3 { margin-bottom:15px; color:var(--primary); font-size:1.4rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--dark-solid);
    color: white;
    padding: 64px 0 26px;
}

/* All four columns sit on one line. The brand column is given extra width for
   its blurb; the three link lists stay compact and close together. */
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 34px;
    max-width: 1200px; margin-left: auto; margin-right: auto;
    padding: 0 30px;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    footer { padding: 46px 0 20px; }
}
.footer-col h3 {
    font-size:1.02rem; margin-bottom:14px;
    position:relative; padding-bottom:10px;
}
.footer-col h3::after {
    content:''; position:absolute; bottom:0; left:0;
    width:34px; height:2px; background:var(--accent);
}
.footer-col p       { color:#aaa; margin-bottom:14px; line-height:1.7; font-size:.9rem; }
.footer-col ul li   { margin-bottom:8px; }
.footer-col ul li a { color:#aaa; display:block; transition:var(--transition); font-size:.92rem; }
.footer-col ul li a:hover { color:white; padding-left:8px; }

.social-links     { display:flex; margin-top:20px; gap:10px; }
.social-links a {
    display:flex; align-items:center; justify-content:center;
    width:45px; height:45px;
    background:rgba(255,255,255,0.08); border-radius:50%;
    color:white; font-size:1.2rem; transition:var(--transition);
}
.social-links a:hover { background:var(--accent); transform:translateY(-5px); }

.copyright {
    text-align:center; padding:30px 30px 0;
    border-top:1px solid rgba(255,255,255,0.1);
    color:#777; font-size:.95rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:1200px) { .hero h1 { font-size:3.2rem; } }

@media (max-width:992px) {
    /* 100vh on a phone is taller than the screen, because the browser toolbar is
       not counted — so the hero ran past the fold and the sections below it
       appeared to slide underneath. svh is the *visible* height; the vh line is
       the fallback for browsers that do not know it yet. */
    .hero {
        text-align:center; height:auto;
        min-height:100vh; min-height:100svh;
        padding:112px 0 64px;
    }
    .hero-content { margin:0 auto; max-width:100%; padding:0 22px; }
    .industry-grid { grid-template-columns:1fr; max-width:600px; margin:60px auto 0; }
    .industry-grid .card:nth-child(1),
    .industry-grid .card:nth-child(2),
    .industry-grid .card:nth-child(3) { transform:translateY(0) rotate(0); }
    .industry-grid .card:hover { transform:translateY(-10px) !important; }
    .grid-3 { grid-template-columns:repeat(2,1fr); }
    .process-step { flex:0 0 calc(50% - 30px); }
}

@media (max-width:768px) {
    .hero h1 { font-size:2.6rem; }
    .section-title h2 { font-size:2.2rem; }
    .page { padding:70px 20px 48px; }
    .stats-bar { grid-template-columns:repeat(2,1fr); }
    .grid-3, .grid-2 { grid-template-columns:1fr; }
    .process-step { flex:0 0 100%; max-width:400px; margin:15px auto; }
}

@media (max-width:576px) {
    .hero h1 { font-size:2.2rem; }
    .hero p  { font-size:1.1rem; }
    /* Small phones: let the hero be exactly as tall as its content. A full-screen
       hero whose content is shorter than the screen adds nothing but a gap the
       next section seems to fall into. */
    .hero { min-height:auto; padding:92px 0 48px; }
    .modal-body { padding:25px; }
    .stats-bar { grid-template-columns:1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Public site — Home, About Us, Contact Us
   These pages are what a visitor sees before signing in.
   ═══════════════════════════════════════════════════════════ */

.public-section      { padding: 90px 30px; background: var(--surface); }
.public-section-alt  { background: var(--light); }
.public-grid         { max-width: 1100px; margin: 55px auto 0; }

.public-page  { max-width: 1000px; }
.public-h2    { color: var(--primary); font-size: 1.2rem; margin-bottom: 14px; }
.public-p     { color: var(--gray); margin-bottom: 14px; }
.public-p:last-child { margin-bottom: 0; }

/* Links written into editable page text, such as the polling-unit locator on the
   Elections page. They sit inside prose that sets its own colour, so without a
   rule of their own a link reads as ordinary words. Bold, coloured and underlined
   leaves no doubt that it is something to press. */
.rich-text a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rich-text a:hover { text-decoration-thickness: 2px; }

.public-list  { list-style: none; }
.public-list li {
    color: var(--gray); font-size: .95rem; line-height: 1.7;
    padding: 9px 0 9px 24px; position: relative;
    border-bottom: 1px solid var(--gray-light);
}
.public-list li:last-child { border-bottom: none; }
.public-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 9px; font-size: .8rem; color: var(--accent);
}
.public-list strong { color: var(--dark); }

.public-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px;
}
@media (max-width: 900px) { .public-split { grid-template-columns: 1fr; } }

.public-values {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px;
}
.public-values i   { font-size: 1.5rem; color: var(--accent); margin-bottom: 10px; display: block; }
.public-values h4  { color: var(--primary); font-size: 1rem; margin-bottom: 6px; }
.public-values p   { color: var(--gray); font-size: .9rem; }

/* Closing band on the home page */
.public-cta {
    padding: 90px 30px; text-align: center;
    background: linear-gradient(135deg, var(--primary-solid) 0%, var(--secondary) 100%);
    color: var(--white);
}
.public-cta h2 { font-size: 2.2rem; margin-bottom: 12px; color: var(--white); }
.public-cta p  { opacity: .9; max-width: 560px; margin: 0 auto 30px; }
.public-cta .hero-cta { justify-content: center; }

/* "Get AfriVote on your phone" — the closing band that replaced the old
   call to action. Two cards, centred, sitting on the gradient. */
.app-download-grid {
    display: flex; gap: 22px; flex-wrap: wrap; justify-content: center;
    max-width: 760px; margin: 0 auto;
}
.app-download-card {
    flex: 1 1 280px; max-width: 340px; padding: 28px 24px; text-align: center;
    border-radius: var(--radius);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
}
.app-download-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 14px; }
.app-download-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.app-download-card p  {
    color: rgba(255,255,255,.84); font-size: .9rem;
    max-width: none; margin: 0 0 18px; opacity: 1;
}

.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-right: 8px; border-radius: 50%;
    background: var(--accent); color: var(--white); font-size: .8rem;
}

/* Figures band on About Us */
.stat-band {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.stat-band-item {
    padding: 28px 18px; text-align: center;
    color: var(--gray); font-size: .82rem; letter-spacing: .3px;
    border-right: 1px solid var(--gray-light);
}
.stat-band-item:last-child { border-right: none; }
.stat-band-num {
    display: block; font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 2rem; color: var(--primary); line-height: 1.1; margin-bottom: 4px;
}
@media (max-width: 620px) {
    .stat-band { grid-template-columns: 1fr; }
    .stat-band-item { border-right: none; border-bottom: 1px solid var(--gray-light); }
    .stat-band-item:last-child { border-bottom: none; }
}

/* Contact Us */
.contact-grid {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* Honeypot — off-screen rather than display:none, because some bots skip
   hidden inputs but happily fill positioned ones. */
.hp {
    position: absolute !important; left: -9999px !important;
    width: 1px; height: 1px; opacity: 0;
}

.contact-details { list-style: none; }
.contact-details li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 12px 0; border-bottom: 1px solid var(--gray-light);
    color: var(--gray); font-size: .92rem;
}
.contact-details li:last-child { border-bottom: none; }
.contact-details i { color: var(--accent); font-size: 1rem; margin-top: 3px; width: 18px; text-align: center; }
.contact-details strong { color: var(--dark); }
.contact-details a { color: var(--primary); }

/* The map sits under the form and the details, spanning both columns. */
.contact-map-card    { margin-top: 22px; overflow: hidden; }
.contact-map { width: 100%; height: 440px; border: 0; display: block; background: var(--light); }
.contact-map-caption {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap;
    padding: 12px 18px; font-size: .85rem; color: var(--gray);
}
.contact-map-caption a { color: var(--accent); font-weight: 600; }

@media (max-width: 720px) {
    .contact-map { height: 320px; }
    .contact-map-caption { font-size: .8rem; }
}

.public-fineprint { font-size: .78rem; color: var(--gray); margin-top: 14px; text-align: center; }

/* ── Legal documents (Privacy Policy, Terms of Use) ──────── */
.legal-page { max-width: 860px; }
.legal-doc  { line-height: 1.75; }
.legal-doc h1 {
    font-size: 1.5rem; color: var(--primary);
    margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-light);
}
.legal-doc h2 {
    font-size: 1.08rem; color: var(--primary);
    margin: 30px 0 10px; scroll-margin-top: 90px;
}
.legal-doc h3 {
    font-size: .98rem; color: var(--accent);
    margin: 24px 0 8px; text-transform: uppercase; letter-spacing: .4px;
}
.legal-doc p  { margin-bottom: 12px; color: var(--gray); }
.legal-doc ul { margin: 0 0 16px 22px; }
.legal-doc li { margin-bottom: 7px; color: var(--gray); }
.legal-doc strong { color: var(--dark); }
.legal-doc a { color: var(--accent); }

/* ── Cookie consent banner ───────────────────────────────── */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    background: var(--surface);
    border-top: 3px solid var(--accent);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, .18);
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
    animation: cookie-in .28s ease-out;
}
@keyframes cookie-in { from { transform: translateY(100%); } to { transform: translateY(0); } }

.cookie-banner-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; gap: 20px; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 420px; min-width: 0; }
.cookie-banner-text strong { display: block; color: var(--primary); font-size: 1rem; margin-bottom: 4px; }
.cookie-banner-text p { font-size: .85rem; color: var(--gray); margin: 0 0 4px; max-width: 720px; }
.cookie-banner-links { display: flex; gap: 16px; }
.cookie-banner-links a { font-size: .82rem; color: var(--accent); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Keep the desktop sidebar clear of the banner when it is showing. */
@media (min-width: 993px) {
    body.has-cookie-banner .sidebar { padding-bottom: 150px; }
}
/* On phones the bottom navigation must stay reachable. */
@media (max-width: 992px) {
    .cookie-banner { bottom: 56px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
    .cookie-banner-inner { gap: 12px; }
    .cookie-banner-text p { font-size: .8rem; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn { flex: 1; }
}

/* ── Discussion threads ───────────────────────────────────────
   A reply sits indented under the comment it answers, with a rule down the
   left so the nesting is visible rather than guessed from the spacing. */
.comment        { padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
.comment-reply  { border-bottom: 0; border-left: 2px solid var(--gray-light); padding-left: 14px; margin-top: 6px; }
.comment:last-child { border-bottom: 0; }

.link-btn {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--accent); font-size: .8rem; font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

/* A named person in a comment. */
.mention {
    color: var(--accent); font-weight: 600;
    background: rgba(230, 57, 70, .10);
    border-radius: 4px; padding: 0 3px;
}

/* News paging: newer/older under the grid, set to the right and small enough to
   read as a control rather than a call to action. */
.news-pager {
    /* The grid places each card; the pager is not a card, so it is told to take
       the whole row. Without this it lands in one 300px cell and "aligned right"
       means right of that cell, not of the list. */
    grid-column: 1 / -1;
    width: 100%;
    display: flex; align-items: center; justify-content: flex-end;
    gap: 10px; flex-wrap: wrap; margin: 4px 0 0;
}
.news-pager .btn {
    padding: 5px 12px;
    font-size: .72rem;
    letter-spacing: .3px;
    border-radius: 6px;
}
.news-pager span { color: var(--gray); font-size: .78rem; }
.news-pager .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── In-button spinner ────────────────────────────────────────
   Shown while a form request is in flight, so the button reports that it is
   working instead of looking like nothing happened. */
.btn-spinner {
    display: inline-block;
    width: 13px; height: 13px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin .7s linear infinite;
}
.btn-spinner.dark {
    border-color: rgba(0, 0, 0, .18);
    border-top-color: var(--primary);
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Respect a user who asked for less motion. */
@media (prefers-reduced-motion: reduce) {
    .btn-spinner { animation-duration: 2s; }
}


/* ── Polls ────────────────────────────────────────────────────
   A poll is a question, a count, and a set of answers you can press. Each answer
   is a row: a mark, the label, the share, and a bar underneath that grows into
   place. The two poll components in the app (this one and the vote-intent
   question inside candidate cards) deliberately do not share class names. */
@keyframes pollGrow  { from { width: 0; } }
@keyframes pollPop   { from { transform: scale(.3); opacity: 0; } }
@keyframes pollPulse {
    0%   { box-shadow: 0 0 0 0 rgba(230, 57, 70, .32); }
    100% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
}

.poll-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--gray-light);
    border-radius: 14px;
    padding: 18px 18px 10px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.poll-card::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    opacity: .8;
}

.poll-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 14px; margin-bottom: 15px;
}
.poll-head-text { min-width: 0; }
.poll-question  { margin: 0; font-size: 1.06rem; line-height: 1.35; color: var(--primary); }
.poll-sub {
    margin: 6px 0 0; font-size: .78rem; color: var(--gray);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.poll-dot { opacity: .5; }

.poll-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(30, 158, 90, .12); color: #1e9e5a;
    border-radius: 99px; padding: 4px 10px;
    font-size: .72rem; font-weight: 700; white-space: nowrap;
    animation: pollPop .3s ease-out both;
}

.poll-options { display: grid; gap: 9px; }

.poll-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 11px; row-gap: 9px;
    align-items: center;
    width: 100%; text-align: left; cursor: pointer;
    font: inherit; color: inherit;
    background: var(--surface);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 11px 13px;
    transition: border-color .18s ease, background .18s ease,
                transform .18s ease, box-shadow .18s ease;
}
.poll-option:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .07);
}
.poll-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.poll-option:disabled { cursor: default; }
.poll-card.is-voting .poll-option { cursor: progress; }
.poll-card.is-closed .poll-option { cursor: default; }

.poll-option.voted {
    border-color: var(--accent);
    background: rgba(230, 57, 70, .055);
}
.poll-option.just-voted { animation: pollPulse .5s ease-out; }
.poll-option.is-pending { border-style: dashed; }

.poll-mark {
    grid-column: 1; grid-row: 1;
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--gray-light);
    display: grid; place-items: center;
    font-size: .62rem; color: #fff;
    transition: background .18s ease, border-color .18s ease;
}
.poll-option.voted .poll-mark { background: var(--accent); border-color: var(--accent); }
.poll-option.voted .poll-mark i { animation: pollPop .3s ease-out both; }

.poll-label {
    grid-column: 2; grid-row: 1;
    font-size: .9rem; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis;
}
.poll-pct {
    grid-column: 3; grid-row: 1;
    font-size: .84rem; font-weight: 700; color: var(--gray);
    font-variant-numeric: tabular-nums;
}
.poll-option.voted .poll-pct { color: var(--accent); }

.poll-bar {
    grid-column: 1 / -1; grid-row: 2;
    display: block; height: 6px; border-radius: 99px;
    background: var(--light); overflow: hidden;
}
.poll-bar-fill {
    display: block; height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: pollGrow .8s cubic-bezier(.2, .8, .2, 1) both;
    transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.poll-option.voted .poll-bar-fill {
    background: linear-gradient(90deg, var(--accent), #ff7a85);
}

.poll-foot { padding: 4px 0 10px; }
.poll-foot .form-msg { margin-top: 10px; }

/* Vote intent inside a candidate card. */
.vpoll { margin-top: 4px; }
.vpoll-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.vpoll-head h4 { margin: 0; font-size: 1rem; color: var(--primary); }
.vpoll-total   { font-size: .76rem; color: var(--gray); }
.vpoll-options { display: grid; gap: 8px; }

.vpoll-opt {
    display: block; width: 100%; text-align: left; cursor: pointer;
    background: var(--surface); color: inherit;
    border: 1px solid var(--gray-light); border-radius: 10px;
    padding: 10px 12px;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.vpoll-opt:hover  { border-color: var(--primary); transform: translateY(-1px); }
.vpoll-opt:active { transform: translateY(0); }
.vpoll-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vpoll-opt.is-mine { border-color: var(--accent); background: rgba(230, 57, 70, .06); }
.vpoll-opt.just-voted { animation: pollPulse .5s ease-out; }

.vpoll-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 7px;
}
.vpoll-label { font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.vpoll-pct   { font-size: .8rem; font-weight: 700; color: var(--gray); }
.vpoll-pct.tone-yes { color: #1e9e5a; }
.vpoll-pct.tone-no  { color: #c0392b; }

.vpoll-bar {
    display: block; height: 7px; border-radius: 99px;
    background: var(--light); overflow: hidden;
}
.vpoll-fill {
    display: block; height: 100%; border-radius: 99px;
    background: var(--primary);
    animation: pollGrow .8s cubic-bezier(.2, .8, .2, 1) both;
}
.vpoll-fill.tone-yes    { background: #1e9e5a; }
.vpoll-fill.tone-no     { background: #c0392b; }
.vpoll-fill.tone-unsure { background: #7a8794; }

.vpoll-note { font-size: .78rem; color: var(--gray); margin: 9px 0 0; }
.vpoll-tick { color: var(--accent); font-size: .8rem; animation: pollPop .3s ease-out both; }

@media (prefers-reduced-motion: reduce) {
    .poll-bar-fill, .vpoll-fill, .poll-option.just-voted, .vpoll-opt.just-voted,
    .poll-badge, .poll-mark i, .vpoll-tick { animation: none; }
}


/* ── Admin: this week ─────────────────────────────────────────
   Four figures with the change against the previous week, so the panel says
   whether something is growing rather than only how big it is. */
.admin-week-grid {
    display: grid; gap: 14px; margin: 0 0 26px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-week-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--gray-light);
    border-radius: var(--radius); padding: 14px 16px;
}
.admin-week-card > i { color: var(--primary); font-size: 1.1rem; opacity: .8; }
.admin-week-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.admin-week-label { font-size: .76rem; color: var(--gray); }

.admin-delta {
    margin-left: auto;
    font-size: .74rem; font-weight: 700;
    padding: 3px 8px; border-radius: 99px;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--light); color: var(--gray);
    white-space: nowrap;
}
.admin-delta.up   { background: rgba(30, 158, 90, .12);  color: #1e9e5a; }
.admin-delta.down { background: rgba(192, 57, 43, .12);  color: #c0392b; }

/* ── Admin: needs attention ─────────────────────────────────── */
.admin-attention {
    background: rgba(230, 57, 70, .05);
    border: 1px solid rgba(230, 57, 70, .25);
    border-radius: var(--radius);
    padding: 16px 18px; margin-bottom: 24px;
}
.admin-attention h3 {
    margin: 0 0 12px; font-size: .92rem; color: var(--accent);
    display: flex; align-items: center; gap: 8px;
}
.admin-attention-items {
    display: grid; gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.admin-attention-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--gray-light);
    border-radius: 9px; padding: 10px 12px;
    cursor: pointer; text-align: left; font-size: .84rem; color: inherit;
    transition: border-color .16s ease, transform .16s ease;
}
.admin-attention-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.admin-attention-item i { color: var(--accent); }
.admin-attention-item strong { margin-left: auto; font-size: .95rem; color: var(--accent); }

/* ── Autocomplete ─────────────────────────────────────────────
   The suggestion list under a text input: choosing a state by typing a couple
   of letters instead of scrolling a list of thirty-seven. */
.ac-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px);
    z-index: 60;
    background: var(--surface);
    border: 1px solid var(--gray-light);
    border-radius: 9px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
    max-height: 220px; overflow-y: auto;
    padding: 4px;
}
.ac-item {
    display: block; width: 100%; text-align: left;
    background: none; border: 0; cursor: pointer;
    padding: 8px 10px; border-radius: 6px;
    font-size: .86rem; color: inherit;
}
.ac-item:hover, .ac-item.is-active { background: rgba(26, 58, 108, .08); color: var(--primary); }
.ac-empty { padding: 9px 10px; font-size: .82rem; color: var(--gray); }


/* ── Dashboard stat cards that lead somewhere ───────────────── */
.stat-card-link {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 10px 24px rgba(0,0,0,.12)); }
.stat-card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stat-go {
    position: absolute; right: 14px; bottom: 12px;
    font-size: .75rem; color: var(--primary);
    opacity: 0; transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
}
.stat-card-link:hover .stat-go,
.stat-card-link:focus-visible .stat-go { opacity: .7; transform: translateX(0); }

/* ── Elections ────────────────────────────────────────────────
   One colour per kind of race, carried by the stripe, the icon and the type
   badge, so a grid of elections can be read without reading. The icon repeats
   the colour for anyone who cannot separate the hues. */
.election-tabs { flex-wrap: wrap; }

.election-grid {
    display: grid; gap: 20px; margin-top: 20px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.election-card {
    --tone: var(--accent);
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--gray-light);
    border-left: 4px solid var(--tone);
    border-radius: 14px;
    padding: 18px 18px 16px;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.election-card::after {
    content: '';
    position: absolute; inset: 0 auto 0 0; width: 4px;
    background: var(--tone); opacity: .9;
}
.election-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.election-card.type-presidential { --tone: var(--accent); }
.election-card.type-governorship { --tone: #1a3a6c; }
.election-card.type-senate        { --tone: #6b4fbb; }
.election-card.type-house         { --tone: #0e7490; }
.election-card.type-assembly      { --tone: #b45309; }

.election-card-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 12px;
}

.election-type-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    color: var(--tone);
    border-radius: 99px;
    padding: 4px 11px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .2px;
}
/* color-mix is recent; this is the fallback for browsers without it. */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .election-type-badge { background: rgba(0, 0, 0, .06); }
}

.election-title {
    margin: 0 0 10px;
    font-size: 1.12rem; line-height: 1.35;
    color: var(--primary);
}

.election-meta {
    display: flex; flex-wrap: wrap; gap: 14px;
    font-size: .82rem; color: var(--gray);
    margin-bottom: 10px;
}
.election-meta i { margin-right: 5px; color: var(--tone); }

.election-desc {
    font-size: .88rem; color: var(--gray);
    margin: 0 0 14px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.election-card-foot { margin-top: auto; padding-top: 4px; }

.election-view-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    border: 1.5px solid var(--tone);
    color: var(--tone);
    padding: 8px 16px;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, gap .18s ease;
}
.election-view-btn:hover {
    background: var(--tone); color: #fff; gap: 11px;
}
.election-view-btn i { transition: transform .18s ease; }
.election-view-btn:hover i { transform: translateX(2px); }

.election-empty {
    text-align: center; padding: 44px 16px; color: var(--gray);
}
.election-empty i { font-size: 1.8rem; opacity: .35; display: block; margin-bottom: 10px; }
.election-empty p { margin: 0; font-size: .9rem; }

/* ── Parties contesting an election ─────────────────────────── */
.election-parties { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.election-party {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface);
    border: 1px solid var(--gray-light);
    border-radius: 99px;
    padding: 5px 12px;
    font-size: .8rem;
}
.election-party strong { color: var(--primary); letter-spacing: .3px; }
.election-party span.count {
    background: rgba(26, 58, 108, .08); color: var(--primary);
    border-radius: 99px; padding: 1px 8px;
    font-size: .72rem; font-weight: 700;
}


/* ── Candidate card: the way into the profile ───────────────── */
.candidate-card-foot {
    padding: 6px 16px 18px;
    text-align: center;
}
.candidate-view-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 7px 16px;
    font-size: .76rem; font-weight: 700; letter-spacing: .4px;
    border-radius: 8px;
    transition: background .18s ease, color .18s ease, gap .18s ease;
}
.candidate-view-btn:hover {
    background: var(--primary-solid); color: #fff; gap: 11px;
}
.candidate-view-btn i { transition: transform .18s ease; }
.candidate-view-btn:hover i { transform: translateX(2px); }

/* The race a candidate is standing in, under their name. */
.candidate-election {
    font-size: .84rem;
    margin: 8px 0 0;
    opacity: .9;
    display: flex; align-items: center; justify-content: center;
    gap: 7px; flex-wrap: wrap;
}
.candidate-election i { color: var(--accent); }


/* ── Election winners ─────────────────────────────────────────
   Who won, with the four things needed to identify them: face, party (mark and
   abbreviation), the votes counted, and the seat. */
.winner-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin: 12px 0 22px;
}

.winner-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--gray-light);
    border-left: 4px solid var(--success, #28a745);
    border-radius: 12px;
    padding: 14px;
}

.winner-avatar {
    width: 62px; height: 62px; flex: none;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--gray-light);
    background: var(--light);
}

.winner-body { min-width: 0; }

.winner-name {
    font-weight: 700; color: var(--primary);
    font-size: .96rem; line-height: 1.3;
}

.winner-party {
    display: flex; align-items: center; gap: 7px;
    margin-top: 5px; font-size: .82rem; color: var(--gray);
}
.winner-party img {
    width: 22px; height: 22px; flex: none;
    object-fit: contain; border-radius: 4px;
    background: #fff; padding: 1px;
}
.winner-party strong { color: var(--primary); letter-spacing: .3px; }

.winner-seat  { font-size: .78rem; color: var(--gray); margin-top: 3px; }
.winner-votes {
    font-size: .82rem; font-weight: 700; color: var(--success-ink, #155724);
    margin-top: 6px; display: flex; align-items: center; gap: 6px;
}
.winner-election {
    font-size: .74rem; color: var(--gray);
    margin-top: 6px; padding-top: 6px;
    border-top: 1px dashed var(--gray-light);
}
.winner-none { font-size: .88rem; color: var(--gray); margin: 8px 0 20px; }

/* ── The modal on a small screen ─────────────────────────────
   The box is centred, so when it is taller than the screen the overflow lands
   at both ends and the top is unreachable. These rules keep it inside the
   viewport and leave the body as the part that scrolls. */
@media (max-width: 576px) {
    .modal    { padding: max(12px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom)); }
    .modal-content {
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
    .modal-header { padding: 18px; }
    .modal-header h3 { font-size: 1.4rem; }
    .modal-icon { font-size: 2.2rem; margin-bottom: 10px; }
    .close-modal { top: 12px; right: 14px; font-size: 1.6rem; }
    .modal-body { padding: 18px; }
    .modal-body h4 { margin: 20px 0 10px; font-size: 1.1rem; }
    .winner-grid { grid-template-columns: 1fr; }
}


/* ── Autocomplete lists ───────────────────────────────────────
   Hidden until it has something to say, and able to open upward when the field
   sits near the bottom of the window. A menu that opens off-screen is a menu the
   user has to guess at. */
.ac-list { display: none; }
.ac-list.ac-list-open { display: block; }
.ac-list.ac-list-up {
    top: auto;
    bottom: calc(100% + 4px);
}
.form-group, .kyg-search { position: relative; }

/* ── Choose a kind of report, or a level of government ──────── */
.report-choices {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 8px 0 30px;
}

.report-choice {
    display: grid; gap: 8px;
    text-align: left; font: inherit; color: inherit; cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--gray-light);
    border-radius: 14px;
    padding: 22px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.report-choice:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}
.report-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.report-choice-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(230, 57, 70, .1);
    color: var(--accent); font-size: 1.15rem;
    margin-bottom: 4px;
}
.report-choice strong { font-size: 1.04rem; color: var(--primary); }
.report-choice-text  { font-size: .88rem; color: var(--gray); line-height: 1.5; }
/* "Open" on the Know Your Government cards and "Start" on the report cards: the
   same bordered button as View details on an election, so an action on a card
   looks the same wherever a card offers one. The card is the button, so the fill
   happens when the card is hovered. */
.report-choice-go {
    margin-top: 10px;
    justify-self: start;
    width: fit-content;
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    font-size: .78rem; font-weight: 700; letter-spacing: .4px;
    border-radius: 8px;
    transition: background .18s ease, color .18s ease, gap .18s ease;
}
.report-choice:hover .report-choice-go,
.report-choice:focus-visible .report-choice-go {
    background: var(--accent); color: #fff; gap: 11px;
}
.report-choice-go i { transition: transform .18s ease; }
.report-choice:hover .report-choice-go i { transform: translateX(2px); }

/* ── The two questions ──────────────────────────────────────── */
.report-quiz { padding: 6px 0; }
.report-quiz-text {
    font-size: 1.1rem; font-weight: 600; color: var(--primary);
    margin: 0 0 18px; line-height: 1.4;
}
.report-quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.report-quiz-actions .btn { min-width: 110px; }
.report-quiz-note {
    margin: 20px 0 0; font-size: .82rem; color: var(--gray);
    line-height: 1.6; border-top: 1px solid var(--gray-light); padding-top: 14px;
}

.report-form-card { margin-bottom: 24px; }
.report-form-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 6px;
}
.report-form-head h2 { display: flex; align-items: center; gap: 10px; }
.report-form-head h2 i { color: var(--accent); }

/* ── Know Your Government ───────────────────────────────────── */
.kyg-step { padding: 4px 0 10px; }
.kyg-step-title { font-size: 1.35rem; color: var(--primary); margin: 14px 0 4px; }
.kyg-step-sub { color: var(--gray); font-size: .9rem; margin: 0 0 18px; }

.kyg-search { margin-bottom: 18px; }
.kyg-search input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--gray-light); border-radius: 10px;
    font: inherit; font-size: .92rem;
}
.kyg-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.kyg-state-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.kyg-state-btn, .kyg-ministry-card {
    text-align: left; font: inherit; color: inherit; cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color .16s ease, transform .16s ease;
}
.kyg-state-btn:hover, .kyg-ministry-card:hover {
    border-color: var(--primary); transform: translateY(-1px);
}
.kyg-state-btn strong { display: block; color: var(--primary); font-size: .95rem; }
.kyg-state-btn span   { font-size: .76rem; color: var(--gray); }

.kyg-ministry-grid { display: grid; gap: 10px; }
.kyg-ministry-card strong { display: block; color: var(--primary); font-size: .95rem; }
.kyg-ministry-card span   { font-size: .8rem; color: var(--gray); }

.kyg-detail { padding: 4px 0; }
.kyg-detail-head {
    display: flex; gap: 20px; align-items: flex-start;
    margin: 16px 0 22px; flex-wrap: wrap;
}
.kyg-minister-photo {
    width: 128px; height: 128px; flex: none;
    border-radius: 14px; overflow: hidden;
    background: var(--light);
    display: grid; place-items: center;
    border: 1px solid var(--gray-light);
}
.kyg-minister-photo img { width: 100%; height: 100%; object-fit: cover; }
.kyg-minister-photo i { font-size: 2.6rem; color: var(--gray); opacity: .5; }

.kyg-level-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(230, 57, 70, .1); color: var(--accent);
    border-radius: 99px; padding: 4px 12px;
    font-size: .74rem; font-weight: 700;
}
.kyg-detail-title { font-size: 1.5rem; color: var(--primary); margin: 10px 0 8px; }
.kyg-detail-desc  { color: var(--gray); font-size: .94rem; line-height: 1.6; margin: 0; max-width: 62ch; }

.kyg-people {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}
.kyg-person {
    background: var(--surface); border: 1px solid var(--gray-light);
    border-left: 4px solid var(--primary);
    border-radius: 12px; padding: 14px 16px;
}
.kyg-person-role {
    display: block; font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: var(--gray); margin-bottom: 6px;
}
.kyg-person-role i { color: var(--accent); margin-right: 5px; }
.kyg-person strong { font-size: 1rem; color: var(--primary); }

.kyg-contacts h3 { font-size: 1rem; color: var(--primary); margin: 0 0 10px; }
.kyg-contact-row {
    display: flex; gap: 12px; align-items: baseline;
    padding: 9px 0; border-bottom: 1px solid var(--gray-light);
    font-size: .9rem;
}
.kyg-contact-row i { color: var(--accent); width: 16px; flex: none; }
.kyg-contact-label { color: var(--gray); min-width: 72px; font-size: .82rem; }
.kyg-contact-value { color: var(--dark); word-break: break-word; }

.kyg-empty { color: var(--gray); font-size: .88rem; margin: 8px 0 18px; }

@media (max-width: 576px) {
    .kyg-detail-head { gap: 14px; }
    .kyg-minister-photo { width: 92px; height: 92px; }
    .kyg-detail-title { font-size: 1.25rem; }
}

/* The reason shown on the sign-in gate when a session ended by itself. */
.admin-gate-note {
    margin: 12px 0 0;
    padding: 9px 12px;
    background: rgba(230, 57, 70, .08);
    border: 1px solid rgba(230, 57, 70, .22);
    border-radius: 8px;
    color: var(--accent);
    font-size: .84rem;
    line-height: 1.45;
    text-align: left;
}

/* ── Password fields with a reveal button ─────────────────────
   The button sits inside the field's right edge, so the input keeps its
   normal styling and the eye does not push the layout around. */
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 46px; }
.pw-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: var(--gray);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .95rem; line-height: 1;
}
.pw-eye:hover, .pw-eye:focus-visible { color: var(--accent); background: rgba(0, 0, 0, .05); }
.pw-eye.on { color: var(--accent); }