/* ==========================================================================
   ZO TELCO Morava — design system
   Oficiální vzorník: modrá O2 #010066, červená CETIN #F12E49, žlutá odbory #FDC700
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #010066;
  --navy-900: #060a3d;
  --navy-800: #0e1454;
  --navy-700: #1a2170;
  --crimson-600: #f12e49;
  --crimson-700: #d42039;
  --crimson-100: #fde6e9;
  --union-yellow: #fdc700;
  --union-yellow-100: #fff4cc;
  --union-yellow-700: #8a6d00;

  /* Neutrals */
  --ink: #12122b;
  --ink-soft: #454560;
  --muted: #6c6c88;
  --line: #e7e5f2;
  --line-strong: #d3d1e6;
  --bg: #faf9fd;
  --bg-alt: #f2f1f9;
  --white: #ffffff;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 10px rgba(1, 0, 102, 0.07);
  --shadow-md: 0 14px 34px rgba(1, 0, 102, 0.13);
  --shadow-lg: 0 26px 64px rgba(1, 0, 102, 0.2);

  --container: 1180px;
  --container-content: 960px;
  --nav-h: 84px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 4.4vw + 1rem, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem);
}

p {
  max-width: 68ch;
}

.container {
  width: 100%;
  max-width: var(--container-content);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Hlavička a menu (nahoře na webu i v sekci pro členy) zůstávají na plnou
   šířku --container - jen samotný obsah stránek je užší (--container-content),
   viz .container výše. */
.site-header .container,
.member-nav-wrap .container,
.admin-subnav-wrap .container {
  max-width: var(--container);
}

/* Užší varianta pro formuláře (registrace.php a další) - stejná hodnota jako
   .container-w800 na vzo. */
.container-w800 {
  max-width: 800px;
  width: 100%;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--crimson-600);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--crimson-600);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--crimson-600);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(241, 46, 73, 0.35);
}

.btn-primary:hover {
  background: var(--crimson-700);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(241, 46, 73, 0.4);
}

.btn-dark {
  background: var(--navy-950);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--navy-950);
  transform: translateY(-2px);
}

.btn-yellow {
  background: var(--union-yellow);
  color: var(--navy-950);
}

.btn-yellow:hover {
  background: #e0b400;
  transform: translateY(-2px);
}

/* Sémantika kroků procesu (zadost-o-pujcku.php a další vícekrokové
   formuláře) - stejná konvence jako na vzo: pokračovat modré, zpět žluté
   (.btn-yellow výše), zrušit/ukončit červené. */
.btn-blue {
  background: var(--navy-950);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--crimson-600);
  color: var(--white);
}

.btn-red:hover {
  background: var(--crimson-700);
  transform: translateY(-2px);
}

/* Řádek dvou/více tlačítek vedle sebe, velikost podle obsahu (ne roztažené
   na celou šířku jako .form-row, který je grid 1fr 1fr pro pole formuláře). */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 249, 253, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(1, 0, 102, 0.08);
  border-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Logo obsahuje i text (název organizace) - není to jen čtvercová ikona,
   proto se řídí výškou a šířka se odvíjí z reálného poměru stran obrázku
   (object-fit: contain, žádné zkreslení). Výška odpovídá tlačítku "Přidej se"
   v hlavičce (.btn.btn-primary - cca 54px s paddingem 15px a 2px okrajem). */
