@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400..700&family=Instrument+Serif:ital@0;1&family=Noto+Sans+Thaana:wght@400;600;700&display=swap');

/* Electorium: an independent election desk.
   Teal ink + paper. Teal means "ours / free"; brass means "paid". Display type is a serif, body is a civic sans. */
:root {
  color-scheme: light;
  /* paper and text */
  --bg: #f4f4f2; --surface: #ffffff; --surface-2: #ecedeb; --border: #dcdedb; --text: #22282b; --text-dim: #5d666b;
  --ink: #1d2327;                 /* headings and strong text (light in dark mode) */
  /* dark panels: menu, stages, hero, tab bar. They stay dark in both modes. */
  --panel: #1d2327; --panel-2: #2c353b; --ink-2: #2c353b;
  /* the accent: --accent for buttons, --accent-dim for links and text, --aqua for the bright accent on dark panels */
  --accent: #4b6b7a; --accent-2: #5f8294; --accent-dim: #3f5c6a; --aqua: #a8c7d4;
  --on-accent: #ffffff;           /* text on an accent button */
  --cta: var(--accent); --on-cta: var(--on-accent); --cta-hover: var(--accent-dim);   /* primary buttons; dark mode lightens them */
  --on-bright: #1d2327;           /* dark text on a bright (aqua) button */
  /* soft tints for notices and chips */
  --tint: #e7eef1; --tint-line: #c4d3da;
  --tint-red: #fdecec; --tint-red-line: #f3c2c2; --on-red: #8f1d1d;
  --tint-yellow: #fbf1dc; --tint-yellow-line: #ecd29a; --on-yellow: #6b4e00;
  --brass: #8a5a00; --brass-bg: #fbf1dc; --brass-line: #ecd29a;
  --warn: #b45309; --warn-bg: #fff7ed; --warn-text: #b45309; --warn-border: #fde3c8;
  --danger: #b91c1c; --good: #0f7a4b; --info: #1d4ed8;
  /* the council map's sea */
  --sea-1: #eef2f3; --sea-2: #dfe6e9; --sea-3: #d2dbe0; --sea-line: #c4cfd5; --sea-shape: #b6c4cc; --map-halo: #f5f7f8;
  --radius: 18px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;   /* headings are the same family, tighter and heavier */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;           /* one italic accent word in a hero, nothing else */
  --mono: "Geist Mono", "SF Mono", Consolas, "Cascadia Code", monospace;
  /* surfaces: a hairline ring instead of a border, two layered low shadows, one radius scale */
  --ring: rgba(20, 28, 32, .08); --ring-2: rgba(20, 28, 32, .16);
  --shadow-1: 0 1px 2px rgba(10, 20, 25, .04), 0 8px 24px -14px rgba(10, 20, 25, .16);
  --shadow-2: 0 28px 56px -20px rgba(10, 20, 25, .28), 0 10px 20px -10px rgba(10, 20, 25, .14);
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px;
  --ease: cubic-bezier(.23, 1, .32, 1);        /* quick start, soft landing: presses, hovers, reveals */
  --ease-chart: cubic-bezier(.85, 0, .15, 1);  /* charts drawing themselves */
}

