:root {
  --navy:        #1e2a38;
  --navy-2:      #29394d;
  --page:        #f4f4f2;
  --surface:     #ffffff;
  --ink:         #14181d;
  --ink-2:       #52586170;
  --ink-muted:   #6b7280;
  --hairline:    #e4e4e0;
  --accent-1:    #2a78d6; /* blue */
  --accent-2:    #eb6834; /* orange */
  --accent-3:    #1baf7a; /* aqua */
  --good:        #0ca30c;
  --critical:    #d03b3b;
  --black-panel: #14171a;
  --white-panel: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .logo { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; color: #fff; }
.site-header .logo .tick { color: var(--accent-1); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: #cfd6de; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.site-header nav a.active, .site-header nav a:hover { color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 24px 80px; }
.wrap.narrow { max-width: 780px; }

.breadcrumb { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--accent-1); text-decoration: none; }

h1.page-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.01em; }
p.page-sub { color: var(--ink-muted); font-size: 14px; margin: 0 0 28px; max-width: 640px; line-height: 1.6; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 40px 0 14px;
}
.section-head:first-of-type { margin-top: 0; }
.section-head h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin: 0; }
.section-head a { font-size: 13px; color: var(--accent-1); text-decoration: none; font-weight: 600; }

/* full-bleed band */
.band { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.band-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.search-hero {
  background: var(--navy);
  color: #fff;
  padding: 46px 0 40px;
}
.search-hero h1 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.search-hero p { color: #cfd6de; margin: 0 0 20px; font-size: 14.5px; }
.search-hero .search-box {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--ink-muted);
  font-size: 14.5px;
  max-width: 480px;
}

/* Card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }

.feed-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 18px;
}
.feed-card .headline { font-size: 14px; line-height: 1.5; margin: 0 0 10px; font-weight: 600; }
.feed-card .meta { font-size: 12px; color: var(--ink-muted); }
.delta-down { color: var(--critical); font-weight: 700; }
.delta-up { color: var(--good); font-weight: 700; }

/* election list rows */
.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
}
.list-row .flag { font-size: 26px; }
.list-row .name { font-size: 15.5px; font-weight: 700; }
.list-row .sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.list-row .chev { margin-left: auto; color: var(--ink-muted); font-size: 18px; }

/* stat grid (NTV-style icon rows) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  padding: 18px 16px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat-cell .sicon { font-size: 18px; margin-bottom: 8px; }
.stat-cell .slabel { font-size: 11.5px; color: var(--ink-muted); margin-bottom: 4px; }
.stat-cell .sval { font-size: 18px; font-weight: 800; }

/* Big split bar (NTV EVET/HAYIR) */
.split-bar-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px 26px 22px;
  margin-bottom: 28px;
}
.split-bar-card .sbtitle { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: 16px; }
.split-nums { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.split-nums .snum { font-size: 15px; font-weight: 700; }
.split-nums .snum b { font-size: 34px; }
.split-nums .snum.right { text-align: right; }
.split-bar-track { display: flex; height: 46px; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.split-bar-fill { display: flex; align-items: center; }
.split-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.split-labels .cname-link { text-decoration: none; color: inherit; }

/* candidate cards */
.candidate-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--accent-1);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}
.candidate-row .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--page); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; border: 1px solid var(--hairline); }
.candidate-row .info { flex: 1; }
.candidate-row .cname { font-size: 15px; font-weight: 700; }
.party-chip { display: inline-block; font-size: 11px; color: var(--ink-muted); border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 7px; margin-top: 4px; }
.candidate-row .approve-num { font-size: 20px; font-weight: 800; }
.candidate-row .approve-label { font-size: 10.5px; color: var(--ink-muted); text-align: right; }

.cta-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 8px;
}
.cta-btn.outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }

/* Figure page */
.figure-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.figure-hero .avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.figure-hero .fname { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.figure-hero .fsub { font-size: 13.5px; color: var(--ink-muted); }

.approve-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.approve-hero .anum { font-size: 46px; font-weight: 800; line-height: 1; }
.approve-hero .alabel { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.approve-hero .vote-btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: var(--accent-1);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}
.approve-hero .vote-btn.voted { background: var(--good); }

/* black/white split */
.split-events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) { .split-events { grid-template-columns: 1fr; } }
.split-events .colhead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.split-events .colhead.neg { color: var(--critical); }
.split-events .colhead.pos { color: var(--good); }
.event-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.event-card.neg { border-left: 4px solid var(--critical); }
.event-card.pos { border-left: 4px solid var(--good); }
.event-card .etext { font-size: 13.5px; line-height: 1.45; margin-bottom: 6px; }
.event-card .emeta { font-size: 11.5px; color: var(--ink-muted); }
.verified-badge { color: var(--accent-1); font-weight: 700; }

.add-event-link {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 18px;
  border: 1.5px dashed var(--ink-muted);
  border-radius: 8px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
}

/* forms */
.form-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 24px; max-width: 560px; }
.field-label { display: block; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 6px; font-weight: 600; }
.text-input, textarea.text-input {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 6px;
  background: var(--page);
  color: var(--ink);
}
.char-count { font-size: 11px; color: var(--ink-muted); text-align: right; margin-bottom: 18px; }
.similar-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--hairline); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--page); }
.similar-item .stext { flex: 1; font-size: 13px; }
.pick-btn { font-size: 11.5px; background: var(--navy); color: #fff; border: none; border-radius: 6px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.hint { font-size: 12.5px; color: var(--ink-muted); line-height: 1.6; margin: 6px 0 18px; }
.side-toggle { display: flex; gap: 10px; margin: 16px 0 22px; }
.side-toggle label { flex: 1; text-align: center; padding: 14px 6px; border-radius: 8px; border: 1.5px solid var(--hairline); font-size: 13px; cursor: pointer; }
.side-toggle input { display: none; }
.side-toggle .neg { color: var(--critical); font-weight: 700; }
.side-toggle .pos { color: var(--good); font-weight: 700; }
.side-toggle label:has(input:checked).neg-label { background: rgba(208,59,59,0.08); border-color: var(--critical); }
.side-toggle label:has(input:checked).pos-label { background: rgba(12,163,12,0.08); border-color: var(--good); }
.primary-btn { display: inline-block; padding: 13px 26px; border-radius: 8px; border: none; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.category-row { display: flex; gap: 10px; margin-bottom: 18px; }
.category-row label { flex: 1; text-align: center; padding: 12px 6px; border: 1.5px solid var(--hairline); border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.category-row input { display: none; }
.category-row label:has(input:checked) { background: rgba(42,120,214,0.08); border-color: var(--accent-1); color: var(--accent-1); font-weight: 700; }

/* event detail */
.count-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; margin: 18px 0 8px; }
.count-row .c-neg { color: var(--critical); }
.count-row .c-pos { color: var(--good); }
.bar-track { height: 12px; border-radius: 6px; background: var(--hairline); overflow: hidden; margin-bottom: 22px; }
.bar-fill { height: 100%; }
.opinion-chip { display: inline-block; font-size: 12.5px; background: var(--page); border: 1px solid var(--hairline); border-radius: 20px; padding: 7px 14px; margin: 0 6px 8px 0; }
.mark-btns { display: flex; gap: 10px; margin-top: 8px; }
.mark-btns button { flex: 1; padding: 13px; border-radius: 8px; font-size: 15px; cursor: pointer; border: 1.5px solid var(--hairline); background: var(--surface); font-weight: 700; }

/* compare */
.legend { display: flex; gap: 18px; margin: 10px 0 20px; }
.legend .litem { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); font-weight: 600; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.compare-bar-row { margin-bottom: 16px; }
.compare-bar-row .brow-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; font-weight: 700; }

footer.site-footer { border-top: 1px solid var(--hairline); padding: 24px; text-align: center; font-size: 11.5px; color: var(--ink-muted); }