.brand-mark {
  height: 54px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

/* Patička má tmavé pozadí - logo dostane bílou "kapsli" (stejný tvar jako
   tlačítka, var(--radius-pill)), aby na tmavém pozadí vyniklo, místo aby
   muselo existovat samostatné čistě bílé logo. Kapsle je roztažená na
   šířku sloupce/odstavce pod ní (.footer-brand p má max-width: 40ch) -
   logo uvnitř se řídí šířkou kapsle (výška dopočtená podle poměru stran). */
.footer-brand .brand {
  width: 100%;
}

.brand-mark-wrap {
  display: inline-flex;
  width: 100%;
  max-width: 40ch;
  box-sizing: border-box;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 14px 26px;
}

.brand-mark-wrap .brand-mark {
  width: 100%;
  height: auto;
  max-width: none;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--navy-950);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.brand-text small {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--union-yellow);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  margin-top: 3px;
  align-self: flex-start;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-primary a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-primary a:hover {
  color: var(--navy-950);
  background: var(--bg-alt);
}

.nav-primary a.is-active {
  color: var(--navy-950);
  background: var(--bg-alt);
}

.nav-primary a.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--crimson-600);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-login:hover {
  color: var(--navy-950);
  background: var(--bg-alt);
}

.nav-login[disabled] {
  color: var(--muted);
  cursor: not-allowed;
}

.nav-login[disabled]:hover {
  background: none;
  color: var(--muted);
}

.nav-login svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Rychlé akce v hlavičce sekce pro členy (Admin/VZO/Veřejný web/Odhlásit se -
   viz clenove/includes/header.php) - na mobilu (pod 900px, stejný breakpoint
   jako přepnutí .member-nav na hamburger) se schovají, protože stejné odkazy
   jsou tam dostupné v rozbalovacím menu (.member-nav-item-mobile-only). */
.header-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-quick-actions .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  gap: 6px;
}

@media (max-width: 900px) {
  .header-quick-actions {
    display: none;
  }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1050px) {
  .nav-primary {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    overflow-y: auto;
  }

  .nav-primary.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-primary a,
  .nav-primary .nav-login {
    padding: 16px 18px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Na mobilu/tabletu (hamburger menu, pod 1050px) mizí tlačítko "Přidej se"
   z hlavičky - logo (šířka podle poměru stran, ne pevná ikona) + tlačítko +
   hamburger se tam vešly jen na šířku, na užších telefonech se prali o místo.
   Místo tlačítka se zobrazí .join-context-bar pod hlavičkou (stejný princip
   jako .member-context-bar v sekci pro členy). */
@media (max-width: 1050px) {
  .header-actions .btn-primary {
    display: none;
  }
}

.join-context-bar {
  display: none;
  background: var(--crimson-600);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
}

.join-context-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1050px) {
  .join-context-bar {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
  padding-block: 90px 120px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(241, 46, 73, 0.22);
  border: 1px solid rgba(241, 46, 73, 0.45);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-600);
}

.eyebrow-yellow {
  color: var(--union-yellow);
  background: rgba(253, 199, 0, 0.16);
  border-color: rgba(253, 199, 0, 0.45);
}

.eyebrow-yellow::before {
  background: var(--union-yellow);
}

#jak-se-pridat .step-num {
  color: var(--union-yellow);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--crimson-600);
}

.hero-lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
  max-width: 56ch;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 32px;
}

.hero-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem);
  color: var(--white);
  font-weight: 700;
}

.hero-fact span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 760px) {
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Page header (non-home) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: var(--white);
  padding-block: 68px 84px;
  position: relative;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.page-hero .hero-lede {
  margin-bottom: 0;
}

.page-hero-decor {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 46, 73, 0.35), transparent 70%);
}

/* ---------- Sections ---------- */
.section {
  padding-block: 96px;
}

.section-tight {
  padding-block: 64px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: rgba(255, 255, 255, 0.85);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 660px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--crimson-600);
  margin-bottom: 14px;
}

.section-head p {
  margin-top: 14px;
  font-size: 1.08rem;
}

.section-head.center p {
  margin-inline: auto;
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}

/* Grid items default to min-width: auto (content-based), which can force
   a track wider than its minmax(0, 1fr) sizing when a child can't shrink
   (long unbroken text, fixed-width media) - this is what actually causes
   horizontal page scroll on narrow screens, not the column count itself. */
