/**
 * Theme Base CSS
 *
 * Utility styles, scrollbar customization, animations,
 * and component base classes for the starter-landing theme.
 *
 * @package starter-landing
 */

/* Icon system — consistent sizing for starter_icon() */
.starter-icon {
    display: block;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}
.starter-icon--sm {
    width: 1.125rem;
    height: 1.125rem;
}
.starter-icon--md {
    width: 1.25rem;
    height: 1.25rem;
}
.starter-icon--lg {
    width: 1.5rem;
    height: 1.5rem;
}
.starter-icon--xl {
    width: 2rem;
    height: 2rem;
}

/* Section tabs */
.starter-tab-btn {
    border-radius: var(--btn-radius, var(--radius));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}
.starter-tab-btn:hover {
    border-color: hsl(var(--primary) / 0.5);
}
.starter-tab-btn.is-active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
}
.starter-tab-btn.is-active:hover {
    border-color: hsl(var(--primary));
}

/* Scroll carousel — card width from data-visible (supports decimals e.g. 2.5 for peek) */
.starter-carousel-track {
    --carousel-visible: 1;
    --carousel-gap: 0px;
}

.starter-carousel-track > .starter-carousel-item,
.starter-carousel-track > [data-carousel-item] {
    flex: 0 0 calc(
        (100% - var(--carousel-gap) * (var(--carousel-visible) - 1)) / var(--carousel-visible)
    );
    min-width: 0;
}

/* Hero title — shared look for <h1> (first slide / split) and <p> (later slides) */
.starter-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0;
}

/* Hero slider — contained card (inset + radius), banners without side crop */
.starter-hero__frame .hero-slide img {
    max-width: 100%;
}

/*
 * Cards — no outer borders site-wide.
 * Beats Tailwind utilities (border / border-border / hover:border-*) on .starter-card.
 * Keeps radius, shadow, background; focus rings on interactive children unchanged.
 */
.starter-card,
.starter-card:hover,
.doctor-card,
.starter-diff-card,
.starter-diff-card:hover,
.starter-diff-card--featured,
.starter-promo-feature,
.starter-promo-feature:hover,
.starter-promo-feature--accent,
.starter-float-card {
    border: none !important;
}

/* Card / grid item titles — NOT h3 (global h3 scale from Customizer blows up text-xl) */
.starter-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.35;
    color: hsl(var(--heading-foreground));
}
@media (min-width: 768px) {
    .starter-card-title {
        font-size: 1.25rem;
    }
}
.starter-card-title--sm {
    font-size: 0.9375rem;
    line-height: 1.4;
}
@media (min-width: 768px) {
    .starter-card-title--sm {
        font-size: 1rem;
    }
}
.starter-card-title--lg {
    font-size: 1.25rem;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .starter-card-title--lg {
        font-size: 1.375rem;
    }
}

/* Posts pagination — pill buttons */
.starter-pagination {
    display: flex;
    justify-content: center;
}
.starter-pagination .navigation.pagination,
.starter-pagination nav.navigation {
    width: 100%;
}
.starter-pagination .screen-reader-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    border: 0 !important;
    display: block;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    line-height: 1.2;
}
.starter-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.starter-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: hsl(var(--foreground));
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--btn-radius, var(--radius));
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.starter-pagination a.page-numbers:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}
.starter-pagination .page-numbers.current {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.starter-pagination .page-numbers.dots {
    min-width: auto;
    padding: 0 0.35rem;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* Accent card — primary background (starter-card forces white bg; never rely on bg-primary alone) */
.starter-card--primary {
    background-color: hsl(var(--primary)) !important;
    color: #ffffff;
}
.starter-card--primary .starter-card-title {
    color: #ffffff;
}
.starter-card--primary .starter-card-muted {
    color: rgb(255 255 255 / 0.88);
}
.starter-card--primary .starter-card-link {
    color: #ffffff;
}
.starter-card--primary .starter-card-link:hover {
    color: rgb(255 255 255 / 0.85);
}
.starter-card--primary h1,
.starter-card--primary h2,
.starter-card--primary h3 {
    color: #ffffff;
}

/* Soft accent card — light tinted background */
.starter-card--soft {
    background: linear-gradient(
        145deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card)) 100%
    ) !important;
}

/* Primary soft — weakest primary tint (dark text) */
.starter-card--primary-soft {
    background: color-mix(in srgb, hsl(var(--primary)) 14%, white) !important;
}
.starter-card--primary-soft .starter-card-title {
    color: hsl(var(--primary));
}
.starter-card--primary-soft .starter-icon-box {
    background: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
}

/* Primary mid — medium-weak tint (dark text) */
.starter-card--primary-mid {
    background: color-mix(in srgb, hsl(var(--primary)) 38%, white) !important;
    color: hsl(var(--heading-foreground));
}
.starter-card--primary-mid .starter-card-title {
    color: hsl(var(--primary));
}
.starter-card--primary-mid .starter-card-muted,
.starter-card--primary-mid p {
    color: hsl(var(--foreground) / 0.8);
}
.starter-card--primary-mid .starter-icon-box {
    background: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
}

/* Deep accent card — strongest primary (white text) */
.starter-card--deep {
    background: color-mix(in srgb, hsl(var(--primary)) 48%, black) !important;
    color: #ffffff;
}
.starter-card--deep .starter-card-title {
    color: #ffffff;
}
.starter-card--deep .starter-card-muted,
.starter-card--deep p {
    color: rgb(255 255 255 / 0.9);
}
.starter-card--deep .starter-icon-box {
    background: rgb(255 255 255 / 0.2) !important;
    color: #ffffff !important;
}
.starter-card--deep .starter-btn.bg-secondary {
    background: rgb(255 255 255 / 0.95);
    color: hsl(var(--heading-foreground));
}

/* Filled primary cards — icon box on solid tone */
.starter-card--primary .starter-icon-box {
    background: rgb(255 255 255 / 0.22) !important;
    color: #ffffff !important;
}

/*
 * Default icon box — solid charcoal + white icon (motorsport).
 * Overrides soft tint utilities (bg-primary/10, text-primary, border-primary/20)
 * so all contact/meta rows update without chasing every template.
 */
.starter-icon-box {
    background-color: #1c222b !important;
    color: #fff !important;
    border-color: transparent !important;
    border-width: 0 !important;
}
.starter-icon-box .starter-icon,
.starter-icon-box svg {
    color: inherit;
    stroke: currentColor;
}

.starter-hero .starter-hero-content h1,
.starter-hero .starter-hero-content p {
    color: #fff;
}
.starter-hero .starter-hero-content p {
    color: rgb(255 255 255 / 0.8);
}

/* Decorative section backgrounds */
.starter-section-decor {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.starter-section-decor::before,
.starter-section-decor::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.starter-section-decor--hero::before {
    width: min(42rem, 80vw);
    height: min(42rem, 80vw);
    top: -18%;
    right: -12%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.14) 0%, transparent 68%);
}

.starter-section-decor--hero::after {
    width: min(28rem, 60vw);
    height: min(28rem, 60vw);
    bottom: -8%;
    left: -10%;
    background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 70%);
}

.starter-section-decor--muted::before {
    width: min(36rem, 70vw);
    height: min(36rem, 70vw);
    top: -20%;
    left: -8%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.1) 0%, transparent 65%);
}

.starter-section-decor--muted::after {
    width: min(24rem, 50vw);
    height: min(24rem, 50vw);
    bottom: -12%;
    right: -6%;
    background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 68%);
}

