/**
 * CRVO Demo Cards
 *
 * Design language is lifted from the homepage rather than invented:
 *   #369a9d  primary teal          #6aa3a6  flip-box border teal
 *   #121c1f  dark section band     #192131 / #4b506a  gradient band
 *   "Futura Condensed"             headings, per the site's own h1-h6 rule
 *   'Special Elite'                body face, inherited — never re-declared here
 *
 * Contexts: the "Sample Performances" widget on the homepage, the demo archive, and
 * single demo posts.
 */

/* Brand palette lives on :root so every component — including wrappers like
   .crvo-band that hold no content of their own — can resolve it. Scoping these to
   individual components silently broke any element left off the list. */
:root {
	--crvo-teal: #369a9d;
	--crvo-teal-soft: #6aa3a6;
	--crvo-ink: #121c1f;
	--crvo-ink-2: #192131;
	--crvo-slate: #4b506a;
	--crvo-mint: #c3e6e0;
	--crvo-display: "Futura Condensed", "Futura", "Oswald", "Arial Narrow", sans-serif;
	--crvo-wide: 1140px;
}

/* Light surface defaults; the dark band overrides these below. */
.crvo-grid,
.crvo-player,
.crvo-more {
	--crvo-fg: #121c1f;
	--crvo-muted: #121c1fa6;
	--crvo-surface: transparent;
	--crvo-border: #6aa3a6;
	--crvo-rail: #121c1f26;
	--crvo-play-bg: var(--crvo-teal);
	--crvo-play-fg: #fff;
	--crvo-fill: var(--crvo-teal);
}

/* Dark treatment, keyed to the surrounding band rather than to any one component,
   so a card is correct wherever it's placed. */
/* Every component gets an explicit dark selector. A player inherits nothing useful
   from an ancestor grid here: the light defaults are declared directly on .crvo-player,
   so they beat any value inherited from .crvo-grid. */
.crvo-archive .crvo-grid,
.crvo-archive .crvo-player,
.crvo-archive .crvo-more,
.testimonial-row .crvo-grid,
.testimonial-row .crvo-player,
.testimonial-row .crvo-more,
.white .crvo-grid,
.white .crvo-player,
.white .crvo-more,
.crvo-band .crvo-grid,
.crvo-band .crvo-player,
.crvo-band .crvo-more,
.crvo-single .crvo-player,
.crvo-on-dark {
	--crvo-fg: #fff;
	--crvo-muted: #ffffffad;
	--crvo-surface: #ffffff0f;
	--crvo-border: #6aa3a6;
	--crvo-rail: #ffffff30;
	--crvo-play-bg: #fff;
	--crvo-play-fg: #10474a;
	--crvo-fill: #fff;
}

/* ---------------------------------------------------------------- Bands */

/* Bands fill whatever column they're in by default. The demo listing keeps its
   sidebar, so bleeding these to 100vw there would run straight under it. */
.crvo-pagehead,
.crvo-band {
	padding-inline: clamp(1.25rem, 3vw, 2rem);
	background: var(--crvo-ink);
	color: #fff;
}

/* Only escape the column where the layout is genuinely full width — single demos. */
.full-width-content .crvo-pagehead,
.full-width-content .crvo-band {
	margin-inline: calc(50% - 50vw);
	width: 100vw;
	padding-inline: max(1.25rem, calc(50vw - (var(--crvo-wide) / 2)));
}

.crvo-pagehead {
	padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem);
	background: linear-gradient(0deg, var(--crvo-ink) 0%, var(--crvo-ink-2) 100%);
}

.crvo-pagehead__inner {
	max-width: var(--crvo-wide);
	margin-inline: auto;
}

.crvo-pagehead__title {
	font-family: var(--crvo-display);
	font-weight: bold;
	font-size: clamp(2rem, 5vw, 2.6rem);
	line-height: 1.05;
	color: #fff;
	margin: 0;
	text-wrap: balance;
}

.crvo-pagehead__sub {
	margin: .55rem 0 0;
	color: var(--crvo-teal-soft);
	font-size: .95rem;
	letter-spacing: .04em;
}

/* The grid band continues straight out of the head, so the two read as one section. */
.crvo-band {
	padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
}