/* Colour variants (set with data-accent on <html>; chosen on the Colours and logo page). The default is graphite; lagoon is the original teal. */
:root[data-accent="ocean"] { --bg: #f2f5f6; --surface-2: #ebf2f5; --border: #d9e3e8; --text: #14313f; --text-dim: #55697a; --ink: #0b2c3f; --panel: #0b2c3f; --panel-2: #12435e; --ink-2: #12435e;
  --accent: #0e7490; --accent-2: #0891b2; --accent-dim: #0e6a85; --aqua: #67e8f9; --on-bright: #0b2c3f; --tint: #e0f1f6; --tint-line: #b3d8e4; --sea-1: #eaf4f8; --sea-2: #d6e9f1; --sea-3: #c8e0eb; --sea-line: #b9d6e3; --sea-shape: #a7cfe0; --map-halo: #f2f8fb; }
:root[data-accent="navy"] { --bg: #f3f4f8; --surface-2: #edf0f7; --border: #dde2ee; --text: #1a2236; --text-dim: #5a6478; --ink: #14213d; --panel: #14213d; --panel-2: #1d3157; --ink-2: #1d3157;
  --accent: #2f5fd0; --accent-2: #4f7be0; --accent-dim: #2a52b3; --aqua: #9ab8ff; --on-bright: #14213d; --tint: #e5ebfa; --tint-line: #bccaf0; --sea-1: #edf1fa; --sea-2: #dce4f5; --sea-3: #ced9f0; --sea-line: #bdcaea; --sea-shape: #aebde6; --map-halo: #f4f6fc; }
:root[data-accent="ember"] { --bg: #f8f3ee; --surface-2: #f3ebe3; --border: #e8dccf; --text: #2e1f19; --text-dim: #7a6358; --ink: #2b1a14; --panel: #2b1a14; --panel-2: #442a1f; --ink-2: #442a1f;
  --accent: #c2410c; --accent-2: #ea580c; --accent-dim: #b4380a; --aqua: #fdba74; --on-bright: #2b1a14; --tint: #fbebe0; --tint-line: #efc9ae; --sea-1: #f6efe8; --sea-2: #eadfd3; --sea-3: #e1d3c4; --sea-line: #d8c6b4; --sea-shape: #cdb7a0; --map-halo: #faf5f0; }
:root[data-accent="lagoon"] { --bg: #f5f3ec; --surface-2: #eef4f1; --border: #dfe5de; --text: #17302d; --text-dim: #566b67; --ink: #0a2826; --panel: #0a2826; --panel-2: #123e39; --ink-2: #123e39;
  --accent: #0d9488; --accent-2: #14b8a6; --accent-dim: #0f766e; --aqua: #5eead4; --on-bright: #0a2826; --tint: #e3f6f2; --tint-line: #b6e3d9; --sea-1: #eaf7f4; --sea-2: #d7efea; --sea-3: #cbe8e2; --sea-line: #bfe0d9; --sea-shape: #a9dcd2; --map-halo: #f2fbf9; }

/* Dark mode: set with data-theme="dark" on <html>, or automatically when the device prefers it (unless data-theme="light"). Surfaces are mixed from the variant's panel colour. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: color-mix(in srgb, var(--panel) 58%, #000); --surface: color-mix(in srgb, var(--panel) 90%, #fff); --surface-2: color-mix(in srgb, var(--panel) 80%, #fff); --border: color-mix(in srgb, var(--panel) 66%, #fff);
  --text: #e6f0ed; --text-dim: #9db3ae; --ink: #f2f8f6;
  --accent: var(--accent-2); --accent-dim: var(--aqua); --on-accent: var(--on-bright);
  --cta: var(--aqua); --on-cta: var(--on-bright); --cta-hover: color-mix(in srgb, var(--aqua) 80%, #fff);
  --ring: rgba(255, 255, 255, .10); --ring-2: rgba(255, 255, 255, .20); --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7); --shadow-2: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 10px 20px -10px rgba(0, 0, 0, .5);
  --tint: color-mix(in srgb, var(--accent-2) 18%, var(--surface)); --tint-line: color-mix(in srgb, var(--accent-2) 38%, var(--surface));
  --tint-red: #3a1b1d; --tint-red-line: #6b2d2f; --on-red: #fca5a5; --tint-yellow: #2d2511; --tint-yellow-line: #5e4a1c; --on-yellow: #f3d58a;
  --brass: #f1c978; --brass-bg: #2a2110; --brass-line: #5c4a1e; --warn: #f5b46b; --warn-bg: #2b1c0e; --warn-text: #f5b46b; --warn-border: #5a3a1c; --danger: #f87171; --good: #6ee7a8; --info: #8db4ff;
  --sea-1: color-mix(in srgb, var(--panel) 86%, #fff); --sea-2: color-mix(in srgb, var(--panel) 78%, #fff); --sea-3: color-mix(in srgb, var(--panel) 70%, #fff); --sea-line: color-mix(in srgb, var(--panel) 60%, #fff); --sea-shape: color-mix(in srgb, var(--panel) 52%, #fff); --map-halo: color-mix(in srgb, var(--panel) 86%, #fff);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: color-mix(in srgb, var(--panel) 58%, #000); --surface: color-mix(in srgb, var(--panel) 90%, #fff); --surface-2: color-mix(in srgb, var(--panel) 80%, #fff); --border: color-mix(in srgb, var(--panel) 66%, #fff);
    --text: #e6f0ed; --text-dim: #9db3ae; --ink: #f2f8f6;
    --accent: var(--accent-2); --accent-dim: var(--aqua); --on-accent: var(--on-bright);
    --cta: var(--aqua); --on-cta: var(--on-bright); --cta-hover: color-mix(in srgb, var(--aqua) 80%, #fff);
    --ring: rgba(255, 255, 255, .10); --ring-2: rgba(255, 255, 255, .20); --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7); --shadow-2: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 10px 20px -10px rgba(0, 0, 0, .5);
    --tint: color-mix(in srgb, var(--accent-2) 18%, var(--surface)); --tint-line: color-mix(in srgb, var(--accent-2) 38%, var(--surface));
    --tint-red: #3a1b1d; --tint-red-line: #6b2d2f; --on-red: #fca5a5; --tint-yellow: #2d2511; --tint-yellow-line: #5e4a1c; --on-yellow: #f3d58a;
    --brass: #f1c978; --brass-bg: #2a2110; --brass-line: #5c4a1e; --warn: #f5b46b; --warn-bg: #2b1c0e; --warn-text: #f5b46b; --warn-border: #5a3a1c; --danger: #f87171; --good: #6ee7a8; --info: #8db4ff;
    --sea-1: color-mix(in srgb, var(--panel) 86%, #fff); --sea-2: color-mix(in srgb, var(--panel) 78%, #fff); --sea-3: color-mix(in srgb, var(--panel) 70%, #fff); --sea-line: color-mix(in srgb, var(--panel) 60%, #fff); --sea-shape: color-mix(in srgb, var(--panel) 52%, #fff); --map-halo: color-mix(in srgb, var(--panel) 86%, #fff);
  }
}


* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body:not(.shell) { padding: clamp(16px, 4vw, 40px); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-2) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ── App shell: a floating top dock; the full menu opens as a panel beneath it ─────────── */
body.shell { display: block; }

.side {
  position: sticky; top: 12px; z-index: 60; width: min(1240px, calc(100% - 24px)); margin: 12px auto 0;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 20px; color: var(--text);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--ring), var(--shadow-1);
}
.side-head { display: flex; align-items: center; padding: 0 8px 0 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink-2); display: grid; place-items: center; color: var(--aqua); }
.brand .mark svg { width: 20px; height: 20px; }
.brand b { font: 650 19px/1 var(--display); letter-spacing: -.03em; }
.brand small { display: none; }
.menu-btn { display: none; background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); padding: 8px 14px; border-radius: 12px; font-size: 14px; }
.menu-btn:hover { background: var(--surface-2); }

/* the main links, with one pill that glides to whichever you point at (motion.js) */
.dock-links { position: relative; display: flex; align-items: center; gap: 2px; }
.dock-links a, .dock-links button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 13px; border-radius: 12px;
  background: transparent; color: var(--text-dim); border: 0; box-shadow: none; font: 550 14px var(--font); text-decoration: none; white-space: nowrap; transition: color .2s; }