.starter-section-inner {
    position: relative;
    z-index: 1;
}

/* Hero gradient band */
.starter-hero-band {
    background: linear-gradient(
        135deg,
        hsl(var(--accent)) 0%,
        hsl(var(--background)) 45%,
        hsl(var(--muted)) 100%
    );
}

/* Cut-out person visual */
.starter-cutout-visual {
    position: relative;
    min-height: 20rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.starter-cutout-visual__glow {
    position: absolute;
    inset: 8% 10% 0;
    background: radial-gradient(
        ellipse at center bottom,
        hsl(var(--primary) / 0.22) 0%,
        transparent 72%
    );
    pointer-events: none;
}

.starter-cutout-visual__rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.starter-cutout-visual__ring {
    position: absolute;
    border: 1px solid hsl(var(--primary) / 0.18);
    border-radius: 50%;
    animation: starter-ring-pulse 6s ease-in-out infinite;
}

.starter-cutout-visual__ring:nth-child(1) {
    width: 88%;
    height: 88%;
    animation-delay: 0s;
}

.starter-cutout-visual__ring:nth-child(2) {
    width: 68%;
    height: 68%;
    animation-delay: 1s;
}

.starter-cutout-visual__ring:nth-child(3) {
    width: 48%;
    height: 48%;
    animation-delay: 2s;
}

@keyframes starter-ring-pulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

.starter-cutout-visual__person {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px hsl(var(--primary) / 0.18));
}

.starter-cutout-visual__person img {
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
    object-position: bottom center;
}

/* Floating UI cards */
.starter-float-card {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: hsl(var(--card) / 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px hsl(var(--primary) / 0.12);
    animation: starter-float 5s ease-in-out infinite;
}

.starter-float-card--delay {
    animation-delay: 1.5s;
}

@keyframes starter-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.starter-avatar-stack {
    display: flex;
    align-items: center;
}

.starter-avatar-stack img,
.starter-avatar-stack__item {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    border: 2px solid hsl(var(--card));
    object-fit: cover;
    margin-left: -0.5rem;
}

.starter-avatar-stack img:first-child,
.starter-avatar-stack__item:first-child {
    margin-left: 0;
}

/* Promo banner strip */
.starter-promo-band {
    background: linear-gradient(
        110deg,
        hsl(var(--accent)) 0%,
        hsl(var(--primary) / 0.12) 50%,
        hsl(var(--accent)) 100%
    );
    border-top: 1px solid hsl(var(--primary) / 0.12);
    border-bottom: 1px solid hsl(var(--primary) / 0.12);
}

.starter-promo-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background: hsl(var(--card) / 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.starter-promo-feature:hover {
    box-shadow: 0 12px 28px hsl(var(--primary) / 0.1);
    transform: translateY(-2px);
}

.starter-promo-feature__step {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: hsl(var(--primary) / 0.45);
    line-height: 1;
}

.starter-promo-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: calc(var(--radius) * 0.75);
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.starter-promo-feature:hover .starter-promo-feature__icon {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.starter-promo-features {
    position: relative;
}

@media (min-width: 1024px) {
    .starter-promo-features::before {
        content: '';
        position: absolute;
        top: 2.35rem;
        left: 12.5%;
        right: 12.5%;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            hsl(var(--primary) / 0.25) 15%,
            hsl(var(--primary) / 0.25) 85%,
            transparent 100%
        );
        pointer-events: none;
        z-index: 0;
    }
}

.starter-promo-features > * {
    position: relative;
    z-index: 1;
}

/* Internal page header — compact brand banner */
.starter-page-header--banner {
    display: flex;
    align-items: flex-end;
    min-height: 9.5rem;
    isolation: isolate;
}

@media (min-width: 768px) {
    .starter-page-header--banner {
        min-height: 11.5rem;
    }
}

.starter-page-header__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.starter-page-header__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.02);
}

.starter-page-header__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at 88% 20%, hsl(var(--primary) / 0.45) 0%, transparent 55%),
        linear-gradient(
            118deg,
            hsl(var(--heading-foreground) / 0.97) 0%,
            hsl(var(--heading-foreground) / 0.9) 42%,
            hsl(var(--primary) / 0.82) 100%
        );
}

.starter-page-header__gradient--photo {
    background:
        linear-gradient(
            105deg,
            hsl(var(--heading-foreground) / 0.92) 0%,
            hsl(var(--heading-foreground) / 0.78) 48%,
            hsl(var(--primary) / 0.72) 100%
        ),
        linear-gradient(to top, hsl(var(--heading-foreground) / 0.55) 0%, transparent 55%);
}

.starter-page-header__glow {
    position: absolute;
    width: 18rem;
    height: 18rem;
    right: -4rem;
    bottom: -8rem;
    border-radius: 9999px;
    background: hsl(var(--primary) / 0.28);
    filter: blur(40px);
    pointer-events: none;
}

.starter-page-header__accent {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        hsl(var(--primary)) 0%,
        hsl(var(--primary) / 0.35) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.starter-page-header--banner .starter-page-header__inner,
.starter-page-header--plain .starter-page-header__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .starter-page-header--banner .starter-page-header__inner,
    .starter-page-header--plain .starter-page-header__inner {
        padding-top: 1.75rem;
        padding-bottom: 1.875rem;
    }
}

.starter-page-header__breadcrumbs {
    margin-bottom: 0.625rem;
}

/* Breadcrumbs-only bar (single midia posts) */
.starter-page-header--breadcrumbs .starter-page-header__inner {
    justify-content: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .starter-page-header--breadcrumbs .starter-page-header__inner {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
    }
}

.starter-page-header--breadcrumbs .starter-page-header__breadcrumbs {
    margin-bottom: 0;
}

.starter-page-header--banner .starter-page-header__crumb-link,
.starter-page-header--banner .starter-page-header__crumb-sep {
    color: rgb(255 255 255 / 0.72);
}

.starter-page-header--banner .starter-page-header__crumb-link:hover {
    color: #ffffff;
}

.starter-page-header--banner .starter-page-header__crumb-current {
    color: #ffffff;
}

.starter-page-header--banner .starter-page-header__title {
    font-size: 1.625rem !important;
    color: #ffffff;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .starter-page-header--banner .starter-page-header__title {
        font-size: 2.125rem !important;
    }
}

.starter-page-header--banner .starter-page-header__subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.86);
    max-width: 36rem;
}

@media (min-width: 768px) {
    .starter-page-header--banner .starter-page-header__subtitle {
        font-size: 1rem;
    }
}

.starter-page-header__rule {
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.875rem;
    border-radius: 9999px;
    background: hsl(var(--primary));
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.18);
}

/* Plain fallback (muted band) */
.starter-page-header--plain .starter-page-header__crumb-link,
.starter-page-header--plain .starter-page-header__crumb-sep {
    color: hsl(var(--muted-foreground));
}

.starter-page-header--plain .starter-page-header__crumb-link:hover {
    color: hsl(var(--primary));
}

.starter-page-header--plain .starter-page-header__crumb-current {
    color: hsl(var(--heading-foreground));
}

.starter-page-header--plain .starter-page-header__title {
    font-size: 1.5rem !important;
    color: hsl(var(--heading-foreground));
}

@media (min-width: 768px) {
    .starter-page-header--plain .starter-page-header__title {
        font-size: 1.875rem !important;
    }
}

