/*
Theme Name: CagePress
Theme URI: https://cagepress.com/
Author: CagePress
Description: A fast UFC and MMA news theme for cagepress.com. Latest-news home page, colour-coded sections, tag and author pages, and article pages with the featured image behind the headline as a real image for Google News and Discover. One stylesheet, no JavaScript, self-hosted fonts. SEO is left to Yoast SEO and Yoast News.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cagepress
*/

/* Look: ultraviolet header, white content, near-black violet footer. Volt
   lime is the brand colour and each section has its own. Corners are cut,
   not rounded, after the octagon. Buttons sit on a hard shadow and press
   into it. Mobile first: rows wrap on their own, so there are few
   breakpoints. */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 600 800;
	font-display: swap;
	src: url("assets/fonts/bricolage-grotesque-condensed.woff2") format("woff2");
}

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
}

:root {
	--cp-ink: #150A33;
	--cp-night: #170B3B;
	--cp-violet: #2A0E86;
	--cp-electric: #5B21E6;
	--cp-volt: #C8FF2E;
	--cp-hot: #FF2E63;
	--cp-aqua: #2ED9FF;
	--cp-amber: #FF9F1C;
	--cp-mist: #F6F3FD;
	--cp-mist-2: #EFEBFA;
	--cp-line: #E4DDF6;
	--cp-grey: #5A5173;
	--cp-soft: #CFC6EA;
	--cp-gutter: max(16px, 5vw);
	--cp-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--cp-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	color: var(--cp-ink);
	font-family: var(--cp-font);
	font-size: 17px;
	line-height: 1.5;
}

main {
	flex: 1 0 auto;
}

h1,
h2,
h3,
p,
figure {
	margin: 0;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--cp-electric);
}

::selection {
	background: var(--cp-volt);
	color: var(--cp-ink);
}

:focus-visible {
	outline: 3px solid var(--cp-electric);
	outline-offset: 2px;
}

