/* Carson Daly Racing - front-end components.
 *
 * Colours and measures come from the child theme's tokens.css. The fallbacks
 * here are so a component still renders correctly if it is used before the
 * theme loads (inside the block editor, for example).
 */

.cdr-hero,
.cdr-countdown,
.cdr-next,
.cdr-season,
.cdr-card,
.cdr-strip,
.cdr-wall {
	--black:      var(--cdr-black, #0A0A0B);
	--panel:      var(--cdr-panel, #141416);
	--raised:     var(--cdr-panel-raised, #1C1C1F);
	--white:      var(--cdr-white, #FFFFFF);
	--off:        var(--cdr-off-white, #F2F2EF);
	--grey:       var(--cdr-grey, #9A9A94);
	--dim:        var(--cdr-grey-dim, #6E6E68);
	--yellow:     var(--cdr-yellow, #FFD200);
	--rule:       var(--cdr-rule, #2A2A2D);
	--display:    var(--cdr-font-display, "Archivo", Impact, sans-serif);
	--body:       var(--cdr-font-body, "Barlow", system-ui, sans-serif);
	--mono:       var(--cdr-font-data, "IBM Plex Mono", monospace);
	--wrap:       var(--cdr-container, 1240px);

	box-sizing: border-box;
	font-family: var(--body);
}

.cdr-hero *,
.cdr-countdown *,
.cdr-next *,
.cdr-season *,
.cdr-card *,
.cdr-strip *,
.cdr-wall * {
	box-sizing: border-box;
}

/* The display face: heavy, condensed, italic - the mockup's headline voice. */
.cdr-display {
	font-family: var(--display);
	font-weight: 800;
	font-stretch: 85%;
	font-style: italic;
	letter-spacing: var(--cdr-display-tracking, -0.02em);
	text-transform: uppercase;
	line-height: 0.92;
	text-wrap: balance;
}

.cdr-wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

.cdr-eyebrow {
	margin: 0 0 6px;
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(11px, 1.1vw, 13px);
	letter-spacing: var(--cdr-label-tracking, 0.16em);
	text-transform: uppercase;
	color: var(--yellow);
}

/* ---------- buttons ---------- */

.cdr-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border: 1px solid var(--yellow);
	background: transparent;
	color: var(--white);
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background var(--cdr-speed, .18s) var(--cdr-ease, ease),
	            color var(--cdr-speed, .18s) var(--cdr-ease, ease);
}

.cdr-btn:hover,
.cdr-btn:focus-visible {
	background: var(--yellow);
	color: var(--cdr-ink, #0A0A0B);
}

.cdr-btn span { color: var(--yellow); transition: color var(--cdr-speed, .18s); }
.cdr-btn:hover span,
.cdr-btn:focus-visible span { color: inherit; }

.cdr-btn--sm { padding: 10px 16px; font-size: 11.5px; }

.cdr-btn--block {
	display: flex;
	justify-content: center;
	width: 100%;
}

.cdr-textlink {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--white);
	text-decoration: none;
	white-space: nowrap;
}

.cdr-textlink span { color: var(--yellow); }
.cdr-textlink:hover { color: var(--yellow); }

/* ---------- placeholders ---------- */

.cdr-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-height: 100%;
	padding: 18px;
	background:
		repeating-linear-gradient(-45deg, #17171A 0 10px, #131315 10px 20px);
	border: 1px dashed var(--cdr-rule, #2A2A2D);
	color: var(--cdr-grey-dim, #6E6E68);
	font-family: var(--cdr-font-data, monospace);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.cdr-placeholder small {
	font-size: 10px;
	color: #4E4E4A;
	text-transform: none;
	letter-spacing: 0;
}

.cdr-placeholder--square { aspect-ratio: 1; }
.cdr-placeholder--wide   { min-height: 200px; }
.cdr-placeholder--car    { min-height: clamp(220px, 30vw, 380px); }

/* ---------- section heading ---------- */

.cdr-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.cdr-sec-title {
	margin: 0;
	font-size: clamp(22px, 2.6vw, 30px);
	color: var(--white);
}

/* =================================================================
   Countdown bar
   ================================================================= */

.cdr-countdown {
	background: var(--black);
	padding: 14px clamp(16px, 4vw, 32px);
}

.cdr-countdown__inner {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.4vw, 30px);
	padding: 12px clamp(14px, 2vw, 22px);
	border: 1px solid var(--yellow);
	background: var(--panel);
	max-width: var(--wrap);
	margin-inline: auto;
}

.cdr-countdown--empty {
	text-align: center;
	color: var(--grey);
	font-style: italic;
}

.cdr-countdown__label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.cdr-countdown__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--yellow);
	color: var(--yellow);
}

.cdr-countdown__icon svg { width: 21px; height: 21px; }

.cdr-countdown__kicker,
.cdr-countdown__round {
	display: block;
	font-family: var(--display);
	font-style: italic;
	text-transform: uppercase;
}

.cdr-countdown__kicker {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--white);
}

.cdr-countdown__round {
	font-size: 21px;
	font-weight: 800;
	color: var(--yellow);
	line-height: 1;
	margin-top: 2px;
}

.cdr-countdown__where {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-inline: clamp(14px, 2vw, 26px);
	border-inline: 1px solid var(--rule);
	flex: 1 1 auto;
	min-width: 0;
}

.cdr-countdown__venue {
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--white);
}

.cdr-countdown__date {
	font-size: 12.5px;
	color: var(--grey);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cdr-countdown__live {
	margin: 0;
	padding: 8px 16px;
	background: var(--yellow);
	color: var(--cdr-ink, #0A0A0B);
	font-family: var(--display);
	font-style: italic;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cdr-clock {
	display: flex;
	flex: 0 0 auto;
}

.cdr-clock__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-inline: clamp(10px, 1.6vw, 20px);
	border-right: 1px solid var(--rule);
}

.cdr-clock__unit:last-child { border-right: 0; }

.cdr-clock__value {
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 800;
	color: var(--white);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.cdr-clock__label {
	margin-top: 5px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--grey);
}

/* =================================================================
   Hero
   ================================================================= */

.cdr-hero {
	position: relative;
	background: var(--black);
	overflow: hidden;
	padding: clamp(20px, 3vw, 40px) clamp(16px, 4vw, 32px) 0;
}

/* The asphalt texture: a very low-contrast diagonal wash, so the black is not
   flat but never competes with the car. */
.cdr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 80% at 78% 40%, rgba(255, 210, 0, .07), transparent 60%),
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 7px);
	pointer-events: none;
}

.cdr-hero__ghost {
	position: absolute;
	top: clamp(-14px, 0.5vw, 6px);
	left: 41%;
	font-size: clamp(150px, 21vw, 290px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px rgba(255, 210, 0, .30);
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.cdr-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--wrap);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	min-height: clamp(360px, 46vw, 540px);
}

.cdr-hero__name {
	margin: 0;
	font-size: clamp(46px, 8.4vw, 118px);
	line-height: 0.84;
}

.cdr-hero__first,
.cdr-hero__last {
	display: block;
	/* The name is the page's anchor - it must never break mid-word. */
	white-space: nowrap;
}

.cdr-hero__first { color: var(--off); }
.cdr-hero__last  { color: var(--yellow); }

.cdr-hero__role {
	margin: clamp(10px, 1.6vw, 20px) 0 0;
	font-family: var(--display);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(17px, 2.2vw, 27px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--off);
}

.cdr-hero__motto {
	margin: 6px 0 clamp(18px, 2.4vw, 28px);
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(13px, 1.5vw, 18px);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
}

.cdr-hero__mark {
	display: flex;
	align-items: center;
	gap: var(--mark-gap, 14px);
	margin: clamp(22px, 3vw, 42px) 0 0;
}

.cdr-monogram {
	display: inline-flex;
	align-items: center;
	color: var(--yellow);
	width: var(--mark-w, 46px);
	flex: 0 0 auto;
}

.cdr-monogram svg,
.cdr-monogram__img {
	display: block;
	width: 100%;
	height: auto;
}

.cdr-monogram__link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.cdr-hero__number {
	font-family: var(--display);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(16px, 1.8vw, 22px);
	color: var(--off);
	letter-spacing: 0.02em;
}

/* The car sits in its own layered box.
 *
 * The box keeps a fixed shape, so its width and height come from the grid
 * column - never from the image inside it. Swapping in a bigger or smaller PNG
 * moves nothing in the text column beside it. Every position and scale value is
 * a custom property, which is what the Elementor controls set, per breakpoint. */

.cdr-hero__car {
	position: relative;
	display: block;
	min-width: 0;
}

.cdr-hero__carbox {
	position: relative;
	width: 100%;
	aspect-ratio: var(--car-box, 16 / 10);
	min-height: 170px;
}

/* Two classes deep on purpose: the theme's global `.cdr-site img` rule sets
   max-width:100% and height:auto, which outranks a single class and pinned the
   car to the width of its box whatever the controls said. */
.cdr-hero .cdr-hero__carimg {
	position: absolute;
	top: var(--car-y, 50%);
	left: var(--car-x, 50%);
	width: var(--car-w, 100%);
	max-width: var(--car-max, 720px);
	height: var(--car-h, auto);
	object-fit: var(--car-fit, fill);
	object-position: center;
	transform: translate(-50%, -50%) translate(var(--car-dx, 0px), var(--car-dy, 0px));
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6));
}

/* Fit modes, set by the widget's Object fit control. */
.cdr-fit-contain .cdr-hero .cdr-hero__carimg { --car-h: 100%; --car-fit: contain; }
.cdr-fit-cover   .cdr-hero .cdr-hero__carimg { --car-h: 100%; --car-fit: cover; }
.cdr-fit-natural .cdr-hero .cdr-hero__carimg { --car-h: auto; --car-fit: fill; }

/* The placeholder fills the box and ignores the car controls, so the layout
   looks the same before a real image is uploaded. */
.cdr-hero .cdr-hero__carbox > .cdr-placeholder {
	position: absolute;
	inset: 0;
	width: auto;
	min-height: 0;
	transform: none;
	max-width: none;
}

/* =================================================================
   Next race panel
   ================================================================= */

.cdr-next {
	display: grid;
	grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.4fr) minmax(0, 1.3fr);
	align-items: stretch;
	gap: 0;
	background: var(--panel);
	border: 1px solid var(--rule);
	overflow: hidden;
}

.cdr-next__map {
	display: grid;
	place-items: center;
	padding: clamp(18px, 2.4vw, 34px);
}

.cdr-outline {
	display: block;
	color: var(--white);
	opacity: .9;
}

.cdr-outline svg,
.cdr-outline img {
	display: block;
	width: 100%;
	height: auto;
}

.cdr-outline--lg { width: clamp(110px, 13vw, 165px); }

.cdr-next__body {
	padding: clamp(22px, 2.6vw, 36px) clamp(18px, 2vw, 28px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 3px;
}

.cdr-next__round {
	margin: 0 0 4px;
	font-size: clamp(30px, 4vw, 46px);
	color: var(--white);
}

.cdr-next__venue {
	margin: 0;
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(14px, 1.5vw, 17px);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--yellow);
}

.cdr-next__date {
	margin: 2px 0 0;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--grey);
}

.cdr-next__series {
	margin: 12px 0 18px;
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--series, var(--yellow));
}

