/* ============================================================
   انتخاب ما — shared design system
   Light editorial surfaces, deep-navy hero, restrained blue/green
   accents. All public pages and the staff desk use these tokens.
   ============================================================ */

:root {
  --navy: #071d3b;
  --navy-2: #0b2c55;
  --blue: #15579a;
  --blue-2: #2d79c7;
  --teal: #00b895;
  --green: #08b66a;
  --red: #eb4e58;
  --ink: #102e55;
  --muted: #526a86;
  --paper: #f5f8fd;
  --surface: #ffffff;
  --line: #d4e1f0;
  --line-soft: #e6eef8;
  --shadow: 0 16px 38px rgba(19, 54, 96, 0.12);
  --shadow-sm: 0 8px 22px rgba(19, 54, 96, 0.08);
  --radius: 20px;
  --radius-sm: 13px;
  --font: "Vazirmatn", "IRANSans", Tahoma, "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 460px at 92% -8%, rgba(45, 121, 199, 0.10), transparent 70%),
    radial-gradient(760px 420px at 4% 22%, rgba(0, 184, 149, 0.07), transparent 70%),
    linear-gradient(180deg, #eef4fc 0%, #f9fbff 46%, #edf4fc 100%);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea { font: inherit; }
h1, h2, h3, h4, p, ul { margin-top: 0; }
ul { padding-inline-start: 1.1em; }

:focus-visible {
  outline: 3px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: rgba(45, 121, 199, 0.22); }

.skip-link {
  position: absolute;
  top: -70px;
  inset-inline-end: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { top: 12px; }

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

/* ---------- header / navigation ---------- */

.site-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: 1580px;
  min-height: 92px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.6vw, 76px);
  color: #fff;
}

.hero .site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
}

