/*
 * GPXTiming theme — extra styles (front end + editor).
 * Tokens (colours, type, spacing) come from theme.json; use the CSS variables
 * --wp--preset--color--*, --wp--preset--font-size--*, --wp--custom--gutter here.
 * Class prefix: gpxt-
 */

:root {
	--gpxt-radius-pill: 999px;
	--gpxt-hairline: 1px solid var(--wp--preset--color--crimson);
	/* Hero overlay is strongest where the text sits (bottom) so white text keeps >= 4.5:1 on any photo */
	--gpxt-hero-overlay: linear-gradient(0deg, rgba(10, 10, 10, .82) 0%, rgba(10, 10, 10, .66) 45%, rgba(10, 10, 10, .30) 100%);
}

html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; } /* header is not sticky, so focused items are never hidden behind it (WCAG 2.4.11) */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }

/* Lead paragraph: light, large, slightly tight — the site's voice */
.gpxt-lead,
.is-style-lead {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: -0.03em;
}

.gpxt-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--crimson);
	margin-bottom: 0.5rem;
}

/* No default block-gap seams between full-bleed sections, header/main/footer */
.wp-site-blocks > * + * { margin-block-start: 0; }
.gpxt-main > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.gpxt-main--landing > *,
.gpxt-main--landing .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }

/* Layout helpers */
.gpxt-narrow { max-width: 760px; margin-left: 0; margin-right: auto; }
.gpxt-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.gpxt-section--tight { padding-top: var(--wp--preset--spacing--40); padding-bottom: var(--wp--preset--spacing--40); }
.gpxt-section > .wp-block-heading { margin-top: 0; }
.gpxt-section h3.gpxt-narrow { margin-top: var(--wp--preset--spacing--50); margin-bottom: var(--wp--preset--spacing--30); }
.gpxt-post-item { padding: 1.25rem 0; border-bottom: 1px solid #e4e7eb; }

/* ------------------------------------------------------------------ */
/* Announcement bar                                                    */
/* ------------------------------------------------------------------ */
.gpxt-announce {
	position: relative;
	background: var(--wp--preset--color--charcoal);
	color: #fff;
	font-size: 0.8125rem;
	text-align: center;
	padding: 0.6rem 3.25rem;
	margin: 0;
	min-height: 44px; display: grid; align-content: center;
}
.gpxt-announce[hidden] { display: none; }
.gpxt-announce p { margin: 0; font-size: inherit; }
.gpxt-announce a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.gpxt-announce__close {
	position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
	min-width: 44px; min-height: 44px; display: inline-grid; place-items: center;
	background: none; border: 0; color: #fff; cursor: pointer;
	font-size: 1.5rem; line-height: 1; padding: 0;
}
.gpxt-announce__close:hover { background: rgba(255, 255, 255, .15); border-radius: 50%; }
.gpxt-announce > * + * { margin-block-start: 0; }
.gpxt-announce > .gpxt-announce__close { margin: 0; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.gpxt-header {
	position: relative; z-index: 50;
	background: #fff;
	padding-top: 0.9rem; padding-bottom: 0.9rem;
	padding-left: var(--wp--custom--gutter); padding-right: var(--wp--custom--gutter);
	border-bottom: 1px solid transparent;
}
.gpxt-logo { display: inline-flex; align-items: center; line-height: 0; }
.gpxt-logo img { height: 58px; width: auto; display: block; }
.gpxt-header .wp-block-navigation { font-weight: 400; }
.gpxt-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--charcoal); }
.gpxt-header .wp-block-navigation a:hover,
.gpxt-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--crimson); }
.gpxt-header .wp-block-navigation__responsive-container-open svg,
.gpxt-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
@media (max-width: 781px) { .gpxt-logo img { height: 46px; } }

