/* ============================================================
   Pavel Šrámek — osobní web
   Design system: čistý, důvěryhodný, moderní
   ============================================================ */

:root {
  /* Pirátská paleta — přechod purpurová → růžová → oranžová → zlatá, do černé */
  --navy: #1c0f22;         /* tmavá "inkoustová" — nadpisy, tmavé plochy (dřív navy) */
  --navy-dark: #0a0610;    /* téměř černá — patička, spodek hero gradientu */
  --purple: #9b3fae;
  --pink: #d95c86;
  --orange: #f2862f;
  --ink: #1c2733;
  --paper: #ffffff;
  --paper-soft: #f4f6f9;
  --line: #e2e7ee;
  --accent: #ffc93c;      /* zlatá — akcent, CTA */
  --accent-dark: #e8940f; /* sytější jantarová — hover, ověřeno pro grafy (kontrast + CVD) */
  --muted: #5c6b7a;
  --success-bg: #eef6ee;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(20, 10, 25, 0.2);
  --maxw: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--navy); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--purple), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif Pro", serif;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
}

.brand-role {
  font-size: 0.78rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--paper-soft);
  color: var(--navy);
}

.nav-cta {
  background: var(--accent) !important;
  color: #1c0f22 !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #1c0f22 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #23180a;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

/* ---------- Hero ---------- */
/* Pirátský gradient (purpurová → růžová → oranžová → zlatá) je schovaný
   vpravo za portrétem / dekorací; text vlevo vždy sedí na tmavé ploše,
   aby byl kontrast bílého textu jistý na libovolné šířce obrazovky. */
.hero {
  background:
    linear-gradient(to top, var(--navy-dark) 0%, transparent 42%),
    linear-gradient(120deg, transparent 48%, var(--purple) 60%, var(--pink) 74%, var(--orange) 88%, var(--accent) 100%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,201,60,0.22), transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(232,148,15,0.16);
  border: 1px solid rgba(255,201,60,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { color: #fff; margin-bottom: 14px; }
.hero .lede { color: #d6dde6; font-size: 1.15rem; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-portrait {
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #3a1a44, #0a0610);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--paper-soft); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
  display: block;
}

.lede-lg { font-size: 1.1rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--navy));
  color: #fff;
  font-family: "Source Serif Pro", serif;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Timeline ---------- */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 28px;
  margin-left: 6px;
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* ---------- Quote ---------- */
.quote-block {
  background: linear-gradient(135deg, #3a1a44 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.quote-block blockquote {
  font-family: "Source Serif Pro", serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0 0 12px;
  font-style: italic;
}
.quote-block cite { color: var(--accent); font-style: normal; font-weight: 600; }

/* ---------- Status badges ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-done { background: #eaf5ec; color: #1f7a37; }
.status-progress { background: #fdf1df; color: #a15c00; }
.status-planned { background: #eef0f4; color: var(--muted); }

/* ---------- Stat tiles ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.stat-tile .stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}
.stat-tile .stat-value {
  font-family: "Source Serif Pro", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: proportional-nums;
  line-height: 1.1;
}
.stat-tile .stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.stat-delta.up { background: #eaf5ec; color: #1f7a37; }
.stat-delta.down { background: #fdeceb; color: #b3392a; }
.stat-delta.flat { background: #eef0f4; color: var(--muted); }
.stat-tile .stat-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; margin-bottom: 0; }

/* ---------- Bar chart (plain CSS/HTML, no JS library) ---------- */
.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 20px;
  box-shadow: var(--shadow);
}
.chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.legend-swatch.minule { background: var(--purple); }
.legend-swatch.soucasne { background: var(--accent-dark); }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  height: 280px;
  border-bottom: 1px solid var(--line);
  padding: 36px 6px 2px;
  overflow-x: auto;
  overflow-y: hidden;
}
.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 46px;
  flex: 1;
}
.bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.bar {
  width: 22px;
  border-radius: 4px 4px 0 0;
  position: relative;
  cursor: default;
  transition: filter 0.15s;
}
.bar:hover, .bar:focus-visible {
  filter: brightness(1.08);
  outline: none;
}
.bar-minule { background: var(--purple); }
.bar-soucasne { background: var(--accent-dark); }
.bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.bar-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s, transform 0.12s;
  z-index: 5;
}
.bar-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy-dark);
}
.bar:hover .bar-tooltip,
.bar:focus-visible .bar-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.bar-axis-label {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}
.bar-axis-label strong { display: block; color: var(--ink); font-size: 0.8rem; }