.grid > * {
  min-width: 0;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Content-dense 2-column sections (e.g. konference detail, moje udaje)
   need to stack sooner than the generic .grid-2 breakpoint. */
@media (max-width: 900px) {
  .grid-2-stack-early {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow-wrap: break-word;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

/* Padding tuned for phones - the desktop 32px/28px eats a disproportionate
   share of a ~375-414px screen once .container's own padding is added. */
@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
  .card {
    padding: 22px 18px;
  }
}

/* ---------- Icon showcase (large icon moment for lighter-content sections) ---------- */
.icon-showcase {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  position: relative;
}

.icon-showcase::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
}

.icon-showcase-inner {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--crimson-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-showcase-inner svg {
  width: 50px;
  height: 50px;
  color: var(--crimson-600);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--crimson-100);
  color: var(--crimson-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.98rem;
  margin: 0;
}

.card-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.card-list li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.card-list svg {
  width: 16px;
  height: 16px;
  color: var(--crimson-600);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------- Structure / hierarchy diagram ---------- */
.org-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.org-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 54px;
  bottom: -54px;
  width: 2px;
  background: var(--line-strong);
  z-index: 0;
}

.org-node {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 0;
  position: relative;
}

.org-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.org-node.is-yellow .org-dot {
  background: var(--union-yellow);
  color: var(--navy-950);
}

.org-node.is-crimson .org-dot {
  background: var(--crimson-600);
  color: var(--white);
}

.org-body h3 {
  margin-bottom: 4px;
}

.org-body p {
  font-size: 0.95rem;
  margin: 0;
}

.org-body .org-meta {
  margin-top: 8px;
  font-size: 0.87rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 22px;
}

.step {
  display: flex;
  gap: 22px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--crimson-600);
  flex-shrink: 0;
  width: 44px;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.step p {
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- Chips / badges ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-950);
}

.chip-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--crimson-600);
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 44px 0;
}

.stat {
  text-align: left;
  border-left: 3px solid var(--crimson-600);
  padding-left: 18px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  color: var(--navy-950);
}

.stat span {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy-950);
}

.accordion-trigger .plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  position: relative;
}

.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: "";
  position: absolute;
  background: var(--navy-950);
  top: 50%;
  left: 50%;
  transition: transform 0.25s ease;
}

.accordion-trigger .plus::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-trigger .plus::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.accordion-item.is-open .accordion-trigger .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-item.is-open .accordion-trigger .plus {
  background: var(--crimson-600);
  border-color: var(--crimson-600);
}
.accordion-item.is-open .accordion-trigger .plus::before,
.accordion-item.is-open .accordion-trigger .plus::after {
  background: var(--white);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding: 0 4px 26px;
}

/* ---------- Tables (documents) ---------- */
.doc-list {
  display: grid;
  gap: 14px;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.doc-row:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.doc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon svg {
  width: 22px;
  height: 22px;
}

.doc-meta {
  flex: 1;
  min-width: 0;
}

.doc-meta h3 {
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.doc-meta span {
  font-size: 0.86rem;
  color: var(--muted);
}

.doc-row .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.empty-state {
  padding: 30px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.96rem;
  text-align: center;
}

.note-box {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--union-yellow-100);
  border-radius: var(--radius-md);
  color: var(--navy-950);
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.note-box svg {
  width: 20px;
  height: 20px;
  color: var(--navy-950);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
}

.contact-line {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-line:first-child {
  padding-top: 0;
}

.contact-line .doc-icon {
  background: var(--crimson-100);
  color: var(--crimson-600);
}

.contact-line h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-line a.value,
.contact-line p.value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-950);
}

.contact-line a.value:hover {
  color: var(--crimson-600);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 64px 56px;
  background: linear-gradient(135deg, var(--crimson-600), var(--crimson-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
  max-width: 16ch;
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
}

.cta-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-banner .btn-primary {
  background: var(--navy-950);
  box-shadow: none;
}
.cta-banner .btn-primary:hover {
  background: var(--navy-800);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 64px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .brand-text {
  color: var(--white);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.62);
}

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 150;
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--crimson-600);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Employer badge grid (join page) ---------- */
.employer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .employer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.employer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
}

.employer-card .tag {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.employer-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-950);
}

