/* Centrální přihlášení – vlastní styl bez externího CDN.
   CSP služby povoluje jen 'self', takže žádný Bootstrap z jsdelivr. */

:root {
  --pozadi: #eef3f7;
  --panel: #ffffff;
  --text: #16242e;
  --tlumene: #55666f;
  --primarni: #0b3d5c;
  --primarni-svetla: #14587f;
  --ram: #cfdae2;
  --chyba: #8a1c1c;
  --chyba-pozadi: #fdecec;
  --ok: #14562c;
  --ok-pozadi: #e8f6ed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pozadi);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.preskoc {
  position: absolute;
  left: -9999px;
}
.preskoc:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.obal {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.hlavicka {
  background: var(--primarni);
  color: #fff;
  padding: 0.75rem 0;
}
.hlavicka-obsah {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.znacka {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}
.nav a {
  color: #dfeaf2;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a:focus-visible { color: #fff; border-bottom-color: #fff; }
.odhlasit { margin: 0; }

main { padding: 1.5rem 0 2.5rem; }

h1 { font-size: 1.5rem; margin: 0 0 0.35rem; }
h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.podtitulek { color: var(--tlumene); margin-top: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--ram);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.panel-uzky {
  max-width: 26rem;
  margin-inline: auto;
}

label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ram);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: inherit;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primarni-svetla);
  outline-offset: 2px;
}
.pole { margin-bottom: 0.9rem; }
.pole-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.pole-inline > * { flex: 1 1 10rem; }
.zaskrtavatko { display: flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.zaskrtavatko input { width: auto; }

.tlacitko {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--primarni);
  border-radius: 8px;
  background: var(--primarni);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.tlacitko:hover { background: var(--primarni-svetla); }
.tlacitko-plne { width: 100%; }
.tlacitko-druhotne { background: #fff; color: var(--primarni); }
.tlacitko-tiche {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  padding: 0.3rem 0.7rem;
  font-weight: 500;
}
.tlacitko-nebezpecne { background: var(--chyba); border-color: var(--chyba); }

.hlaska {
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin: 0 0 0.75rem;
  border: 1px solid transparent;
}
.hlaska-danger, .hlaska-error { background: var(--chyba-pozadi); border-color: #e3b7b7; color: var(--chyba); }
.hlaska-success { background: var(--ok-pozadi); border-color: #b6ddc5; color: var(--ok); }
.hlaska-info { background: #eaf2f8; border-color: #c2d9ea; }

.oddelovac {
  text-align: center;
  color: var(--tlumene);
  margin: 1rem 0 0.75rem;
  font-size: 0.9rem;
}

.dlazdice {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.dlazdice a {
  display: block;
  height: 100%;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--ram);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.dlazdice a:hover { border-color: var(--primarni); }
.dlazdice strong { display: block; font-size: 1.05rem; }

.stitek {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e4edf4;
  color: var(--primarni);
  font-size: 0.8rem;
  font-weight: 600;
}
.stitek-vyp { background: #eceff1; color: var(--tlumene); }

.tabulka-obal { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--ram); vertical-align: top; }
th { background: #f4f8fb; }
caption { text-align: left; color: var(--tlumene); padding-bottom: 0.4rem; }

details.ucet { border: 1px solid var(--ram); border-radius: 10px; background: var(--panel); margin-bottom: 0.75rem; }
details.ucet > summary { padding: 0.75rem 1rem; cursor: pointer; font-weight: 600; }
details.ucet > div { padding: 0 1rem 1rem; }

.mala { font-size: 0.88rem; color: var(--tlumene); }
.paticka { color: var(--tlumene); font-size: 0.85rem; border-top: 1px solid var(--ram); padding-top: 1rem; }

@media (max-width: 480px) {
  .hlavicka-obsah { flex-direction: column; align-items: flex-start; }
  .pole-inline { flex-direction: column; align-items: stretch; }
}
