/* Doplnkové štýly, ktoré sa nedajú pohodlne zapísať utilitami Tailwindu */


/* Číslo kandidáta ako zakrúžkované číslo na hlasovacom lístku */
.ballot-num {
  position: relative;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
}
.ballot-num::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-accent, #f3ba4b);
  border-radius: 50%;
  transform: rotate(-8deg) scale(1.02, .94);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}
.ballot-num.big { width: 3.75rem; height: 3.75rem; font-size: 1.6rem; background: #fff; border-radius: 50%; }
.ballot-num.big::before { border-width: 4px; }

/* Popisky v mape */
.obvod-label span {
  display: inline-block;
  transform: translate(-50%, -50%);
  font: 800 22px/1 "Myriad Pro", "Source Sans 3", system-ui, sans-serif;
  color: var(--c);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
  white-space: nowrap;
}
.okrsok-label span {
  display: inline-block;
  transform: translate(-50%, -50%);
  font: 700 12px/1 "Myriad Pro", "Source Sans 3", system-ui, sans-serif;
  color: #1e293b;
  background: rgba(255,255,255,.85);
  border: 1px solid #94a3b8;
  border-radius: 999px;
  padding: 3px 6px;
}
.leaflet-div-icon.obvod-label,
.leaflet-div-icon.okrsok-label,
.leaflet-div-icon.room-icon,
.leaflet-div-icon.home-pin { background: none; border: 0; }

.room-icon span {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid #334155;
  font-size: 16px; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* Špendlík domova */
.home-pin span {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  background: var(--color-accent, #f3ba4b);
  border: 3px solid #0f172a;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.home-pin span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: #0f172a; border-radius: 50%;
}

.leaflet-container { font: inherit; }
.leaflet-popup-content { font-size: 15px; line-height: 1.4; }

/* Väčšie ovládanie zoomu pre dotyk a starších používateľov */
.leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
.room-icon.legend span { width: 22px; height: 22px; border-width: 1.5px; }
.room-icon.legend svg { width: 13px; height: 13px; }

/* ---------- Hlasovacie lístky: mesto = biely, kraj = svetlomodrý s modrým pásikom ---------- */
.ballot {
  --paper: #ffffff;
  --edge: #cbd5e1;
  --stripe: transparent;
  --ink: #0f172a;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 6px 18px -8px rgba(15,23,42,.25);
}
.ballot-kraj {
  --paper: #e6f1fb;
  --edge: #9cc3e8;
  --stripe: #3b82c4;
  padding-top: 1.6rem;
}
.ballot-kraj::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: .7rem;
  background: var(--stripe);
  border-radius: 6px 6px 0 0;
}
.ballot-head { border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.ballot-kicker { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #475569; font-weight: 700; }
.ballot-kraj .ballot-kicker { color: #1e5f9c; }
.ballot-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; margin-top: .15rem; text-wrap: balance; }
.ballot-sub { font-size: .95rem; color: #334155; margin-top: .2rem; }
.ballot-rule { margin-top: .7rem; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.ballot-nums { display: inline-flex; flex-wrap: wrap; gap: .35rem; }

.cand-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .55rem .6rem;
  background: rgba(255,255,255,.75);
  border: 1px dashed var(--edge);
  border-radius: 6px;
}
.ballot-mesto .cand-row { background: #fff; }
.cand-photo { width: 4.5rem; height: 4.5rem; border-radius: 10px; flex-shrink: 0; background: #e2e8f0; }
.cand-initials { display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--color-brand, #0b4ea2); background: #e8eef8; }
@media (min-width: 640px) { .cand-photo { width: 5.25rem; height: 5.25rem; } }

.ballot-num.sm { width: 2.4rem; height: 2.4rem; font-size: 1.05rem; background: #fff; border-radius: 50%; }
.ballot-num.sm::before { border-width: 2.5px; }

/* Úvod "Ako voliť" s urnami */
.howto { background: #fff; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.urn { display: flex; gap: .75rem; align-items: center; border-radius: .9rem; padding: .8rem; line-height: 1.3; font-size: .95rem; }
.urn-mesto { background: #fff; border: 2px solid #94a3b8; }
.urn-kraj  { background: #e6f1fb; border: 2px solid #3b82c4; }
.urn-label { font-weight: 700; }
.urn-kraj .urn-label { color: #1e5f9c; }
.urn-sheets { position: relative; width: 2.6rem; height: 3.2rem; flex-shrink: 0; }
.urn-sheets span {
  position: absolute; width: 2rem; height: 2.7rem; border-radius: 3px;
  border: 1.5px solid #64748b; background: #fff;
}
.urn-sheets span:nth-child(2) { left: .45rem; top: .4rem; }
.urn-kraj .urn-sheets span { background: #e6f1fb; border-color: #3b82c4; box-shadow: inset 0 5px 0 #3b82c4; }

/* Heslo ako na letákoch: biely tučný Myriad Pro na žltom páse */
.slogan {
  display: inline-block;
  background: var(--color-accent, #f3ba4b);
  color: #fff;
  font-family: "Myriad Pro", "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1;
  letter-spacing: .01em;
  padding: .32em .5em .28em;
  white-space: nowrap;
}

/* ---------- Vizuál kampane: bledá fotka mesta, tmavomodrá, žltá, biela ---------- */
:root { --navy: #08275d; --gold: #f3ba4b; --pale: #eef3f9; }
body { background: var(--pale); }
.hero { background: var(--navy); }
.hero-top {
  position: relative;
  background:
    linear-gradient(90deg, rgba(244,248,252,.75) 0%, rgba(244,248,252,.35) 45%, rgba(244,248,252,0) 70%),
    var(--hero-bg, linear-gradient(180deg, #f4f8fc 0%, #dfe9f4 100%)) center 58% / cover no-repeat;
  color: var(--navy);
}
.hero-title { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: .98; text-transform: uppercase; color: var(--navy); }
.hero-title span { display: block; }
.hero-title .light { font-weight: 400; }
.hero-title .bold { font-weight: 800; }
.hero-lead { font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.3rem); line-height: 1.3; color: var(--navy); }
.hero-wave { display: block; width: 100%; height: clamp(34px, 6vw, 70px); margin-top: calc(-1 * clamp(34px, 6vw, 70px)); position: relative; }
.hero-bottom { background: var(--navy); }

/* Čísla ako na plagáte: žltý kruh, biela výplň, tmavomodré číslo */
.ballot-num { color: var(--navy); }
.ballot-num::before { transform: none; border-color: var(--gold); background: #fff; z-index: -1; }
.ballot-num { isolation: isolate; }

@media (max-width: 639px) {
  .hero-top { --hero-bg: var(--hero-bg-m); background-position: 65% 55%; }
}

/* ---------- Mobil/tablet: dva riadky nadpisu, logá pod vlnou ---------- */
.hero-title .light, .hero-title .bold { display: block; }
.hero-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: .75rem; }
.hero-logos-desk { display: none; }

/* ---------- Desktop: kompaktná tmavomodrá hlavička v jednom riadku ---------- */
@media (min-width: 1024px) {
  .hero-top {
    background: var(--navy);
    color: #fff;
  }
  .hero-inner { display: flex; align-items: center; gap: 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .hero-text { flex: 1; min-width: 0; }
  .hero-title { color: #fff; font-size: 2.6rem; line-height: 1; }
  .hero-title .light, .hero-title .bold { display: inline; }
  .hero-meta { flex-direction: row; align-items: center; gap: 1.1rem; margin-top: .6rem; }
  .hero-meta .slogan { font-size: 1.45rem; }
  .hero-lead { color: #fff; font-size: 1.05rem; font-weight: 600; opacity: .95; }
  .hero-logos-desk { display: block; flex-shrink: 0; }
  .hero-logos-desk img { width: 440px; height: auto; display: block; }
  .hero-wave, .hero-bottom { display: none; }
  .hero { border-bottom: 5px solid var(--gold); }
}

/* ---------- Všetci kandidáti: celá šírka, lístky v stĺpcoch ---------- */
.all-cands > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.15rem;
  padding: .9rem 1.2rem; border-radius: 1rem;
}
.all-cands > summary::-webkit-details-marker { display: none; }
.all-cands > summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--gold); }
.all-cands[open] > summary::after { content: "–"; }
.all-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px)  { .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .all-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.all-grid .cand-row { min-width: 0; }
.all-grid .cand-row > div { min-width: 0; }
@media (max-width: 479px) {
  .cand-row { gap: .6rem; padding: .5rem; }
  .cand-row .ballot-num { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
  .cand-photo { width: 3.75rem; height: 3.75rem; }
}

/* ---------- KSK: výrazná modrá ako obálky a urny do kraja ---------- */
:root { --ksk: #2f74d0; --ksk-dark: #1d59aa; --ksk-paper: #dbe9fb; }
.ballot-kraj { --paper: var(--ksk-paper); --edge: #7fa9e3; --stripe: var(--ksk); padding-top: 1.9rem; }
.ballot-kraj::before { height: 1rem; }
.ballot-kraj .ballot-kicker { color: var(--ksk-dark); }
.ballot-kraj .ballot-head { border-bottom-color: var(--ksk-dark); }
.urn-kraj { background: var(--ksk); border-color: var(--ksk-dark); color: #fff; }
.urn-kraj .urn-label { color: #fff; }
.urn-kraj .urn-sheets span { background: #fff; border-color: #fff; box-shadow: inset 0 6px 0 var(--ksk-dark); }
.urn-mesto .urn-sheets span { box-shadow: 0 1px 2px rgba(0,0,0,.15); }

/* ---------- Ťahák do volebnej miestnosti ---------- */
.tahak-btn {
  position: fixed; z-index: 1200;
  top: calc(env(safe-area-inset-top, 0px) + .7rem); right: .7rem;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 1rem;
  padding: .55rem .85rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(8,39,93,.35);
}
.tahak-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tahak[hidden] { display: none; }
.tahak {
  position: fixed; inset: 0; z-index: 1300;
  background: var(--navy); color: #fff;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top, 0px) + .9rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1.2rem);
}
.tahak-inner { max-width: 30rem; margin: 0 auto; }
.tahak-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tahak-title { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.tahak-title small { display: block; font-size: .85rem; font-weight: 600; text-transform: none; color: var(--gold); margin-top: .3rem; }
.tahak-close { background: #fff; color: var(--navy); border-radius: 999px; width: 2.6rem; height: 2.6rem; font-size: 1.6rem; line-height: 1; font-weight: 700; flex-shrink: 0; }
.tahak-sec { border-radius: .6rem; padding: .7rem .8rem .8rem; margin-top: .7rem; color: var(--navy); }
.tahak-sec.mesto { background: #fff; }
.tahak-sec.kraj { background: var(--ksk-paper, #dbe9fb); border-top: .55rem solid var(--ksk, #2f74d0); }
.tahak-h { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.tahak-h span { font-weight: 600; font-size: .85rem; white-space: nowrap; opacity: .8; }
.tahak-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.8rem, 1fr)); gap: .35rem .6rem; margin-top: .5rem; }
.tahak-list li { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.02rem; line-height: 1.1; min-width: 0; }
.tahak-list li .n {
  flex-shrink: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 3px solid var(--gold);
  font-weight: 800; font-size: 1.05rem; color: var(--navy);
}
.tahak-list li .nm { overflow-wrap: anywhere; }
.tahak-hint { margin-top: .9rem; font-size: .9rem; color: #c9d6ee; line-height: 1.35; }
.tahak-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .8rem; }
.tahak-pick button { background: #fff; color: var(--navy); border-radius: .6rem; padding: .7rem .4rem; font-weight: 800; font-size: .95rem; line-height: 1.15; }
.tahak-pick button.wide { grid-column: 1 / -1; background: var(--ksk, #2f74d0); color: #fff; }
body.tahak-open { overflow: hidden; }
@media (min-width: 1024px) { .tahak-btn { top: auto; bottom: 1.4rem; right: 1.4rem; font-size: 1.1rem; padding: .75rem 1.1rem; } }
@media (max-width: 1023px) { .hero-title { padding-right: 6.5rem; } }

/* ---------- Ťahák v2: prepínač MESTO / KRAJ, veľké písmo ---------- */
.tahak-title { font-size: 1.9rem; }
.tahak-title small { font-size: .95rem; }
.tahak-lead { margin-top: 1rem; font-size: 1.2rem; line-height: 1.4; }
.tahak-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.tahak-tabs button {
  border-radius: .7rem; padding: .7rem .5rem .6rem; font-weight: 800; font-size: 1.35rem; line-height: 1;
  border: 3px solid transparent; opacity: .55;
}
.tahak-tabs button small { display: block; font-size: .85rem; font-weight: 600; margin-top: .25rem; }
.tahak-tabs .t-mesto { background: #fff; color: var(--navy); }
.tahak-tabs .t-kraj { background: var(--ksk, #2f74d0); color: #fff; }
.tahak-tabs button[aria-selected="true"] { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243,186,75,.35); }
.tahak-sec { padding: .9rem 1rem 1rem; margin-top: .8rem; }
.tahak-h { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.tahak-note { font-size: 1.05rem; font-weight: 700; margin-top: .15rem; color: #334155; }
.tahak-sec.kraj .tahak-note { color: var(--ksk-dark, #1d59aa); }
.tahak-list { display: flex; flex-direction: column; gap: .55rem; margin-top: .7rem; }
.tahak-list li { font-size: 1.45rem; font-weight: 500; gap: .75rem; line-height: 1.1; }
.tahak-list li b { font-weight: 800; }
.tahak-list li .n { width: 3.3rem; height: 3.3rem; font-size: 1.6rem; border-width: 4px; }
.tahak-next {
  display: block; width: 100%; margin-top: 1rem; padding: 1rem; border-radius: .8rem;
  background: var(--ksk, #2f74d0); color: #fff; font-weight: 800; font-size: 1.3rem;
}
.tahak-next.back { background: #fff; color: var(--navy); }
.tahak-hint { font-size: 1rem; }
.tahak-pick button { font-size: 1.25rem; padding: .9rem .4rem; }
.tahak-pick button small { font-size: .85rem; font-weight: 600; }

/* ---------- Plávajúce tlačidlo ťaháka: polkruh pri pravom okraji ---------- */
.tahak-btn,
.tahak-btn:focus-visible {
  position: fixed; z-index: 1200;
  right: 0; left: auto; bottom: auto;
  top: 62vh; transform: translateY(-50%);
  width: 4.9rem; height: 5.6rem;
  padding: 0 .9rem 0 1.05rem; gap: .15rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy);
  border: 3px solid #fff; border-right: 0;
  border-radius: 999px 0 0 999px;
  font-weight: 900; font-size: .8rem; letter-spacing: .04em; line-height: 1;
  box-shadow: -3px 4px 16px rgba(8,39,93,.35);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
.tahak-btn.dragging { cursor: grabbing; box-shadow: -4px 8px 24px rgba(8,39,93,.5); }
.tahak-btn::before {
  content: ""; position: absolute; left: .42rem; top: 50%; transform: translateY(-50%);
  width: 3px; height: 1.4rem; border-radius: 2px;
  background: repeating-linear-gradient(180deg, rgba(8,39,93,.45) 0 3px, transparent 3px 6px);
}
@media (min-width: 1024px) { .tahak-btn { top: 62vh; bottom: auto; right: 0; padding: 0 .9rem 0 1.05rem; font-size: .85rem; } }
.tahak-open .tahak-btn { display: none; }
/* ťahák: menšia hlavička, aby sa zmestilo viac riadkov */
.tahak-title { font-size: 1.5rem; }
.tahak-title small { font-size: .82rem; }
.tahak-top { min-height: 2.6rem; }
.tahak-tabs { margin-top: .7rem; }

/* ---------- Mená vždy v jednom riadku ---------- */
.fit { display: block; white-space: nowrap; overflow: hidden; min-width: 0; }
.cand-name { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.cand-titles { font-size: .8rem; font-weight: 600; color: #475569; line-height: 1.2; }
.cand-row > div { min-width: 0; }
.tahak-list li .nm { flex: 1; overflow-wrap: normal; }
@media (max-width: 380px) {
  .tahak { padding-left: .6rem; padding-right: .6rem; }
  .tahak-sec { padding-left: .7rem; padding-right: .7rem; }
  .tahak-list li { gap: .55rem; }
  .tahak-list li .n { width: 2.9rem; height: 2.9rem; font-size: 1.4rem; }
}
.fit.wrap { white-space: normal; overflow: visible; line-height: 1.15; }

/* ---------- Výber obvodu v ťaháku: 2 stĺpce × 3 riadky ---------- */
.tahak-pick { grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.tahak-pick button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  min-height: 6.2rem; padding: .7rem .5rem; border-radius: .8rem;
  border-left: 0; box-shadow: inset 0 -5px 0 rgba(8,39,93,.12);
}
.tahak-pick button .r { font-size: 2.3rem; font-weight: 900; line-height: 1; }
.tahak-pick button small { font-size: 1rem; font-weight: 700; line-height: 1.15; color: var(--navy); text-align: center; }
.tahak-pick button.wide { min-height: 0; padding: 1rem; font-size: 1.15rem; box-shadow: none; }

/* Aktuálny obvod + výrazné ZMENIŤ */
.tahak-where {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%;
  margin-top: .7rem; padding: .55rem .55rem .55rem .9rem;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.55); border-radius: 999px;
  color: #fff; text-align: left;
}
.tahak-where .w { font-weight: 700; font-size: 1.02rem; line-height: 1.15; min-width: 0; }
.tahak-where .c { flex-shrink: 0; background: var(--gold); color: var(--navy); font-weight: 900; font-size: .95rem; padding: .45rem .8rem; border-radius: 999px; letter-spacing: .03em; }

/* ---------- Aplikácia: spodné panely (inštalácia, súhlas) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8,39,93,.55); }
.sheet {
  position: relative; width: 100%; max-width: 32rem; max-height: 92vh; overflow-y: auto;
  background: #fff; color: var(--navy); border-radius: 1.2rem 1.2rem 0 0;
  padding: 1.4rem 1.2rem calc(env(safe-area-inset-bottom, 0px) + 1.2rem);
  box-shadow: 0 -10px 40px rgba(0,0,0,.25);
  animation: sheet-up .22s ease-out;
}
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 1.2rem; } }
@keyframes sheet-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-icon { width: 64px; height: 64px; border-radius: 16px; display: block; margin: 0 auto .6rem; }
.sheet-bell { font-size: 2.4rem; text-align: center; line-height: 1; }
.sheet-title { font-size: 1.45rem; font-weight: 800; text-align: center; line-height: 1.2; margin-top: .4rem; text-wrap: balance; }
.sheet-text { font-size: 1.1rem; line-height: 1.45; margin-top: .6rem; color: #1e293b; }
.sheet-steps { margin: .9rem 0 0 1.4rem; list-style: decimal; font-size: 1.12rem; line-height: 1.45; display: grid; gap: .55rem; }
.ios-share { display: inline-grid; place-items: center; vertical-align: -5px; color: #1d6fe0; }
.sheet-btn { display: block; width: 100%; margin-top: .75rem; padding: 1rem; border-radius: .9rem; font-size: 1.2rem; font-weight: 800; }
.sheet-btn.primary { background: var(--navy); color: #fff; }
.sheet-btn.primary:disabled { background: #94a3b8; }
.sheet-btn.ghost { background: transparent; color: var(--navy); border: 2px solid #cbd5e1; }
.sheet-btn.danger { background: #b91c1c; color: #fff; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1rem; padding: .85rem; border: 2px solid var(--gold); border-radius: .8rem; background: #fffaf0; font-size: .98rem; line-height: 1.4; }
.consent input { width: 1.6rem; height: 1.6rem; flex-shrink: 0; margin-top: .1rem; accent-color: var(--navy); }
.consent a { text-decoration: underline; font-weight: 700; }
.sheet-err { margin-top: .7rem; color: #b91c1c; font-weight: 700; }
body.sheet-open { overflow: hidden; }
.sheet-open .tahak-btn { display: none; }

/* Pás „Aplikácia do telefónu“ */
.app-box { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; background: var(--navy); color: #fff; border-radius: 1rem; padding: 1rem 1.1rem; }
.app-box img { border-radius: 14px; }
.app-box-text { flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: .15rem; }
.app-box-text strong { font-size: 1.15rem; }
.app-box-text span { color: #c9d6ee; }
.app-box-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.app-btn { background: #fff; color: var(--navy); font-weight: 800; border-radius: .7rem; padding: .7rem 1rem; }
.app-btn.primary { background: var(--gold); }
.app-btn[hidden] { display: none; }
.obvod-pick { display: block; margin-top: 1rem; }
.obvod-pick span { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: .35rem; }
.obvod-select { width: 100%; font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--navy); padding: .75rem .8rem; border: 2px solid #cbd5e1; border-radius: .8rem; background: #fff; }

/* ---------- Ručný výber obvodu v paneli vyhľadávania ---------- */
.pick-title { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.obvod-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.obvod-pick-grid button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  min-height: 4.6rem; padding: .5rem .4rem; border-radius: .8rem;
  background: #fff; border: 2px solid #d6dfeb; color: var(--navy);
}
.obvod-pick-grid button:hover { border-color: var(--navy); }
.obvod-pick-grid .r { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.obvod-pick-grid small { font-size: .88rem; font-weight: 700; line-height: 1.15; text-align: center; }
.obvod-pick-grid button.wide { grid-column: 1 / -1; min-height: 0; padding: .8rem; background: var(--ksk, #2f74d0); border-color: var(--ksk, #2f74d0); color: #fff; font-weight: 800; font-size: 1rem; }

/* ---------- Všetci kandidáti: vľavo mesto (biele), vpravo kraj (modré) ---------- */
.all-grid { grid-template-columns: 1fr !important; }
@media (min-width: 1024px) { .all-grid { grid-template-columns: 1fr 1fr !important; } }
.all-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.all-col-h { font-size: 1.35rem; font-weight: 800; padding: .7rem 1rem; border-radius: .8rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.all-col-h span { font-size: .95rem; font-weight: 600; opacity: .85; }
.all-col-h.mesto { background: #fff; color: var(--navy); border: 2px solid #cbd5e1; }
.all-col-h.kraj { background: var(--ksk, #2f74d0); color: #fff; }

/* ---------- Tenký riadok so súhlasom so štatistikou ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem;
  padding: .45rem .8rem calc(env(safe-area-inset-bottom, 0px) + .45rem);
  background: rgba(8,39,93,.96); color: #e5ecf7; font-size: .85rem; line-height: 1.3;
}
.cookie-bar a { color: var(--gold); text-decoration: underline; }
.cookie-bar button { font-weight: 800; font-size: .85rem; padding: .3rem .9rem; border-radius: 999px; background: #fff; color: var(--navy); }
.sheet-open .cookie-bar, .tahak-open .cookie-bar { display: none; }
.cookie-bar { padding-right: 3.2rem; }
.cookie-bar .cookie-x {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); font-size: 1rem; line-height: 1;
}