/* ------------------------------------------------------------------ */
/* Buttons (pill shapes; outline variant)                              */
/* ------------------------------------------------------------------ */
.wp-block-button__link,
.wp-element-button { border-radius: var(--gpxt-radius-pill); transition: background-color .15s ease, color .15s ease, border-color .15s ease; text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid currentColor;
	padding: 0.8rem 2.4rem;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink); }
.gpxt-on-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.gpxt-on-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.wp-block-button.gpxt-btn-white > .wp-block-button__link { background: #fff; color: var(--wp--preset--color--crimson); }
.wp-block-button.gpxt-btn-white > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }
.wp-block-button.gpxt-btn-disabled > .wp-block-button__link { opacity: .55; pointer-events: none; }

/* Coloured text blocks: headings should follow the block's colour */
.has-text-color :is(h1, h2, h3, h4, h5, h6),
.gpxt-on-dark :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* ------------------------------------------------------------------ */
/* Hero (full-bleed photo; add a <video> via Custom HTML for a loop)   */
/* ------------------------------------------------------------------ */
.gpxt-hero {
	position: relative;
	display: grid; align-content: end;
	min-height: clamp(520px, 88vh, 860px);
	color: #fff;
	background-color: var(--wp--preset--color--slate-dark);
	background-image: url("../images/hero-gravel-hills.jpg");
	background-size: cover; background-position: center;
	padding: clamp(3rem, 8vw, 6rem) var(--wp--custom--gutter);
	margin-top: 0; margin-bottom: 0;
}
.gpxt-hero__inner { max-width: 760px; }
.gpxt-hero::before { content: ""; position: absolute; inset: 0; background: var(--gpxt-hero-overlay); z-index: 1; pointer-events: none; }
.gpxt-hero h1 { color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); font-size: var(--wp--preset--font-size--huge); margin: 0 0 1rem; }
.gpxt-hero .gpxt-lead { color: #fff; margin: 0 0 1.75rem; }
.gpxt-hero .gpxt-eyebrow { color: #fff; opacity: .9; }
.gpxt-hero > * { position: relative; z-index: 2; }
.gpxt-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gpxt-hero > .gpxt-hero__toggle {
	position: absolute; right: var(--wp--custom--gutter); bottom: 1.25rem; z-index: 3;
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	display: inline-grid; place-items: center; cursor: pointer;
	background: rgba(10, 10, 10, .7); color: #fff; border: 2px solid #fff; font-size: 0.85rem; line-height: 1;
}
.gpxt-hero > .gpxt-hero__toggle:hover { background: #fff; color: #111; }
.gpxt-hero .gpxt-hero__toggle .is-play { display: none; }
.gpxt-hero .gpxt-hero__toggle[aria-pressed="true"] .is-play { display: inline; }
.gpxt-hero .gpxt-hero__toggle[aria-pressed="true"] .is-pause { display: none; }

/* ------------------------------------------------------------------ */
/* Photo bands (full-bleed pacing images between sections)             */
/* ------------------------------------------------------------------ */
.gpxt-band {
	min-height: clamp(260px, 42vw, 560px);
	background-size: cover; background-position: center; background-color: var(--wp--preset--color--slate);
	margin: 0;
}
.gpxt-band--forest  { background-image: url("../images/forest-pack.jpg"); }
.gpxt-band--ridge   { background-image: url("../images/ridge-climb.jpg"); }
.gpxt-band--mass    { background-image: url("../images/mass-start.jpg"); }
.gpxt-band--aerial  { background-image: url("../images/aerial-road.jpg"); }
.gpxt-band--gps     { background-image: url("../images/gps-handlebar.jpg"); }
.gpxt-band--finish  { background-image: url("../images/finish-phone.jpg"); }
.gpxt-band--riders  { background-image: url("../images/riders-portrait.jpg"); }

/* ------------------------------------------------------------------ */
/* "How it works" step cards                                           */
/* ------------------------------------------------------------------ */
.gpxt-steps { gap: 1rem; }
.gpxt-step {
	border: 1px solid #d5d9de; border-radius: 14px; padding: 1.4rem 1.25rem 1.5rem;
	height: 100%; background: #fff;
}
.gpxt-step__icon { width: 44px; height: 44px; color: var(--wp--preset--color--crimson); margin-bottom: 0.9rem; }
.gpxt-step__icon svg { width: 100%; height: 100%; display: block; }
.gpxt-step :is(h3, h4) { font-size: 1.25rem; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.gpxt-step p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate-dark); line-height: 1.5; }
.gpxt-step__num { font-size: 0.8rem; font-weight: 700; letter-spacing: .1em; color: var(--wp--preset--color--slate); margin-bottom: .2rem; }

/* ------------------------------------------------------------------ */
/* Three colour cards                                                  */
/* ------------------------------------------------------------------ */
.gpxt-cards { gap: 0 !important; margin: 0; }
.gpxt-card { padding: clamp(1.75rem, 3.5vw, 3rem); min-height: 280px; display: flex; flex-direction: column; justify-content: flex-start; }
.gpxt-card :is(h2, h3) { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 0.75rem; }
.gpxt-card p { margin: 0 0 1.5rem; font-size: var(--wp--preset--font-size--medium); }
.gpxt-card .wp-block-buttons { margin-top: auto; }
.gpxt-card.has-white-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.gpxt-card.has-white-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }

/* ------------------------------------------------------------------ */
/* FAQ / "More Info" accordion (core Details block)                    */
/* ------------------------------------------------------------------ */
.wp-block-details.gpxt-faq-item, .gpxt-faq .wp-block-details { border-bottom: var(--gpxt-hairline); margin: 0; padding: 0; }
.gpxt-faq .wp-block-details:first-of-type { border-top: var(--gpxt-hairline); }
.gpxt-faq .wp-block-details > summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1.1rem 0;
	font-size: var(--wp--preset--font-size--x-large); font-weight: 600; letter-spacing: -0.03em; line-height: 1.25;
	color: var(--wp--preset--color--crimson);
}
.gpxt-faq .wp-block-details > summary::-webkit-details-marker { display: none; }
.gpxt-faq .wp-block-details > summary::after {
	content: "+"; content: "+" / ""; flex: none;
	display: inline-grid; place-items: center;
	width: 1.6rem; height: 1.6rem; border: 1.5px solid currentColor; border-radius: 50%;
	font-size: 1.15rem; font-weight: 400; line-height: 1;
}
.gpxt-faq .wp-block-details[open] > summary::after { content: "\2212"; content: "\2212" / ""; }
.gpxt-faq .wp-block-details > :not(summary) { padding-bottom: 0.4rem; max-width: 760px; color: var(--wp--preset--color--charcoal); font-weight: 300; font-size: var(--wp--preset--font-size--medium); }
.gpxt-faq .wp-block-details > summary:focus-visible { outline: 3px solid var(--wp--preset--color--slate); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Pull quote                                                          */
/* ------------------------------------------------------------------ */
.gpxt-quote { border: 0; padding: 0; margin: 0; max-width: 980px; }
.gpxt-quote p { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 300; line-height: 1.35; letter-spacing: -0.03em; color: var(--wp--preset--color--slate-dark); }
.gpxt-quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: var(--wp--preset--font-size--small); font-weight: 500; color: var(--wp--preset--color--slate); }