.site-header--solid {
  position: sticky;
  top: 0;
  max-width: none;
  color: var(--navy);
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: inherit;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand__mark {
  width: 44px;
  height: 50px;
  flex: none;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.16));
}
.brand:hover .brand__mark { animation: markLift 0.6s ease; }
@keyframes markLift {
  50% { transform: translateY(-3px); }
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  margin-inline: auto;
  font-size: 14px;
  font-weight: 700;
}
.primary-nav a {
  position: relative;
  padding: 12px 0;
  color: inherit;
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 9px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active { opacity: 1; }
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after { transform: scaleX(1); }
.site-header:not(.site-header--solid) .primary-nav a.is-active::after { background: #53a9ff; }

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 11px 19px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: #f8fbff;
  color: #113a70;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 14, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.download-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 14, 42, 0.24); }
.download-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header--solid .download-button {
  border-color: transparent;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: none;
}
.site-header--solid .menu-toggle {
  border-color: var(--line);
  background: #fff;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header--solid .menu-toggle { color: var(--navy); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- homepage hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  overflow: hidden;
  background: #061c3a;
  color: #fff;
}
.hero__photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  background-image: url("/assets/images/hero-election.jpg");
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
  z-index: -2;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 20, 42, 0.03) 0%, rgba(5, 27, 56, 0.10) 30%, rgba(5, 27, 56, 0.74) 52%, #061c3a 70%, #061c3a 100%),
    linear-gradient(0deg, rgba(4, 21, 43, 0.34), transparent 42%);
}
.hero__bottom-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(0deg, rgba(7, 29, 59, 0.2), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 154px clamp(20px, 4.6vw, 76px) 58px;
  flex: 1;
}
.hero-copy {
  width: min(600px, 54%);
  text-align: right;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: #b8d4f4;
  font-size: 13px;
  font-weight: 700;
}
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ed49d;
  box-shadow: 0 0 0 5px rgba(30, 212, 157, 0.12);
}
.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(56px, 6.1vw, 86px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -2px;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}
.hero-copy__lead {
  margin: 9px 0 0;
  color: #f5f8ff;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 800;
}
.flag-rule {
  display: flex;
  width: 200px;
  height: 4px;
  margin: 22px 0 24px auto;
  border-radius: 6px;
  overflow: hidden;
  direction: ltr;
}
.flag-rule i { display: block; flex: 1; }
.flag-rule i:nth-child(1) { background: #00a96f; }
.flag-rule i:nth-child(2) { background: #fff; }
.flag-rule i:nth-child(3) { background: #ed4a56; }

.countdown-host { min-height: 226px; }

/* ---------- countdown panel ---------- */

.countdown-panel {
  padding: 17px 22px 13px;
  border: 1px solid rgba(210, 233, 255, 0.36);
  border-radius: 23px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  box-shadow: 0 16px 40px rgba(0, 12, 33, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.countdown-panel__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.clock-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #6db8ff;
  background: rgba(70, 150, 225, 0.14);
}
.clock-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.countdown-panel__text { min-width: 0; }
.countdown-panel__kicker {
  margin: 0;
  color: #bbd3ee;
  font-size: 12px;
  font-weight: 700;
}
.countdown-panel__heading h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}
.countdown-panel__date {
  margin: 1px 0 0;
  color: #d7e7fb;
  font-size: 12px;
  font-weight: 600;
}
.live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  margin-inline-start: auto;
  border-radius: 50%;
  background: #22d99e;
  box-shadow: 0 0 0 5px rgba(34, 217, 158, 0.13);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  50% { box-shadow: 0 0 0 9px rgba(34, 217, 158, 0.04); }
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border: 1px solid rgba(151, 195, 239, 0.3);
  border-radius: 16px;
  background: rgba(3, 26, 58, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.countdown__unit strong {
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.countdown__unit span {
  color: #d7e7fb;
  font-size: 12px;
  font-weight: 700;
}
.countdown-panel__note {
  margin: 9px 2px 0;
  color: rgba(226, 239, 255, 0.72);
  font-size: 10px;
  text-align: start;
}
.countdown-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 26px;
  border: 1px dashed rgba(210, 233, 255, 0.4);
  border-radius: 20px;
  color: #cfe2f7;
  font-size: 13px;
  text-align: center;
}

/* ---------- election (race) cards ---------- */

.elections-section {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 26px clamp(20px, 3.8vw, 64px) 8px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 16px;
}
.section-heading h2 {
  flex: none;
  margin: 0;
  color: #092a54;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.section-heading__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #91adce);
}
.section-heading__line:last-child { transform: scaleX(-1); }

.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}
.race-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 9px;
  min-height: 146px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid #d7e4f3;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(240, 246, 255, 0.96));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.race-card:hover {
  transform: translateY(-3px);
  border-color: #a9c9e9;
  box-shadow: 0 16px 32px rgba(20, 59, 105, 0.14);
}
.race-card--nearest {
  border-color: #91c9e6;
  box-shadow: 0 10px 25px rgba(0, 137, 156, 0.14);
}
.race-card--nearest::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(#00b58c, #5ba9f0);
}
.race-card__icon {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(145deg, #e6f2ff, #f6faff);
  color: #1761a9;
}
.race-card__icon svg {
  width: 47px;
  height: 47px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.race-card__icon--person svg,
.race-card__icon--people svg { fill: currentColor; stroke: none; opacity: 0.94; }
.race-card__copy { min-width: 0; align-self: end; }
.race-card__tag {
  display: inline-block;
  margin-bottom: 2px;
  color: #007a64;
  font-size: 10px;
  font-weight: 800;
}
.race-card__copy h3 {
  margin: 0 0 3px;
  color: #112f59;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
}
.race-card__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.race-card__days {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  grid-column: 2;
  padding: 5px 11px;
  border-radius: 20px;
  background: #e1efff;
  color: #14528f;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.race-card__days strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.race-card__days svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.race-card.is-done .race-card__days { background: #eef2f7; color: var(--muted); }

/* ---------- quick links ---------- */

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1480px;
  margin: 22px auto 30px;
  padding: 0 clamp(20px, 3.8vw, 64px);
}
.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 94px;
  padding: 13px 15px;
  border-inline-start: 1px solid #b9cce2;
  color: #102f59;
  transition: background 0.2s ease, border-radius 0.2s ease;
}
.quick-link:first-child { border-inline-start: 0; }
.quick-link:hover { background: rgba(220, 235, 252, 0.5); border-radius: 13px; }
.quick-link__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  color: #1768b4;
}
.quick-link__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-link strong,
.quick-link small { display: block; }
.quick-link strong { font-size: 14px; font-weight: 900; }
.quick-link small { color: var(--muted); font-size: 11px; font-weight: 600; }
.quick-link__arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: #2879c9;
  color: #fff;
  font-size: 17px;
}

/* ---------- info cards + app banner ---------- */

.details-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  max-width: 1480px;
  margin: 24px auto;
  padding: 0 clamp(20px, 3.8vw, 64px);
}
.info-card {
  padding: 24px 23px 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.info-card__eyebrow { color: #007a64; font-size: 11px; font-weight: 900; }
.info-card h2 {
  margin: 7px 0;
  color: #0a2c57;
  font-size: 18px;
  line-height: 1.55;
}
.info-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.info-card > a { color: #1264a7; font-size: 12px; font-weight: 900; }
.info-card > a span { margin-inline-start: 4px; }
.info-stack {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.info-stack .info-card h2 { font-size: 19px; }
.info-stack .info-card p { margin-bottom: 0; font-size: 14px; }

.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1360px;
  margin: 28px auto 36px;
  padding: 19px 27px;
  border: 1px solid #cbdff1;
  border-radius: 22px;
  background: linear-gradient(100deg, #e0f0fa, #fff 52%, #e4f6f5);
  box-shadow: var(--shadow-sm);
}
.app-banner__copy { display: flex; align-items: center; gap: 15px; }
.app-banner__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #e3f0ff;
  color: #1769b3;
  font-size: 26px;
}
.app-banner h2 { margin: 0; font-size: 18px; font-weight: 900; }
.app-banner p { margin: 2px 0 0; color: #55718f; font-size: 12px; }
.app-banner__status {
  flex: none;
  padding: 9px 15px;
  border: 1px solid #d4e2ef;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  color: #55718f;
  font-size: 12px;
}

/* ---------- confirmed news carousel ---------- */

.news-section { padding: 30px 0 10px; }
.section.news-section { padding: 34px 0 12px; }
.news-section .container { max-width: 1080px; }
.news-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0 6px;
}
.news-wrap:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; border-radius: 20px; }
.news-stage { position: relative; height: 368px; }
.news-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: 208px;
  height: 306px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform-origin: center;
  opacity: var(--o, 0.45);
  z-index: 1;
  transform: translate(calc(-50% + var(--x, 0px)), -50%) scale(var(--s, 0.8));
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, box-shadow 0.5s, border-color 0.3s;
}
.news-card.news-slot-0 {
  --x: 0px;
  --s: 1.14;
  --o: 1;
  z-index: 5;
  border-color: #a9c9e9;
  box-shadow: var(--shadow), 0 0 40px rgba(45, 121, 199, 0.16);
}
.news-card.news-slot-1 { --x: 218px; --s: 0.96; --o: 0.82; z-index: 4; }
.news-card.news-slot--1 { --x: -218px; --s: 0.96; --o: 0.82; z-index: 4; }
.news-card.news-slot-2 { --x: 392px; --s: 0.84; --o: 0.5; z-index: 3; }
.news-card.news-slot--2 { --x: -392px; --s: 0.84; --o: 0.5; z-index: 3; }
.news-card.is-off { --x: 0px; --s: 0.72; --o: 0; z-index: 1; pointer-events: none; }
.news-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c3d8ee;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.news-nav:hover { border-color: var(--blue-2); color: var(--blue-2); background: #fff; }
.news-nav[disabled] { opacity: 0.3; cursor: default; }
.news-nav-right { right: 4px; }
.news-nav-left { left: 4px; }
.news-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf2fc, #f9fbff);
}
.news-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-icon { font-size: 38px; opacity: 0.6; }
.news-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 3px 9px;
  border: 1px solid #d6e6f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  font-size: 11px;
}
.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  text-align: start;
}
.news-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.news-date { color: var(--blue); font-size: 11px; font-weight: 800; }
.news-author {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-empty {
  width: 100%;
  margin: 0;
  padding: 34px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- download / trust band ---------- */

.trust-band { padding: 48px 0 26px; }
.trust-band .container { max-width: 940px; }
.trust-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1.5fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 22px;
}
.trust-badges { display: flex; flex-direction: column; gap: 10px; }
.trust-slot {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 168px;
  padding: 22px 18px;
  border: 1px dashed #a9c9e9;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.trust-slot-icon { font-size: 30px; line-height: 1; opacity: 0.7; }
.trust-slot strong { color: var(--navy); font-size: 14px; }
.trust-slot-hint { max-width: 210px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.trust-note { padding: 0 2px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s;
}
a.dl-card:hover { border-color: #a9c9e9; transform: translateY(-2px); }
.dl-card.is-soon { border-style: dashed; opacity: 0.82; cursor: default; box-shadow: none; }
.dl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e3f0ff;
  color: #1769b3;
  font-size: 17px;
}
.dl-text { flex: 1; min-width: 0; text-align: start; }
.dl-text strong { display: block; color: var(--navy); font-size: 14px; line-height: 1.6; }
.dl-text span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.dl-soon {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e1efff;
  color: #14528f;
  font-size: 10px;
  font-weight: 800;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 36px;
  background: var(--navy);
  color: #d6e4f4;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 80px);
  flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.brand--footer { color: #fff; font-size: 17px; }
.brand__mini {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #27cba4;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}
.site-footer__brand p { margin: 0; color: #a9bdd4; font-size: 12px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; }
.site-footer__nav a { color: #d6e4f4; opacity: 0.85; }
.site-footer__nav a:hover { opacity: 1; text-decoration: underline; }
.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #a9bdd4;
  font-size: 11px;
}
.site-footer__meta a { color: #d6e4f4; }
.back-top { color: #fff; font-weight: 700; font-size: 12px; }

/* ---------- interior page shell ---------- */

.section {
  position: relative;
  padding: 54px 0 60px;
}
.page-hero {
  padding: 30px 0 10px;
}
.page-hero .section-title { margin-bottom: 6px; }
.section-title {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.5px;
  text-align: center;
}
.section-title span { color: var(--blue-2); }
.section-sub {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* generic buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue); }
.btn-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--blue);
}
.btn-secondary:hover { border-color: #a9c9e9; background: #f3f8ff; transform: translateY(-2px); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: #a9c9e9; color: var(--blue); }
.filter-btn.active {
  border-color: transparent;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.admin-select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.admin-select:focus { border-color: var(--blue-2); background: #fff; }

/* candidate cards */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.candidate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.candidate-card:hover {
  transform: translateY(-4px);
  border-color: #a9c9e9;
  box-shadow: var(--shadow);
}
.candidate-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 3px solid #e6f1fc;
  border-radius: 50%;
  background: #eaf2fc;
}
.candidate-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { font-size: 32px; opacity: 0.8; }
.candidate-info h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}
.candidate-sub {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}
.like-count { color: var(--blue); font-size: 12px; font-weight: 800; }
.candidate-rank {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e3f0ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

/* elections list (elections.html) */
.elections-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.election-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.election-card:hover {
  transform: translateY(-2px);
  border-color: #a9c9e9;
  box-shadow: var(--shadow);
}
.election-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #eaf3fd;
  font-size: 26px;
}
.election-body { flex: 1; min-width: 0; }
.election-body h3 { margin: 0; color: var(--navy); font-size: 16px; font-weight: 800; }
.election-body p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.election-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.election-badge {
  padding: 2px 10px;
  border-radius: 8px;
  background: #eef5fe;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.election-cta { flex-shrink: 0; color: var(--blue-2); font-size: 13px; font-weight: 800; }
.status-upcoming { background: #e8f4ff; color: #1769b3; }
.status-campaign { background: #e5f8ee; color: #087a4b; }
.status-voting { background: #fdecee; color: #c33643; }
.status-completed { background: #eef5fe; color: var(--blue); }

/* profile page */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.profile-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 118px;
  height: 118px;
  overflow: hidden;
  border: 4px solid #e6f1fc;
  border-radius: 50%;
  background: #eaf2fc;
  font-size: 48px;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 0; }
.profile-info h1 { margin: 0 0 6px; color: var(--navy); font-size: clamp(22px, 3vw, 27px); line-height: 1.5; }
.profile-info .subtitle { color: var(--muted); font-size: 13px; }
.profile-section { margin-bottom: 24px; }
.profile-section h2,
.profile-section h3 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 18px;
}
.profile-field {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #fff;
}
.profile-field h4 { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.profile-field p { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 13.5px;
}
.timeline li:last-child { border-bottom: 0; }
.timeline b { color: var(--navy); }
.rich-text { color: #3b5373; font-size: 14px; line-height: 2; }
.back-row { margin-top: 28px; }

/* search */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 34px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}
.search-input::placeholder { color: #96a9bf; }
.search-input:focus { background: #f4f9ff; }
.search-btn {
  flex: none;
  padding: 10px 24px;
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.search-btn:hover { background: var(--blue); }
.result-count {
  grid-column: 1 / -1;
  padding: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* disclaimer / notice */
.disclaimer-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 26px;
  border: 1px solid #f0d9a8;
  border-radius: 16px;
  background: #fffaf0;
}
.disclaimer-box h3 { margin: 0 0 6px; color: #9a6c0a; font-size: 15px; }
.disclaimer-box p { margin: 0; color: #6d5b37; font-size: 13px; line-height: 1.9; }

/* states + helpers */
.loading,
.empty-state,
.error-state {
  padding: 34px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.error-state { color: #c33643; }
.cta-center { margin-top: 30px; text-align: center; }
.inline-link { color: var(--blue-2); font-weight: 700; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.pagination span { color: var(--muted); font-size: 12px; }
.fade-in { animation: fadeIn 0.5s ease-out both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Staff desk — same surfaces, forms and buttons as the public site
   ============================================================ */

.desk-wrap { max-width: 820px; margin: 0 auto; }
.login-card {
  max-width: 430px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.login-card h2 { margin-bottom: 8px; color: var(--navy); font-size: 20px; text-align: center; }
.login-card .hint { text-align: center; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: #40587a;
  font-size: 12.5px;
  font-weight: 700;
}
.field input,
.item-form input[type="text"],
.item-form input[type="date"],
.item-form input[type="number"],
.item-form textarea,
.date-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.item-form input[type="text"]:focus,
.item-form input[type="date"]:focus,
.item-form input[type="number"]:focus,
.item-form textarea:focus,
.date-row select:focus { border-color: var(--blue-2); background: #fff; }
.field input { direction: ltr; text-align: left; }
.login-card .btn { width: 100%; margin-top: 8px; }
.form-error {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid #f3c9cd;
  border-radius: 10px;
  background: #fdf0f1;
  color: #b52d3a;
  font-size: 12.5px;
  line-height: 1.8;
}
.form-error.show { display: block; }
.desk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.desk-who strong { color: var(--navy); font-size: 16px; }
.desk-who span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; direction: ltr; text-align: right; }
.role-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.role-chip {
  padding: 2px 11px;
  border: 1px solid #c9def4;
  border-radius: 20px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
}
.role-chip.admin { border-color: #f0d9a8; background: #fff8e9; color: #9a6c0a; }
.desk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.desk-tile {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.desk-tile h3 { margin-bottom: 6px; color: var(--navy); font-size: 15px; }
.desk-tile p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.desk-tile .tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  border-radius: 8px;
  background: #eef5fe;
  color: var(--blue);
  font-size: 11px;
}
.desk-tile.locked { opacity: 0.5; }
.gate {
  max-width: 470px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #f3c9cd;
  border-radius: 16px;
  background: #fdf5f6;
  text-align: center;
}
.gate h2 { margin-bottom: 10px; color: #b52d3a; font-size: 18px; }
.gate p { margin-bottom: 20px; color: #6d5b5d; font-size: 13px; line-height: 1.9; }

.desk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.desk-msg {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #c9def4;
  border-radius: 10px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 12.5px;
  line-height: 1.8;
}
.desk-toolbar .desk-msg { margin: 0; }
.desk-msg.ok { border-color: #bfe8d2; background: #eefaf3; color: #087a4b; }
.desk-msg.error { border-color: #f3c9cd; background: #fdf0f1; color: #b52d3a; }
.item-list { display: grid; gap: 10px; margin-bottom: 20px; }
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item-main strong { color: var(--navy); font-size: 14px; font-weight: 800; }
.item-meta { color: var(--muted); font-size: 11.5px; }
.item-reason { color: #b52d3a; font-size: 11.5px; }
.item-actions { display: flex; flex-shrink: 0; gap: 8px; }
.item-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.form-head h2 { margin: 0; color: var(--navy); font-size: 18px; }
.field-label { display: block; margin-bottom: 7px; color: #40587a; font-size: 12.5px; font-weight: 700; }
.item-form input[type="date"],
.item-form input[type="number"],
.date-row select { direction: ltr; text-align: left; }
.item-form textarea { resize: vertical; direction: rtl; }
.item-form input:disabled { opacity: 0.5; cursor: not-allowed; }
.season-card { margin-bottom: 14px; }
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tpl-card {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tpl-card input { display: none; }
.tpl-card strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: 13px; }
.tpl-card span { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.tpl-card.selected { border-color: var(--blue-2); background: #eef6ff; }
.date-row { display: flex; gap: 10px; }
.date-row select { flex: 1; }
.media-slot {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px dashed #a9c9e9;
  border-radius: 12px;
  background: #fbfdff;
}
.media-slot input[type="file"] { width: 100%; color: var(--muted); font-size: 12px; }
.media-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.media-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid #c9def4;
  border-radius: 20px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 11.5px;
}
.media-chip button { border: 0; background: transparent; color: #b52d3a; cursor: pointer; font-size: 11.5px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hint { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }

.panel-title { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 18px; }
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #e3f0ff;
  color: var(--blue);
  font-size: 11px;
}
.panel-block { margin-bottom: 22px; }
.block-title { margin-bottom: 10px; color: #40587a; font-size: 13px; font-weight: 800; }
.review-body {
  max-height: 340px;
  margin-bottom: 16px;
  padding: 16px 18px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfdff;
  color: #3b5373;
  font-size: 14px;
  line-height: 2;
  white-space: pre-wrap;
}
.review-media-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.review-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.review-media img,
.review-media video { display: block; width: 100%; height: 150px; object-fit: cover; background: #eaf2fc; }
.review-media audio { width: 100%; padding: 8px; }
.review-media figcaption { padding: 6px 10px; color: var(--muted); font-size: 10.5px; }
.review-media-row:empty { display: none; }

.tabs { display: flex; gap: 8px; margin: 4px 0 20px; border-bottom: 1px solid var(--line); }
.tab-btn {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue-2); font-weight: 700; }
.admin-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.role-check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #40587a; font-size: 13px; }
.role-check-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.role-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.role-btn {
  padding: 4px 10px;
  border: 1px solid #c9def4;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.18s;
}
.role-btn:hover { border-color: var(--blue-2); color: var(--blue); }
.role-btn.on { border-color: var(--blue-2); background: #e3f0ff; color: var(--blue); font-weight: 700; }

/* ---------- toast ---------- */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .primary-nav { gap: 20px; }
  .brand { font-size: 22px; }
  .hero-copy { width: min(560px, 56%); }
  .hero-copy h1 { font-size: clamp(52px, 6vw, 70px); }
}

@media (max-width: 980px) {
  .hero__photo { width: 58%; }
  .hero-copy { width: 60%; }
  .quick-link { gap: 8px; padding-inline: 8px; }
  .quick-link strong { font-size: 12.5px; }
  .quick-link__icon { width: 38px; height: 38px; }
  .quick-link__icon svg { width: 34px; height: 34px; }
  .news-card.news-slot-1 { --x: 200px; }
  .news-card.news-slot--1 { --x: -200px; }
  .news-card.news-slot-2,
  .news-card.news-slot--2 { --x: 0; --o: 0; }
  .details-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-section .info-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; order: 2; }
  .site-header { gap: 12px; min-height: 76px; padding: 0 20px; }
  .site-header--solid { min-height: 68px; }
  .brand { font-size: 20px; gap: 8px; order: 1; }
  .brand__mark { width: 38px; height: 43px; }
  .download-button { order: 3; margin-inline-start: auto; padding: 9px 14px; font-size: 12px; }
  .primary-nav {
    position: absolute;
    top: calc(100% - 5px);
    inset-inline: 16px;
    z-index: 1;
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: var(--navy);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    color: #fff;
  }
  .site-header--solid .primary-nav {
    border-color: var(--line);
    background: #fff;
    color: var(--navy);
  }
  .primary-nav.is-open { display: flex; }
  body.menu-open .hero .hero__content { visibility: hidden; }
  .primary-nav a { padding: 11px 13px; border-radius: 9px; opacity: 1; }
  .primary-nav a::after { display: none; }
  .primary-nav a:hover,
  .primary-nav a.is-active { background: rgba(255, 255, 255, 0.1); }
  .site-header--solid .primary-nav a:hover,
  .site-header--solid .primary-nav a.is-active { background: #eef6ff; }

  .hero { min-height: 0; }
  .hero__photo { width: 100%; height: 100%; background-position: 34% center; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 26, 54, 0.68) 0%, rgba(5, 27, 56, 0.8) 44%, #061c3a 92%),
      linear-gradient(90deg, rgba(5, 24, 49, 0.16), rgba(5, 24, 49, 0.44));
  }
  .hero__content { padding: 118px 20px 44px; }
  .hero-copy { width: 100%; max-width: 580px; margin: 0 auto; text-align: center; }
  .eyebrow { justify-content: center; font-size: 12px; }
  .hero-copy h1 { font-size: clamp(50px, 13vw, 72px); }
  .hero-copy__lead { font-size: 19px; }
  .flag-rule { width: 165px; margin: 20px auto 24px; }
  .countdown-panel { padding: 16px 14px 12px; border-radius: 19px; text-align: right; }
  .countdown-panel__heading h2 { font-size: 16px; }
  .countdown-panel__kicker { font-size: 11px; }
  .clock-icon { width: 32px; height: 32px; }
  .countdown { gap: 6px; }
  .countdown__unit { min-height: 78px; border-radius: 12px; }
  .countdown__unit strong { font-size: 30px; }
  .countdown__unit span { font-size: 11px; }
  .countdown-panel__note { font-size: 9px; }

  .elections-section { padding: 18px 18px 5px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 21px; }
  .race-grid { grid-template-columns: 1fr; gap: 11px; }
  .race-card { min-height: 116px; grid-template-columns: 62px minmax(0, 1fr); padding: 13px 15px; column-gap: 12px; }
  .race-card__icon { width: 58px; height: 58px; border-radius: 16px; }
  .race-card__icon svg { width: 40px; height: 40px; }
  .race-card__copy h3 { font-size: 15px; }

  .quick-links {
    grid-template-columns: 1fr 1fr;
    margin: 16px auto 24px;
    padding: 0 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
  }
  .quick-link {
    min-height: 78px;
    justify-content: flex-start;
    padding: 11px 12px;
    border-inline-start: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .quick-link:nth-child(even) { border-inline-start: 0; }
  .quick-link:nth-child(n + 3) { border-bottom: 0; }
  .quick-link__arrow { display: none; }
  .quick-link strong { font-size: 12px; }
  .quick-link small { font-size: 10px; }

  .details-section { grid-template-columns: 1fr; gap: 11px; padding: 0 18px; margin: 20px auto; }
  .details-section .info-card:last-child { grid-column: auto; }
  .info-card { padding: 19px; }

  .app-banner { display: block; margin: 22px 18px 28px; padding: 18px; }
  .app-banner__status { display: inline-block; margin-top: 14px; font-size: 10px; }

  .news-section { padding: 22px 0 0; }
  .news-stage { height: 330px; }
  .news-card { width: calc(100% - 26px); height: 312px; }
  .news-card.news-slot-0 { --s: 1; }
  .news-card.news-slot-1,
  .news-card.news-slot--1,
  .news-card.news-slot-2,
  .news-card.news-slot--2 { --x: 0px; --s: 1; --o: 0; }
  .news-nav { width: 38px; height: 38px; font-size: 20px; }
  .news-nav-right { right: 0; }
  .news-nav-left { left: 0; }

  .trust-band { padding: 32px 0 12px; }
  .trust-grid { grid-template-columns: 1fr; gap: 12px; }
  .trust-slot { min-height: 0; padding: 18px; }
  .trust-slot-hint { max-width: none; }

  .site-footer { margin-top: 24px; }
  .site-footer__inner { padding: 22px 20px; gap: 14px; }
  .site-footer__brand { flex-basis: 100%; }
  .site-footer__nav { order: 3; flex-basis: 100%; }
  .site-footer__meta { margin-inline-start: auto; }

  .section { padding: 38px 0 46px; }
  .section-sub { margin-bottom: 26px; }
  .candidates-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .candidate-card { padding: 18px 12px 15px; }
  .candidate-photo { width: 72px; height: 72px; }
  .profile-header { flex-direction: column; align-items: center; padding: 20px; text-align: center; }
  .profile-info { width: 100%; }
  .election-meta { justify-content: center; }
  .search-box { flex-direction: column; padding: 8px; }
  .search-btn { width: 100%; }
  .election-card { gap: 12px; padding: 15px; }
  .election-cta { display: none; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .desk-grid { grid-template-columns: 1fr; }
  .item-row { align-items: flex-start; flex-direction: column; }
  .date-row { flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .download-button span { display: none; }
  .download-button { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .hero-copy h1 { font-size: clamp(46px, 15vw, 62px); }
  .countdown__unit strong { font-size: 26px; }
  .countdown__unit { min-height: 70px; }
  .countdown-panel__date { font-size: 11px; }
  .candidates-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__meta { flex-basis: 100%; justify-content: space-between; }
  .site-footer__nav { gap: 6px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .news-card { transition: none; }
}
