/* Riksdagen › Riksdags-TV — the public page.

   The grid, KPIs and speaker list are Politik › TV's own classes
   (politics/css/tv.css, on the --pol-* tokens of politics-overview.css); the
   page shell, CTA and sign-up dialog are riksdagen.css. This adds what the
   public page has on top: blocks that are links, HTML bars in place of
   Chart.js, the per-day list, the period tabs and the dialog's debate card. */

/* A signed-in reader's block is a link to the debate. */
a.tv-block {
  text-decoration: none;
}

.tv-pill-btn {
  text-decoration: none;
}

.tv-pill-btn.is-disabled {
  opacity: 0.4;
  cursor: default;
}

/* ── Period tabs ─────────────────────────────────────────────────────────── */

.rtv-tabs {
  margin-bottom: 1rem;
}

.tv-segment button[aria-selected="true"] {
  background: #fff;
  color: var(--pol-heading);
  box-shadow: 0 1px 4px rgba(22, 50, 79, 0.15);
}

.rtv-lead {
  font-size: 0.95rem;
}

.rtv-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pol-heading);
}

.rtv-card-title small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--pol-muted);
}

/* ── Taltid per parti: bars as a table ──────────────────────────────────── */

.rtv-bars {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.4rem;
}

.rtv-bar-code {
  width: 2.6rem;
  padding-right: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pol-heading);
  text-align: right;
}

.rtv-bar-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rtv-bar {
  display: block;
  min-width: 3px;
  height: 1.35rem;
  border-radius: 6px;
  background: var(--c, #94a3b8);
}

.rtv-bar-val {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--pol-text);
}

/* ── Veckans sändningar ─────────────────────────────────────────────────── */

.rtv-day + .rtv-day {
  margin-top: 1rem;
}

.rtv-day-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pol-heading);
}

.rtv-item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-left: 3px solid var(--cat, #94a3b8);
  border-bottom: 1px solid #eef3f9;
}

.rtv-item.is-dim {
  opacity: 0.35;
}

.rtv-time {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--pol-muted);
}

.rtv-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.rtv-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pol-muted);
}

.rtv-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pol-heading);
  text-decoration: none;
}

.rtv-title-btn {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.rtv-title:hover,
.rtv-title-btn:hover {
  color: var(--pol-accent);
  text-decoration: underline;
}

.rtv-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--pol-text);
}

.rtv-facts .tv-parties {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
}

@media (max-width: 575.98px) {
  .rtv-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

/* ── The dialog's debate card ───────────────────────────────────────────── */

.rs-gate-details {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--pol-border, #d8e3f3);
  border-radius: 12px;
  background: #f7faff;
}

.rs-gate-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rs-gate-heading {
  margin: 0.2rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pol-heading, #16324f);
}

.rs-gate-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--pol-text, #48627d);
}

.rs-gate-details .tv-parties {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