.crvo-band > * {
	max-width: var(--crvo-wide);
	margin-inline: auto;
}

/* ---------------------------------------------------------------- Grid */

.crvo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: 1.25rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	text-align: left;
}

.crvo-grid--widget {
	max-width: 46rem;
}

/* ---------------------------------------------------------------- Card */

/* Mirrors the homepage flip boxes: transparent fill, 2px teal rule, no shadow. */
.crvo-card {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	padding: 1.4rem 1.5rem 1.55rem;
	border: 2px solid var(--crvo-border);
	background: var(--crvo-surface);
	color: var(--crvo-fg);
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.crvo-card:hover,
.crvo-card:focus-within {
	border-color: var(--crvo-teal);
	background: color-mix(in srgb, var(--crvo-teal) 12%, transparent);
	transform: translateY(-2px);
}

.crvo-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .75rem;
}

.crvo-card__title {
	margin: 0;
	font-family: var(--crvo-display);
	font-weight: bold;
	font-size: 1.32rem;
	line-height: 1.15;
	letter-spacing: .01em;
}

.crvo-card__title a {
	color: inherit;
	text-decoration: none;
	border: 0;
}

.crvo-card__title a:hover,
.crvo-card__title a:focus {
	color: var(--crvo-teal-soft);
}

/* ---------------------------------------------------------------- Player */

.crvo-player {
	display: flex;
	align-items: center;
	gap: .9rem;
	color: var(--crvo-fg);
}

.crvo-player__play {
	flex: none;
	width: 2.9rem;
	height: 2.9rem;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--crvo-play-bg);
	color: var(--crvo-play-fg);
	cursor: pointer;
	transition: transform .15s ease, filter .15s ease;
}

.crvo-player__play:hover {
	filter: brightness(1.08);
	transform: scale(1.06);
}

.crvo-player__play:focus-visible {
	outline: 2px solid var(--crvo-teal-soft);
	outline-offset: 3px;
}

/* Play triangle; becomes a pause pair while playing. */
.crvo-player__icon {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 12px solid currentColor;
}

