/* Shared by all three versions: fonts, preview chrome, font lab, prep page, dock, hours, map.
   Each version defines the tokens (--paper, --card, --ink, --gold, ...) and its own layout. */
@font-face { font-family: 'Melodrama'; src: url('../fonts/Melodrama-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-002F, U+0031-10FFFF; }
/* Melodrama's zero is slashed (reads as Ø in prices), so the 0 glyph alone comes from Boska */
@font-face { font-family: 'Melodrama'; src: url('../fonts/Boska-400.woff2') format('woff2'); font-weight: 400 500; font-display: swap; unicode-range: U+0030; }
@font-face { font-family: 'Melodrama'; src: url('../fonts/Melodrama-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-002F, U+0031-10FFFF; }
@font-face { font-family: 'Synonym'; src: url('../fonts/Synonym-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Synonym'; src: url('../fonts/Synonym-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Synonym'; src: url('../fonts/Synonym-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #111; color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* preview marker */
.todo { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1.2 var(--text); color: var(--todo); background: #FFF6E2; border: 1px dashed #C9A15A; border-radius: 6px; padding: 3px 8px; vertical-align: middle; letter-spacing: 0; }
.todo::before { content: '✎'; font-size: 12px; }
/* preview bar: version switch + font lab (preview only) */
.pbar { position: relative; z-index: 60; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center; padding: 7px 14px; font: 400 13px/1.3 system-ui, -apple-system, sans-serif; background: #1B1714; color: #EDE4D8; }
.pbar .todo { background: #FFF6E2; }
.pbar__v { display: flex; gap: 4px; }
.pbar__v a { color: #EDE4D8; text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); white-space: nowrap; }
.pbar__v a[aria-current] { background: #EDE4D8; color: #1B1714; }
.pbar__v b { font-weight: 700; }
.pbar__f { font: 600 13px/1 system-ui, sans-serif; background: #C9A96A; color: #1B1714; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.pbar__f[aria-expanded="true"] { background: #fff; }
@media (max-width: 700px) { .pbar__t, .pbar__todo { display: none; } .pbar__v a { padding: 5px 8px; } .pbar__v a span, .pbar__f span { display: none; } }
@media (max-width: 420px) { .pbar__v a { font-size: 12px; } }
.fontlab { position: fixed; z-index: 70; left: 12px; right: 12px; top: 54px; max-width: 420px; margin: 0 auto; background: #fff; color: #1B1714; border-radius: 14px; padding: 18px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); font: 400 14px/1.4 system-ui, -apple-system, sans-serif; display: grid; gap: 12px; }
.fontlab[hidden] { display: none; }
.fontlab label { display: grid; gap: 4px; font-weight: 600; font-size: 12px; letter-spacing: .02em; }
.fontlab select { font: 400 16px/1.2 system-ui, sans-serif; padding: 10px 12px; border-radius: 8px; border: 1px solid #ccc; background: #fafafa; }
.fontlab__reset { justify-self: start; background: none; border: 1px solid #1B1714; border-radius: 999px; padding: 8px 14px; cursor: pointer; font: 500 13px/1 system-ui, sans-serif; }
.fontlab__now { margin: 0; color: #6b6259; font-size: 12.5px; }


.hours { border-collapse: collapse; font-size: 15px; width: 100%; max-width: 240px; }
.hours th { text-align: left; font-weight: 500; width: 46px; padding: 3px 0; }
.hours td { padding: 3px 0; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); font-weight: 600; }
.hours tr.is-today td::after { content: ' · dnes'; font-weight: 400; }

.map { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--cream) radial-gradient(circle at 50% 50%, var(--stock) 0 2px, transparent 3px) 0 0 / 22px 22px; margin-top: 6px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__btn { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; font: 500 16px/1.2 var(--text); color: var(--ink); }
.map__btn svg { width: 28px; height: 28px; color: var(--gold); }
.map__btn small { color: var(--muted); font-size: 13px; font-weight: 400; }

.dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border-radius: 18px; padding: 5px; gap: 5px; box-shadow: 0 14px 34px -12px rgba(30, 24, 20, .55); transform: translateY(160%); transition: transform .35s ease; }
.dock.is-on { transform: none; }
.dock a { text-decoration: none; color: var(--card); padding: 9px 12px; border-radius: 14px; display: flex; flex-direction: column; line-height: 1.2; }
.dock a:first-child { background: var(--brown); }
.dock small { font-size: 12px; opacity: .8; }
.dock b { font-weight: 500; font-size: 15.5px; }
.dock--one { grid-template-columns: 1fr; left: auto; right: 12px; }
.dock--one a { padding: 10px 22px; }
@media (min-width: 960px) { .dock { display: none; } }

/* ================= PREP PAGE ================= */
.prep { max-width: 860px; margin: 0 auto; padding: 22px var(--pad) clamp(70px, 9vw, 120px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: clamp(22px, 4vw, 40px); }
.crumbs a { color: var(--ink); }
.prep__head h1 { font-size: clamp(44px, 9vw, 86px); line-height: .98; margin-bottom: 20px; }
.prep__lead { font-size: clamp(18px, 2.4vw, 21px); max-width: 32em; }
.prep__by { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0 30px; }
.prep__by svg { width: 32px; height: 32px; color: var(--brown); }
.prep__by b { color: var(--ink); font-weight: 600; }

.seg { border: 0; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font: 400 26px/1.1 var(--display); margin-bottom: 12px; float: left; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--stock-d); font-weight: 500; cursor: pointer; background: var(--card); }
.seg input:checked + span { background: var(--ink); color: var(--card); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.alert { display: grid; grid-template-columns: 1fr; gap: 14px; background: var(--stock); border-radius: var(--r); padding: 26px 22px; margin: 0 0 clamp(44px, 6vw, 64px); position: relative; }
.alert::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 9px; pointer-events: none; }
.alert__i { width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--gold); box-shadow: inset 0 2px 6px rgba(58, 47, 40, .2); }
.alert__i svg { width: 26px; height: 26px; }
.alert h2 { font-size: clamp(27px, 4.4vw, 38px); margin-bottom: 12px; }
.alert p { font-size: 17.5px; }
.alert__act { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.alert .btn { background: #1F6E4C; border-color: #1F6E4C; }
.alert .btn:hover { background: #185a3e; }
.alert .btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.alert .btn--ghost:hover { background: var(--ink); color: var(--card); }
@media (min-width: 720px) { .alert { grid-template-columns: 52px 1fr; gap: 22px; padding: 34px 34px; } }

.tl__top h2 { font-size: clamp(34px, 5.4vw, 50px); margin-bottom: 8px; }
.tl__top p { margin-bottom: 26px; }
.tl__list { list-style: none; margin: 0; padding: 0; position: relative; }
.tl__step { position: relative; padding: 0 0 26px 30px; }
.tl__step::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: -6px; width: 1px; background: var(--stock-d); }
.tl__step:last-child::before { display: none; }
.tl__step::after { content: ''; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--gold); }
.tl__when { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.tl__step ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl__step[hidden], .ck[hidden] { display: none; }
.ck { position: relative; }
.ck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck label { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 4px; background: var(--card); border-radius: 12px; padding: 14px 16px 14px 14px; cursor: pointer; border: 1px solid transparent; transition: background .2s, opacity .2s, border-color .2s; }
.ck__i { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.ck--no .ck__i { background: #F1E1DA; color: #93412A; }
.ck--do .ck__i { background: #E1EADF; color: #2F6B45; }
.ck__i svg { width: 18px; height: 18px; }
.ck__k { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.ck--no .ck__k { color: #93412A; }
.ck--do .ck__k { color: #2F6B45; }
.ck__t { font-size: 17px; line-height: 1.45; }
.ck__a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ck__a span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.ck input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.ck input:checked + label { background: transparent; border-color: var(--line); }
.ck input:checked + label .ck__t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--stock-d); }
.ck input:checked + label .ck__i { background: var(--ink); color: var(--card); }
.ck input:checked + label .ck__i svg { display: none; }
.ck input:checked + label .ck__i::after { content: ''; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.tl__bar { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); margin: 8px 0 0; background: var(--ink); color: var(--card); border-radius: 999px; padding: 10px 18px; display: flex; align-items: center; gap: 14px; font-size: 14.5px; z-index: 10; }
.tl__count { white-space: nowrap; }
.tl__track { flex: 1; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 4px; overflow: hidden; }
.tl__track i { display: block; height: 100%; width: 0; background: #C9A96A; transition: width .3s; }
@media (min-width: 960px) { .tl__bar { bottom: 20px; } }

.postpone, .storno, .ready, .faq { margin-top: clamp(48px, 7vw, 72px); }
.postpone h2, .storno h2, .ready h2, .faq h2 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 18px; }
.postpone ul { margin: 0 0 16px; padding: 0; list-style: none; }
.postpone li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; font-size: 17px; }
.postpone li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 10px; height: 1.5px; background: var(--gold); }
.storno { background: var(--card); border-radius: var(--r); padding: 26px 24px; border-left: 3px solid var(--gold); }
.storno h2 { font-size: clamp(28px, 4vw, 36px); }
.storno p { margin: 0; font-size: 17.5px; }
.ready { text-align: center; padding: clamp(36px, 6vw, 60px) 20px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ready p { max-width: 30em; margin: 0 auto 22px; color: var(--muted); }
.ready__act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 500 18px/1.4 var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font: 300 30px/1 var(--text); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; font-size: 17px; max-width: 40em; }
.prep__src { margin-top: 40px; }


.stars { color: var(--gold); letter-spacing: 1px; margin-right: 2px; }
/* no sideways scrolling on phones, whatever a grid decides */
html, body { overflow-x: clip; }
/* stand-in photo with its label */
.stand { position: relative; margin: 0; }
.stand > .todo { position: absolute; left: 12px; top: 12px; right: auto; max-width: calc(100% - 24px); }
/* author display rules must never beat the hidden attribute */
[hidden] { display: none !important; }
.menu-open .dock { display: none; }
