/*
Theme Name: Carolina Custom Models
Theme URI: https://carolinacustommodels.com/
Author: Carolina Custom Models
Description: Block theme for Carolina Custom Models. Blueprint grids, Cinzel and Montserrat, and a reservation card that hands over to the CCM Reservations form when a campaign opens.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccm
*/

/* Colours, type, spacing and buttons are in theme.json. This file is the
   bespoke layer on top: section treatments, the drawings, and the form. */

:root {
	--ccm-blue: var(--wp--preset--color--blue);
	--ccm-blue-700: var(--wp--preset--color--blue-700);
	--ccm-blue-100: var(--wp--preset--color--blue-100);
	--ccm-blue-50: var(--wp--preset--color--blue-50);
	--ccm-red: var(--wp--preset--color--red);
	--ccm-ink: var(--wp--preset--color--ink);
	--ccm-ink-2: var(--wp--preset--color--ink-2);
	--ccm-muted: var(--wp--preset--color--muted);
	--ccm-line: var(--wp--preset--color--line);
	--ccm-paper: var(--wp--preset--color--paper);
	--ccm-navy: var(--wp--preset--color--navy);
	--ccm-bp: var(--wp--preset--color--blueprint);
	--ccm-header-h: 76px;
	--ccm-sticky-top: 0px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* clip, not hidden: it stops stray overflow without breaking the sticky header. */
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--ccm-blue); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--ccm-header-h) + var(--ccm-sticky-top) + 12px); }

/* Header, main and footer sit flush; sections bring their own padding.
   The column layout keeps the footer at the bottom of short pages. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - var(--ccm-sticky-top));
}
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main { flex: 1 0 auto; }
/* A section marked ccm-fill stretches to meet the footer (the 404 band). */
.wp-site-blocks > main:has(> .ccm-fill) { display: flex; flex-direction: column; }
.wp-site-blocks > main > .ccm-fill { flex: 1 0 auto; }
:root .ccm-flush > * { margin-block: 0; }

.ccm-section { padding-block: var(--wp--preset--spacing--60); }

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

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--ccm-sticky-top);
	z-index: 50;
}
body.admin-bar { --ccm-sticky-top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	body.admin-bar { --ccm-sticky-top: 0px; }
}

.ccm-header {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid var(--ccm-line);
}
/* The frosted glass sits on a pseudo-element, not the header itself: a
   backdrop-filter on an ancestor becomes the containing block for fixed
   children, which would trap the mobile menu overlay inside the header bar. */
.ccm-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	        backdrop-filter: saturate(1.4) blur(10px);
}
.ccm-header__bar { min-height: var(--ccm-header-h); gap: 24px; }
.ccm-header .wp-block-site-logo img { height: 54px; width: auto; }
.ccm-header__nav { gap: 28px; }
.ccm-header .wp-block-navigation-item__content { text-decoration: none; }
.ccm-header .wp-block-navigation-item__content:hover,
.ccm-header .wp-block-navigation-item__content:focus-visible { color: var(--ccm-blue-700); }
.ccm-header .wp-block-navigation .current-menu-item > a { color: var(--ccm-blue-700); }
:root .ccm-header__cta .wp-block-button__link {
	padding: 0.6rem 1.05rem;
	background: var(--ccm-blue-700);
	font-size: 0.85rem;
}
:root .ccm-header__cta .wp-block-button__link:hover { background: var(--ccm-ink); }

/* Mobile overlay menu */
.ccm-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px clamp(16px, 4vw, 24px);
	background: #fff;
	color: var(--ccm-ink);
}
.ccm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
	gap: 0.75rem;
}
/* Core carries the desktop right-alignment into the overlay; stack the
   links full-width on rules instead. */
.ccm-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) {
	align-items: stretch;
	width: 100%;
}
.ccm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start;
	padding-block: 0.6rem;
	border-bottom: 1px solid var(--ccm-line);
}
.ccm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	font-weight: 700;
}

/* Core only switches to the menu button below 600px; six links don't fit on
   one line until about 1000px, so keep the button through tablet widths. */
@media (min-width: 600px) and (max-width: 999px) {
	.ccm-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ccm-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

@media (max-width: 820px) {
	:root { --ccm-header-h: 64px; }
	.ccm-header .wp-block-site-logo img { height: 44px; }
	.ccm-header__nav { gap: 14px; }
}

/* ---------------------------------------------------------------------------
   Section treatments (block styles on Group)
   ------------------------------------------------------------------------ */

.is-style-blueprint,
.is-style-blueprint-dark {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.is-style-blueprint {
	--g1: rgba(47, 123, 238, 0.10);
	--g2: rgba(47, 123, 238, 0.05);
	background-color: var(--ccm-paper);
}
.is-style-blueprint-dark {
	--g1: rgba(156, 194, 255, 0.10);
	--g2: rgba(156, 194, 255, 0.05);
	background-color: var(--ccm-navy);
	color: #e6eefc;
}
.is-style-blueprint::before,
.is-style-blueprint-dark::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(var(--g1) 1px, transparent 1px),
		linear-gradient(90deg, var(--g1) 1px, transparent 1px),
		linear-gradient(var(--g2) 1px, transparent 1px),
		linear-gradient(90deg, var(--g2) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	-webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 35%, transparent 90%);
	        mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 35%, transparent 90%);
}
.is-style-blueprint-dark :where(h1, h2, h3, h4) { color: #fff; }
.is-style-blueprint-dark .is-style-eyebrow { color: var(--ccm-bp); }
.is-style-blueprint-dark .is-style-lede { color: #b3c3dc; }
.is-style-blueprint-dark a:where(:not(.wp-element-button)) { color: var(--ccm-bp); }

.is-style-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ccm-line);
	border-radius: 12px;
}
.is-style-panel {
	padding: 24px 26px;
	background: var(--ccm-paper);
	border: 1px solid var(--ccm-line);
	border-radius: 12px;
}

