/* Motorfans – barvy HC Motor: modrá a žlutá, podklad jako led */
:root {
  --modra: #0f2b5b;
  --modra-svetla: #1d4589;
  --zluta: #ffcd00;
  --led: #eef3f8;
  --bila: #ffffff;
  --text: #16233b;
  --sede: #586379;
  --linka: #d3dce8;
  --ok: #1e7d4f;
  --chyba: #b3261e;
  --nadpis: "Bahnschrift", "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --telo: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.6 var(--telo); color: var(--text); background: var(--led); }
a { color: var(--modra-svetla); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--zluta); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--nadpis); font-stretch: condensed; line-height: 1.15; color: var(--modra); }
h1 { font-size: 2.4rem; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
img { max-width: 100%; height: auto; }
.skryty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Zarovnání textu (značky {: .text-center } apod.) */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; hyphens: auto; }

/* Hlavička: modrá s žlutým pruhem jako lem dresu */
.hlava { background: var(--modra); color: var(--bila); border-bottom: 6px solid var(--zluta);
  box-shadow: 0 6px 0 var(--modra); margin-bottom: 2.5rem; }
.hlava__obsah, .menu { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.hlava__obsah { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.25rem; }
.znacka { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.znacka__nazev { font: 700 2.6rem/1 var(--nadpis); font-stretch: condensed; color: var(--zluta); letter-spacing: -.01em; }
.znacka__podtitul { font-size: .9rem; opacity: .85; }
.ucet { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.ucet a, .ucet .odkaz { color: var(--bila); }
.ucet a.tlacitko { color: var(--modra); text-decoration: none; }  /* tmavý text na žlutém tlačítku */
.ucet form { margin: 0; }
.ucet__vedlejsi { display: flex; gap: 1rem; align-items: center; font-size: .95rem; }
.ucet__sprava { padding: .3rem .7rem; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; text-decoration: none; }
.ucet__sprava:hover { border-color: var(--zluta); color: var(--zluta) !important; }
.ucet__vedlejsi .odkaz { opacity: .85; }

/* Můj účet – jednořádkové tlačítko: modré pole s iniciálami, žlutý nápis, žlutá linka kolem */
.muj-ucet { display: inline-flex; align-items: stretch; overflow: hidden; background: var(--zluta);
  color: var(--modra) !important; text-decoration: none; border: 2px solid var(--zluta); border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.muj-ucet:hover { background: #ffdc4d; border-color: #ffdc4d; }
.muj-ucet[aria-current] { background: var(--bila); border-color: var(--bila); }
.muj-ucet__ikona { flex: none; display: grid; place-items: center; padding: 0 .6rem; background: var(--modra);
  color: var(--zluta); font: 700 .95rem/1 var(--nadpis); letter-spacing: .02em; }
.muj-ucet__text { display: flex; align-items: center; padding: .45rem 1rem .45rem .7rem; }
.muj-ucet__text strong { font: 700 1.05rem/1.1 var(--nadpis); font-stretch: condensed; }

/* Přihlásit – obrysové tlačítko vedle žlutého „Stát se členem“ */
.ucet a.tlacitko--prihlasit { display: inline-flex; align-items: center; gap: .45rem; background: transparent;
  color: var(--bila); border: 2px solid var(--bila); padding: calc(.6rem - 2px) 1.1rem; }
.ucet a.tlacitko--prihlasit:hover, .ucet a.tlacitko--prihlasit[aria-current] { background: var(--bila); color: var(--modra); }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding-top: 1rem; padding-bottom: .75rem; }
.menu a { color: var(--bila); text-decoration: none; font: 600 1.1rem var(--nadpis); padding: .2rem 0;
  border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--zluta); }

.nahled-pruh { max-width: 64rem; margin: -1.5rem auto 2rem; padding: .6rem 1.25rem; background: var(--zluta); color: var(--modra); border-radius: 4px; }
.obsah { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
.pata { text-align: center; color: var(--sede); font-size: .9rem; padding: 2rem 1rem; border-top: 1px solid var(--linka); }

/* Tlačítka */
.tlacitko { display: inline-block; background: var(--zluta); color: var(--modra); border: 0; border-radius: 4px;
  padding: .6rem 1.2rem; font: 700 1.05rem var(--nadpis); text-decoration: none; cursor: pointer; }
.tlacitko:hover { background: #ffdc4d; }
.odkaz { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* Novinky: datum vlevo jako na výsledkové tabuli */
.zprava-clanek { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--linka); }
.zprava-clanek:has(.zprava-clanek__foto) { grid-template-columns: 5.5rem 12rem 1fr; }
.zprava-clanek h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.zprava-clanek h2 a { color: var(--modra); text-decoration: none; }
.zprava-clanek h2 a:hover { text-decoration: underline; }
.zprava-clanek p { margin: 0; max-width: 60ch; }
.zprava-clanek__foto img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; display: block; }
.datum { display: flex; flex-direction: column; font-family: var(--nadpis); color: var(--modra); }
.datum__den { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.datum__rok { font-size: .9rem; color: var(--sede); }
.zprava-clanek--hlavni h2 { font-size: 2.1rem; }
.zprava-clanek--hlavni:has(.zprava-clanek__foto) { grid-template-columns: 5.5rem 1fr; }
.zprava-clanek--hlavni .zprava-clanek__foto { grid-column: 2; }
.zprava-clanek--hlavni .zprava-clanek__text { grid-column: 2; }
.zprava-clanek--hlavni .zprava-clanek__foto img { aspect-ratio: 16/7; }
.strankovani { display: flex; gap: 1.5rem; justify-content: center; padding: 2rem 0; color: var(--sede); }

/* Text článku a stránek */
.text { max-width: 42rem; }
.text__datum { color: var(--sede); font-size: .9rem; display: block; }
.text .perex { font-size: 1.2rem; }
.text__foto { border-radius: 4px; margin: 1rem 0; }
.text table { border-collapse: collapse; width: 100%; }
.text td, .text th { border-bottom: 1px solid var(--linka); padding: .4rem .5rem; text-align: left; }

/* Obrázky v textu – zmenšené, po kliknutí galerie (js/galerie.js) */
.text { display: flow-root; }  /* obtékané obrázky nepřetečou pod článek */
.text h2, .text h3, .text table, .text .prilohy, .text aside { clear: both; }
.text .obrazek-odkaz { display: block; margin: 1.25rem 0; cursor: zoom-in; }
.text .obrazek-odkaz img { display: block; margin: 0 auto; border-radius: 4px; max-height: 36rem; width: auto; }
.text .obrazek-odkaz:hover img { opacity: .92; }
.text .obrazek-mensi { width: 60%; margin-left: auto; margin-right: auto; }
.text .obrazek-vlevo { float: left; width: 45%; margin: .35rem 1.5rem 1rem 0; }
.text .obrazek-vpravo { float: right; width: 45%; margin: .35rem 0 1rem 1.5rem; }
.text .obrazek-mensi img, .text .obrazek-vlevo img, .text .obrazek-vpravo img { width: 100%; max-height: none; }

.galerie { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: #0a1428; color: var(--bila); overflow: hidden; }
.galerie::backdrop { background: rgba(8, 18, 38, .5); }
.galerie__obsah { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .75rem; padding: 3.5rem 4rem 1.5rem; }
.galerie__obsah img { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; border-radius: 3px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.galerie figcaption { text-align: center; max-width: 42rem; font-size: .95rem; color: #dfe6f0; }
.galerie button { position: absolute; background: rgba(255,255,255,.12); color: var(--bila); border: 0;
  border-radius: 50%; width: 3rem; height: 3rem; font: 400 2rem/1 var(--telo); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.galerie button:hover { background: var(--zluta); color: var(--modra); }
.galerie button[hidden] { display: none; }
.galerie__zavrit { top: 1rem; right: 1rem; }
.galerie__sipka { top: 50%; transform: translateY(-50%); }
.galerie__sipka--zpet { left: 1rem; }
.galerie__sipka--dal { right: 1rem; }
html.galerie-otevrena { overflow: hidden; }

/* Panely a formuláře */
.panel { background: var(--bila); border-radius: 6px; padding: 1.5rem 1.75rem; margin: 0 0 2rem; max-width: 42rem;
  border-top: 4px solid var(--modra); }
.panel--uzky { max-width: 26rem; margin-inline: auto; }
.panel h2:first-child, .panel h1:first-child { margin-top: 0; }
.formular { display: grid; gap: 1rem; margin: 1rem 0; }
.formular > .tlacitko { justify-self: start; }
section.panel { margin-top: 2.5rem; }
.pole { display: grid; gap: .25rem; }
.pole label { font-weight: 600; }
.pole input:not([type=checkbox]), .pole textarea, .pole select {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--linka); border-radius: 4px; background: var(--bila); width: 100%; }
.pole small { color: var(--sede); }
.pole--zaskrt { grid-template-columns: auto 1fr; align-items: start; column-gap: .6rem; }
.pole--zaskrt input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; }
.pole--zaskrt label { font-weight: 400; }
.pole--zaskrt small, .pole--zaskrt .errorlist { grid-column: 2; }
.pole--chyba input { border-color: var(--chyba); }
.errorlist, .chyby { color: var(--chyba); margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.zprava { padding: .75rem 1rem; border-radius: 4px; background: var(--bila); border-left: 4px solid var(--modra); }
.zprava--success { border-color: var(--ok); }
.zprava--error { border-color: var(--chyba); }
.prazdno, .poznamka { color: var(--sede); }

/* Členská karta ve stylu permanentky – perforace vlevo */
.permanentka { display: grid; grid-template-columns: 1fr auto; background: var(--modra); color: var(--bila);
  border-radius: 10px; overflow: hidden; max-width: 42rem; margin-bottom: 2.5rem;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent .9rem, #000 .95rem);
          mask: radial-gradient(circle at 0 50%, transparent .9rem, #000 .95rem); }
.permanentka__hlavni { padding: 1.5rem 1.5rem 1.5rem 2.25rem; display: flex; flex-direction: column; gap: .2rem; }
.permanentka__sezona { color: var(--zluta); font: 700 1rem var(--nadpis); }
.permanentka__jmeno { font: 700 2.2rem/1.1 var(--nadpis); font-stretch: condensed; }
.permanentka__cislo { opacity: .85; }
.permanentka__stav { background: var(--chyba); padding: 1.5rem; display: flex; flex-direction: column;
  justify-content: center; min-width: 12rem; border-left: 3px dashed rgba(255,255,255,.5); }
.permanentka__stav strong { font: 700 1.9rem/1.1 var(--nadpis); }
.permanentka--ok .permanentka__stav { background: var(--zluta); color: var(--modra); border-left-color: rgba(15,43,91,.4); }

.platba { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; background: var(--bila); border-radius: 6px;
  padding: 1.5rem; margin-bottom: 1rem; max-width: 42rem; }
.platba__qr { width: 11rem; text-align: center; }
.platba__qr svg { width: 100%; height: auto; display: block; }
.platba__qr small { color: var(--sede); }
.platba__udaje { flex: 1 1 16rem; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; align-content: start; }
.platba__udaje dt { color: var(--sede); }
.platba__udaje dd { margin: 0; font-weight: 600; }
.platba__udaje .velke { font: 700 1.4rem var(--nadpis); color: var(--modra); }

.tabulka-obal { overflow-x: auto; max-width: 42rem; }
.tabulka { width: 100%; border-collapse: collapse; background: var(--bila); border-radius: 6px; }
.tabulka th, .tabulka td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--linka); white-space: nowrap; }
.tabulka th { font-family: var(--nadpis); color: var(--modra); }
.stitek { font-size: .85rem; font-weight: 600; }
.stitek--zaplaceno { color: var(--ok); }
.stitek--zruseno { color: var(--sede); text-decoration: line-through; }

/* KM liga v profilu */
.km-liga { max-width: 42rem; margin-bottom: 2.5rem; }
.km-liga h2 { margin-top: 0; }
.km-liga h3 { font-size: 1.25rem; margin: 1.75rem 0 .6rem; }
.km-cisla { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .75rem; }
.km-cislo { background: var(--bila); border-radius: 6px; padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.km-cislo strong { font: 700 2rem/1.1 var(--nadpis); color: var(--modra); }
.km-cislo span { color: var(--sede); font-size: .9rem; }
.km-cislo__popis { color: var(--sede); font-size: .9rem; margin-bottom: .2rem; }
.km-cislo--hlavni { background: var(--modra); }
.km-cislo--hlavni strong { color: var(--zluta); font-size: 2.4rem; }
.km-cislo--hlavni .km-cislo__popis { color: rgba(255,255,255,.8); }
.sede { color: var(--sede); }
.zadosti { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.zadosti li { background: var(--bila); border-radius: 4px; padding: .6rem .8rem; display: flex; gap: 1rem; align-items: center; }
.zadost__text { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; flex: 1; }
.zadosti small { flex-basis: 100%; color: var(--sede); }
.zadost__nahled { flex: none; display: block; width: 6.5rem; height: 4.5rem; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--linka); background: var(--led); }
.zadost__nahled img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .15s; }
.zadost__nahled:hover img { transform: scale(1.06); }
.inline-form { display: block; margin-top: .15rem; }
.inline-form .odkaz { text-align: left; color: var(--chyba); }
.stitek--ceka { color: #b36b00; }
.stitek--zamitnuto { color: var(--chyba); }
.nahrat { margin-top: 1.5rem; }
.nahrat summary { cursor: pointer; font: 700 1.15rem var(--nadpis); color: var(--modra); }
.nahrat[open] summary { margin-bottom: .5rem; }

/* Výjezdy */
.moje-vyjezdy { max-width: 42rem; margin-bottom: 2.5rem; }
.moje-vyjezdy h2 { margin-top: 0; }
.prihlaseni { max-width: 46rem; }
.zajezd-info { background: var(--bila); border-radius: 6px; padding: 1.25rem 1.5rem; margin: 0 0 1.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start; border-left: 5px solid var(--zluta); }
.zajezd-info dl, .zajezd-info--kratke { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.zajezd-info--kratke { grid-template-columns: auto 1fr; }
.zajezd-info dt { color: var(--sede); }
.zajezd-info dd { margin: 0; font-weight: 600; }
.zajezd-info .poznamka { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.plno { color: var(--chyba); }
.cenik { border-collapse: collapse; font-size: .95rem; }
.cenik th, .cenik td { padding: .3rem .6rem; text-align: right; border-bottom: 1px solid var(--linka); white-space: nowrap; }
.cenik th:first-child, .cenik tbody th { text-align: left; font-weight: 600; }
.cenik thead th { font-family: var(--nadpis); color: var(--modra); font-size: .85rem; }
.pole-mrizka { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; align-items: start; }
.pole { align-content: start; }
.prihlaseni .panel { max-width: none; }
.prihlaseni .pole label { font-weight: 600; }
.prihlaseni .pole--zaskrt label { font-weight: 400; }
.cestujici-radek { border: 1px solid var(--linka); border-radius: 6px; background: var(--bila); padding: 1rem 1.25rem;
  margin: 0 0 1rem; display: grid; gap: 1rem; }
.cestujici-radek legend { font: 700 1.05rem var(--nadpis); color: var(--modra); padding: 0 .4rem; display: flex; gap: 1rem; align-items: baseline; }
.cestujici-radek .odebrat { font: inherit; font-size: .85rem; font-weight: 400; color: var(--chyba); }
.cestujici-radek .poznamka { margin: 0; font-size: .9rem; }
.cestujici-radek > ul.errorlist { margin: 0; }
.typ-volba { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.typ-volba label { display: flex; gap: .4rem; align-items: center; font-weight: 600; cursor: pointer; }
.tlacitko--vedlejsi { background: var(--bila); border: 2px solid var(--modra); color: var(--modra); }
.tlacitko--vedlejsi:hover { background: var(--led); }
.past { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rekap { background: var(--bila); border-radius: 6px; padding: 1.25rem 1.5rem; border-top: 5px solid var(--modra); display: grid; gap: 1rem; }
.rekap h2 { margin: 0; }
.rekap tfoot th { font: 700 1.2rem var(--nadpis); color: var(--modra); text-align: left; }
.rekap .tlacitko { justify-self: start; }
.varovani { color: #8a4b00; }
.stav-pruh { background: var(--zluta); color: var(--modra); padding: .8rem 1rem; border-radius: 6px; font-weight: 600; }
.stav-pruh--ok { background: var(--ok); color: #fff; }
.stav-pruh--nahradnik { background: #fff3d6; color: #8a4b00; }
.stav-pruh--zruseno { background: var(--linka); color: var(--sede); }
.zrusit-prihlasku { margin: 2rem 0 .5rem; }
.zrusit-prihlasku .odkaz { color: var(--chyba); }
.vyjezd-box { margin: 2.5rem 0; padding: 1.5rem; background: var(--modra); border-radius: 8px; color: #fff; }
.vyjezd-box h2 { color: var(--zluta); margin-top: 0; }
.vyjezd-box .zajezd-info { color: var(--text); }
.stitek-vyjezd { display: inline-block; margin: .1rem 0 .4rem; padding: .15rem .6rem; border-radius: 3px; background: var(--zluta);
  color: var(--modra); font-weight: 700; font-size: .85rem; text-decoration: none; }
[hidden] { display: none !important; }

/* Slevové poukazy */
.poukazy { max-width: 42rem; margin-bottom: 2.5rem; }
.poukazy h2 { margin-top: 0; }
.poukaz { display: flex; align-items: stretch; background: var(--bila); border-radius: 8px; overflow: hidden;
  margin-bottom: .75rem; border: 2px dashed var(--zluta); }
.poukaz__castka { background: var(--zluta); color: var(--modra); padding: 1rem 1.25rem; display: flex;
  flex-direction: column; justify-content: center; min-width: 8.5rem; }
.poukaz__castka strong { font: 700 1.9rem/1.1 var(--nadpis); white-space: nowrap; }
.poukaz__castka span { font-size: .85rem; }
.poukaz__text { padding: .9rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; justify-content: center; }
.poukaz__text span { color: var(--sede); font-size: .95rem; }
.poukaz-volba { background: #fff8d6; border-radius: 4px; padding: .5rem .75rem; }
.mezisoucet td { color: var(--sede); }

/* Odhlášení po zaplacení */
.zadost-odhlaseni { background: var(--bila); border-left: 5px solid #b36b00; border-radius: 4px; padding: .8rem 1rem;
  margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .2rem; }
.zadost-odhlaseni--vyrizeno { border-left-color: var(--ok); }
.zadost-odhlaseni--zamitnuto { border-left-color: var(--sede); }
.zadost-odhlaseni small { color: var(--sede); }
.zadost-form { margin-top: 2rem; }
.zadost-form summary { cursor: pointer; font: 700 1.15rem var(--nadpis); color: var(--modra); }
.volby { display: flex; flex-direction: column; gap: .35rem; }
.volby label { font-weight: 400 !important; display: flex; gap: .5rem; align-items: center; }
.storno { margin-top: 1.5rem; font-size: .92rem; color: var(--sede); background: var(--bila); padding: .8rem 1rem; border-radius: 4px; }

/* Přílohy ke stažení */
.prilohy { margin: 2rem 0; }
.prilohy h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.prilohy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.prilohy a { display: flex; align-items: center; gap: .9rem; background: var(--bila); border: 1px solid var(--linka);
  border-radius: 6px; padding: .65rem .9rem; text-decoration: none; color: var(--text); }
.prilohy a:hover { border-color: var(--modra); }
.prilohy__typ { flex: none; min-width: 3rem; text-align: center; background: var(--modra); color: var(--zluta);
  font: 700 .8rem var(--nadpis); padding: .35rem .4rem; border-radius: 4px; }
.prilohy__nazev { flex: 1; font-weight: 600; color: var(--modra-svetla); text-decoration: underline; }
.prilohy__velikost { color: var(--sede); font-size: .9rem; white-space: nowrap; }

/* Potvrzení o studiu */
.studium { max-width: 42rem; margin-bottom: 2.5rem; background: var(--bila); border-radius: 6px; padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--zluta); }
.studium h2 { margin-top: 0; font-size: 1.35rem; }
.studium p { margin: 0 0 .75rem; }
.studium__stav--ok { color: var(--ok); font-weight: 600; }
.studium__stav--chyba { color: var(--chyba); }

/* Platby k zaplacení hned pod kartou člena */
.k-zaplaceni { max-width: 42rem; margin-bottom: 2.5rem; }
.k-zaplaceni h2 { margin-top: 0; }
.k-zaplaceni .poznamka { margin-bottom: 0; }

/* Našeptávač adres */
.adresa-obal { position: relative; }
.adresa-seznam { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: .2rem 0 0; padding: .25rem 0;
  list-style: none; background: var(--bila); border: 1px solid var(--linka); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 43, 91, .15); max-height: 18rem; overflow-y: auto; }
.adresa-seznam li[role=option] { padding: .5rem .8rem; cursor: pointer; }
.adresa-seznam li[role=option]:hover, .adresa-seznam li[aria-selected=true] { background: #fff6cc; }
.adresa-zdroj { padding: .3rem .8rem; font-size: .75rem; color: var(--sede); border-top: 1px solid var(--linka); }

/* Plná moc */
.plna-moc-box { margin: 2.5rem 0; padding: 1.5rem; background: var(--bila); border-radius: 8px; border-left: 6px solid var(--modra); }
.plna-moc-box h2 { margin-top: 0; }

/* Úpravy přihlášky */
.pridat-cestujiciho { margin: 1.5rem 0; max-width: none; }
.pridat-cestujiciho summary { cursor: pointer; font: 700 1.1rem var(--nadpis); color: var(--modra); }
.pridat-cestujiciho[open] summary { margin-bottom: .75rem; }
.odebrat-bunka { text-align: right; width: 1%; white-space: nowrap; }
.odebrat-bunka form { margin: 0; }
.odebrat-bunka .odkaz { color: var(--chyba); font-size: .9rem; }
.zmena-platby { margin: .5rem 0 1.5rem; }

@media (max-width: 40rem) {
  .zajezd-info { grid-template-columns: 1fr; padding: 1rem; }
  .km-cisla { grid-template-columns: 1fr 1fr; }
  .km-cislo--hlavni { grid-column: 1 / -1; }
  h1 { font-size: 1.9rem; }
  .zprava-clanek, .zprava-clanek:has(.zprava-clanek__foto) { grid-template-columns: 1fr; gap: .5rem; }
  .zprava-clanek > * { grid-column: 1 !important; }
  .datum { flex-direction: row; gap: .4rem; align-items: baseline; }
  .datum__den { font-size: 1.1rem; }
  .permanentka { grid-template-columns: 1fr; }
  .permanentka__stav { border-left: 0; border-top: 3px dashed rgba(255,255,255,.5); }
  .hlava { margin-bottom: 1.5rem; }
  /* na mobilu přes celou šířku, ať se nedá minout */
  .ucet { width: 100%; }
  .muj-ucet { flex: 1 1 auto; }
  .muj-ucet__text { flex: 1; }
  .ucet a.tlacitko { flex: 1; justify-content: center; text-align: center; }
  .text .obrazek-mensi, .text .obrazek-vlevo, .text .obrazek-vpravo { float: none; width: auto; margin: 1.25rem 0; }
  .galerie__obsah { padding: 3.5rem .5rem 1rem; }
  .galerie__sipka { top: auto; bottom: 1rem; transform: none; }
}
