/* 14-dark-contrast.css — light-theme assumptions left over from the inversion.
   Loads after 13 so it wins.

   Found by a WCAG contrast audit run against the rendered pages on
   2026-11-18, not by eye. Every ratio quoted below was measured.

   Two root causes, both predictable from the inversion:
     * colour7 and colour8 used to be TEXT colours on a light ground. They
       are now surfaces, so anything still using them as text is invisible.
     * colour2 used to be a light SURFACE. It is now a text colour, so
       panels that used it as a background turned light, and the dark text
       on them disappeared.
   The plugin's own ppe.css was written against the light theme; these
   overrides live here rather than in the plugin because the dark scheme is
   a decision about this site, not about the plugin. */

/* ---- episode rows: title was colour7 on colour8 — ratio 1.09 -------- */
.ppe-row-title {
	color: var(--awb-color1) !important;
}
.ppe-row:hover .ppe-row-title {
	color: var(--fb-violet-lit, #C77DFF) !important;   /* 7.8:1, vs 2.4:1 for raw violet */
}

/* ---- sort headers and "see all" links: violet on near-black is 2.41 -- */
.ppe-sortcol.is-sorted,
.ppe-sortcol:hover,
.fb-more,
.fb-section-more,
.fb-more:hover,
.fb-section-more:hover {
	color: var(--awb-color5) !important;               /* cyan: the decided link colour */
}
.ppe-sortcol { color: var(--awb-color6) !important; }

/* ---- the premium pill: colour6 on a colour2 panel — ratio 1.85 ------ */
.ppe-premium-static {
	background: var(--awb-color7) !important;
	border-color: var(--awb-color3) !important;
	color: var(--awb-color2) !important;
}
.ppe-premium-cta {
	border-color: var(--fb-violet-lit, #C77DFF) !important;
	color: var(--fb-violet-lit, #C77DFF) !important;
}
.ppe-premium-cta:hover {
	background: var(--awb-color4) !important;
	color: #fff !important;
}

/* ---- counts and chips: colour6 is a muted tone for DARK now --------- */
.ppe-series-count,
.ppe-chip-n {
	color: var(--awb-color6) !important;
}
.ppe-chip {
	background: var(--awb-color7) !important;
	border-color: var(--awb-color3) !important;
	color: var(--awb-color2) !important;
}
.ppe-chip.is-on {
	background: var(--awb-color4) !important;
	border-color: var(--awb-color4) !important;
	color: #fff !important;
}

/* ---- panels that used colour2 as a light surface -------------------- */
/* .fb-members measured white-on-#D7DDEA at 1.36 for its heading and
   1.00 for its body copy — the text was the same colour as the panel. */
.fb-note,
.fb-contact-aside,
.fb-members,
.fb-soon {
	background: var(--awb-color7) !important;
	border-color: var(--awb-color3) !important;
	color: var(--awb-color2) !important;
}
.fb-note *,
.fb-contact-aside *,
.fb-members p,
.fb-members li,
.fb-soon p {
	color: var(--awb-color2) !important;
}
.fb-members h1, .fb-members h2, .fb-members h3,
.fb-contact-aside h1, .fb-contact-aside h2, .fb-contact-aside h3,
.fb-soon h1, .fb-soon h2, .fb-soon h3 {
	color: var(--awb-color1) !important;
}
.fb-members strong, .fb-soon strong, .fb-note strong {
	color: var(--awb-color1) !important;
}

/* ---- series / episode page titles were colour8 on colour8 ----------- */
/* Measured ratio 1.00 on /series/polar-mysteries/ — the H1 was the same
   colour as the page. Avada's page-title options were re-pointed during the
   inversion, but the single-post entry title is drawn from a different key. */
.single-ppe_series .entry-title,
.single-episode .entry-title,
.single-ppe_guest .entry-title,
.post-content .entry-title,
h1.entry-title.fusion-post-title {
	color: var(--awb-color1) !important;
}

/* ---- the rest of the family ----------------------------------------- */
/* The audit only sees resting states, so it flagged two. Grepping ppe.css
   for the same pattern found eight more light surfaces, most of them on
   :hover — which would have flashed white under the cursor and never shown
   up in a static check. Fixing the family, not the two symptoms. */
.ppe-row:hover,
.ppe-locked:hover,
.ppe-watch:hover,
.ppe-chip:hover,
a.ppe-nav-slot:hover {
	background: var(--awb-color7) !important;
}
.ppe-series-card {
	background: var(--awb-color7) !important;
	border-color: var(--awb-color3) !important;
	border-left-color: var(--awb-color4) !important;
	color: var(--awb-color2) !important;
}
.ppe-series-card:hover {
	background: var(--fb-surface-2, #171B2E) !important;
	border-left-color: var(--awb-color5) !important;
}
.ppe-series-card *,
.ppe-series-card .ppe-series-count { color: var(--awb-color6) !important; }
.ppe-series-card .ppe-series-name,
.ppe-series-card strong,
.ppe-series-card h2, .ppe-series-card h3 { color: var(--awb-color1) !important; }

/* form controls were white boxes with dark text */
.ppe-search input,
.ppe-sel select {
	background: var(--awb-color7) !important;
	border-color: var(--awb-color3) !important;
	color: var(--awb-color2) !important;
}
.ppe-search input::placeholder { color: var(--awb-color6) !important; }

/* the active filter chip paints itself violet, so its count needs to go
   light with it — my own .ppe-chip-n rule above was overriding the
   plugin's correct on-state colour */
.ppe-chip.is-on .ppe-chip-n { color: rgba(255,255,255,.88) !important; }
.ppe-watch:hover { color: var(--awb-color5) !important; }