/* ---------- Krokový průvodce přihláškou (registrace.php) ---------- */
.reg-stepper {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.reg-stepper-item {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.reg-stepper-item::before {
  content: '';
  position: absolute;
  top: 19px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line-strong);
  z-index: 0;
}

.reg-stepper-item:first-child::before {
  content: none;
}

.reg-stepper-item.is-done::before {
  background: var(--crimson-600);
}

.reg-stepper-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
}

.reg-stepper-item.is-active {
  color: var(--navy-950);
}

.reg-stepper-item.is-active .reg-stepper-num {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: var(--white);
}

.reg-stepper-item.is-done .reg-stepper-num {
  background: var(--crimson-600);
  border-color: var(--crimson-600);
  color: var(--white);
}

@media (max-width: 640px) {
  .reg-stepper-item {
    font-size: 0.7rem;
  }
  .reg-stepper-num {
    width: 32px;
    height: 32px;
  }
  .reg-stepper-item::before {
    top: 15px;
  }
}

.reg-step {
  display: none;
}

.reg-step.is-active {
  display: block;
}

.reg-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}

.employer-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.employer-pick-card {
  width: 100%;
  appearance: none;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.employer-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.employer-pick-card.is-selected {
  border-color: var(--navy-950);
  border-width: 2px;
  background: var(--bg-alt);
}

.employer-card-logo {
  display: block;
  max-width: 100%;
  max-height: 40px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.consent-text {
  box-sizing: border-box;
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Globální "p { max-width: 68ch }" (čitelnost běžné prózy) by tu zbytečně
   zúžilo text uvnitř už tak ohraničeného boxu - box sám je čitelný rámec,
   text uvnitř má vyplnit celou jeho šířku. */
.consent-text p {
  max-width: none;
}

.consent-text p + p {
  margin-top: 10px;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}
.mt-lg {
  margin-top: 48px;
}
.flow > * + * {
  margin-top: 1em;
}
.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.two-col-text {
  columns: 2;
  column-gap: 48px;
}
@media (max-width: 760px) {
  .two-col-text {
    columns: 1;
  }
}
.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--crimson-100);
  color: var(--crimson-700);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Utility třídy pro formuláře/admin sekce (clenove/) ---------- */
.form-narrow {
  max-width: 640px;
  margin-inline: auto;
}
.content-medium {
  max-width: 700px;
  margin-inline: auto;
}
.content-narrow {
  max-width: 760px;
  margin-inline: auto;
}
.form-wide {
  max-width: 900px;
}
.mb-md {
  margin-bottom: 16px;
}
.mt-sm {
  margin-top: 20px;
}
.mt-md {
  margin-top: 32px;
}
.no-underline {
  text-decoration: none;
}
.scroll-anchor {
  scroll-margin-top: 120px;
}
.d-inline {
  display: inline;
}
/* input./select. (ne jen .w-auto) kvůli specificitě - .form-input má
   width:100% a bez elementu v selektoru by ho (stejná specificita, ale
   pozdější v souboru) přebilo zpátky. */
input.w-auto,
select.w-auto {
  width: auto;
}
.card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.cell-wrap-sm {
  max-width: 280px;
  white-space: pre-wrap;
}
.inline-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.text-muted-sm {
  color: var(--muted, #777);
  font-size: 0.85em;
}
.signature-wrap {
  position: relative;
  width: 100%;
}
.signature-canvas {
  border: 1px solid var(--border, #ccc);
  border-radius: 8px;
  display: block;
  width: 100%;
  height: 160px;
  touch-action: none;
  background: #fff;
}
.btn-clear-signature {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 14px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.9);
}
.text-right {
  text-align: right;
}
.gap-20 {
  gap: 20px;
}
input.w-80,
select.w-80 {
  width: 80px;
}
input.w-70,
select.w-70 {
  width: 70px;
}
input.w-120,
select.w-120 {
  width: 120px;
}
.mt-16 {
  margin-top: 16px;
}
.inline-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.note-small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ==========================================================================
   Sekce pro členy
   ========================================================================== */

.member-context-bar {
  background: var(--crimson-600);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
}

/* Na desktopu (nad 900px, stejný zlom jako .header-quick-actions níže) je
   tahle lišta zbytečná - tlačítko "Veřejný web" dělá přesně totéž a je vidět
   přímo v hlavičce. Na mobilu ale .header-quick-actions mizí, takže lišta
   zůstává jedinou cestou zpět. */
@media (min-width: 901px) {
  .member-context-bar {
    display: none;
  }
}

.member-context-bar a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.member-nav-wrap {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.member-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.member-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.member-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.member-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.member-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .member-nav-toggle {
    display: flex;
  }

  .member-nav-wrap {
    display: none;
    padding: 14px 0;
  }

  .member-nav-wrap.is-open {
    display: block;
  }
}

/* Admin/VZO/Veřejný web/Odhlásit se v rozbalovacím menu (viz
   clenove/includes/header.php) - duplicitní k .header-quick-actions, proto
   viditelné jen tam, kde jsou tlačítka v hlavičce schovaná (pod 900px). */
.member-nav-item-mobile-only {
  display: none;
}
@media (max-width: 900px) {
  .member-nav-item-mobile-only {
    display: block;
  }
}

.member-nav {
  background: var(--navy-950);
  border-radius: var(--radius-pill);
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px;
}

.member-nav-item {
  position: relative;
}

.member-nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.member-nav-item > a:hover,
.member-nav-item > a.is-active {
  background: var(--crimson-600);
  color: var(--white);
}

.member-nav-item .caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

.member-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 8px 8px;
  min-width: 240px;
  z-index: 50;
}

.member-nav-item:hover .member-dropdown,
.member-nav-item:focus-within .member-dropdown {
  display: block;
}

.member-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.member-dropdown a:hover {
  background: var(--bg-alt);
  color: var(--navy-950);
}

@media (max-width: 900px) {
  .member-nav {
    flex-direction: column;
    justify-content: flex-start;
    border-radius: var(--radius-md);
    align-items: stretch;
  }
  .member-nav-item .caret {
    display: none;
  }
  .member-dropdown,
  .member-nav-item:hover .member-dropdown,
  .member-nav-item:focus-within .member-dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    margin-top: 0;
    margin-left: 14px;
    padding: 2px 0 8px;
    background: transparent;
    min-width: 0;
  }
  .member-dropdown a {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
  }
  .member-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }
}

