/* OK-19 — Otevřené Kbely 2026
   Stylesheet. Follows the printed house style (TISK): teal panel with one oversized
   rounded corner, gold ballot triangle, portrait grid, circular teal badges.
   Palette sampled from Plachta_2x1m_OK-19.pdf and Letak_A4_OK-19.pdf. */

:root {
  --teal:        #4AB0AA;
  --teal-deep:   #3D9993;
  --teal-tint:   #CAE8E6;
  --teal-wash:   #EAF6F5;
  --gold:        #FDC400;
  --gold-deep:   #E5AF00;
  --navy:        #00405D;
  --ink:         #221E20;
  --ink-soft:    #4A5560;
  --sky:         #E2F0FB;
  --paper:       #FFFFFF;
  --rule:        #D8E3E8;

  --display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body:    "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  /* Corner language, measured off the teal panel in Plachta_2x1m_OK-19.pdf:
     top-left rounded (r=227 on a 2222x2457 panel = 9.2% of height),
     bottom-right rounded 3.5x larger (r=794 = 32.3% of height),
     top-right and bottom-left SQUARE. Portrait tiles carry the
     bottom-right curve only (r=163 on a 719x439 tile). */
  --c-tl:     18px;   --c-br:     64px;    /* cards, bars */
  --c-tl-lg:  40px;   --c-br-lg: 140px;    /* hero panel, callout */
  --c-br-tile: 24px;                       /* portrait tiles */
  --r-md: 20px;
  --r-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; color: var(--navy); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 .75rem;
}
.lead { font-size: 1.25rem; }
.section { padding: clamp(1.5rem, 3.5vw, 2.75rem) 0; }   /* halved: two stacked sections met at ~11rem */
.section--wash { background: var(--teal-wash); }
.section--sky { background: linear-gradient(180deg, var(--sky), var(--paper)); }

/* ---------- brand mark ---------- */
/* the real lockup, vector-extracted from Plachta_2x1m_OK-19.pdf */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__mark { height: 2.2rem; width: auto; display: block; }
.site-footer .brand__mark { height: 2.4rem; }
/* rollover: the lower, larger half of the dart drops to the footer navy */
.brand__mark .lg-wing, .brand__mark .lg-body { transition: fill .18s ease; }
.brand:hover .lg-body, .brand:focus-visible .lg-body { fill: var(--navy); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy); text-decoration: none;
  padding: .5rem .6rem; border-radius: 999px;
}
.nav a:hover { background: var(--teal-wash); color: var(--teal-deep); }
.nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.nav__cta {
  background: var(--gold) !important; color: var(--ink) !important;
  padding-inline: .95rem !important;
}
.nav__cta:hover { background: var(--gold-deep) !important; }
.nav-toggle {
  display: none; border: 0; background: var(--navy); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .6rem .9rem; border-radius: 999px; cursor: pointer;
}

/* ---------- hero ---------- */
.hero { background: var(--paper); padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: stretch; }
.panel {
  position: relative;
  background: var(--teal); color: #fff;
  border-radius: var(--c-tl-lg) 0 var(--c-br-lg) 0;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.panel h1, .panel h2, .panel h3 { color: #fff; }
.panel p { color: rgba(255,255,255,.94); }
.hero__slogan { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.85rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin-bottom: .5em; }
.hero__sub {
  font-family: var(--display); font-weight: 700; color: var(--navy);
  font-size: clamp(1.1rem, 2.1vw, 1.5rem); line-height: 1.25; margin: 0 0 1rem;
}
.hero__ballot { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
/* in the hero panel the ballot mark stands alone and the CTA drops below it */
.panel .hero__ballot { flex-direction: column; align-items: flex-start; gap: 2.4rem; margin-top: 2.25rem; }

/* gold ballot triangle — the print device */
.ballot {
  width: 172px; padding: .75rem .6rem 2.5rem; text-align: center;
  background: var(--gold); color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  font-family: var(--display); line-height: 1;
}
.ballot__label { display: block; font-size: .92rem; font-weight: 600; letter-spacing: .04em; }
.ballot__num { display: block; font-size: 3.5rem; font-weight: 700; margin-top: .2rem; }
.ballot--sm { width: 84px; padding: .4rem .4rem 1rem; }
.ballot--sm .ballot__num { font-size: 1.6rem; }

/* portrait mosaic */
.mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; align-content: start; }
.mosaic img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 18%;
  border-radius: 0 0 var(--c-br-tile) 0; background: var(--sky);
}
.mosaic a { display: block; min-width: 0; border-radius: 0 0 var(--c-br-tile) 0; overflow: hidden; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic img { transition: transform .25s ease; }

/* ---------- gold key-line bar ---------- */
.keyline {
  background: var(--gold); color: var(--ink);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1rem, 2.1vw, 1.35rem); line-height: 1.3;
  padding: 1.1rem clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--c-tl) 0 var(--c-br) 0;
  margin: 0;
}

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem); align-items: stretch; }
.pillar {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--c-tl) 0 var(--c-br) 0;
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
}
.badge {
  width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; margin-bottom: 1rem;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
}
.badge svg { width: 1.5rem; height: 1.5rem; }
.pillar__hook { font-weight: 600; color: var(--teal-deep); margin-top: auto; padding-top: .5rem; }

