/* ---------------------------------------------------------------
   seasons-docket.css -- seasons.php as a page of the docket.

   Same sheet as the other docket pages (docket.css and docket-dark.css load
   first). This file holds the lists: the Nights, the Promos and the other
   Seasons, each a ruled run of rows, and the premise's type.

   Everything is under .docket.is-seasons, a class only seasons.php puts on the
   sheet, so nothing here can reach any other page.
   --------------------------------------------------------------- */

.docket.is-seasons .reg-title { margin-top: 22px; }
.docket.is-seasons h1 { font-size: clamp(2.7rem, 6vw, 4.2rem); }
.docket.is-seasons .aka { margin-top: 8px; max-width: 52ch; }
.docket.is-seasons .s-empty { margin-top: 26px; font-size: 1.05rem; }

/* The facts strip: four things here, not six. */
.docket.is-seasons .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- The premise: the statement's type, as authored in the admin ---- */
.docket.is-seasons .s-premise { max-width: 68ch; }
.docket.is-seasons .s-premise .rich-body > :first-child { margin-top: 0; }
.docket.is-seasons .s-premise p { margin: 0 0 0.8em; line-height: 1.55; font: inherit; }
.docket.is-seasons .s-premise p:last-child { margin-bottom: 0; }
.docket.is-seasons .s-premise p:empty,
.docket.is-seasons .s-premise p:has(> br:only-child) { height: auto; line-height: 0.6; margin: 0; }
.docket.is-seasons .s-premise h1,
.docket.is-seasons .s-premise h2,
.docket.is-seasons .s-premise h3 {
  margin: 1.3em 0 0.4em;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.3em;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
.docket.is-seasons .s-premise blockquote {
  margin: 1.1em 0;
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 3px solid var(--moral);
  font-style: italic;
  color: var(--ink);
}
.docket.is-seasons .s-premise a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark) {
  color: var(--moral);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--moral) 45%, transparent);
}

/* ---- The lists ---- */
.docket.is-seasons .s-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.docket.is-seasons .s-list > li { border-bottom: 1px solid var(--rule-soft); }
.docket.is-seasons .block { margin-bottom: 0; }
.docket.is-seasons .block + .block { margin-top: 12px; }

.docket.is-seasons .s-shows > li,
.docket.is-seasons .s-seasons > li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 4px 18px;
  align-items: baseline;
  padding: 13px 0;
}
.docket.is-seasons .s-seasons > li { grid-template-columns: minmax(0, 1fr) auto; }

/* A promo is one link across the whole row. */
.docket.is-seasons .s-promos > li > a {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: baseline;
  padding: 13px 10px 13px 12px;
  margin: 0 -10px 0 -12px;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.docket.is-seasons .s-promos > li > a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):hover,
.docket.is-seasons .s-promos > li > a:not(.btn):not(.nav-link):not(.apply-link):not(.wordmark):focus-visible {
  text-decoration: none;
  background: color-mix(in srgb, var(--moral) 7%, transparent);
  border-left-color: var(--moral);
}
.docket.is-seasons .s-promos > li > a:focus-visible { outline: 2px solid var(--moral); outline-offset: -2px; }

.docket.is-seasons .s-date,
.docket.is-seasons .s-range {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.docket.is-seasons .s-main { display: block; min-width: 0; }
.docket.is-seasons .s-label {
  display: inline-block;
  margin-right: 0.7em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.docket.is-seasons .s-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.docket.is-seasons .s-promos .s-name { display: block; }
.docket.is-seasons .s-by {
  display: block;
  margin-top: 3px;
  font-family: "Inter", system-ui, sans-serif;
  font-style: italic;
  font-size: 1.02rem;
  color: #b9b4c2;
}
.docket.is-seasons .s-tag {
  justify-self: end;
  text-align: right;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The season being read. */
.docket.is-seasons .s-seasons > li.is-current .s-name { color: var(--moral); }
.docket.is-seasons .s-seasons > li.is-current .s-name::before { content: "\25B8\00a0"; }

/* ---- A phone ---- */
@media (max-width: 800px) {
  .docket.is-seasons .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docket.is-seasons .s-shows > li { grid-template-columns: minmax(0, 1fr); }
  .docket.is-seasons .s-promos > li > a { grid-template-columns: minmax(0, 1fr); margin: 0 -6px; padding: 13px 6px; }
  .docket.is-seasons .s-tag { justify-self: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .docket.is-seasons .s-promos > li > a { transition: none; }
}