/* Podsekce administrace (viz includes/header.php - zobrazí se na všech
   admin/*.php stránkách), ať je vidět jak se dostat na zbytek administrace. */
.admin-subnav-wrap {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-subnav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.admin-subnav a:hover,
.admin-subnav a.is-active {
  background: var(--navy-950);
  color: var(--white);
}

/* Kompaktnější formulářové prvky jen v obsahu administrace (viz body.admin-page
   v includes/header.php) - .section-tight zúžuje výběr jen na samotný obsah
   stránky, ne na hlavičku/lištu podsekcí (tam jsou .header-quick-actions
   tlačítka, která mají zůstat stejně velká jako jinde na webu). Zbytek webu
   (přihlášení, formuláře pro členy...) zůstává v normální, větší velikosti. */
body.admin-page .section-tight .form-input {
  padding: 7px 12px;
  font-size: 0.86rem;
}

body.admin-page .section-tight .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  gap: 6px;
}

.member-page-head {
  margin-bottom: 40px;
}

.member-page-head h1 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem);
}

/* Placeholder pro stránky, které zatím čekají na formulář/backend */
.placeholder-box {
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}

.placeholder-box .icon-showcase {
  width: 96px;
  height: 96px;
}

.placeholder-box .icon-showcase-inner {
  width: 52px;
  height: 52px;
}