/* ------------------------------------------------------------------ */
/* Stats row                                                           */
/* ------------------------------------------------------------------ */
.gpxt-stat { text-align: center; }
.gpxt-stat__value { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--wp--preset--color--crimson); margin: 0; }
.gpxt-stat__label { margin: 0.25rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate-dark); }

/* ------------------------------------------------------------------ */
/* Title block for interior / event-style pages                        */
/* ------------------------------------------------------------------ */
.gpxt-titleblock { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 1rem; }
.gpxt-titleblock h1 { margin: 0 0 0.5rem; }
.gpxt-titleblock__meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; font-weight: 600; color: var(--wp--preset--color--slate-dark); font-size: 1.25rem; letter-spacing: -0.02em; }

/* ------------------------------------------------------------------ */
/* Interior page templates                                             */
/* ------------------------------------------------------------------ */
.gpxt-main { padding-top: 0; padding-bottom: clamp(3rem, 6vw, 5rem); }
.gpxt-main > .wp-block-post-title { margin-top: clamp(2rem, 5vw, 4rem); }
.gpxt-main--landing { padding-top: 0; padding-bottom: 0; }
.gpxt-main--wide { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* Plugin pages (registration forms, leaderboards, director portal) get breathing room
   and are never squeezed into the narrow reading column. */
.gpxt-main--wide .entry-content,
.gpxt-main--wide .wp-block-post-content { max-width: var(--wp--style--global--wide-size, 1240px); margin-left: auto; margin-right: auto; }
.gpxt-main--wide .gpx-leaderboard, .gpxt-main--wide .gpx-portal, .gpxt-main--wide .gpx-form { max-width: 100%; }
.gpxt-main--wide table { width: 100%; }

/* ------------------------------------------------------------------ */
/* CTA band                                                            */
/* ------------------------------------------------------------------ */
.gpxt-cta { text-align: center; }
.gpxt-cta h2 { color: #fff; margin-bottom: 0.75rem; }
.gpxt-cta p { color: #fff; font-weight: 300; font-size: var(--wp--preset--font-size--large); margin: 0 auto 1.5rem; max-width: 640px; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.gpxt-footer { background: var(--wp--preset--color--ink); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) var(--wp--custom--gutter) 2rem; margin: 0; }
.gpxt-footer a { color: #fff; text-decoration: none; }
.gpxt-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gpxt-footer :is(h2, h3, h4, p) { color: #fff; }
.gpxt-footer p.gpxt-footer__heading { color: #aab3bd; }
.gpxt-footer__heading { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #aab3bd; margin: 0 0 0.9rem; }
.gpxt-wordmark { font-weight: 800; letter-spacing: -0.02em; font-size: 1.6rem; line-height: 1; margin: 0 0 0.75rem; }
.gpxt-wordmark span:first-child { color: #9aa5b1; }
.gpxt-wordmark span:last-child { color: #e0224f; }
.gpxt-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.gpxt-footer__links a { display: inline-block; padding: 0.3rem 0; min-height: 24px; }
.gpxt-footer__strava { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
/* Strava's guidelines: the logo sits apart from, and never more prominent than, our own name */
.gpxt-footer__strava img { height: 18px; width: auto; max-width: 100%; display: block; }
.gpxt-footer__strava p { margin: 0; font-size: 0.8125rem; color: #aab3bd; max-width: 46ch; }
.gpxt-footer__strava + .gpxt-footer__small { margin-top: 1.25rem; }
.gpxt-footer__small { font-size: 0.8125rem; color: #aab3bd; border-top: 1px solid #2a2f35; padding-top: 1.25rem; margin-top: 2rem; }

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 781px) {
	.gpxt-card { min-height: 0; }
	.gpxt-hero { min-height: 78vh; }
	.gpxt-hero > .gpxt-hero__toggle { bottom: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gpxt-hero > video, .gpxt-hero > .gpxt-hero__toggle { display: none; }
}


/* ------------------------------------------------------------------ */
/* Accessibility (WCAG 2.2 AA)                                         */
/* ------------------------------------------------------------------ */
/* Two-tone focus ring: visible against light AND dark backgrounds (2.4.7, 1.4.11) */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid #111;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
	border-radius: 3px;
}
:where(.wp-block-button__link, .wp-element-button):focus-visible { border-radius: var(--gpxt-radius-pill); }
:where(.gpxt-hero, .gpxt-footer, .gpxt-announce, .has-crimson-background-color, .has-slate-background-color) :focus-visible {
	outline-color: #fff;
	box-shadow: 0 0 0 5px #111;
}
/* Links inside running text stay underlined (not distinguished by colour alone, 1.4.1) */
:where(.wp-block-post-content, .gpxt-section, .gpxt-titleblock) p a:not(.wp-element-button) { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
/* Comfortable pointer targets (2.5.8) */
.wp-block-navigation-item__content, .wp-block-navigation a { padding-block: 0.4rem; min-height: 24px; display: inline-block; }
.wp-block-button__link, .wp-element-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.gpxt-faq .wp-block-details > summary { min-height: 44px; }
/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* Windows High Contrast / forced colors: keep borders visible */
@media (forced-colors: active) { .gpxt-step, .gpxt-card, .wp-block-button__link { border: 1px solid CanvasText; } }


/* ------------------------------------------------------------------ */
/* Page components added for the content pages                         */
/* ------------------------------------------------------------------ */
/* "What happens to a ride" numbered steps */
.gpxt-how { max-width: 760px; padding: 1.5rem 0; border-top: 1px solid #d5d9de; }
.gpxt-how:last-of-type { border-bottom: 1px solid #d5d9de; }
.gpxt-how h3 { margin: 0 0 0.5rem; }
.gpxt-how p:last-child { margin-bottom: 0; }

/* Event card (Events & results) */
.gpxt-event { border: 1px solid #d5d9de; border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); max-width: 760px; margin: 0 0 1.5rem; }
.gpxt-event h3 { margin: 0 0 0.35rem; }
.gpxt-event > p:last-child { margin-bottom: 0; }

/* Contact form */
.gpxt-form { max-width: 640px; display: grid; gap: 0.25rem; }
.gpxt-form .gpxt-field { margin: 0 0 0.9rem; display: grid; gap: 0.35rem; }
.gpxt-form label { font-weight: 600; color: var(--wp--preset--color--ink); }
.gpxt-form .gpxt-req, .gpxt-form .gpxt-opt { font-weight: 400; color: var(--wp--preset--color--slate-dark); font-size: var(--wp--preset--font-size--small); }
.gpxt-form :is(input[type="text"], input[type="email"], select, textarea) {
	width: 100%; min-height: 44px; padding: 0.65rem 0.85rem;
	font: inherit; color: var(--wp--preset--color--charcoal); background: #fff;
	border: 2px solid #6b7580; border-radius: 8px; box-sizing: border-box;
}
.gpxt-form textarea { min-height: 9rem; resize: vertical; }
.gpxt-form .gpxt-help { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate-dark); }
.gpxt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gpxt-notice { max-width: 640px; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: 8px; border: 2px solid; }
.gpxt-notice p { margin: 0; }
.gpxt-notice--success { background: #eef7f0; border-color: #2d6a3e; color: #14391f; }
.gpxt-notice--error { background: #fdecef; border-color: var(--wp--preset--color--crimson); color: #5a0016; }
.gpxt-notice--success p::before { content: "\2713  "; content: "\2713  " / ""; font-weight: 700; }
.gpxt-notice--error p::before { content: "!  "; content: "!  " / ""; font-weight: 700; }

/* Long-form pages (privacy, about): clear space above section headings */
:where(.gpxt-titleblock, .gpxt-section) h2.gpxt-narrow { margin-top: 2.5rem; }
:where(.gpxt-titleblock, .gpxt-section) h2.gpxt-narrow:first-child { margin-top: 0; }

/* Accessibility status badge */
.gpxt-a11y-badge { display: inline-flex; align-items: center; gap: 0.7rem; border: 1px solid currentColor; border-radius: 999px; padding: 0.55rem 1.1rem 0.55rem 0.8rem; font-size: 0.9rem; line-height: 1.35; text-decoration: none; margin: 0.5rem 0 1rem; }
.gpxt-a11y-badge svg { flex: none; }
.gpxt-a11y-badge__date { font-size: 0.8125rem; opacity: 0.85; }
.gpxt-a11y-badge:hover { text-decoration: underline; text-underline-offset: 3px; }
.gpxt-footer .gpxt-a11y-badge { color: #fff; }
.gpxt-main .gpxt-a11y-badge { color: var(--wp--preset--color--ink); }

/* "Two ways" cards: two distinct panels */
.gpxt-ways { gap: 1.5rem !important; margin-top: 1.5rem; }
.gpxt-way { border: 1px solid #d5d9de; border-top: 4px solid var(--wp--preset--color--crimson); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; }
.gpxt-way h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin: 0 0 0.75rem; }
.gpxt-way p { margin: 0; }

/* Stats: a separate sand band with dividers, clear of the content above and below */
.gpxt-section:has(> .gpxt-stats) { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.gpxt-stats { background: var(--wp--preset--color--sand); border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.5rem); gap: 1.5rem 0 !important; margin: 0; }
.gpxt-stat { padding: 0 1rem; }
.gpxt-stat__value { font-size: clamp(1.4rem, 2.4vw, 2rem); }
@media (min-width: 782px) { .gpxt-stat + .gpxt-stat { border-left: 1px solid rgba(0,0,0,.18); } }

/* Breathing room: a heading that follows body text gets clear space above it, site-wide */
.wp-block-post-content :is(.gpxt-section, .gpxt-titleblock) > :is(h2, h3):not(:first-child) { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.wp-block-post-content :is(.gpxt-section, .gpxt-titleblock) > :is(h2, h3) + :is(p, ul, ol) { margin-top: 0.9rem; }

/* About: bio with photo */
.gpxt-bio { gap: clamp(1.25rem, 3vw, 2.5rem) !important; margin-top: 1rem; }
.gpxt-bio__photo { margin: 0; }
.gpxt-bio__photo img { width: 100%; height: auto; border-radius: 14px; display: block; }
.gpxt-bio p { max-width: 62ch; }
.gpxt-footer .gpxt-a11y-badge { margin-top: 1.25rem; margin-bottom: 0; }

/* Header: "Upload your ride" pill at the right of the navigation */
.gpxt-header__right { gap: clamp(0.75rem, 2vw, 1.75rem); flex-wrap: nowrap; }
.gpxt-header-cta { margin: 0; flex: none; }
.gpxt-header-cta .wp-block-button__link { font-size: 0.9375rem; font-weight: 600; padding: 0.55rem 1.25rem; white-space: nowrap; }
@media (max-width: 600px) {
	.gpxt-header-cta { order: -1; }
	.gpxt-header-cta .wp-block-button__link { font-size: 0.8125rem; padding: 0.45rem 0.85rem; }
}
.gpxt-header .wp-block-navigation__container { flex-wrap: nowrap; }
@media (min-width: 601px) and (max-width: 1000px) {
	.gpxt-header .wp-block-navigation { font-size: 0.875rem; }
	.gpxt-header .wp-block-navigation__container { gap: 0.9rem; }
	.gpxt-header__right { gap: 0.9rem; }
	.gpxt-header-cta .wp-block-button__link { font-size: 0.8125rem; padding: 0.5rem 0.9rem; }
}
.gpxt-header .wp-block-navigation-item__content { white-space: nowrap; }
.gpxt-header .gpxt-logo { flex: none; }
@media (min-width: 601px) and (max-width: 781px) { .gpxt-header .wp-block-navigation__container { gap: 0.65rem; } .gpxt-header .wp-block-navigation { font-size: 0.8125rem; } .gpxt-header__right { gap: 0.6rem; } .gpxt-header-cta .wp-block-button__link { padding: 0.45rem 0.75rem; } }
@media (max-width: 400px) {
	.gpxt-header .gpxt-logo img { height: 38px; }
	.gpxt-header__right { gap: 0.4rem; }
	.gpxt-header-cta .wp-block-button__link { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
	.gpxt-header .wp-block-navigation__responsive-container-open { padding: 0; }
}

/* Explainer video */
.gpxt-video { margin: 1rem 0 0; max-width: 960px; }
.gpxt-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--wp--preset--color--ink); }
.gpxt-video__transcript { margin-top: 1rem; }
.gpxt-video__transcript summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; min-height: 24px; }
.gpxt-video__transcript p { max-width: 62ch; margin: 0.75rem 0 0; }

/* YouTube facade */
.gpxt-yt__link { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--wp--preset--color--ink); }
.gpxt-yt__link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gpxt-yt__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--wp--preset--color--crimson); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.gpxt-yt__play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -15px 0 0 -9px; border-style: solid; border-width: 15px 0 15px 26px; border-color: transparent transparent transparent #fff; }
.gpxt-yt__link:hover .gpxt-yt__play { transform: scale(1.06); }
.gpxt-yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.gpxt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }


/* ------------------------------------------------------------------ */
/* Pricing page: seat packs table and the calculator                   */
/* ------------------------------------------------------------------ */
.gpxt-packs { width: 100%; max-width: 640px; border-collapse: collapse; margin: 0 0 1rem; font-size: var(--wp--preset--font-size--medium); }
.gpxt-packs caption { text-align: left; font-weight: 600; padding: 0 0 0.6rem; }
.gpxt-packs :is(th, td) { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid #d5d9de; }
.gpxt-packs thead th { border-bottom: 2px solid var(--wp--preset--color--charcoal); font-size: var(--wp--preset--font-size--small); }
.gpxt-packs tbody th { font-weight: 600; }
.gpxt-packs .gpxt-packs__num { text-align: right; font-variant-numeric: tabular-nums; }

.gpxt-calc { max-width: 760px; border: 1px solid #d5d9de; border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; }
.gpxt-calc[hidden], .gpxt-calc [hidden] { display: none !important; }
.gpxt-calc__nojs { max-width: 760px; }
.gpxt-calc__title { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--x-large); }
.gpxt-calc__sub { margin: 1.75rem 0 0.4rem; font-size: 1.2rem; }
.gpxt-calc__lead { margin: 0 0 0.9rem; color: var(--wp--preset--color--charcoal); font-weight: 300; }

/* One-day / multi-day switch: real radio buttons, the chosen one filled in */
.gpxt-calc__mode { border: 0; padding: 0; margin: 0 0 0.5rem; }
.gpxt-calc__mode legend { font-weight: 600; padding: 0; margin: 0 0 0.5rem; }
.gpxt-calc__choice { position: relative; display: inline-block; margin: 0 0.5rem 0.5rem 0; }
.gpxt-calc__choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gpxt-calc__choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.4rem; border: 2px solid var(--wp--preset--color--charcoal); border-radius: var(--gpxt-radius-pill); background: #fff; color: var(--wp--preset--color--ink); font-weight: 600; }
.gpxt-calc__choice input:checked + span { background: var(--wp--preset--color--crimson); border-color: var(--wp--preset--color--crimson); color: #fff; }
.gpxt-calc__choice input:focus-visible + span { outline: 3px solid #111; outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

.gpxt-calc__events { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.gpxt-calc__event { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 0.75rem; align-items: end; }
.gpxt-calc__event > label { grid-column: 1 / -1; font-weight: 600; }
.gpxt-calc__field { display: block; }
.gpxt-calc__hint { grid-column: 1 / -1; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate-dark); }
.gpxt-calc__hint--error { color: var(--wp--preset--color--crimson-dark); font-weight: 600; }
.gpxt-calc :is(input[type="text"]) { width: 100%; min-height: 44px; padding: 0.6rem 0.85rem; font: inherit; color: var(--wp--preset--color--charcoal); background: #fff; border: 2px solid #6b7580; border-radius: 8px; box-sizing: border-box; }
.gpxt-calc input[aria-invalid="true"] { border: 3px solid var(--wp--preset--color--crimson-dark); }
.gpxt-calc__btn, .gpxt-calc__remove { min-height: 44px; padding: 0.5rem 1.25rem; font: inherit; font-weight: 600; color: var(--wp--preset--color--ink); background: #fff; border: 2px solid var(--wp--preset--color--charcoal); border-radius: var(--gpxt-radius-pill); cursor: pointer; }
.gpxt-calc__btn:hover, .gpxt-calc__remove:hover { background: var(--wp--preset--color--mist); }
.gpxt-calc__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.25rem 1rem; }
.gpxt-calc__pair p { margin: 0 0 0.75rem; display: grid; gap: 0.3rem; }
.gpxt-calc__pair label { font-weight: 600; }

.gpxt-calc__empty { margin: 0 0 1rem; padding: 0.9rem 1.1rem; border: 2px solid var(--wp--preset--color--crimson); border-radius: 8px; background: #fdecef; color: #5a0016; }
.gpxt-calc__summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin: 0 0 1.25rem; }
.gpxt-calc__summary > div { background: var(--wp--preset--color--mist); border-radius: 10px; padding: 0.85rem 1rem; }
.gpxt-calc__summary dt { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate-dark); }
.gpxt-calc__summary dd { margin: 0; font-size: 1.35rem; font-weight: 600; color: var(--wp--preset--color--ink); }
.gpxt-calc__table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.gpxt-calc__table caption { text-align: left; font-weight: 600; padding: 0 0 0.5rem; }
.gpxt-calc__table :is(th, td) { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid #d5d9de; vertical-align: top; }
.gpxt-calc__table thead th { border-bottom: 2px solid var(--wp--preset--color--charcoal); font-size: var(--wp--preset--font-size--small); }
.gpxt-calc__table tbody th { font-weight: 400; width: 46%; }
.gpxt-calc__amount { display: block; font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.gpxt-calc__bar { display: block; height: 14px; margin-top: 0.35rem; background: #e4e7eb; border-radius: 4px; overflow: hidden; }
.gpxt-calc__bar i { display: block; height: 100%; }
.gpxt-calc__bar--gpx i { background: var(--wp--preset--color--crimson); }
.gpxt-calc__bar--other i { background: var(--wp--preset--color--slate-dark); }
.gpxt-calc__unknown td { color: var(--wp--preset--color--slate-dark); }
.gpxt-calc__verdict { font-weight: 600; margin: 0 0 1rem; }
.gpxt-calc__details { margin: 0 0 1rem; }
.gpxt-calc__details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.gpxt-calc__details ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.gpxt-calc__details li { margin: 0.25rem 0; }
.gpxt-calc__notes { border-top: 1px solid #d5d9de; margin-top: 1.5rem; padding-top: 1rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--slate-dark); }
.gpxt-calc__notes p { margin: 0 0 0.6rem; }
@media (forced-colors: active) {
	.gpxt-calc, .gpxt-calc__choice span, .gpxt-calc__btn, .gpxt-calc__remove { border: 1px solid CanvasText; }
	.gpxt-calc__bar { border: 1px solid CanvasText; }
	.gpxt-calc__bar i { background: CanvasText; }
	.gpxt-calc__choice input:checked + span { background: Highlight; color: HighlightText; }
}

/* Neutral notice (the pricing preview banner) */
.gpxt-notice--info { background: var(--wp--preset--color--mist); border-color: var(--wp--preset--color--slate-dark); color: var(--wp--preset--color--ink); }
.gpxt-notice--info a { color: inherit; font-weight: 600; }
.gpxt-titleblock > .gpxt-notice { margin-bottom: 1.5rem; }
