/**
 * Course_Listing — the public class directory (`[ucb_classes]`).
 *
 * Scoped under `#ucb-classes`, same rule as `#ucb-class` in
 * ucb-courses-page.css (CLAUDE.md convention 22): this shortcode can land
 * inside The7 or Coldtowne's Elementor content area, and neither theme's
 * palette is trusted. `--ucbl-*` copies the `--ucbp-*` hex values from
 * ucb-courses-page.css exactly, renamed only for this file's own scope, so
 * the directory and the class page read as the same product.
 *
 * Typography is the one deliberate difference from the class page: this
 * page's sketch calls for Barlow Condensed (display) + Roboto (body) —
 * already loaded site-wide for the Arlo widgets as the 'ucb-courses-arlo-fonts'
 * handle, which this stylesheet depends on instead of requesting the same
 * Google Fonts URL twice.
 *
 * Contrast, computed against the tokens below (sRGB relative luminance):
 *
 *   | Pair                                        | Ratio  | Needs  |
 *   |----------------------------------------------|--------|--------|
 *   | --ucbl-ink on --ucbl-bg                       | 17.0:1 | 4.5:1  |
 *   | --ucbl-ink on --ucbl-surface (white)          | 18.7:1 | 4.5:1  |
 *   | --ucbl-ink-soft on --ucbl-bg                  |  7.3:1 | 4.5:1  |
 *   | --ucbl-ink-soft on --ucbl-surface             |  8.0:1 | 4.5:1  |
 *   | --ucbl-ink-soft on --ucbl-neutral-tint        |  6.9:1 | 4.5:1  |
 *   | --ucbl-brand as text on --ucbl-bg             |  8.2:1 | 4.5:1  |
 *   | --ucbl-brand as text on --ucbl-surface        |  9.0:1 | 4.5:1  |
 *   | white text on --ucbl-brand (solid button)     |  9.0:1 | 4.5:1  |
 *   | white text on --ucbl-brand-dark (hover/focus) | 11.9:1 | 4.5:1  |
 *   | --ucbl-green text on --ucbl-green-tint (pill) |  5.0:1 | 4.5:1  |
 *   | --ucbl-green border on --ucbl-surface         |  5.5:1 | 3:1    |
 *   | --ucbl-amber text on --ucbl-amber-tint (pill) |  4.8:1 | 4.5:1  |
 *   | --ucbl-amber border on --ucbl-surface         |  5.0:1 | 3:1    |
 *   | --ucbl-focus ring on --ucbl-bg/--ucbl-surface | 17–19:1| 3:1    |
 *
 * `--ucbl-hair` is a purely decorative divider — no minimum applies. Every
 * pill's text sits on its OWN tint (not the page background), which is what
 * the ratios above are measured against, not the paler numbers a green/amber
 * text color would get straight on white.
 *
 * Interactive controls: chips, tabs, checkboxes and the register/waitlist
 * buttons all get `:focus-visible` outlines (never a border swap, so an
 * equal-specificity hover/pressed rule can never silently cancel the focus
 * ring — rule `accessibility`), and every `::placeholder` this page has
 * (none today; the "More filters" panel is checkboxes/radios only) would get
 * `opacity: 1` the moment one is added.
 *
 * ── The run table is CLASS-scoped, not ID-scoped ─────────────────────────
 *
 * Every selector under "The run table" below, plus its two breakpoints and
 * `.ucb-cl-sr-only`, is written as a bare `.ucb-cl-…` class — never
 * `#ucb-classes .ucb-cl-…` — because `Course_Listing::render_runs()`
 * renders the identical markup on `templates/course-overview.php`, inside
 * `#ucb-course` (`ucb-courses-overview.css`), not `#ucb-classes`. Both
 * stylesheets declare the same `--ucbl-*` custom property NAMES (this file
 * on `#ucb-classes`, the overview one on `#ucb-course` with the same hex
 * copied in) so `var(--ucbl-ink)` etc. resolve correctly under either
 * ancestor. Adding a rule for `.ucb-cl-run*`, `.ucb-cl-avatar*`,
 * `.ucb-cl-status-*` or `.ucb-cl-btn*` under `#ucb-classes` again would
 * silently stop applying on the course page — don't re-scope them.
 */

