/* UWFZ Radar — visitor site */

/* top bar */
.top {
  position: sticky; top: 0; z-index: 1100; height: var(--top-h);
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: rgba(7, 10, 14, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; }
.brand__blip { width: 9px; height: 9px; border-radius: 50%; background: var(--popup); align-self: center; }
.brand__mark { font: 400 30px/1 var(--font-display); letter-spacing: .02em; }
.brand__sub { font: 600 11px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.top__next {
  display: none; align-items: center; gap: 9px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: 13px; max-width: 46vw;
}
.top__next:hover { border-color: var(--line-strong); background: var(--surface); }
.top__label { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.top__what { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__when { color: var(--c); font: 600 11.5px/1 var(--font-mono); white-space: nowrap; }
@media (min-width: 720px) { .top { padding: 0 24px; } .top__next { display: inline-flex; } }

.nw { white-space: nowrap; }

/* layout */
.shell { display: block; }
.pane { min-width: 0; }
.intro { padding: 26px 16px 18px; }
.intro h1 { font: 400 clamp(38px, 10.5vw, 58px)/1.04 var(--font-display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--popup); }
.intro p { margin-top: 12px; color: var(--muted); max-width: 44ch; }

.controls {
  position: sticky; top: var(--top-h); z-index: 1000;
  padding: 12px 16px; display: grid; gap: 10px;
  background: rgba(7, 10, 14, .92); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border-radius: 999px; flex: none;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent);
  font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip__n { font: 600 12px/1 var(--font-mono); color: var(--c); }
.chip[aria-pressed="false"] { border-color: var(--line); background: transparent; color: var(--dim); }
.chip[aria-pressed="false"] .glyph { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dim); }
.chip[aria-pressed="false"] .chip__n { color: var(--dim); }
.chip[aria-pressed="false"] > span:nth-child(2) { text-decoration: line-through; text-decoration-color: var(--dim); }
.controls__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.near[aria-pressed="true"] { background: var(--text); color: #070a0e; border-color: var(--text); }

/* list */
.list, .cal { padding: 4px 16px 8px; }
.group {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font: 400 26px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
}
.group small { font: 500 12px/1 var(--font-mono); color: var(--dim); letter-spacing: .08em; margin-left: 6px; }
.group__n { font: 600 12px/1 var(--font-mono); color: var(--dim); }

.card {
  display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px;
  padding: 14px; margin-bottom: 8px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .15s, background .15s, transform .2s var(--ease);
}
.card:hover, .card.is-hot { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: var(--surface-2); }
.card:active { transform: scale(.99); }
.card__date { display: grid; justify-items: center; gap: 3px; }
.card__mon, .card__dow { font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card__day { font: 400 30px/1 var(--font-display); }
.card__body { display: grid; gap: 4px; min-width: 0; }
.card__top { display: flex; align-items: center; gap: 10px; }
.card__top .card__rel { margin-left: auto; }
.card__rel { font: 500 11.5px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.card__title { font-weight: 700; font-size: 17px; line-height: 1.25; text-wrap: balance; }
.card__where { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta { font: 500 12px/1.3 var(--font-mono); color: var(--dim); }
.card__meta b { color: var(--text); font-weight: 600; }
.card__go { color: var(--dim); font-size: 18px; transition: transform .2s var(--ease), color .15s; }
.card:hover .card__go { transform: translateX(3px); color: var(--c); }

.card--lead { grid-template-columns: 58px 1fr auto; padding: 0 14px 16px; overflow: hidden; margin-bottom: 4px; }
/* everything after the lead is a plain row, not another box */
.card:not(.card--lead) { background: none; border-color: transparent transparent var(--line); border-radius: 0; margin-bottom: 0; padding: 16px 4px; }
.card:not(.card--lead):hover, .card:not(.card--lead).is-hot { background: var(--surface); border-color: transparent transparent color-mix(in srgb, var(--c) 70%, transparent); }
.card__day, .card__meta, .card__rel, .cal__num, .group__n, .top__when { font-variant-numeric: tabular-nums; }
.card__cover, .ev__hero { container-type: inline-size; }
.cover-label {
  position: absolute; left: 12px; bottom: -.14em; pointer-events: none; white-space: nowrap;
  font: 400 min(7rem, calc(185cqw / var(--n, 8)))/1 var(--font-display); text-transform: uppercase; color: var(--c); opacity: .17;
}
.card__cover { grid-column: 1 / -1; margin: 0 -14px; position: relative; aspect-ratio: 16 / 6.5; overflow: hidden; }
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card--lead:hover .card__cover img { transform: scale(1.03); }
.card__flag {
  position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px;
  background: var(--c); color: #070a0e; font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}
.card--lead .card__title { font: 400 28px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }

.empty { padding: 56px 16px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty h2 { font: 400 28px/1 var(--font-display); text-transform: uppercase; }
.empty p { color: var(--muted); }

/* calendar */
.cal { container-type: inline-size; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 14px; }
.cal__head h2 { font: 400 30px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.cal__head small { font: 500 12px/1 var(--font-mono); color: var(--dim); margin-left: 6px; }
.cal__nav { display: flex; gap: 8px; }
.cal__nav button[disabled] { opacity: .3; pointer-events: none; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow span { text-align: center; padding-bottom: 6px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.cal__cell {
  min-height: 58px; padding: 7px 6px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--surface); display: flex; flex-direction: column; gap: 6px; text-align: left; align-items: flex-start; min-width: 0; overflow: hidden;
}
.cal__cell--pad { background: transparent; }
.cal__cell.is-past { opacity: .45; }
.cal__num { font: 600 12px/1 var(--font-mono); color: var(--muted); }
.cal__cell.is-today .cal__num { color: #070a0e; background: var(--text); padding: 3px 5px; border-radius: 4px; margin: -3px -2px; }
.cal__cell.has-events { border-color: var(--line-strong); cursor: pointer; transition: background .15s, border-color .15s; }
.cal__cell.has-events .cal__num { color: var(--text); }
.cal__cell.has-events:hover { background: var(--surface-2); }
.cal__cell[aria-pressed="true"] { border-color: var(--text); background: var(--surface-3); }
.cal__marks { display: flex; flex-wrap: wrap; gap: 5px; width: 100%; }
.cal__mark { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.cal__mark > span { display: none; }
@container (min-width: 640px) {
  .cal__cell { min-height: 92px; padding: 9px; }
  .cal__marks { flex-direction: column; gap: 4px; }
  .cal__mark > span { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
.cal__agenda .group { margin-top: 22px; }

/* footer */
.foot { padding: 28px 16px 40px; display: grid; gap: 18px; }
.foot__cta {
  display: grid; gap: 4px; text-align: left; padding: 20px; border-radius: var(--r); width: 100%;
  border: 1px dashed var(--line-strong); transition: border-color .15s, background .15s;
}
.foot__cta:hover { border-color: var(--text); background: var(--surface); }
.foot__cta span:first-child { font: 400 26px/1 var(--font-display); text-transform: uppercase; }
.foot__cta span:last-child { color: var(--muted); font-size: 14px; }
.foot p { font: 500 11px/1.4 var(--font-mono); color: var(--dim); }

/* map */
.mapwrap { position: relative; background: #0a1016; overflow: hidden; }
#map { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: var(--muted); }
.sweep { position: absolute; inset: 0; z-index: 450; pointer-events: none; overflow: hidden; }
.sweep::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 119px, rgba(150, 215, 240, .07) 119px 120px);
}
.sweep::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
  background: conic-gradient(from 0deg, rgba(122, 178, 221, 0) 0deg 310deg, rgba(122, 178, 221, .13) 359deg, rgba(122, 178, 221, 0) 360deg);
  animation: sweep 10s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.pin-wrap { background: none; border: 0; }
.you { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 4px solid #070a0e; box-shadow: 0 0 0 2px var(--text); }

.radar-pop .leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); padding: 0; }
.radar-pop .leaflet-popup-content { margin: 0; }
.radar-pop .leaflet-popup-tip { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: none; }
.pop { display: grid; gap: 4px; padding: 14px 16px; text-decoration: none; min-width: 200px; color: var(--muted) !important; font-size: 13px; }
.pop strong { color: var(--text); font-size: 16px; line-height: 1.2; margin: 3px 0; }
.pop em { font-style: normal; font-weight: 600; color: var(--c); margin-top: 4px; }

.dock {
  position: absolute; left: 12px; bottom: 26px; z-index: 600; width: min(280px, calc(100% - 76px));
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px;
}
.dock__label { font: 600 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 4px 6px 8px; }
.dock a { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 8px; border-radius: var(--r-sm); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.dock a:hover { background: var(--surface-3); }
.dock a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock a small { font: 500 11px/1 var(--font-mono); color: var(--muted); }

/* small screens: one pane at a time */
@media (max-width: 899.98px) {
  .shell:not([data-view="map"]) .mapwrap { display: none; }
  .shell[data-view="map"] .intro, .shell[data-view="map"] .list, .shell[data-view="map"] .foot { display: none; }
  .mapwrap { height: calc(100dvh - var(--top-h) - 121px); min-height: 380px; }
}
@media (min-width: 600px) and (max-width: 899.98px) {
  .intro, .controls, .list, .cal, .foot { padding-inline: 32px; }
  .filters { margin: 0; padding: 0; }
  .list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: start; }
  .list .group, .list .card--lead, .list .empty { grid-column: 1 / -1; }
  .card__cover { aspect-ratio: 16 / 5; }
}

/* wide screens: list and map side by side */
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: clamp(420px, 40vw, 560px) 1fr; align-items: start; }
  .pane { border-right: 1px solid var(--line); min-height: calc(100dvh - var(--top-h)); }
  .intro { padding: 34px 24px 22px; }
  .intro h1 { font-size: clamp(44px, 4.6vw, 62px); }
  .controls, .list, .cal, .foot { padding-inline: 24px; }
  .filters { margin: 0; padding: 0; flex-wrap: wrap; }
  .seg__map { display: none !important; }
  .mapwrap { position: sticky; top: var(--top-h); height: calc(100dvh - var(--top-h)); }
  .dock { left: 20px; bottom: 28px; }
}

/* event detail */
.sheet__inner { min-height: 100%; }
.ev__hero { position: relative; aspect-ratio: 16 / 8; background: var(--bg); overflow: hidden; }
.ev__hero img { width: 100%; height: 100%; object-fit: cover; }
.ev__hero::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, var(--surface)); }
.ev__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.ev__body { padding: 4px 20px 56px; display: grid; gap: 22px; }
.ev__kicker { display: flex; align-items: center; gap: 14px; }
.ev__brand { font: 600 11.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ev__sample { font-size: 13.5px; color: var(--muted); padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); }
.ev__kicker { flex-wrap: wrap; }
.ev__rel { font: 600 11.5px/1 var(--font-mono); color: var(--muted); padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
.ev h2 { font: 400 clamp(38px, 8vw, 60px)/1.04 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.ev__tagline { font-size: 19px; color: var(--muted); margin-top: -10px; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts > div { background: var(--bg); padding: 16px; display: grid; gap: 6px; }
.facts dt { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.facts dd { display: grid; gap: 2px; }
.facts dd span { color: var(--muted); font-size: 14.5px; }
.ev__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ev__actions .btn--solid { background: var(--c); border-color: var(--c); flex: 1 1 100%; min-height: 52px; font-size: 16px; }
.ev__actions .btn--solid:hover { filter: brightness(1.1); background: var(--c); border-color: var(--c); }
.perk { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 7%, transparent); }
.perk strong { color: var(--c); }
.ev section { display: grid; gap: 10px; }
.ev h3 { font: 400 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.ev__desc { color: #cfdbe1; max-width: 62ch; white-space: pre-line; }
.ev__hint { color: var(--dim); font-size: 13.5px; margin-top: -6px; }
.ev__list { display: grid; gap: 8px; }
.ev__list li { display: flex; gap: 12px; color: #cfdbe1; }
.ev__list li::before { content: ''; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--c); flex: none; }
.shots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 10px; }
.shot { flex: none; width: min(78%, 400px); scroll-snap-align: center; position: relative; }
.shot img, .shot video, .shot iframe { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); }
.shot--video { width: min(90%, 520px); }
.shot--video video, .shot--video iframe { aspect-ratio: 16 / 9; }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.shot__note { position: absolute; top: 12px; left: 12px; font: 600 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 9px; border-radius: 999px; background: rgba(7, 10, 14, .8); border: 1px solid var(--line); }
@media (min-width: 720px) {
  .ev__body { padding: 4px 36px 64px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .ev__actions .btn--solid { flex: 0 1 auto; padding: 0 28px; }
  .shots { margin: 0 -36px; padding-inline: 36px; }
}
@media (max-width: 719.98px) { dialog.sheet { border-left: 0; } }

/* alerts */
.alerts { position: relative; padding: 28px 22px 24px; display: grid; gap: 16px; }
.alerts__close { position: absolute; top: 12px; right: 12px; }
.alerts h2 { font: 400 38px/1.04 var(--font-display); text-transform: uppercase; padding-right: 40px; text-wrap: balance; }
.alerts__lede { color: var(--muted); }
.alerts__types { border: 0; padding: 0; margin: 0; }
.alerts__types legend { padding: 0; margin-bottom: 4px; }
.alerts__types > div { display: grid; }
.alerts__error { color: var(--danger); font-size: 14px; font-weight: 600; }
.alerts__submit { min-height: 52px; font-size: 16px; }
.alerts__fine { color: var(--dim); font-size: 12px; line-height: 1.45; }
.alerts--done { justify-items: start; padding-top: 36px; }
.alerts__ping { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); animation: blip-ok 2s infinite; }
@keyframes blip-ok { 0% { box-shadow: 0 0 0 0 rgba(87, 227, 155, .7); } 100% { box-shadow: 0 0 0 18px rgba(87, 227, 155, 0); } }
