/* Podstrona wydarzenia (E3) — style z GBT web/templates/event.html, kopia z makiety
   .wow/kalendarz/port/static/wydarzenie.css (zatwierdzona 07.11.2026), przycięta: bez paska „skąd”, not,
   ujawnienia AI, świeżości danych i naborów (kanon animalis: same fakty). Tokeny z gbt-design.css. */

.ev-back { display: inline-flex; align-items: center; gap: 7px; padding: 0 0 22px;
  font-size: 12.5px; font-weight: 700; color: var(--akcja-ciemniej); text-decoration: none; }
.ev-back:hover { text-decoration: underline; }

/* Dwie kolumny: treść bierze resztę, panel 340 px jest lepki. */
.ev-uklad { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.ev-tresc { flex: 1 1 460px; min-width: 0; }
.ev-panel { flex: 1 1 300px; max-width: 340px; min-width: 0;
  position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }

/* ── Treść ── */
.ev-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ev-cat-pill { padding: 3px 12px; border-radius: 0; font-size: .78rem; font-weight: 700;
  background: rgba(194,74,42,0.10); color: var(--akcja-ciemniej); text-decoration: none;
  text-transform: uppercase; letter-spacing: .03em; }
.ev-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px;
  border-radius: 0; background: var(--deep-baltic); color: #fff; font-size: .76rem; font-weight: 700; }

.ev-title { font-size: var(--f-h1); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 14px; color: var(--tekst); text-wrap: pretty; }

/* Siatka faktów — kafle na wspólnym obrysie */
.ev-fakty { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--obrys); border: 1px solid var(--obrys); margin-top: 30px; }
.ev-fakt { background: var(--tlo-karta); padding: 15px 16px;
  display: flex; flex-direction: column; gap: 5px; }
.ev-fakt .lbl { font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--tekst-slabszy); }
.ev-fakt .val { font-size: 15px; font-weight: 600; color: var(--tekst); line-height: 1.4; }
.ev-fakt a.val { color: var(--akcja-ciemniej); text-decoration: underline; text-underline-offset: 3px; }

.ev-desc { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.ev-desc p { margin: 0; font-size: 18px; line-height: 1.72; color: var(--tekst-sredni); text-wrap: pretty; }
.ev-desc strong { color: var(--tekst); font-weight: 700; }
.ev-desc a { color: var(--akcja-ciemniej); text-decoration: underline; word-break: break-word; }

.ev-share { display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--obrys);
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--tekst-slabszy); }
.ev-share a { color: var(--akcja-ciemniej); text-decoration: none; }
.ev-share a:hover { text-decoration: underline; }

/* ── Panel: karta daty + akcje ── */
.ev-panel-karta { border: 1px solid var(--obrys); background: var(--tlo-karta); }
.ev-data { display: flex; flex-direction: column; align-items: flex-start;
  padding: 20px 22px 22px; line-height: 1; }
.ev-data .when { margin-bottom: 12px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--tekst-slabszy); }
.ev-data.soon .when { color: var(--akcja); }
.ev-data .day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 8px -2px; font-size: clamp(42px, 3.6vw, 52px); font-weight: 800;
  line-height: 1.02; letter-spacing: -.045em; color: var(--tekst); }
.ev-data.soon .day { color: var(--akcja); }
.ev-data .mon { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--tekst-sredni); }
.ev-data .dow { font-size: 15px; font-weight: 600; color: var(--tekst-slabszy); }
.ev-data .time { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 5px 10px; border: 1px solid var(--akcja); color: var(--akcja-ciemniej);
  font-size: 14px; font-weight: 700; white-space: nowrap; line-height: 1.2; }
.ev-data .time svg { width: 16px; height: 16px; flex: 0 0 16px; }