#ucb-classes {
	--ucbl-bg: #f6f4f0;
	--ucbl-surface: #ffffff;
	--ucbl-ink: #14120f;
	--ucbl-ink-soft: #55504a;
	--ucbl-hair: #e4dfd6;
	--ucbl-brand: #8b2025;
	--ucbl-brand-dark: #6b181c;
	--ucbl-focus: #14120f;

	--ucbl-neutral-tint: #f1efe9;
	--ucbl-green: #047857;
	--ucbl-green-tint: #eaf7f1;
	--ucbl-amber: #b45309;
	--ucbl-amber-tint: #fff8ee;

	--ucbl-display: 'Barlow Condensed', 'Archivo', Helvetica, Arial, sans-serif;
	--ucbl-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ucbl-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	box-sizing: border-box;
	display: block;
	background: var(--ucbl-bg);
	color: var(--ucbl-ink);
	font-family: var(--ucbl-body);
	font-size: 16px;
	line-height: 1.5;
	padding: 16px 16px 56px;
	/* No `overflow-x: hidden` here on purpose: it would establish a scroll
	   container on an ancestor of `.ucb-cl-rail`, and a `position: sticky`
	   element stops sticking to the viewport the moment one of its
	   ancestors has any `overflow` other than `visible`. The chips/tabs
	   rows scroll horizontally in their OWN containers instead, and
	   `.ucb-cl-main { min-width: 0 }` keeps the run table from forcing the
	   page wider. */
}

#ucb-classes *,
#ucb-classes *::before,
#ucb-classes *::after {
	box-sizing: inherit;
}

#ucb-classes a:not(.ucb-cl-btn) {
	color: var(--ucbl-brand);
}

#ucb-classes :focus-visible {
	outline: 3px solid var(--ucbl-focus);
	outline-offset: 2px;
}

#ucb-classes h2 {
	font-family: var(--ucbl-display);
	color: var(--ucbl-ink);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin: 0;
}

#ucb-classes fieldset {
	border: 0;
	padding: 0;
}

/* Shared spacing for every filter group in "More filters" — a <fieldset>
   (Region, Venue, Categories, Frequency, Time of Day) or a plain <div>
   (Open seats only, which has no group of options to need a <legend>). */
#ucb-classes .ucb-cl-more-group {
	margin: 0 0 20px;
}

#ucb-classes legend {
	font-family: var(--ucbl-display);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 15px;
	color: var(--ucbl-ink);
	margin: 0 0 8px;
	padding: 0;
}

/* Real, off-screen-but-announced text for table captions / icon-only column
   headers — never display:none, which an assistive tech would drop too. */
.ucb-cl-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ── Corner link ──────────────────────────────────────────────────────── */

#ucb-classes .ucb-cl-topbar {
	max-width: 1180px;
	margin: 0 auto 12px;
	text-align: right;
}

#ucb-classes .ucb-cl-account-link {
	display: inline-block;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* The7 puts `overflow: hidden` on `#page`, which turns the page wrapper
   into a clipping scroll container — and `position: sticky` never sticks
   to the viewport from inside one. `clip` clips exactly the same way
   without creating a scroll container, so the sidebar below can stick.
   Scoped with :has() so no other page's wrapper changes. */
#page:has(#ucb-classes) {
	overflow: clip;
}

/* ── Rail: program tabs ──────────────────────────────────────────────── */

#ucb-classes .ucb-cl-rail {
	background: var(--ucbl-bg);
	padding: 12px 0;
	margin: 0 auto;
	max-width: 1180px;
	border-bottom: 1px solid var(--ucbl-hair);
}

#ucb-classes .ucb-cl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}

#ucb-classes .ucb-cl-chip {
	flex: 0 0 auto;
	font-family: var(--ucbl-body);
	font-size: 14px;
	font-weight: 600;
	background: var(--ucbl-surface);
	color: var(--ucbl-ink);
	border: 1px solid var(--ucbl-hair);
	border-radius: 999px;
	padding: 8px 16px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

#ucb-classes .ucb-cl-chip[aria-pressed='true'] {
	background: var(--ucbl-brand);
	border-color: var(--ucbl-brand);
	color: #ffffff;
}

#ucb-classes .ucb-cl-chip[aria-pressed='true'] .ucb-cl-count-badge {
	color: #ffffff;
}

#ucb-classes .ucb-cl-count-badge {
	color: var(--ucbl-ink-soft);
	font-weight: 400;
}

#ucb-classes .ucb-cl-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 4px;
}

#ucb-classes .ucb-cl-tab {
	flex: 0 0 auto;
	display: inline-block;
	font-family: var(--ucbl-display);
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--ucbl-ink-soft);
	text-decoration: none;
	padding: 8px 14px;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}

