/* portal-spotlight.css — sonda (przed i po głosie) oraz „Kalendarz wydarzeń” w miejscu sondy (portal-spotlight.js).
   Kolory z motywu portalu (--p-*), więc tryb dzienny i nocny (body.is-night) działają bez osobnych reguł. */
.tvml-spot { display: flex; flex-direction: column;
  /* Tekst w kolorze akcentu: w dzień przyciemniony (kontrast AA na jasnym tle), w nocy pełny akcent. */
  --tspot-accent-text: color-mix(in srgb, var(--p-accent) 60%, #000); }
body.is-night .tvml-spot { --tspot-accent-text: var(--p-accent); }
.tvml-spot .side-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* Linki: wyżej niż .portal-main a:not(.st) z portal.css (kolor linku motywu). */
.tvml-spot a.tspot-head-link:not(.st) { font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: var(--tspot-accent-text); text-decoration: none; }
.tvml-spot a.tspot-head-link:not(.st):hover { text-decoration: underline; }
.tspot-loading { padding: 18px; font-size: .8rem; color: var(--p-text-muted); }
.tspot-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Sonda: formularz ── */
.tspot-form, .tspot-results { padding: 14px 18px 16px; }
.tspot-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tspot-q { display: block; padding: 0; margin: 0 0 12px; font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--p-text); }
.tspot-opts { display: flex; flex-direction: column; gap: 8px; }
.tspot-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--p-border); border-radius: 10px;
  background: var(--p-surface-alt, transparent); cursor: pointer; font-size: .85rem; color: var(--p-text); transition: border-color .15s, background .15s, box-shadow .15s; }