.starter-page-header--plain .starter-page-header__subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .starter-page-header--plain .starter-page-header__subtitle {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .starter-page-header__bg-image {
        transform: none;
    }
}

/*
 * Internal page content H2s — modest step below home / Customizer scale.
 * Page-header remains H1 (untouched). Beats Customizer `h2 { --h2-size !important }` via specificity.
 * Scale ≈ text-xl / md:text-2xl / lg:text-3xl (was ~text-2xl / Customizer 3rem).
 */
body:not(.home) main h2 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    body:not(.home) main h2 {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    body:not(.home) main h2 {
        font-size: 1.875rem !important;
    }
}

/* Sobre internal page — denser prose rhythm */
.starter-page-sobre .starter-prose p {
    margin: 0 0 0.75rem;
}

.starter-page-sobre .starter-prose p:last-child {
    margin-bottom: 0;
}

.starter-page-sobre__media {
    background: hsl(var(--muted));
}

/* Differential cards — Sobre page */
.starter-diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .starter-diff-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 1.5rem;
    }
}

.starter-diff-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: hsl(var(--card));
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.starter-diff-card:hover {
    box-shadow: 0 16px 40px hsl(var(--primary) / 0.12);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .starter-diff-card--wide {
        grid-column: span 7;
    }

    .starter-diff-card--tall {
        grid-column: span 5;
    }

    .starter-diff-card--banner {
        grid-column: span 12;
    }
}

.starter-diff-card__media {
    position: relative;
    overflow: hidden;
}

.starter-diff-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.starter-diff-card:hover .starter-diff-card__media img {
    transform: scale(1.05);
}

.starter-diff-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        hsl(var(--heading-foreground) / 0.55) 0%,
        hsl(var(--heading-foreground) / 0.1) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.starter-diff-card--split {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .starter-diff-card--split {
        grid-template-columns: 42% 1fr;
    }
}

.starter-diff-card--split .starter-diff-card__media {
    min-height: 14rem;
}

@media (min-width: 640px) {
    .starter-diff-card--split .starter-diff-card__media {
        min-height: 100%;
    }
}

.starter-diff-card--vertical .starter-diff-card__media {
    height: 11rem;
}

@media (min-width: 768px) {
    .starter-diff-card--vertical .starter-diff-card__media {
        height: 13.5rem;
    }
}

.starter-diff-card--banner .starter-diff-card__media {
    min-height: 12rem;
}

@media (min-width: 640px) {
    .starter-diff-card--banner {
        grid-template-columns: 38% 1fr;
    }

    .starter-diff-card--banner .starter-diff-card__media {
        min-height: 100%;
    }
}

.starter-diff-card__icon {
    position: absolute;
    bottom: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: calc(var(--radius) * 0.75);
    box-shadow: 0 8px 20px hsl(var(--primary) / 0.35);
}

.starter-diff-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .starter-diff-card__body {
        padding: 1.75rem 2rem;
    }
}

.starter-diff-card--featured .starter-diff-card__body {
    background: linear-gradient(
        145deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card)) 100%
    );
}

.starter-benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .starter-benefit-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.starter-promo-feature--accent {
    background: linear-gradient(
        160deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card) / 0.9) 100%
    ) !important;
}

/* Blog card image overlay */
.starter-post-card__media {
    position: relative;
    overflow: hidden;
    height: 13.75rem;
}

.starter-post-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        hsl(var(--heading-foreground) / 0.45) 0%,
        transparent 55%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.starter-post-card:hover .starter-post-card__media::after {
    opacity: 1;
}

.starter-post-card__category {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.75rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius-full);
}

/* Units — full-bleed specialty plaques (carousel) */
.unit-plaque {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 3 / 4;
    min-height: 22rem;
    color: #fff;
    background: #0a0a0a;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.unit-plaque__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    z-index: 4;
    background: var(--unit-accent, hsl(var(--primary)));
}

.unit-plaque__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.unit-plaque__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.unit-plaque:hover .unit-plaque__img,
.unit-plaque:focus-visible .unit-plaque__img {
    transform: scale(1.08);
}

.unit-plaque__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 28%, transparent 42%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.92) 100%),
        linear-gradient(90deg, color-mix(in srgb, var(--unit-accent, #000) 22%, transparent) 0%, transparent 55%);
    pointer-events: none;
}

.unit-plaque__index {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.14);
    pointer-events: none;
    transition: color 0.35s ease;
}

.unit-plaque:hover .unit-plaque__index,
.unit-plaque:focus-visible .unit-plaque__index {
    color: color-mix(in srgb, var(--unit-accent, #fff) 55%, transparent);
}

.unit-plaque__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1.35rem 1.25rem 1.35rem 1.4rem;
}

.unit-plaque__logo-wrap {
    display: block;
    height: 2.75rem;
    max-width: 160px;
    margin-bottom: 0.35rem;
    filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.45));
}

@media (min-width: 768px) {
    .unit-plaque__logo-wrap {
        height: 3.5rem;
    }
}

.unit-plaque__logo {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.unit-plaque__tagline {
    margin: 0;
    max-width: 18rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.unit-plaque__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    transform: translateY(0.25rem);
    opacity: 0.85;
    transition: transform 0.35s ease, opacity 0.35s ease, border-color 0.35s ease;
}

.unit-plaque:hover .unit-plaque__cta,
.unit-plaque:focus-visible .unit-plaque__cta {
    transform: translateY(0);
    opacity: 1;
    border-color: color-mix(in srgb, var(--unit-accent, #fff) 70%, transparent);
}

.unit-plaque--nolink {
    cursor: default;
}

.unit-plaque--nolink .unit-plaque__cta--muted,
.unit-plaque__cta--muted {
    opacity: 0.45;
    pointer-events: none;
}

.unit-plaque--nolink:hover .unit-plaque__cta--muted {
    transform: translateY(0.25rem);
    opacity: 0.45;
    border-color: rgba(255, 255, 255, 0.18);
}

.unit-plaque:focus-visible {
    outline: 2px solid var(--unit-accent, hsl(var(--primary)));
    outline-offset: 3px;
}

/* Hide native scrollbar on carousel tracks */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar for main page */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.3);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.6);
}

/* Transition utilities for lightbox image */
#lightbox-img {
    transition: opacity 0.15s ease-in-out;
}

/* WhatsApp FAB animation */
@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
.whatsapp-fab {
    animation: fab-pulse 2s ease-in-out infinite;
}

/* Section fade-in animation (optional, applied via JS Intersection Observer) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* About (home) — soft primary tint + marks */
.starter-about-section {
    color: hsl(var(--foreground));
    background:
        radial-gradient(ellipse 70% 55% at 8% 20%, hsl(var(--primary) / 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 92% 85%, hsl(var(--primary) / 0.08) 0%, transparent 50%),
        linear-gradient(
            165deg,
            color-mix(in srgb, hsl(var(--primary)) 10%, white) 0%,
            color-mix(in srgb, hsl(var(--primary)) 7%, white) 48%,
            color-mix(in srgb, hsl(var(--primary)) 14%, white) 100%
        );
}
.starter-about-section::before {
    width: min(40rem, 78vw);
    height: min(40rem, 78vw);
    top: -22%;
    right: -14%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.14) 0%, transparent 68%);
    animation: starter-about-orb 14s ease-in-out infinite alternate;
}
.starter-about-section::after {
    width: min(26rem, 58vw);
    height: min(26rem, 58vw);
    bottom: -16%;
    left: -10%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.1) 0%, transparent 70%);
    animation: starter-about-orb 18s ease-in-out infinite alternate-reverse;
}
.starter-about-section .starter-prose,
.starter-about-section .starter-prose p {
    color: hsl(var(--muted-foreground));
}