#ucb-classes .ucb-cl-tab[aria-current='page'] {
	color: var(--ucbl-ink);
	border-bottom-color: var(--ucbl-brand);
}

/* Below the rail (<1100px): the program links wrap as pills (the
   Location chips' look) instead of a strip that scrolls sideways — on a
   phone that strip showed two programs and cut the third off with no cue
   that more were there. Same width as the rail breakpoint, so the page is
   either "tabs + rail" or "pills + folded filters", never a mix.
   Doubled class to beat `#ucb-classes a:not(.ucb-cl-btn)` (1,1,1). */
@media (max-width: 1099px) {
	#ucb-classes .ucb-cl-tabs {
		flex-wrap: wrap;
		overflow-x: visible;
		gap: 8px;
	}

	#ucb-classes .ucb-cl-tabs .ucb-cl-tab.ucb-cl-tab {
		font-size: 15px;
		line-height: 1.2;
		color: var(--ucbl-ink);
		background: var(--ucbl-surface);
		border: 1px solid var(--ucbl-hair);
		border-radius: 999px;
		padding: 8px 14px;
	}

	#ucb-classes .ucb-cl-tabs .ucb-cl-tab.ucb-cl-tab[aria-current='page'] {
		color: #ffffff;
		background: var(--ucbl-brand);
		border-color: var(--ucbl-brand);
	}

	#ucb-classes .ucb-cl-tab[aria-current='page'] .ucb-cl-count-badge {
		color: #ffffff;
	}
}

/* ── Layout: aside + main ─────────────────────────────────────────────── */

#ucb-classes .ucb-cl-layout {
	max-width: 1180px;
	margin: 0 auto;
	padding-top: 20px;
	display: block;
}

#ucb-classes .ucb-cl-aside {
	margin-bottom: 20px;
}

#ucb-classes .ucb-cl-more {
	background: var(--ucbl-surface);
	border: 1px solid var(--ucbl-hair);
	border-radius: 10px;
	padding: 14px 16px;
}

#ucb-classes .ucb-cl-more-summary {
	font-family: var(--ucbl-display);
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	cursor: pointer;
}

#ucb-classes .ucb-cl-more[open] .ucb-cl-more-summary {
	margin-bottom: 12px;
}

/* Below the rail the fold starts closed (ucb-courses-listing.js
   foldFilters), so it needs a visible open/closed cue: the same chevron
   as the course bars, replacing the marker the theme hides. */
#ucb-classes .ucb-cl-more > .ucb-cl-more-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
}

#ucb-classes .ucb-cl-more-summary::-webkit-details-marker {
	display: none;
}

#ucb-classes .ucb-cl-more-summary::after {
	content: '';
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin: -4px 4px 0 12px;
	transition: transform 150ms ease;
}

#ucb-classes .ucb-cl-more[open] > .ucb-cl-more-summary::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

#ucb-classes .ucb-cl-more-body {
	padding-top: 4px;
}

/* A group heading that is not a <legend> (the Location chips are buttons,
   not inputs, so they sit in a role="group" with a labelled <p>). */
#ucb-classes .ucb-cl-group-label {
	display: block;
	font-family: var(--ucbl-display);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ucbl-ink);
	margin: 0 0 8px;
}

/* The7 resets input[type="search"] to content-box, which pushes a 100%
   width + padding past the sidebar edge — pinned back to border-box. */
#ucb-classes .ucb-cl-search input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	font-family: var(--ucbl-body);
	font-size: 15px;
	line-height: 1.3;
	color: var(--ucbl-ink);
	background: #ffffff;
	border: 1px solid var(--ucbl-hair-strong, #b9b4ad);
	border-radius: 8px;
	padding: 9px 12px;
	margin: 0;
}

/* The7 composites placeholders with `opacity` (CLAUDE.md 22) — opacity: 1
   is the fix, and the colour measures 4.6:1 on white. */
#ucb-classes .ucb-cl-search input[type="search"]::placeholder {
	color: #6b6560;
	opacity: 1;
}

#ucb-classes .ucb-cl-radio-row,
#ucb-classes .ucb-cl-checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

#ucb-classes .ucb-cl-radio-row input,
#ucb-classes .ucb-cl-checkbox-row input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: var(--ucbl-brand);
}

#ucb-classes .ucb-cl-radio-row label,
#ucb-classes .ucb-cl-checkbox-row label {
	font-size: 15px;
	color: var(--ucbl-ink);
}

