/**
 * Theme Name:  PortsmouthVote
 * Theme URI:   https://portsmouthvote.org/
 * Description: Custom, self-contained parent theme for PortsmouthVote.org, a nonpartisan candidate video publication platform for Portsmouth, Virginia elections. No child theme required. No third-party dependencies.
 * Author:      Total Web Lab, a division of Total Media Lab
 * Author URI:  https://totalweblab.com/
 * Version:     1.27.1
 * Requires at least: 6.5
 * Requires PHP: 8.0
 * License:     GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: portsmouthvote
 *
 * @package PortsmouthVote
 * @since   1.0.0
 *
 * Palette and type are derived from the PortsmouthVote logo. Every color pair
 * used for text has been contrast tested, and the tested value is noted next to
 * the token. Do not swap a token for a lighter one without retesting.
 */

/* -------------------------------------------------------------------------
 * 1. Type. Open Sans, self-hosted, variable weight 400 to 700.
 *    Matches the logo wordmark. Served first party so nothing leaks to a CDN
 *    and the Content Security Policy stays at font-src 'self'.
 * ---------------------------------------------------------------------- */

@font-face {
	font-family: "Open Sans PV";
	src: url("assets/fonts/pv-open-sans.woff2") format("woff2-variations");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* -------------------------------------------------------------------------
 * 2. Tokens
 * ---------------------------------------------------------------------- */

:root {
	/* Surfaces */
	--pv-paper:        #f4f6f6;
	--pv-surface:      #ffffff;
	--pv-rule:         #d3dedd;
	--pv-rule-soft:    #e4eceb;
	--pv-wash:         #eef3f2;

	/* Logo colors, used as drawn */
	--pv-teal:         #4c9399;  /* Logo teal. Graphics and large display only. */
	--pv-rust:         #c9623f;  /* Logo rust. Graphics and rules only.        */
	--pv-petrol:       #124b5b;  /* Logo deep petrol. 8.87:1 on paper.         */
	--pv-navy:         #203d4f;  /* OTBA badge navy. 10.51:1 on paper.         */

	/* Text and interactive, contrast tested against --pv-paper */
	--pv-ink:          #0f3a47;  /* Body and headings. 11.28:1                 */
	--pv-ink-soft:     #44575e;  /* Secondary text.     6.99:1                 */
	--pv-link:         #b05637;  /* Links and buttons.  4.57:1, white on it 5.64:1 */
	--pv-link-hover:   #8d4429;
	--pv-teal-text:    #3f7a7e;  /* Teal that passes AA. 4.51:1                */

	--pv-sans: "Open Sans PV", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--pv-display: var(--pv-sans);
	--pv-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--pv-shell: 72rem;
	--pv-measure: 40rem;
	--pv-gutter: clamp(1.25rem, 4vw, 3rem);
	--pv-section: clamp(2.75rem, 7vw, 5rem);

	--pv-radius: 3px;
	--pv-rule-w: 1px;
}

/* -------------------------------------------------------------------------
 * 3. Reset and base
 * ---------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--pv-paper);
	color: var(--pv-ink);
	font-family: var(--pv-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

@media (min-width: 40em) { body { font-size: 1.125rem; } }

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--pv-display);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin: 0 0 .6em;
	color: var(--pv-ink);
	text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 5.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.3rem); }

p, ul, ol { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .45em; }

a { color: var(--pv-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pv-link-hover); text-decoration-thickness: 2px; }

/* :focus first for browsers without :focus-visible, then the modern rule.
   Never remove the outline without replacing it with something visible. */
:focus {
	outline: 3px solid var(--pv-link);
	outline-offset: 2px;
	border-radius: var(--pv-radius);
}
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
	outline: 3px solid var(--pv-link);
	outline-offset: 2px;
	border-radius: var(--pv-radius);
}

/* Windows high contrast mode strips background colors, which would erase the
   disclaimer band and the play control. Forced-colors keeps their edges. */
@media (forced-colors: active) {
	.pv-disclaimer { border-bottom: 3px solid; }
	.pv-btn, .pv-card, .pv-callout, .pv-facade__btn { border: 1px solid; }
	.pv-facade__play { border: 2px solid; }
}

/* Respect a reader's own text spacing without clipping anything. */
.pv-entry__content, .pv-prose { overflow-wrap: break-word; }