.crvo-player__play[aria-pressed="true"] .crvo-player__icon {
	width: 12px;
	height: 14px;
	margin-left: 0;
	border: 0;
	background: linear-gradient(to right,
		currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}

.crvo-player__play.is-loading .crvo-player__icon {
	animation: crvo-pulse .9s ease-in-out infinite;
}

@keyframes crvo-pulse { 50% { opacity: .35 } }

.crvo-player__track {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.crvo-player__bar {
	position: relative;
	height: 6px;
	border-radius: 3px;
	background: var(--crvo-rail);
	cursor: pointer;
}

.crvo-player__bar:focus-visible {
	outline: 2px solid var(--crvo-teal-soft);
	outline-offset: 4px;
}

.crvo-player__buffer,
.crvo-player__fill {
	position: absolute;
	inset-block: 0;
	left: 0;
	width: 0;
	border-radius: inherit;
}

.crvo-player__buffer { background: var(--crvo-rail) }
.crvo-player__fill { background: var(--crvo-fill) }

/* Sits on the playhead; grows on hover so the bar reads as draggable. */
.crvo-player__thumb {
	position: absolute;
	top: 50%;
	left: 0;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	border-radius: 50%;
	background: var(--crvo-fill);
	transform: translateY(-50%) scale(0);
	transition: transform .15s ease;
}

.crvo-player__bar:hover .crvo-player__thumb,
.crvo-player__bar:focus-visible .crvo-player__thumb,
.crvo-player.is-playing .crvo-player__thumb {
	transform: translateY(-50%) scale(1);
}

.crvo-player__times {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
	margin: 0;
	font-size: .72rem;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
	color: var(--crvo-muted);
}

.crvo-player__dl {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	color: var(--crvo-muted);
	text-decoration: none;
	border: 0;
	transition: color .15s ease, background-color .15s ease;
}

.crvo-player__dl:hover,
.crvo-player__dl:focus-visible {
	color: var(--crvo-teal-soft);
	background: var(--crvo-rail);
}

/* Lead variant: the player is the whole point of a single demo post. */
.crvo-player--lead {
	gap: 1.2rem;
	padding: 1.6rem 1.75rem;
	border: 2px solid var(--crvo-teal-soft);
	background: #ffffff0f;
}

.crvo-player--lead .crvo-player__play {
	width: 3.9rem;
	height: 3.9rem;
}

.crvo-player--lead .crvo-player__icon {
	border-top-width: 9px;
	border-bottom-width: 9px;
	border-left-width: 16px;
}

.crvo-player--lead .crvo-player__play[aria-pressed="true"] .crvo-player__icon {
	width: 16px;
	height: 19px;
	background: linear-gradient(to right,
		currentColor 0 5px, transparent 5px 11px, currentColor 11px 16px);
}

.crvo-player--lead .crvo-player__bar { height: 8px; border-radius: 4px }
.crvo-player--lead .crvo-player__times { font-size: .8rem }

/* ---------------------------------------------------------------- Single */

.crvo-single .entry-header,
.crvo-single .entry-content,
.crvo-single .entry-footer {
	max-width: var(--crvo-wide, 1140px);
	margin-inline: auto;
}

.crvo-single .entry-title {
	font-family: "Futura Condensed", "Futura", "Oswald", "Arial Narrow", sans-serif;
	font-weight: bold;
	line-height: 1.05;
}

.crvo-single .customaudioplayer { display: none }

.crvo-backlink {
	margin: 2rem 0 0;
	font-size: .9rem;
	letter-spacing: .05em;
}

.crvo-backlink a {
	color: var(--crvo-teal);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	padding-bottom: 2px;
	transition: border-color .15s ease;
}

.crvo-backlink a::before {
	content: "\2190";
	margin-right: .5rem;
}

.crvo-backlink a:hover,
.crvo-backlink a:focus {
	border-bottom-color: var(--crvo-teal);
}

/* ---------------------------------------------------------------- Misc */

.crvo-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	padding: 0;
	margin: 2.25rem 0 0;
	list-style: none;
	justify-content: center;
}

.crvo-pagination a,
.crvo-pagination span {
	display: block;
	padding: .4rem .8rem;
	border: 2px solid var(--crvo-teal-soft, #6aa3a6);
	color: inherit;
	text-decoration: none;
}

.crvo-pagination .current {
	background: #369a9d;
	border-color: #369a9d;
	color: #fff;
}

.crvo-empty { opacity: .75 }

@media (prefers-reduced-motion: reduce) {
	.crvo-card,
	.crvo-player__play,
	.crvo-player__thumb { transition: none }
	.crvo-card:hover,
	.crvo-card:focus-within { transform: none }
	.crvo-player__play.is-loading .crvo-player__icon { animation: none }
}

/* ------------------------------------------------- Single post, dark band */

/* Single demos get the same dark section treatment as the homepage rows, so a
   demo page reads as part of the site rather than a stray white article page. */
.crvo-single .site-inner {
	background: linear-gradient(0deg, #121c1f 0%, #192131 100%);
	color: #fff;
	padding: clamp(2.5rem, 6vw, 4rem) max(1.25rem, calc(50vw - 570px)) clamp(3rem, 7vw, 4.5rem);
	margin-top: 0;
	max-width: none;
}

.crvo-single .entry-title { color: #fff }
.crvo-single .entry-content { color: #ffffffde }
.crvo-single .entry-content a { color: #6aa3a6 }
.crvo-single .entry-footer,
.crvo-single .entry-meta { color: #ffffffa6 }
.crvo-single .entry-footer a { color: #6aa3a6 }

/* ------------------------------------------------- Refinements */

/* Font Awesome ships its own colour rules; make the glyph inherit ours explicitly
   so the download control keeps contrast on the dark band. */
.crvo-player__dl,
.crvo-player__dl i {
	color: var(--crvo-muted);
}

.crvo-player__dl:hover,
.crvo-player__dl:hover i,
.crvo-player__dl:focus-visible,
.crvo-player__dl:focus-visible i {
	color: var(--crvo-teal-soft);
}

/* Left unconstrained the lead player spans the full 1140px column, which throws the
   elapsed and total times to opposite ends of the screen. */
.crvo-player--lead {
	max-width: 44rem;
}

/* ------------------------------------------------- Term navigation */

.crvo-termnav {
	margin-top: 1.4rem;
}

.crvo-termnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crvo-termnav__link {
	display: inline-flex;
	align-items: baseline;
	gap: .4rem;
	padding: .34rem .8rem;
	border: 1px solid #ffffff2e;
	color: #ffffffd4;
	font-family: var(--crvo-display);
	font-size: 1rem;
	letter-spacing: .04em;
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.crvo-termnav__link:hover,
.crvo-termnav__link:focus-visible {
	color: #fff;
	border-color: var(--crvo-teal-soft);
	background: #ffffff14;
}

.crvo-termnav__link.is-current {
	color: #fff;
	border-color: var(--crvo-teal);
	background: var(--crvo-teal);
}

.crvo-termnav__count {
	font-family: inherit;
	font-size: .78em;
	opacity: .7;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------- View more */

.crvo-more {
	margin: 1.6rem 0 0;
	text-align: center;
}

.crvo-more__link {
	display: inline-block;
	padding: .7rem 1.6rem;
	border: 2px solid var(--crvo-teal-soft);
	color: var(--crvo-fg);
	font-family: var(--crvo-display);
	font-size: 1.05rem;
	letter-spacing: .05em;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.crvo-more__link:hover,
.crvo-more__link:focus-visible {
	background: var(--crvo-teal);
	border-color: var(--crvo-teal);
	color: #fff;
}

.crvo-more__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* The widget grid is centred in its row, so the link should line up under it. */
.crvo-grid--widget + .crvo-more {
	max-width: 46rem;
	margin-inline: auto;
}

/* ================================================= Archive page shell
 *
 * The homepage is edge-to-edge dark sections. Confining the band to the content
 * column left it as a dark box floating on white, so the whole page area goes dark
 * and the sidebar comes with it.
 */

.crvo-archive .site-inner {
	max-width: none;
	width: 100%;
	margin-top: 0;
	padding: clamp(2rem, 5vw, 3.25rem) max(1.25rem, calc(50vw - 570px)) clamp(3rem, 7vw, 4.5rem);
	background: linear-gradient(0deg, #121c1f 0%, #192131 100%);
	color: #fff;
}

.crvo-archive .content-sidebar-wrap {
	max-width: var(--crvo-wide);
	margin-inline: auto;
}

/* The bands sit on an already-dark page now, so they stop painting their own. */
.crvo-archive .crvo-pagehead,
.crvo-archive .crvo-band {
	background: none;
	padding-inline: 0;
}

.crvo-archive .crvo-pagehead {
	padding-block: 0 1.75rem;
	border-bottom: 1px solid #ffffff1f;
	margin-bottom: 2rem;
}

.crvo-archive .crvo-band {
	padding-block: 0;
}

/* Sidebar ---------------------------------------------------------------- */

.crvo-archive .sidebar,
.crvo-archive .sidebar p,
.crvo-archive .sidebar li {
	color: #ffffffd6;
}

.crvo-archive .sidebar .widget-title,
.crvo-archive .sidebar .widgettitle {
	font-family: var(--crvo-display);
	font-weight: bold;
	color: #fff;
	letter-spacing: .02em;
}

.crvo-archive .sidebar a {
	color: var(--crvo-teal-soft);
	text-decoration: none;
}

.crvo-archive .sidebar a:hover,
.crvo-archive .sidebar a:focus {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: .16em;
}

.crvo-archive .sidebar .widget {
	margin-bottom: 2rem;
}

/* Genesis draws widget lists with hairline rules that vanish on a dark ground. */
.crvo-archive .sidebar li {
	border-bottom-color: #ffffff1f;
}

/* The sidebar link colour outranks .crvo-card__title a, which turned card titles teal
   in the sidebar while the same cards stayed white in the main column. Cards keep their
   own typography wherever they are placed. */
.crvo-archive .sidebar .crvo-card__title a {
	color: inherit;
}

.crvo-archive .sidebar .crvo-card__title a:hover,
.crvo-archive .sidebar .crvo-card__title a:focus {
	color: var(--crvo-teal-soft);
	text-decoration: none;
}