/* Tinted bands that aren't blueprints */
.ccm-band-paper {
	background: var(--ccm-paper);
	border-block: 1px solid var(--ccm-line);
}

/* ---------------------------------------------------------------------------
   Type helpers (block styles on Paragraph)
   ------------------------------------------------------------------------ */

.is-style-eyebrow {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ccm-blue-700);
}
:root .is-style-eyebrow + * { margin-block-start: 0.9rem; }

.is-style-lede {
	max-width: 40em;
	font-size: 1.05rem;
	color: var(--ccm-muted);
}
/* As a direct child of a constrained layout, core centres anything narrower
   than the column; keep the lede exactly column-width so it lines up. */
:root .is-layout-constrained > .is-style-lede { max-width: var(--wp--style--global--content-size); }

/* |—— caption ——| like a dimension line on a drawing */
.is-style-dimension {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--ccm-muted);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
}
.is-style-dimension::before,
.is-style-dimension::after {
	content: "";
	flex: 1;
	height: 10px;
	border: 0 solid var(--ccm-blue);
	background: linear-gradient(var(--ccm-blue), var(--ccm-blue)) center / 100% 1px no-repeat;
	opacity: 0.5;
}
.is-style-dimension::before { border-left-width: 1px; }
.is-style-dimension::after { border-right-width: 1px; }
.is-style-blueprint-dark .is-style-dimension { color: #8ea3c4; }

/* ---------------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------------ */

.is-style-checks {
	display: grid;
	gap: 0.6rem;
	padding: 0;
	list-style: none;
}
.is-style-checks li {
	position: relative;
	padding-left: 1.9rem;
	font-size: 0.95rem;
	font-weight: 500;
}
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15rem;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%232f7bee' opacity='.14'/%3E%3Cpath d='M6 10.4l2.7 2.7L14.2 7.4' fill='none' stroke='%232f7bee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------ */

.ccm-hero { padding-block: clamp(3.5rem, 7vw, 5rem) clamp(4rem, 7.5vw, 5.5rem); border-bottom: 1px solid var(--ccm-line); }
:root .ccm-hero .wp-block-columns { gap: 56px; }

.ccm-lockup { display: inline-block; width: fit-content; }
.ccm-lockup h1 { margin: 0; text-transform: uppercase; }
:root .ccm-lockup .ccm-sub { margin-block-start: 0; }
.ccm-sub {
	font-size: clamp(0.82rem, 1.4vw, 1rem);
	font-weight: 600;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--ccm-ink-2);
}
.ccm-sub::before {
	content: "";
	display: block;
	height: 3px;
	margin: 1.1rem 0 0.95rem;
	background: var(--ccm-red);
}

:root .ccm-pill-row { margin-block-start: 2rem; }
.ccm-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
	padding: 0.75rem 1.3rem 0.75rem 1.1rem;
	border-radius: 999px;
	background: var(--ccm-blue-700);
	color: #fff;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	box-shadow: 0 10px 28px -12px rgba(47, 123, 238, 0.8);
}
.ccm-pill.is-closed,
.ccm-pill.is-full { background: var(--ccm-ink-2); box-shadow: none; }

/* Countdown to opening, under the pill and in the reservation card. */
.ccm-countdown { margin-block-start: 1.1rem; }
.ccm-countdown__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 424px; }
.ccm-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 12px 4px 10px;
	background: #fff;
	border: 1px solid var(--ccm-line);
	border-radius: 10px;
	box-shadow: 0 10px 24px -18px rgba(11, 31, 58, 0.55);
}
.ccm-countdown__unit b {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--ccm-ink);
}
.ccm-countdown__unit small {
	margin-top: 6px;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ccm-muted);
}
:root .ccm-countdown__when { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--ccm-muted); }
:root .ccm-countdown__live { display: none; margin: 0.75rem 0 0; font-size: 0.9rem; font-weight: 700; color: var(--ccm-blue-700); }
.ccm-countdown.is-done .ccm-countdown__live { display: block; }
.ccm-countdown.is-done .ccm-countdown__when { display: none; }
/* Sets reserved so far: same bar as the plugin's form, with the count in words. */
/* The width cap sits on the children: a capped block directly inside a
   constrained layout (the campaign page header) gets centred by core. */