strong, b { font-weight: 700; }

hr {
	border: 0;
	border-top: var(--pv-rule-w) solid var(--pv-rule);
	margin: var(--pv-section) 0;
}

/* -------------------------------------------------------------------------
 * 4. Layout
 * ---------------------------------------------------------------------- */

.pv-shell {
	width: 100%;
	max-width: var(--pv-shell);
	margin-inline: auto;
	padding-inline: var(--pv-gutter);
}

.pv-prose { max-width: var(--pv-measure); }
.pv-prose > :last-child { margin-bottom: 0; }

.pv-section { padding-block: var(--pv-section); }
.pv-section + .pv-section { border-top: var(--pv-rule-w) solid var(--pv-rule); }

.pv-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--pv-ink);
	color: #fff;
	padding: .75rem 1rem;
	font-weight: 600;
}
.pv-skip-link:focus { left: .5rem; top: .5rem; color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * 5. Disclaimer banner  (never restyle into subtlety, never collapse)
 *    White on #0f3a47 is 12.23:1. The rust rule underneath is the logo tie-in.
 * ---------------------------------------------------------------------- */

.pv-disclaimer {
	background: var(--pv-ink);
	color: #ffffff;
	border-bottom: 3px solid var(--pv-rust);
	font-size: .9375rem;
	line-height: 1.5;
}

.pv-disclaimer__inner {
	max-width: var(--pv-shell);
	margin-inline: auto;
	padding: .85rem var(--pv-gutter);
}

.pv-disclaimer strong { font-weight: 700; }

.pv-disclaimer a {
	color: #ffffff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}
/* Only the number stays on one line. The registrar's full name is 41
   characters and will push a 320px viewport into horizontal scroll. */
.pv-disclaimer a[href^="tel:"] { white-space: nowrap; }
.pv-disclaimer a:hover { color: #ffffff; text-decoration-thickness: 2px; }
.pv-disclaimer :focus-visible { outline-color: #ffffff; }

/* -------------------------------------------------------------------------
 * 6. Header
 * ---------------------------------------------------------------------- */

.pv-header {
	background: var(--pv-surface);
	border-bottom: var(--pv-rule-w) solid var(--pv-rule);
}

.pv-header__inner {
	max-width: var(--pv-shell);
	margin-inline: auto;
	padding: 1.15rem var(--pv-gutter) 0;
}

.pv-brand {
	display: inline-block;
	text-decoration: none;
	color: var(--pv-ink);
}

.pv-brand__logo {
	width: clamp(210px, 52vw, 320px);
	height: auto;
}

.pv-brand__line {
	display: block;
	margin-top: .55rem;
	font-family: var(--pv-mono);
	font-size: .68rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
}

/* Navigation.

   The list is visible by default. The collapsed state only applies once the
   script has added .pv-nav-enhanced to the body, so a script that fails to
   load leaves a working wrapped menu rather than a menu nobody can open. */

.pv-nav-toggle {
	display: none;
	align-items: center;
	gap: .6rem;
	background: none;
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-radius: var(--pv-radius);
	padding: .6rem .9rem;
	margin: 1rem 0 .25rem;
	min-height: 44px;
	font-family: var(--pv-mono);
	font-size: .74rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pv-ink);
	cursor: pointer;
}
.pv-nav-toggle:hover { border-color: var(--pv-teal); }

.pv-nav-toggle__bars,
.pv-nav-toggle__bars::before,
.pv-nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--pv-ink);
	transition: transform .15s ease, opacity .15s ease;
}
.pv-nav-toggle__bars { position: relative; }
.pv-nav-toggle__bars::before,
.pv-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.pv-nav-toggle__bars::before { top: -6px; }
.pv-nav-toggle__bars::after { top: 6px; }

.pv-nav-toggle[aria-expanded="true"] .pv-nav-toggle__bars { background: transparent; }
.pv-nav-toggle[aria-expanded="true"] .pv-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.pv-nav-toggle[aria-expanded="true"] .pv-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
	.pv-nav-toggle__bars,
	.pv-nav-toggle__bars::before,
	.pv-nav-toggle__bars::after { transition: none; }
}