.cp-header :focus-visible,
.cp-footer :focus-visible,
.cp-hero :focus-visible,
.cp-band--dark :focus-visible,
.cp-form :focus-visible,
.cp-authorbox :focus-visible {
	outline-color: var(--cp-volt);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cp-skip {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 10;
	padding: 12px 18px;
	background: var(--cp-volt);
	color: var(--cp-ink);
	font-weight: 800;
}

.cp-skip:focus {
	top: 12px;
}

.cp-wrap {
	max-width: 1200px;
	margin: 0 auto;
}

/* ---------- Shapes ---------- */

/* Two cut corners. Set --cp-cut to change the size. Focus drops the cut so
   the outline is not clipped away. */
.cp-cut {
	--cp-cut: 10px;
	clip-path: polygon(var(--cp-cut) 0, 100% 0, 100% calc(100% - var(--cp-cut)), calc(100% - var(--cp-cut)) 100%, 0 100%, 0 var(--cp-cut));
}

.cp-cut:focus-visible {
	clip-path: none;
}

/* Hard shadow that follows a cut shape. The button inside presses into it. */
.cp-press {
	display: inline-block;
	filter: drop-shadow(5px 5px 0 var(--cp-press, var(--cp-ink)));
}

.cp-press--volt {
	--cp-press: var(--cp-volt);
}

.cp-press--hot {
	--cp-press: var(--cp-hot);
}

.cp-press:has(> .cp-btn:hover) {
	filter: drop-shadow(2px 2px 0 var(--cp-press, var(--cp-ink)));
}

.cp-press > .cp-btn:hover {
	transform: translate(3px, 3px);
}

.cp-press:has(> .cp-btn:active) {
	filter: none;
}

.cp-press > .cp-btn:active {
	transform: translate(5px, 5px);
}

@media (prefers-reduced-motion: no-preference) {
	.cp-press,
	.cp-btn {
		transition: transform 0.1s ease, filter 0.1s ease;
	}
}

/* Octagon badge. */
.cp-oct {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--cp-chip, var(--cp-volt));
	color: var(--cp-ink);
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.cp-oct--xl {
	width: clamp(54px, 7vw, 86px);
	height: clamp(54px, 7vw, 86px);
	background: var(--cp-ink);
	color: var(--cp-band, var(--cp-volt));
}

.cp-oct--xl svg {
	width: 55%;
	height: 55%;
}

/* Highlighter. */
.cp-mark {
	padding: 0 4px;
	background: linear-gradient(transparent 58%, var(--cp-volt) 58%);
}

.cp-volt {
	color: var(--cp-volt);
}

.cp-accent {
	color: var(--cp-electric);
}

/* ---------- Type ---------- */

.cp-h {
	font-family: var(--cp-display);
	font-weight: 800;
	line-height: 1.08;
}

.cp-h--section {
	margin-bottom: 22px;
	font-size: clamp(26px, 3vw, 36px);
}

.cp-h--cta {
	font-size: clamp(26px, 3.2vw, 38px);
	line-height: 1.05;
}

.cp-h--band {
	font-size: clamp(44px, 8vw, 96px);
	line-height: 0.95;
}

.cp-h--author {
	font-size: clamp(34px, 5.4vw, 64px);
	line-height: 1;
}

.cp-h--page {
	font-size: clamp(38px, 6.4vw, 80px);
	line-height: 0.98;
	text-wrap: balance;
}

.cp-h__page {
	display: inline-block;
	padding: 3px 9px;
	background: var(--cp-ink);
	color: #FFFFFF;
	font-family: var(--cp-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	vertical-align: middle;
}

.cp-kicker {
	margin-bottom: 6px;
	font-family: var(--cp-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1.1;
}

.cp-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	font-size: 14px;
	color: var(--cp-grey);
}

.cp-meta a {
	font-weight: 700;
}

.cp-chip {
	display: inline-block;
	--cp-cut: 6px;
	padding: 2px 9px;
	background: var(--cp-chip, var(--cp-volt));
	color: var(--cp-ink);
	font-weight: 800;
	font-size: 13px;
	text-decoration: none;
}

.cp-chip:hover {
	text-decoration: underline;
}

/* A section label with the "Video" label beside it. */
.cp-chips {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.cp-chip--video {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--cp-ink);
	color: var(--cp-volt);
}

span.cp-chip--video:hover {
	text-decoration: none;
}

/* ---------- Buttons ---------- */

.cp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	background: var(--cp-ink);
	color: #FFFFFF;
	border: 0;
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.cp-btn:hover {
	background: var(--cp-electric);
}

.cp-btn--volt {
	background: var(--cp-volt);
	color: var(--cp-ink);
}

.cp-btn--volt:hover {
	background: #FFFFFF;
}

.cp-btn--sm {
	--cp-cut: 8px;
	min-height: 44px;
	padding: 0 16px;
	font-size: 15px;
	font-weight: 700;
}

.cp-btn--lg {
	min-height: 52px;
	padding: 0 26px;
	font-size: 18px;
}

.cp-actions {
	margin-top: 32px;
}

/* ---------- Images ---------- */

.cp-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center 25%;
	background: var(--cp-mist-2);
}

.cp-img--none {
	background: repeating-linear-gradient(135deg, #DCD5F5 0 12px, #D0C7F0 12px 24px);
}

.cp-avatar {
	flex: 0 0 auto;
	align-self: flex-start;
	display: block;
	object-fit: cover;
	background: var(--cp-volt);
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.cp-avatar--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cp-ink);
	font-weight: 800;
	line-height: 1;
}

.cp-byline .cp-avatar,
.cp-band__title .cp-avatar {
	align-self: center;
}

/* ---------- Header ---------- */

.cp-header {
	position: relative; /* The phone menu drops down from here. */
	z-index: 30;
	background: var(--cp-violet);
	color: #FFFFFF;
	padding: 10px var(--cp-gutter);
}

.cp-header__inner {
	display: flex;
	align-items: center;
	gap: 6px 28px;
}

.cp-brand {
	display: flex;
	align-items: center;
	min-height: 48px;
}

.cp-logo {
	display: block;
	width: auto;
	height: 40px;
	overflow: visible;
}

.cp-brand--custom img {
	display: block;
	width: auto;
	max-height: 44px;
}

.cp-nav {
	margin-left: auto;
	min-width: 0;
	max-width: 100%;
	display: flex;
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

.cp-nav::-webkit-scrollbar {
	display: none;
}

.cp-nav a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	color: #FFFFFF;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
}

.cp-nav a:hover {
	color: var(--cp-volt);
}

.cp-nav a[aria-current] {
	background: var(--cp-volt);
	color: var(--cp-ink);
	font-weight: 800;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.cp-nav a[aria-current]:focus-visible {
	clip-path: none;
}

.cp-nav .cp-nav__search {
	justify-content: center;
	width: 44px;
	padding: 0;
}

/* Phones and small tablets: the tabs give way to a menu button. It is a
   details element, so it needs no JavaScript. */

.cp-header__tools {
	display: none;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.cp-header__tools .cp-nav__search,
.cp-menu__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: #FFFFFF;
}

.cp-header__tools .cp-nav__search[aria-current] {
	color: var(--cp-volt);
}

.cp-menu__btn {
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.cp-menu__btn::-webkit-details-marker {
	display: none;
}

.cp-menu__cross,
.cp-menu[open] .cp-menu__bars {
	display: none;
}

.cp-menu[open] .cp-menu__cross {
	display: block;
}

.cp-menu[open] .cp-menu__btn {
	background: var(--cp-volt);
	color: var(--cp-ink);
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.cp-menu[open] .cp-menu__btn:focus-visible {
	clip-path: none;
}

.cp-menu__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	padding: 6px var(--cp-gutter) 18px;
	background: var(--cp-violet);
	border-top: 2px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 18px 28px rgba(21, 10, 53, 0.35);
}

.cp-menu__panel a {
	display: flex;
	align-items: center;
	min-height: 54px;
	padding: 0 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	color: #FFFFFF;
	font-family: var(--cp-display);
	font-weight: 700;
	font-size: 22px;
	text-decoration: none;
}

.cp-menu__panel a:last-child {
	border-bottom: 0;
}

.cp-menu__panel a:hover {
	color: var(--cp-volt);
}

.cp-menu__panel a[aria-current],
.cp-menu__panel a[aria-current]:hover {
	background: var(--cp-volt);
	border-bottom-color: transparent;
	color: var(--cp-ink);
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.cp-menu__panel a[aria-current]:focus-visible {
	clip-path: none;
}

/* 1000px is where a seven-link menu plus the search icon stops fitting as tabs. */
@media (max-width: 1000px) {
	.cp-nav {
		display: none;
	}

	.cp-header__tools {
		display: flex;
		flex: 0 0 auto;
	}

	/* On the narrowest phones the logo gives way a little so the buttons always fit. */
	.cp-header__inner {
		gap: 6px 12px;
	}

	.cp-brand {
		flex: 0 1 auto;
		min-width: 0;
	}

	/* The drawn logo keeps its 40px box and scales inside it; an uploaded
	   logo image scales as images do. */
	.cp-brand svg {
		max-width: 100%;
	}

	.cp-brand--custom img {
		max-width: 100%;
		height: auto;
	}
}

/* ---------- Home: fight card strip ---------- */

.cp-strip {
	display: block;
	padding: 0 var(--cp-gutter);
	background: var(--cp-volt);
	color: var(--cp-ink);
	text-decoration: none;
}

.cp-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	min-height: 48px;
	padding: 6px 0;
}

.cp-strip__label {
	padding: 2px 9px;
	background: var(--cp-ink);
	color: var(--cp-volt);
	font-weight: 800;
	font-size: 13px;
}

.cp-strip__title {
	font-weight: 800;
}

.cp-strip__more {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Sections and columns ---------- */

.cp-section {
	padding: clamp(28px, 4vw, 52px) var(--cp-gutter) clamp(36px, 5vw, 64px);
}

.cp-section--lead {
	padding-bottom: 0;
}

.cp-section--mist {
	background: var(--cp-mist);
}

.cp-columns {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 36px 44px;
}

.cp-columns__main {
	flex: 2 1 520px;
	min-width: 0;
}

.cp-columns__side {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.cp-columns--article {
	gap: 40px 56px;
}

.cp-columns--article .cp-columns__main {
	flex: 999 1 520px;
	max-width: 720px;
}

.cp-columns--article .cp-columns__side {
	flex: 1 1 280px;
	gap: 0;
}

/* ---------- Home: lead ---------- */

.cp-lead {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 44px;
}

.cp-lead__main {
	flex: 2 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.cp-lead__media {
	display: block;
	align-self: stretch;
	margin: 0 6px 8px 0;
}

.cp-lead__media .cp-img {
	--cp-cut: 22px;
}

.cp-lead__title {
	font-family: var(--cp-display);
	font-weight: 800;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.04;
	text-wrap: balance;
}

.cp-lead__excerpt {
	max-width: 40em;
	font-size: 18px;
	color: #3D3360;
}

.cp-lead__side {
	flex: 1 1 300px;
	min-width: 0;
}

.cp-brief {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px 0;
	border-bottom: 2px solid var(--cp-mist-2);
}

.cp-brief:last-child {
	border-bottom: 0;
}

.cp-lead__title a,
.cp-brief__title a,
.cp-row__title a,
.cp-card__title a {
	color: var(--cp-ink);
	text-decoration: none;
}

.cp-lead__title a:hover,
.cp-brief__title a:hover,
.cp-row__title a:hover,
.cp-card__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--cp-electric);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}

.cp-brief__title {
	font-family: var(--cp-display);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.15;
}

/* ---------- Feed rows ---------- */

.cp-feed {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cp-feed .cp-h--section {
	margin-bottom: 2px;
}

.cp-row {
	display: flex;
	gap: clamp(14px, 2vw, 22px);
	padding-bottom: 20px;
	border-bottom: 2px solid var(--cp-mist-2);
}

.cp-row__media {
	flex: 0 0 clamp(116px, 22vw, 240px);
	display: block;
}

.cp-row__media .cp-img {
	--cp-cut: 12px;
}

.cp-row__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
}

.cp-row__title {
	font-family: var(--cp-display);
	font-weight: 700;
	font-size: clamp(18px, 1.9vw, 24px);
	line-height: 1.15;
}

/* ---------- Pagination ---------- */

.cp-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
}

.cp-feed .cp-pages {
	margin-top: 6px;
}

.cp-pages__num {
	--cp-cut: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	background: var(--cp-mist-2);
	color: var(--cp-ink);
	font-weight: 800;
	text-decoration: none;
}

a.cp-pages__num:hover {
	background: var(--cp-volt);
}

.cp-pages__num.current {
	background: var(--cp-ink);
	color: #FFFFFF;
}

.cp-pages__num.dots {
	background: none;
	clip-path: none;
}

.cp-pages__next {
	margin-left: auto;
	--cp-press: var(--cp-volt);
}

/* ---------- Section boxes ---------- */

.cp-box {
	--cp-cut: 18px;
	padding: 18px 20px 10px;
	background: var(--cp-mist);
}

.cp-box__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 8px;
}

.cp-box__title {
	flex: 1;
	font-family: var(--cp-display);
	font-weight: 800;
	font-size: 23px;
	line-height: 1.1;
}

.cp-box__all {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	font-size: 15px;
}

.cp-box__link {
	display: block;
	padding: 12px 0;
	border-top: 2px solid var(--cp-line);
	color: var(--cp-ink);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.cp-box__link:hover {
	text-decoration: underline;
	text-decoration-color: var(--cp-electric);
	text-decoration-thickness: 2px;
}

/* ---------- Write-for-us band ---------- */

.cp-cta {
	padding: clamp(28px, 4vw, 48px) var(--cp-gutter);
	background: var(--cp-volt);
	color: var(--cp-ink);
}

.cp-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 40px;
}

.cp-cta__copy {
	flex: 1 1 320px;
	min-width: 0;
}

.cp-cta__copy p {
	margin-top: 6px;
	font-weight: 500;
}

/* ---------- Bands (section, tag, author, page headers) ---------- */

.cp-band {
	padding: clamp(24px, 4vw, 52px) var(--cp-gutter);
	background: var(--cp-band, var(--cp-violet));
	color: var(--cp-ink);
}

.cp-band--dark {
	background: var(--cp-violet);
	color: #FFFFFF;
	border-top: 2px solid #3D1FA6;
}

.cp-band__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.cp-band__title {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 22px);
}

.cp-band__intro {
	max-width: 38em;
	font-size: clamp(17px, 1.6vw, 20px);
	font-weight: 500;
}

.cp-band--dark .cp-band__intro {
	color: #E6DFFA;
	font-weight: 400;
}

.cp-band__role {
	margin-top: 6px;
	color: var(--cp-volt);
	font-weight: 700;
}

.cp-band__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}