.chart-table-toggle { margin-top: 18px; }
.chart-table-toggle summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  padding: 6px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.data-table th:first-child, .data-table td:first-child {
  text-align: left;
  font-variant-numeric: normal;
}
.data-table thead th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.data-table tfoot td {
  font-weight: 700;
  color: var(--navy);
  border-bottom: none;
  border-top: 2px solid var(--line);
}

/* ---------- Instagram embeds ---------- */
.ig-embed {
  margin: -6px 0 16px;
  border-radius: 12px;
  overflow: hidden;
}
.ig-embed iframe { border-radius: 12px !important; }

/* ---------- Social feeds (Facebook / Instagram) ---------- */
.social-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.social-feed-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.social-feed-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.social-feed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.social-feed-icon.fb { background: #1877f2; }
.social-feed-icon.ig { background: radial-gradient(circle at 30% 110%, #ffdb8b 0%, #ee2a7b 45%, #6228d7 90%); }
.social-feed-card > p { margin-bottom: 16px; }
.social-feed-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: 1;
  min-height: 500px;
  display: flex;
}
.social-feed-frame iframe { width: 100%; border: none; }
@media (max-width: 760px) {
  .social-feed-grid { grid-template-columns: 1fr; }
}

/* ---------- Aktuality (press archive) ---------- */
.aktuality-year-block { margin-bottom: 48px; }
.aktuality-year-block:last-child { margin-bottom: 0; }
.aktuality-year-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.aktuality-year-heading h2 { margin: 0; }
.aktuality-year-heading .count { color: var(--muted); font-size: 0.95rem; }
.aktuality-list { display: grid; gap: 16px; }
.aktuality-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.aktuality-item .aktuality-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.aktuality-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.aktuality-item p { color: var(--muted); margin-bottom: 10px; }
.aktuality-item a.source-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.aktuality-item a.source-link:hover { color: var(--accent-dark); }
.aktuality-note {
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 40px;
}
.aktuality-note strong { color: var(--ink); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--paper-soft);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.honeypot { position: absolute; left: -9999px; }

.confirm-box {
  display: none;
  background: var(--success-bg);
  border: 1px solid #cdeacd;
  color: #1f7a37;
  padding: 18px 20px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.confirm-box.show { display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-dark);
  font-weight: 400;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--muted); }

/* ---------- Contact strip ---------- */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  background: #fff;
  transition: background 0.15s, color 0.15s;
}
.social-row a:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b9c3cf;
  padding: 48px 0 28px;
  margin-top: 40px;
}
.site-footer a { color: #e4e9ee; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: inherit; }

/* ---------- Tým / kandidáti ---------- */
.team-photo-duo {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.team-photo-duo-frame {
  flex: 1 1 0;
  padding: 5px;
  box-shadow: var(--shadow);
}
.team-photo-duo-frame.is-playful {
  background: linear-gradient(150deg, var(--purple), var(--pink), var(--orange));
}
.team-photo-duo-frame.is-formal {
  background: linear-gradient(150deg, var(--orange), var(--pink), var(--purple));
}
.team-photo-duo-frame img {
  width: 100%;
  height: 340px;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}
.team-photo-duo-caption {
  text-align: center;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}
@media (max-width: 640px) {
  .team-photo-duo { flex-direction: column; }
  .team-photo-duo-frame img { height: 260px; }
}
.team-card { text-align: left; }
.team-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.team-role { color: var(--muted); font-size: 0.92rem; margin: 2px 0 10px; }
.ballot-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.ballot-tag {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.team-card blockquote {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-family: "Source Serif Pro", serif;
  font-style: italic;
  color: var(--navy);
}
.ballot-info {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
}
.ballot-info .ballot-numbers { justify-content: center; margin: 10px 0 0; }
.ballot-info .ballot-tag { font-size: 0.95rem; padding: 8px 18px; }

/* ---------- Legal / transparency notice ---------- */
.legal-facts { display: flex; flex-direction: column; }
.legal-facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.legal-facts > div:last-child { border-bottom: none; padding-bottom: 0; }
.legal-facts > div:first-child { padding-top: 0; }
.legal-facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.legal-facts dd { margin: 0; color: var(--ink); }

.flyer-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.flyer-preview a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.flyer-preview img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
  .flyer-preview { grid-template-columns: 1fr; }
}

/* ---------- Medailonek ---------- */
.medallion-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.medallion-card p:last-child { margin-bottom: 0; }
.medallion-quote {
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-family: "Source Serif Pro", serif;
  font-style: italic;
  color: var(--navy);
}


/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.badge {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Linkbio (QR / "Sledujte mě" — pavelsramek.com/follow) ---------- */
.linkbio-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background:
    linear-gradient(to top, var(--navy-dark) 0%, transparent 42%),
    linear-gradient(120deg, transparent 48%, var(--purple) 60%, var(--pink) 74%, var(--orange) 88%, var(--accent) 100%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.linkbio-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
}
.linkbio-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent);
}
.linkbio-card h1 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.linkbio-role {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.linkbio-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 22px;
}
.linkbio-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.linkbio-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.linkbio-btn:hover, .linkbio-btn:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.linkbio-btn .social-feed-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1rem;
}
.linkbio-btn .social-feed-icon.x { background: #000; }
.linkbio-btn .social-feed-icon.tt { background: #000; }
.linkbio-btn .social-feed-icon.game { background: linear-gradient(135deg, var(--purple), var(--pink)); font-size: 1.3rem; }
.linkbio-btn-label { flex: 1; min-width: 0; }
.linkbio-btn-label strong { display: block; font-size: 1rem; }
.linkbio-btn-label span { display: block; color: var(--muted); font-size: 0.85rem; }
.linkbio-btn-arrow { color: var(--muted); font-size: 1.1rem; flex-shrink: 0; transition: transform 0.15s ease; }
.linkbio-btn:hover .linkbio-btn-arrow { transform: translateX(3px); color: var(--ink); }
.linkbio-back {
  display: inline-block;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkbio-back:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; margin: 0 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1140px) {
  /* the nav grew an 8th item (Mini hry), so it now needs more room than
     it used to before it switches to the hamburger menu */
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .contact-strip { flex-direction: column; align-items: flex-start; }
}

/* Odkaz na herní kostku (o-mne.html) — výrazná karta, ať se neztratí mezi badge */
.lab-callout {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(155,63,174,0.07), rgba(217,92,134,0.07), rgba(255,201,60,0.09));
  border: 1px solid rgba(155,63,174,0.28);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lab-callout:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(155,63,174,0.35);
  border-color: rgba(155,63,174,0.5);
}
.lab-callout-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--accent));
  box-shadow: 0 10px 22px -10px rgba(155,63,174,0.55);
}
.lab-callout-text {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lab-callout-text strong { color: var(--navy); font-size: 1.02rem; }
.lab-callout-text span { color: var(--muted); font-size: 0.9rem; }
.lab-callout-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}
.lab-callout:hover .lab-callout-cta {
  background: linear-gradient(135deg, var(--pink), var(--orange));
}
@media (max-width: 640px) {
  .lab-callout { flex-wrap: wrap; }
  .lab-callout-cta { width: 100%; justify-content: center; }
}