.placeholder-box .icon-showcase-inner svg {
  width: 26px;
  height: 26px;
}

.placeholder-box h2 {
  margin-top: 20px;
}

.placeholder-box p {
  margin-inline: auto;
  margin-top: 10px;
}

.placeholder-box .badge-inline {
  margin-bottom: 6px;
}

.committee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.committee-table th,
.committee-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.committee-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.committee-table td a {
  color: var(--navy-950);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

/* ---------- Přihlášení / formuláře pro členy ---------- */
.auth-shell {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
}

/* Přihlašovací/heslové stránky (prihlaseni.php, pozadat-o-pristup.php,
   nastavit-heslo.php) nemají logo v hlavičce jako zbytek webu - kompletní
   logo (assets/loga) je rovnou v kartě nad nadpisem, vycentrované.
   Hlavička tam má jen tlačítko "Veřejný web". */
.auth-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

.site-header.auth-header .container {
  justify-content: flex-end;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.auth-card .auth-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--navy-950);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.form-alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 18px;
  background: var(--crimson-100);
  color: var(--crimson-700);
}

.form-alert.is-success {
  background: #e3f6e9;
  color: #1a7a3d;
}

/* Modál (potvrzovací dialogy) - viz zadost-o-pujcku.php/podepsat-pujcku.php.
   Otevírání/zavírání řeší openModal()/closeModal() v assets/js/main.js. */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 0, 102, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.modal-heading-divider {
  /* h1-h4 mají font-size na clamp() odvozený od šířky VIEWPORTU (řádově
     30-44px) - pro nadpis celé stránky OK, ale modal-content má pevnou
     max-width 480px, takže by nadpis vyskakovacího okna vypadal nepatřičně
     velký/těžký. Pevná menší velikost místo zděděného h1-h4 pravidla. */
  font-size: 1.4rem;
  color: var(--navy-950);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-top: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Vícesloupcový layout formulářů (zmenit-udaje.php a další) - vzor podle
   pridejse/register (form-row = grid 2 sloupce, na mobilu se zaboří na 1). */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* zmenit-udaje.php - seznam dětí (odebrat existující / přidat nové). */
.form-hint {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 6px 0 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: auto;
}

/* ---------- Přetahovatelné seznamy (admin/menu.php) ---------- */
.dnd-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px 6px;
  margin-bottom: 16px;
  background: var(--white);
}
.dnd-group-nezarazeno {
  border-style: dashed;
  background: var(--bg-alt);
}
.dnd-group-title {
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.dnd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 40px;
}
.dnd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.dnd-group .dnd-item {
  background: var(--bg);
}
.dnd-item.is-dragging {
  opacity: 0.4;
}
.dnd-handle {
  cursor: grab;
  touch-action: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
.dnd-handle:active {
  cursor: grabbing;
}
.dnd-page-name {
  flex: 1;
  min-width: 160px;
}
.dnd-check {
  gap: 6px !important;
  font-size: 0.88rem;
  white-space: nowrap;
}
.checkbox-label.is-invalid {
  color: var(--crimson-700);
}
.checkbox-label.is-invalid input[type="checkbox"] {
  outline: 2px solid var(--crimson-600);
  outline-offset: 3px;
}

/* Plovoucí panel hromadné akce (admin/index.php) - skrytý, dokud není
   zaškrtnutý aspoň jeden řádek (.active přidává/odebírá JS). */
.bulk-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-950);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  display: none;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 500;
  max-width: calc(100% - 40px);
}
.bulk-toolbar.active {
  display: flex;
}

.form-row-checkbox {
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}

.form-row-nove-dite {
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: end;
}
@media (max-width: 700px) {
  .form-row-nove-dite {
    grid-template-columns: 1fr;
  }
}

.form-group-remove {
  display: flex;
  align-items: flex-end;
}

.form-section-head {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--navy-950);
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line-strong);
}

.form-section-head:first-child {
  margin-top: 0;
}