.tspot-opt:hover { border-color: var(--p-accent); }
.tspot-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tspot-radio { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--p-text-muted); box-sizing: border-box; position: relative; transition: border-color .15s; }
.tspot-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--p-accent); transform: scale(0); transition: transform .15s; }
.tspot-opt input:checked ~ .tspot-radio { border-color: var(--p-accent); }
.tspot-opt input:checked ~ .tspot-radio::after { transform: scale(1); }
.tspot-opt:has(input:checked) { border-color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 10%, transparent); font-weight: 700; }
.tspot-opt input:focus-visible ~ .tspot-radio { outline: 3px solid var(--p-accent); outline-offset: 3px; }
.tspot-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-accent) 35%, transparent); }
.tspot-label { line-height: 1.3; }
.tspot-form.is-invalid .tspot-opt { border-color: var(--p-red, #e11d2e); }
.tspot-submit { display: block; width: 100%; margin-top: 12px; padding: 11px; border: 0; border-radius: 10px; background: var(--p-navy); color: #fff; font: inherit; font-weight: 800;
  font-size: .85rem; cursor: pointer; transition: background .15s; }
body.is-night .tspot-submit { background: var(--p-accent); color: #111; }
.tspot-submit:hover:not(:disabled) { background: var(--p-navy-600); }
body.is-night .tspot-submit:hover:not(:disabled) { background: var(--p-accent); filter: brightness(1.08); }
.tspot-submit:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.tspot-submit:disabled { opacity: .7; cursor: progress; }
.tspot-msg { margin: 8px 0 0; min-height: 0; font-size: .78rem; font-weight: 600; color: var(--p-red, #e11d2e); }
.tspot-msg:empty { display: none; }
.tspot-msg.is-thanks { color: var(--tspot-accent-text); }
.tspot-until { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .74rem; color: var(--p-text-muted); }
.tspot-until svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }

/* ── Sonda: wyniki ── */
.tspot-res { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tspot-res-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .84rem; color: var(--p-text-soft); }
.tspot-res-item.is-lead .tspot-res-row, .tspot-res-item.is-mine .tspot-res-row { color: var(--p-text); font-weight: 700; }
.tspot-pct { font-weight: 800; color: var(--p-text); font-variant-numeric: tabular-nums; }
.tspot-mine { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  vertical-align: 1px; background: var(--p-accent); color: #111; }
.tspot-bar { height: 8px; margin-top: 5px; border-radius: 6px; background: var(--p-border-soft); overflow: hidden; }
.tspot-bar i { display: block; height: 100%; border-radius: 6px; background: var(--p-text-muted); transition: width .6s var(--p-ease, ease); }
.tspot-res-item.is-lead .tspot-bar i, .tspot-res-item.is-mine .tspot-bar i { background: var(--p-accent); }
.tspot-total { margin: 12px 0 0; font-size: .76rem; font-weight: 700; color: var(--p-text-soft); }

/* ── Kalendarz wydarzeń ── */
.tspot-cal { padding: 12px 16px 16px; }
.tspot-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tspot-cal-month { font-size: .92rem; font-weight: 800; color: var(--p-text); }
.tspot-nav-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--p-border); background: transparent;
  color: var(--p-text); cursor: pointer; padding: 0; }
.tspot-nav-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tspot-nav-btn:hover:not(:disabled) { border-color: var(--p-accent); color: var(--tspot-accent-text); }
.tspot-nav-btn:disabled { opacity: .3; cursor: default; }
.tspot-nav-btn:focus-visible, .tspot-day:focus-visible, .tspot-ev:focus-visible, .tspot-more:focus-visible, .tspot-empty-cta:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.tspot-cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tspot-cal-grid th { padding: 4px 0; font-size: .64rem; font-weight: 800; color: var(--p-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.tspot-cal-grid th abbr { text-decoration: none; }
.tspot-cal-grid td { padding: 1px; text-align: center; }
.tspot-day { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; max-width: 100%; border-radius: 50%;
  font-size: .78rem; font-weight: 600; color: var(--p-text-soft); border: 0; background: transparent; padding: 0; font-family: inherit; box-sizing: border-box; }
.tspot-day.is-we { color: var(--p-text); }
.tspot-day.is-past { color: var(--p-text-muted); opacity: .55; }
.tspot-day.is-today { box-shadow: inset 0 0 0 1.5px var(--p-accent); color: var(--p-text); font-weight: 800; }
button.tspot-day { cursor: pointer; font-weight: 800; color: var(--p-text); background: color-mix(in srgb, var(--p-accent) 16%, transparent); }
button.tspot-day:hover { background: color-mix(in srgb, var(--p-accent) 30%, transparent); }
button.tspot-day.is-selected { background: var(--p-accent); color: #111; }
.tspot-dot { position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--tspot-accent-text); }
button.tspot-day.is-selected .tspot-dot { background: #111; }

.tspot-ev-head { margin: 12px 0 8px; padding-top: 10px; border-top: 1px solid var(--p-border); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--p-text-muted); }
.tspot-ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tvml-spot a.tspot-ev:not(.st) { display: flex; align-items: center; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .15s; }
.tspot-ev:hover { background: var(--p-surface-alt, rgba(127,127,127,.08)); }
.tspot-ev-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--p-navy); display: flex; align-items: center; justify-content: center; }
.tspot-ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tspot-ev-date { display: flex; flex-direction: column; align-items: center; line-height: 1; color: #fff; }
.tspot-ev-date b { font-size: 1.25rem; font-weight: 900; color: var(--p-accent); }
.tspot-ev-date small { margin-top: 3px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--p-on-navy-soft, #9fb2d4); }
.tspot-ev-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tspot-ev-title { font-size: .86rem; font-weight: 700; line-height: 1.3; color: var(--p-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tspot-ev:hover .tspot-ev-title { color: var(--tspot-accent-text); }
.tspot-ev-meta { font-size: .72rem; font-weight: 700; color: var(--tspot-accent-text); text-transform: lowercase; }
.tspot-ev-loc { display: flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--p-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tspot-ev-loc svg { width: 12px; height: 12px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.tspot-ev-none { margin: 4px 0; font-size: .8rem; color: var(--p-text-muted); }
.tvml-spot a.tspot-more:not(.st) { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 800; color: var(--tspot-accent-text); text-decoration: none; }
.tvml-spot a.tspot-more:not(.st):hover { text-decoration: underline; }

.tspot-empty { margin-top: 12px; padding: 16px 12px; border: 1.5px dashed var(--p-border); border-radius: 12px; text-align: center; color: var(--p-text-soft); }
.tspot-empty svg { width: 34px; height: 34px; fill: none; stroke: var(--p-accent); stroke-width: 1.7; stroke-linecap: round; }
.tspot-empty p { margin: 8px 0 12px; font-size: .8rem; line-height: 1.45; }
.tspot-empty strong { color: var(--p-text); }
.tvml-spot a.tspot-empty-cta:not(.st) { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--p-accent); color: #111; font-size: .78rem; font-weight: 800; text-decoration: none; }
.tspot-empty-cta:hover { filter: brightness(1.05); }

@media (max-width: 719px) {
  .tspot-day { width: 36px; height: 36px; font-size: .84rem; }
  .tspot-opt { padding: 12px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tspot-bar i, .tspot-opt, .tspot-radio::after { transition: none; }
}