/* Hospital SVG marks — corner transitions */
.starter-about-mark {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    aspect-ratio: 1278 / 460;
    background: hsl(var(--primary) / 0.14);
    -webkit-mask: url('../images/hospital-2026.svg') center / contain no-repeat;
    mask: url('../images/hospital-2026.svg') center / contain no-repeat;
}
.starter-about-mark--tr {
    top: -8%;
    right: -14%;
    width: min(38rem, 72vw);
    background: hsl(var(--primary) / 0.12);
    transform: rotate(8deg);
    animation: starter-about-mark-drift 18s ease-in-out infinite alternate;
}
.starter-about-mark--bl {
    bottom: -14%;
    left: -16%;
    width: min(52rem, 95vw);
    background: hsl(var(--primary) / 0.18);
    transform: scaleX(-1) rotate(-5deg);
    animation: starter-about-mark-drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes starter-about-orb {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(3%, 4%, 0) scale(1.06); }
}
@keyframes starter-about-mark-drift {
    from { translate: 0 0; }
    to { translate: 1.25% -1.75%; }
}
.starter-about-media .starter-about-photo {
    transition: transform 0.5s ease;
}
.starter-about-media img {
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
/* First scan has white padding at the bottom — crop it out */
.starter-about-photo--crop {
    object-position: center 28%;
    transform: scale(1.14);
    transform-origin: center top;
}
.starter-about-media .starter-about-photo:hover img {
    transform: scale(1.04);
}
.starter-about-media .starter-about-photo:hover img.starter-about-photo--crop {
    transform: scale(1.18);
}
.starter-about-media.is-visible img {
    animation: starter-about-kenburns 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.starter-about-media.is-visible .starter-about-photo:nth-child(2) img {
    animation-delay: 120ms;
}
.starter-about-media.is-visible img.starter-about-photo--crop {
    animation: starter-about-kenburns-crop 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes starter-about-kenburns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}
@keyframes starter-about-kenburns-crop {
    from { transform: scale(1.2); }
    to { transform: scale(1.14); }
}

/*
 * Scroll reveal — toggled by reveal.js (.is-visible).
 * Styles only apply when html.starter-reveal is set, so content stays
 * visible if JS fails or is disabled.
 */
.starter-reveal [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.starter-reveal [data-reveal='left'] {
    transform: translate3d(-1.25rem, 0, 0);
}
.starter-reveal [data-reveal='right'] {
    transform: translate3d(1.25rem, 0, 0);
}
.starter-reveal [data-reveal='up'] {
    transform: translate3d(0, 1.25rem, 0);
}
.starter-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
    .starter-about-section::before,
    .starter-about-section::after,
    .starter-about-mark {
        animation: none;
    }
    .starter-about-media img,
    .starter-about-media .starter-about-photo:hover img,
    .starter-about-media.is-visible img {
        animation: none;
        transition: none;
    }
    .starter-about-media img:not(.starter-about-photo--crop) {
        transform: none;
    }
    .starter-about-photo--crop {
        transform: scale(1.14);
    }
    .starter-reveal [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Scale utility for group-hover */
.scale-98 { transform: scale(0.98); }
.scale-102 { transform: scale(1.02); }
.scale-103 { transform: scale(1.03); }

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 200ms;
    transition-timing-function: ease;
}

/* Custom logo — brand mark sizing in header/footer */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 11rem;
}
.custom-logo-link img.custom-logo,
.custom-logo {
    height: 2.75rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (min-width: 768px) {
    .custom-logo-link {
        max-width: 14rem;
    }
    .custom-logo-link img.custom-logo,
    .custom-logo {
        height: 3.25rem;
    }
}

/* Sticky below #main-header — --header-offset set by sticky-header.js */
.doctor-filters-bar {
    top: var(--header-offset, 7rem);
}

/* Doctor filter active state */
.doctor-filter.is-active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   Gutenberg landing (full-bleed when title band is hidden)
   -------------------------------------------------------------------------- */
.starter-gutenberg-landing {
    --uti-primary: #c5e063;
    --uti-primary-fg: #0a0a0a;
    --uti-ink: #121212;
    overflow-x: clip;
}

.starter-gutenberg-landing > .alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.starter-gutenberg-landing .wp-block-group.alignfull > .wp-block-group__inner-container,
.starter-gutenberg-landing .wp-block-group.alignfull.is-layout-constrained {
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 768px) {
    .starter-gutenberg-landing .wp-block-group.alignfull > .wp-block-group__inner-container,
    .starter-gutenberg-landing .wp-block-group.alignfull.is-layout-constrained {
        padding-inline: 2rem;
    }
}

/* UTI brand landing */
.starter-uti-hero {
    color: #fff;
}

.starter-uti-hero .wp-block-cover__inner-container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
}

.starter-uti-hero-title {
    font-family: var(--font-heading, inherit);
    font-size: clamp(2rem, 4vw, 3.25rem) !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0.75rem 0 0.5rem !important;
}

.starter-uti-hero-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 0 1.25rem !important;
}

.starter-uti-btn .wp-block-button__link {
    background: var(--uti-primary) !important;
    color: var(--uti-primary-fg) !important;
    border: none !important;
    border-radius: var(--btn-radius, var(--radius));
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.starter-uti-btn .wp-block-button__link:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.starter-uti-btn-ghost .wp-block-button__link {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: var(--btn-radius, var(--radius));
    font-weight: 500;
    padding: 0.85rem 1.5rem;
}

.starter-uti-btn-ghost .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.starter-uti-strip {
    background: var(--uti-ink);
    color: #fff;
    padding: 1.75rem 0;
}

.starter-uti-strip-cols {
    gap: 1.25rem !important;
}

.starter-uti-stat-value {
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
    font-weight: 700;
    color: var(--uti-primary) !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
}

.starter-uti-stat-label {
    font-size: 0.8rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0.35rem 0 0 !important;
}

.starter-uti-section {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .starter-uti-section {
        padding: 4.5rem 0;
    }
}

.starter-uti-structure {
    background: hsl(var(--muted) / 0.35);
    border-block: 1px solid hsl(var(--border));
}

.starter-uti-eyebrow {
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6a8a1f !important;
    margin: 0 0 0.65rem !important;
}

.starter-uti-heading {
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground)) !important;
    margin: 0 0 1rem !important;
}

.starter-uti-section-lead {
    color: hsl(var(--muted-foreground)) !important;
    max-width: 36rem;
    margin-inline: auto !important;
    margin-bottom: 2rem !important;
}

.starter-uti-structure-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    object-fit: cover;
}

.starter-uti-structure .wp-block-column p {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    font-size: 0.975rem;
}

.starter-uti-equip {
    background: hsl(var(--background));
}

.starter-uti-equip-grid {
    gap: 1.25rem !important;
    margin-top: 1.25rem !important;
}