:root .ccm-progress { margin-block-start: 1.1rem; }
.ccm-progress__label,
.ccm-progress__bar { max-width: 424px; }
:root .ccm-progress__label { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 7px; font-size: 0.85rem; color: var(--ccm-muted); }
.ccm-progress__label strong { font-weight: 700; color: var(--ccm-ink); }
.ccm-progress__left { font-weight: 700; color: var(--ccm-blue-700); white-space: nowrap; }
.ccm-progress__bar { height: 8px; background: rgba(11, 31, 58, 0.09); border-radius: 999px; overflow: hidden; }
.ccm-progress__bar > span { display: block; height: 100%; background: var(--ccm-blue-700); border-radius: 999px; transition: width 0.4s ease; }
.ccm-reservation .ccm-progress { margin-top: 0.9rem; }
.ccm-reservation .ccm-progress__label,
.ccm-reservation .ccm-progress__bar { max-width: none; }
.ccm-reservation .ccm-countdown { margin-top: 0.9rem; }
.ccm-reservation .ccm-countdown__tiles { gap: 8px; }
.ccm-reservation .ccm-countdown__tiles { max-width: none; }
.ccm-reservation .ccm-countdown__unit { padding: 10px 4px 8px; background: #f4f7fb; box-shadow: none; }
.ccm-reservation .ccm-countdown__unit b { font-size: 1.6rem; }
.ccm-pill.is-closed .ccm-pulse,
.ccm-pill.is-full .ccm-pulse { animation: none; }
.ccm-pulse {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	animation: ccm-pulse 2s ease-out infinite;
}
@keyframes ccm-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
	75%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.ccm-hero-figure { position: relative; margin: 0; }
.ccm-hero-art { position: relative; }
.ccm-hero-art img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply; /* drops the render's white background onto the grid */
	animation: ccm-roll-in 1.5s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
@keyframes ccm-roll-in {
	from { opacity: 0; transform: translateX(56px); }
	to   { opacity: 1; transform: none; }
}
.ccm-hero-figure figcaption { margin-top: 56px; }

/* The poster brings its own sky, so it sits on the grid as a framed print. */
.ccm-hero-poster { margin: 0; }
.ccm-hero-poster img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 0 0 1px rgba(11, 31, 58, 0.08), 0 22px 44px -22px rgba(11, 31, 58, 0.55);
	animation: ccm-roll-in 1.5s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.ccm-hero-poster figcaption { margin-top: 14px; font-size: 0.78rem; color: var(--ccm-muted); }

.ccm-callout {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 0;
	height: 0;
	animation: ccm-fade-in 0.6s ease 1.2s both;
}
.ccm-callout::before {
	content: "";
	position: absolute;
	left: -5px;
	top: -5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ccm-blue);
	box-shadow: 0 0 0 4px rgba(47, 123, 238, 0.16);
}
.ccm-callout::after {
	content: "";
	position: absolute;
	left: -0.5px;
	width: 1px;
	height: 22px;
	background: var(--ccm-blue);
	opacity: 0.6;
}
.ccm-callout.up::after   { bottom: 7px; }
.ccm-callout.down::after { top: 7px; }
.ccm-callout > span {
	position: absolute;
	left: 0;
	transform: translateX(-50%);
	padding: 2px 6px;
	background: var(--ccm-paper);
	color: var(--ccm-blue-700);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ccm-callout.up > span   { bottom: 29px; }
.ccm-callout.down > span { top: 29px; }
.ccm-callout.start > span { transform: none; left: -10px; }
@keyframes ccm-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------------
   Consist drawing
   ------------------------------------------------------------------------ */

.ccm-consist-scroll {
	margin-top: 52px;
	padding-bottom: 14px;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(156, 194, 255, 0.35) transparent;
}
.ccm-consist { min-width: 1100px; }
@media (min-width: 1240px) {
	/* Let the train run past the text column so it reads larger. */
	.ccm-consist-scroll {
		--w: min(1376px, calc(100vw - 72px));
		width: var(--w);
		max-width: none !important;
		margin-left: calc((100% - var(--w)) / 2) !important;
	}
}
.ccm-consist-svg { display: block; width: 100%; height: auto; color: var(--ccm-bp); }
/* Single-class selectors: shapes cloned by <use> live in a shadow tree, so
   descendant selectors would never reach them. */
.cb {
	fill: var(--fill, rgba(47, 123, 238, 0.16));
	stroke: var(--ccm-bp, #9cc2ff);
	stroke-width: 1.3;
	stroke-linejoin: round;
	transition: fill 0.2s;
}
.cd { fill: none; stroke: var(--ccm-bp, #9cc2ff); stroke-width: 0.9; opacity: 0.5; }
.cw { fill: rgba(156, 194, 255, 0.42); }
.ccm-consist-svg .g { fill: rgba(156, 194, 255, 0.22); }
.ccm-consist-svg .wh { fill: var(--ccm-navy); stroke: var(--ccm-bp); stroke-width: 1.2; }
.ccm-consist-svg .rail { stroke: var(--ccm-bp); stroke-width: 1.2; opacity: 0.8; }
.ccm-consist-svg .ties { fill: url(#ccm-ties); opacity: 0.35; }
.ccm-consist-svg .car:hover { --fill: rgba(47, 123, 238, 0.5); }

.ccm-consist-labels {
	display: grid;
	grid-template-columns: 112fr repeat(11, 96fr) 112fr;
	column-gap: calc(100% * 4 / 1328);
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	text-align: center;
}
.ccm-consist-labels li { position: relative; padding-top: 14px; }
.ccm-consist-labels li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 8px;
	background: rgba(156, 194, 255, 0.5);
}
.ccm-consist-labels .t { display: block; font-size: 0.72rem; font-weight: 600; line-height: 1.3; color: #d5e3fb; }
.ccm-consist-labels .n {
	display: block;
	margin-top: 4px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ccm-bp);
	font-variant-numeric: tabular-nums;
}
.ccm-scroll-hint { display: none; margin: 10px 0 0; font-size: 0.78rem; color: #8ea3c4; }
@media (max-width: 1140px) { .ccm-scroll-hint { display: block; } }

/* Stat strip */
.ccm-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 56px !important;
	background: rgba(156, 194, 255, 0.18);
	border: 1px solid rgba(156, 194, 255, 0.18);
	border-radius: 12px;
	overflow: hidden;
}
:root .ccm-stats > * { margin: 0; }
.ccm-stat { padding: 24px 26px; background: var(--ccm-navy); }
:root .ccm-stat > * { margin: 0; }
.ccm-stat__value { font-family: var(--wp--preset--font-family--display); font-size: 2.3rem; font-weight: 700; line-height: 1; color: #fff; }
:root .ccm-stat .ccm-stat__label {
	margin-top: 10px;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #9fb3d1;
}

/* ---------------------------------------------------------------------------
   The set
   ------------------------------------------------------------------------ */

:root .ccm-set-head { gap: 56px; align-items: flex-end; margin-bottom: 48px; }
.ccm-set-head .is-style-panel h3 {
	margin: 0 0 0.9rem;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ccm-ink-2);
}

.ccm-cars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
:root .ccm-cars > * { margin: 0; }

.ccm-car-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ccm-line);
	border-radius: 12px;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ccm-car-card:hover {
	transform: translateY(-3px);
	border-color: var(--ccm-blue-100);
	box-shadow: var(--wp--preset--shadow--card);
}
:root .ccm-car-card > * { margin: 0; }
.ccm-car-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: contain;
	background: #fff;
}
.ccm-car-card__body { padding: 16px 20px 20px; border-top: 1px solid #eef2f6; }
:root .ccm-car-card__body > * + * { margin-block-start: 0.45rem; }
.ccm-car-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:root .ccm-car-card__top > * { margin: 0; }
.ccm-car-card h3 { font-size: 1.05rem; }
.ccm-car-card__body p:not(.ccm-num) { font-size: 0.92rem; line-height: 1.55; color: var(--ccm-muted); }
.ccm-num {
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	background: var(--ccm-blue-50);
	color: var(--ccm-blue-700);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ccm-note { font-size: 0.82rem; color: var(--ccm-muted); }

/* ---------------------------------------------------------------------------
   Reservations: steps
   ------------------------------------------------------------------------ */

:root .ccm-resv { gap: 64px; }

.ccm-steps { counter-reset: ccm-step; }
:root .ccm-steps { margin-top: 32px; }
:root .ccm-steps > * + * { margin-block-start: 24px; }
.ccm-step { position: relative; padding-left: 62px; }
:root .ccm-step > * { margin: 0; }
:root .ccm-step > * + * { margin-block-start: 0.25rem; }
.ccm-step::before {
	counter-increment: ccm-step;
	content: counter(ccm-step);
	position: absolute;
	left: 0;
	top: -2px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid var(--ccm-blue);
	color: var(--ccm-blue-700);
	font-weight: 700;
}
.ccm-step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 19.5px;
	top: 44px;
	bottom: -22px;
	width: 1.5px;
	background: var(--ccm-blue-100);
}
.ccm-step h3 { font-size: 1.02rem; }
.ccm-step p { font-size: 0.95rem; color: var(--ccm-muted); }

/* ---------------------------------------------------------------------------
   Reservation card — the theme's preview card and the plugin's real form
   share this anatomy, so nothing moves when reservations open.
   `body` prefix: the plugin's stylesheet loads later and must lose.
   ------------------------------------------------------------------------ */

body .ccm-reservation {
	--ccm-brand: var(--ccm-blue);
	--ccm-brand-dark: var(--ccm-blue-700);
	--ccm-ink: var(--wp--preset--color--ink);
	--ccm-muted: var(--wp--preset--color--muted);
	--ccm-line: var(--wp--preset--color--line);
	--ccm-bg: #fff;
	--ccm-field: #fff;
	--ccm-ok-bg: #e9f6ec;
	--ccm-ok-ink: #14602a;
	--ccm-err-bg: #fdeceb;
	--ccm-err-ink: #8a1c13;
	--ccm-radius: 12px;

	max-width: 560px;
	margin: 0;
	padding: 30px;
	background: #fff;
	border: 1px solid var(--ccm-line);
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--raised);
	color: var(--ccm-ink);
	font-family: var(--wp--preset--font-family--sans);
}
.ccm-resv .ccm-reservation { position: sticky; top: calc(var(--ccm-header-h) + var(--ccm-sticky-top) + 28px); }

body .ccm-reservation__head { margin-bottom: 1.3rem; padding-bottom: 1.1rem; }
body .ccm-reservation__title {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.25;
}
body .ccm-reservation__status,
body .ccm-reservation__status.is-open { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--ccm-blue-700); }
body .ccm-reservation__status.is-full { color: var(--ccm-muted); }
body .ccm-reservation__sub { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 500; color: var(--ccm-muted); }
body .ccm-reservation__bar { margin-top: 0.9rem; background: #eef1f4; }
body .ccm-reservation__bar > span { background: var(--ccm-blue-700); }
body .ccm-reservation__bar.is-pending > span {
	width: 100%;
	background: repeating-linear-gradient(-45deg, rgba(47, 123, 238, 0.3) 0 8px, rgba(47, 123, 238, 0.12) 8px 16px);
	background-size: 22.63px 22.63px;
	animation: ccm-stripes 1.2s linear infinite;
}
@keyframes ccm-stripes { to { background-position: 22.63px 0; } }

body .ccm-reservation__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.5rem;
	margin: 0 0 1.3rem;
}
body .ccm-reservation__facts dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; }
body .ccm-reservation__facts dd { font-weight: 700; }
body .ccm-reservation__facts dd.is-tba { font-weight: 600; color: var(--ccm-muted); }
body .ccm-reservation__lede,
body .ccm-reservation__closed { margin: 0 0 1.3rem; font-size: 0.95rem; color: var(--ccm-muted); }
body .ccm-reservation__closed { background: var(--ccm-paper); }

body .ccm-form label { font-size: 0.9rem; }
body .ccm-form input[type="text"],
body .ccm-form input[type="email"],
body .ccm-form select,
body .ccm-form textarea {
	color: var(--ccm-ink);
	background: #fff;
	border-color: #cfd7e0;
}
body .ccm-form input:focus,
body .ccm-form select:focus,
body .ccm-form textarea:focus { border-color: var(--ccm-blue); }

body .ccm-form__submit {
	padding: 0.95rem 1.5rem;
	border-radius: 8px;
	background: var(--ccm-blue-700);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
}
body .ccm-form__submit:hover { background: var(--ccm-ink); }
body .ccm-reservation--preview .ccm-form__submit,
body .ccm-reservation--preview .ccm-form__submit:hover {
	background: var(--ccm-blue-700);
	opacity: 0.55;
	cursor: not-allowed;
}
body .ccm-form__fineprint { font-size: 0.8rem; }
body .ccm-form__fineprint a { color: var(--ccm-blue-700); }

/* "Email me when it opens": the card before opening, and the campaign page. */
body .ccm-remind { margin-top: 1.1rem; }
body .ccm-remind__label { display: block; margin: 0 0 6px; font-size: 0.9rem; font-weight: 700; color: var(--ccm-ink); }
body .ccm-remind__row { display: flex; gap: 8px; }
body .ccm-remind__row input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 0.7rem 0.85rem;
	font: inherit;
	font-size: 16px; /* Stops iOS zooming the page on focus. */
	color: var(--ccm-ink);
	background: #fff;
	border: 1px solid #cfd7e0;
	border-radius: 8px;
}
body .ccm-remind__row input[type="email"]:focus { outline: none; border-color: var(--ccm-blue); box-shadow: 0 0 0 3px rgba(47, 123, 238, 0.18); }
body .ccm-remind .ccm-remind__submit,
body .ccm-reservation--preview .ccm-remind__submit { flex: none; width: auto; padding: 0.7rem 1.25rem; opacity: 1; cursor: pointer; }
body .ccm-reservation--preview .ccm-remind__submit:hover { background: var(--ccm-ink); }
body .ccm-remind .ccm-help { margin: 8px 0 0; font-size: 0.8rem; color: var(--ccm-muted); }
body .ccm-remind .ccm-help a { color: var(--ccm-blue-700); }
body .ccm-remind__full { margin: 1rem 0 0; font-size: 0.9rem; color: var(--ccm-muted); }
body .ccm-reservation .ccm-notice + .ccm-remind { margin-top: 0.8rem; }
@media (max-width: 420px) {
	body .ccm-remind__row { flex-direction: column; }
	body .ccm-remind .ccm-remind__submit,
	body .ccm-reservation--preview .ccm-remind__submit { width: 100%; }
}
.ccm-countdown__remind { margin-left: 4px; font-weight: 700; color: var(--ccm-blue-700); white-space: nowrap; }