#ucb-classes .ucb-cl-more-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 8px;
}

#ucb-classes .ucb-cl-apply {
	font-family: var(--ucbl-body);
	font-weight: 700;
	font-size: 14px;
	background: var(--ucbl-brand);
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	padding: 10px 18px;
	cursor: pointer;
	transition: background-color 150ms ease;
}

#ucb-classes .ucb-cl-apply:hover,
#ucb-classes .ucb-cl-apply:focus-visible {
	background: var(--ucbl-brand-dark);
}

/* Once JS confirms it is running, live filtering makes the no-JS submit
   button redundant — Course_Listing::render_shortcode() cannot know this
   ahead of time, so the JS hides it instead of PHP never printing it. */
#ucb-classes.js .ucb-cl-apply {
	display: none;
}

#ucb-classes .ucb-cl-clear {
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* ── Results: count + course blocks ──────────────────────────────────── */

#ucb-classes .ucb-cl-count {
	font-size: 14px;
	color: var(--ucbl-ink-soft);
	margin: 0 0 20px;
}

#ucb-classes .ucb-cl-empty {
	background: var(--ucbl-surface);
	border: 1px solid var(--ucbl-hair);
	border-radius: 10px;
	padding: 20px;
	color: var(--ucbl-ink-soft);
}

/* The card is an <article> holding the About link and the <details>
   fold. Flex so a phone can move the link under the table (`order`); the
   `[hidden]` guard is the same one the run rows need — the filter JS hides
   a course with the attribute, and `display: flex` would otherwise win. */
#ucb-classes .ucb-cl-course {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0 0 24px;
	border: 1px solid var(--ucbl-hair);
	border-radius: 10px;
	background: var(--ucbl-surface);
	overflow: hidden;
}

#ucb-classes .ucb-cl-course[hidden] {
	display: none !important;
}

#ucb-classes .ucb-cl-course-fold {
	display: block;
}

/* The collapsible heading bar — a native <summary>, so the whole bar is
   the toggle and the keyboard/screen-reader behaviour comes for free. The
   default disclosure marker is replaced by our own chevron. */
#ucb-classes .ucb-cl-course-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	list-style: none;
	cursor: pointer;
	padding: 14px 18px;
	background: var(--ucbl-ink);
	color: #ffffff;
	user-select: none;
}

#ucb-classes .ucb-cl-course-head::-webkit-details-marker {
	display: none;
}

#ucb-classes .ucb-cl-course-head:hover {
	background: var(--ucbl-ink-soft);
}

/* The bar is ink-dark, so the site-wide ink focus ring would vanish here. */
#ucb-classes .ucb-cl-course-head:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: -5px;
}

#ucb-classes .ucb-cl-course-title {
	font-size: 20px;
	line-height: 1.2;
	margin: 0;
	color: #ffffff;
}

#ucb-classes .ucb-cl-course-chevron {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 150ms ease;
	margin: -4px 4px 0 0;
}

#ucb-classes .ucb-cl-course-fold[open] .ucb-cl-course-chevron {
	transform: rotate(-135deg);
	margin-top: 4px;
}

#ucb-classes .ucb-cl-course-body {
	padding: 10px 14px 14px;
}

/* "About this class →". Phone: a plain link under the run table (order 2
   puts it after the fold). Desktop (below): an outlined button in the black
   bar. The doubled class out-specifies `#ucb-classes a:not(.ucb-cl-btn)`
   and the DCM theme's (1,2,1) link colour. */
#ucb-classes .ucb-cl-course > a.ucb-cl-course-about.ucb-cl-course-about {
	order: 2;
	align-self: flex-end;
	margin: 0 14px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ucbl-brand);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* ── The run table (desktop grid, mobile cards) ──────────────────────── */

.ucb-cl-runs {
	width: 100%;
	border-collapse: collapse;
	margin-top: 18px;
}

/* The7 also gives every <table> a bottom border, which read as a stray
   rule under the last row. */
.ucb-cl-runs.ucb-cl-runs {
	border: 0;
}

/* The7 borders every table cell; the row draws its own single rule.
   Elementor (Coldtowne) zebra-stripes and hover-tints `tbody>tr:nth-child(odd)>td`
   at (0,1,4)/(0,2,3), so the cell reset carries three classes. Hello's
   reset.css also draws a `border-block-start` on the header cells after a
   <caption> (`table caption+thead tr:first-child th`, (0,1,4)) — a grey
   rule over each column heading on Coldtowne — hence the thead line. */
