/* =====================================================================
   [ts-prehled] – sekce „Najděte si svůj program“ (homepage)
   Vše pod .tsp, reset (0,1,1) a komponenty (0,2,0) jako u [ts-lineup],
   aby je nepřebily styly šablony (Salient).
   ===================================================================== */
@font-face { font-family: "TSL Azeret"; src: url("fonts/Azeret-Regular.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "TSL Azeret"; src: url("fonts/Azeret-Bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

.tsp {
  --tsp-red: #ee263e;
  --tsp-grey: #efefef;
  display: block;
  /* Bez vodorovného odsazení: okraje panelu lícují s ostatními bloky stránky. */
  padding: 12px 0;
  color: #111;
  font-family: "Azeret", "TSL Azeret", system-ui, sans-serif;
  font-size: 16px;
  line-height: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.tsp *, .tsp *::before, .tsp *::after { box-sizing: border-box; }
.tsp button { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-transform: none; box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tsp.tsp h1, .tsp.tsp h2, .tsp.tsp h3, .tsp.tsp h4, .tsp.tsp h5, .tsp.tsp h6 { margin: 0; padding: 0; color: inherit; font-family: inherit; letter-spacing: normal; text-transform: none; }
.tsp p, .tsp ul, .tsp li { margin: 0; padding: 0; color: inherit; font-family: inherit; letter-spacing: normal; text-transform: none; }
.tsp ul { list-style: none; }
/* Salient: „ul li { list-style: disc }“ */
.tsp li { list-style: none; margin: 0; padding: 0; background: none; }
.tsp li::before, .tsp li::marker { content: none; }
.tsp span { color: inherit; }
.tsp a { color: inherit; text-decoration: none; box-shadow: none; border: 0; }
.tsp a:focus-visible, .tsp button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

.tsp .tsp-panel {
  max-width: 1520px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 36px;
  padding: clamp(28px, 5vw, 72px) clamp(16px, 3vw, 48px);
  background: #fff; border-radius: 14px;
}

/* Hlavička */
.tsp .tsp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.tsp .tsp-head__text { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.tsp .tsp-title.tsp-title { font-size: clamp(40px, 6vw, 88px); font-weight: 700; line-height: .95; letter-spacing: -0.045em; }
.tsp .tsp-perex.tsp-perex { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: #333; text-wrap: pretty; }
.tsp .tsp-tabs { display: flex; gap: 4px; padding: 5px; background: var(--tsp-grey); border-radius: 999px; }
.tsp .tsp-tabs button { padding: 12px 22px; border-radius: 999px !important; font-size: 16px; font-weight: 700; line-height: 1.2; background: transparent; color: #111; }
.tsp .tsp-tabs button[aria-selected="true"] { background: #111; color: #fff; }
.tsp [hidden] { display: none !important; }

/* Podle dne */
.tsp .tsp-days-pane { display: flex; flex-direction: column; gap: 24px; }
.tsp .tsp-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tsp .tsp-day {
  display: flex; flex-direction: column; gap: 28px; min-height: 200px;
  padding: 20px 20px 22px; border-radius: 12px;
  background: var(--tsp-grey); color: #111;
  transition: background-color .15s ease, color .15s ease;
  container-type: inline-size;
}
.tsp .tsp-day--last { background: var(--tsp-red); }
.tsp .tsp-day:hover, .tsp .tsp-day:focus-visible { background: #111; color: #fff; }
.tsp .tsp-day__name { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: #fff; color: #111; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* Datum nesmí přetéct úzkou kartu: velikost je omezená i šířkou karty (cqi). */
.tsp .tsp-day__date { margin-top: auto; font-size: min(clamp(48px, 5vw, 72px), 40cqi); font-weight: 700; line-height: .9; letter-spacing: -0.05em; }
.tsp .tsp-day__note { font-size: 15px; line-height: 1.3; }

.tsp .tsp-cta {
  align-self: flex-start; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 22px; border-radius: 999px;
  background: #111; color: #fff; font-size: 16px; font-weight: 700;
}
.tsp .tsp-cta:hover { background: var(--tsp-red); color: #111; }
.tsp .tsp-cta__short { display: none; }
.tsp .tsp-cta__arrow { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tsp-red); color: #111; font-size: 14px; }

/* Podle místa */
.tsp .tsp-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; align-items: start; }
.tsp .tsp-places__map { display: flex; flex-direction: column; gap: 16px; }
.tsp .tsp-hint.tsp-hint { font-size: 18px; color: #333; }

.tsp .tsp-map { position: relative; padding: clamp(16px, 3vw, 32px) clamp(12px, 2.5vw, 28px) clamp(56px, 7vw, 72px); background: #111; border-radius: 12px; }
.tsp .tsp-map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.tsp .tsp-map__kraj path {
  fill: #2a2a2a; stroke: #111; stroke-width: 2; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill .15s ease;
  cursor: pointer;
}
.tsp .tsp-map__kraj.is-empty path { fill: #1e1e1e; }
.tsp .tsp-map__kraj:hover path, .tsp .tsp-map__kraj:focus path, .tsp .tsp-map__kraj.is-hot path { fill: var(--tsp-red); }
.tsp .tsp-map__kraj:focus { outline: none; }
.tsp .tsp-map__kraj:focus-visible path { stroke: #fff; }
.tsp .tsp-map__info {
  position: absolute; left: clamp(12px, 2.5vw, 28px); bottom: clamp(14px, 2vw, 22px);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  color: #fff; pointer-events: none;
}
.tsp .tsp-map__info strong { font-size: 17px; font-weight: 700; }
.tsp .tsp-map__info span { font-size: 14px; color: #aaa; }

.tsp .tsp-geo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.tsp .tsp-btn { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 999px !important; background: #111; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; }
.tsp .tsp-btn:hover { background: var(--tsp-red); color: #111; }
.tsp .tsp-btn--red { background: var(--tsp-red); color: #111; }
.tsp .tsp-btn--red:hover { background: #111; color: #fff; }
.tsp .tsp-btn:disabled { cursor: progress; opacity: .8; }
.tsp .tsp-geo__note { max-width: 340px; font-size: 14px; line-height: 1.4; color: #555; }
.tsp .tsp-geo__note.is-error { color: #b3001b; }

.tsp .tsp-regions { display: flex; flex-direction: column; gap: 4px; }
.tsp .tsp-region {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 18px; border-radius: 999px;
  background: var(--tsp-grey); color: #111; font-size: 17px;
  transition: background-color .15s ease;
}
.tsp .tsp-region:hover, .tsp .tsp-region:focus-visible, .tsp .tsp-region.is-hot { background: var(--tsp-red); color: #111; }
.tsp .tsp-region__name { font-weight: 700; }
.tsp .tsp-region__meta { flex: 0 0 auto; font-size: 14px; opacity: .75; text-align: right; white-space: nowrap; }
.tsp .tsp-region.is-empty .tsp-region__meta { opacity: .5; }

/* Před zveřejněním programu */
.tsp .tsp-sber { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 5vw, 64px); border-radius: 12px; background: var(--tsp-grey); }
.tsp .tsp-sber p { max-width: 28ch; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.tsp .tsp-sber .tsp-btn { padding: 16px 26px; font-size: 17px; }

@media (max-width: 600px) {
  .tsp .tsp-cta__long { display: none; }
  .tsp .tsp-cta__short { display: inline; }
  .tsp .tsp-tabs { width: 100%; }
  .tsp .tsp-tabs button { flex: 1; padding: 12px 10px; }
  .tsp .tsp-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tsp .tsp-day { min-height: 150px; gap: 18px; padding: 16px; }
  .tsp .tsp-day--last { grid-column: 1 / -1; }
  .tsp .tsp-region { border-radius: 14px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tsp .tsp-day, .tsp .tsp-region, .tsp .tsp-map__kraj path { transition: none; }
}