.starter-uti-equip-card {
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    box-shadow: var(--card-shadow, 0 1px 2px rgb(0 0 0 / 0.04));
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.starter-uti-equip-card:hover {
    border-color: color-mix(in srgb, var(--uti-primary) 55%, hsl(var(--border)));
    transform: translateY(-2px);
}

.starter-uti-equip-img {
    margin: 0 !important;
}

.starter-uti-equip-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.starter-uti-equip-title {
    font-weight: 600;
    font-size: 1rem !important;
    color: hsl(var(--foreground)) !important;
    margin: 0 !important;
    padding: 1rem 1.1rem 1.15rem;
}

.starter-uti-cert-panel {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--card));
    box-shadow: var(--card-shadow, 0 1px 2px rgb(0 0 0 / 0.04));
    gap: 0 !important;
}

.starter-uti-cert-panel > .wp-block-column {
    padding: 1.75rem;
}

@media (min-width: 782px) {
    .starter-uti-cert-panel > .wp-block-column:first-child {
        background: color-mix(in srgb, var(--uti-primary) 14%, hsl(var(--background)));
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.starter-uti-cert-badge img {
    width: 100%;
    max-width: 22rem;
    height: auto;
    margin-inline: auto;
    display: block;
}

.starter-uti-team {
    background: hsl(var(--muted) / 0.3);
    border-block: 1px solid hsl(var(--border));
}

.starter-uti-team p:not(.starter-uti-eyebrow):not(.starter-uti-heading) {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.starter-uti-info-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    padding: 1.35rem 1.4rem;
    height: 100%;
}

.starter-uti-info-label {
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6a8a1f !important;
    margin: 0 0 0.65rem !important;
}

.starter-uti-info-card a {
    color: hsl(var(--foreground));
    text-decoration: none;
}

.starter-uti-info-card a:hover {
    color: #6a8a1f;
}

.starter-uti-cta .wp-block-cover__inner-container {
    max-width: 40rem;
    margin-inline: auto;
    text-align: center;
}


.alignfull {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	text-align: center;
}

.alignfull img {
	width: 100%;
}

.alignfull .wp-block-cover__inner-container {
    max-width: var(--max-width);
}
/* =========================================================
   CronoRally — dark cinematic system
   ========================================================= */

/* Desktop: dark side columns for copy/poster, open center for moto */
.crono-hero-overlay {
	background:
		linear-gradient(
			90deg,
			rgba(8, 10, 14, 0.94) 0%,
			rgba(8, 10, 14, 0.82) 14%,
			rgba(8, 10, 14, 0.35) 36%,
			rgba(8, 10, 14, 0.05) 50%,
			rgba(8, 10, 14, 0.35) 64%,
			rgba(8, 10, 14, 0.82) 86%,
			rgba(8, 10, 14, 0.94) 100%
		),
		radial-gradient(ellipse at 50% 42%, transparent 0%, transparent 32%, rgba(8, 10, 14, 0.28) 72%);
}

.crono-hero-scrim {
	position: absolute;
	inset-inline: 0;
	width: 100%;
	pointer-events: none;
	z-index: 1;
}

.crono-hero-scrim--top {
	top: 0;
	height: 8rem;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 55%, transparent 100%);
}

.crono-hero-scrim--bottom {
	bottom: 0;
	height: 12rem;
	/* Solid #05070A at edge — matches .crono-events-carousel, no hard cut */
	background: linear-gradient(
		0deg,
		#05070a 0%,
		#05070a 22%,
		rgba(5, 7, 10, 0.92) 48%,
		rgba(5, 7, 10, 0.45) 72%,
		transparent 100%
	);
}

@media (min-width: 768px) {
	.crono-hero-scrim--top {
		height: 10rem;
	}

	.crono-hero-scrim--bottom {
		height: 16rem;
	}
}

/* Mobile / tablet: moto visible up top; strong dark band behind copy */
@media (max-width: 1023px) {
	.crono-hero-overlay {
		background: none;
	}

	.crono-hero-scrim--top {
		height: 5.5rem;
		background: linear-gradient(180deg, rgba(5, 7, 10, 0.55) 0%, rgba(5, 7, 10, 0.15) 65%, transparent 100%);
	}

	.crono-hero-scrim--bottom {
		height: 68%;
		background: linear-gradient(
			0deg,
			#05070a 0%,
			#05070a 18%,
			rgba(5, 7, 10, 0.97) 36%,
			rgba(5, 7, 10, 0.88) 52%,
			rgba(5, 7, 10, 0.62) 68%,
			rgba(5, 7, 10, 0.28) 84%,
			transparent 100%
		);
	}
}

.crono-hero {
	height: 100svh;
	max-height: 100svh;
	min-height: 100svh;
	background-color: #05070a;
	/* Visible so wheel reaches the document; clip only bg/stage layers */
	overflow: visible;
	touch-action: auto;
}

/* Phone: shorter hero + tighter stage so copy isn't tiny in empty space */
@media (max-width: 767px) {
	.crono-hero {
		height: auto;
		min-height: min(82svh, 42rem);
		max-height: none;
		aspect-ratio: auto;
	}

	.crono-hero__stage {
		top: 4.5rem;
		bottom: 3.75rem;
	}

	.crono-hero-scrim--bottom {
		height: 72%;
		background: linear-gradient(
			0deg,
			#05070a 0%,
			#05070a 22%,
			rgba(5, 7, 10, 0.98) 40%,
			rgba(5, 7, 10, 0.9) 55%,
			rgba(5, 7, 10, 0.7) 68%,
			rgba(5, 7, 10, 0.35) 82%,
			transparent 100%
		);
	}

	.crono-hero::after {
		height: 2.5rem;
	}
}

/* Seamless handoff into #calendar (same #05070A) — kills hairline/texture cut */
.crono-hero::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 3.5rem;
	background: linear-gradient(0deg, #05070a 55%, transparent 100%);
	pointer-events: none;
	z-index: 15;
}

.crono-hero > .absolute.inset-0.z-0,
.crono-hero__bg {
	overflow: hidden;
	isolation: isolate;
}

.crono-hero-controls {
	/* Dots only — carousel arrows live in #calendar */
	padding-right: 0;
}

.crono-hero__stage {
	position: absolute;
	inset-inline: 0;
	top: 5.5rem;
	bottom: 5.25rem;
	z-index: 10;
	overflow: hidden;
}

@media (min-width: 768px) {
	.crono-hero__stage {
		top: 6.25rem;
		bottom: 5.75rem;
	}
}

/* Absolute slides ignore parent padding — keep gutters in sync with .starter-container */
.crono-hero .starter-container {
	padding-left: clamp(1.25rem, 4.5vw, 2rem);
	padding-right: clamp(1.25rem, 4.5vw, 2rem);
}

.crono-hero .hero-slide {
	inset: 0 clamp(1.25rem, 4.5vw, 2rem);
	width: auto;
}

.crono-hero__slide-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 0.7fr) minmax(0, 0.85fr);
	align-items: center;
	column-gap: clamp(1rem, 3vw, 2.5rem);
	height: 100%;
	min-height: 0;
	width: 100%;
}

@media (max-width: 1023px) {
	.crono-hero__slide-grid {
		grid-template-columns: minmax(0, 2.2fr) minmax(6.75rem, 1fr);
		align-items: end;
		align-content: end;
		column-gap: 0.85rem;
		row-gap: 0;
		padding-bottom: 0.25rem;
	}

	.crono-hero__gap {
		display: none;
	}

	.crono-hero-poster-wrap {
		justify-content: flex-end;
		align-items: flex-end;
		width: 100%;
		height: auto;
		min-height: 0;
		padding-block: 0;
	}
}

