/* Modré sklo podle zásad Liquid Glass: obsah (fotky, text) leží dole,
   sklo tvoří jen plovoucí vrstvu ovládání a navigace nad ním. */
:root {
  --sans: "Noto Sans", Arial, sans-serif;
  --ink: #0f2b4d;
  --ink-2: #2b445f;
  --navy: #143d66;
  --deep: #0a2040;
  --paper: #f2f7fc;
  --blue: #1a5fc4;
  --accent: #d32939;
  --side: clamp(.9rem, 4.6vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.45, .45, 1);
}
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
.lg-defs { position: absolute; }
body { color: var(--ink); background: var(--paper); font-family: var(--sans); }
:where(h1, h2, h3, p, dl, dd, ul, ol, figure) { margin: 0; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy); }
.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Sklo: funkční vrstva ---------- */
.lg {
  --lg-fill: #ffffff24; --lg-blur: 6px; --lg-lum: 1.06;
  position: relative; isolation: isolate; border-radius: 999px; color: var(--ink);
  background: var(--lg-fill);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.8) brightness(var(--lg-lum));
  backdrop-filter: blur(var(--lg-blur)) saturate(1.8) brightness(var(--lg-lum));
  box-shadow:
    inset 0 1.5px 2px -.5px #ffffffd9, inset 0 -1.5px 2px -.5px #ffffff73,
    inset 2px 0 3px -1.5px #ffffff59, inset -2px 0 3px -1.5px #ffffff59,
    inset 0 -12px 18px -12px #ffffff38, inset 0 0 22px #ffffff1f,
    0 14px 34px -12px #03122d80, 0 3px 8px -2px #03122d40;
  transition: transform .4s var(--spring), box-shadow .3s, background-color .3s;
}
/* Světlo na hraně */
.lg::before {
  content: ""; position: absolute; inset: 0; z-index: 4; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(170deg, #ffffffe6, #ffffff33 38%, #ffffff14 62%, #ffffff99);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Odlesk pod prstem nebo kurzorem */
.lg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(6.5rem circle at var(--px, 50%) var(--py, 50%), #ffffff73, transparent 72%);
  transition: opacity .35s;
}
.lg:hover::after, .lg:active::after { opacity: 1; }
.lg > :where(*) { position: relative; z-index: 3; }
.lg-regular { --lg-fill: #ffffff8a; --lg-blur: 9px; --lg-lum: 1.1; }
/* Malé plovoucí prvky se přizpůsobí tomu, co je pod nimi: nad tmavou fotkou ztmavnou a text zesvětlá. */
.lg-adapt[data-over="dark"] { --lg-fill: #091c38ab; --lg-lum: .8; color: #fff; }
.lg-clear { --lg-fill: #091c38ab; --lg-blur: 4px; --lg-lum: .8; color: #fff; }
.lg-tint { --lg-fill: #104d9eee; --lg-blur: 8px; --lg-lum: 1; color: #fff; }
a.lg:active, .lg-fill:active { transform: scale(.955); }
@media (hover: hover) {
  a.lg:hover { transform: scale(1.035); }
  a.lg:active { transform: scale(.97); }
}
/* Plné tlačítko uvnitř skla: sklo na sklo se nevrství */
.lg-fill {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 3rem; padding: 0 1.5rem;
  border-radius: 1.5rem; background: linear-gradient(#2264bf, #134a9f); color: #fff;
  font: 700 .98rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 #ffffff73, inset 0 -1px 0 #0b3a8a, 0 6px 16px -6px #061e50b3;
  transition: transform .4s var(--spring), filter .3s;
}
@media (hover: hover) { .lg-fill:hover { transform: scale(1.04); filter: brightness(1.08); } }
.lg-chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.15rem;
  font: 700 .9rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
}
.lg-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--blue);
  font-size: .95rem; font-weight: 700; text-underline-offset: .28em; text-decoration-color: #1a5fc466;
  transition: text-decoration-color .2s;
}
.lg-link:hover { text-decoration-color: currentColor; }

/* ---------- Horní plovoucí lišta ---------- */
.lg-edge {
  position: fixed; z-index: 35; inset: 0 0 auto; height: 6.5rem; pointer-events: none; opacity: 0;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
  transition: opacity .4s;
}
.is-scrolled .lg-edge { opacity: 1; }
.lg-top {
  position: fixed; z-index: 40; top: clamp(.6rem, 1.3vw, 1rem); left: 50%; translate: -50% 0;
  width: min(calc(100% - 2 * var(--side)), 78rem);
  display: flex; align-items: center; gap: .5rem; pointer-events: none;
}
.lg-top > * { pointer-events: auto; }
.lg-brand {
  flex-shrink: 0; display: flex; align-items: center; height: 3.75rem; margin-right: auto; padding: 0 1.2rem 0 1rem;
  border-radius: 1.45rem; animation: lg-in .9s .05s var(--spring) both;
}
.lg-brand img { display: block; width: auto; height: 2.9rem; transition: opacity .35s; }
.lg-brand img + img { position: absolute; opacity: 0; }
.lg-brand[data-over="dark"] img { opacity: 0; }
.lg-brand[data-over="dark"] img + img { opacity: 1; }
.lg-nav { display: flex; align-items: center; height: 3.25rem; padding: .3rem; animation: lg-in .9s .12s var(--spring) both; }
.lg-nav a {
  display: inline-flex; align-items: center; height: 100%; padding: 0 1.05rem; border-radius: 999px;
  color: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .3s;
}
.lg-nav[data-over="dark"] .lg-nav-pill { background: #ffffff3d; box-shadow: inset 0 1px 0 #ffffff80, 0 3px 10px -3px #03122d59; }
.lg-nav .lg-nav-pill {
  position: absolute; z-index: 2; left: 0; top: .3rem; bottom: .3rem; width: 0; border-radius: 999px; opacity: 0;
  background: #ffffffc7; box-shadow: inset 0 1px 0 #fff, 0 3px 10px -3px #03122d59; pointer-events: none;
  transition: transform .5s var(--spring), width .5s var(--spring), opacity .25s, background-color .3s;
}
.lg-cta {
  display: inline-flex; align-items: center; height: 3.25rem; padding: 0 1.5rem;
  font: 700 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  animation: lg-in .9s .19s var(--spring) both;
}
.lg-top .bm-menu {
  display: none; position: absolute; top: 0; right: 0; width: 3.25rem; height: 3.25rem; overflow: hidden;
  border-radius: 1.625rem; animation: lg-in .9s .12s var(--spring) both;
  transition: width .5s var(--spring), height .5s var(--spring), border-radius .5s var(--ease);
}
.lg-top .bm-menu[open] { width: 14.5rem; height: 17.3rem; --lg-fill: #ffffffd1; --lg-blur: 22px; --lg-lum: 1.1; color: var(--ink); }
.bm-menu summary {
  position: absolute; z-index: 5; top: 0; right: 0; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  cursor: pointer; list-style: none; border-radius: 50%;
}
.bm-menu summary::-webkit-details-marker { display: none; }
.bm-menu summary i { position: relative; width: 1.15rem; height: .5rem; }
.bm-menu summary i::before, .bm-menu summary i::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--spring), top .3s var(--ease);
}
.bm-menu summary i::before { top: 0; }
.bm-menu summary i::after { top: calc(100% - 2px); }
.bm-menu[open] summary i::before { top: calc(50% - 1px); transform: rotate(45deg); }
.bm-menu[open] summary i::after { top: calc(50% - 1px); transform: rotate(-45deg); }
.bm-menu nav { position: absolute; top: 3.05rem; right: 0; display: grid; width: 14.5rem; padding: 0 .45rem .45rem; }
.bm-menu nav a {
  display: flex; align-items: center; height: 2.75rem; padding: 0 .95rem; border-radius: 1.1rem;
  color: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  animation: lg-rise .45s var(--ease) both;
}
.bm-menu nav a:nth-child(2) { animation-delay: .04s; }
.bm-menu nav a:nth-child(3) { animation-delay: .08s; }
.bm-menu nav a:nth-child(4) { animation-delay: .12s; }
.bm-menu nav a:nth-child(5) { animation-delay: .16s; }
.bm-menu nav a:active { background: #ffffffb3; }
@media (hover: hover) { .bm-menu nav a:hover { background: #ffffffb3; } }

/* ---------- Úvod: fotka je obsah, sklo jen ovládání ---------- */
.lg-hero {
  position: relative; isolation: isolate; overflow: clip; display: grid; align-items: end;
  min-height: max(36rem, 100svh); padding: 7rem var(--side) clamp(1.6rem, 4.5vw, 4rem); color: #fff;
}
.lg-hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--deep); }
.lg-hero-media img { position: absolute; display: block; max-width: none; object-fit: cover; }
.lg-hero-ext { inset: -8%; width: 116%; height: 116%; filter: blur(38px) saturate(1.15) brightness(.85); }
.lg-hero-photo {
  inset: 0 0 0 20%; width: 80%; height: 100%; object-position: 40% 34%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%);
  animation: lg-defrost 1.6s var(--ease) both;
}
.lg-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #081a38d1, #081a38b0 34%, #081a3800 68%),
    linear-gradient(0deg, #081a3899, #081a3800 42%);
}
.lg-hero-copy { width: min(100%, 76rem); margin-inline: auto; }
.lg-hero-copy > * { animation: lg-rise .8s var(--ease) both; }
.lg-hero-copy > :nth-child(1) { animation-delay: .25s; }
.lg-hero-copy > :nth-child(2) { animation-delay: .32s; }
.lg-hero-copy > :nth-child(3) { animation-delay: .39s; }
.lg-hero-copy > .partners { animation: none; }
.lg-hero-copy > :nth-child(5) { animation-delay: .62s; }
.bm-event { margin-bottom: .9rem; font-size: .95rem; font-weight: 700; color: #dbe9f8; }
.lg-hero h1 {
  font: 700 clamp(3.4rem, 6.6vw, 6.6rem)/.98 var(--sans); letter-spacing: -.06em; text-wrap: balance;
  text-shadow: 0 2px 30px #04122a66;
}
.bm-deck { margin-top: 1.3rem; max-width: 36ch; color: #eef5fc; font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.5; text-wrap: pretty; text-shadow: 0 1px 14px #04122a80; }
.lg-dock {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.4rem;
  width: fit-content; max-width: 100%; margin-top: 1.6rem; padding: .42rem .42rem .42rem 1.4rem; border-radius: 1.92rem;
}
.lg-dock-when { display: grid; gap: .1rem; line-height: 1.25; }
.lg-dock-when p { font-size: 1rem; }
.lg-dock-when strong { margin-right: .35rem; font-size: 1.2rem; letter-spacing: -.03em; }
.lg-dock-when span { white-space: nowrap; }
.lg-dock-when small { font-size: .82rem; color: #e3eefa; }
html[data-season="past"] .lg-dock-when strong { display: none; }
.lg-hero-more { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin-top: .8rem; }
.lg-note { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 700; color: #eef5fc; }
.lg-note::before {
  content: ""; width: .5rem; height: .85rem; margin: -.2rem .1rem 0 .2rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(40deg);
}

/* ---------- Obsahová vrstva ---------- */
.lg-sec { padding-block: clamp(3.4rem, 8vw, 7rem); scroll-margin-top: 1rem; }
.lg-in { width: min(calc(100% - 2 * var(--side)), 76rem); margin-inline: auto; }
.lg-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.6rem, 6vw, 6rem); align-items: start; }
main h2, .lg-end h2 { font: 700 clamp(2.1rem, 4.2vw, 3.7rem)/1.04 var(--sans); letter-spacing: -.05em; text-wrap: balance; }
main h3 { font: 700 clamp(1.2rem, 1.7vw, 1.5rem)/1.2 var(--sans); letter-spacing: -.03em; }
main p { line-height: 1.6; }
.lg-kicker { margin-bottom: .7rem; font-size: .92rem; font-weight: 700; color: var(--blue); }

/* Příběh */
.lg-story { background: var(--deep); color: #fff; }
.lg-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 5rem); align-items: center; }
.lg-screen {
  display: grid; justify-items: center; gap: 1rem; padding: clamp(1rem, 3vw, 2.1rem);
  border: 1px solid #a9bed52e; border-radius: 2rem;
  background: radial-gradient(ellipse at 45% 16%, #394456, #212d41 52%, #14233b 86%);
}
.lg-screen-frame {
  display: block; width: min(100%, 17rem); height: auto; border-radius: .85rem;
  border: 1px solid #efddbb4d; filter: brightness(1.27);
}
.lg-screen figcaption { justify-self: start; color: #e1eafa; font-size: .86rem; }
.lg-story .lg-kicker { color: #8fbdf5; }
.lg-story h2 { margin-bottom: 1.2rem; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.lg-story-copy p { max-width: 44ch; color: #dbe7f4; }
.lg-story-copy p + p { margin-top: .8rem; }
.lg-story-copy .lg-bridge { color: #fff; font-weight: 700; }
.lg-story .lg-link { margin-top: .6rem; color: #a9cdf9; text-decoration-color: #a9cdf966; }

/* Další lidé */
.lg-people h2 { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.lg-reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; width: min(calc(100% - 2 * var(--side)), 76rem); margin-inline: auto; }
.lg-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-height: clamp(27rem, 40vw, 33rem); padding: 1.3rem; border-radius: 1.9rem; color: #fff; background: var(--navy);
}
.lg-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.lg-card > img.crop-swimflip { object-position: 47% 50%; }
.lg-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #06142d00 30%, #06142d99 58%, #06142deb); }
@media (hover: hover) { .lg-card:hover > img { transform: scale(1.05); } }
.lg-card h3 { margin-bottom: .45rem; font-size: 1.5rem; }
.lg-card p { margin-bottom: 1rem; color: #e8f0f9; font-size: .95rem; line-height: 1.5; }
.lg-card-plain { justify-content: space-between; background: linear-gradient(160deg, #1d5fbf, #143d66 70%); }
.lg-card-plain::after { display: none; }
.lg-card-plain h3 { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.05em; line-height: 1.02; }
.lg-card-plain p { margin: auto 0 .3rem; color: #fff; font-size: 1.05rem; }
.lg-card-plain .lg-link { color: #fff; text-decoration-color: #ffffff80; }

/* Obory */
.lg-fields { padding-top: 0; }
.field-picker { min-inline-size: 0; margin-block: 0; padding: 0; border: 0; }
.field-picker > input { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.lg-band {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem 2rem;
  min-height: clamp(21rem, 40vw, 29rem); padding: clamp(1.2rem, 3vw, 2.4rem); border-radius: 2.2rem; color: #fff; background: var(--navy);
}
.lg-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.lg-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #06142d1a 20%, #06142dc7); }
.lg-band .lg-kicker { color: #dbe9f8; }
.lg-seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 0 1 29rem; height: 3.6rem; padding: .32rem;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.lg-seg label {
  display: grid; place-items: center; padding: 0 .3rem; color: #fff; font-size: .95rem; font-weight: 700; text-align: center;
  cursor: pointer; transition: color .3s;
}
.lg-seg .lg-seg-thumb {
  position: absolute; z-index: 2; top: .32rem; bottom: .32rem; left: .32rem; width: calc((100% - .64rem) / 3); border-radius: 999px;
  background: #ffffffeb; box-shadow: inset 0 1px 0 #fff, 0 4px 14px -4px #03122d80;
  transition: transform .55s var(--spring), background-color .3s, box-shadow .3s;
}
#pick-lyc:checked ~ .lg-band .lg-seg-thumb { transform: translateX(100%); }
#pick-pr:checked ~ .lg-band .lg-seg-thumb { transform: translateX(200%); }
/* Při uchopení se jezdec zvedne a zprůhlední jako čočka */
#obory .lg-band .lg-seg.is-held .lg-seg-thumb {
  transform: translateX(var(--tx, 0)) scale(1.07, 1.2); background: #ffffff5c;
  -webkit-backdrop-filter: blur(2px) saturate(1.9) brightness(1.15); backdrop-filter: blur(2px) saturate(1.9) brightness(1.15);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #ffffff8c, inset 0 0 12px #ffffff73, 0 12px 26px -8px #03122dbf;
  transition: transform .16s ease-out, background-color .2s, box-shadow .2s;
}
#pick-gym:checked ~ .lg-band label[for="pick-gym"],
#pick-lyc:checked ~ .lg-band label[for="pick-lyc"],
#pick-pr:checked ~ .lg-band label[for="pick-pr"] { color: var(--ink); }
.lg-seg.is-held label { color: #fff !important; }
#pick-gym:focus-visible ~ .lg-band label[for="pick-gym"],
#pick-lyc:focus-visible ~ .lg-band label[for="pick-lyc"],
#pick-pr:focus-visible ~ .lg-band label[for="pick-pr"] { outline: 3px solid var(--navy); outline-offset: -5px; border-radius: 999px; }
.field-content { padding: clamp(1.6rem, 3.4vw, 3rem) clamp(.2rem, 2vw, 2.4rem) 0; }
.field-content article { display: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.4rem, 6vw, 6rem); align-items: end; }
#pick-gym:checked ~ .field-content #info-gym,
#pick-lyc:checked ~ .field-content #info-lyc,
#pick-pr:checked ~ .field-content #info-pr { display: grid; animation: lg-swap .5s var(--ease); }
.field-code { margin-bottom: .5rem; color: var(--blue); font-size: .85rem; font-weight: 700; }
.field-content h3 { margin-bottom: .8rem; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.05em; line-height: 1.04; }
.field-content article > div > p:not(.field-code) { max-width: 44ch; font-size: 1.08rem; color: var(--ink-2); }
.field-content .lg-link { margin-top: .4rem; }
.field-next { gap: .45rem; margin: .75rem clamp(.2rem, 2vw, 2.4rem) 0; white-space: normal; }
.field-facts > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1.5rem; padding: .95rem 0; border-top: 1px solid #0f2b4d33; }
.field-facts dt { color: var(--ink-2); font-size: .92rem; }
.field-facts dd { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.field-facts small { font-size: .85rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }

@media screen and (min-width: 1001px) {
  .lg-fields { padding-bottom: clamp(1.8rem, 4vw, 3.5rem); }
  .field-content { display: grid; }
  .field-content article {
    display: grid;
    grid-area: 1 / 1;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: start;
    gap: clamp(1.4rem, 4vw, 4rem);
    visibility: hidden;
  }
  #pick-gym:checked ~ .field-content #info-gym,
  #pick-lyc:checked ~ .field-content #info-lyc,
  #pick-pr:checked ~ .field-content #info-pr { visibility: visible; }
  .field-content article > div > p:not(.field-code) { max-width: 52ch; }
}

/* Termíny: text leží na fotce, sklo mají jen tlačítka */
.lg-visit, .lg-end { position: relative; isolation: isolate; overflow: clip; color: #fff; }
.lg-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Modré tónování nechává čitelnou fasádu i průsvitné termíny. */
.lg-visit .lg-bg {
  height: min(100%, 57rem); object-position: 55% 45%; filter: grayscale(1) brightness(.64);
  mask-image: linear-gradient(#000 68%, transparent);
}
.lg-visit::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #0b2b4fbb, #15458191 32%, #0c294dbb 78%, #0c294d);
}
.lg-visit .lg-kicker { color: #a9cdf9; }
.visit-intro > p:not(.lg-kicker) { max-width: 40ch; margin-top: 1.1rem; color: #e6f0fa; }
.directions { max-width: 27rem; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid #ffffff4d; }
.directions h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.directions p { color: #dbe7f4; font-size: .95rem; }
.directions p + p { margin-top: .5rem; }
.directions a, .vd-info a { color: #fff; font-weight: 700; white-space: nowrap; }
.remind-dates { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.tally-panel { margin-top: 1rem; padding: clamp(.9rem, 3vw, 1.4rem); border-radius: 1.5rem; background: #fff; color: #143d66; color-scheme: light; }
.tally-frame { display: block; width: 100%; border: 0; min-width: 0; }
.tally-loading { font-size: .9rem; padding-bottom: .7rem; }
.tally-selected { font-weight: 700; }
.remind-note a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.visit-dates { display: grid; gap: .5rem; padding: 0; list-style: none; }
.visit-dates label {
  position: relative; display: grid; grid-template-columns: minmax(6rem, .5fr) minmax(0, 1.4fr) auto; align-items: center; gap: .3rem 1.5rem;
  padding: 1.15rem 1.2rem 1.15rem 1.6rem; border-radius: 1.5rem; border: 1px solid #ffffff55; cursor: pointer;
  background: #071a3c45;
  transition: background-color .3s, border-color .3s, transform .4s var(--spring);
}
.visit-dates label::before { content: ""; position: absolute; left: .7rem; top: 1.15rem; bottom: 1.15rem; width: 4px; border-radius: 4px; background: #ffffff40; transition: background-color .3s, box-shadow .3s; }
.visit-dates input { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.visit-dates label:has(input:checked) { background: #14436c80; border-color: #ffffff99; box-shadow: inset 0 1px 0 #ffffff38; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.visit-dates label:has(input:checked)::before { background: var(--accent); box-shadow: 0 0 18px #d32939; }
.visit-dates label:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.visit-dates label:active { transform: scale(.985); }
.visit-dates li[data-status="past"] label { opacity: .5; pointer-events: none; }
.visit-dates time { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.visit-dates time strong { display: block; font-size: clamp(2.6rem, 4.6vw, 4rem); letter-spacing: -.07em; line-height: .92; }
.visit-dates time span { display: block; font-size: .8rem; font-weight: 400; color: #cfdded; }
.vd-info { display: grid; gap: .15rem; }
.vd-info b { font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -.03em; line-height: 1.2; }
.vd-info span { color: #dbe7f4; font-size: .95rem; }
.vd-mark { position: relative; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid #ffffff99; transition: background-color .3s, border-color .3s, transform .45s var(--spring); }
.vd-mark::after { content: ""; position: absolute; left: .52rem; top: .26rem; width: .4rem; height: .72rem; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg) scale(0); transition: transform .4s var(--spring); }
.visit-dates input:checked ~ .vd-mark { background: #fff; border-color: #fff; transform: scale(1.08); }
.visit-dates input:checked ~ .vd-mark::after { transform: rotate(42deg) scale(1); }
.visit-dates .date-status {
  display: inline-block; margin: 0 0 .35rem .2rem; padding: .2rem .65rem; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: .76rem; font-weight: 700;
}
.visit-dates li[data-status="past"] .date-status { background: #ffffff38; }

/* Připomínka: kontakt místo kalendáře, potom Instagram */
.remind-how, .remind-done { margin-top: 1.7rem; }
html[data-season="past"] .remind-how, html[data-season="past"] .remind-done { display: none; }
.remind h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.remind-how > p:not(.remind-error, .remind-note), .remind-done p { max-width: 46ch; margin-top: .4rem; color: #e6f0fa; font-size: .98rem; }
.remind-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.remind-switch { display: inline-grid; grid-auto-flow: column; padding: .25rem; border-radius: 999px; background: #ffffff1f; border: 1px solid #ffffff4d; }
.remind-switch label { cursor: pointer; }
.remind-switch input { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.remind-switch span {
  display: grid; place-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px;
  color: #fff; font-size: .92rem; font-weight: 700; transition: background-color .3s, color .3s, box-shadow .3s;
}
.remind-switch input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -4px #03122d80; }
.remind-switch input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.remind-field {
  display: flex; flex: 1 1 19rem; gap: .35rem; padding: .35rem; border-radius: 1.85rem; background: #fffffff2;
  box-shadow: 0 14px 32px -14px #03122dcc; transition: box-shadow .25s;
}
.remind-field:focus-within { box-shadow: 0 0 0 3px #8dbdff, 0 14px 32px -14px #03122dcc; }
.remind-field input {
  flex: 1; min-width: 0; min-height: 3rem; padding: 0 1.05rem; border: 0; border-radius: 1.5rem; outline: 0; box-shadow: none;
  background: none; color: var(--ink); font: 400 1.06rem/1.2 var(--sans);
}
.remind-field input::placeholder { color: #5a6f86; }
.remind-field button { border: 0; cursor: pointer; }
.remind-field input[aria-invalid="true"] { color: #a11426; }
.remind-error { margin-top: .7rem; color: #ffd9de; font-size: .95rem; font-weight: 700; }
.remind-note { margin-top: .7rem; max-width: 52ch; color: #cfdded; font-size: .84rem; line-height: 1.5; }
.remind-done { padding-left: 1.25rem; border-left: 4px solid #7df0b0; outline: 0; animation: lg-rise .5s var(--ease); }
.remind-edit {
  min-height: 44px; margin-top: .2rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: #fff; font: 700 .92rem var(--sans); text-decoration: underline; text-underline-offset: .28em; text-decoration-color: #ffffff80;
}
.remind-ig { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid #ffffff33; }
.remind-ig p { color: #dbe7f4; font-size: .95rem; }
.remind.is-done .remind-ig a { --lg-fill: #1a5fc4d9; --lg-lum: 1; }

/* Rodiče a přihláška */
.lg-family-head p:not(.lg-kicker) { max-width: 40ch; margin-top: 1.1rem; color: var(--ink-2); }
.lg-family h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.1; }
.lg-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.4rem, 3vw, 3rem); }
.lg-points article { padding: 1.3rem 0 1.5rem; border-top: 2px solid var(--ink); }
.lg-points h3 { margin-bottom: .6rem; }
.lg-points p { color: var(--ink-2); font-size: .97rem; }
.fees { margin-bottom: .7rem; }
.fees > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid #0f2b4d26; }
.fees dd { font-weight: 700; white-space: nowrap; }
.lg-ask { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid #0f2b4d33; font-weight: 700; }
.lg-ask a { color: var(--blue); white-space: nowrap; }
.lg-admit { padding-top: 0; }
.admit-list { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 1.7rem 0 0; list-style: none; }
.admit-list::before { content: ""; position: absolute; top: .4rem; left: .45rem; right: 0; height: 2px; background: linear-gradient(90deg, var(--navy) 55%, #143d6600); }
.admit-list li { position: relative; }
.admit-list li::before { content: ""; position: absolute; top: -1.7rem; left: 0; width: .9rem; height: .9rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--navy); }
.admit-list p { margin-top: .4rem; color: var(--ink-2); font-size: .97rem; }
.lg-admit .lg-link { margin-top: .8rem; }

/* Závěr a zápatí */
.end-invite.lg-end { display: grid; align-items: end; min-height: clamp(30rem, 66vw, 46rem); padding: clamp(2rem, 6vw, 5rem) 0; background: var(--deep); }
.lg-end .lg-bg { object-position: 50% 8%; }
.lg-end::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #081a3826, #081a3833 50%, #081a38e6 86%); }
.lg-end h2 { font-size: clamp(2.8rem, 6.4vw, 6rem); letter-spacing: -.06em; text-shadow: 0 2px 30px #04122a80; }
.page-footer.lg-foot { padding-block: 1.6rem; background: var(--deep); color: #dbe7f4; }
.lg-foot .lg-in, .lg-foot .lg-in > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.4rem; }
.lg-foot img { width: 6.5rem; height: auto; }
.lg-foot p { font-size: .86rem; line-height: 1.5; }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.lg-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: .9rem; font-weight: 700; }

/* ---------- Pohyb ---------- */
@keyframes lg-defrost { from { filter: blur(24px) brightness(1.15) saturate(.7); transform: scale(1.04); } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes lg-in { from { opacity: 0; transform: scale(.86); filter: blur(6px); } }
@keyframes lg-swap { from { opacity: 0; transform: translateY(10px); } }
@keyframes lg-par { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lg-par { animation: lg-par linear both; animation-timeline: view(); }
  }
}

@media (min-width: 1100px) {
  .lg-top { display: grid; grid-template-columns: 1fr auto 1fr; }
  .lg-brand { justify-self: start; }
  .lg-cta { justify-self: end; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .lg-nav a { padding: 0 .7rem; font-size: .85rem; }
  .lg-cta { padding: 0 1.1rem; }
  .lg-reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 4.8rem; }
  .lg-top { top: .7rem; width: calc(100% - 1.4rem); }
  .lg-brand { height: 3.25rem; padding: 0 1rem 0 .8rem; border-radius: 1.3rem; }
  .lg-brand img { height: 2.5rem; }
  .lg-nav, .lg-cta { display: none; }
  .lg-top .bm-menu { display: block; }
  .lg-edge { height: 5.5rem; }
  .lg-hero { padding: 5.5rem .9rem 1.1rem; }
  .lg-hero-photo {
    inset: 0 0 auto; width: 100%; height: 62%; object-position: 46% 30%;
    -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
  }
  .lg-hero-media::after { background: linear-gradient(180deg, #081a3800 26%, #081a3880 50%, #081a38d9 78%); }
  .bm-event { margin-bottom: .6rem; font-size: .85rem; }
  .lg-hero h1 { font-size: clamp(2.8rem, 13.2vw, 4rem); }
  .bm-deck { margin-top: .9rem; max-width: none; font-size: 1rem; line-height: 1.45; }
  .lg-dock { width: 100%; margin-top: 1.1rem; padding-left: 1.2rem; }
  .lg-dock-when strong { font-size: 1.12rem; }
  .lg-dock .lg-fill { padding: 0 1.25rem; }
  .lg-hero-more { margin-top: .65rem; }
  .lg-split, .lg-story-grid { grid-template-columns: minmax(0, 1fr); }
  .lg-screen { border-radius: 1.6rem; }
  .lg-reel {
    display: flex; width: auto; margin: 0; padding: .2rem var(--side) 1.2rem; gap: .75rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .lg-reel::-webkit-scrollbar { display: none; }
  .lg-card { flex: 0 0 min(78vw, 20rem); min-height: 28rem; scroll-snap-align: start; }
  .lg-band { min-height: 23rem; border-radius: 1.75rem; padding: 1rem .7rem .7rem; }
  .lg-band header { padding-inline: .5rem; }
  .lg-seg { flex-basis: 100%; height: 3.4rem; }
  .lg-seg label { font-size: .88rem; }
  .field-content article { grid-template-columns: minmax(0, 1fr); }
  .field-content { padding-inline: .5rem; }
  .directions { max-width: none; }
  .visit-dates label { grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: .3rem .9rem; padding: 1rem .9rem 1rem 1.45rem; }
  .remind-field { flex-direction: column; flex-basis: 100%; border-radius: 1.6rem; }
  .remind-field .lg-fill { width: 100%; border-radius: 1.25rem; }
  .remind-field input { min-height: 3.1rem; }
  .lg-points, .admit-list { grid-template-columns: minmax(0, 1fr); }
  .admit-list { gap: 1.2rem; padding: 0 0 0 1.7rem; }
  .admit-list::before { top: .5rem; bottom: 2.4rem; left: .4rem; right: auto; width: 2px; height: auto; background: var(--navy); }
  .admit-list li::before { top: .35rem; left: -1.7rem; }
  .lg-end .lg-dock { width: 100%; }
  .lg-foot { padding-bottom: 5.5rem !important; }
  /* Spodní plovoucí lišta: při čtení dolů se zmenší, při návratu rozbalí */
  .mobile-bar.lg-bar:not([hidden]) {
    position: fixed; z-index: 30; inset: auto auto max(.7rem, env(safe-area-inset-bottom)) 50%; translate: -50% 0;
    display: flex; align-items: center; gap: 0; width: max-content; max-width: calc(100% - 1.4rem);
    padding: .38rem .38rem .38rem 1.25rem; border-radius: 1.9rem;
    background: var(--lg-fill); font-size: 1rem; animation: lg-bar .6s var(--spring);
    transition: padding .45s var(--spring), transform .4s var(--spring);
  }
  .lg-bar-label { display: grid; overflow: hidden; max-width: 11rem; margin-right: 1.4rem; line-height: 1.2; white-space: nowrap; transition: max-width .45s var(--ease), margin .45s var(--ease), opacity .3s; }
  .lg-bar-label small { font-size: .74rem; font-weight: 400; opacity: .82; }
  .lg-bar-label b { font-size: 1.02rem; letter-spacing: -.02em; }
  .mobile-bar.lg-bar .lg-fill { min-height: 2.85rem; padding: 0 1.3rem; font-size: .95rem; }
  .is-min .mobile-bar.lg-bar:not([hidden]) { padding-left: .38rem; }
  .is-min .lg-bar-label { max-width: 0; margin-right: 0; opacity: 0; }
}
@keyframes lg-bar { from { opacity: 0; transform: translateY(140%) scale(.8); } }
@media (max-width: 350px) {
  .lg-hero h1 { font-size: 2.55rem; }
  .bm-deck { font-size: .93rem; }
  .lg-dock { flex-wrap: nowrap; padding-left: 1.1rem; }
  .lg-dock-when p { display: grid; }
  .lg-hero .lg-dock-when small { display: none; }
  .lg-dock .lg-fill { padding: 0 1.1rem; font-size: .92rem; }
  .lg-seg label { font-size: .78rem; white-space: nowrap; }
  .lg-chip { padding: 0 .9rem; font-size: .84rem; }
  .lg-note { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .lg { background: #e6eff8; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .lg-clear { background: #0a2040; }
  .lg-tint { background: var(--blue); }
  .lg-edge { display: none; }
}
@media (prefers-contrast: more) {
  .lg-regular { --lg-fill: #fffffff2; }
  .lg-clear { --lg-fill: #061630e6; }
  .lg { box-shadow: 0 0 0 2px currentColor; }
}
@media print {
  .lg-top, .lg-edge, .mobile-bar { display: none !important; }
  .field-content article { display: grid; }
}

/* Stálý odkaz na návštěvu zůstává po ruce i při zavřeném menu. */
.lg-brand { height: 4.4rem; }
.lg-brand img { height: 3.7rem; }
.partners { margin: .8rem 0 1rem; font-weight: 700; }
.partners small { font-weight: 400; }
.lg-visit { background: var(--navy); }
.lg-visit .lg-split { grid-template-areas: "intro form" "address form"; grid-template-rows: auto 1fr; row-gap: 1.5rem; }
.visit-intro { grid-area: intro; }
.visit-address { grid-area: address; }
.remind { grid-area: form; }
@media (max-width: 1000px) {
  .lg-visit .lg-split { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "address"; grid-template-rows: auto; }
}
@media (max-width: 760px) {
  .lg-visit .lg-bg {
    height: min(100%, 37rem);
    object-position: 50% 45%;
  }
}
@media (max-width: 760px) {
  .lg-brand { height: 3.8rem; padding-inline: .6rem; }
  .lg-brand img { height: 3.2rem; }
  .lg-top .bm-nav-visit { display: inline-flex; padding-inline: .75rem; font-size: .82rem; white-space: nowrap; }
}

.dates-short { display: none; }
@media (max-width: 760px) {
  .dates-long { display: none; }
  .dates-short { display: inline; }
  .lg-top .bm-nav-visit { margin-right: 3.6rem; }
}

/* Přechod na kratší termíny ještě před tím, než by se zmenšilo logo. */
@media (min-width: 761px) and (max-width: 900px) {
  .dates-long { display: none; }
  .dates-short { display: inline; }
}
@media (max-width: 760px) {
  html { scroll-padding-bottom: 5rem; }
  .lg-band { align-content: end; }
  .lg-band header { flex-basis: 100%; }
  .lg-hero-media::after { background: linear-gradient(180deg, transparent 16%, #081a38a8 44%, #081a38eb 78%); }
}
.lg-nav a { min-height: 44px; }
.lg-top .bm-menu[open] { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.directions a { white-space: normal; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .lg { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .lg-regular { background: #f4f8fc; color: #112d48; }
  .lg-adapt[data-over="dark"], .lg-clear { background: #102a48; color: white; }
  .lg-tint { background: #174f97; color: white; }
  .lg-top .bm-menu[open] { background: #f4f8fc; color: #112d48; }
  .lg::after, .lg-edge { display: none; }
}
@media (forced-colors: active) {
  .lg, .lg-fill { border: 1px solid ButtonText; backdrop-filter: none !important; }
  .lg-brand { forced-color-adjust: none; background: white; }
  .lg-brand img:first-child { opacity: 1; }
  .lg-brand img + img { opacity: 0; }
  .lg-seg-thumb, .vd-mark { border: 2px solid Highlight; }
  .remind-switch input:checked + span, .visit-dates label:has(input:checked) { outline: 2px solid Highlight; }
}

/* Jediná plocha navigace: sklo končí na obrysu lišty. */
.lg-top {
  display: flex; width: 100%; max-width: none; left: 0; top: 0; translate: none;
  padding: .4rem max(var(--side), env(safe-area-inset-right)) .4rem max(var(--side), env(safe-area-inset-left));
  background: #102946eb; color: white; border-bottom: 1px solid #ffffff38;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); pointer-events: auto;
}
.lg-top .lg-brand { height: 3rem; padding: 0; border-radius: 0; color: white; font: 700 1.65rem/1 var(--sans); letter-spacing: -.055em; text-decoration: none; }
.lg-top .lg-nav { position: relative; }
.lg-top .lg-nav-pill { background: #ffffff30; }
.lg-top .lg-nav a { position: relative; }
.lg-top .bm-nav-visit { background: #1b579d; color: white; border: 1px solid #ffffff60; border-radius: 999px; height: 2.8rem; }
.lg-top > * { animation: none; }
.lg-top .bm-menu { top: .4rem; right: var(--side); width: 2.8rem; height: 2.8rem; }
.lg-top .bm-menu summary { width: 2.8rem; height: 2.8rem; }
.lg-top .bm-menu[open] { background: #142f50; color: white; border-radius: 1.4rem; box-shadow: 0 6px 20px #07152755; }
.bm-menu nav a:hover { background: #ffffff26; }
.lg-band .field-photo { opacity: 0; transition: opacity .28s ease-out; }
#pick-gym:checked ~ .lg-band .photo-gym, #pick-lyc:checked ~ .lg-band .photo-lyc, #pick-pr:checked ~ .lg-band .photo-pr { opacity: 1; }
.lg-card > img.crop-swimflip { object-position: center top; }
.visit-address .directions { margin: 0; padding: 1.2rem; background: #1029459c; border: 1px solid #ffffff55; border-radius: 1rem; backdrop-filter: blur(14px); }
.remind-ig { justify-content: center; text-align: center; padding-block: 1.5rem; }
.remind-ig p { flex-basis: 100%; }
.remind-ig .lg-chip { width: min(100%,26rem); min-height: 3.3rem; justify-content: center; background: #eff5fc; color: #143d66; }
.end-invite.lg-end { padding-bottom: clamp(3.5rem,8vw,7rem); }
.lg-end .lg-dock { margin-top: 1.4rem; padding: .95rem 1rem .95rem 1.35rem; gap: .9rem; border-radius: 1.8rem; }
.lg-end .lg-dock-when { gap: .4rem; }
@media (max-width: 760px) {
 .lg-top .bm-nav-visit { margin-right: 3.15rem; }
 .lg-end .lg-dock-when p { display: grid; gap: .18rem; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
 .lg-top, .visit-address .directions { background: #102945; backdrop-filter: none; -webkit-backdrop-filter: none; }
 .lg-visit .lg-bg { display: none; }
 .visit-dates label:has(input:checked) { background: #315a80; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* One continuous tinted pane. The edge catches light even over a flat section. */
/* Controls stay inside the safe area. Only the painted pane extends above the viewport. */
.lg-top {
  --safe-top: env(safe-area-inset-top, 0px);
  inset-inline: 0; width: auto; max-width: none;
  padding-top: calc(.4rem + var(--safe-top));
  background: none; border: 0; isolation: isolate;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.lg-top::before {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  inset: -100vh 0 0; inset-block-start: -100lvh;
  background: linear-gradient(108deg, #426589dd, #10385ac9 50%, #314f6fc2);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid #ffffff50; box-shadow: 0 3px 16px #071f362b;
}
.lg-top .bm-menu {
  top: calc(.4rem + var(--safe-top));
  right: max(var(--side), env(safe-area-inset-right, 0px));
}
.lg-top .bm-nav-visit {
  background: linear-gradient(165deg,#ffffff39,#c3deff12);
  box-shadow: inset 0 1px 0 #ffffff50;
}
.lg-top .bm-menu:not([open]) { background: #ffffff14; border: 1px solid #ffffff48; }
.remind-how {
  padding: clamp(1.2rem,3vw,2rem);
  border-radius: 1.6rem; border: 1px solid #ffffff9c;
  background: linear-gradient(145deg, rgba(246,251,255,.91), rgba(212,234,255,.78) 72%, rgba(229,245,255,.86));
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  color: #143d66; box-shadow: inset 0 1px 0 white,0 12px 40px #08264428;
}
.remind-how h3 { font: 650 clamp(1.45rem,3vw,2rem)/1.2 var(--sans); letter-spacing:-.035em; color:#143d66; }
#pripominka .remind-how > .tally-selected { color:#385a79; margin:0 0 .45rem; font-size:.88rem; }
#pripominka .remind-how > .terms-line { margin:.6rem 0 0; color:#34516b; line-height:1.5; font-size:.92rem; }
.terms-line a, #remind-terms a { color:#123f70; text-decoration:underline; text-underline-offset:.15em; }
.tally-panel { background:transparent; padding:0; margin:.8rem 0 0; border-top:1px solid #98b3c9; border-radius:0; }
.remind-how > .remind-note {color:#3e5871;}
#remind-terms {box-sizing:border-box;width:min(29rem,calc(100% - 2rem));max-height:80dvh;overflow:auto;margin:auto;padding:clamp(1.35rem,4vw,2rem);border:1px solid white;border-radius:1.5rem;background:#f3f8fc;color:#163957;box-shadow:0 20px 80px #051e4240;}
#remind-terms::backdrop {background:#071f36a8;backdrop-filter:blur(5px);}
#remind-terms h2 {font:700 1.5rem/1.2 var(--sans);letter-spacing:-.035em;}
#remind-terms p {margin:.9rem 0;font:400 1rem/1.55 var(--sans);}
#remind-terms button {margin-top:.3rem;background:#143d66;color:white;border:0;border-radius:2rem;padding:.8rem 1.25rem;font:650 .95rem var(--sans);cursor:pointer;}
html:has(#remind-terms[open]) {overflow:hidden;}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
 .lg-top::before {background:#143d66;backdrop-filter:none;-webkit-backdrop-filter:none;}
 #remind-terms::backdrop {backdrop-filter:none;}
}

/* Tally leaves an 8px inset on either side of its embedded controls. */
.remind-how .tally-frame { width: calc(100% + 16px); max-width: none; margin-inline: -8px; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .remind-how { background: #edf5fb; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Native channel controls retain the approved touch targets on Tally Free. */
.remind-channels {border:0;margin:20px 0 0;padding:0;display:grid;gap:10px;min-width:0;}
.remind-channels legend {padding:0;margin-bottom:12px;font-weight:600;color:#173953;}
.remind-channel {position:relative;display:block;cursor:pointer;min-width:0;}
.remind-channel input {position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer;}
.remind-channel span {box-sizing:border-box;display:flex;align-items:center;width:100%;min-height:52px;padding:14px 20px;border-radius:26px;background:rgba(255,255,255,.42);color:#173953;box-shadow:inset 0 0 0 1px rgba(22,88,141,.16);font-size:16px;}
.remind-channel input:checked + span {background:rgba(22,88,141,.12);box-shadow:inset 0 0 0 2px #16588d;}
.remind-channel input:focus-visible + span {outline:3px solid #16588d;outline-offset:3px;}
#pripominka .remind-how > .channel-note {font-size:12px;line-height:1.5;color:#38536d;margin:10px 0 0;}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.remind-channel span{background:#f3f8fc;}.remind-channel input:checked + span{background:#d5e8f7;}}

/* Program dne otevřených dveří */
.visit-early { margin-top: clamp(1.3rem, 3vw, 2.2rem); }
.visit-early h3 { font-size: clamp(1.55rem, 2.8vw, 2.45rem); line-height: 1.08; }
.visit-early p { max-width: 38ch; margin-top: .65rem; color: #edf5ff; }
html[data-event]:not([data-event="2026-12-10"]) .visit-early { display: none; }
.remind-dates legend { margin-bottom: .6rem; color: #f1f7ff; font-weight: 700; }
.visit-program-panel {
  display: none; margin-top: .85rem; padding: clamp(1rem, 2.6vw, 1.55rem);
  border: 1px solid #ffffff5c; border-radius: 1.4rem; background: #0b2848de;
}
.remind:has(input[value="2026-12-10"]:checked) [data-program="dec"],
.remind:has(input[value="2027-01-06"]:checked) [data-program="jan"],
.remind:has(input[value="2027-02-03"]:checked) [data-program="feb"] { display: block; }
.visit-program-panel h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.visit-program-panel p { margin-top: .65rem; color: #e3eefb; font-size: .95rem; }
.visit-program-panel > a:not(.visit-plan-link) { display: inline-block; margin-top: .9rem; color: #cbe3ff; text-underline-offset: .18em; }
.visit-plan-link { min-height: 3.1rem; margin-top: .9rem; gap: .65rem; }
.visit-program-panel .visit-plan-note { color: #c6daf0; font-size: .86rem; }
.visit-reminder .remind-how, .visit-reminder .remind-done { margin-top: .9rem; }
html[data-season="past"] .visit-reminder { display: none; }
.visit-next { margin: .75rem 0 0; }
.visit-next a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: #eef6ff; font-weight: 700; }
.admit-start { max-width: 38ch; margin-top: .85rem; color: var(--ink-2); }
.admit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .95rem; margin-top: 1.1rem; }
.admit-actions .lg-fill { gap: .5rem; }
.lg-admit .admit-actions .lg-link { margin-top: 0; }
.priority-demo { position: relative; min-inline-size: 0; padding: 0; border: 0; }
.priority-option {
  position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden;
}
.priority-tabs { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: .35rem; }
.priority-tabs label {
  display: grid; place-items: center; min-height: 44px; padding: .35rem .4rem; text-align: center;
  border: 1px solid transparent; border-radius: .8rem; cursor: pointer; font-size: .86rem; font-weight: 700; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}

/* Přihláška a příklad pořadí oborů */
.priority-card {
  --lg-fill: radial-gradient(ellipse at 88% 10%, #fafcff 0%, transparent 55%),
    linear-gradient(138deg, #f2f8fdbd 18%, #d0e2f5c9 67%, #bdd9efd9);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1.4rem, 4vw, 3.5rem);
  margin-top: clamp(1.7rem, 4vw, 3.5rem); padding: clamp(1rem, 4.3vw, 3.4rem);
  border: 1px solid #afc8df; border-radius: 1.7rem;
  box-shadow: inset 0 1px 3px #fff, 0 18px 42px -24px #25558270;
}
.priority-card::after, .priority-result li::after { display: none; }
.priority-copy h3 { max-width: 20ch; font-size: clamp(1.65rem, 3.25vw, 2.85rem); line-height: 1.05; }
.priority-copy p { max-width: 49ch; margin-top: 1rem; color: var(--ink-2); }
.priority-demo { margin: 0; }
.priority-demo legend { margin-bottom: .6rem; font-weight: 700; }
.priority-tabs {
  --lg-fill: #a8c9e24d;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem;
  padding: .25rem; border: 1px solid #9db9d3; border-radius: 1.03rem;
  box-shadow: inset 0 1px 2px #ffffffd9, 0 3px 10px #163c641c;
}
.priority-tabs label { color: var(--navy); }
#priority-agys:checked ~ .priority-tabs label[for="priority-agys"],
#priority-other:checked ~ .priority-tabs label[for="priority-other"],
#priority-two:checked ~ .priority-tabs label[for="priority-two"] {
  background: linear-gradient(166deg, #2f5a83, #133857 76%); color: #fff;
  border-color: #1d4569; box-shadow: inset 0 1px 1px #ffffff82, 0 2px 5px #1d45694d;
}
#priority-agys:focus-visible ~ .priority-tabs label[for="priority-agys"],
#priority-other:focus-visible ~ .priority-tabs label[for="priority-other"],
#priority-two:focus-visible ~ .priority-tabs label[for="priority-two"] { outline: 2px solid var(--navy); outline-offset: 2px; }
.priority-result { display: none; }
#priority-agys:checked ~ .priority-result-agys,
#priority-other:checked ~ .priority-result-other,
#priority-two:checked ~ .priority-result-two { display: block; }
.priority-result ol { display: grid; gap: .45rem; list-style: none; margin-top: .7rem; padding: 0; }
.priority-result li {
  --lg-fill: linear-gradient(150deg, #fbfdffb5, #e8f1fb75);
  display: grid; grid-template-columns: 1.85rem minmax(0, 1fr); align-items: start; gap: .65rem; min-height: 3.5rem;
  padding: .55rem .7rem; border: 1px solid #a7bed49e; border-radius: .95rem;
  box-shadow: inset 0 1px 2px #ffffffc9, 0 4px 11px -5px #2d587d4d;
}
.priority-rank {
  display: grid; place-items: center; width: 1.85rem; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid #fff9; background: #ffffff61; font-size: .85rem; font-weight: 700;
}
.priority-result li b { display: block; line-height: 1.3; }
.priority-result li small { display: block; margin-top: .1rem; color: #304e6c; font-size: .8rem; }
.priority-result .priority-accepted {
  --lg-fill: linear-gradient(146deg, #f0fff2cf 4%, #b6e5c8c9 68%, #7cc5a1a6);
  border-color: #619b7d; color: #124329;
}
.priority-result .priority-missed {
  --lg-fill: linear-gradient(146deg, #fff3f4eb 4%, #f4c7cfd9 68%, #e991a5ae);
  border-color: #b87986; color: #68233a;
}
.priority-state { display: block; margin-top: .22rem; font-size: .83rem; }
.priority-result > p { margin-top: .65rem; line-height: 1.46; }
.priority-score { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .85rem; margin-bottom: .7rem; }
.priority-score strong { color: #154f87; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.055em; line-height: 1.1; }
.priority-score span { color: var(--ink-2); font-size: .82rem; line-height: 1.3; }
.priority-fallback { margin-top: .85rem; color: var(--ink-2); font-size: .81rem; }
.lg-admit .priority-source { margin-top: 0; }
@media (max-width: 760px) {
  .priority-card { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .priority-result .priority-accepted { background: #ccebd7; }
  .priority-result .priority-missed { background: #f6d7dc; }
}
@media (forced-colors: active) {
  .priority-tabs label { border-color: ButtonText; }
  #priority-agys:checked ~ .priority-tabs label[for="priority-agys"],
  #priority-other:checked ~ .priority-tabs label[for="priority-other"],
  #priority-two:checked ~ .priority-tabs label[for="priority-two"] { outline: 2px solid Highlight; }
}