.pv-nav { margin-top: 1rem; }
.pv-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
}
.pv-nav li { margin: 0; }
.pv-nav a {
	display: inline-block;
	padding: .75rem 0;
	min-height: 44px;
	color: var(--pv-ink-soft);
	text-decoration: none;
	font-size: .95rem;
	border-bottom: 3px solid transparent;
}
.pv-nav a:hover { color: var(--pv-ink); border-bottom-color: var(--pv-rule); }
.pv-nav .current-menu-item > a,
.pv-nav .pv-nav--current > a {
	color: var(--pv-ink);
	font-weight: 700;
	border-bottom-color: var(--pv-rust);
}

@media (max-width: 47.99em) {
	.pv-nav-enhanced .pv-nav-toggle { display: inline-flex; }

	.pv-nav-enhanced .pv-nav {
		display: none;
		margin-top: 0;
		border-top: var(--pv-rule-w) solid var(--pv-rule);
	}
	.pv-nav-enhanced .pv-nav.is-open { display: block; }

	.pv-nav-enhanced .pv-nav ul { display: block; }
	.pv-nav-enhanced .pv-nav li { border-bottom: var(--pv-rule-w) solid var(--pv-rule-soft); }
	.pv-nav-enhanced .pv-nav li:last-child { border-bottom: 0; }
	.pv-nav-enhanced .pv-nav a {
		display: block;
		padding: .9rem 0;
		border-bottom: 0;
		border-left: 3px solid transparent;
		padding-left: .75rem;
	}
	.pv-nav-enhanced .pv-nav .current-menu-item > a,
	.pv-nav-enhanced .pv-nav .pv-nav--current > a { border-left-color: var(--pv-rust); }
}

/* -------------------------------------------------------------------------
 * 7. Hero and ledger  (signature element: the record strip)
 * ---------------------------------------------------------------------- */

.pv-hero { padding-block: clamp(2.25rem, 6vw, 3.75rem) clamp(1.75rem, 4vw, 2.5rem); }

/* Used where the grid is the point and the words are getting out of its way. */
.pv-hero--tight { padding-block: clamp(1.75rem, 4vw, 2.5rem) clamp(1rem, 2vw, 1.5rem); }
.pv-hero--tight + .pv-section { border-top: 0; padding-top: clamp(1rem, 2vw, 1.5rem); }

/* The draw note. Small, factual, and directly under the thing it explains. */
.pv-drawnote {
	margin: 1.25rem 0 1.5rem;
	padding-left: .9rem;
	border-left: 3px solid var(--pv-teal);
	font-size: .92rem;
	color: var(--pv-ink-soft);
	max-width: 44rem;
}
.pv-drawnote a { white-space: nowrap; }

.pv-eyebrow {
	font-family: var(--pv-mono);
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
	margin: 0 0 1rem;
}

.pv-lede {
	font-size: clamp(1.08rem, 2.1vw, 1.25rem);
	color: var(--pv-ink-soft);
	max-width: var(--pv-measure);
}

/* Auto-fitting rather than a fixed count, so removing or adding a figure does
   not leave an empty column behind. */
.pv-ledger {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	border-top: 3px solid var(--pv-petrol);
	border-bottom: var(--pv-rule-w) solid var(--pv-rule);
	margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}

.pv-ledger__cell {
	padding: 1rem 1rem 1.1rem 0;
	border-right: var(--pv-rule-w) solid var(--pv-rule-soft);
}
.pv-ledger__cell:last-child { border-right: 0; }
@media (min-width: 45em) {
	.pv-ledger__cell { padding-left: 1rem; }
	.pv-ledger__cell:first-child { padding-left: 0; }
}

.pv-ledger__figure {
	font-family: var(--pv-display);
	font-weight: 700;
	font-size: clamp(1.7rem, 4vw, 2.2rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--pv-petrol);
	display: block;
}
.pv-ledger__label {
	display: block;
	margin-top: .5rem;
	font-family: var(--pv-mono);
	font-size: .68rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
}

/* -------------------------------------------------------------------------
 * 8. Components
 * ---------------------------------------------------------------------- */

.pv-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 46em) { .pv-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.pv-card {
	background: var(--pv-surface);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-top: 3px solid var(--pv-teal);
	border-radius: var(--pv-radius);
	padding: clamp(1.25rem, 3vw, 1.75rem);
}
.pv-card > :last-child { margin-bottom: 0; }
.pv-card h3 { margin-bottom: .4em; }

.pv-card--step { border-top-color: var(--pv-rust); }
.pv-card__num {
	font-family: var(--pv-mono);
	font-size: .72rem;
	letter-spacing: .12em;
	color: var(--pv-teal-text);
	margin: 0 0 .5rem;
}

.pv-hero__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 1.75rem;
}

