/*
 * Phase 8G — the recovered dark colour scheme: "Dark" in the colour-scheme control. Every rule is scoped to
 * html.scheme_dark, so the default (light) scheme is exactly as before.
 *
 * Evidence:
 * - the old theme's own scheme_dark palette (its --theme-color-* variables, recovered stylesheet dce18688…):
 *   background #071021, content #1f2632, navigation #181f2d, menu #131c2c, borders #383c43, text #bfc2c9, light text
 *   #96999f, dark text #fcfcfc, inputs #071021 / #383c43 / #fcfcfc, theme link and accent #2a8ffb (hover #1f7bdd),
 *   accent text #ffffff;
 * - the recovered pages rendered with the old switcher's own step (body class scheme_dark; "invert" on the header,
 *   mobile-menu and footer logos), compared element by element and pixel block by block with this site (the Phase 8G
 *   colour census and block comparison);
 * - live-site screenshots of the old dark scheme (2026-10-04, supplementary).
 *
 * The old site's own logic, kept: the theme's link and accent colour turns from pink to blue; everything drawn by its
 * plugins and page builder in fixed colours keeps them (the show, presenter, sponsor and episode cards and boxes, the
 * player, the copyright band, the notices, the light "Latest Podcasts" rows, the white Quick Jump frames, the events
 * bar and the knowledge-base hero). Images are never filtered, except the logos the old switcher inverted.
 *
 * Intentional accessibility improvements (the old dark scheme put unreadable text on some of those fixed surfaces):
 * inside the white cards, boxes and pills the text keeps its light-scheme colours (the old site used its pale
 * dark-scheme text there, down to 1:1 on white); the poll's question, names and results, the calendar's day numbers,
 * its phone month links and the activity times are light on the dark panels, and today's date and the statistics pager
 * use the scheme's blue (the old site kept them near-black or dark blue); the new texts of later phases (the weather
 * notice, the statistics note, the legal page) use the scheme's text colour.
 */

/* ------------------------------------------------------------------ the palette (the theme's scheme variables) */
:root.scheme_dark {
	--wrs-text: #bfc2c9;
	--wrs-text-light: #96999f;
	--wrs-text-dark: #fcfcfc;
	--wrs-bg: #071021;
	--wrs-surface: #1f2632;
	--wrs-menu-bg: #131c2c;
	--wrs-border: #383c43;
	--wrs-hover: #1f7bdd;
	--wrs-accent-text: #ffffff;
}