.ucb-cl-runs th,
.ucb-cl-runs td,
.ucb-cl-runs.ucb-cl-runs thead > tr:nth-child(n) > th,
.ucb-cl-runs.ucb-cl-runs tbody > tr:nth-child(n) > td {
	border: 0;
	background: transparent;
}

.ucb-cl-runs thead th {
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ucbl-ink-soft);
	padding: 0 10px 8px;
}

/* One rule under the whole row, not one per cell: the desktop rows are a
   grid with a gap, so a per-cell border reads as a dashed line. */
.ucb-cl-runs thead tr {
	border-bottom: 2px solid var(--ucbl-ink);
}
.ucb-cl-runs tbody tr {
	border-bottom: 1px solid var(--ucbl-hair);
}

.ucb-cl-runs tbody td {
	padding: 14px 10px;
	vertical-align: top;
	font-size: 14px;
}

/* The desktop/mobile blocks below both give `tr` an explicit `display` (grid
   or block) at higher specificity than the UA stylesheet's `[hidden] {
   display: none }` — without this, a filtered-out row's own `display: grid`
   would silently win over `hidden` and the row would stay visible.
   `!important` is the only way to guarantee `hidden` always wins regardless
   of which `display` value a breakpoint sets. */
.ucb-cl-run[hidden] {
	display: none !important;
}

.ucb-cl-run-value {
	display: block;
	color: var(--ucbl-ink);
}

.ucb-cl-run-sub {
	display: block;
	font-size: 12px;
	color: var(--ucbl-ink-soft);
	margin-top: 2px;
}

.ucb-cl-run-muted {
	color: var(--ucbl-ink-soft);
}

.ucb-cl-run-price {
	font-family: var(--ucbl-display);
	font-size: 18px;
	font-weight: 600;
}

.ucb-cl-instructor-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
}

.ucb-cl-instructor-row:last-child {
	margin-bottom: 0;
}

/* Portrait, not a circle (owner, 2026-11-05): headshots are authored 2:3
   and a circle cropped shoulders and hair. 3:4 keeps the row short;
   `object-position` favours the face. */
.ucb-cl-avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ucbl-neutral-tint);
}

.ucb-cl-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}

/* A linked instructor: the photo and name sit side by side, same as an
   unlinked one (the link, not the row, is the flex parent here). */
.ucb-cl-instructor-link {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ucb-cl-avatar-initials {
	font-family: var(--ucbl-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--ucbl-ink-soft);
}

.ucb-cl-run-action {
	text-align: right;
}

.ucb-cl-status-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border: 1px solid transparent;
	margin: 0 0 8px;
	white-space: nowrap;
}

.ucb-cl-status-open {
	background: var(--ucbl-green-tint);
	color: var(--ucbl-green);
	border-color: var(--ucbl-green);
}

.ucb-cl-status-seats,
.ucb-cl-status-waitlist {
	background: var(--ucbl-amber-tint);
	color: var(--ucbl-amber);
	border-color: var(--ucbl-amber);
}

.ucb-cl-status-closed {
	background: var(--ucbl-neutral-tint);
	color: var(--ucbl-ink-soft);
	border-color: var(--ucbl-hair);
}

/* Doubled classes: Coldtowne's Elementor kit colours and underlines every
   link at (0,1,1) and (0,2,1) on hover, which beat a single class and left
   dark-red underlined text on the red button there. */
.ucb-cl-btn.ucb-cl-btn {
	display: inline-block;
	font-family: var(--ucbl-body);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 8px;
	padding: 8px 16px;
	white-space: nowrap;
	transition: background-color 150ms ease, color 150ms ease;
}

.ucb-cl-btn.ucb-cl-btn-solid {
	background: var(--ucbl-brand);
	color: #ffffff;
	border: 2px solid var(--ucbl-brand);
}

.ucb-cl-btn.ucb-cl-btn-solid:hover,
.ucb-cl-btn.ucb-cl-btn-solid:focus-visible {
	background: var(--ucbl-brand-dark);
	border-color: var(--ucbl-brand-dark);
	color: #ffffff;
}

.ucb-cl-btn.ucb-cl-btn-outline {
	background: transparent;
	color: var(--ucbl-brand);
	border: 2px solid var(--ucbl-brand);
}

.ucb-cl-btn.ucb-cl-btn-outline:hover,
.ucb-cl-btn.ucb-cl-btn-outline:focus-visible {
	background: var(--ucbl-brand);
	color: #ffffff;
}