/* Hero layout with the emblem beside the headline. The emblem is a background
   rather than an img so it downloads once and carries no alt text, since the
   wordmark in the header already names the site. */
.pv-hero__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.pv-hero__art {
	display: block;
	width: 116px;
	aspect-ratio: 600 / 479;
	background: url("assets/img/logo-mark.png") center / contain no-repeat;
}
@media (min-width: 56em) {
	.pv-hero__grid { grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
	.pv-hero__body { grid-column: 1; grid-row: 1; }
	.pv-hero__art { grid-column: 2; grid-row: 1; width: 280px; margin-top: .5rem; }
}

.pv-callout {
	background: var(--pv-wash);
	border-left: 4px solid var(--pv-teal);
	border-radius: var(--pv-radius);
	padding: clamp(1.1rem, 3vw, 1.6rem);
	max-width: var(--pv-measure);
}
.pv-callout > :last-child { margin-bottom: 0; }

.pv-btn {
	display: inline-block;
	background: var(--pv-link);
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	padding: .8rem 1.4rem;
	border-radius: var(--pv-radius);
	border: 2px solid var(--pv-link);
}
.pv-btn:hover { background: var(--pv-link-hover); border-color: var(--pv-link-hover); color: #ffffff; }

.pv-btn--quiet {
	background: transparent;
	color: var(--pv-link);
	border-color: var(--pv-rule);
}
.pv-btn--quiet:hover { background: transparent; color: var(--pv-link-hover); border-color: var(--pv-link); }

.pv-list-plain { list-style: none; padding-left: 0; }
.pv-list-plain li { padding-left: 1.35em; position: relative; }
.pv-list-plain li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .72em;
	width: .6em;
	height: 2px;
	background: var(--pv-rust);
}

.pv-meta {
	font-family: var(--pv-mono);
	font-size: .78rem;
	letter-spacing: .04em;
	color: var(--pv-ink-soft);
}

.pv-status {
	display: inline-block;
	font-family: var(--pv-mono);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-left: 3px solid var(--pv-rust);
	background: var(--pv-surface);
	border-radius: var(--pv-radius);
	padding: .3rem .6rem;
	color: var(--pv-ink-soft);
}

/* Question set, rendered as a catalog of records, not a marketing list. */
.pv-questions { border-top: 3px solid var(--pv-petrol); margin: 0; padding: 0; list-style: none; max-width: 46rem; }
.pv-questions li {
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	gap: 0 .75rem;
	padding: 1rem 0;
	margin: 0;
	border-bottom: var(--pv-rule-w) solid var(--pv-rule-soft);
}
.pv-questions .pv-q-num {
	font-family: var(--pv-mono);
	font-size: .8rem;
	color: var(--pv-teal-text);
	padding-top: .28em;
}
.pv-questions .pv-q-source {
	display: inline-block;
	margin-left: .5rem;
	font-family: var(--pv-mono);
	font-size: .64rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-left: 3px solid var(--pv-rust);
	border-radius: var(--pv-radius);
	padding: .1rem .4rem;
	vertical-align: middle;
}

.pv-questions .pv-q-time {
	display: block;
	font-family: var(--pv-mono);
	font-size: .74rem;
	color: var(--pv-ink-soft);
	margin-top: .35rem;
}

/* -------------------------------------------------------------------------
 * 9. Entry content (WordPress editor output)
 * ---------------------------------------------------------------------- */

.pv-entry { padding-block: clamp(2rem, 5vw, 3.25rem) var(--pv-section); }
.pv-entry__header { max-width: var(--pv-measure); margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.pv-entry__content { max-width: var(--pv-measure); overflow-wrap: break-word; }
.pv-entry__content > *:last-child { margin-bottom: 0; }
.pv-entry__content h2 { margin-top: 1.8em; }
.pv-entry__content h3 { margin-top: 1.5em; }
.pv-entry__content blockquote {
	margin: 1.5em 0;
	padding-left: 1.25em;
	border-left: 3px solid var(--pv-teal);
	color: var(--pv-ink-soft);
}
.pv-entry__content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pv-entry__content th, .pv-entry__content td {
	text-align: left;
	padding: .65rem .75rem .65rem 0;
	border-bottom: var(--pv-rule-w) solid var(--pv-rule-soft);
	vertical-align: top;
}
.pv-entry__content thead th {
	border-bottom: 3px solid var(--pv-petrol);
	font-family: var(--pv-mono);
	font-size: .74rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.pv-entry__content .pv-wide { max-width: none; }

/* -------------------------------------------------------------------------
 * 10. Video
 * ---------------------------------------------------------------------- */

.pv-video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--pv-ink);
	border-radius: var(--pv-radius);
	overflow: hidden;
}
.pv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------------------
 * 11. Footer
 * ---------------------------------------------------------------------- */

.pv-footer {
	background: var(--pv-surface);
	border-top: 4px solid var(--pv-petrol);
	padding-block: clamp(2.25rem, 5vw, 3.25rem);
	margin-top: var(--pv-section);
	font-size: .95rem;
}

.pv-footer__grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }

/* Two columns first, so the middle one is not squeezed on a tablet, then
   three. The first column is wider because it carries the badge and the
   attribution paragraph. */
@media (min-width: 44em) {
	.pv-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
	.pv-footer__col:first-child { grid-column: 1 / -1; }
}
@media (min-width: 62em) {
	.pv-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
	.pv-footer__col:first-child { grid-column: auto; }
}

.pv-footer__col > :last-child { margin-bottom: 0; }

.pv-footer h2 {
	font-family: var(--pv-mono);
	font-size: .72rem;
	font-weight: 400;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
	margin-bottom: .9rem;
}

.pv-footer__lockup { width: 180px; height: auto; margin-bottom: 1.25rem; }

.pv-attribution {
	font-size: 1.02rem;
	line-height: 1.55;
	max-width: 34rem;
	margin: 0 0 1rem;
}

.pv-footer ul { list-style: none; padding: 0; margin: 0; }
.pv-footer li { margin-bottom: .35rem; }
.pv-footer li a { display: inline-block; padding: .35rem 0; }
.pv-footer a { color: var(--pv-ink); }
.pv-footer a:hover { color: var(--pv-link); }

.pv-colophon {
	margin-top: 2.25rem;
	padding-top: 1.25rem;
	border-top: var(--pv-rule-w) solid var(--pv-rule);
	font-family: var(--pv-mono);
	font-size: .74rem;
	letter-spacing: .04em;
	color: var(--pv-ink-soft);
}
.pv-colophon p { margin: 0 0 .4em; }
.pv-colophon__credits { margin-bottom: .6em; }
.pv-colophon__credits a { color: var(--pv-ink); }
.pv-colophon__credits a:hover { color: var(--pv-link); }

.pv-credits { margin-top: 2.5rem; }
.pv-credits__list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	border-top: 3px solid var(--pv-petrol);
	max-width: var(--pv-measure);
}
.pv-credits__list li {
	margin: 0;
	padding: 1.1rem 0;
	border-bottom: var(--pv-rule-w) solid var(--pv-rule-soft);
}
.pv-credits__name { font-weight: 700; margin: 0 0 .3rem; }
.pv-credits__list p:last-child { margin-bottom: 0; }


/* -------------------------------------------------------------------------
 * 12. Press page
 * ---------------------------------------------------------------------- */

.pv-code {
	background: var(--pv-surface);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-left: 3px solid var(--pv-teal);
	border-radius: var(--pv-radius);
	padding: 1rem 1.1rem;
	overflow-x: auto;
	font-family: var(--pv-mono);
	font-size: .82rem;
	line-height: 1.6;
	color: var(--pv-ink);
	white-space: pre;
	-webkit-text-size-adjust: 100%;
}
.pv-code code { font: inherit; }

.pv-assets__list { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 3px solid var(--pv-petrol); }
.pv-assets__item {
	display: block;
	margin: 0;
	padding: .95rem 0;
	border-bottom: var(--pv-rule-w) solid var(--pv-rule-soft);
}
.pv-assets__label { display: block; font-weight: 700; }
.pv-assets__note {
	display: block;
	margin-top: .2rem;
	font-family: var(--pv-mono);
	font-size: .76rem;
	color: var(--pv-ink-soft);
}
.pv-assets__pending {
	font-family: var(--pv-mono);
	font-size: .68rem;
	font-weight: 400;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-radius: var(--pv-radius);
	padding: .15rem .45rem;
	margin-left: .5rem;
	white-space: nowrap;
}