/* Links in the theme's link colour. */
:where(.scheme_dark) a { color: #2a8ffb; }

/*
 * Fixed white surfaces of the old plugins and page builder stay white; inside them the light scheme's text colours
 * are restored (an accessibility improvement — see above).
 */
.scheme_dark :is(.wrs-box, .wrs-episode-header, .wrs-points li, .wrs-adjacent--show, .wrs-latest__item, .wrs-empty-state__bar, .wrs-empty-state__feedback, .wrs-empty-state__today, .wrs-search-hero__field) {
	--wrs-text: #7a7e83;
	--wrs-text-light: #9c9da1;
	--wrs-text-dark: #071021;
	--wrs-bg: #f1f3f6;
	--wrs-surface: #ffffff;
	--wrs-border: #e4e4e4;
	--wrs-hover: #083fa9;
}

/* ------------------------------------------------------------------ logos: inverted, as the old switcher did */
.scheme_dark .wrs-logo img,
.scheme_dark .wrs-menu__logo img { filter: invert(1); }

/* ------------------------------------------------------------------ side menu */
.scheme_dark .wrs-menu__top { background: #1f2632; }
.scheme_dark .wrs-menu__tile { background: #1f2632; }
.scheme_dark .wrs-menu__toggle:hover,
.scheme_dark .wrs-menu__link:hover,
.scheme_dark .wrs-menu__item.is-current .wrs-menu__link,
.scheme_dark .wrs-menu__item.is-ancestor > .wrs-menu__link,
.scheme_dark .wrs-menu__item.is-current .wrs-menu__tile,
.scheme_dark .wrs-menu__item.is-ancestor > .wrs-menu__link .wrs-menu__tile,
.scheme_dark .wrs-menu__sublink:hover,
.scheme_dark .wrs-menu__subitem.is-current > .wrs-menu__row > .wrs-menu__sublink,
.scheme_dark .wrs-menu__subicon { color: #2a8ffb; }

/* ------------------------------------------------------------------ top bar, language list, search overlay */
.scheme_dark .wrs-topbar { background: #1f2632; }
.scheme_dark .wrs-lang__list { background: #1f2632; }
.scheme_dark .wrs-search--header .wrs-search__submit:hover,
.scheme_dark .wrs-topbar__search-toggle:hover,
.scheme_dark .wrs-lang__toggle:hover .wrs-lang__title,
.scheme_dark .wrs-lang.is-open .wrs-lang__title,
.scheme_dark .wrs-lang__name:hover,
.scheme_dark .wrs-lang__item.is-current .wrs-lang__name,
.scheme_dark .wrs-topbar__icon:hover,
.scheme_dark .wrs-topbar__login:hover,
.scheme_dark .wrs-search-overlay__close:hover { color: #2a8ffb; }
.scheme_dark .wrs-search-overlay::before { background: #181f2d; }
.scheme_dark .wrs-search--header .wrs-search__field { color: #fcfcfc; }

/* ------------------------------------------------------------------ login popup */
.scheme_dark .wrs-login__veil { background: rgba(7, 16, 33, 0.9); }
.scheme_dark .wrs-login__close { color: #fcfcfc; }
.scheme_dark .wrs-login__panel { background: #1f2632; }
.scheme_dark .wrs-login__tab { color: #2a8ffb; }
.scheme_dark .wrs-login__tab.is-active { background: #181f2d; }
.scheme_dark .wrs-login__tab.is-active::after { background: #2a8ffb; }
.scheme_dark .wrs-login__field { background: #071021; color: #fcfcfc; }
.scheme_dark .wrs-login__check:checked + span::after { border-color: #2a8ffb; }
.scheme_dark .wrs-login__submit,
.scheme_dark .wrs-contact-form__submit,
.scheme_dark .wrs-player__minimise,
.scheme_dark .wrs-player__play,
.scheme_dark .wrs-player__skip,
.scheme_dark .wrs-player__mode select {
	background-color: #2a8ffb;
	background-image: linear-gradient(to left, #1f7bdd 50%, #2a8ffb 50%);
}

/* ------------------------------------------------------------------ buttons the theme drew in its accent colour */
.scheme_dark .wrs-load-more,
.scheme_dark .wrs-view-all-button,
.scheme_dark button.wrs-poll__button,
.scheme_dark .wrs-empty-state__bar-button,
.scheme_dark .wrs-empty-state__subscribe span,
.scheme_dark .wrs-empty-state__bar-mini,
.scheme_dark .wrs-empty-state__search-button,
.scheme_dark .wrs-search-hero__button,
.scheme_dark .wrs-notice__dismiss,
.scheme_dark .wrs-top,
.scheme_dark .wrs-nav-progress,
.scheme_dark .wrs-progress__bar,
.scheme_dark .wrs-like-pill,
.scheme_dark .wrs-news-card__overlay-meta .wrs-news-card__category { background: #2a8ffb; }
.scheme_dark .wrs-progress__bar { box-shadow: 0 3px 10px rgba(42, 143, 251, 0.2); }
.scheme_dark .wrs-player__seek { accent-color: #2a8ffb; }
/* Their hover states, as in the light scheme. */
.scheme_dark .wrs-load-more:hover,
.scheme_dark .wrs-load-more:focus-visible { background: #000; }
.scheme_dark button.wrs-poll__button:hover,
.scheme_dark button.wrs-poll__button:focus-visible,
.scheme_dark button.wrs-poll__button:active { background: #333; }
.scheme_dark .wrs-notice__dismiss:hover,
.scheme_dark .wrs-top:hover { background: var(--wrs-hover); }

/* ------------------------------------------------------------------ home */
.scheme_dark .wrs-tile { background: #1f2632; }
.scheme_dark .wrs-tile:hover { background: #2a8ffb; }
.scheme_dark .wrs-founder,
.scheme_dark .wrs-home__col--right { background: #1f2632; }
.scheme_dark .wrs-weather-notice p,
.scheme_dark .wrs-weather-notice__more,
.scheme_dark .wrs-counters__note { color: var(--wrs-text); }
.scheme_dark .wrs-pie__legend { color: #bfc2c9; }
/* The legend pager's #0011cc is 1.4:1 on the dark panel (the old live site's dark scheme): the scheme's blue instead. */
.scheme_dark .wrs-pie__pager { color: #2a8ffb; }

/* Poll: the old dark scheme kept the question and names near-black on the dark panel (an accessibility improvement). */
.scheme_dark .wrs-poll__question,
.scheme_dark .wrs-poll__option,
.scheme_dark .wrs-poll__row { color: #fcfcfc; }
.scheme_dark .wrs-poll__count { color: #bfc2c9; }
.scheme_dark .wrs-poll__bar { background: #383c43; }

/* ------------------------------------------------------------------ pages, panels and lists */
.scheme_dark .wrs-404__code { color: rgba(42, 143, 251, 0.07); }
.scheme_dark .wrs-search--page .wrs-search__submit { background: #fcfcfc; color: #071021; }
.scheme_dark .wrs-search--page .wrs-search__submit:hover { background: #2a8ffb; color: #ffffff; }
.scheme_dark a.wrs-view-all[href]:hover { color: #1f7bdd; }
.scheme_dark .wrs-adjacent__post-link:hover .wrs-adjacent__post-title,
.scheme_dark .wrs-contact-card__lines a:hover,
.scheme_dark .wrs-empty-state__crumb,
.scheme_dark .wrs-empty-state__rss { color: #2a8ffb; }
.scheme_dark .wrs-empty-state__crumbs .wrs-empty-state__crumb--current,
.scheme_dark .wrs-empty-state__crumbs .wrs-empty-state__crumb--text { color: var(--wrs-text); }
.scheme_dark .wrs-empty-state__search-field { color: #bfc2c9; }
.scheme_dark .wrs-empty-state__subscribe span { color: #ffffff; }
.scheme_dark .wrs-empty-state__table th,
.scheme_dark .wrs-empty-state__forum-head,
.scheme_dark .wrs-empty-state__forum-table th,
.scheme_dark .wrs-topic-index__table thead th { background: #181f2d; }
.scheme_dark .wrs-topic-index__table tbody th,
.scheme_dark .wrs-topic-index__table tbody td,
.scheme_dark .wrs-topic-index__table tfoot td,
.scheme_dark .wrs-empty-state__forum-footer { background: #1f2632; }
.scheme_dark .wrs-empty-state__forum,
.scheme_dark .wrs-empty-state__forum-search { border-color: #383c43; }
.scheme_dark .wrs-empty-state__forum-search { background: #071021; }
.scheme_dark .wrs-empty-state__forum-search-button { background: #fcfcfc; color: #071021; }
.scheme_dark .wrs-empty-state__message { background: #1f2632; }
.scheme_dark .wrs-empty-state__month { background: #1f2632; }
.scheme_dark .wrs-empty-state__month th { color: #96999f; }
/* The calendar's day numbers: near-black on the dark grid in the old dark scheme (an accessibility improvement). */
.scheme_dark .wrs-empty-state__daynum,
.scheme_dark .wrs-empty-state__pager-today { color: #bfc2c9; }
/* Today's number: the calendar's own #334aff is 2.6:1 on the dark grid; the scheme's blue (an accessibility improvement). */
.scheme_dark .wrs-empty-state__month .is-today .wrs-empty-state__daynum { color: #2a8ffb; }
/* The phone calendar's previous/next months: the calendar's own #141827 on the dark page (an accessibility improvement). */
.scheme_dark .wrs-empty-state--events-month .wrs-empty-state__pager { color: #bfc2c9; }
.scheme_dark .wrs-empty-state__select,
.scheme_dark .wrs-empty-state__select::before { background: #071021; }

/* ------------------------------------------------------------------ forms */
.scheme_dark .wrs-contact-form__field { background: #071021; color: #fcfcfc; }
.scheme_dark .wrs-contact-form__field:focus { background: #131c2c; }
.scheme_dark .wrs-contact-form__check:checked { background: radial-gradient(circle, #2a8ffb 55%, var(--wrs-surface) 62%); }
/* Error tips: the old theme's own tip colour (accent_link2, #fb582a); the light scheme's #db3c11 is 3.4:1 on the dark panel. */
.scheme_dark .wrs-contact-form__tip { color: #fb582a; }

/* ------------------------------------------------------------------ editorial content */
.scheme_dark .wrs-testimonials__pause,
.scheme_dark .wrs-slider__pause { background: #1f2632; }
/* Activity times: the old #767676 is below 4.5:1 on the dark panel (an accessibility improvement). */
.scheme_dark .wrs-activity__time { color: #96999f; }
.scheme_dark .wrs-legal__content p,
.scheme_dark .wrs-legal__content li,
.scheme_dark .wrs-legal__content .wp-block-table td { color: #bfc2c9; }
/* The review box keeps its light background, so its dark text (the light scheme's) too. */
.scheme_dark .wrs-legal__review { --wrs-text-dark: #071021; }
.scheme_dark .wrs-legal__review p { color: #071021; }

/* ------------------------------------------------------------------ the colour-scheme control's choices */
/* Each recovered choice carried its own scheme, so "Default" stays light and "Dark" dark in either scheme. */
.scheme_dark .wrs-scheme__option--default { background: #f1f3f6; border-color: #e4e4e4; color: #7a7e83; }
.scheme_dark .wrs-scheme__option--dark { background: #071021; border-color: #383c43; color: #bfc2c9; }

/* ------------------------------------------------------------------ Phase 8J: News engagement and comments */
/* The scheme's text colour for the new small texts; the scheme's blue for the accent, with dark text where it is a
   fill (white on the blue would be 3.27:1). */
.scheme_dark :is(.wrs-engagement, .wrs-comments) { --wrs-ink: #bfc2c9; }
.scheme_dark .wrs-engagement__heart { fill: #2a8ffb; }
.scheme_dark .wrs-engagement__button:hover { border-color: #2a8ffb; }
.scheme_dark .wrs-engagement__button[aria-pressed="true"] { background: #2a8ffb; border-color: #2a8ffb; color: #071021; }
.scheme_dark .wrs-engagement__comments:hover { color: #2a8ffb; }
.scheme_dark .wrs-comments__count { background: #2a8ffb; color: #071021; }
.scheme_dark .wrs-comment__text a { color: #2a8ffb; }
.scheme_dark .wrs-comment__pending { color: #f0b35a; }

/* ------------------------------------------------------------------ Phase 8K: the testimonial form */
.scheme_dark .wrs-testimonial-form { --wrs-ink: #bfc2c9; }
/* The scheme's blue for the accent marks (the pink would be 3.4:1 on the dark card). */
.scheme_dark .wrs-testimonial-form__required { color: #2a8ffb; }
.scheme_dark .wrs-testimonial-form__star-input:checked + .wrs-testimonial-form__none,
.scheme_dark .wrs-testimonial-form__file:hover::file-selector-button { border-color: #2a8ffb; }
.scheme_dark .wrs-testimonial-form__rating[aria-invalid="true"] .wrs-testimonial-form__none,
.scheme_dark .wrs-testimonial-form__file[aria-invalid="true"]::file-selector-button { border-color: #fb582a; }