/* The plugin switches to dark colours on dark-mode devices; on this light
   site that would drop a dark card into a light page. Pin it light. */
@media (prefers-color-scheme: dark) {
	body .ccm-reservation__bar { background: #eef1f4; }
	body .ccm-reservation__closed { background: var(--ccm-paper); }
}

/* Single campaign page: content left, form card right. */
@media (min-width: 981px) {
	.ccm-campaign-content {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 420px;
		column-gap: 64px;
		align-items: start;
	}
	/* Core's constrained layout centres children with auto margins, which in
	   a grid shrink-wraps them; let grid cells do the sizing instead. */
	:root .ccm-campaign-content > * { grid-column: 1; margin-left: 0 !important; margin-right: 0 !important; }
	:root .ccm-campaign-content > .ccm-reservation {
		grid-column: 2;
		grid-row: 1 / span 60;
		margin: 0 !important;
		position: sticky;
		top: calc(var(--ccm-header-h) + var(--ccm-sticky-top) + 28px);
	}
}
:root .ccm-campaign-content > .ccm-reservation { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   Labelled renders ([ccm_figure])
   ------------------------------------------------------------------------ */

.ccm-figure { margin: 0; }
.ccm-figure__art { position: relative; container-type: inline-size; }
.ccm-figure__art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.ccm-figure figcaption { margin-top: 0.75rem; font-size: 0.8rem; color: var(--ccm-muted); }
.is-style-blueprint .ccm-figure figcaption,
.ccm-band-paper .ccm-figure figcaption { text-align: center; }

/* A dot on the part, a short leader, then the label. */
.ccm-tag {
	position: absolute;
	left: var(--x);
	top: var(--y);
	display: flex;
	flex-direction: column;
	padding-left: 44px;
	transform: translateY(-50%);
	white-space: nowrap;
	pointer-events: none;
}
.ccm-tag::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ccm-blue);
	box-shadow: 0 0 0 4px rgba(47, 123, 238, 0.16);
}
.ccm-tag::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 50%;
	width: 30px;
	height: 1px;
	background: var(--ccm-blue);
	opacity: 0.6;
}
.ccm-tag b {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ccm-blue-700);
}
.ccm-tag small { font-size: 0.74rem; color: var(--ccm-muted); }
/* Light backing keeps labels legible where they cross a part. */
.ccm-tag b, .ccm-tag small { width: fit-content; padding: 0 4px; margin-left: -4px; background: rgba(255, 255, 255, 0.82); border-radius: 3px; }
@media (max-width: 600px) {
	.ccm-tag { padding-left: 26px; }
	.ccm-tag::after { width: 14px; }
	.ccm-tag b { font-size: 0.58rem; letter-spacing: 0.1em; }
	.ccm-tag small { display: none; }
}
/* Same compact labels when the figure is narrow on a wide screen (two-up cards). */
@container (max-width: 480px) {
	.ccm-tag { padding-left: 26px; }
	.ccm-tag::after { width: 14px; }
	.ccm-tag b { font-size: 0.58rem; letter-spacing: 0.1em; }
	.ccm-tag small { display: none; }
}