.pv-contact {
	border-left: 3px solid var(--pv-rust);
	padding-left: 1rem;
	margin-bottom: 1.75rem;
}
.pv-contact__name { margin-bottom: .35rem; }
.pv-contact__lines { margin-bottom: .35rem; }
.pv-contact .pv-meta { margin-bottom: 0; }


/* -------------------------------------------------------------------------
 * 13. Candidate records and the comparison index
 * ---------------------------------------------------------------------- */

@media (min-width: 46em) { .pv-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .pv-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.pv-vcard {
	background: var(--pv-surface);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-radius: var(--pv-radius);
	padding: .75rem .75rem 1.1rem;
}
.pv-vcard h3 { font-size: 1.15rem; margin: .1rem 0 .35rem; }
.pv-vcard h3 a { color: var(--pv-ink); text-decoration: none; }
.pv-vcard h3 a:hover { color: var(--pv-link); text-decoration: underline; }
.pv-vcard .pv-video { border-radius: 2px; }
.pv-vcard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
	margin: .8rem 0 .1rem;
}
.pv-vcard__state {
	font-family: var(--pv-mono);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.pv-vcard__state {
	color: var(--pv-ink-soft);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-radius: var(--pv-radius);
	padding: .12rem .45rem;
}
.pv-vcard__state.is-quiet { border-style: dashed; }

/* The invited field, before anything is published. Names and offices only. */
.pv-roster {
	margin: 0;
	padding: 0;
	border-top: 3px solid var(--pv-petrol);
	max-width: 44rem;
}
.pv-roster li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin: 0;
	padding: .95rem 0;
	border-bottom: var(--pv-rule-w) solid var(--pv-rule-soft);
}
.pv-roster__name { font-weight: 700; font-size: 1.05rem; }
.pv-roster__state {
	font-family: var(--pv-mono);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-radius: var(--pv-radius);
	padding: .15rem .5rem;
}
.pv-vcard--none { border-style: dashed; background: transparent; }
.pv-vcard__nonebox {
	aspect-ratio: 16 / 9;
	border: var(--pv-rule-w) dashed var(--pv-rule);
	border-radius: 2px;
	display: grid;
	place-items: center;
	color: var(--pv-ink-soft);
	font-family: var(--pv-mono);
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.pv-vcard__note { margin: .5rem 0 0; font-size: .92rem; color: var(--pv-ink-soft); }

/* Session still behind a participant's box before their video is up. The
   label sits on a solid ink chip so it stays readable over any photo. */
.pv-vcard__nonebox--poster {
	position: relative;
	overflow: hidden;
	border-style: solid;
	background: var(--pv-ink);
}
.pv-vcard__nonebox--poster .pv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-vcard__nonebox--poster span {
	position: relative;
	background: var(--pv-ink);
	color: #ffffff;
	padding: .35rem .7rem;
	border-radius: 2px;
}

.pv-index { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 56em) { .pv-index { grid-template-columns: 22rem 1fr; gap: 3rem; } }

.pv-index__label {
	font-family: var(--pv-mono);
	font-size: .7rem;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
	margin: 0 0 .85rem;
}

.pv-qbtn {
	display: block;
	background: var(--pv-surface);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-left: 3px solid var(--pv-rule);
	border-radius: var(--pv-radius);
	padding: .8rem .9rem;
	margin-bottom: .5rem;
	font-size: .95rem;
	line-height: 1.45;
	color: var(--pv-ink);
	text-decoration: none;
}
.pv-qbtn:hover { border-left-color: var(--pv-teal); color: var(--pv-ink); }
.pv-qbtn.is-on { border-left-color: var(--pv-rust); font-weight: 700; }
.pv-qbtn__num {
	font-family: var(--pv-mono);
	font-size: .72rem;
	color: var(--pv-teal-text);
	margin-right: .5rem;
	font-weight: 400;
}

/* Without the script every panel shows, separated by a rule. With it, one. */
.pv-index__panel + .pv-index__panel { margin-top: 2.5rem; }
.pv-index.is-enhanced .pv-index__panel + .pv-index__panel { margin-top: 0; }
.pv-index__question { font-size: 1.15rem; margin: 0 0 1rem; }

.pv-answers { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--pv-petrol); }
.pv-answers li {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 0 .75rem;
	padding: .95rem 0;
	margin: 0;
	border-bottom: var(--pv-rule-w) solid var(--pv-rule-soft);
}
.pv-answers__name { font-weight: 700; }
.pv-answers__time { font-family: var(--pv-mono); font-size: .8rem; white-space: nowrap; }
.pv-answers li.is-none .pv-answers__name,
.pv-answers li.is-none .pv-answers__time { color: var(--pv-ink-soft); font-weight: 400; }