.cdr-next__photo {
	position: relative;
	min-height: 200px;
}

.cdr-next__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.08) brightness(.85);
}

/* =================================================================
   Season schedule
   ================================================================= */

.cdr-season { color: var(--white); }

.cdr-season .cdr-sec-title { font-size: clamp(40px, 6.5vw, 82px); }

.cdr-season__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(24px, 3vw, 44px);
}

.cdr-series__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 2px solid var(--series, var(--yellow));
}

.cdr-series__name {
	margin: 0;
	font-size: clamp(18px, 2.2vw, 25px);
	color: var(--series, var(--yellow));
}

.cdr-series__count {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dim);
	white-space: nowrap;
}

.cdr-rounds {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cdr-round__link {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 18px);
	padding: 12px 16px;
	background: var(--panel);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--series, var(--yellow));
	text-decoration: none;
	transition: background var(--cdr-speed, .18s) var(--cdr-ease, ease),
	            border-color var(--cdr-speed, .18s) var(--cdr-ease, ease);
}

.cdr-round__link:hover,
.cdr-round__link:focus-visible {
	background: var(--raised);
	border-color: var(--series, var(--yellow));
}

.cdr-round__no {
	flex: 0 0 auto;
	font-size: clamp(22px, 2.4vw, 28px);
	color: var(--series, var(--yellow));
	font-variant-numeric: tabular-nums;
	min-width: 1.7em;
}