/* Interior and project cards reuse the car-card frame. */
.ccm-car-card.is-interior .wp-block-image img { aspect-ratio: 1000 / 520; }
.ccm-next-card .wp-block-image img { aspect-ratio: 16 / 10; object-fit: contain; padding: 12px 18px 0; }
.ccm-next-card .ccm-car-card__body { padding: 20px 24px 24px; }
.ccm-next-card h3 { font-size: 1.25rem; }
.ccm-next-card .ccm-car-card__body .is-style-eyebrow { margin: 0; color: var(--ccm-blue-700); }
:root .ccm-next-card .wp-block-buttons { margin-block-start: 1.1rem; }
.ccm-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
:root .ccm-grid-2 > * { margin: 0; }
@media (max-width: 700px) { .ccm-grid-2 { grid-template-columns: 1fr; } }

:root .ccm-build { gap: 56px; align-items: center; }
.ccm-build .is-style-checks li b { color: var(--ccm-ink); }

/* Wide figures inside text pages */
.ccm-prose > .alignwide { margin-block: 2.6rem; }
.ccm-prose .wp-block-image img { mix-blend-mode: multiply; }
.ccm-prose > .wp-block-image:not(.alignwide), .ccm-prose > .wp-block-group:has(> .ccm-figure) { margin-block: 2rem; }
.ccm-prose .wp-block-image figcaption { font-size: 0.8rem; color: var(--ccm-muted); }

