/* The indexable pages (parking/, punjaci/, guzve/; see site_pages.py):
   plain reading pages in the app's colours and type, no map. */

/* Font and colours: tokens.css. The reading pages are mostly small text:
   their faintest grey and the dark-mode button are a shade stronger, for
   4.5:1 contrast. */
:root { --ink-3: #646f7d; }
@media (prefers-color-scheme: dark) {
  :root { --ink-3: #8390a2; }
  .btn:not(.btn-ghost) { background: #2f63f0; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); text-underline-offset: 2px; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px;
  /* the bar spans the window while its content keeps the page width */
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--paper) 86%, transparent);
  clip-path: inset(0 -100vmax);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
  font-size: 19px;
  text-decoration: none;
}

.brand b { font-weight: inherit; }
.top-end { display: inline-flex; align-items: center; gap: 14px; }
.share-page { display: inline-flex; align-items: center; gap: 5px; padding: 6px 4px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.share-page svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) {
  .share-page span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.lang { color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.lang-short { display: none; }
@media (max-width: 420px) {
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .top-end { gap: 10px; }
}
.top .btn-small { white-space: nowrap; box-shadow: 0 6px 16px -10px var(--brand); }
.brand span { color: var(--ink-3); font-weight: 600; }
.brand img { border-radius: 7px; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; }

.crumbs { font-size: 13.5px; color: var(--ink-3); margin: 4px 0 18px; }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 2px; }

article {
  position: relative;
  overflow: hidden;
  /* a tinted head, like the app's cards: the kicker, title and lead sit on it */
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, var(--surface)) 0, var(--surface) 280px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 26px;
  box-shadow: var(--shadow-1);
}
article::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand); }

/* hub numbers: a few tiles under the lead */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 18px 0 4px; }
.stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stats b { display: block; font-size: 26px; font-weight: 800; font-stretch: 115%; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats div > span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.stats .is-live b { color: var(--good); }
.stats .is-live > span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--good); vertical-align: 1px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .stats .is-live > span::before { animation: none; } }

