/* ── Shared section components ── */
/*
 * Components that several section pages render identically: the franchise
 * progress view (survivor/players, drag-race/seasons, traitors) and the tab
 * strip (advent-calbumdar, album-recommendations/releases, film-schedule).
 *
 * Each family moved here whole — base rule plus its same-specificity modifiers,
 * in their original order — so the cascade is unchanged. A page that wants to
 * differ can still override in its own <style>, which comes after this link.
 */

.progress-count {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.progress-franchise {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.progress-franchise-flag {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.progress-franchise-flags {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}

.progress-franchise-name {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-row-wrap { margin-bottom: 9px; }

.progress-season-chip {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.progress-season-chip.unwatched { opacity: 0.4; }

.progress-total {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.progress-total-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.tab {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.tab:hover { border-color: var(--border-hover); color: var(--text); }
.tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ── Page header (split variant) ── */

/* The nine pages whose header puts the title block on the left and controls on
   the right. The other six pages using .page-header stack instead and
   deliberately do NOT link this file — adding it there would flip their
   headers to a row. Each page keeps its own margin/padding inline. */
.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

/* ── View toggle ── */

/* Pages add flex-shrink:0 (or, on concerts, flex-wrap) inline to suit how many
   buttons they carry. */
.view-toggle {
  display: flex;
  gap: 4px;
}