/* ---------------------------------------------------------------------------
   About teaser / mosaic
   ------------------------------------------------------------------------ */

:root .ccm-about { gap: 64px; }
:root .ccm-about .wp-block-column > p:not([class]) { color: var(--ccm-muted); font-size: 1.02rem; }

.ccm-mosaic {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	aspect-ratio: 16 / 10;
}
:root .ccm-mosaic > * { min-height: 0; margin: 0; }
.ccm-mosaic > :first-child { grid-row: 1 / span 2; }
.ccm-mosaic .wp-block-image { height: 100%; }
.ccm-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* ---------------------------------------------------------------------------
   Help band, page title band, prose
   ------------------------------------------------------------------------ */

.ccm-help-band { padding-block: var(--wp--preset--spacing--50); }
:root .ccm-help-band .wp-block-columns { gap: 32px; align-items: center; }
.ccm-help-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
:root .ccm-help-band .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { :root .ccm-help-band .wp-block-buttons { justify-content: flex-start; } }

.ccm-page-hero { padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--ccm-line); }
.ccm-page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.08; }
.ccm-page-hero h1::after {
	content: "";
	display: block;
	width: 72px;
	height: 3px;
	margin-top: 1.1rem;
	background: var(--ccm-red);
}

.ccm-prose { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.ccm-prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-block-start: 2.6rem; }
.ccm-prose h3 { margin-block-start: 1.8rem; }
.ccm-prose :where(h2, h3) + * { margin-block-start: 0.75rem; }
.ccm-prose > .is-style-lede:first-child { font-size: 1.15rem; }

/* FAQ */
.ccm-faq-group + .ccm-faq-group { margin-block-start: 3rem !important; }
:root .ccm-faq-group .wp-block-details { margin-block-start: 0; }
:root .ccm-faq-group > h2 + .wp-block-details { margin-block-start: 1rem; }
:root .ccm-prose > .ccm-faq-group:first-of-type { margin-block-start: 2.5rem; }
.ccm-faq-group .wp-block-details:first-of-type { border-top: 1px solid var(--ccm-line); }
.wp-block-details summary {
	position: relative;
	padding-right: 2.25rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 0.35rem;
	top: 0.35em;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid var(--ccm-blue-700);
	border-bottom: 2px solid var(--ccm-blue-700);
	transform: rotate(45deg);
	transition: transform 0.2s;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); top: 0.6em; }
.wp-block-details > :not(summary) { color: var(--ccm-muted); }
:root .wp-block-details > summary + * { margin-block-start: 0.6rem; }