.crono-hero-event-title {
	font-size: clamp(1.35rem, 3.8vw, 3.5rem);
	text-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
	max-width: 16ch;
	color: #fff !important;
}

.crono-hero .hero-slide[aria-hidden="true"] {
	visibility: hidden;
}
.crono-hero .hero-slide[aria-hidden="false"] {
	visibility: visible;
}

.crono-hero-gap,
.crono-hero__gap {
	min-height: 1px;
}

.crono-hero-copy,
.crono-hero-copy p {
	color: #fff;
}

.crono-hero-copy {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.crono-hero-copy .text-primary,
.crono-hero-copy span.text-primary {
	color: #e11d2e !important;
}

/* Hero meta row — date chip + location side by side */
.crono-hero-when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
}

/* Hero date chip — compact square, gold type, no fill */
.crono-hero .crono-date-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	min-width: 3.25rem;
	aspect-ratio: 1;
	padding: 0.2rem;
	background: none;
	border: none;
	box-shadow: none;
	border-radius: 0;
	flex-shrink: 0;
}

.crono-hero .crono-date-chip__day {
	color: #fbbf24;
	font-size: clamp(1.85rem, 4.2vw, 2.55rem);
	line-height: 1;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.crono-hero .crono-date-chip__month {
	color: #fbbf24 !important;
	font-size: 0.625rem;
	letter-spacing: 0.14em;
	margin-top: 0.15rem;
	line-height: 1;
}

.crono-hero-local {
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	line-height: 1.3;
}

.crono-hero-local__label {
	color: #e11d2e;
	font-weight: 600;
}

.crono-hero-poster {
	position: relative;
	display: block;
	width: min(18rem, 100%);
	aspect-ratio: 3 / 4;
	max-height: 62vh;
	height: auto;
	overflow: hidden;
	filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

@media (min-width: 1280px) {
	.crono-hero-poster {
		width: min(20rem, 100%);
		max-height: 66vh;
	}
}

/* Mobile / tablet — ~70% copy / ~30% poster + larger type (must follow base rules) */
@media (max-width: 1023px) {
	.crono-hero-poster {
		width: 100%;
		max-width: none;
		max-height: min(38vh, 100%);
		margin-inline: 0;
	}

	.crono-hero-poster__zoom {
		border-radius: calc(var(--radius) * 0.5);
	}

	.crono-hero-event-title {
		max-width: 15ch;
		font-size: clamp(1.55rem, 7.2vw, 2.15rem);
		line-height: 1.08;
		text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85), 0 12px 36px rgba(0, 0, 0, 0.6);
	}

	.crono-hero-copy {
		width: 100%;
		max-width: none;
		padding: 0;
		background: none;
		gap: 0.85rem;
		text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 8px 28px rgba(0, 0, 0, 0.55);
	}

	.crono-hero-copy .starter-btn {
		height: 2.75rem;
		padding-inline: 1.35rem;
		font-size: 0.875rem;
	}

	.crono-hero .crono-date-chip {
		width: 3rem;
		min-width: 3rem;
		padding: 0.15rem;
	}

	.crono-hero .crono-date-chip__day {
		font-size: clamp(1.75rem, 7.5vw, 2.25rem);
	}

	.crono-hero-local {
		font-size: 0.9375rem;
	}
}

@media (max-width: 767px) {
	.crono-hero-event-title {
		font-size: clamp(1.7rem, 8vw, 2.35rem);
		max-width: 14ch;
	}

	.crono-hero-poster {
		max-height: min(34vh, 14.5rem);
	}

	.crono-hero-copy {
		gap: 0.95rem;
	}

	.crono-hero__slide-grid {
		align-items: end;
		align-content: end;
		padding-bottom: 0.15rem;
	}

	.crono-hero-poster-wrap {
		align-items: flex-end;
	}
}

.crono-poster-fallback {
	background:
		linear-gradient(145deg, rgba(225, 29, 46, 0.35), transparent 55%),
		linear-gradient(335deg, rgba(14, 116, 144, 0.3), transparent 50%),
		linear-gradient(180deg, #1a1f2a, #05070a);
}

/* Full-bleed track — edge-to-edge with container-aligned gutters */
.crono-events-carousel__track {
	width: 100%;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	scroll-padding-left: 1.5rem;
	-ms-overflow-style: none;
}
.crono-events-carousel__track::-webkit-scrollbar {
	display: none;
}
/* Same formula as .starter-carousel-track — flex-basis drives width (not a lone width:) */
.crono-events-carousel .starter-carousel-item {
	flex: 0 0 calc(
		(100% - var(--carousel-gap, 0px) * (var(--carousel-visible, 1) - 1)) / var(--carousel-visible, 1)
	);
	width: auto;
	max-width: none;
	min-width: 0;
	align-self: stretch;
	height: auto;
	display: flex;
	flex-direction: column;
}

.crono-hero-img {
	animation: crono-hero-ken 28s ease-in-out infinite alternate;
	will-change: transform;
	transform-origin: center center;
}

@keyframes crono-hero-ken {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to   { transform: scale(1.1) translate3d(-1%, -0.6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.crono-hero-img { animation: none; }
}

.crono-hero-watermark {
	font-family: var(--font-heading), sans-serif;
	font-weight: 700;
	font-size: clamp(4.5rem, 18vw, 14rem);
	letter-spacing: -0.04em;
	line-height: 0.85;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
	opacity: 0.55;
	text-transform: uppercase;
}

.crono-hero-title {
	font-size: clamp(2.75rem, 9vw, 6.5rem);
	text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.crono-hero-title-accent {
	background: linear-gradient(90deg, #F87171 0%, #FBBF24 55%, #FDE68A 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 4px 24px rgba(251, 191, 36, 0.25));
}

.crono-hero-copy {
	animation: crono-rise 0.9s ease both;
}

.crono-hero-events {
	animation: crono-rise 1.05s ease 0.15s both;
}

@keyframes crono-rise {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: translateY(0); }
}

.crono-btn-solid {
	background: #fff;
	color: #0B0F14;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.crono-btn-solid:hover {
	background: hsl(var(--primary));
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 14px 36px rgba(225, 29, 46, 0.35);
}

.crono-btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(8px);
}
.crono-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.45);
}

/* Event cards — open registration CTA (success green, not primary red) */
.crono-btn-inscricao {
	background: #15803d;
	color: #fff;
	box-shadow: 0 8px 22px rgba(21, 128, 61, 0.35);
}
.crono-btn-inscricao:hover {
	background: #16a34a;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4);
}

/* Single evento — open registration status label */
.crono-status-open {
	color: #22c55e;
}

/* Single evento — Informações | Inscritos tabs */
.crono-evento-tab.is-active {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}
.crono-evento-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.25rem;
	padding: 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: calc(var(--radius) * 0.5);
	background: hsl(var(--muted));
	color: hsl(var(--muted-foreground));
}
.crono-evento-tab.is-active .crono-evento-tab-count {
	background: hsl(var(--primary-foreground) / 0.18);
	color: hsl(var(--primary-foreground));
}

/* Public inscritos table */
.crono-inscritos-table {
	border-collapse: collapse;
	min-width: 28rem;
}
.crono-inscritos-th,
.crono-inscritos-td {
	padding: 0.7rem 0.9rem;
	text-align: left;
	border-bottom: 1px solid hsl(var(--border));
	vertical-align: middle;
}
.crono-inscritos-th {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: hsl(var(--muted-foreground));
	background: hsl(var(--muted) / 0.45);
	white-space: nowrap;
}
.crono-inscritos-th--num,
.crono-inscritos-td--num {
	width: 3.5rem;
	text-align: center;
}
.crono-inscritos-table tbody tr:last-child .crono-inscritos-td {
	border-bottom: 0;
}
.crono-inscritos-table tbody tr:hover {
	background: hsl(var(--muted) / 0.25);
}
.crono-inscritos-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 1.75rem;
	padding: 0 0.35rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: hsl(var(--foreground));
	background: hsl(var(--muted) / 0.55);
	border: 1px solid hsl(var(--border));
}
.crono-inscritos-status {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.crono-inscritos-status--ok {
	color: #4ade80;
}
.crono-inscritos-status--err {
	color: #f87171;
}
.crono-inscritos-status--cort {
	color: #fbbf24;
}

/* Single evento — H1 in details column (beats Customizer h1 scale) */
h1.crono-evento-title {
	font-size: 1.5rem !important; /* text-2xl */
	line-height: 1.25;
	margin: 0;
}
@media (min-width: 768px) {
	h1.crono-evento-title {
		font-size: 1.875rem !important; /* md:text-3xl */
	}
}
@media (min-width: 1024px) {
	h1.crono-evento-title {
		font-size: 2.25rem !important; /* lg:text-4xl */
	}
}

.crono-glass-card {
	border-radius: calc(var(--radius) + 4px);
	background: rgba(12, 16, 22, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(18px);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Card date badge — solid gold fill, dark type (hero overrides to no-fill gold) */
.crono-date-chip {
	min-width: 3.25rem;
	padding: 0.55rem 0.45rem;
	border-radius: calc(var(--radius) * 0.75);
	background: #fbbf24;
	border: 1px solid rgba(11, 15, 20, 0.12);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	color: #0B0F14;
}
.crono-card .crono-date-chip,
.crono-events-carousel .crono-date-chip {
	background: #fbbf24;
	border-color: rgba(11, 15, 20, 0.12);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	color: #0B0F14;
}

.crono-card {
	position: relative;
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
}
.crono-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.35s ease;
	background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(225, 29, 46, 0.14), transparent 40%);
}
.crono-card:hover {
	border-color: rgba(225, 29, 46, 0.45);
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(225, 29, 46, 0.15);
}
.crono-card:hover::before {
	opacity: 1;
}
.crono-card--link {
	display: flex;
}

.crono-section-title {
	letter-spacing: -0.02em;
	text-wrap: balance;
}
/* Beat Customizer `h2 { font-size: var(--h2-size) !important }` (can be ~4.5rem) */
h2.crono-section-title--sm {
	font-size: 0.75rem !important; /* text-xs */
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
	margin: 0;
}
@media (min-width: 768px) {
	h2.crono-section-title--sm {
		font-size: 0.875rem !important; /* text-sm */
	}
}
.crono-events-carousel .starter-card-title {
	font-size: 0.9375rem;
	line-height: 1.35;
}
@media (min-width: 768px) {
	.crono-events-carousel .starter-card-title {
		font-size: 1rem;
	}
}
.crono-eyebrow {
	display: inline-block;
}

.crono-section-glow {
	background: radial-gradient(ellipse at 10% 0%, rgba(225, 29, 46, 0.12), transparent 55%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.crono-section-glow--right {
	background: radial-gradient(ellipse at 90% 18%, rgba(14, 116, 144, 0.14), transparent 52%);
}

/* Soft handoffs between home sections — no hard border cuts */
.crono-section-blend {
	isolation: isolate;
}
.crono-section-blend::before,
.crono-section-blend::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 5.5rem;
	pointer-events: none;
	z-index: 0;
}
.crono-section-blend > .crono-section-glow {
	z-index: 0;
}
.crono-section-blend > .starter-container,
.crono-section-blend > .crono-events-carousel__track {
	position: relative;
	z-index: 1;
}
.crono-section-blend::before {
	top: 0;
	background: linear-gradient(
		180deg,
		#05070a 0%,
		rgba(5, 7, 10, 0.72) 38%,
		rgba(5, 7, 10, 0.28) 68%,
		transparent 100%
	);
}
.crono-section-blend::after {
	bottom: 0;
	background: linear-gradient(
		0deg,
		#05070a 0%,
		rgba(5, 7, 10, 0.72) 38%,
		rgba(5, 7, 10, 0.28) 68%,
		transparent 100%
	);
}
/* Calendar keeps hero seam clean — only fade into about */
.crono-section-blend--bottom::before {
	content: none;
}
/* Teal glow handoff into rankings — soft cyan wash instead of a cut */
.crono-section-blend--teal::before {
	height: 7rem;
	background: linear-gradient(
		180deg,
		#05070a 0%,
		rgba(5, 7, 10, 0.85) 28%,
		rgba(8, 28, 36, 0.35) 58%,
		transparent 100%
	);
}
@media (min-width: 768px) {
	.crono-section-blend::before,
	.crono-section-blend::after {
		height: 7rem;
	}
	.crono-section-blend--teal::before {
		height: 9rem;
	}
}

/* About — rally rider cutout popping out over section seams */
#about.crono-about {
	isolation: auto;
	z-index: 3;
	overflow: visible;
}
#calendar.crono-section-blend,
#rankings.crono-section-blend {
	z-index: 1;
}

