/* NZ CMS · brand Než zazvoní: navy #041B3A, korál #E7344C, žlutá #F6BB06 (střídmě), písmo Gabarito */
:root {
  --navy: #041B3A;
  --navy-2: #0B2B57;
  --koral: #E7344C;
  --koral-text: #C21F38;      /* tmavší korál pro text a tlačítka (kontrast AA s bílou) */
  --zluta: #F6BB06;
  --pozadi: #F5F6FA;
  --karta: #FFFFFF;
  --text: #1B2433;
  --text-2: #4A5568;
  --linka: #DCE1EA;
  --ok-bg: #E6F4EC;
  --ok-text: #14532D;
  --chyba-bg: #FDECEE;
  --info-bg: #EAF0FA;
  --radius: 12px;
  --stin: 0 1px 2px rgba(4, 27, 58, .06), 0 4px 16px rgba(4, 27, 58, .06);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pozadi); color: var(--text);
  font-family: "Gabarito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.55;
  display: flex; flex-direction: column; min-height: 100vh;
}
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -.01em; }
a { color: var(--navy); text-decoration-color: var(--koral); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--koral-text); }
:focus-visible { outline: 3px solid var(--zluta); outline-offset: 2px; border-radius: 4px; }
code { background: #EEF1F6; padding: .05em .35em; border-radius: 4px; font-size: .92em; }
img { max-width: 100%; height: auto; display: block; }

.skryte { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.preskocit { position: absolute; left: -999px; top: 0; background: var(--zluta); color: var(--navy); padding: .6rem 1rem; z-index: 10; font-weight: 600; }
.preskocit:focus { left: 1rem; top: 1rem; }
.inline { display: inline; margin: 0; }

/* hlavička */
.hlavicka { background: var(--navy); color: #fff; border-bottom: 4px solid var(--koral); }
.hlavicka__vnitrek, .navigace__vnitrek, .stranka, .paticka p { max-width: 1120px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.hlavicka__vnitrek { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.znacka { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.znacka:hover { color: #fff; }
.znacka strong { color: var(--zluta); font-weight: 700; }
.znacka__zvonek { width: 1.4rem; height: 1.4rem; border-radius: 50% 50% 35% 35%; background: var(--koral); position: relative; flex: none; }
.znacka__zvonek::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--zluta); }
.hlavicka__skola { flex: 1 1 auto; min-width: 0; }
.hlavicka__nazev { display: block; font-weight: 600; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlavicka__uzivatel { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.hlavicka__jmeno { opacity: .9; }
.hlavicka .tlacitko--odkaz { color: #fff; }
.navigace { background: var(--navy-2); }
.navigace__vnitrek { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.navigace a { color: #fff; text-decoration: none; padding: .7rem .9rem; white-space: nowrap; border-bottom: 3px solid transparent; opacity: .85; }
.navigace a:hover { opacity: 1; color: #fff; }
.navigace a[aria-current="page"] { border-bottom-color: var(--zluta); opacity: 1; font-weight: 600; }
.navigace__nahled { margin-left: auto; }

/* stránka */
.stranka { flex: 1 0 auto; width: 100%; padding-top: 2rem; padding-bottom: 3rem; }
.stranka--prihlaseni { display: flex; align-items: center; justify-content: center; padding-top: 3rem; }
.zahlavi { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.nadtitul { margin: 0 0 .2rem; color: var(--text-2); font-weight: 500; }
.podtitul { color: var(--text-2); margin: 0 0 1.5rem; max-width: 65ch; }
.drobecky { margin: 0 0 .75rem; }
.drobecky a { text-decoration: none; font-weight: 500; }
.drobne { font-size: .92rem; color: var(--text-2); margin: 1.25rem 0 0; }
.paticka { color: var(--text-2); font-size: .9rem; border-top: 1px solid var(--linka); background: #fff; }
.paticka p { padding-top: 1rem; padding-bottom: 1rem; margin: 0 auto; }

.karta { background: var(--karta); border-radius: var(--radius); box-shadow: var(--stin); padding: 2rem; }
.karta--prihlaseni { width: 100%; max-width: 26rem; border-top: 5px solid var(--koral); }
.karta--uzka { max-width: 40rem; }
.znacka--velka { color: var(--navy); margin-bottom: 1.5rem; font-size: 1.3rem; }
.znacka--velka strong { color: var(--koral-text); }

/* tlačítka */
.tlacitko {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: .7rem 1.15rem; min-height: 44px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--navy); background: #fff; color: var(--navy); text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.tlacitko:hover { background: #EEF2F8; color: var(--navy); }
.tlacitko--hlavni { background: var(--navy); color: #fff; }
.tlacitko--hlavni:hover { background: var(--navy-2); color: #fff; }
.tlacitko--akce { background: var(--koral-text); border-color: var(--koral-text); color: #fff; }
.tlacitko--akce:hover { background: #A51A30; border-color: #A51A30; color: #fff; }
.tlacitko--nebezpecne { border-color: var(--koral-text); color: var(--koral-text); background: #fff; }
.tlacitko--nebezpecne:hover { background: var(--chyba-bg); color: #A51A30; }
.tlacitko--odkaz { border-color: transparent; background: transparent; text-decoration: underline; text-decoration-color: var(--koral); text-underline-offset: 3px; padding-left: .5rem; padding-right: .5rem; }
.tlacitko--odkaz:hover { background: transparent; }
.tlacitko--male { min-height: 36px; padding: .4rem .8rem; font-size: .92rem; border-width: 1.5px; }
.tlacitko--plne { width: 100%; }

/* hlášky */
.hlaska { border-radius: var(--radius); padding: .9rem 1.15rem; margin: 0 0 1.5rem; border-left: 5px solid; background: var(--info-bg); border-color: var(--navy); }
.hlaska p { margin: 0; }
.hlaska p + p, .hlaska ul { margin-top: .4rem; }
.hlaska ul { padding-left: 1.2rem; margin-bottom: 0; }
.hlaska--ok { background: var(--ok-bg); border-color: #1F8A4C; color: var(--ok-text); }
.hlaska--chyba { background: var(--chyba-bg); border-color: var(--koral); color: #7A1324; }
.hlaska--chyba a { color: #7A1324; }
.hlaska__odkazy { display: flex; gap: 1.25rem; flex-wrap: wrap; font-weight: 600; }
.hlaska__odkazy a { color: inherit; }

/* stav publikace */
.publikace { display: flex; align-items: center; gap: .9rem; background: #fff; border-radius: var(--radius); box-shadow: var(--stin); padding: 1rem 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.publikace p { margin: 0; }
.publikace > div { flex: 1 1 14rem; }
.publikace__text { font-weight: 600; color: var(--navy); }
.publikace__detail { color: var(--text-2); font-size: .92rem; }
.publikace__tecka { width: .8rem; height: .8rem; border-radius: 50%; background: #9AA5B8; flex: none; }
.publikace--ok .publikace__tecka { background: #1F8A4C; }
.publikace--probiha .publikace__tecka { background: var(--zluta); animation: puls 1.4s ease-in-out infinite; }
.publikace--chyba .publikace__tecka { background: var(--koral); }
.publikace__odkaz { font-weight: 600; white-space: nowrap; }
@keyframes puls { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .publikace--probiha .publikace__tecka { animation: none; } }

/* hledání */
.hledani { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hledani input[type="search"] { flex: 1 1 16rem; }

/* pole formulářů */
input[type="text"], input[type="password"], input[type="search"], input[type="datetime-local"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid #B8C1D1; border-radius: 10px; padding: .65rem .8rem; width: 100%; min-height: 44px;
}
textarea { resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #8E9AB0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); outline: 3px solid var(--zluta); outline-offset: 1px; }
input[type="file"] { font: inherit; font-size: .95rem; max-width: 100%; }
.formular { display: grid; gap: 1.1rem; }
.pole { display: grid; gap: .35rem; margin: 0; min-width: 0; }
.pole label, .pole legend { font-weight: 600; color: var(--navy); }
.pole__podlabel { margin-top: .4rem; }
.pole__napoveda { margin: 0; font-size: .9rem; color: var(--text-2); }
.pole__nepovinne { font-weight: 400; color: var(--text-2); font-size: .92rem; }
.pole__chyba { margin: 0; font-size: .95rem; color: #A51A30; font-weight: 600; }
.pole__chyba::before { content: "! "; }
.pole--chyba input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .pole--chyba select, [aria-invalid="true"] { border-color: var(--koral) !important; }
.pole__vnorene { display: grid; gap: .35rem; margin-top: .6rem; }
.povinne { color: var(--koral-text); }
.adresa { display: flex; align-items: stretch; }
.adresa__prefix { display: flex; align-items: center; padding: 0 .6rem; background: #EEF1F6; border: 1.5px solid #B8C1D1; border-right: 0; border-radius: 10px 0 0 10px; color: var(--text-2); font-size: .95rem; white-space: nowrap; }
.adresa input { border-radius: 0 10px 10px 0; min-width: 0; }
.skupina { border: 1.5px solid var(--linka); border-radius: var(--radius); padding: .9rem 1rem 1rem; background: #FBFCFE; }
.skupina legend { padding: 0 .35rem; }
.volba { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; cursor: pointer; font-weight: 400 !important; color: var(--text) !important; }
.volba input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.volba small { display: block; color: var(--text-2); font-size: .88rem; }
.zaskrtavatko { display: inline-flex; gap: .45rem; align-items: center; font-weight: 400 !important; color: var(--text) !important; cursor: pointer; }
.zaskrtavatko input { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.napoveda { font-size: .92rem; color: var(--text-2); }
.napoveda summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.napoveda ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.fotka-nahled { margin: 0 0 .25rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--linka); background: #EEF1F6; }
.fotka-nahled img { width: 100%; max-height: 220px; object-fit: cover; }

.formular--aktualita { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; gap: 1.25rem 2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--stin); padding: 1.75rem; }
.formular__hlavni, .formular__bocni { display: grid; gap: 1.1rem; min-width: 0; }
.formular__lista { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: center; border-top: 1px solid var(--linka); padding-top: 1.1rem; position: sticky; bottom: 0; background: #fff; padding-bottom: .25rem; }
.smazani { margin-top: 1.5rem; display: flex; justify-content: flex-end; }

/* štítky */
.stitek { display: inline-block; font-size: .82rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: #EEF1F6; color: var(--navy); white-space: nowrap; }
.stitek--zverejneno { background: var(--ok-bg); color: var(--ok-text); }
.stitek--koncept { background: #FFF3CC; color: #5C4300; box-shadow: inset 0 0 0 1px var(--zluta); }
.stitek--archiv { background: #ECEEF2; color: #4A5568; }
.stitek--admin { background: var(--zluta); color: var(--navy); margin-left: .3rem; }

/* seznamy */
.seznam { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--stin); overflow: hidden; }
.seznam th { text-align: left; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); font-weight: 600; padding: .8rem 1rem; border-bottom: 1px solid var(--linka); background: #FBFCFE; }
.seznam td { padding: .85rem 1rem; border-bottom: 1px solid var(--linka); vertical-align: middle; }
.seznam tr:last-child td { border-bottom: 0; }
.seznam tbody tr:hover { background: #FAFBFD; }
.seznam__nadpis a { font-weight: 600; text-decoration: none; }
.seznam__nadpis a:hover { text-decoration: underline; text-decoration-color: var(--koral); }
.seznam__akce { text-align: right; white-space: nowrap; }
.seznam__pozadavek { max-width: 40ch; }
.ikona-fotka { color: var(--text-2); font-size: .85rem; margin-left: .35rem; }
.prazdne { background: #fff; border-radius: var(--radius); box-shadow: var(--stin); padding: 2.5rem 1.5rem; text-align: center; color: var(--text-2); }

.historie { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--stin); }
.historie__polozka { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--linka); }
.historie__polozka:last-child { border-bottom: 0; }
.historie__hlavni { min-width: 0; }
.historie__zprava { margin: 0; font-weight: 600; color: var(--navy); }
.historie__meta, .historie__soubory { margin: .15rem 0 0; font-size: .9rem; color: var(--text-2); }
.historie__soubory { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; overflow-wrap: anywhere; }

/* telefon */
@media (max-width: 860px) {
  .formular--aktualita { grid-template-columns: 1fr; padding: 1.15rem; }
  .formular__lista { margin: 0 -1.15rem; padding-left: 1.15rem; padding-right: 1.15rem; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .stranka { padding-top: 1.25rem; }
  .hlavicka__vnitrek { gap: .4rem 1rem; }
  .hlavicka__skola { order: 3; flex-basis: 100%; }
  .hlavicka__uzivatel { margin-left: auto; }
  .hlavicka__jmeno { display: none; }
  .zahlavi .tlacitko--akce { width: 100%; }
  .seznam, .seznam tbody, .seznam tr, .seznam td { display: block; width: 100%; }
  .seznam thead { display: none; }
  .seznam { background: transparent; box-shadow: none; }
  .seznam tr { background: #fff; border-radius: var(--radius); box-shadow: var(--stin); margin-bottom: .75rem; padding: .6rem 0; }
  .seznam td { border: 0; padding: .2rem 1rem; }
  .seznam td[data-popis]::before { content: attr(data-popis) ": "; color: var(--text-2); font-size: .88rem; }
  .seznam__nadpis { font-size: 1.05rem; }
  .seznam__akce { text-align: left; padding-top: .5rem !important; }
  .historie__polozka { flex-direction: column; align-items: flex-start; }
  .karta { padding: 1.4rem; }
}

/* kontakty a stránky */
.karta--formular { max-width: 52rem; padding: 1.75rem; }
.pole-mrizka { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; }
.formular__lista--staticka { position: static; }
.karta--formular .formular__lista { margin: 0 -1.75rem -1.75rem; padding: 1rem 1.75rem; border-radius: 0 0 var(--radius) var(--radius); }
.pole--text label { font-size: .92rem; text-transform: none; }
.pole--zmeneno input, .pole--zmeneno textarea { border-color: var(--zluta); box-shadow: inset 4px 0 0 var(--zluta); }
@media (max-width: 700px) {
  .karta--formular { padding: 1.15rem; }
  .karta--formular .formular__lista { margin: 0 -1.15rem -1.15rem; padding: .9rem 1.15rem; }
}