.form-input.error,
.form-input.is-invalid {
  border-color: var(--crimson-600);
}

/* Adresní našeptávač (Nominatim/OSM) - stejný vzor jako pridejse. */
.addr-suggest-wrap {
  position: relative;
}

.addr-suggest {
  display: none;
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.addr-suggest.open {
  display: block;
}

.addr-suggest-item {
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}

.addr-suggest-item:hover,
.addr-suggest-item.is-active {
  background: var(--bg-alt);
}

.auth-links {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88rem;
}

.auth-links a {
  color: var(--navy-950);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Admin sekce (clenove/admin) ---------- */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  color: var(--ink-soft);
}

.role-badge.is-director {
  background: var(--navy-950);
  color: var(--white);
}

.role-badge.is-komise {
  background: var(--union-yellow-100);
  color: var(--union-yellow-700);
}

.role-badge.is-clen_vyboru {
  background: var(--crimson-100);
  color: var(--crimson-700);
}

.role-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 0.86rem;
  background: var(--white);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--line-strong);
}

.status-dot.is-active {
  background: #22a559;
}

/* Auto-odhlášení po neaktivitě (includes/header.php) - obdoba vzo. */
.inactivity-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 0, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.inactivity-modal-overlay.hidden {
  display: none;
}

.inactivity-modal-box {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 420px;
  width: 90%;
  padding: 28px;
  text-align: center;
}

.inactivity-modal-box h3 {
  margin-top: 0;
  color: var(--navy-950);
}

.inactivity-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* ---------- Konference (clenove/konference.php) ---------- */
/* Obsah z nastavení konference (předmluva, doprovodný program) - HTML z editoru. */
.rich-text p { margin: 0 0 12px; }
.rich-text ul, .rich-text ol { margin: 10px 0; padding-left: 22px; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 4px; }
.rich-text strong { font-weight: 700; }
.rich-text em { font-style: italic; }
.rich-text u { text-decoration: underline; }
.rich-text a { color: var(--navy-700); text-decoration: underline; }

/* Místo konání - odkaz na mapu s ikonou a výzvou, že je klikací. */
/* Odkaz zůstává v textu (teče za "Místo:" a zalamuje se jako běžný text). */
.map-link { color: var(--navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.map-link .map-ikona { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; color: var(--crimson-600); }
.map-link small { font-weight: 400; color: var(--muted); text-decoration: none; }

/* Volby účasti - tlačítka vycentrovaná, text pod nimi s odstupem. */
.ucast-volby { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
/* .card p má margin: 0, proto je tu třída s vyšší specificitou (.card p.ucast-napoveda). */
.card p.ucast-napoveda { margin: 22px 0 0; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* Osnova jednání. */
.osnova-seznam { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
.osnova-popis { margin: 4px 0; color: var(--ink-soft); font-size: 0.95rem; }
.osnova-meta { margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.osnova-meta a { color: var(--navy-700); }

/* Přílohy - bílé karty se žlutou horní linkou (jako v administraci). */
.priloha-seznam { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.priloha-radek { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--union-yellow); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.priloha-radek:hover { border-color: var(--line-strong); background: var(--bg); }
.priloha-ikona { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--crimson-100); color: var(--crimson-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.priloha-ikona svg { width: 20px; height: 20px; }
.priloha-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.priloha-nazev { font-weight: 600; font-size: 0.88rem; overflow-wrap: anywhere; }
.priloha-velikost { font-size: 0.8rem; color: var(--muted); }
.priloha-stahnout { width: 18px; height: 18px; color: var(--navy-700); flex-shrink: 0; }

/* Karta konference v přehledu (clenove/konference.php bez ?id=) - řádky odsazené. */
.card .konf-karta-nazev { margin-bottom: 14px; }
.card p.konf-karta-radek { margin: 0 0 8px; line-height: 1.5; }
.card p.konf-karta-maly { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.konf-karta-akce { margin-top: 20px; }
