/* events-styles.css – Wydarzenia (list + month) and Wydarzenie (detail).
   Layered on top of home-styles.css; reuses its tokens, chrome and fonts. */

:root {
  --ev-live:   #14a085;  /* na żywo  */
  --ev-course: #1d738b;  /* kurs     */
  --ev-onsite: #cc3266;  /* stacjonarne */
}

/* ── Page header (title + view switch) ────────────────────────────────── */
.ev-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; padding: 22px 0 18px; flex-wrap: wrap;
}
.ev-head .eyebrow {
  font-family: 'Source Sans 3', sans-serif; font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.ev-head .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ev-head h1 {
  margin: 0; font-size: 36px; line-height: 1.05; font-weight: 600;
  letter-spacing: -0.025em;
}
.ev-head h1 .em { font-style: normal; font-weight: inherit; color: inherit; }
.ev-head .lead { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; max-width: 54ch; line-height: 1.5; }

.ev-switch button.on { background: var(--primary); color: #fff; }
.ev-switch button.on .ic { color: #fff; }
.ev-switch-n {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Source Sans 3', sans-serif; font-size: 10.5px; font-weight: 600;
  background: var(--bg-2); color: var(--primary);
}
.ev-switch button.on .ev-switch-n { background: rgba(255,255,255,0.24); color: #fff; }

/* organizator: dodaj / edytuj */
.ev-head-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.ev-new-btn {
  height: 42px; padding: 0 16px; border-radius: 11px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--warn); border: 1px solid var(--warn);
  transition: filter 0.12s, transform 0.12s;
}
.ev-new-btn .ic { width: 16px; height: 16px; }
.ev-new-btn:hover { filter: brightness(0.94); }
.ev-new-btn:active { transform: scale(0.98); }
.ev-edit {
  height: 34px; padding: 0 12px; border-radius: 9px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--warn);
  background: rgba(204,50,102,0.07); border: 1px solid rgba(204,50,102,0.28);
  transition: background 0.12s;
}
.ev-edit .ic, .ev-edit svg { width: 14px; height: 14px; }
.ev-edit:hover { background: rgba(204,50,102,0.13); }

/* "Mój plan" intro banner */
.ev-plan-intro {
  display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 2px;
  padding: 14px 18px; border-radius: var(--rad-lg);
  background: var(--accent-soft); border: 1px solid rgba(20,160,133,0.28);
}
.ev-plan-intro > .ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: rgba(20,160,133,0.16); color: var(--accent-2); }
.ev-plan-intro > .ic svg { width: 18px; height: 18px; }
.ev-plan-intro b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.ev-plan-intro span { font-size: 12.7px; color: var(--ink-2); line-height: 1.5; }

/* Wyróżnione (promowane) — ciemna karta hero: petrol, foto full-bleed, miętowa poświata */
.ev-featured {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  background: rgba(45,212,176,0.16); color: #7fe8d2;
  border: 1px solid rgba(45,212,176,0.38);
  box-shadow: 0 0 14px -4px rgba(45,212,176,0.55);
}
.ev-featured .ic, .ev-featured svg { width: 13px; height: 13px; }

.ev-row.promoted {
  grid-template-columns: 216px 116px minmax(0,1fr) auto;
  padding: 0 22px 0 0;
  border-color: transparent;
  color: #f2f8f9;
  background:
    radial-gradient(85% 150% at 100% 0%, rgba(20,160,133,0.25), transparent 58%),
    linear-gradient(112deg, var(--primary-d) 0%, var(--primary) 62%, #10586c 100%);
  box-shadow: 0 2px 6px rgba(8,50,62,0.22), 0 20px 44px -18px rgba(8,50,62,0.55);
}
.ev-row.promoted::before { width: 0; }
a.ev-row.promoted:hover {
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(8,50,62,0.26), 0 28px 56px -20px rgba(8,50,62,0.65);
  transform: translateY(-3px);
}

.ev-row.promoted .ev-thumb { grid-column: 1; grid-row: 1; }
.ev-row.promoted .when    { grid-column: 2; grid-row: 1; padding-top: 22px; padding-bottom: 22px; }
.ev-row.promoted .body    { grid-column: 3; grid-row: 1; padding: 22px 0; }
.ev-row.promoted .actions { grid-column: 4; grid-row: 1; padding: 22px 0; }

.ev-thumb {
  align-self: stretch; overflow: hidden; position: relative;
  background: var(--primary-d); min-height: 158px;
}
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-row.promoted .ev-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(8,50,62,0.6) 100%);
}