.ev-panel-akcje { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.ev-panel-akcje .ev-btn { display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 12px 18px; border: 1px solid var(--obrys); background: var(--tlo-karta);
  color: var(--tekst); font-family: inherit; font-size: 12.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; text-align: center; }
.ev-panel-akcje .ev-btn:hover { border-color: var(--akcja); color: var(--akcja); }
.ev-panel-akcje .ev-btn.primary { background: var(--akcja-ciemniej); border-color: var(--akcja-ciemniej); color: #fff; }
.ev-panel-akcje .ev-btn.primary:hover { background: var(--akcja); border-color: var(--akcja); color: #fff; }
.ev-panel-akcje .ev-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.ev-save.on { border-color: var(--akcja); color: var(--akcja-ciemniej); }
.ev-save.on svg { fill: currentColor; }

/* ── Panel: organizator ── */
.ev-panel-org { border: 1px solid var(--obrys); background: var(--tlo-karta); padding: 16px;
  display: flex; flex-direction: column; gap: 10px; }
.ev-panel-lbl { font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--tekst-slabszy); }
.ev-panel-org .nazwa { font-size: 17px; font-weight: 700; color: var(--tekst); text-decoration: none; }
.ev-fakt-miejsce { display: flex; align-items: center; gap: 8px; }
.ev-map-pin { flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 3px; font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--tekst); text-decoration: none; transition: color .15s, background .15s; }
.ev-map-pin svg { width: 16px; height: 16px; flex: 0 0 16px; }
.ev-map-pin:hover { color: var(--akcja-ciemniej); background: var(--tlo-2); }
.ev-panel-org .popraw { font-size: 12.5px; font-weight: 700; color: var(--akcja-ciemniej); text-decoration: none; }
.ev-panel-org .popraw:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .ev-uklad { display: block; }
  .ev-panel { flex: none; width: 100%; max-width: none; position: static; margin-top: 32px; }
}

/* Baner „Wydarzenie się odbyło” */
.ev-past { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 20px;
  padding: 12px 16px; background: var(--poboczne); border-left: 3px solid var(--dane);
  font-size: 14px; line-height: 1.5; color: var(--tekst-sredni); }
.ev-past strong { font-weight: 700; color: var(--tekst); }
.ev-next-edition { font-weight: 700; color: var(--akcja-ciemniej); text-decoration: none; }
.ev-next-edition:hover { text-decoration: underline; }

/* Podobne wydarzenia */
.ev-similar { margin-top: var(--sp-8, 32px); }
.ev-similar__title { font-size: 18px; font-weight: 800; color: var(--tekst); margin-bottom: var(--sp-4, 16px); }
.ev-similar__list { display: grid; gap: var(--sp-3, 12px); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ev-sim-card { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 0;
  background: var(--tlo-karta); border: 1px solid var(--obrys); text-decoration: none; transition: border-color .15s; }
.ev-sim-card:hover { border-color: var(--akcja); }
.ev-sim-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--akcja-ciemniej); }
.ev-sim-title { font-size: 14.5px; font-weight: 700; color: var(--tekst); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-sim-when { font-size: 12.5px; color: var(--tekst-slabszy); font-weight: 600; }

main[tabindex="-1"]:focus { outline: none; }

/* Telefon (< 700 px): H1 → data → akcje → opis → organizator → udostępnianie.
   `display: contents` zdejmuje panel i artykuł z układu, dzieci układają się wg `order`. */
.ev-o-org { display: flex; }
.ev-o-eyebrow { display: flex; }
.ev-o-fakty { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
.ev-o-share { display: flex; }
@media (max-width: 699px) {
  .ev-uklad { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; align-items: stretch; }
  .ev-uklad > .ev-panel, .ev-uklad > article { display: contents; }
  .ev-o-past { order: 0; }
  .ev-o-eyebrow { order: 1; }
  .ev-o-h1 { order: 2; }
  .ev-o-fakty { order: 4; }
  .ev-o-akcje { order: 5; margin-top: 24px; }
  .ev-o-desc { order: 7; }
  .ev-o-zdjecia { order: 8; }
  .ev-o-org { order: 9; margin-top: 24px; }
  .ev-o-share { order: 11; }
}