/* ── Wide (≥1100px): the filters become a fixed rail beside the list ──────
   Not at 760: beside a 250px rail the six-column run table gets ~450px
   at a tablet's width, and the dates wrapped a word a line while the
   Register column fell off the card's edge (and at 1000 the dates still
   wrapped to three lines). Between 760 and 1099 the
   filters stay a "More filters" fold above a full-width table. The
   stickyRail script in ucb-courses-listing.js reads the same 1100px. */

@media (min-width: 1100px) {
	#ucb-classes .ucb-cl-layout {
		display: flex;
		align-items: flex-start;
		gap: 32px;
	}

	/* Sticks below The7's floating header (60px, plus the admin bar when
	   one is shown). No `max-height`/`overflow-y` here: an inner scroll
	   region was tried and rejected (owner, 2026-10-26). A rail taller than
	   the window has its `top` driven by ucb-courses-listing.js
	   (stickyRail) so it rides with the scroll until its bottom shows;
	   --ucbl-sticky-top stays the upper clamp the script reads. */
	#ucb-classes .ucb-cl-aside {
		--ucbl-sticky-top: 76px;
		flex: 0 0 250px;
		align-self: flex-start;
		margin-bottom: 0;
		position: sticky;
		top: var(--ucbl-sticky-top);
	}

	body.admin-bar #ucb-classes .ucb-cl-aside {
		--ucbl-sticky-top: 108px;
	}

	#ucb-classes .ucb-cl-more > .ucb-cl-more-summary {
		display: none;
	}

	#ucb-classes .ucb-cl-more-body {
		display: block;
	}

	#ucb-classes .ucb-cl-main {
		flex: 1 1 auto;
		min-width: 0;
	}
}

/* ── Desktop (≥760px): a true 6-column run table ─────────────────────── */

@media (min-width: 760px) {
	/* The About button in the black bar, left of the chevron. Absolutely
	   placed because it is a sibling of the <summary>, not inside it (see
	   Course_Listing::render_course_block()); the summary reserves the room.
	   Pinned to the first title line, so a two-line title still clears it. */
	#ucb-classes .ucb-cl-course-head.has-about .ucb-cl-course-title {
		padding-right: 170px;
	}

	#ucb-classes .ucb-cl-course > a.ucb-cl-course-about.ucb-cl-course-about {
		position: absolute;
		top: 12px;
		right: 52px;
		z-index: 1;
		margin: 0;
		padding: 4px 14px;
		border: 1px solid rgba(255, 255, 255, 0.85);
		border-radius: 999px;
		color: #ffffff;
		font-size: 14px;
		line-height: 20px;
		white-space: nowrap;
		text-decoration: none;
		transition: background-color 150ms ease, color 150ms ease;
	}

	#ucb-classes .ucb-cl-course > a.ucb-cl-course-about.ucb-cl-course-about:hover,
	#ucb-classes .ucb-cl-course > a.ucb-cl-course-about.ucb-cl-course-about:focus-visible {
		background: #ffffff;
		color: #14120f; /* literal: the DCM theme redefines --ucbl-ink as light */
	}

	/* The bar is dark, so the ink focus ring would vanish here. */
	#ucb-classes .ucb-cl-course > a.ucb-cl-course-about.ucb-cl-course-about:focus-visible {
		outline: 3px solid #ffffff;
		outline-offset: 2px;
	}

	.ucb-cl-runs,
	.ucb-cl-runs thead,
	.ucb-cl-runs tbody,
	.ucb-cl-runs tr {
		display: block;
	}

	.ucb-cl-runs thead tr,
	.ucb-cl-runs tbody tr {
		display: grid;
		grid-template-columns: 1.5fr 1.2fr 1.2fr 1fr 0.8fr 1.3fr;
		gap: 12px;
		align-items: center;
	}

	.ucb-cl-runs tbody td {
		display: block;
		border-bottom: 0;
		padding: 14px 10px;
	}

	.ucb-cl-runs tbody tr {
		border-bottom: 1px solid var(--ucbl-hair);
	}

	.ucb-cl-runs tbody tr:last-child,
	.ucb-cl-runs tbody tr:not(:has(~ tr:not([hidden]))) {
		border-bottom: 0;
	}

	.ucb-cl-run-action {
		text-align: left;
	}
}

/* ── Mobile (<760px): cards, one field per line ──────────────────────── */