.dock-links a:hover, .dock-links button:hover { background: transparent; color: var(--ink); }
.dock-links a.active, .dock-links button.on { color: var(--ink); }
.dock-links button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.side.open .dock-links button svg { transform: rotate(180deg); }
.pill-i { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 12px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--ring); pointer-events: none; opacity: 0;
  transition: transform .4s var(--ease), width .4s var(--ease), height .4s var(--ease), opacity .2s; }
.pill-i.on { opacity: 1; }

/* the whole menu: a panel under the dock, in columns */
.side-nav { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; max-height: min(74vh, 660px); overflow: auto; padding: 22px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px 28px; border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 1px var(--ring), var(--shadow-2); }
.side.open .side-nav { display: grid; animation: panelIn .3s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.nav-group { margin: 0; }
.nav-group h4 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 8px; padding: 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
}
.nav-pill { font-size: 9.5px; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; font-weight: 650; }
.nav-pill.free, .nav-pill.on { background: var(--tint); color: var(--accent-dim); }
.nav-pill.paid { background: var(--brass-bg); color: var(--brass); }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 1px 0;
  color: var(--text); text-decoration: none; font-size: 14.5px; border-radius: 10px;
  transition: background-color .15s, color .15s;
}
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.active { background: var(--tint); color: var(--accent-dim); font-weight: 600; }
.side-nav a .icon { width: 18px; height: 18px; flex: none; opacity: .85; }
.side-nav a .lock { margin-inline-start: auto; width: 14px; height: 14px; color: var(--brass); flex: none; }
.icon svg, .lock svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.side-foot { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.me { font-size: 13px; text-align: end; line-height: 1.25; }
.me strong { display: block; color: var(--ink); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me span { color: var(--text-dim); font-size: 12px; }
.side-foot .btn-side {
  order: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; text-align: center; text-decoration: none; white-space: nowrap;
  background: var(--cta); color: var(--on-cta); font-weight: 600; font-size: 14px; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 20px -12px var(--cta); transition: transform .15s var(--ease), background-color .2s;
}
.side-foot .btn-side:hover { background: var(--cta-hover); }
.side-foot .btn-side:active { transform: scale(.97); }
.lang-toggle { background: transparent; color: var(--text-dim); box-shadow: 0 0 0 1px var(--ring-2); padding: 0 13px; min-height: 40px; font-size: 13.5px; font-weight: 550; border-radius: 12px; white-space: nowrap; }
.lang-toggle:hover { background: var(--surface-2); color: var(--ink); }
.legal-line { color: var(--text-dim); }

@media (min-width: 901px) {
  .side-foot .legal-line, .side-foot a.lang-toggle { display: none !important; }
  .side-foot .me { display: none; }
}

main.page { padding: clamp(22px, 3.5vw, 40px) clamp(16px, 3vw, 32px) 90px; min-width: 0; max-width: 1240px; width: 100%; margin-inline: auto; }

@media (max-width: 900px) {
  .side { top: 0; width: 100%; margin: 0; border-radius: 0 0 20px 20px; padding: 10px 14px; flex-wrap: wrap; box-shadow: 0 1px 0 var(--ring), var(--shadow-1); }
  .side-head { width: 100%; justify-content: space-between; padding: 0; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 40px; }
  .dock-links, .side-foot { display: none; }
  .side-nav { position: static; box-shadow: none; padding: 0; max-height: none; }
  .side.open .side-nav { display: block; background: transparent; animation: none; }
  .side.open .side-foot { display: block; width: 100%; }
  .side.open .side-foot > * { margin-top: 8px; }
  .side.open .side-foot .me { text-align: start; }
  .side-foot .btn-side { display: flex; width: 100%; }
  .lang-toggle { width: 100%; }
}

/* ── Page header ─────────────────────────────────────────────── */
header.page-head { display: block; margin: 0 0 28px; padding: 0 0 6px; border: 0; }
header.page-head h1 {
  font-family: var(--display); font-weight: 650; font-size: clamp(32px, 5.4vw, 58px); line-height: 1.02;
  letter-spacing: -.04em; margin: 0 0 12px; color: var(--ink);
}
header.page-head h1 em, h1 em.serif, h2 em.serif { font: italic 400 1.08em/1 var(--serif); letter-spacing: -.01em; }
header.page-head .sub { max-width: 60ch; font-size: clamp(16px, 2.2vw, 18px); color: var(--text-dim); line-height: 1.55; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 5px 12px 5px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 0 0 1px var(--ring);
}
.kicker .icon { width: 14px; height: 14px; }
.kicker.open { background: var(--tint); color: var(--accent-dim); }
.kicker.account { background: var(--tint); color: var(--accent-dim); }
.kicker.paid { background: var(--brass-bg); color: var(--brass); border: 1px solid var(--brass-line); }
.kicker.admin { background: var(--panel); color: var(--aqua); }
.kicker .demo { opacity: .75; font-weight: 600; letter-spacing: .05em; }

/* ── Building blocks ─────────────────────────────────────────── */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  position: relative; background: var(--surface); border: 0; border-radius: var(--r-lg);
  padding: 24px; box-shadow: 0 0 0 1px var(--ring), var(--shadow-1);
}
.card h3 { margin: 0 0 8px; font-size: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
/* a soft light that follows the pointer (motion.js sets --mx and --my); only where there is a pointer */
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%); }
@media (hover: hover) { .spot:hover::after { opacity: 1; } }