/* inwersja treści na ciemnym tle */
.ev-row.promoted .when .time { color: #fff; font-size: 19px; }
.ev-row.promoted .when .dur { color: rgba(242,248,249,0.6); }
.ev-row.promoted .ev-cd { background: rgba(255,255,255,0.12); color: #dfeef0; }
.ev-row.promoted .ev-cd.soon { background: rgba(204,50,102,0.32); color: #ffb1cb; }
.ev-row.promoted .ev-cd.live { background: rgba(45,212,176,0.2); color: #7fe8d2; }
.ev-row.promoted .ev-type.live   { background: rgba(45,212,176,0.18); color: #7fe8d2; }
.ev-row.promoted .ev-type.course { background: rgba(255,255,255,0.13); color: #d7ecf1; }
.ev-row.promoted .ev-type.onsite { background: rgba(204,50,102,0.26); color: #ffb1cb; }
.ev-row.promoted .ev-topic { color: rgba(242,248,249,0.58); }
.ev-row.promoted .ev-pts { color: #9ad8ce; }
.ev-row.promoted h3 { color: #fff; font-size: 20px; }
.ev-row.promoted .ev-meta,
.ev-row.promoted .ev-meta .ic { color: rgba(242,248,249,0.62); }
.ev-row.promoted .ev-meta .who { color: #e8f3f4; }
.ev-row.promoted .ev-meta .dot { background: rgba(242,248,249,0.35); }
.ev-row.promoted .ev-btn.primary { background: #fff; color: var(--primary); }
.ev-row.promoted .ev-btn.primary:hover { background: #d9f3ec; }
.ev-row.promoted .ev-btn.done {
  background: rgba(45,212,176,0.16); color: #7fe8d2;
  border: 1px solid rgba(45,212,176,0.4);
}
.ev-row.promoted .ev-edit {
  background: rgba(255,255,255,0.1); color: #e8f3f4;
  border-color: rgba(255,255,255,0.28);
}

.ev-dense .ev-row.promoted { padding: 0 16px 0 0; }

/* Wyróżnione na stronie wydarzenia — mini-landing hero */
.ev-landing {
  position: relative; overflow: hidden; border-radius: var(--rad-lg);
  margin: 14px 0 30px; min-height: 320px; display: flex; align-items: stretch;
  color: #f2f8f9; background: var(--primary-d);
  box-shadow: 0 2px 6px rgba(8,50,62,0.22), 0 24px 52px -20px rgba(8,50,62,0.55);
}
.ev-landing .bg { position: absolute; inset: 0; }
.ev-landing .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; display: block; }
.ev-landing .bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 130% at 0% 100%, rgba(20,160,133,0.28), transparent 55%),
    linear-gradient(97deg, #08323e 0%, rgba(8,50,62,0.94) 38%, rgba(8,50,62,0.4) 72%, rgba(8,50,62,0.55) 100%);
}
.ev-landing .inner {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  gap: 18px; padding: 42px 46px; width: min(680px, 72%);
}
.ev-landing .chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-landing h1 {
  margin: 0; font-size: 38px; font-weight: 700; line-height: 1.12;
  letter-spacing: -0.02em; color: #fff; text-wrap: balance;
}
.ev-landing .facts {
  display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(242,248,249,0.72);
}
.ev-landing .facts span { display: inline-flex; align-items: center; gap: 7px; }
.ev-landing .facts b { color: #e8f3f4; font-weight: 600; }
.ev-landing .facts .ic { display: inline-flex; }
.ev-landing .facts .ic svg { width: 15px; height: 15px; }
.ev-landing .cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ev-landing .cta .big,
.ev-landing .cta .ghost {
  height: 46px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; white-space: nowrap;
  transition: background 0.12s, transform 0.12s, border-color 0.12s;
}
.ev-landing .cta .big { padding: 0 24px; background: #fff; color: var(--primary); }
.ev-landing .cta .big:hover { background: #d9f3ec; }
.ev-landing .cta .big:active { transform: scale(0.98); }
.ev-landing .cta .big.done { background: rgba(45,212,176,0.16); color: #7fe8d2; border: 1px solid rgba(45,212,176,0.4); }
.ev-landing .cta .ghost { padding: 0 18px; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.32); font-weight: 600; }
.ev-landing .cta .ghost:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.14); }
.ev-landing .cta .big svg, .ev-landing .cta .ghost svg { width: 16px; height: 16px; }
/* inwersja chipów i countdown na ciemnym tle */
.ev-landing .ev-type.live   { background: rgba(45,212,176,0.18); color: #7fe8d2; }
.ev-landing .ev-type.course { background: rgba(255,255,255,0.13); color: #d7ecf1; }
.ev-landing .ev-type.onsite { background: rgba(204,50,102,0.26); color: #ffb1cb; }
.ev-landing .ev-topic { color: rgba(242,248,249,0.58); }
.ev-landing .ev-cd { background: rgba(255,255,255,0.12); color: #dfeef0; }
.ev-landing .ev-cd.soon { background: rgba(204,50,102,0.32); color: #ffb1cb; }
.ev-landing .ev-cd.live { background: rgba(45,212,176,0.2); color: #7fe8d2; }
.ev-landing .ev-edit { background: rgba(255,255,255,0.1); color: #e8f3f4; border-color: rgba(255,255,255,0.28); }
@media (max-width: 860px) {
  .ev-landing { min-height: 0; margin-bottom: 20px; }
  .ev-landing .inner { width: 100%; padding: 150px 20px 24px; justify-content: flex-end; }
  .ev-landing .bg::after {
    background: linear-gradient(180deg, rgba(8,50,62,0.15) 0%, rgba(8,50,62,0.85) 45%, #08323e 100%);
  }
  .ev-landing h1 { font-size: 26px; }
}

/* Treść pod hero — sekcje w stylu landingu */
.ev-detail.landing .block { margin-top: 44px; }
.ev-detail.landing .block h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 23px; letter-spacing: -0.015em;
}
.ev-detail.landing .prose { font-size: 17px; line-height: 1.65; max-width: 62ch; }
.ev-detail.landing .ev-learn { gap: 12px; }
.ev-detail.landing .ev-learn li {
  border: 1px solid rgba(20,160,133,0.22);
  background: linear-gradient(160deg, rgba(20,160,133,0.07), var(--card) 60%);
  padding: 16px 18px; font-weight: 600;
}
.ev-detail.landing .ev-learn li .ic {
  background: var(--accent); color: #fff; border-radius: 50%;
}
/* Program jako oś czasu */
.ev-detail.landing .ev-program { border: none; background: transparent; padding: 0; position: relative; }
.ev-detail.landing .ev-program::before {
  content: ''; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--primary-2));
  border-radius: 2px; opacity: 0.35;
}
.ev-detail.landing .ev-program .pr {
  border: none; background: transparent; position: relative;
  padding: 10px 0 10px 32px; align-items: baseline;
}
.ev-detail.landing .ev-program .pr::before {
  content: ''; position: absolute; left: 0; top: 16px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--card); border: 3px solid var(--accent);
}
.ev-detail.landing .ev-program .pr .t {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent-2); font-weight: 600;
}
.ev-detail.landing .ev-program .pr .l { font-size: 15.5px; font-weight: 600; }
/* Prowadzący — wyraźniejsza karta */
.ev-detail.landing .ev-speaker {
  border: 1px solid var(--line); border-radius: var(--rad-lg);
  background: var(--card); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.ev-detail.landing .ev-speaker .av {
  width: 58px; height: 58px; font-size: 19px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
}
/* Dolny pas CTA */
.ev-endcta {
  margin-top: 48px; padding: 24px 28px; border-radius: var(--rad-lg);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  color: #f2f8f9;
  background:
    radial-gradient(80% 150% at 100% 0%, rgba(20,160,133,0.25), transparent 55%),
    linear-gradient(112deg, var(--primary-d), var(--primary) 70%);
  box-shadow: 0 14px 34px -16px rgba(8,50,62,0.5);
}
.ev-endcta .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-endcta .txt b { font-size: 18px; letter-spacing: -0.01em; color: #fff; }
.ev-endcta .txt span { font-size: 13px; color: rgba(242,248,249,0.68); }
.ev-endcta .big {
  margin-left: auto; height: 46px; padding: 0 24px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14.5px; font-weight: 700; background: #fff; color: var(--primary);
  transition: background 0.12s, transform 0.12s;
}
.ev-endcta .big:hover { background: #d9f3ec; }
.ev-endcta .big:active { transform: scale(0.98); }
.ev-endcta .big.done { background: rgba(45,212,176,0.16); color: #7fe8d2; border: 1px solid rgba(45,212,176,0.4); }
.ev-endcta .big svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .ev-endcta { flex-direction: column; align-items: flex-start; }
  .ev-endcta .big { margin-left: 0; }
}

/* segmented Lista / Miesiąc */
.ev-switch {
  display: inline-flex; padding: 4px; gap: 3px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.ev-switch button {
  height: 38px; padding: 0 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.12s, color 0.12s;
}
.ev-switch button .ic { width: 16px; height: 16px; color: var(--ink-3); }
.ev-switch button:hover { color: var(--ink); }
.ev-switch button.on { background: var(--primary); color: #fff; }
.ev-switch button.on .ic { color: #fff; }

/* ── Filter bar ───────────────────────────────────────────────────────── */
.ev-filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 0 4px; margin-bottom: 8px;
  border-top: 1px solid var(--line);
}
.ev-seg {
  display: inline-flex; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 3px; gap: 2px;
}
.ev-seg button {
  height: 32px; padding: 0 13px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.12s, color 0.12s;
}
.ev-seg button:hover { color: var(--ink); }
.ev-seg button .swatch { width: 8px; height: 8px; border-radius: 50%; }
.ev-seg button.on { background: var(--bg-2); color: var(--ink); }
.ev-seg button.on.t-live   { background: rgba(20,160,133,0.14); color: var(--ev-live); }
.ev-seg button.on.t-course { background: rgba(29,115,139,0.12); color: var(--ev-course); }
.ev-seg button.on.t-onsite { background: rgba(204,50,102,0.13); color: var(--ev-onsite); }

.ev-select {
  height: 38px; padding: 0 12px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.ev-select .ic { width: 15px; height: 15px; color: var(--ink-3); }
.ev-select select {
  border: 0; background: transparent; font: inherit; font-weight: 500;
  color: var(--ink); outline: none; cursor: pointer; padding-right: 2px;
}

.ev-topic-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.ev-tchip {
  height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.ev-tchip:hover { border-color: var(--line-2); color: var(--ink); }
.ev-tchip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.ev-saved-toggle {
  margin-left: auto; height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.ev-saved-toggle .ic { width: 16px; height: 16px; }
.ev-saved-toggle:hover { border-color: var(--line-2); color: var(--ink); }
.ev-saved-toggle.on { background: var(--accent-soft); border-color: rgba(20,160,133,0.4); color: var(--accent-2); }
.ev-saved-toggle.on .ic { color: var(--accent-2); }

.ev-count {
  font-family: 'Source Sans 3', sans-serif; font-size: 11.5px;
  color: var(--ink-3); letter-spacing: 0.04em; padding: 16px 2px 4px;
}

/* ── Agenda (list view) ───────────────────────────────────────────────── */
.ev-daygroup { margin-top: 10px; }
.ev-dayhead {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 0 12px;
}
.ev-dayhead .d-num {
  font-family: 'Source Sans 3', sans-serif; font-size: 30px; font-weight: 600;
  color: var(--primary); line-height: 1; min-width: 1.6ch; text-align: right;
}
.ev-dayhead .d-wd { font-size: 15px; font-weight: 600; color: var(--ink); }
.ev-dayhead .d-mo { font-size: 13px; color: var(--ink-3); }
.ev-dayhead .d-today {
  font-family: 'Source Sans 3', sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2);
  background: var(--accent-soft); padding: 3px 8px; border-radius: 999px;
}
.ev-dayhead .d-line { flex: 1; height: 1px; background: var(--line); }

.ev-row {
  display: grid; grid-template-columns: 132px minmax(0,1fr) auto;
  gap: 18px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--rad-lg); padding: 18px 20px; margin-bottom: 10px;
  position: relative; overflow: hidden;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}
.ev-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--bar, var(--primary));
}
.ev-row.t-live   { --bar: var(--ev-live); }
.ev-row.t-course { --bar: var(--ev-course); }
.ev-row.t-onsite { --bar: var(--ev-onsite); }
a.ev-row { cursor: pointer; }
a.ev-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.ev-row .when { display: flex; flex-direction: column; gap: 8px; padding-left: 6px; }
.ev-row .when .time { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ev-row .when .dur { font-family: 'Source Sans 3', sans-serif; font-size: 11px; color: var(--ink-3); }
.ev-cd {
  align-self: flex-start; margin-top: 2px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.03em; background: var(--bg-2); color: var(--ink-2);
}
.ev-cd.upcoming { background: var(--bg-2); color: var(--ink-2); }
.ev-cd.soon { background: rgba(204,50,102,0.13); color: var(--ev-onsite); }
.ev-cd.live { background: rgba(20,160,133,0.16); color: var(--accent-2); }
.ev-cd.past { background: var(--bg-2); color: var(--ink-4); }
.ev-cd .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(20,160,133,0.6); animation: pulse 1.8s infinite;
}

.ev-row .body { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.ev-row .toprow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev-type {
  display: inline-flex; align-items: center; gap: 6px;
  height: 23px; padding: 0 9px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.ev-type .ic { width: 13px; height: 13px; }
.ev-type.live   { background: rgba(20,160,133,0.12); color: var(--ev-live); }
.ev-type.course { background: rgba(29,115,139,0.12); color: var(--ev-course); }
.ev-type.onsite { background: rgba(204,50,102,0.12); color: var(--ev-onsite); }
.ev-topic {
  font-family: 'Source Sans 3', sans-serif; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.ev-pts {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--primary);
}
.ev-pts .ic { width: 14px; height: 14px; }
.ev-row h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.ev-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.ev-meta .who { color: var(--ink-2); font-weight: 500; }
.ev-meta .ic { width: 14px; height: 14px; color: var(--ink-3); }
/* Ikony meta wydarzeń: span .ic to inline (ignoruje width/height), svg=18px na baseline → przesunięcie.
   inline-flex na spanie egzekwuje rozmiar 13/14px, display:block na svg usuwa lukę baseline (#17). */
.ev-type .ic, .ev-pts .ic, .ev-meta .ic { display: inline-flex; align-items: center; }
.ev-type .ic svg, .ev-pts .ic svg, .ev-meta .ic svg { display: block; width: 100%; height: 100%; }
.ev-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

.ev-row .actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; justify-content: center; }
.ev-save {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-3);
  display: grid; place-items: center; transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.ev-save:hover { border-color: var(--line-2); color: var(--ink-2); }
.ev-save.on { color: var(--accent-2); border-color: rgba(20,160,133,0.4); background: var(--accent-soft); }
.ev-btn {
  height: 40px; padding: 0 18px; border-radius: 10px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.12s, transform 0.12s, border-color 0.12s;
}
.ev-btn .ic { width: 15px; height: 15px; }
.ev-btn.primary { background: var(--primary); color: #fff; }
.ev-btn.primary:hover { background: var(--primary-d); }
.ev-btn.primary:active { transform: scale(0.98); }
.ev-btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.ev-btn.ghost:hover { border-color: var(--line-2); color: var(--ink); }
.ev-btn.done { background: var(--accent-soft); color: var(--accent-2); }
.ev-cta-row { display: flex; align-items: center; gap: 8px; }

.ev-dense .ev-row { padding: 12px 16px; margin-bottom: 7px; }
.ev-dense .ev-row .body { gap: 6px; }
.ev-dense .ev-row h3 { font-size: 15.5px; }
.ev-dense .ev-dayhead { padding: 12px 0 8px; }
.ev-dense .ev-dayhead .d-num { font-size: 24px; }

.ev-empty {
  text-align: center; padding: 60px 24px;
  border: 1px dashed var(--line-2); border-radius: var(--rad-lg);
  background: var(--card); color: var(--ink-3); margin-top: 14px;
}
.ev-empty h4 { font-size: 16px; color: var(--ink); margin: 0 0 6px; }
.ev-empty p { font-size: 13.5px; margin: 0; }

/* ── Month (calendar) view ────────────────────────────────────────────── */
.ev-cal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--rad-lg); overflow: hidden; margin-top: 12px;
}
.ev-cal-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.ev-cal-bar h2 {
  margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em;
  text-transform: capitalize;
}
.ev-cal-bar h2 .yr { color: var(--ink-3); font-weight: 500; }
.ev-cal-nav { display: inline-flex; gap: 6px; }
.ev-cal-nav button {
  width: 36px; height: 36px; border-radius: 9px; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center; transition: border-color 0.12s, color 0.12s;
}
.ev-cal-nav button:hover { border-color: var(--line-2); color: var(--ink); }
.ev-cal-today {
  height: 36px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
}
.ev-cal-today:hover { border-color: var(--line-2); color: var(--ink); }
.ev-cal-legend { margin-left: auto; display: flex; gap: 14px; }
.ev-cal-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.ev-cal-legend i { width: 9px; height: 9px; border-radius: 50%; }

.ev-cal-cols {
  display: grid; grid-template-columns: repeat(7, minmax(0,1fr));
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.ev-cal-cols div {
  padding: 9px 12px; font-family: 'Source Sans 3', sans-serif; font-size: 10.5px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.ev-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.ev-cell {
  min-height: 116px; padding: 8px 8px 10px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.ev-cell:nth-child(7n) { border-right: 0; }
.ev-cell.out { background: var(--bg); }
.ev-cell .dnum {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
}
.ev-cell.out .dnum { color: var(--ink-4); }
.ev-cell.is-today .dnum { background: var(--primary); color: #fff; }
.ev-chip {
  display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%;
  padding: 4px 7px; border-radius: 6px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color 0.12s, transform 0.12s;
}
.ev-chip:hover { border-color: var(--line-2); transform: translateX(1px); }
.ev-chip i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ev-chip.t-live i   { background: var(--ev-live); }
.ev-chip.t-course i { background: var(--ev-course); }
.ev-chip.t-onsite i { background: var(--ev-onsite); }
.ev-chip .ct { font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.ev-chip .cm { font-family: 'Source Sans 3', sans-serif; font-size: 10px; color: var(--ink-3); flex-shrink: 0; }
.ev-more { font-size: 11px; color: var(--primary-2); font-weight: 600; padding: 2px 7px; }

/* ── Detail page (Wydarzenie.html) ────────────────────────────────────── */
.ev-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev-back {
  display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 16px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.ev-back .ic { width: 17px; height: 17px; }
.ev-back:hover { color: var(--ink); }
.ev-edit .ic, .ev-new-btn .ic { width: 16px; height: 16px; }
/* Przycisk „Dodaj wydarzenie" (#34) w nagłówku archiwum — organizator. */
.ev-new-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; }

.ev-detail { display: grid; grid-template-columns: minmax(0,1fr) 348px; gap: 32px; align-items: start; }

.ev-dt-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ev-detail h1 {
  margin: 0 0 18px; font-size: 38px; line-height: 1.08; font-weight: 600;
  letter-spacing: -0.025em; max-width: 20ch; text-wrap: balance;
}
.ev-keyfacts {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--rad-lg); overflow: hidden; margin-bottom: 26px;
}
.ev-keyfacts .kf { background: var(--card); padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.ev-keyfacts .kf .ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(13,75,92,0.08); color: var(--primary);
}
.ev-keyfacts .kf .lbl { font-family: 'Source Sans 3', sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.ev-keyfacts .kf .val { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ev-keyfacts .kf .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.ev-detail .block { margin-bottom: 30px; }
.ev-detail .block h2 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.ev-detail .block h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ev-detail .prose { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 64ch; }

.ev-learn { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ev-learn li {
  list-style: none; display: flex; gap: 11px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 14px; line-height: 1.45; color: var(--ink);
}
.ev-learn li .ic {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2);
}
.ev-learn li .ic svg { width: 13px; height: 13px; }

.ev-program { border: 1px solid var(--line); border-radius: var(--rad-lg); overflow: hidden; background: var(--card); }
.ev-program .pr {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px;
  padding: 15px 18px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.ev-program .pr:last-child { border-bottom: 0; }
.ev-program .pr .t { font-family: 'Source Sans 3', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--primary-2); }
.ev-program .pr .l { font-size: 14.5px; color: var(--ink); line-height: 1.4; }

.ev-speaker {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rad-lg); padding: 18px 20px;
}
.ev-speaker .av {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.ev-speaker .nm { font-size: 16px; font-weight: 600; }
.ev-speaker .rl { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* sticky register card */
.ev-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.ev-regcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rad-xl);
  padding: 22px; box-shadow: var(--shadow-md);
}
.ev-regcard .cd-banner {
  display: flex; align-items: center; gap: 10px; margin: -22px -22px 18px;
  padding: 14px 22px; font-size: 13.5px; font-weight: 600;
  background: var(--bg-2); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.ev-regcard .cd-banner.soon { background: rgba(204,50,102,0.1); color: var(--ev-onsite); }
.ev-regcard .cd-banner.live { background: rgba(20,160,133,0.13); color: var(--accent-2); }
.ev-regcard .cd-banner .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(20,160,133,0.6); animation: pulse 1.8s infinite; }
.ev-regcard .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ev-regcard .price .free { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.ev-regcard .price .note { font-size: 13px; color: var(--ink-3); }
.ev-regcard .ptsline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.ev-regcard .ptsline .ic { width: 16px; height: 16px; }
.ev-regcard .big {
  width: 100%; height: 50px; border-radius: 12px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; transition: background 0.12s, transform 0.12s;
}
.ev-regcard .big:hover { background: var(--primary-d); }
.ev-regcard .big:active { transform: scale(0.99); }
.ev-regcard .big.done { background: var(--accent-soft); color: var(--accent-2); }
.ev-regcard .sub-actions { display: flex; gap: 8px; margin-top: 10px; }
.ev-regcard .sub-actions button {
  flex: 1; height: 42px; border-radius: 10px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.ev-regcard .sub-actions button:hover { border-color: var(--line-2); color: var(--ink); }
.ev-regcard .sub-actions button.on { background: var(--accent-soft); border-color: rgba(20,160,133,0.4); color: var(--accent-2); }
.ev-regcard .sub-actions button .ic { width: 15px; height: 15px; }
/* „Dodaj do kalendarza" — dropdown (Google / Outlook / Apple .ics) */
.ev-regcard .sub-actions .ev-cal { flex: 1; position: relative; }
.ev-regcard .sub-actions .ev-cal-btn { width: 100%; }
.ev-cal-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(10,37,48,0.14); padding: 6px; }
.ev-cal-menu[hidden] { display: none; }
.ev-cal-h { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 7px 10px 6px; }
.ev-regcard .sub-actions .ev-cal-opt { flex: none; width: 100%; height: auto; justify-content: flex-start; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: 13.5px; color: var(--ink); }
.ev-regcard .sub-actions .ev-cal-opt:hover { background: var(--bg-2); border-color: transparent; }
.ev-cal-opt svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.ev-cap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ev-cap .cap-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.ev-cap .cap-meta b { color: var(--ink); font-weight: 600; }
.ev-cap .bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.ev-cap .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }

.ev-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ev-detail { grid-template-columns: 1fr; }
  .ev-aside { position: static; }
  .ev-related { grid-template-columns: 1fr; }
}
/* wyróżnione: układ stacked wcześniej, bo 4 kolumny potrzebują szerokości */
@media (max-width: 1080px) {
  .ev-row.promoted { grid-template-columns: 1fr; padding: 0 18px 18px; }
  .ev-row.promoted .ev-thumb { grid-column: 1; grid-row: 1; min-height: 0; height: 180px; margin: 0 -18px 4px; }
  .ev-row.promoted .ev-thumb::after { background: linear-gradient(180deg, transparent 55%, rgba(8,50,62,0.6) 100%); }
  .ev-row.promoted .when { grid-column: 1; grid-row: 2; padding: 0; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .ev-row.promoted .body { grid-column: 1; grid-row: 3; padding: 0; }
  .ev-row.promoted .actions { grid-column: 1; grid-row: 4; padding: 0; flex-direction: row; align-items: center; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .ev-head h1 { font-size: 28px; }
  .ev-row { grid-template-columns: 1fr; gap: 14px; }
  .ev-row .when { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
  .ev-row .actions { flex-direction: row; align-items: center; justify-content: flex-start; }
  .ev-saved-toggle { margin-left: 0; }
  .ev-keyfacts { grid-template-columns: 1fr; }
  .ev-learn { grid-template-columns: 1fr; }
  .ev-cell { min-height: 92px; }
  .ev-chip .ct { display: none; }
  .ev-detail h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .ev-cal { overflow-x: auto; }
  .ev-cal-grid, .ev-cal-cols { min-width: 540px; }
  .ev-cal-legend { display: none; }
}

/* Mój plan (F10) — przycisk „Dopisz do planu"/„W planie" + lista zaplanowanych. */
.of-plan-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.of-plan-btn.on svg { color: #fff; }
.of-plan-btn:disabled { opacity: .6; cursor: default; }
.mp-list { display: flex; flex-direction: column; gap: 10px; }
.mp-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--rad-lg); overflow: hidden; }
.mp-item .ev-row { border: 0; border-radius: 0; }
.mp-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 14px; }

/* ── #29–#33: filtr tematów + switch widoków + guardy [hidden] (JS-controlled) ── */
/* Bazowy wygląd przycisku planu (dotąd tylko stan .on) — outline, spójny w liście i na single. */
.of-plan-btn { background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.of-plan-btn:hover { border-color: var(--primary-2); color: var(--primary); }
.of-plan-btn.on:hover { background: var(--primary-d); }
/* Chip aktywnego tematu — spójnie z .ev-seg (paleta marki). */
.ev-tchip.on:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }
/* Guardy [hidden] — elementy z display:grid/flex/inline-flex nie chowają się bez tego. */
.ev-row[hidden],
.ev-daygroup[hidden],
.ev-agenda[hidden],
.ev-cal-wrap[hidden],
.ev-plan-intro[hidden],
.ev-select[hidden],
.ev-count[hidden],
.ev-empty[hidden],
[data-ev-past][hidden],
.ev-switch-n[hidden] { display: none !important; }