/* Feature panels and the requirements box (ATC Cab page) */
.ccm-prose .is-style-panel > :first-child { margin-block-start: 0; }
.ccm-features .is-style-panel { padding: 22px 24px 24px; }
.ccm-features h3 { font-size: 1.05rem; }
:root .ccm-features h3 + p { margin-block-start: 0.5rem; }
.ccm-features p { font-size: 0.95rem; color: var(--ccm-muted); }
.ccm-needs h3 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ccm-ink-2); }
:root .ccm-needs h3 + .is-style-checks { margin-block-start: 0.8rem; }
:root .ccm-needs .is-style-checks + h3 { margin-block-start: 1.6rem; }

/* Social links ([ccm_social]) */
.ccm-social { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.ccm-social a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; }
.ccm-social a:hover span { text-decoration: underline; }
.ccm-social svg { flex: none; width: 20px; height: 20px; fill: currentColor; }
:root .ccm-prose > .ccm-social { margin-block-start: 0.9rem; }
.ccm-footer .ccm-social { flex-direction: column; gap: 0.45rem; }
.ccm-footer .ccm-social a { font-weight: 500; }
.ccm-footer .ccm-social svg { width: 16px; height: 16px; opacity: 0.9; }
:root .ccm-footer .ccm-footer__follow { margin-block-start: 1.6rem; }
:root .ccm-footer .ccm-footer__follow + * { margin-block-start: 0.9rem; }

/* Two versions ([ccm_svi_versions]): home page and the campaign page */
:root .ccm-versions { margin-block-start: 2.5rem; }
.ccm-versions__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ccm-version-card { display: flex; flex-direction: column; padding: 26px 28px 28px; background: #fff; border: 1px solid var(--ccm-line); border-radius: 12px; }
.ccm-version-card.is-lighted { border-color: rgba(47, 123, 238, 0.45); box-shadow: 0 18px 40px -26px rgba(47, 123, 238, 0.55); }
:root .ccm-version-card > * { margin: 0; }
.ccm-version-card__name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ccm-blue-700); }
:root .ccm-version-card__price { margin-top: 0.6rem; }
.ccm-version-card__price b { font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--ccm-ink); }
.ccm-version-card__price span { margin-left: 4px; font-size: 0.85rem; color: var(--ccm-muted); }
:root .ccm-version-card__lede { margin-top: 0.6rem; color: var(--ccm-muted); font-size: 0.97rem; }
.ccm-version-card__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ccm-muted); }
:root .ccm-version-card .ccm-version-card__label { margin-top: 1.3rem; }
:root .ccm-version-card__box { margin-top: 0.7rem; }
:root .ccm-version-card__note { margin-top: auto; padding-top: 1rem; font-size: 0.85rem; color: var(--ccm-muted); }
.ccm-versions__extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; padding: 22px 28px; background: var(--ccm-paper); border-radius: 12px; }
.ccm-versions__extras ul { margin: 0.6rem 0 0; padding-left: 1.1rem; font-size: 0.93rem; }
.ccm-versions__extras li + li { margin-top: 0.3rem; }
:root .ccm-versions__foot { margin-top: 1.4rem; font-size: 0.97rem; }
.ccm-versions__foot a { font-weight: 700; color: var(--ccm-blue-700); }
:root .ccm-versions .ccm-note { margin-top: 0.6rem; }
@media (max-width: 781px) {
	.ccm-versions__grid,
	.ccm-versions__extras { grid-template-columns: 1fr; }
}

/* "Label: value" lists on the campaign page (Specifications, Availability) */
.ccm-specs { padding: 0; list-style: none; border-top: 1px solid var(--ccm-line); }
.ccm-specs li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); column-gap: 14px; padding: 0.6rem 0; border-bottom: 1px solid var(--ccm-line); font-size: 0.95rem; }
.ccm-specs li strong { color: var(--ccm-ink); }
@media (max-width: 600px) {
	.ccm-specs li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}

/* The version choice on the reservation form */
body .ccm-form__versions { margin: 0 0 1.1rem; padding: 0; border: 0; }
body .ccm-form__versions legend { margin-bottom: 6px; padding: 0; font-size: 0.9rem; font-weight: 600; }
body .ccm-version { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 12px 14px; border: 1px solid #cfd7e0; border-radius: 8px; background: #fff; cursor: pointer; }
body .ccm-version:has(input:checked) { border-color: var(--ccm-blue); box-shadow: 0 0 0 3px rgba(47, 123, 238, 0.18); }
body .ccm-version input { margin: 0; accent-color: var(--ccm-blue-700); }
body .ccm-version__name { font-weight: 700; color: var(--ccm-ink); }
body .ccm-version__price { margin-left: auto; font-weight: 700; color: var(--ccm-blue-700); }

/* Series 8 paint stencils */
.ccm-palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 28px; padding: 0; list-style: none; }
.ccm-palette li { position: relative; min-height: 38px; padding-left: 50px; font-size: 0.92rem; line-height: 1.45; color: var(--ccm-muted); }
.ccm-palette li strong { display: block; color: var(--ccm-ink); }
.ccm-palette small { display: block; font-size: 0.76rem; }
.ccm-swatch { position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border: 1px solid rgba(11, 31, 58, 0.16); border-radius: 8px; }
.ccm-paint-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; align-items: end; padding: 28px 30px; background: var(--ccm-paper); border-radius: 12px; }
:root .ccm-paint-views > figure { margin: 0; }
.ccm-paint-views img { width: 100%; height: auto; mix-blend-mode: multiply; }
:root .ccm-paint-views figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--ccm-muted); text-align: left; }
.ccm-paint-views figcaption strong { color: var(--ccm-ink); }
.ccm-stencil-sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
:root .ccm-stencil-sheets > figure { margin: 0; }
.ccm-stencil-sheets img { width: 100%; height: auto; border: 1px solid var(--ccm-line); border-radius: 6px; box-shadow: 0 12px 26px -20px rgba(11, 31, 58, 0.5); }
@media (max-width: 781px) {
	.ccm-paint-views { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 20px 18px; }
	.ccm-stencil-sheets { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }
}