/* Rankings — two group bands (Resultados / Campeonatos) */
.crono-rankings-group .starter-icon-box {
	color: #fbbf24 !important; /* gold trophy — overrides default white icon */
}
.crono-rankings-group__title {
	letter-spacing: 0.12em;
}
.crono-rankings-group + .crono-rankings-group {
	padding-top: 0.25rem;
}
.crono-about > .starter-container {
	overflow: visible;
}
.crono-about-moto {
	overflow: visible;
	z-index: 4;
	isolation: isolate;
}
.crono-about-moto__stage {
	z-index: 0;
	right: 4%;
	top: 12%;
	bottom: 18%;
	width: min(78%, 28rem);
	overflow: hidden;
	border-radius: 0.2rem;
	/* Slight parallelogram — racing slant, not a flat card */
	clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
	background:
		radial-gradient(ellipse 80% 55% at 55% 18%, hsl(var(--primary) / 0.14), transparent 58%),
		linear-gradient(168deg, rgba(18, 22, 28, 0.96) 0%, rgba(6, 8, 12, 0.94) 55%, rgba(10, 14, 18, 0.9) 100%);
	border: 1px solid rgba(255, 255, 255, 0.07);
	box-shadow:
		0 28px 60px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		inset 0 -40px 60px rgba(0, 0, 0, 0.35);
}
/* Motion grain: fine diagonal speed hatch */
.crono-about-moto__stage::before {
	content: "";
	position: absolute;
	inset: -20%;
	z-index: 0;
	background:
		repeating-linear-gradient(
			-18deg,
			transparent 0,
			transparent 11px,
			rgba(255, 255, 255, 0.035) 11px,
			rgba(255, 255, 255, 0.035) 12px
		);
	opacity: 0.85;
	pointer-events: none;
}
/* Hot accent streak + edge vignette */
.crono-about-moto__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(105deg, transparent 58%, hsl(var(--primary) / 0.18) 72%, transparent 86%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.45) 100%);
	pointer-events: none;
}
.crono-about-moto__tracks {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: block;
}
.crono-about-moto__stop-a,
.crono-about-moto__stop-b,
.crono-about-moto__stop-c {
	stop-color: hsl(var(--primary));
}
.crono-about-moto__rails {
	stroke: rgba(255, 255, 255, 0.22);
}
.crono-about-moto__ticks {
	stroke: hsl(var(--primary));
	stroke-opacity: 0.55;
}
.crono-about-moto__accent {
	stroke: hsl(var(--primary));
}
.crono-about-moto__glow {
	z-index: 1;
	background:
		radial-gradient(ellipse at 68% 52%, hsl(var(--primary) / 0.16), transparent 55%),
		radial-gradient(ellipse at 40% 80%, rgba(0, 0, 0, 0.25), transparent 50%);
	opacity: 0.9;
}
.crono-about-moto__frame {
	z-index: 3;
	width: 100%;
	max-width: none;
	will-change: auto;
}
.crono-about-moto.is-parallax .crono-about-moto__frame,
.crono-about-moto.is-parallax .crono-about-moto__stage,
.crono-about-moto.is-parallax .crono-about-moto__shadow {
	will-change: transform;
}
@media (min-width: 1024px) {
	.crono-about-moto__frame {
		width: 132%;
		margin-right: -14%;
		margin-top: -1.5rem;
		margin-bottom: -2.5rem;
	}
	.crono-about-moto__stage {
		right: -2%;
		width: min(86%, 34rem);
	}
}
@media (min-width: 1280px) {
	.crono-about-moto__frame {
		width: 142%;
		margin-right: -18%;
	}
}
.crono-about-moto__img {
	position: relative;
	z-index: 3;
	filter:
		drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55))
		drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.crono-about-moto__shadow {
	z-index: 2;
	left: 18%;
	right: 8%;
	bottom: 8%;
	height: 18%;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.22) 42%, transparent 72%);
	filter: blur(6px);
	transform: scaleY(0.55);
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	.crono-about-moto.is-parallax .crono-about-moto__frame,
	.crono-about-moto.is-parallax .crono-about-moto__stage,
	.crono-about-moto.is-parallax .crono-about-moto__shadow {
		will-change: auto;
	}
}
@media (max-width: 1023px) {
	.crono-about-moto__frame {
		max-width: 28rem;
		margin-inline: auto;
		width: 108%;
		margin-bottom: -1rem;
	}
	.crono-about-moto__stage {
		left: 50%;
		right: auto;
		width: min(88%, 22rem);
		transform: translateX(-50%);
	}
	.crono-about-moto__shadow {
		left: 22%;
		right: 22%;
		bottom: 10%;
	}
}