.cdr-round__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cdr-round__title {
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(13px, 1.4vw, 15px);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--white);
	overflow-wrap: anywhere;
}

.cdr-round__tag {
	color: var(--series, var(--yellow));
	margin-right: 7px;
}

.cdr-round__date {
	font-size: 12.5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--grey);
}

.cdr-round .cdr-outline {
	flex: 0 0 auto;
	width: clamp(42px, 5vw, 56px);
	color: var(--grey);
	opacity: .75;
}

.cdr-round--completed .cdr-round__link { opacity: .62; }
.cdr-round--cancelled .cdr-round__title { text-decoration: line-through; }

/* =================================================================
   Cards: news and Instagram
   ================================================================= */

.cdr-card {
	background: var(--panel);
	border: 1px solid var(--rule);
	padding: clamp(20px, 2.4vw, 30px);
	color: var(--white);
	display: flex;
	flex-direction: column;
}

.cdr-news__list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	flex: 1 1 auto;
}

.cdr-news__item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--rule);
}

.cdr-news__list .cdr-news__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.cdr-news__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--raised);
}

.cdr-news__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cdr-news__body { min-width: 0; }

.cdr-chip {
	display: inline-block;
	padding: 2px 8px;
	margin-bottom: 6px;
	background: var(--cdr-yellow, #FFD200);
	color: var(--cdr-ink, #0A0A0B);
	font-family: var(--cdr-font-display, "Archivo", sans-serif);
	font-style: italic;
	font-weight: 700;
	font-size: 9.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cdr-chip--race-report       { background: var(--cdr-yellow, #FFD200); }
.cdr-chip--team-update       { background: var(--cdr-sprint, #2E7FE8); color: #fff; }
.cdr-chip--sponsor-spotlight { background: var(--cdr-off-white, #F2F2EF); color: var(--cdr-ink, #0A0A0B); }
.cdr-chip--media             { background: var(--cdr-grey-dim, #6E6E68); color: #fff; }
.cdr-chip--uncategorized     { background: var(--cdr-grey-dim, #6E6E68); color: #fff; }

.cdr-news__title {
	margin: 0 0 3px;
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(14px, 1.5vw, 16px);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.15;
}

.cdr-news__title a {
	color: var(--white);
	text-decoration: none;
}

.cdr-news__title a:hover { color: var(--yellow); }

.cdr-news__date {
	margin: 0 0 5px;
	font-style: italic;
	font-size: 12px;
	color: var(--yellow);
}

.cdr-news__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--grey);
}

.cdr-ig__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.cdr-ig__handle {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--grey);
}

.cdr-ig__grid {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	/* Column count is a custom property so the widget can set it per device.
	   Three is the design; two on small screens. */
	grid-template-columns: repeat(var(--ig-cols, 3), minmax(0, 1fr));
	gap: 8px;
	flex: 1 1 auto;
}

/* Live images arrive at whatever size the feed serves. The tile owns the
   shape - square, cropped - so the panel height never depends on them. */
.cdr-ig__grid--live .cdr-ig__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cdr-ig__note {
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px dashed var(--rule);
	font-family: var(--mono);
	font-size: 11px;
	line-height: 1.5;
	color: var(--dim);
}

.cdr-ig__link {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--raised);
}

.cdr-ig__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--cdr-speed, .18s) var(--cdr-ease, ease);
}

a.cdr-ig__link:hover img { transform: scale(1.05); }

.cdr-ig__badge {
	position: absolute;
	right: 7px;
	bottom: 7px;
	width: 16px;
	height: 16px;
	color: var(--white);
	opacity: .85;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8));
}

.cdr-ig__badge svg { width: 100%; height: 100%; display: block; }

.cdr-ig__btnicon { width: 15px; height: 15px; color: var(--yellow); }
.cdr-ig__btnicon svg { width: 100%; height: 100%; display: block; }

/* =================================================================
   Sponsor strip
   ================================================================= */

/* The strip is layered: colour, then optional image, then the diagonal
   texture, then an optional overlay - and the content sits above all of it on
   its own stacking level, so the logos never lose contrast or opacity. */
.cdr-strip {
	position: relative;
	isolation: isolate;
	padding: clamp(26px, 3.4vw, 44px) 0;
	background-color: var(--strip-bg, var(--cdr-concrete, #E8E7E3));
	background-image: var(--strip-img, none);
	background-position: var(--strip-pos, center center);
	background-size: var(--strip-size, cover);
	background-repeat: var(--strip-repeat, no-repeat);
}

/* The concrete texture. Present by default; set --strip-texture to 0 to drop
   it when a photograph is used instead. */
.cdr-strip::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	opacity: var(--strip-texture, 1);
	background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .018) 0 12px, transparent 12px 24px);
}

/* The tint over a background image. Invisible until an opacity is set. */
.cdr-strip::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--strip-overlay-color, #E8E7E3);
	opacity: var(--strip-overlay, 0);
}

.cdr-strip > .cdr-wrap {
	position: relative;
	z-index: 1;
}

.cdr-strip__title {
	margin: 0 0 clamp(16px, 2vw, 26px);
	text-align: center;
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(14px, 1.7vw, 19px);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cdr-ink, #0A0A0B);
}

.cdr-strip__rail {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cdr-strip__nav {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	color: #55554F;
	transition: color var(--cdr-speed, .18s);
}

.cdr-strip__nav:hover { color: var(--cdr-ink, #0A0A0B); }

.cdr-strip__track {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	display: flex;
	align-items: center;
	gap: clamp(20px, 3.5vw, 52px);
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	flex: 1 1 auto;
}

.cdr-strip__track::-webkit-scrollbar { display: none; }

.cdr-strip__item { flex: 0 0 auto; }

.cdr-strip__logo {
	display: grid;
	place-items: center;
	min-width: 90px;
	height: 44px;
	text-decoration: none;
	filter: grayscale(1);
	opacity: .78;
	transition: opacity var(--cdr-speed, .18s), filter var(--cdr-speed, .18s);
}

.cdr-strip__logo:hover {
	opacity: 1;
	filter: grayscale(0);
}

.cdr-strip__logo img {
	max-height: 44px;
	width: auto;
	display: block;
}

.cdr-strip__name {
	font-family: var(--display);
	font-style: italic;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cdr-ink, #0A0A0B);
	white-space: nowrap;
}

/* =================================================================
   Sponsor wall
   ================================================================= */

.cdr-wall {
	display: flex;
	flex-direction: column;
	gap: clamp(30px, 4vw, 52px);
}

.cdr-wall__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 18px;
}

.cdr-wall__item {
	background: var(--panel);
	border: 1px solid var(--rule);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cdr-wall__logo {
	display: grid;
	place-items: center;
	min-height: 66px;
	text-decoration: none;
}

.cdr-wall__logo img { max-height: 66px; width: auto; }

/* The name fallback is dark for the light sponsor strip, so it has to be
   re-stated for the wall, which sits on the dark page. */
.cdr-wall__logo .cdr-strip__name {
	color: var(--white);
	white-space: normal;
	text-align: center;
	font-size: 16px;
	line-height: 1.2;
}

.cdr-wall__item:hover .cdr-wall__logo .cdr-strip__name { color: var(--yellow); }

.cdr-wall__blurb {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--grey);
	text-align: center;
}

/* =================================================================
   Newsletter
   ================================================================= */

.cdr-subscribe__title {
	margin: 0 0 6px;
	font-family: var(--cdr-font-display, "Archivo", sans-serif);
	font-style: italic;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cdr-white, #fff);
}

.cdr-subscribe__text {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--cdr-grey, #9A9A94);
	max-width: 34ch;
}

.cdr-subscribe__pending {
	margin: 0;
	padding: 11px 14px;
	border: 1px dashed var(--cdr-rule, #2A2A2D);
	font-family: var(--cdr-font-data, monospace);
	font-size: 11px;
	color: var(--cdr-grey-dim, #6E6E68);
}

/* =================================================================
   Responsive
   ================================================================= */

@media (max-width: 1080px) {
	.cdr-countdown__inner {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	/* Once the bar wraps, the venue reads better directly under the round
	   name than stranded after the button. */
	.cdr-countdown__label { order: 1; }

	.cdr-countdown__where {
		order: 2;
		flex-basis: 100%;
		border-inline: 0;
		padding-inline: 0;
		padding-bottom: 12px;
		margin-bottom: 4px;
		border-bottom: 1px solid var(--rule);
	}

	.cdr-clock { order: 3; }
	.cdr-countdown .cdr-btn { order: 4; }

	.cdr-next {
		grid-template-columns: minmax(120px, .8fr) minmax(0, 1.6fr);
	}

	.cdr-next__photo {
		grid-column: 1 / -1;
		min-height: 200px;
		order: 3;
	}
}

@media (max-width: 860px) {
	.cdr-hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
		padding-bottom: 20px;
	}

	/* Keep the ghost number clear of the name once they share a column. */
	.cdr-hero__ghost {
		left: auto;
		right: -6%;
		top: 1%;
		font-size: clamp(140px, 32vw, 250px);
		-webkit-text-stroke-width: 1.5px;
		opacity: .55;
	}

	.cdr-hero__carbox { --car-box: 3 / 2; }

	.cdr-clock { width: 100%; justify-content: space-between; }
	.cdr-clock__unit { flex: 1 1 0; padding-inline: 4px; }
}

@media (max-width: 640px) {
	.cdr-countdown__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.cdr-countdown__label { justify-content: flex-start; }

	/* Keep the order set at the wider breakpoint: label, venue, clock, button.
	   Only the borders change once the bar is fully stacked. */
	.cdr-countdown__where {
		order: 2;
		border-top: 0;
		margin-top: 0;
		padding-top: 0;
	}

	.cdr-countdown .cdr-btn { justify-content: center; }

	.cdr-next {
		grid-template-columns: 1fr;
	}

	.cdr-next__map {
		padding-bottom: 0;
	}

	.cdr-news__item {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 12px;
	}

	.cdr-ig__grid {
		gap: 6px;
		--ig-cols: 2;
	}

	.cdr-strip__nav { display: none; }
}