@media (max-width: 759px) {
	.ucb-cl-runs thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		white-space: nowrap;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}

	.ucb-cl-runs,
	.ucb-cl-runs tbody {
		display: block;
	}

	.ucb-cl-runs tbody tr {
		display: block;
		border: 1px solid var(--ucbl-hair);
		border-radius: 10px;
		padding: 4px 14px;
		margin: 0 0 12px;
	}

	.ucb-cl-runs tbody td {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		border-bottom: 1px dashed var(--ucbl-hair);
	}

	.ucb-cl-runs tbody td:last-child {
		border-bottom: 0;
	}

	.ucb-cl-runs tbody td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		font-weight: 700;
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--ucbl-ink-soft);
		padding-top: 2px;
	}

	.ucb-cl-run-value,
	.ucb-cl-instructor-row {
		text-align: right;
	}

	.ucb-cl-instructor-row {
		flex-direction: row-reverse;
		justify-content: flex-end;
	}

	.ucb-cl-run-action {
		flex-direction: column;
		align-items: flex-end;
		text-align: right;
	}
}

/* ── Theme: dcm — the DCM festival look ───────────────────────────────────
   Enabled with [ucb_classes theme="dcm"] (and carried over from an Arlo
   [ucb_courses_grid_arlo theme="dcm"] at cutover). The shortcode puts
   `ucb-cl-theme-dcm` on #ucb-classes; the palette is the Arlo "DCM CARD
   THEME" one (ucb-courses-grid-arlo.css). Most of it is the tokens
   re-declared below, which the run table inherits too (its rules are
   class-scoped, so they read the tokens from this root). Rules after the
   token block override only what a token cannot express. Specificity
   (1,2,x) beats the (1,1,x) default rules above.

   The brand coral #c8442e is the AA-passing coral (never #e0573f): it is
   used ONLY as a solid fill under white text. As text, a link or a 3px
   underline it measures 3.38:1 on #1f1f23, so those use the amber instead.

   Contrast (sRGB relative luminance; surfaces #1f1f23 card, #151517 page,
   #2d2d33 card head):
     --ucbl-ink #f4f3f1 on #1f1f23 14.8:1, on #151517 16.5:1, on #2d2d33 12.3:1
     --ucbl-ink-soft #a7a7ad on #1f1f23 6.9:1, #151517 7.6:1, #2a2a30 6.0:1
     amber #e7a256 (links, outline button, tab underline) on #1f1f23 7.6:1,
       on #151517 8.4:1, on #2d2d33 6.3:1
     white on coral #c8442e 4.9:1; white on #a93824 (hover) 6.4:1
     green #6ee7b7 on #12261f 10.4:1; amber on #2b2013 7.4:1
     input border #8a8a93 on #151517 5.3:1 (needs 3:1); placeholder #94949a
       on #151517 6.1:1 (opacity: 1 stays)
     focus ring #ffffff on #151517 18.2:1, on #2d2d33 13.7:1 (needs 3:1) */

#ucb-classes.ucb-cl-theme-dcm {
	--ucbl-bg: #151517;
	--ucbl-surface: #1f1f23;
	--ucbl-ink: #f4f3f1;
	--ucbl-ink-soft: #a7a7ad;
	--ucbl-hair: #2d2d33;
	--ucbl-hair-strong: #8a8a93;
	--ucbl-brand: #c8442e;
	--ucbl-brand-dark: #a93824;
	--ucbl-focus: #ffffff;
	--ucbl-neutral-tint: #2a2a30;
	--ucbl-green: #6ee7b7;
	--ucbl-green-tint: #12261f;
	--ucbl-amber: #e7a256;
	--ucbl-amber-tint: #2b2013;
	--ucbl-accent: #e7a256;
	--ucbl-display: 'Knockout 31 Junior Middlewt', 'Barlow Condensed', 'Oswald', 'Archivo', Helvetica, Arial, sans-serif;

	background: linear-gradient(180deg, #1f1f23 0%, #151517 100%);
}