/* Lights and power section */
:root .ccm-electrics .ccm-grid-2 { margin-top: 2.5rem; align-items: start; }
.ccm-electric-card { padding: 22px 24px 26px; background: #fff; border: 1px solid var(--ccm-line); border-radius: 12px; }
:root .ccm-electric-card > * + * { margin-block-start: 1rem; }
.ccm-electric-card h3 { font-size: 1.25rem; }
:root .ccm-electric-card h3 + p { margin-block-start: 0.5rem; }
.ccm-electric-card p:not(.ccm-note) { color: var(--ccm-muted); font-size: 0.97rem; }
.ccm-electric-card .ccm-figure--small { max-width: 78%; margin-inline: auto; }
/* Full-width card below the grid (the Bistro map), with text kept to a readable measure. */
:root .ccm-electrics .ccm-electric-card--wide { margin-top: 20px; }
:root .ccm-electric-card--wide > :not(.ccm-figure) { max-width: 760px; }
.ccm-figure--small figcaption { text-align: center; }

/* Contact card */
.ccm-contact-card { padding: 28px 30px; }
.ccm-contact-card .ccm-email { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; word-break: break-word; }

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

.ccm-footer {
	padding-block: 56px 44px;
	background: var(--ccm-navy);
	color: #9fb3d1;
	font-size: 0.88rem;
}
.ccm-footer a { color: #d5e3fb; text-decoration: none; }
.ccm-footer a:hover { color: #fff; text-decoration: underline; }
:root .ccm-footer .wp-block-columns { gap: 40px; }
.ccm-wordmark {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.4rem;
	font-style: italic;
	line-height: 1.1;
	color: #fff;
}
.ccm-wordmark strong { font-style: normal; font-weight: 700; color: var(--ccm-blue); }
:root .ccm-wordmark + p { margin-block-start: 0.4rem; }
.ccm-footer h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ccm-bp);
}
.ccm-footer h2 + .ccm-email { display: inline-block; margin-top: 0.9rem; }
.ccm-footer-links { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
:root .ccm-footer h2 + * { margin-block-start: 0.9rem; }
.ccm-footer__base {
	margin-top: 40px !important;
	padding-top: 22px;
	border-top: 1px solid rgba(156, 194, 255, 0.16);
	font-size: 0.8rem;
}
:root .ccm-footer__base > * { margin: 0; }
:root .ccm-footer__marks { margin-top: 14px; font-size: 0.74rem; opacity: 0.8; }

/* ---------------------------------------------------------------------------
   404 / posts
   ------------------------------------------------------------------------ */

.ccm-post-list .wp-block-post { padding-block: 1.6rem; border-bottom: 1px solid var(--ccm-line); }
.ccm-post-list .wp-block-post-title { font-family: var(--wp--preset--font-family--sans); font-size: 1.3rem; }
.ccm-post-list .wp-block-post-title a { color: var(--ccm-ink); text-decoration: none; }
.ccm-post-list .wp-block-post-title a:hover { color: var(--ccm-blue-700); }

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */

@media (max-width: 980px) {
	:root .ccm-hero .wp-block-columns { gap: 72px; }
	.ccm-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ccm-resv .ccm-reservation { position: static; }
}
@media (max-width: 781px) {
	/* Core stacks columns here; give stacked sections breathing room. */
	:root .ccm-set-head,
	:root .ccm-resv,
	:root .ccm-about { gap: 36px; }
	/* Stacked, the poster leads, so phones open on it as wide screens do. */
	.ccm-hero .wp-block-column:has(.ccm-hero-poster) { order: -1; }
	:root .ccm-hero .wp-block-columns { gap: 36px; }
}
@media (max-width: 600px) {
	.ccm-cars,
	.ccm-stats { grid-template-columns: 1fr; }
	.ccm-callout > span { font-size: 0.58rem; letter-spacing: 0.12em; }
	.ccm-hero-figure figcaption { margin-top: 48px; font-size: 0.62rem; }
	.ccm-mosaic { grid-template-columns: 1fr; grid-template-rows: none; aspect-ratio: auto; }
	.ccm-mosaic > :first-child { grid-row: auto; }
	.ccm-mosaic img { height: auto; aspect-ratio: 16 / 10; }
	.ccm-pill { font-size: 0.74rem; letter-spacing: 0.12em; }
	.ccm-countdown__tiles { gap: 8px; }
	.ccm-countdown__unit b { font-size: 1.7rem; }
	.ccm-countdown__unit small { font-size: 0.56rem; letter-spacing: 0.08em; }
	body .ccm-reservation { padding: 22px; }
	body .ccm-reservation__facts { grid-template-columns: 1fr 1fr; }
}

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