:root {
  --nms-dark-blue: #1964AA;
  --nms-light-blue: #009FE3;
  --nms-red: #D00000;
  --grad: radial-gradient(140% 220% at 0% 100%, #D00000 0%, #8F3985 42%, #1964AA 85%);
  --grad-wide: radial-gradient(130% 190% at 0% 100%, #D00000 0%, #8F3985 38%, #1964AA 76%);
  --plum: #8F3985;

  --bg: #F7F8FA;
  --dot: #DADDE2;
  --card: #FFFFFF;
  --line: #E2E6EB;
  --line-strong: #CDD3DA;
  --ink: #081F35;
  --ink-2: #34465A;
  --muted: #5B6878;
  --faint: #7F8B99;

  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Merriweather', Georgia, serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
}
button, input { font: inherit; color: inherit; }
img { display: block; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* gradient len na malých plochách */
.topline { height: 3px; background: var(--grad); }
.accent { display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--grad); }

/* ---------- hlavička (NMS gradient) ---------- */
.hero { position: relative; background: var(--grad-wide); color: #fff; }
.hero .wrap { min-height: 340px; display: flex; flex-direction: column; padding: 44px 0 44px; }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.kicker { margin: 0; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
/* logo NMS pred nápisom Market Research Slovakia (galéria) */
.hero-top { align-items: center; }
.brand-kicker { display: flex; align-items: center; gap: 14px; letter-spacing: .1em; }
.brand-kicker a { display: block; line-height: 0; }
.brand-kicker img { width: auto; height: 34px; }
.brand-kicker i, .bar-lockup i { width: 1px; height: 26px; background: rgba(255,255,255,.5); }
.nms-link { font-family: var(--head); font-size: 16px; color: #fff; text-decoration: none; white-space: nowrap; }
.nms-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-meta { margin: 0; font-family: var(--head); font-size: 16px; }
.site-title { margin: auto 0 0; padding-top: 48px; font-family: var(--head); font-weight: 400; font-size: clamp(56px, 8vw, 96px); line-height: .9; letter-spacing: -.01em; }
.site-title b { font-weight: 800; }
.site-desc { margin: 16px 0 0; max-width: 56ch; font-size: 16px; line-height: 1.7; }
/* odber newslettera v banneri */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.hero-cta p { margin: 0; font-family: var(--head); font-size: 16px; opacity: .9; }
.btn-nl { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 18px; cursor: pointer; text-decoration: none; }
.btn-nl:hover { background: #F0F1F3; }
.btn-nl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.btn-nl:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bar-nl { min-height: 38px; padding: 0 16px; font-size: 16px; }
.bar-actions { display: flex; align-items: center; gap: 18px; }
.nl-form input[type=email] { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: 15px/1.5 var(--body); color: var(--ink); }
.nl-form .consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-family: var(--body) !important; font-size: 12.5px !important; line-height: 1.55; color: var(--muted); }
.nl-form .consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--ink); }
.nl-form .consent a { color: var(--ink); }
.nl-lead { margin: -6px 0 10px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.site-head { padding: 26px 0 6px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  --c: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--head);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip-btn i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip-btn small { color: var(--faint); font-size: 13px; }
.chip-btn:hover { border-color: var(--c); }
.chip-btn[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.chip-btn.all[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.chip-btn.all[aria-pressed="true"] small { color: rgba(255,255,255,.65); }
.chip-btn:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, .card:focus-visible, .search input:focus-visible {
  outline: 2px solid var(--nms-light-blue);
  outline-offset: 2px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 100%);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
}
.search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }

/* ---------- galéria ---------- */
.count { margin: 4px 0 14px; font-family: var(--head); font-size: 15px; color: var(--muted); }
.grid { display: flex; gap: 22px; align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

.card {
  display: block;
  color: inherit;
  text-decoration: none;
  --c: var(--nms-dark-blue);
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(20,23,28,.35); }
.card-head { padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.card-meta { margin: 0; font-family: var(--head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* kategória nad titulkom: plná farba témy */
.topic-tag { display: inline-block; padding: 2px 11px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 600; letter-spacing: .08em; line-height: 1.5; }

/* štítky zistení (STITKY v util.js) v samostatnom riadku pod titulkom */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.card-tags:empty { display: none; }
.finding .detail-tags { margin-top: 12px; }
.tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  line-height: 1.5;
  vertical-align: 1px;
  color: var(--ink-2);
}
.tag-nove { border-color: transparent; background: var(--grad); color: #fff; }
.tag-kava { border-color: transparent; background: #EFE2EE; color: var(--plum); }
.tag-kava::before { content: "☕ "; }
.finding .tag { font-size: 13px; }

/* Čo hovoria čitatelia (odkazy zverejnené v admine, odkazy.js) */
.quotes { margin-top: 56px; }
.quotes h2 { margin: 0 0 18px; font-family: var(--body); font-weight: 700; font-size: 24px; color: var(--ink); }
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.quote { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: inset 4px 0 0 var(--plum); }
.quote-stars { margin: 0; font-size: 18px; letter-spacing: 2px; color: #FDB833; }
.quote-stars span { color: var(--line); }
.quote blockquote { position: relative; margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink); white-space: pre-line; }
.quote blockquote::before { content: "„"; }
.quote blockquote::after { content: "“"; }
.quote figcaption { display: flex; flex-direction: column; margin-top: auto; font-family: var(--head); font-size: 17px; color: var(--ink); }
.quote figcaption span { font-size: 15px; color: var(--muted); }
.quote figcaption span:first-child { font-size: 17px; color: var(--ink); }

/* náhľad skrytého zistenia (len admin, vkladá Worker) */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-family: var(--head);
  font-size: 17px;
}
.preview-bar b { padding: 1px 10px; border-radius: 999px; background: #FDB833; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.preview-bar a { margin-left: auto; color: #fff; }

.card-title {
  margin: 14px 0 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
}
mark.hl {
  color: inherit;
  background: #EFE2EE; /* jemná fialová #8F3985 */
  padding: 0 5px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.card-chart { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.card-body { padding: 16px 26px 22px; }
.card-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.src { margin: 12px 0 0; font-size: 12px; line-height: 1.55; color: var(--faint); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 11%, #fff);
  color: var(--ct, var(--c));
  font-family: var(--head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.5;
}
.meta-date, .meta-type { font-family: var(--head); font-size: 15px; color: var(--muted); }
.meta-type::before { content: '·'; margin-right: 12px; color: var(--faint); }

/* ---------- grafy ---------- */
.chart { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--head); font-weight: 400; }
.chart text:not([fill]) { fill: var(--ink-2); }
.chart text.strong, .chart text .strong { font-weight: 600; }
.chart text.strong:not([fill]) { fill: var(--ink); }
.chart .val { font-weight: 400; }
.chart .tick, .chart .axis-title, .chart .mean-label { fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: .5; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--faint); stroke-width: 1; shape-rendering: crispEdges; }
.chart .frame { fill: none; stroke: var(--line-strong); stroke-width: .5; }
.chart .mean { stroke: var(--faint); stroke-width: .75; stroke-dasharray: 3 3; }
.chart .stem { stroke-width: 1.25; }
.chart .rule { stroke: var(--ink); stroke-width: .5; pointer-events: none; }
.chart .hit { fill: transparent; }
.chart .end-name { font-weight: 400; }
.chart .seg-val { font-weight: 400; }
.chart .seg-val .sig { font-weight: 700; font-size: .9em; letter-spacing: 1.5px; }
.sig-note { margin: 4px 0 0; font-family: var(--head); font-size: 13px; color: var(--muted); }
.chart .donut-num { font-weight: 800; }
.chart-error { color: var(--nms-red); font-size: 13px; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; font-family: var(--head); font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.lg i.dot { border-radius: 50%; }
.lg i.ring { border-radius: 50%; background: #fff; border: 1.25px solid var(--c); }
.lg i.sum { display: none; }
.lg:has(i.sum) { color: var(--faint); margin-left: auto; }
.lg i.note { display: none; }
.lg i.caption { display: none; }
.lg:has(i.note) { color: var(--faint); margin-left: auto; }
.lg:has(i.sum) ~ .lg:has(i.note) { margin-left: 0; }
.card .legend { font-size: 13px; gap: 2px 12px; }
.card .lg:has(i.sum) { display: none; }
.card .lg:has(i.note) { margin-left: auto; }

/* veľké číslo */
.stat-num { font-family: var(--head); font-weight: 800; font-size: 88px; line-height: .9; letter-spacing: -.02em; }
.stat-label { margin-top: 8px; font-family: var(--head); font-size: 19px; line-height: 1.25; color: var(--ink-2); max-width: 26ch; }
.stat-cmp { display: grid; gap: 8px; margin-top: 22px; }
.stat-row { display: grid; grid-template-columns: 44px 1fr 52px; align-items: center; gap: 10px; font-family: var(--head); font-size: 15px; }
.stat-k { color: var(--muted); }
.stat-cap { font-family: var(--head); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.stat-track { height: 8px; border-radius: 4px; background: #F0F1F3; overflow: hidden; }
.stat-bar { display: block; height: 100%; border-radius: 4px; }
.stat-v { text-align: right; color: var(--ink-2); }
.stat-row.last .stat-k, .stat-row.last .stat-v { font-weight: 600; color: var(--ink); }
.stat.mini .stat-num { font-size: 72px; }
.stat.mini .stat-cmp { margin-top: 16px; gap: 6px; }
.stat.mini .stat-row { font-size: 13px; }
.stat.full .stat-num { font-size: clamp(88px, 16vw, 140px); }
.stat.full .stat-label { font-size: 22px; }
.stat.full .stat-cmp { max-width: 520px; gap: 12px; margin-top: 30px; }
.stat.full .stat-row { font-size: 17px; grid-template-columns: 52px 1fr 64px; }
.stat.full .stat-track { height: 12px; }

/* tooltip */
.tt {
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  min-width: 160px;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px -12px rgba(20,23,28,.3);
  font-family: var(--head);
  font-size: 14px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s;
}
.tt.on { opacity: 1; }
.tt-h { margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.tt-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 8px; color: var(--ink-2); padding: 1px 0; }
.tt-row i { width: 9px; height: 9px; border-radius: 2px; }
.tt-row strong { font-weight: 400; }
.tt-row.b, .tt-row.b strong { color: var(--ink); font-weight: 600; }

/* ---------- stránka zistenia ---------- */
.bar { background: var(--grad-wide); color: #fff; }
.bar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.bar-lockup { display: flex; align-items: center; gap: 14px; }
.bar-nms { display: block; line-height: 0; }
.bar-nms img { width: auto; height: 26px; }
.bar-brand { font-family: var(--head); font-size: 28px; color: #fff; text-decoration: none; white-space: nowrap; }
.bar-brand b { font-weight: 800; }
.bar-link { font-family: var(--head); font-size: 17px; color: inherit; text-decoration: none; white-space: nowrap; }
.bar-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.finding { padding-top: 44px; }
.finding > article { max-width: 920px; }
.finding .card-meta { font-size: 14px; }
.finding-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.topic-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topic-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-family: var(--head); font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.topic-nav a:hover { border-color: var(--c); }
.topic-nav small { color: var(--faint); font-size: 13px; }
.topic-nav .topic-next { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); font-weight: 600; }
.finding .detail-title { margin-top: 14px; }
.detail-text strong, .card-lead strong { font-weight: 700; color: var(--ink); }
.blog-link:empty { display: none; }
.blog-link { margin: 18px 0 0; }
.btn-blog { display: inline-flex; align-items: center; gap: 8px; margin-top: 0; text-decoration: none; }
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px 48px;
  max-width: 920px;
  margin-top: 48px;
  padding: 36px 40px;
  border-radius: 20px;
  background: var(--grad-wide);
  color: #fff;
}
.lead-kicker { margin: 0; font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.lead h2 { margin: 10px 0 0; font-family: var(--body); font-weight: 700; font-size: 26px; line-height: 1.35; }
.lead-text p:last-child { margin: 14px 0 0; font-size: 15px; line-height: 1.7; }
.lead-form { display: flex; flex-direction: column; gap: 6px; }
.lead-form label { font-family: var(--head); font-size: 15px; }
.lead-form label span { opacity: .8; }
.lead-form input[type=email], .lead-form textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  resize: vertical;
}
.lead-form input:focus-visible, .lead-form textarea:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form .consent { display: flex; align-items: flex-start; gap: 8px; font-family: var(--body); font-size: 12.5px; line-height: 1.55; }
.lead-form .consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--ink); }
.lead-form .consent a { color: #fff; }
.btn-cta {
  margin-top: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--head);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  align-self: flex-start;
}
.btn-cta:hover { background: #12345A; }
.btn-cta:disabled { opacity: .7; cursor: wait; }
.lead-status { margin: 4px 0 0; min-height: 1.4em; font-size: 13.5px; }
.lead-status.err { font-weight: 700; }
.lead-thanks { margin: 0; font-size: 18px; line-height: 1.6; }
.more { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.more-head h2 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 26px; }
.more-head .bar-link { color: var(--ink); }
.detail-title {
  margin: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.45;
  max-width: 30ch;
}
.detail-chart { margin: 30px 0 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-text { padding-top: 22px; max-width: 68ch; }
.detail-text p:first-child { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.detail-text .src { font-size: 13px; margin-top: 16px; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.checks .chk { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; transform: translateY(3px); }
.checks .ok .chk { background: #009FE3; }
.checks .no .chk { background: #D00000; }
.checks .edge .chk { background: #FDB833; color: #1F2937; }
.checks .chk-val { color: var(--faint); white-space: nowrap; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-family: var(--head);
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s;
}
.btn:hover { border-color: var(--ink-2); }
.btn svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn.done { border-color: transparent; background: var(--grad) border-box; color: #fff; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-2); }

/* ---------- pätička ---------- */
.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--muted);
}
.site-foot p { margin: 0; }

/* ---------- tipovačka ---------- */
.guess-open .finding article > :is(.detail-title, .detail-tags, .detail-chart, .detail-text, .detail-actions, .react) { display: none; }
.guess {
  margin-top: 14px;
  padding: 34px 40px 30px;
  border-radius: 20px;
  background: var(--grad-wide);
  color: #fff;
}
.guess-kicker { margin: 0; font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.guess-q { margin: 10px 0 0; font-family: var(--body); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; max-width: 30ch; }
.guess-form { margin-top: 26px; }
.guess-val { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(64px, 10vw, 96px); line-height: 1; }
.guess-range {
  --p: 50%;
  width: 100%;
  height: 10px;
  margin: 18px 0 6px;
  border-radius: 5px;
  background: linear-gradient(to right, #fff var(--p), rgba(255,255,255,.3) var(--p));
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.guess-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border: 4px solid #fff; border-radius: 50%; background: var(--ink); box-shadow: 0 4px 14px rgba(8,31,53,.35); }
.guess-range::-moz-range-thumb { width: 22px; height: 22px; border: 4px solid #fff; border-radius: 50%; background: var(--ink); box-shadow: 0 4px 14px rgba(8,31,53,.35); }
.guess-range:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.guess-scale { display: flex; justify-content: space-between; font-family: var(--head); font-size: 15px; opacity: .85; }
.guess-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 18px; }
.guess-buttons .btn-cta { margin-top: 0; }
.guess-skip { padding: 0; border: 0; background: none; color: #fff; font-family: var(--head); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .9; }
.guess-skip:hover { opacity: 1; }

.guess-result { margin-top: 26px; padding: 24px 26px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.guess-result .guess-kicker { color: var(--plum); }
.guess-verdict { margin: 8px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.guess-verdict strong { color: var(--ink); }
.guess-track { position: relative; height: 54px; margin: 40px 0 58px; }
.gt-hist { position: absolute; inset: 0 0 6px; display: flex; align-items: flex-end; gap: 2px; }
.gt-hist i { flex: 1; min-height: 0; border-radius: 2px 2px 0 0; background: #DDE2E8; }
.gt-line { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 3px; background: #EEF0F3; }
.gt-mark { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 3px solid var(--m, var(--ink)); transform: translateX(-1.5px); }
.gt-mark span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--m, var(--ink)); }
.gt-mark.answer span { bottom: 100%; margin-bottom: 4px; color: #0077AA; }
.gt-mark.mine { --m: var(--plum); }
.gt-mark.mine span { top: 100%; margin-top: 4px; }
.gt-mark.avg { --m: var(--ink-2); border-left-style: dashed; border-left-width: 2px; }
.gt-mark.avg span { top: 100%; margin-top: 26px; font-weight: 400; }
.guess-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.card-teaser { display: grid; place-items: center; height: 190px; background: var(--grad-wide); color: #fff; }
.card-teaser span { font-family: var(--head); font-weight: 800; font-size: 120px; line-height: 1; }
.card-cta { margin: 0; font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--ink); }

/* ---------- reakcie ---------- */
.react { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.react-h { margin: 0; font-family: var(--head); font-weight: 600; font-size: 22px; }
.react-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.react-btn {
  --share: 0%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(to right, #E3F4FC var(--share), #fff var(--share));
  font-family: var(--head);
  font-size: 17px;
  line-height: 1.15;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.react-btn:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.react-btn[aria-pressed="true"] { border-color: transparent; background: var(--grad) border-box; color: #fff; }
.react-icon { font-size: 24px; line-height: 1; }
.react-btn:active .react-icon { transform: scale(1.25); }
.react-label { flex: 1; }
.react-share { font-weight: 600; font-size: 16px; }
.react-note { margin: 10px 0 0; min-height: 1.4em; font-size: 13px; color: var(--muted); }

/* ---------- hodnotenie webu a odkaz ---------- */
.fb-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px 28px;
  margin-top: 64px;
  padding: 22px 30px;
  border-radius: 20px;
  background: var(--grad-wide);
  color: #fff;
}
.fb-band h2 { margin: 0; font-family: var(--body); font-weight: 700; font-size: 22px; line-height: 1.35; }
.fb-band p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; opacity: .92; }
.fb-band .btn { border-color: #fff; }
/* pás hore (pod bannerom / pod textom zistenia): svetlá karta, nech nekonkuruje gradientu bannera */
.fb-band-top { margin-top: 22px; margin-bottom: 4px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: inset 4px 0 0 var(--plum); }
.fb-band-top h2 { font-size: 19px; }
.fb-band-top p { color: var(--muted); opacity: 1; }
.fb-band-top .btn { border-color: var(--line-strong); }
.fb-band-top .fb-band-stars .fb-star svg { width: 34px; height: 34px; stroke: #FDB833; stroke-width: 1.6; }
.finding .fb-band-top { width: auto; max-width: 920px; margin: 40px 0 0; }
.fb-score { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 10px 0 0 !important; font-family: var(--head); font-size: 16px !important; color: var(--ink) !important; }
.fb-score b { font-weight: 800; font-size: 20px; }
.fb-score span:not(.fb-score-stars) { color: var(--muted); }
.fb-score-stars { position: relative; display: inline-block; font-size: 19px; line-height: 1; letter-spacing: 1px; }
.fb-score-stars i { font-style: normal; color: #E2E6EB; }
.fb-score-stars i + i { position: absolute; inset: 0; width: var(--p); overflow: hidden; white-space: nowrap; color: #FDB833; }
.fb-stars { display: flex; gap: 4px; }
.fb-star { position: relative; display: block; cursor: pointer; }
.fb-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-star svg { display: block; width: 34px; height: 34px; fill: transparent; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transition: transform .12s, fill .12s; }
.fb-band-stars .fb-star svg { width: 38px; height: 38px; stroke: #fff; }
.fb-stars .fb-star svg { fill: var(--star, #FDB833); }
.fb-stars:not(:has(input:checked)) .fb-star svg,
.fb-star:has(input:checked) ~ .fb-star svg { fill: transparent; }
.fb-stars:hover .fb-star.fb-star svg { fill: var(--star, #FDB833); }
.fb-stars .fb-star:hover ~ .fb-star svg { fill: transparent; }
.fb-star:hover svg { transform: scale(1.12); }
.fb-star:has(input:focus-visible) svg { outline: 3px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fb-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(8,31,53,.55);
}
.fb-dialog::backdrop { background: rgba(8,31,53,.55); }
.fb-form { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 32px 26px; }
.fb-form h2 { margin: 4px 0 12px; font-family: var(--body); font-weight: 700; font-size: 24px; line-height: 1.35; }
.fb-kicker { margin: 0; font-family: var(--head); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }
.fb-form .fb-stars { margin-bottom: 14px; color: var(--ink-2); }
.fb-form label { font-family: var(--head); font-size: 15px; }
.fb-form label span { color: var(--muted); }
.fb-form textarea, .fb-form input:not([type]), .fb-form input[name=meno], .fb-form input[name=firma] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: 15px/1.5 var(--body);
  color: var(--ink);
}
.fb-form textarea:focus-visible, .fb-form input:focus-visible { outline: 3px solid var(--nms-light-blue); outline-offset: 1px; }
.fb-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fb-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.fb-publish { display: grid; gap: 8px; margin-top: 4px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-row label { display: block; margin-bottom: 4px; }
.fb-consent { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.fb-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-status { margin: 4px 0 0; min-height: 1.4em; font-size: 13.5px; color: var(--muted); }
.fb-status.err { color: var(--nms-red); font-weight: 700; }
.fb-thanks { margin: 0 0 8px; font-size: 16px; line-height: 1.7; }
.fb-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.fb-close:hover { background: #F0F1F3; color: var(--ink); }

@media (max-width: 640px) {
  .filters { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .card-head { padding: 20px 20px 16px; }
  .card-chart { padding: 18px 16px 12px; }
  .card-body { padding: 16px 20px 20px; }
  .card-title { font-size: 18px; }
  .hero .wrap { min-height: 280px; padding: 28px 0 32px; }
  .hero-meta { display: none; }
  .finding { padding-top: 28px; }
  .bar-brand { font-size: 24px; }
  .bar-lockup { gap: 10px; }
  .bar-nms img { height: 22px; }
  /* vedľa loga NMS sa text tlačidla nezmestí: len ikona obálky (text ostáva pre čítačky) */
  .bar-nl { padding: 0 12px; }
  .bar-nl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-kicker { gap: 10px; font-size: 13px; }
  .brand-kicker img { height: 28px; }
  .brand-kicker span { white-space: nowrap; }
  /* na mobile vedie na nms.global logo, samostatný odkaz by sa nezmestil */
  .nms-link { display: none; }
  .detail-actions .btn { flex: 1 1 100%; justify-content: center; }
  .lead { grid-template-columns: 1fr; padding: 26px 20px; }
  .guess { padding: 26px 20px 24px; }
  .react-buttons { grid-template-columns: 1fr 1fr; }
  .fb-band { grid-template-columns: 1fr; padding: 22px 20px; }
  .bar-actions .bar-link { display: none; }
  .fb-band-top { grid-template-columns: auto auto; justify-content: space-between; gap: 12px; padding: 18px 18px 18px 22px; }
  .fb-band-top .fb-band-text { grid-column: 1 / -1; }
  .fb-band-top h2 { font-size: 17px; }
  .fb-band-top p { display: none; }
  .fb-band-top .fb-band-stars .fb-star svg { width: 30px; height: 30px; }
  .fb-band-top .btn { padding: 6px 14px; font-size: 15px; }
  .fb-form { padding: 26px 20px 22px; }
  .fb-row { grid-template-columns: 1fr; }
  .btn-cta { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

[hidden] { display: none !important; }

/* Prepínač skupín v grafe (stacked100 s data.groups) */
.group-switch { margin: 0 0 14px; gap: 6px; }
.group-switch .chip-btn { font-size: 14px; padding: 5px 12px; }