.cp-band__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--cp-volt);
	font-weight: 700;
}

.cp-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
}

.cp-crumbs a {
	color: inherit;
}

/* ---------- Grids and cards ---------- */

.cp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 34px 28px;
}

.cp-grid--four {
	grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
	gap: 28px 24px;
}

.cp-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.cp-card__media {
	display: block;
	align-self: stretch;
}

.cp-card__media .cp-img {
	--cp-cut: 16px;
}

.cp-card__title {
	font-family: var(--cp-display);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.14;
}

.cp-grid--four .cp-card__title {
	font-size: 20px;
}

/* ---------- Article: hero ---------- */

.cp-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--cp-violet);
	color: #FFFFFF;
}

/* The featured image is a real <img> laid behind the headline. */
.cp-hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

.cp-hero__shade {
	display: none;
}

.cp-hero--image .cp-hero__shade {
	display: block;
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Dark enough behind the text for white type over even a white photo. */
	background: linear-gradient(180deg, rgba(42, 14, 134, 0.42) 0%, rgba(34, 11, 110, 0.8) 38%, rgba(23, 11, 59, 0.96) 100%);
}

.cp-hero--image .cp-hero__content {
	text-shadow: 0 1px 2px rgba(23, 11, 59, 0.55);
}

.cp-hero__inner {
	padding: 18px var(--cp-gutter) clamp(26px, 4vw, 48px);
}