/* section chips: jump within a long hub */
.jump { display: flex; gap: 6px; margin: 16px -24px 0; padding: 0 24px 4px; overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.jump a:hover { background: var(--brand-soft); color: var(--brand); }
.jump b { margin-left: 5px; color: var(--ink-3); font-weight: 600; }
section[id] { scroll-margin-top: 72px; }

.kicker { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
h1 { margin: 0 0 14px; font-size: clamp(28px, 6.4vw, 40px); line-height: 1.1; font-stretch: 115%; letter-spacing: -0.02em; }
h2 { display: flex; align-items: center; gap: 10px; margin: 34px 0 12px; font-size: 20px; letter-spacing: -0.01em; }
h2::before { content: ""; flex-shrink: 0; width: 4px; height: 1.05em; border-radius: 2px; background: var(--brand); }
h2 small { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 650; }
h3 { margin: 22px 0 6px; font-size: 16.5px; }
p { margin: 0 0 10px; }
.lead { max-width: 62ch; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.muted, .note { color: var(--ink-2); font-size: 14.5px; }
.note { padding: 12px 14px; border-radius: 14px; border-left: 4px solid var(--brand); background: var(--surface-2); }

.live {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-2);
  border-left: 5px solid var(--lvl, var(--line));
}

.live-label { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.live-num { font-size: 44px; font-weight: 800; font-stretch: 120%; line-height: 1.05; color: var(--lvl, var(--ink)); font-variant-numeric: tabular-nums; }
.live-of { color: var(--ink-2); }
.live-when { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.lvl-good { --lvl: var(--good); }
.lvl-mid { --lvl: var(--mid); }
.lvl-low { --lvl: var(--low); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 18px -12px var(--brand);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }

.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }

.facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 0 18px; margin: 0 0 12px; }
.facts dt, .facts dd { padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dt { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.facts dd { margin: 0; }
.facts small { display: block; color: var(--ink-3); font-size: 13px; }

/* going out: a place's hours, scores, pros and cons; the best-of lists */
.hours { border-collapse: collapse; font-size: 14px; margin: 4px 0 0; }
.hours th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 3px 18px 3px 0; }
.hours td { padding: 3px 0; font-variant-numeric: tabular-nums; }
/* the score box: citywizer's logo under a night-to-sunset gradient, its colours */
.night-score {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; align-items: center;
  margin: 14px 0; padding: 18px 18px 44px; border-radius: 14px; overflow: hidden; color: #fff;
  background:
    linear-gradient(115deg, rgb(18 22 46 / 0.96) 0%, rgb(42 36 84 / 0.9) 45%, rgb(214 96 110 / 0.72) 80%, rgb(246 170 120 / 0.55) 100%),
    url("/assets/brands/citywizer-240.png") right -34px center / 210px no-repeat,
    #1a1d3a;
}
.night-overall { display: grid; justify-items: center; margin: 0; }
.night-overall b { font-size: 40px; line-height: 1; color: #ffd2a8; text-shadow: 0 0 18px rgb(255 120 140 / 0.55); }
.night-overall span { font-size: 12px; color: rgb(255 255 255 / 0.78); max-width: 10em; text-align: center; }
.night-score ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.night-score li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed rgb(255 255 255 / 0.22); padding: 2px 0; }
.night-score li span { color: rgb(255 255 255 / 0.75); }
.night-score-src { position: absolute; left: 18px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fff; text-decoration: none; opacity: 0.9; }
.night-score-src:hover { opacity: 1; text-decoration: underline; }
.cw-link, .cw-btn { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.cw-link img { width: 20px; height: 20px; }
.cw-btn img { width: 22px; height: 22px; }
.pros-cons { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.pros-cons li { padding-left: 22px; position: relative; }
.pros-cons li::before { position: absolute; left: 0; font-weight: 800; }
.pros-cons .pro::before { content: "+"; color: #1e9e5a; }
.pros-cons .con::before { content: "–"; color: #c62f2f; }
.night-top { counter-reset: none; padding: 0; }
.night-top .night-rank { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.night-top .night-rank > * { grid-column: 2; }
.night-top .night-rank .rank { grid-column: 1; grid-row: 1 / span 3; min-width: 1.6em; font-size: 18px; color: var(--brand); text-align: right; }
.night-top .night-thumb { grid-column: 2; width: 100%; max-width: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin: 0 0 6px; background: var(--line); }

.prices { width: 100%; border-collapse: collapse; font-size: 14.5px; }
/* guide tables: a header row and several columns, scrolling on a phone */
.table-wrap { overflow-x: auto; margin: 0 -2px; }
.prices th { padding: 6px 12px 6px 0; font-size: 12.5px; font-weight: 650; color: var(--ink-3); text-align: left; white-space: nowrap; }
.prices th:last-child { text-align: right; padding-right: 0; }
.prices thead + tbody td { padding-right: 12px; }
.prices thead + tbody td:last-child { padding-right: 0; white-space: normal; min-width: 64px; }
.prices td small { color: var(--ink-3); font-weight: 500; }
.prices td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.prices td:last-child { text-align: right; padding-left: 16px; white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; }

.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 9px 0; border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.links span { display: block; font-size: 13.5px; color: var(--ink-3); }
.links .ev-sum { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
/* the event or film a shared link points to (#e-…, #f-…) */
.links li:target { margin: 0 -10px; padding: 9px 10px; border-radius: 10px; background: var(--brand-soft); scroll-margin-top: 16px; }
.links em { margin-left: 4px; font-size: 13.5px; color: var(--ink-3); } /* a film's original title */
.hub-live { margin-left: 6px; font-size: 14px; color: var(--lvl, var(--ink-2)); font-variant-numeric: tabular-nums; }

/* hub rows: the whole row is the link; live count or power on the right */
.hub-list li { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; margin: 0 -10px; padding: 11px 10px; border-radius: 12px; border-top: 0; }
.hub-list li + li::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; border-top: 1px solid var(--line); }
.hub-list li:hover::before, .hub-list li:hover + li::before { border-color: transparent; }
.hub-list li:hover { background: var(--surface-2); }
.hub-list li > :not(b) { grid-column: 1; }
.hub-list li > a { color: var(--ink); font-weight: 650; text-decoration: none; }
.hub-list li > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hub-list li > a:focus-visible { outline: none; }
.hub-list li:has(> a:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.hub-list li > b { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.hub-list .hub-live { display: grid; justify-items: end; min-width: 52px; padding: 5px 10px; border-radius: 12px; background: color-mix(in srgb, var(--lvl, var(--ink-3)) 13%, var(--surface)); font-size: 18px; font-weight: 800; line-height: 1.1; }
.hub-list .hub-live span { display: inline; color: inherit; font-size: inherit; }
.hub-list .hub-live[data-live-location]::after { content: "slobodno"; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.hub-list .hub-live[data-live-location]:lang(en)::after { content: "free"; }
.hub-list .hub-live:not([class*="lvl-"]) { visibility: hidden; }
.hub-pill { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.hub-pill.is-fast { background: color-mix(in srgb, var(--good) 15%, var(--surface)); color: var(--ink); }

/* a garage's usual day in spans of hours (site_pages.py, _pattern_html) */
.pattern { list-style: none; margin: 6px 0 0; padding: 0; }
.pattern li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pattern li:first-child { border-top: 0; }
.pattern strong { display: block; font-size: 14px; }
.pattern span { white-space: nowrap; color: var(--lvl, var(--ink-2)); font-weight: 600; }

/* the contact form (/o-sajtu/kontakt/) and "Prijavi grešku" */
.contact-form { display: grid; gap: 12px; max-width: 560px; margin-top: 16px; }
.contact-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 15.5px/1.4 var(--font); }
.contact-form textarea { resize: vertical; }
.contact-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .actions { margin: 4px 0 0; }
.event-form fieldset { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.event-form legend { padding: 0 6px; font-weight: 750; }
.event-form [hidden] { display: none; }
.event-form .new-place, .event-form .company { display: grid; gap: 12px; }
.event-form .new-place[hidden], .event-form .company[hidden] { display: none; }
.event-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.event-form label.check input { width: auto; margin-top: 3px; }
.event-form .place-map { height: 260px; border: 1px solid var(--line); border-radius: 10px; z-index: 0; }
.event-form .place-map[hidden] { display: none; }
.event-form .place-hint { margin: -4px 0 0; }
.event-form .place-pin { background: var(--brand); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgb(0 0 0 / 0.35); }
.event-form .image-preview { display: block; max-width: 100%; max-height: 240px; border-radius: 10px; object-fit: contain; justify-self: start; }
.event-form .image-preview[hidden] { display: none; }
.form-status { margin: 0; min-height: 1.4em; font-size: 14.5px; font-weight: 600; }
.form-status.is-ok { color: var(--good); }
.form-status.is-error { color: var(--low); }
.report { margin: 18px 0 0; font-size: 13.5px; }
.report a { color: var(--ink-3); }

/* "Česta pitanja" (_faq) */
.faq h3 { margin: 16px 0 4px; font-size: 16px; }
.faq p { margin: 0; color: var(--ink-2); }

/* "Za vaš sajt": the widget's code to copy (site_pages.py, _widget_section) */
.embed textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.embed textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.embed .actions { align-items: center; margin-top: 10px; }

/* the widget builder (/za-sajtove/): settings and the live preview side by side */
.builder-grid { display: grid; gap: 20px; margin: 18px 0 8px; }
@media (min-width: 760px) { .builder-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.builder-form fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.builder-form legend { margin-bottom: 6px; font-weight: 700; }
.builder-form .opt { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 15px; cursor: pointer; }
.builder-form input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.builder-form select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.builder-form .muted { margin: 6px 0 0; font-size: 13px; }
.builder-preview iframe { display: block; border-radius: 14px; }
.builder-preview .kicker { margin: 0 0 6px; }

.photo { margin: 0 0 16px; }
.photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.photo figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.photo figcaption a { color: inherit; }

.foot { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; font-size: 13.5px; color: var(--ink-3); }
.foot nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.foot nav a { padding: 5px 0; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.foot nav a:hover { color: var(--brand); }
.foot p a { color: inherit; }
.foot .legal { margin-top: 10px; font-weight: 600; color: var(--ink-2); }
/* the foot's last line: the copyright, and the maker's credit with FABER's
   forged logo (faber.js) */
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font: 600 10.5px/1 "Montserrat", var(--font); letter-spacing: 0.14em; text-transform: uppercase; text-align: left; }
.foot-bar .faber { gap: 10px; color: inherit; font-weight: inherit; }
.foot-bar .faber:hover { color: var(--ink-2); }
.foot-bar .faber svg { height: 24px; }

/* about and press (/o-sajtu/): screenshots side by side */
.about ul:not(.links) { padding-left: 20px; }
.about ul:not(.links) li { margin: 4px 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.shot figcaption { margin-top: 6px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 480px) {
  article { padding: 22px 16px 20px; border-radius: 18px; }
  .jump { margin: 14px -16px 0; padding: 0 16px 4px; }
  .stats b { font-size: 22px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { padding: 10px 0 2px; }
  .facts dd { padding: 0 0 10px; border-top: 0; }
}

/* a charging network's prices: one card each */
.net { margin: 10px 0 0; padding: 4px 16px 10px; border: 1px solid var(--line); border-radius: 16px; }
.net h3 { margin-top: 12px; }

/* ── event page: the ticket ─────────────────────────────────────
   The hero is a ticket in the event's tone (the app's colours per kind):
   the picture and name on the main part, the date on a stub past a
   perforation. One moment of motion: the stub settles in as the page
   loads while the picture slowly pulls back. */
.ev-page { --tone: var(--brand); background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 9%, var(--surface)) 0, var(--surface) 340px); }
.ev-page::before { background: var(--tone); }
.tone-concert, .tone-opera { --tone: #8b63f6; }
.tone-sport, .tone-ballet, .tone-race { --tone: #e2508c; }
.tone-theatre { --tone: #12a594; }
.tone-fair { --tone: #c97a2e; }

.ticket {
  --stub: 172px;
  --hole: 12px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--stub);
  margin: 4px 0 6px;
  border-radius: 18px;
  background: #151a2e;
  color: #fff;
  overflow: hidden;
  /* the perforation's two half-moon cuts, top and bottom */
  -webkit-mask: radial-gradient(circle var(--hole) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--hole) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--hole) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--hole) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { position: relative; display: flex; align-items: flex-end; min-height: 320px; overflow: hidden; }
.ticket-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ticket-pull 16s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.ticket-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(21 26 46 / 0) 20%, rgb(21 26 46 / 0.9) 100%),
    linear-gradient(90deg, rgb(21 26 46 / 0.72) 0%, rgb(21 26 46 / 0.2) 70%, rgb(21 26 46 / 0) 100%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--tone) 55%, transparent), transparent 70%);
}
.ticket-text { position: relative; z-index: 1; padding: 22px 24px 24px; }
/* a game: the two clubs' crests over its name; a club without one, its initials in its colours */
.ticket-crests { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.ticket-crests i { font-style: normal; font-weight: 800; font-stretch: 85%; font-size: 18px; color: rgb(255 255 255 / 0.85); }
.crest { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgb(0 0 0 / 0.35); overflow: hidden; }
.crest img { width: 64px; height: 64px; object-fit: contain; }
.crest b { display: none; }
.crest.is-initials { background: var(--c, #3f74ff); border: 3px solid rgb(255 255 255 / 0.9); }
.crest.is-initials b { display: block; color: var(--t, #fff); font-size: 26px; font-weight: 800; font-stretch: 90%; }
@media (max-width: 600px) { .crest { width: 60px; height: 60px; } .crest img { width: 50px; height: 50px; } }

/* a game without a picture of its own: the two clubs' colours meeting on a slant */
.ticket.is-game .ticket-main { background: linear-gradient(112deg, var(--home) 0 54%, #151a2e 54% 55%, var(--away) 55% 100%); }
.ticket.is-game .ticket-main::after { background: linear-gradient(180deg, rgb(21 26 46 / 0) 30%, rgb(21 26 46 / 0.88) 100%); }
.ticket-kind { display: inline-block; padding: 3px 11px 4px; border-radius: 999px; background: var(--tone); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.ticket h1 { margin: 12px 0 6px; color: #fff; font-size: clamp(30px, 4.6vw, 50px); line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; text-wrap: balance; }
.ticket-venue { margin: 0; font-size: 16px; color: rgb(255 255 255 / 0.82); }

.ticket-stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 22px 12px;
  border-left: 2px dashed rgb(255 255 255 / 0.22);
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--tone) 30%, #151a2e), #151a2e 75%);
  text-align: center;
  transform-origin: 0 50%;
  animation: stub-settle 0.75s var(--spring) 0.2s both;
}
.stub-day { font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 0.7); text-transform: capitalize; }
.stub-date { font-size: 76px; line-height: 0.9; font-weight: 800; font-stretch: 75%; color: color-mix(in srgb, var(--tone) 55%, #fff); font-variant-numeric: tabular-nums; }
.stub-month { font-size: 16px; font-weight: 700; font-stretch: 110%; text-transform: capitalize; }
.stub-time { margin-top: 6px; font-size: 24px; font-weight: 750; font-stretch: 85%; font-variant-numeric: tabular-nums; }
.stub-until { font-size: 13px; color: rgb(255 255 255 / 0.7); }
.stub-count:not(:empty) { margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.12); font-size: 12.5px; font-weight: 650; }
.stub-count.is-on { background: var(--tone); }
.ticket-credit { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-3); }
.ticket-credit a { color: inherit; }
.ev-about { font-size: 17px; line-height: 1.55; }
.ev-video video { display: block; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; margin: 4px 0 8px; border-radius: 14px; background: #000; }
/* a shared video's own page (site_pages._watch_pages) */
.watch-video { display: block; width: min(100%, 360px); aspect-ratio: 9 / 16; margin: 6px 0 14px; border-radius: 16px; background: #000; object-fit: contain; box-shadow: 0 18px 40px -22px rgb(15 22 34 / 0.55); }
.promo-list { display: grid; gap: 22px; margin: 18px 0; }
.promo-card { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 18px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.promo-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.promo-cover img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.promo-cover span { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgb(0 0 0 / 0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l10-6z' fill='white'/%3E%3C/svg%3E") center / 30px no-repeat; }
.promo-card h2 { margin: 4px 0 6px; }
@media (max-width: 560px) { .promo-card { grid-template-columns: 1fr; } .promo-cover { max-width: 320px; } }

@keyframes ticket-pull { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes stub-settle { from { opacity: 0; transform: translateX(18px) rotate(3deg); } to { opacity: 1; transform: none; } }

/* when to come: a sequence in time */
.ev-timeline { position: relative; margin: 6px 0 14px; padding: 0; list-style: none; }
.ev-timeline li { position: relative; display: grid; grid-template-columns: 62px 1fr; column-gap: 12px; padding: 0 0 16px 26px; }
.ev-timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 3px solid var(--tone); }
.ev-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 21px; bottom: 2px; width: 2px; background: color-mix(in srgb, var(--tone) 35%, transparent); }
.ev-timeline time { font-size: 18px; font-weight: 750; font-stretch: 85%; color: var(--tone); font-variant-numeric: tabular-nums; }
.ev-timeline b { align-self: center; }
.ev-timeline span { grid-column: 2; font-size: 14px; color: var(--ink-2); }

/* the venue and its garages */
.ev-map { height: 250px; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); z-index: 0; }
.ev-pin { box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 0.3); color: #fff; font-weight: 800; font-size: 12px; text-align: center; }
.ev-pin-venue { border-radius: 50%; background: var(--tone, #3f74ff); line-height: 22px; font-size: 13px; }
.ev-pin-p { border-radius: 6px; background: #1d5bff; line-height: 18px; }

@media (max-width: 600px) {
  .ticket {
    --stub-h: 104px;
    grid-template-columns: 1fr;
    -webkit-mask: radial-gradient(circle var(--hole) at 0 calc(100% - var(--stub-h)), #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--hole) at 100% calc(100% - var(--stub-h)), #0000 97%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--hole) at 0 calc(100% - var(--stub-h)), #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--hole) at 100% calc(100% - var(--stub-h)), #0000 97%, #000) right / 51% 100% no-repeat;
  }
  .ticket-main { min-height: 270px; }
  .ticket-stub {
    height: var(--stub-h);
    box-sizing: border-box;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: start;
    column-gap: 14px;
    padding: 12px 20px;
    border-left: 0;
    border-top: 2px dashed rgb(255 255 255 / 0.22);
    text-align: left;
    transform-origin: 50% 0;
    animation-name: stub-settle-down;
  }
  .stub-date { grid-row: 1 / span 2; font-size: 60px; }
  .stub-day { grid-column: 2; align-self: end; }
  .stub-month { grid-column: 2; grid-row: 2; align-self: start; }
  .stub-time { grid-column: 3; grid-row: 1; justify-self: end; align-self: end; margin: 0; font-size: 20px; white-space: nowrap; }
  .stub-until { grid-column: 2; grid-row: 2; align-self: end; white-space: nowrap; }
  .stub-count:not(:empty) { grid-column: 3; grid-row: 2; justify-self: end; align-self: start; margin: 4px 0 0; white-space: nowrap; }
  @keyframes stub-settle-down { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  .ticket-img, .ticket-stub { animation: none; }
}

/* An ad's spot (web/ads.js): only on the days one is booked */
.ad-slot { margin: 20px 0; }
.ad-slot[hidden] { display: none; }
.ad-slot .ad-card { max-width: 480px; }

/* Booking an ad (/o-sajtu/oglasavanje/, pages.js adForm) */
.ad-form .ad-spot { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; cursor: pointer; }
.ad-form .ad-spot:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ad-form .ad-spot input { width: auto; margin-top: 3px; accent-color: var(--brand); }
.ad-form .ad-spot > span { display: grid; gap: 3px; }
.ad-form .ad-spot b { color: var(--ink); font-size: 15px; }
.ad-form .ad-spot small { color: var(--ink-3); font-size: 12.5px; }
.ad-cal { max-width: 340px; }
.ad-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.ad-cal-head b { color: var(--ink); text-transform: capitalize; }
.ad-cal-head button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 18px/1 var(--font); cursor: pointer; }
.ad-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ad-cal-grid small { padding: 2px 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.ad-cal-grid button { aspect-ratio: 1; min-width: 0; border: 1px solid transparent; border-radius: 9px; background: var(--surface-2); color: var(--ink); font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer; }
.ad-cal-grid button:hover:not(:disabled) { border-color: var(--brand); }
.ad-cal-grid button:disabled { background: transparent; color: var(--ink-3); opacity: 0.5; cursor: default; }
.ad-cal-grid button.is-taken { text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--surface-3) 4px 6px); opacity: 1; }
.ad-cal-grid button.is-in { background: var(--brand-soft); color: var(--brand); }
.ad-cal-grid button.is-end { background: var(--brand); color: var(--brand-ink); }
.ad-cal button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ad-images { display: grid; gap: 16px; }
.ad-image { display: grid; gap: 8px; }
.ad-image .ad-preview .ad-card, .ad-image .ad-preview .ad-banner { max-width: 420px; }
.ad-quote { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.ad-quote ul { margin: 0 0 8px; padding: 0; list-style: none; }
.ad-quote li, .ad-quote p { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; }
.ad-quote li { color: var(--ink-2); padding: 2px 0; }
.ad-quote p b { font-size: 18px; }
.ad-quote .muted { display: block; }
.ad-form button[type=submit]:disabled { opacity: 0.5; cursor: not-allowed; }
