/* ============================================================
   24-episodes-page.css — /episodes/ filter bar and columns
   ------------------------------------------------------------
   Scoped to `.page-id-20` so the series pages and the home page,
   which share the same shortcode and markup, are untouched.

   All of this is plugin-side. The deployed copy of
   prometheus-podcast-episodes must stay byte-identical to its
   repo, so the changes are made here and the real fixes are
   recorded in the client TODO to route through git/builder.
   ============================================================ */

/* ---- the season filter is gone ------------------------------------
   Seasons were removed from the data model on 2026-11-18 but
   Filters::bar() still builds the select, so it rendered with exactly
   one option, "All seasons" — a control that looks live and cannot
   change anything. js/episodes-dead-controls.js removes it from the
   DOM; this rule suppresses it before that script runs so it never
   flashes on screen. The sortable "Season" column and the empty `se`
   cell were already dropped site-wide in 15-home.css.
   -------------------------------------------------------------------- */
.ppe-list label.ppe-sel:has(> select[name="season"]) {
	display: none;
}

/* ---- the series filter and column are gone on /episodes/ -----------
   Ricky 2026-11-19: "Since an episode can be in more than one series,
   it doesn't make sense to sort for this by column and there's no
   reason to have the filter since they can use the menu."

   Three surfaces, all of them series: the chip row, the select that
   replaces the chips below ~900px, and the sortable column.

   Header and rows share one track list, so both are edited together or
   the columns drift apart. This is the 5-track form — thumb, title,
   date, parts, media — the same one the series pages already use. The
   episode-number track was dropped site-wide in 15-home.css.
   -------------------------------------------------------------------- */
.page-id-20 .ppe-chips,
.page-id-20 .ppe-chip,
.page-id-20 .ppe-list .ppe-sel-series {
	display: none !important;
}

.page-id-20 .ppe-row-link,
.page-id-20 .ppe-head-cols {
	grid-template-columns: 56px minmax(0,1fr) 6.8em 3.2em 4.6em !important;
}
.page-id-20 .ppe-series,
.page-id-20 .ppe-head-cols button[data-sort="sname"] {
	display: none !important;
}

/* No rule is needed for the "·" separators in the meta line. They are
   emitted unconditionally by the plugin, but its own stylesheet already
   suppresses the ones next to an empty or hidden slot -- verified by
   rendering, where the row reads "Dec 28, 2025  Audio" with no stray dots.
   An earlier rule here keyed on :first-child was a no-op and was removed. */

/* ---- the media column had no header ------------------------------
   Ricky 2026-11-19: "Add a column label for the video/audio icons."

   Shortcodes::rows() emits the trailing columns as bare <span></span>
   with no label, so the audio/video icons sat under a blank heading.
   The last slot is the media column; the one before it is the part
   count. Labelled here with a pseudo-element because the span has no
   text node of its own to replace, styled to match the sortable
   headers beside it -- deliberately NOT as a button, since it is not
   sortable and should not look like it is.

   The media track was widened from 2.6em to 4.6em to fit the word.
   Header and rows share one track list, so both moved together.
   -------------------------------------------------------------------- */
.page-id-20 .ppe-head-cols > span:last-child::before {
	content: "Media";
	display: block;
	color: var(--awb-color6);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .07em;
	line-height: 18px;
	text-transform: uppercase;
}

/* ---- the filter row should fill the width -------------------------
   Ricky 2026-11-19: "The search bar should be as tall as the filter
   dropdowns... the search + dropdowns should all be full width when
   put together. This probably just needs a widening of the search
   bar." Measured before: search 232x34, selects 50 tall, and the row
   ended 225px short of the 1080px content width.

   The search box takes the slack rather than a fixed width, so the row
   stays flush at any viewport and after the series and season controls
   were removed. `align-items: stretch` is what matches the heights --
   the select's 50px comes from its own padding, so matching it with a
   hardcoded height would drift the moment that padding changes.
   -------------------------------------------------------------------- */
.page-id-20 .ppe-controls {
	align-items: stretch;
}

/* The search box is wrapped in `label.ppe-search`. The LABEL was already
   50px tall and matched the selects; the INPUT inside it was 34px and sat
   short, which is the height mismatch. So the label takes the slack and the
   input fills the label, rather than either being given a fixed size. */
.page-id-20 .ppe-controls > label.ppe-search {
	flex: 1 1 220px;
	min-width: 0;
	display: flex;
}

/* One declared height for every control in the bar. On a wide screen they
   share a flex line and `align-items: stretch` would equalise them anyway,
   but below ~900px the bar wraps and each control is alone on its line, so
   stretch gives it only its natural height -- which left the search box at
   31px beside 50px selects. Pinning both to the same value here means the
   two cannot drift apart, and matches what the selects already rendered. */
.page-id-20 .ppe-controls > label.ppe-search,
.page-id-20 .ppe-controls > label.ppe-sel {
	min-height: 50px;
}
.page-id-20 .ppe-controls > label.ppe-sel > select {
	height: 100%;
}
.page-id-20 .ppe-controls > label.ppe-search > input[name="q"] {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 100%;
}