/* Thin utility bar above main nav */
.starter-header-utility {
	background: #070a0e;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: rgba(248, 250, 252, 0.72);
	font-size: 0.6875rem;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.starter-header-utility__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem 1rem;
	min-height: 1.75rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	white-space: nowrap;
}
.starter-header-utility__nav::-webkit-scrollbar {
	display: none;
}
.starter-header-utility__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0;
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
	flex-shrink: 0;
}
.starter-header-utility__link:hover {
	color: #F8FAFC;
}

/* Primary nav (desktop + mobile) — uppercase top-level only */
.starter-nav > li > a,
.starter-nav > li > .menu-item-row > a {
	text-transform: uppercase;
	letter-spacing: -0.02em;
	font-size: 0.8125rem;
}
.starter-nav .sub-menu a {
	text-transform: none;
	letter-spacing: normal;
}
.starter-header-utility__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	opacity: 0.85;
}
.starter-header-utility__icon .starter-icon {
	width: 14px;
	height: 14px;
}
@media (max-width: 639px) {
	.starter-header-utility__nav {
		justify-content: flex-start;
		gap: 0.15rem 0.85rem;
		min-height: 1.625rem;
	}
	.starter-header-utility__link--hide-sm {
		display: none;
	}
}

/* Header transitions — exclude border to avoid light-line flash */
#main-header.starter-header-transition {
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* No bottom border/line under header (avoids flash on scroll) */
#main-header,
#main-header.is-scrolled,
#main-header[data-header-style="transparent"],
#main-header[data-header-style="transparent"].is-scrolled,
#main-header[data-header-style="glass"].is-scrolled,
#main-header[data-header-style="solid-light"].is-scrolled,
#main-header[data-header-style="solid-dark"].is-scrolled {
	border-bottom: none !important;
	border-bottom-width: 0 !important;
}

/* Transparent header: dark→transparent scrim over hero; scrolled = solid dark glass */
#main-header[data-header-style="transparent"]:not(.is-scrolled) {
	background: linear-gradient(
		180deg,
		rgba(7, 10, 14, 0.9) 0%,
		rgba(7, 10, 14, 0.55) 48%,
		rgba(7, 10, 14, 0.18) 78%,
		rgba(7, 10, 14, 0) 100%
	) !important;
	color: #fff !important;
	box-shadow: none !important;
}
#main-header[data-header-style="transparent"]:not(.is-scrolled) .starter-header-utility {
	background: transparent;
	backdrop-filter: none;
	border-bottom-color: rgba(255, 255, 255, 0.06);
}
#main-header[data-header-style="transparent"].is-scrolled {
	background: rgba(11, 15, 20, 0.88) !important;
	color: #F8FAFC !important;
	backdrop-filter: blur(16px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
#main-header[data-header-style="transparent"].is-scrolled .starter-header-utility {
	background: transparent;
}
#main-header[data-header-style="transparent"].is-scrolled .starter-nav a,
#main-header[data-header-style="transparent"].is-scrolled .starter-nav .menu-item-row a,
#main-header[data-header-style="transparent"].is-scrolled nav ul li a {
	color: #F8FAFC !important;
}

#main-header .custom-logo-link {
	max-height: 3.25rem;
}
#main-header .custom-logo-link img,
#main-header .custom-logo {
	max-height: 3.25rem !important;
	max-width: 13rem;
}
@media (min-width: 768px) {
	#main-header .custom-logo-link { max-height: 3.75rem; }
	#main-header .custom-logo-link img,
	#main-header .custom-logo {
		max-height: 3.75rem !important;
		max-width: 15rem;
	}
}

/* Dark page chrome */
body {
	background-color: hsl(var(--background));
}
#mobile-menu {
	background: rgba(11, 15, 20, 0.96) !important;
	color: #F8FAFC;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dark token overrides (Customizer card defaults to white) */
body {
	--card: 222 22% 9%;
	--card-foreground: 210 40% 98%;
	--muted: 222 18% 12%;
	--muted-foreground: 215 15% 65%;
	--border: 215 12% 18%;
	--card-bg: hsl(222 22% 9%);
	--card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
	color-scheme: dark;
}
.starter-card {
	background: var(--card-bg) !important;
	border-color: hsl(var(--border));
	color: hsl(var(--card-foreground));
}

/* Form controls — select / date readable on dark UI (theme + .starter-input) */
.starter-input[type="date"],
.starter-input[type="datetime-local"],
.starter-input[type="time"],
select.starter-input {
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	color-scheme: dark;
}
select.starter-input option {
	background-color: hsl(var(--card));
	color: hsl(var(--foreground));
}
select.starter-input option:checked,
select.starter-input option:hover {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}
.starter-input[type="date"]::-webkit-calendar-picker-indicator,
.starter-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.starter-input[type="time"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.95;
}


.page-header {
    background: linear-gradient(180deg, black, transparent);
}