#ucb-classes.ucb-cl-theme-dcm a:not(.ucb-cl-btn) {
	color: var(--ucbl-accent);
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-chip {
	border-color: #53535d;
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-chip[aria-pressed='true'] {
	border-color: var(--ucbl-brand);
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-tab[aria-current='page'] {
	border-bottom-color: var(--ucbl-accent);
}

@media (max-width: 1099px) {
	#ucb-classes.ucb-cl-theme-dcm .ucb-cl-tabs .ucb-cl-tab.ucb-cl-tab {
		border-color: #53535d;
	}

	#ucb-classes.ucb-cl-theme-dcm .ucb-cl-tabs .ucb-cl-tab.ucb-cl-tab[aria-current='page'] {
		border-color: var(--ucbl-brand);
	}
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-search input[type="search"] {
	background: #151517;
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-search input[type="search"]::placeholder {
	color: #94949a;
	opacity: 1;
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-radio-row input,
#ucb-classes.ucb-cl-theme-dcm .ucb-cl-checkbox-row input {
	accent-color: var(--ucbl-accent);
}

/* The default head bar is --ucbl-ink (now light) under white text; on this
   theme it is a raised dark bar with a coral tab at its left edge. */
#ucb-classes.ucb-cl-theme-dcm .ucb-cl-course {
	background: linear-gradient(180deg, #1f1f23 0%, #151517 100%);
	border-color: #2d2d33;
	border-radius: 12px;
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-course-head {
	background: #2d2d33;
	color: var(--ucbl-ink);
	box-shadow: inset 6px 0 0 #c8442e;
	padding-left: 24px;
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-course-head:hover {
	background: #3a3a42;
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-course-title {
	color: var(--ucbl-ink);
}

/* Phone only: on desktop the About button sits in the bar and keeps its
   own white-on-dark / ink-on-white pair. */
@media (max-width: 759px) {
	#ucb-classes.ucb-cl-theme-dcm .ucb-cl-course > a.ucb-cl-course-about.ucb-cl-course-about {
		color: var(--ucbl-accent);
	}
}

/* Run rows: the run table's own rules read the tokens above; only the
   outline button, whose text is the brand colour, needs the amber. */
#ucb-classes.ucb-cl-theme-dcm .ucb-cl-btn.ucb-cl-btn-outline {
	color: var(--ucbl-accent);
	border-color: var(--ucbl-accent);
}

#ucb-classes.ucb-cl-theme-dcm .ucb-cl-btn.ucb-cl-btn-outline:hover,
#ucb-classes.ucb-cl-theme-dcm .ucb-cl-btn.ucb-cl-btn-outline:focus-visible {
	background: var(--ucbl-brand);
	border-color: var(--ucbl-brand);
	color: #ffffff;
}

/* ── Updating cover (a filter click) ──────────────────────────────────────
   ucb-courses-listing.js filterWithFeedback(): a short cover over the
   results column so a click visibly does something. The badge is sticky so
   it sits in view however far down the list the shopper is. Badge text
   --ucbl-ink on --ucbl-surface (17.9:1 light, 14.8:1 dark); the spinner arc
   --ucbl-brand on --ucbl-hair is a decorative graphic (aria-hidden). */

#ucb-classes .ucb-cl-main {
	position: relative;
}

#ucb-classes .ucb-cl-updating {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 5;
	background: color-mix(in srgb, var(--ucbl-bg) 70%, transparent);
	border-radius: 10px;
}

#ucb-classes .ucb-cl-main.is-updating > .ucb-cl-updating {
	display: block;
}

#ucb-classes .ucb-cl-updating-badge {
	position: sticky;
	top: calc(var(--ucbl-sticky-top, 76px) + 40px);
	display: flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	margin: 40px auto 0;
	padding: 10px 18px;
	background: var(--ucbl-surface);
	color: var(--ucbl-ink);
	border: 1px solid var(--ucbl-hair);
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(20, 18, 15, .12);
	font: 600 15px/1.2 var(--ucbl-body);
}

#ucb-classes .ucb-cl-updating-spinner {
	width: 18px;
	height: 18px;
	border: 3px solid var(--ucbl-hair);
	border-top-color: var(--ucbl-brand);
	border-radius: 50%;
	animation: ucb-cl-spin .7s linear infinite;
}

@keyframes ucb-cl-spin {
	to { transform: rotate(360deg); }
}

/* ── Motion ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	#ucb-classes .ucb-cl-chip,
	#ucb-classes .ucb-cl-apply,
	#ucb-classes .ucb-cl-course-chevron,
	#ucb-classes .ucb-cl-more-summary::after,
	#ucb-classes .ucb-cl-course > a.ucb-cl-course-about.ucb-cl-course-about {
		transition: none;
	}

	/* Still shown, but as a static ring rather than a spinning one. */
	#ucb-classes .ucb-cl-updating-spinner {
		animation: none;
	}

	/* Unscoped — .ucb-cl-btn is the run table's register/waitlist button,
	   shared with Course_Overview (see the run-table block above). */
	.ucb-cl-btn.ucb-cl-btn {
		transition: none;
	}
}