.stat { font-family: var(--display); font-size: clamp(30px, 5vw, 44px); font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent-dim); transition: color .3s; line-height: 1.1; }
.stat.flash { color: var(--accent-2); }

.notice { background: var(--surface-2); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent-2); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--text); margin-bottom: 22px; }
.muted { color: var(--text-dim); font-size: 13px; }
.scroll { overflow-x: auto; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: 13px; }
.chip strong { color: var(--accent-dim); font-variant-numeric: tabular-nums; }

.bar-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.bar-label { width: 140px; flex-shrink: 0; font-size: 13px; color: var(--text-dim); }
.bar-track { flex: 1; background: var(--surface-2); border-radius: 6px; height: 22px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.bar-fill { background: linear-gradient(90deg, var(--accent), var(--accent-2)); height: 100%; transition: transform .5s ease, width .5s ease; }
.bar-value { width: 130px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.bar-value.suppressed { color: var(--text-dim); font-style: italic; }

button, .btn {
  background: var(--cta); color: var(--on-cta); border: 0; border-radius: 12px; padding: 11px 18px;
  font: 600 15px/1.2 var(--font); cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(10, 20, 25, .18), 0 10px 20px -12px var(--cta);
  transition: background-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.btn { display: inline-flex; align-items: center; justify-content: center; }   /* a link styled as a button: text centred both ways, however wide the button */
body { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
button:hover, .btn:hover { background: var(--cta-hover); }
button:active, .btn:active { transform: scale(.97); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary, .btn.secondary { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring-2), 0 1px 2px rgba(10, 20, 25, .06); }
button.secondary:hover, .btn.secondary:hover { background: var(--surface-2); }
button.brass, .btn.brass { background: var(--brass); color: var(--on-accent); }
button.brass:hover, .btn.brass:hover { background: color-mix(in srgb, var(--brass) 82%, #000); }

select, input[type=text], input[type=email], input[type=password], input[type=number], input[type=search] {
  background: var(--surface); color: var(--text); border: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--ring-2);
  padding: 11px 14px; font: 15px var(--font); width: 100%;
  transition: box-shadow .2s;
}
select:focus, input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent-2) 24%, transparent); }
label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field { margin-bottom: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
td.mono { font-family: var(--mono); color: var(--text-dim); }

.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.status-pill.verified { background: var(--tint); color: var(--accent-dim); }
.status-pill.pending { background: var(--tint-yellow); color: var(--warn); }
.status-pill.rejected { background: var(--tint-red); color: var(--danger); }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: var(--panel); color: #fff; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
  opacity: 0; transition: opacity .3s; pointer-events: none; box-shadow: 0 6px 20px rgba(10, 40, 38, .25);
}
.toast.show { opacity: 1; }

/* ── Locked / tiers ──────────────────────────────────────────── */
.lock-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; max-width: 760px;
  background: var(--surface); border: 0; border-radius: var(--r-lg); padding: 28px;
  box-shadow: 0 0 0 1px var(--brass-line), 0 14px 30px -18px rgba(138, 90, 0, .35);
}
.lock-badge { width: 56px; height: 56px; border-radius: 16px; background: var(--brass-bg); color: var(--brass); display: grid; place-items: center; }
.lock-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lock-card h2 { font-family: var(--display); font-weight: 650; font-size: 28px; margin: 0; letter-spacing: -.03em; color: var(--ink); }
.lock-card p { margin: 0; color: var(--text-dim); }
.lock-card ul { margin: 10px 0 4px; padding-inline-start: 18px; font-size: 14px; }
.lock-card li { margin: 5px 0; }
.lock-card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lock-card .free-note { font-size: 13px; color: var(--accent-dim); margin-top: 14px; }
@media (max-width: 600px) { .lock-card { grid-template-columns: 1fr; } }

.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.tier { background: var(--surface); border: 0; border-radius: var(--r-lg); padding: 24px 24px 22px; display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--ring), var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tier:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ring-2), var(--shadow-2); }
.tier::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--panel); }
.tier.account::before { background: var(--accent-2); }
.tier.paid { background: color-mix(in srgb, var(--brass-bg) 40%, var(--surface)); box-shadow: 0 0 0 1px var(--brass-line), var(--shadow-1); }
.tier.paid::before { background: var(--brass); }
.tier .tag { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.tier.paid .tag { color: var(--brass); }
.tier .tag .icon { width: 14px; height: 14px; }
.tier h2 { font-family: var(--display); font-weight: 650; font-size: 24px; margin: 8px 0 6px; letter-spacing: -.03em; color: var(--ink); }
.tier p { margin: 0 0 12px; color: var(--text-dim); font-size: 14px; }
.tier ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; flex: 1; }
.tier li { padding: 10px 0; border-top: 1px solid var(--border); display: block; }
.tier li a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-2); }
.tier li a:hover { color: var(--accent-dim); }
.tier li span { display: block; color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.tier.paid li a { border-bottom-color: var(--brass-line); }
.tier .go { margin-top: auto; }

/* ── Bilingual / RTL ─────────────────────────────────────────── */
:root[lang="dv"] body, [lang="dv"] { font-family: "Noto Sans Thaana", var(--font); }
:root[lang="dv"] header.page-head h1, :root[lang="dv"] .brand b, :root[lang="dv"] .tier h2, :root[lang="dv"] .lock-card h2 { font-family: "Noto Sans Thaana", var(--display); }
/* Thaana needs more leading than Latin at the same point size */
[dir="rtl"] body { line-height: 1.9; }
[dir="rtl"] .bar-row { flex-direction: row-reverse; }
[dir="rtl"] .bar-value { text-align: left; }
[dir="rtl"] td, [dir="rtl"] th { text-align: right; }
[dir="rtl"] .next-list li { grid-template-columns: 1fr 28px; }

.draft-banner {
  background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border);
  border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; margin: -10px 0 22px;
}
.draft-banner[hidden] { display: none; }