.cp-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 14px;
	padding-top: 12px;
}

.cp-hero--image .cp-hero__content {
	min-height: clamp(340px, 38vw, 500px);
}

.cp-hero__title {
	max-width: 20em;
	font-family: var(--cp-display);
	font-weight: 800;
	font-size: clamp(30px, 4.6vw, 58px);
	line-height: 1.02;
	text-wrap: balance;
}

.cp-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding-top: 4px;
	font-size: 15px;
}

.cp-byline a {
	color: var(--cp-volt);
	font-weight: 800;
}

.cp-hero__credit {
	font-size: 13px;
	color: var(--cp-soft);
}

/* ---------- Video posts ---------- */

/* Play button over a video post's image in lists. Sized from the image, so
   it suits the lead story, the cards and the small feed thumbnails alike. */
.cp-lead__media,
.cp-row__media,
.cp-card__media {
	position: relative;
}

.cp-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	filter: drop-shadow(3px 3px 0 var(--cp-ink));
}

.cp-play__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(38px, 20%, 68px);
	aspect-ratio: 1;
	background: var(--cp-volt);
	color: var(--cp-ink);
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.cp-lead__media .cp-play__btn {
	width: clamp(60px, 13%, 96px);
}

.cp-play__btn svg {
	width: 50%;
	height: 50%;
	margin-left: 5%;
}