/* ---------- programme areas ---------- */
.areas { display: grid; gap: 1rem; }
.area {
  border: 1px solid var(--rule); border-radius: var(--c-tl) 0 40px 0;
  background: var(--paper); overflow: hidden;
}
.area > summary {
  display: flex; align-items: center; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.15rem clamp(1rem, 2.5vw, 1.6rem);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--navy);
}
.area > summary::-webkit-details-marker { display: none; }
.area > summary::after {
  content: "+"; margin-left: auto; font-size: 1.6rem; font-weight: 700;
  color: var(--teal); line-height: 1;
}
.area[open] > summary::after { content: "–"; }
.area[open] > summary { background: var(--teal-wash); }
.area__body { padding: 0 clamp(1rem, 2.5vw, 1.6rem) 1.4rem; }
.area__body .intro { color: var(--ink-soft); }
.ticks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 .25rem var(--teal-wash);
}

/* ---------- candidate cards ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.cand { display: flex; flex-direction: column; }
.cand__shot { position: relative; }
.cand__shot img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 15%;
  border-radius: var(--c-tl) 0 0 0; background: var(--sky);
}
.cand__no {
  position: absolute; left: 0; bottom: -1px; z-index: 2;
  background: var(--teal); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  padding: .3rem .75rem; border-radius: 0;
}
.cand__bubble {
  background: var(--teal); color: #fff;
  border-radius: 0 0 var(--c-br) 0;
  padding: 1.1rem 1.2rem 1.25rem; flex: 1;
}
.cand__name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #fff; margin: 0 0 .15rem; }
.cand__role { font-size: .95rem; color: rgba(255,255,255,.9); margin: 0 0 .7rem; }
.cand__quote { font-size: .98rem; line-height: 1.5; margin: 0; color: #fff; }
.cand--lead .cand__bubble { background: var(--navy); }
.cand--lead .cand__no { background: var(--navy); }

/* ---------- events ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.events li { display: flex; gap: 1.1rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px dashed var(--rule); }
.events li:last-child { border-bottom: 0; }
.events time, .events .when {
  font-family: var(--display); font-weight: 700; color: var(--teal-deep);
  min-width: 5.5rem; font-variant-numeric: tabular-nums; flex: none;
}

/* ---------- FAQ ---------- */
.qa { border-bottom: 1px solid var(--rule); }
.qa > summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: "+"; position: absolute; right: .25rem; top: 1rem;
  font-size: 1.5rem; color: var(--teal); line-height: 1;
}
.qa[open] > summary::after { content: "–"; }
.qa__body { padding: 0 0 1.3rem; color: var(--ink-soft); }
.qa__body strong { color: var(--navy); }

/* ---------- vision blocks ---------- */
.visions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.vision {
  background: var(--paper); border: 1px solid var(--rule);
  border-left: 5px solid var(--teal);
  border-radius: 0 0 var(--c-br) 0;
  padding: 1.4rem 1.5rem;
}
.vision__claim { font-family: var(--display); font-weight: 700; color: var(--teal-deep); margin: 0 0 .6rem; }

/* ---------- track record ---------- */
.record { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.record h3 { color: var(--navy); border-bottom: 3px solid var(--gold); display: inline-block; padding-bottom: .2rem; }

/* ---------- callout ---------- */
.callout {
  background: var(--navy); color: #fff;
  border-radius: var(--c-tl-lg) 0 var(--c-br-lg) 0;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.92); }
/* group photo inside the navy callout */
.callout__photo {
  width: 100%; height: auto; display: block;
  margin: 1.75rem 0 2rem;
  border-radius: 0 0 var(--c-br) 0;
}

.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: .95rem; letter-spacing: .03em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); text-decoration: none;
  padding: .8rem 1.4rem; border-radius: 999px;
}
.btn:hover { background: var(--gold-deep); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.site-footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 2rem; }
.footer__grid h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: 1rem; }
.legal {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.2);
  font-size: .8rem; color: rgba(255,255,255,.7);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  :root { --c-br-lg: 76px; --c-tl-lg: 24px; --c-br: 44px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { border-radius: var(--r-sm); padding: .75rem .8rem; font-size: .9rem; }
  .site-header__in { position: relative; }
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  .site-header, .nav-toggle, .site-footer { display: none; }
  body { font-size: 11pt; }
}