/* ── Candidate/option avatars ────────────────────────────────── */
.avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.option-row { display: flex; align-items: center; gap: 10px; }

.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }


/* ── Phone: a floating tab bar, a full-screen menu, bigger tap targets ─────────────── */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; padding: 6px; border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 0 0 1px var(--ring), var(--shadow-2); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; border: 0; box-shadow: none; color: var(--text-dim); font: 550 11px var(--font); padding: 6px 2px; min-height: 52px; border-radius: 16px; text-decoration: none; }
  .tabbar a:hover, .tabbar button:hover { background: transparent; }
  .tabbar .icon svg { width: 22px; height: 22px; }
  .tabbar a.on, .tabbar button.on { color: var(--accent-dim); background: var(--tint); }
  main.page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .side.open { position: fixed; inset: 0; max-height: none; height: 100%; overflow-y: auto; z-index: 70; padding-bottom: 40px; background: var(--bg); align-content: flex-start; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .side.open .side-nav a { padding: 14px 12px; font-size: 16px; min-height: 48px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .tabbar { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  select, input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea { font-size: 16px; min-height: 46px; }
  button, .btn { min-height: 44px; }
  table button, td button, .gchip button { min-height: 34px; }
  .card { padding: 18px; border-radius: 20px; }
  main.page { padding-left: 16px; padding-right: 16px; }
  header.page-head { margin-bottom: 20px; }
}
@media print { .tabbar { display: none !important; } }

/* ── Logo mark (the Majlis arc over a ballot slot): colours follow the theme ───────── */
.logo-mark { width: 38px; height: 38px; flex: none; display: block; }
.logo-mark .bg { fill: var(--panel-2); stroke: color-mix(in srgb, var(--aqua) 40%, transparent); stroke-width: 1.2; }
.logo-mark .dot { fill: var(--aqua); }
.logo-mark .hot { fill: #fff; }
.logo-mark .slot { fill: var(--aqua); opacity: .55; }
.themebtn { background: transparent; border: 1px solid color-mix(in srgb, var(--aqua) 35%, transparent); color: var(--aqua); border-radius: 999px; padding: 6px 12px; font-size: 13px; min-height: 36px; }
.themebtn:hover { background: rgba(255,255,255,.08); }

.brand .mark.logo { width: auto; height: auto; background: none; border-radius: 0; display: block; }
.side .lang-toggle + .lang-toggle { margin-top: 8px; }
.bx-top .bx-mark { background: none; width: auto; height: auto; }
.bx-top .logo-mark { width: 36px; height: 36px; }

.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* the insights: real numbers for a paying workspace, a locked preview for everyone else */
.ins { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.ins .k { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; position: relative; overflow: hidden; }
.ins .k h4 { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.ins .k .big { font: 600 30px/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ins .k p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-dim); }
.ins .k.locked .ph { filter: blur(7px); opacity: .7; user-select: none; pointer-events: none; }
.ins .k.locked .ph .bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin: 8px 0 0; }
.ins .k.locked .lk { position: absolute; top: 12px; inset-inline-end: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--brass-bg); color: var(--brass); border: 1px solid var(--brass-line); display: grid; place-items: center; }
.ins .k.locked .lk svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.unlock { margin-top: 14px; background: linear-gradient(135deg, var(--brass-bg), var(--surface)); border: 1px solid var(--brass-line); border-radius: 18px; padding: 18px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.unlock b { display: block; font: 600 20px var(--display); color: var(--ink); } .unlock span { font-size: 14px; color: var(--text-dim); }
.unlock .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Motion (motion.js adds .mo to <html> unless reduced motion is on, so nothing is hidden if the script never runs) ─────────── */
.mo .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.mo .rv.in { opacity: 1; transform: none; }
[data-words] .w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(20px); }
[data-words].go .w { opacity: 1; filter: none; transform: none; transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 50ms + 120ms); }
.draw { stroke-dasharray: var(--len, 1); stroke-dashoffset: var(--len, 1); }
.draw.in { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease-chart) var(--d, 0ms); }
[data-tilt] { transition: box-shadow .35s var(--ease); will-change: transform; }

.muted a, .sub a, .sec-sub a, .card p a { color: var(--accent-dim); text-underline-offset: 3px; }
@media print { .mo .rv { opacity: 1; transform: none; } }
/* Party logo beside the party name; absent for a party with no logo file (see party-logos.js). */
.plogo { height: 1.35em; width: auto; max-width: 2.6em; object-fit: contain; vertical-align: -.3em; margin-inline-end: .4em; border-radius: 3px; }

.unlockcard p { margin: 0 0 8px; max-width: 62ch; line-height: 1.6; }
.unlockcard .ulead { font: 600 19px/1.3 var(--display); color: var(--ink); letter-spacing: -.02em; }
.unlockcard .row { display: flex; gap: 10px 12px; flex-wrap: wrap; margin-top: 16px; }

.themebtn.themeicon { display: inline-grid; place-items: center; width: 36px; min-width: 36px; padding: 0; }