/* Play mark before a headline in the lists that have no images. */
.cp-vmark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-right: 8px;
	vertical-align: 0.05em;
	background: var(--cp-ink);
	color: var(--cp-volt);
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.cp-vmark svg {
	margin-left: 1px;
}

/* The watch page: a shorter headline band, then the player. The band's colour
   carries on behind the top of the player so the two read as one block. */
.cp-hero--video .cp-hero__inner {
	padding-bottom: clamp(18px, 2.4vw, 28px);
}

.cp-hero--video .cp-hero__title {
	max-width: 24em;
	font-size: clamp(27px, 3.7vw, 46px);
}

.cp-watch {
	position: relative;
	padding: 0 var(--cp-gutter);
}

.cp-watch::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: clamp(60px, 11vw, 150px);
	background: var(--cp-violet);
}

.cp-watch .cp-wrap {
	position: relative;
}

.cp-player {
	max-width: 980px;
	background: #000000;
	box-shadow: 8px 8px 0 var(--cp-volt);
}

.cp-player iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

.cp-player__credit {
	max-width: 980px;
	margin-top: 18px;
	font-size: 14px;
}

.cp-player__credit a {
	color: var(--cp-grey);
	font-weight: 700;
}

.cp-section--watch {
	padding-top: clamp(20px, 2.6vw, 30px);
}