@media (max-width: 32em) {
	.pv-answers li { grid-template-columns: 1fr; }
	.pv-answers__time { margin-top: .25rem; }
}

/* Video facade. Nothing is requested from YouTube until someone presses play,
   so a race page with eight interviews makes zero third-party requests on load
   and costs no video weight on a phone. */
.pv-facade { border: 0; padding: 0; background: none; }
.pv-facade__btn {
	position: absolute;
	inset: 0;
	width: 100%;
	appearance: none;
	border: 0;
	background: var(--pv-petrol);
	color: #ffffff;
	font: inherit;
	cursor: pointer;
	display: grid;
	place-content: center;
	gap: .75rem;
	justify-items: center;
	padding: 1rem;
	text-align: center;
}
.pv-facade__btn:hover { background: var(--pv-ink); }
.pv-facade__play {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--pv-rust);
	display: grid;
	place-items: center;
}
.pv-facade__play::after {
	content: "";
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #ffffff;
	margin-left: 4px;
}
.pv-facade__label {
	font-family: var(--pv-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	max-width: 22ch;
	line-height: 1.5;
}
.pv-facade__btn:focus-visible { outline: 3px solid #ffffff; outline-offset: -6px; }

/* Session still as the poster. Same crop for everyone, set by the pv-poster
   image size in inc/setup.php. The scrim keeps the white label at contrast
   over any photo; the play button keeps its rust disc either way. */
.pv-facade .pv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-facade--poster .pv-facade__btn { background: rgba(15, 58, 71, .55); }
.pv-facade--poster .pv-facade__btn:hover,
.pv-facade--poster .pv-facade__btn:focus-visible { background: rgba(15, 58, 71, .78); }
.pv-facade--poster .pv-facade__label { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }


/* -------------------------------------------------------------------------
 * 14. Registration form
 * ---------------------------------------------------------------------- */

.pv-form { margin: 2rem 0; max-width: 40rem; }

.pv-regform__steps {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0 0 1rem;
	border-bottom: var(--pv-rule-w) solid var(--pv-rule);
	font-family: var(--pv-mono);
	font-size: .72rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
}
.pv-regform__steps li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.pv-regform__num {
	display: inline-grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	border: var(--pv-rule-w) solid var(--pv-rule);
	font-size: .7rem;
}
.pv-regform__steps .is-on { color: var(--pv-ink); font-weight: 700; }
.pv-regform__steps .is-on .pv-regform__num { background: var(--pv-rust); border-color: var(--pv-rust); color: #fff; }
.pv-regform__steps .is-done .pv-regform__num { background: var(--pv-teal); border-color: var(--pv-teal); color: #fff; }
@media (max-width: 40em) { .pv-regform__steplabel { display: none; } }

.pv-regform__title { font-size: 1.25rem; margin-bottom: 1.5rem; }

.pv-regform__saved {
	border-left: 4px solid var(--pv-teal);
	background: var(--pv-wash);
	border-radius: var(--pv-radius);
	padding: 1rem 1.25rem;
	margin-bottom: 1.75rem;
}
.pv-regform__saved p:last-child { margin-bottom: 0; }

.pv-regform__errors {
	border-left: 4px solid var(--pv-link);
	background: #fdf3ef;
	border-radius: var(--pv-radius);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}
.pv-regform__errors ul { margin-bottom: 0; }

.pv-regform__field { margin-bottom: 1.5rem; }

.pv-regform__label {
	display: block;
	font-weight: 700;
	margin-bottom: .4rem;
}
.pv-regform__req {
	font-family: var(--pv-mono);
	font-size: .65rem;
	font-weight: 400;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pv-link);
	margin-left: .5rem;
}

.pv-regform__input {
	display: block;
	width: 100%;
	font-family: var(--pv-sans);
	font-size: 1rem;
	color: var(--pv-ink);
	background: var(--pv-surface);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-radius: var(--pv-radius);
	padding: .7rem .8rem;
	min-height: 44px;
}
.pv-regform__input:focus { border-color: var(--pv-teal); }

.pv-regform__group { border: 0; margin: 0; padding: 0; }
.pv-regform__check {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	padding: .55rem 0;
	min-height: 44px;
	cursor: pointer;
}
.pv-regform__check input { margin-top: .35rem; width: 1.15rem; height: 1.15rem; flex: none; }

.pv-regform__help { margin: .4rem 0 0; font-size: .9rem; color: var(--pv-ink-soft); }

.pv-regform__release {
	max-height: 18rem;
	overflow-y: auto;
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-left: 3px solid var(--pv-teal);
	border-radius: var(--pv-radius);
	background: var(--pv-surface);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	font-size: .95rem;
}

.pv-regform__summary { margin: 0 0 1.75rem; border-top: 3px solid var(--pv-petrol); }
.pv-regform__summary dt {
	font-family: var(--pv-mono);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pv-ink-soft);
	padding-top: .8rem;
}
.pv-regform__summary dd {
	margin: .15rem 0 0;
	padding-bottom: .8rem;
	border-bottom: var(--pv-rule-w) solid var(--pv-rule-soft);
}

.pv-regform__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.pv-regform__actions .pv-btn { border: 2px solid var(--pv-link); cursor: pointer; font-family: inherit; }

/* Honeypot. Off screen rather than display:none, which some bots skip. */
.pv-regform__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * 15. Print
 * ---------------------------------------------------------------------- */

@media print {
	.pv-nav, .pv-btn { display: none; }
	body { background: #fff; font-size: 11pt; }
	.pv-disclaimer { background: #fff; color: #000; border-bottom: 2px solid #000; }
	.pv-disclaimer a { color: #000; }
	a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* -------------------------------------------------------------------------
 * 16. Accessibility helpers
 * ---------------------------------------------------------------------- */

/* Safari and VoiceOver drop list semantics when list-style is none. The
   role="list" in the markup restores them; this keeps the visual result. */
[role="list"] { list-style: none; }

/* The index announces the switch. Give the live region somewhere to sit
   without shifting layout. */
.pv-index__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * 16b. Language switch
 * ---------------------------------------------------------------------- */

.pvtr-switch {
	margin-top: .75rem;
}
.pvtr-switch__link {
	display: inline-block;
	font-family: var(--pv-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pv-ink-soft);
	border: var(--pv-rule-w) solid var(--pv-rule);
	border-radius: var(--pv-radius);
	padding: .5rem .75rem;
	min-height: 44px;
	line-height: 1.6;
}
.pvtr-switch__link:hover { color: var(--pv-ink); border-color: var(--pv-teal); }

/* -------------------------------------------------------------------------
 * 17. Editor block fallbacks and paint hints
 *
 * The block library stylesheet is dequeued, so the handful of core classes
 * that actually appear in page content are covered here instead.
 * ---------------------------------------------------------------------- */

.wp-block-heading { }
.alignleft { float: left; margin: .25rem 1.25rem 1rem 0; }
.alignright { float: right; margin: .25rem 0 1rem 1.25rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-block-image figcaption,
.wp-caption-text {
	font-size: .85rem;
	color: var(--pv-ink-soft);
	margin-top: .5rem;
}
.wp-block-separator {
	border: 0;
	border-top: var(--pv-rule-w) solid var(--pv-rule);
	margin: 2rem 0;
}
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-quote { margin: 1.5em 0; padding-left: 1.25em; border-left: 3px solid var(--pv-teal); }
.wp-block-list { }

/* Skip painting sections that are still below the fold. Costs nothing when
   unsupported, and the contain-intrinsic-size stops the scrollbar jumping. */
@supports (content-visibility: auto) {
	.pv-section + .pv-section {
		content-visibility: auto;
		contain-intrinsic-size: auto 400px;
	}
	.pv-footer {
		content-visibility: auto;
		contain-intrinsic-size: auto 460px;
	}
}

/* The wordmark's box is known before it loads, so nothing shifts. */
.pv-brand__logo { aspect-ratio: 1100 / 113; }
.pv-footer__lockup { aspect-ratio: 600 / 263; }