/* On a phone the player runs edge to edge. */
@media (max-width: 700px) {
	.cp-watch {
		padding: 0;
	}

	.cp-watch::before {
		display: none;
	}

	.cp-player {
		box-shadow: none;
	}

	.cp-player__credit {
		margin-top: 10px;
		padding: 0 var(--cp-gutter);
	}
}

/* ---------- Article: body ---------- */

.cp-articlebody {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.cp-prose {
	font-size: clamp(18px, 1.5vw, 19.5px);
	line-height: 1.65;
	overflow-wrap: break-word;
}

.cp-prose--page {
	max-width: 720px;
	min-width: 0;
}

.cp-prose > * + * {
	margin-top: 1.15em;
}

.cp-articlebody .cp-prose > p:first-child {
	font-size: 1.14em;
	font-weight: 600;
	line-height: 1.5;
}

.cp-prose h2,
.cp-prose h3,
.cp-prose h4 {
	margin-top: 1.5em;
	font-family: var(--cp-display);
	font-weight: 800;
	line-height: 1.1;
}

.cp-prose h2 {
	font-size: clamp(24px, 2.6vw, 32px);
}

.cp-prose h3 {
	font-size: clamp(21px, 2.1vw, 25px);
}

.cp-prose h4 {
	font-size: 19px;
}

.cp-prose a {
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.cp-prose ul,
.cp-prose ol {
	padding-left: 1.3em;
}

.cp-prose li + li {
	margin-top: 0.4em;
}

.cp-prose li::marker {
	color: var(--cp-electric);
	font-weight: 800;
}

.cp-prose blockquote {
	position: relative;
	margin-left: 0;
	margin-right: 0;
	padding: 22px 24px 22px 80px;
	background: var(--cp-mist);
	border: 0;
	font-weight: 600;
	clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.cp-prose blockquote::before {
	content: "\201C";
	position: absolute;
	left: 22px;
	top: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding-top: 14px;
	background: var(--cp-volt);
	color: var(--cp-ink);
	font-family: var(--cp-display);
	font-weight: 800;
	font-size: 38px;
	line-height: 1;
	clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.cp-prose blockquote > * + * {
	margin-top: 0.8em;
}

.cp-prose blockquote cite {
	display: block;
	font-size: 0.85em;
	font-style: normal;
	font-weight: 700;
	color: var(--cp-grey);
}

.cp-prose figure,
.cp-prose .wp-block-image,
.cp-prose .wp-block-embed {
	margin-left: 0;
	margin-right: 0;
}

.cp-prose figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--cp-grey);
}

.cp-prose iframe,
.cp-prose video {
	max-width: 100%;
}

.cp-prose .wp-block-table,
.cp-prose .cp-table-scroll {
	overflow-x: auto;
}

.cp-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.4;
}

.cp-prose th,
.cp-prose td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 2px solid var(--cp-line);
	text-align: left;
	vertical-align: top;
}

.cp-prose thead th {
	background: var(--cp-ink);
	color: #FFFFFF;
	border-bottom: 0;
	font-weight: 800;
}

.cp-prose hr {
	height: 4px;
	border: 0;
	background: var(--cp-volt);
}

.cp-pagelinks {
	margin-top: 1.2em;
	font-weight: 700;
}

.cp-taglist,
.cp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 15px;
}

.cp-taglist {
	padding-top: 10px;
}

.cp-taglist__label {
	padding-right: 4px;
	font-weight: 800;
}

.cp-tag {
	--cp-cut: 8px;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	background: var(--cp-mist-2);
	color: var(--cp-ink);
	font-weight: 700;
	text-decoration: none;
}

.cp-tag:hover {
	background: var(--cp-volt);
}

.cp-authorbox-wrap {
	display: block;
	margin: 8px 6px 6px 0;
}

.cp-authorbox {
	--cp-cut: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 20px;
	padding: 24px;
	background: var(--cp-ink);
	color: #FFFFFF;
	font-size: 16px;
}

.cp-authorbox__body {
	flex: 1 1 240px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.cp-authorbox__name {
	color: #FFFFFF;
	font-family: var(--cp-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1.1;
	text-decoration: none;
}

.cp-authorbox__role {
	color: var(--cp-volt);
	font-weight: 700;
	font-size: 15px;
}

.cp-authorbox p {
	color: var(--cp-soft);
}

.cp-authorbox__more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--cp-volt);
	font-weight: 800;
}

.cp-rail__link {
	display: block;
	padding: 14px 0;
	border-bottom: 2px solid var(--cp-mist-2);
	color: var(--cp-ink);
	font-family: var(--cp-display);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.18;
	text-decoration: none;
}

.cp-rail__link:hover {
	text-decoration: underline;
	text-decoration-color: var(--cp-electric);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}

/* ---------- Pages and forms ---------- */

.cp-split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 56px;
}

.cp-split > .cp-prose {
	flex: 1 1 380px;
}

.cp-split__form {
	flex: 1 1 380px;
	min-width: 0;
}

.cp-form-wrap {
	display: block;
	margin: 0 7px 7px 0;
	--cp-press: var(--cp-volt);
	filter: drop-shadow(7px 7px 0 var(--cp-press));
	scroll-margin-top: 16px;
}

.cp-prose .cp-form-wrap {
	max-width: 560px;
}

.cp-form {
	--cp-cut: 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: clamp(20px, 3vw, 32px);
	background: var(--cp-ink);
	color: #FFFFFF;
	font-size: 17px;
	line-height: 1.5;
}

.cp-form__title {
	margin: 0;
	font-family: var(--cp-display);
	font-weight: 800;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.1;
}

.cp-form__intro {
	margin: 0;
	color: var(--cp-soft);
	font-size: 16px;
}

.cp-form .cp-btn {
	align-self: flex-start;
	min-height: 52px;
	padding: 0 28px;
	font-size: 18px;
}

.cp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.cp-field label {
	font-weight: 700;
	font-size: 15px;
}

.cp-input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 2px solid #8F7BD6;
	border-radius: 0;
	background: #FFFFFF;
	color: var(--cp-ink);
	font: inherit;
}

.cp-input--area {
	min-height: 150px;
	resize: vertical;
}

.cp-input[aria-invalid="true"] {
	border-color: var(--cp-hot);
	border-width: 3px;
}

.cp-error {
	color: #FFB3C4;
	font-size: 15px;
	font-weight: 600;
}

.cp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cp-status {
	margin: 0;
	padding: 12px 14px;
	border: 2px solid var(--cp-volt);
}

.cp-status--error {
	border-color: var(--cp-hot);
}

.cp-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	max-width: 560px;
	margin-top: 6px;
}

.cp-search .cp-input {
	flex: 1 1 220px;
	width: auto;
}

/* ---------- Footer ---------- */

.cp-footer {
	padding: 44px var(--cp-gutter) 36px;
	background: var(--cp-night);
	color: var(--cp-soft);
	font-size: 15px;
}

.cp-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 48px;
}

.cp-footer__about {
	flex: 2 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.cp-footer__about .cp-logo {
	height: 36px;
}

.cp-footer__about p {
	max-width: 30em;
}

.cp-footer__nav {
	flex: 1 1 150px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.cp-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: #FFFFFF;
}

.cp-footer__legal {
	flex: 1 1 100%;
	padding-top: 18px;
	border-top: 1px solid #3A2A6E;
	font-size: 14px;
}
