/* ════════════════════════════════════════════════════════════════════════
   MOTLogs public marketing site theme.

   Uses the SAME design tokens as the member area (defined in member.css at
   :root / html[data-theme="light"]), so the pre-login pages support the exact
   same light + dark options and palette. Everything is scoped under
   `.public-shell` (PublicNavBar layout root). No hardcoded beige/navy/white —
   the marketing section/card classes are re-mapped onto the tokens.
   ════════════════════════════════════════════════════════════════════════ */

/* Inter is self-hosted: @font-face for "InterVariable"/"Inter" is declared in
   App.razor and served from /fonts/InterVariable.woff2 (no Google Fonts). */

.public-shell {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.public-shell .main-content { background-color: var(--bg-primary); }

/* ── Typography ── */
.public-shell h1, .public-shell h2, .public-shell h3,
.public-shell h4, .public-shell h5, .public-shell h6 {
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}
.public-shell a { color: var(--accent); text-decoration: none; }
.public-shell a:hover { color: var(--accent-hover); }

/* Marketing type scale — matched to the Agent (h1/h2/h3 clamps, lead size). */
.public-shell { font-size: 16px; }
.public-shell .main-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem) !important; line-height: 1.1; }
.public-shell .main-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important; line-height: 1.2; }
.public-shell .main-content h3 { font-size: 1.25rem !important; line-height: 1.3; }
.public-shell .main-content p { font-size: 1rem; line-height: 1.6; }

/* Navbar links + Sign In button — force visible colours (deterministic, beats
   the layout's own conflicting rules). Nav size matched to the Agent (0.95rem). */
.public-shell .custom-appbar-button { color: var(--text-secondary) !important; font-size: 0.95rem !important; }
.public-shell .custom-appbar-button:hover { color: var(--text-primary) !important; }
/* Log in = ghost button (bold text-primary on transparent, strong border) — matches
   Agent's marketing .btn-ghost. */
.public-shell .login,
.public-shell .custom-appbar-button.login {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 8px !important;
}
.public-shell .login:hover { background: var(--bg-elevated) !important; color: var(--text-primary) !important; }

/* No focus ring on mouse click (Bootstrap-3 legacy a:focus ring showed white);
   keyboard users keep an accent :focus-visible ring. */
.public-shell .custom-appbar-button:focus,
.public-shell .nav-dropdown-toggle:focus,
.public-shell .pb-theme-toggle:focus { outline: none !important; }
.public-shell .custom-appbar-button:focus-visible,
.public-shell .nav-dropdown-toggle:focus-visible,
.public-shell .pb-theme-toggle:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }

/* ── Buttons → accent ── */
.public-shell .btn-primary, .public-shell .btn.btn-primary,
.public-shell .custom-button, .public-shell .pricing-button, .public-shell .cta-button {
    background-color: var(--ml-cta-bg) !important;
    border-color: var(--ml-cta-bg) !important;
    color: var(--ml-cta-text) !important;
    border-radius: 8px !important;
    font-weight: 600;
    transition: all 0.2s ease;
}
.public-shell .btn-primary:hover, .public-shell .custom-button:hover,
.public-shell .cta-button:hover {
    background-color: var(--ml-cta-bg-hover) !important;
    border-color: var(--ml-cta-bg-hover) !important;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ── Full-width band / page wrappers: beige & navy → blend into the canvas ── */
.public-shell .about-page,
.public-shell .faq-page,
.public-shell .page-wrapper,
.public-shell .section-box,
.public-shell .contact-section,
.public-shell .rounded-section,
.public-shell .services-band-section,
.public-shell .reporting-band-section,
.public-shell .partners-section,
.public-shell .pricing-section,
.public-shell .privacy-section,
.public-shell .terms-section,
.public-shell .blog-section,
.public-shell .demo-section,
.public-shell .faq-header,
.public-shell .faq-section,
.public-shell .stats {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border-color: var(--border) !important;
}

/* ── Cards / boxes: white → elevated surface ── */
.public-shell .contact-inner-container,
.public-shell .demo-column,
.public-shell .faq-header-content,
.public-shell .white-box,
.public-shell .blog-card,
.public-shell .module,
.public-shell .services-box,
.public-shell .kb-carousel,
.public-shell .carousel-sample,
.public-shell .card, .public-shell .panel {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    color: var(--text-secondary) !important;
    box-shadow: var(--shadow-1);
}

/* ── Text inside marketing sections → theme-aware (kills hardcoded navy/black/#555) ── */
.public-shell .about-page :is(p, li, span, td, th, label, dd, dt, small, strong, em, blockquote),
.public-shell .faq-page :is(p, li, span, td, th, label),
.public-shell .section-box :is(p, li, span, td, th, label),
.public-shell .blog-card :is(p, li, span),
.public-shell .contact-inner-container :is(p, li, span, address) {
    color: var(--text-secondary) !important;
}

/* ── Re-assert accents on top of the broad text override ── */
/* Exclude filled brand buttons — they carry white text on an accent fill and
   must NOT be recoloured to accent-on-accent (invisible label). */
.public-shell .main-content a:not(.pl-cta):not(.product-open):not(.login):not(.custom-appbar-button):not(.custom-appbar-wordmark):not(.chrome-link),
.public-shell .accent, .public-shell [class*="accent"],
.public-shell .price, .public-shell [class*="price-amount"] { color: var(--accent) !important; }

/* Nav links stay standard grey (like Agent), not accent. */
.public-shell .custom-appbar-button { color: var(--text-secondary) !important; text-decoration: none !important; }
.public-shell .custom-appbar-button:hover { color: var(--text-primary) !important; }

/* Filled brand buttons: accent fill, white label (beats the broad anchor rule). */
.public-shell .pl-cta {
    background-color: var(--ml-cta-bg) !important;
    color: var(--ml-cta-text) !important;
}

/* Small navy badges/tags → accent chip. */
.public-shell .blog-card-category,
.public-shell .badge, .public-shell .tag {
    background: var(--ml-cta-bg) !important;
    color: var(--ml-cta-text) !important;
    border-radius: 999px !important;
}
.public-shell .blog-card-category :is(span, p) { color: var(--ml-cta-text) !important; }

/* ── Inputs ── */
.public-shell input:not([type=checkbox]):not([type=radio]):not(.ml-input),
.public-shell select, .public-shell textarea {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}
.public-shell input::placeholder, .public-shell textarea::placeholder { color: var(--text-muted); }

/* ════════════════════ Per-page hardcoded colours (full site sweep) ════════════════════
   Selectors gathered by walking every marketing page's <style> block. These
   carried hardcoded navy #050A30 / grey / black / white that broke in dark
   mode; re-mapped onto the tokens. White-on-image and white-on-accent text
   (hero slides, CTA buttons, badges) is intentionally left untouched. */

/* Navy/dark titles → primary text. */
.public-shell .reporting-heading, .public-shell .reporting-report-title,
.public-shell .reporting-section-header h2, .public-shell .services-section-header h2,
.public-shell .section-header h2, .public-shell .section-header h5,
.public-shell .partners-header h2, .public-shell .module-text h3,
.public-shell .faq-column h2, .public-shell .contact-text h2,
.public-shell .contact-info i, .public-shell .blog-card-content h2,
.public-shell .code-display, .public-shell .price,
.public-shell .country-detail-container .heading {
    color: var(--text-primary) !important;
}

/* Grey/black body copy → secondary text. */
.public-shell .blog-card-content p, .public-shell .blog-card-date,
.public-shell .description, .public-shell .faq-header-content p,
.public-shell .features-list li, .public-shell .module-text,
.public-shell .module-text li, .public-shell .module-text ul,
.public-shell .partners-header, .public-shell .partners-header p,
.public-shell .partners-section, .public-shell .price span,
.public-shell .reporting-description, .public-shell .reporting-report-description,
.public-shell .reporting-section-header p, .public-shell .section-header p,
.public-shell .services-box p, .public-shell .services-box ul,
.public-shell .services-section-header p, .public-shell .contact-text,
.public-shell .about-page, .public-shell .switch-form,
.public-shell .country-detail-container .description {
    color: var(--text-secondary) !important;
}

/* White boxes → elevated surface. */
.public-shell .pricing-card, .public-shell .logo-carousel,
.public-shell .kb-carousel, .public-shell .services-box, .public-shell .module {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    border-radius: 12px !important;
}

/* Stats band → elevated surface (was navy with white text). */
.public-shell .stats { background: var(--bg-elevated) !important; border: 1px solid var(--border) !important; }
.public-shell .stats, .public-shell .stats * { color: var(--text-primary) !important; }

/* Beige/blue link + carousel accents → brand accent. */
.public-shell .swiper-button-prev, .public-shell .swiper-button-next,
.public-shell .switch-form a,
.public-shell .kb-carousel .e-carousel-navigators .e-btn-icon,
.public-shell .kb-carousel .e-carousel-navigators .e-play-pause .e-btn:not(:disabled) .e-btn-icon {
    color: var(--accent) !important;
}

/* CTA buttons that keep white text → accent background.
   (.login-button/.register-button/.action-button/.copy-button now carry .ml-btn--primary, which uses the AA --ml-cta-bg.) */
.public-shell .get-started-btn {
    background: var(--ml-cta-bg) !important;
    color: var(--ml-cta-text) !important;
    border-color: var(--ml-cta-bg) !important;
    border-radius: 8px !important;
}
.public-shell .get-started-btn:hover { background: var(--ml-cta-bg-hover) !important; }

/* ── Dark line-art icons: invert in dark theme so they don't vanish on dark
   cards. Only the sketch/icon images — customer logos, thumbnails and full
   screenshots (photos) are left untouched. ── */
html[data-theme="dark"] .public-shell .pricing-icon,
html[data-theme="dark"] .public-shell .services-icon,
html[data-theme="dark"] .public-shell .doodle-image {
    filter: invert(1) brightness(1.7);
}

/* ════════════════════ Sign-in / register page ════════════════════
   Match the Agent back-office: dark canvas, a framed form card, dark inputs,
   and the promo graphic inverted so it reads on dark instead of a white slab. */
.public-shell .page-wrapper { background: var(--bg-primary) !important; }
.public-shell .side-container { background: transparent !important; }
.public-shell .auth-frame { background: transparent !important; box-shadow: none !important; }
.public-shell .white-box.form-container,
.public-shell .white-box {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-2) !important;
}
html[data-theme="dark"] .public-shell .left-side .doodle-image { filter: invert(1) hue-rotate(180deg) brightness(1.15); }

/* ════════════════════ Broad text normalisation ════════════════════
   The marketing pages hardcode navy/black/grey text on hundreds of selectors.
   Rather than chase each class, normalise all body text under .main-content to
   the tokens, then re-assert the intentional exceptions (accent links, white
   text on accent buttons and on hero images). */
.public-shell .main-content :is(h1, h2, h3, h4, h5, h6),
.public-shell .main-content .price,
.public-shell .main-content .heading {
    color: var(--text-primary) !important;
}
.public-shell .main-content :is(p, li, span, td, th, label, small, em, dd, dt, address, figcaption, blockquote, strong) {
    color: var(--text-secondary) !important;
}

/* Re-assert: accent links. */
.public-shell .main-content a:not(.btn):not([class*="button"]):not(.login):not(.product-open):not(.pl-cta):not(.chrome-link) { color: var(--accent) !important; }
.public-shell .main-content a:not(.btn):not([class*="button"]):not(.login):not(.product-open):not(.pl-cta):not(.chrome-link):hover { color: var(--accent-hover) !important; }

/* Re-assert: white text on hero images stays white. */
.public-shell .background-image-slide, .public-shell .background-image-slide :is(h1,h2,h3,p,span),
.public-shell .text-container, .public-shell .text-container :is(h1,h2,h3,p,span),
.public-shell .hero-text, .public-shell .hero-text :is(h1,h2,h3,p,span) { color: #fff !important; }

/* Re-assert: accent-filled buttons / badges take the CTA ink (white on MOTLogs orange; #121212 on the dark-theme
   team.help palettes, whose CTA fill is the light accent). Other .btn and .login keep the previous white re-assert.
   :where() keeps both rules at the old (0,2,0) specificity so nothing else in the cascade changes. */
.public-shell :is(.btn-primary, .badge, .tag, .blog-card-category, .get-started-btn, .cta-button),
.public-shell :is(.btn-primary, .badge, .tag, .blog-card-category) :is(span, i, b) { color: var(--ml-cta-text) !important; }
.public-shell :is(.btn:where(:not(.btn-primary)), .login),
.public-shell :is(.btn:where(:not(.btn-primary)), .login) :is(span, i, b) { color: #fff !important; }

/* ════════════════════ FAQ accordion (Agent style) ════════════════════
   Syncfusion's light theme paints the expanded item blue — override to keep it
   a dark surface card, and swap the chevron for an orange +/- toggle. */
.public-shell .custom-accordion .e-acrdn-item {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
}
.public-shell .custom-accordion .e-acrdn-item.e-selected,
.public-shell .custom-accordion .e-acrdn-item.e-select.e-expand-state,
.public-shell .custom-accordion .e-acrdn-item.e-expand-state {
    border-color: var(--border-strong) !important;
}
/* Header stays dark on hover / focus / expanded (never blue). */
.public-shell .custom-accordion .e-acrdn-header,
.public-shell .custom-accordion .e-acrdn-header:hover,
.public-shell .custom-accordion .e-acrdn-header:focus,
.public-shell .custom-accordion .e-acrdn-item.e-select.e-selected.e-expand-state > .e-acrdn-header,
.public-shell .custom-accordion .e-acrdn-item.e-select.e-expand-state > .e-acrdn-header,
.public-shell .custom-accordion .e-acrdn-item.e-expand-state > .e-acrdn-header {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.public-shell .custom-accordion .e-acrdn-header .e-acrdn-header-content,
.public-shell .custom-accordion .e-acrdn-item.e-expand-state .e-acrdn-header-content {
    color: var(--text-primary) !important;
}
.public-shell .custom-accordion .e-acrdn-panel .e-acrdn-content,
.public-shell .custom-accordion .e-acrdn-content { color: var(--text-secondary) !important; }

/* Orange + / − toggle (replaces the chevron). */
.public-shell .custom-accordion .e-toggle-icon .e-icons { display: none !important; }
.public-shell .custom-accordion .e-acrdn-header .e-toggle-icon::before {
    content: "+";
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
}
.public-shell .custom-accordion .e-acrdn-item.e-expand-state .e-acrdn-header .e-toggle-icon::before {
    content: "\2212";
    color: var(--accent);
}

/* Robust dark override keyed on the Syncfusion accordion root itself (the
   .custom-accordion class does not always land where its descendant selectors
   expect, and the .e-accordion ROOT paints white in the light theme). */
.public-shell .e-accordion {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.public-shell .e-accordion .e-acrdn-item {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
}
.public-shell .e-accordion .e-acrdn-item.e-selected,
.public-shell .e-accordion .e-acrdn-item.e-expand-state { border-color: var(--border-strong) !important; }
.public-shell .e-accordion .e-acrdn-header,
.public-shell .e-accordion .e-acrdn-header:hover,
.public-shell .e-accordion .e-acrdn-header:focus,
.public-shell .e-accordion .e-acrdn-item.e-expand-state > .e-acrdn-header {
    background: transparent !important;
    box-shadow: none !important;
}
.public-shell .e-accordion .e-acrdn-header .e-acrdn-header-content { color: var(--text-primary) !important; }
.public-shell .e-accordion .e-acrdn-panel .e-acrdn-content,
.public-shell .e-accordion .e-acrdn-content { color: var(--text-secondary) !important; }
.public-shell .e-accordion .e-toggle-icon .e-icons { display: none !important; }
.public-shell .e-accordion .e-acrdn-header .e-toggle-icon::before {
    content: "+"; font-family: 'Inter', -apple-system, sans-serif; font-size: 1.6rem;
    font-weight: 400; line-height: 1; color: var(--accent);
}
.public-shell .e-accordion .e-acrdn-item.e-expand-state .e-acrdn-header .e-toggle-icon::before { content: "\2212"; color: var(--accent); }

/* ── Themed scrollbar (matches member area) ── */
.public-shell ::-webkit-scrollbar { width: 8px; height: 8px; }
.public-shell ::-webkit-scrollbar-track { background: var(--bg-primary); }
.public-shell ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.public-shell ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Product landing pages (/agent/, /scout/) — hub-and-spoke ── */
.public-shell .product-landing {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

.public-shell .pl-eyebrow {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.public-shell .product-landing h1 { margin-bottom: 12px; }

.public-shell .pl-tagline {
    font-size: 1.25rem !important;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.public-shell .pl-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.public-shell .pl-benefits li {
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

.public-shell .pl-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.public-shell .pl-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.public-shell .pl-cta {
    background-color: var(--ml-cta-bg) !important;
    color: var(--ml-cta-text) !important;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.public-shell .pl-cta:hover {
    background-color: var(--ml-cta-bg-hover) !important;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.public-shell .pl-back {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
}

.public-shell .pl-back:hover { color: var(--text-primary); }

/* ── 404 (router NotFound) ── */
.public-shell .nf-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 100px 24px 120px;
    text-align: center;
}

.public-shell .nf-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.public-shell .nf-wrap p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 16px 0 28px;
}

/* ═══ Home hero — MOT bay entry (scoped to .bay-hero) ═══ */
.bay-hero {
    background: radial-gradient(900px 420px at 80% 30%, color-mix(in srgb, var(--ml-n-4) 35%, transparent), transparent 70%), var(--ml-n-0);
    color: var(--ml-n-8);
    border-bottom: 1px solid var(--ml-n-3);
    padding: clamp(40px, 7vw, 96px) 24px;
}
.bay-hero__inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px); align-items: center;
}
.bay-hero__eyebrow {
    margin: 0 0 14px; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ml-n-6); font-weight: 600;
}
.bay-hero h1 {
    margin: 0 0 18px; color: var(--ml-n-8);
    font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em;
}
.bay-hero__sub { margin: 0 0 28px; max-width: 34em; font-size: 1.125rem; line-height: 1.55; color: var(--ml-n-7); }
.bay-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.bay-hero__button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
    border-radius: 6px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
    transition: background-color .15s, border-color .15s;
}
.bay-hero__button--primary { background: var(--ml-cta-bg); color: var(--ml-cta-text); }
.bay-hero__button--primary:hover { background: var(--ml-cta-bg-hover); color: var(--ml-cta-text); }
.bay-hero__button--secondary { background: transparent; color: var(--ml-n-8); border-color: var(--ml-n-5); }
.bay-hero__button--secondary:hover { background: var(--ml-n-2); border-color: var(--ml-n-6); color: var(--ml-n-8); }
.bay-hero__button:focus-visible { outline: 2px solid var(--ml-cta-bg); outline-offset: 3px; }
.bay-hero__private { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .9375rem; color: var(--ml-n-7); }
.bay-hero__lock { flex: none; }
.bay-hero__promo { margin: 10px 0 0; font-size: .9375rem; color: var(--ml-n-6); }
@media (max-width: 860px) {
    .bay-hero__inner { grid-template-columns: 1fr; }
    .bay-hero { padding: 36px 20px 48px; }
    .bay-hero__button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .bay-hero__button { transition: none; } }
/* Out-rank the global .main-content a:not(...) accent rules (!important, ~7 classes) */
.public-shell .main-content .bay-hero a.bay-hero__button.bay-hero__button.bay-hero__button.bay-hero__button.bay-hero__button--primary,
.public-shell .main-content .bay-hero a.bay-hero__button.bay-hero__button.bay-hero__button.bay-hero__button.bay-hero__button--primary:hover { color: var(--ml-cta-text) !important; }
.public-shell .main-content .bay-hero a.bay-hero__button.bay-hero__button.bay-hero__button.bay-hero__button.bay-hero__button--secondary { color: var(--ml-n-8) !important; }

/* ═══ SEO / conversion pass (council-2) ═══ */

/* Filled CTAs: white label needs >= 4.5:1, so use the same deeper orange as the hero button
   (#D33814) instead of the brand #FF5432 (3.2:1). The "pricing-button" class exempts the
   anchor from the global accent-link rule. */
.public-shell .get-started-btn {
    background: var(--ml-cta-bg) !important;
    background-color: var(--ml-cta-bg) !important;
    border-color: var(--ml-cta-bg) !important;
    color: var(--ml-cta-text) !important;
}
.public-shell .get-started-btn:hover { background: var(--ml-cta-bg-hover) !important; background-color: var(--ml-cta-bg-hover) !important; border-color: var(--ml-cta-bg-hover) !important; }
.public-shell a.get-started-btn { display: inline-block; text-decoration: none; text-align: center; }
.public-shell .product-open { display: inline-block; }

/* /pricing: h1 carries the page topic; card names are h2 and keep the old h3 look. */
.public-shell .section-header h1 { font-size: 2.5rem; margin-bottom: 10px; color: var(--text-primary) !important; }
.public-shell .pricing-card .pricing-card__name { font-size: 1.6rem; margin-bottom: 10px; color: var(--text-primary); }
.public-shell .pricing-note { text-align: center; max-width: 760px; margin: 28px auto 0; color: var(--text-secondary); }
.public-shell .pricing-card .get-started-btn { margin-bottom: 20px; padding: 10px 25px; border-radius: 8px; font-weight: 700; }

/* /faq: native details/summary so answers are in the server HTML and work without JS. */
.public-shell .faq-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.public-shell .faq-item summary {
    cursor: pointer; list-style: none; position: relative;
    padding: 14px 44px 14px 16px; font-weight: 600; color: var(--text-primary);
}
.public-shell .faq-item summary::-webkit-details-marker { display: none; }
.public-shell .faq-item summary::after {
    content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: var(--accent); font-size: 1.4rem; line-height: 1;
}
.public-shell .faq-item[open] summary::after { content: "\2212"; }
.public-shell .faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.public-shell .faq-item p { margin: 0; padding: 0 16px 16px; color: var(--text-secondary); line-height: 1.55; }

/* Hero promo line: link to the booking URL. */
.bay-hero__promo a { text-decoration: underline; text-underline-offset: 2px; }

/* Testimonials (renders only when Marketing:Testimonials is set) */
.public-shell .ml-testi { max-width: 1100px; margin: 48px auto; padding: 0 20px; }
.public-shell .ml-testi--compact { margin: 32px auto; }
.public-shell .ml-testi__h { font-size: 1.75rem; text-align: center; margin-bottom: 20px; color: var(--text-primary) !important; }
.public-shell .ml-testi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.public-shell .ml-testi__card { margin: 0; padding: 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; }
.public-shell .ml-testi__card blockquote { margin: 0 0 14px; }
.public-shell .ml-testi__card blockquote p { margin: 0; color: var(--text-primary) !important; }
.public-shell .ml-testi__card figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.public-shell .ml-testi__logo { height: 32px; width: auto; max-width: 96px; object-fit: contain; }
html[data-theme="dark"] .public-shell .ml-testi__logo { background: #fff; padding: 4px 6px; border-radius: 6px; }

/* Demo video slot (renders only when Marketing:DemoVideoUrl is set) */
.public-shell .ml-video { max-width: 960px; margin: 48px auto; padding: 0 20px; }
.public-shell .ml-video__h { font-size: 1.75rem; text-align: center; margin-bottom: 20px; color: var(--text-primary) !important; }
.public-shell .ml-video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.public-shell .ml-video__frame iframe, .public-shell .ml-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.public-shell .pricing-card h2.pricing-card__name { font-size: 1.6rem !important; line-height: 1.2; margin-bottom: 10px; }
.public-shell .main-content a.get-started-btn.pricing-button,
.public-shell .main-content a.get-started-btn.pricing-button:hover { color: var(--ml-cta-text) !important; }
.public-shell .main-content a.get-started-btn.get-started-btn.get-started-btn.get-started-btn.get-started-btn.get-started-btn.get-started-btn.get-started-btn,
.public-shell .main-content a.get-started-btn.get-started-btn.get-started-btn.get-started-btn.get-started-btn.get-started-btn.get-started-btn.get-started-btn:hover { color: var(--ml-cta-text) !important; }


/* ════════════════ Reports carousel (home) ════════════════
   Scroll-snap track + prev/next + dots (js/public.js). Replaces the Syncfusion SfCarousel so the home page
   ships no Syncfusion CSS/JS. Colours/surface still come from the .kb-carousel rules above. */
.public-shell .kb-carousel { position: relative; }
.public-shell .kb-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.public-shell .kb-track::-webkit-scrollbar { display: none; }
.public-shell .kb-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.public-shell .kb-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.public-shell .kb-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border-strong, var(--border)); background: var(--bg-elevated, var(--bg-surface));
    color: var(--accent); font-size: 26px; line-height: 1; cursor: pointer;
    opacity: 0; transition: opacity .15s ease;
}
.public-shell .kb-btn--prev { left: 8px; }
.public-shell .kb-btn--next { right: 8px; }
.public-shell .kb-carousel:hover .kb-btn, .public-shell .kb-carousel:focus-within .kb-btn { opacity: 1; }
@media (hover: none) { .public-shell .kb-btn { opacity: .85; } }
.public-shell .kb-btn:focus-visible, .public-shell .kb-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.public-shell .kb-dots { display: flex; justify-content: center; gap: 4px; padding-top: 4px; }
.public-shell .kb-dot {
    width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative;
}
.public-shell .kb-dot::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: var(--border-strong, #888); transition: background .15s ease;
}
.public-shell .kb-dot[aria-current="true"]::after { background: var(--accent); }

/* Native switch (pricing Monthly / Yearly; replaces SfSwitch). */
.public-shell .pl-switch {
    -webkit-appearance: none; appearance: none; position: relative; vertical-align: middle;
    width: 44px; height: 24px; margin: 0 6px; border-radius: 12px; cursor: pointer;
    background: var(--border-strong, #666); border: 1px solid var(--border-strong, #666); transition: background .15s ease;
}
.public-shell .pl-switch::before {
    content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; transition: transform .15s ease;
}
.public-shell .pl-switch:checked { background: var(--accent); border-color: var(--accent); }
.public-shell .pl-switch:checked::before { transform: translateX(20px); }
.public-shell .pl-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Page width: legacy pages (About, product pages, blog posts, Privacy/Terms) set max-width:100%, so
      their text ran edge to edge on wide screens while redesigned pages sit in a centred column.
      Same column as Home/FAQ (1200px); blog posts get the Guides reading measure. Site font throughout. ── */
.public-shell .about-page,
.public-shell .privacy-section,
.public-shell .terms-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    font-family: inherit;
}
.public-shell .about-page.blog-article { max-width: 784px; }   /* 736px text + gutters, as .guide */
.public-shell .about-page.blog-article img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
    .public-shell .about-page,
    .public-shell .privacy-section,
    .public-shell .terms-section { padding-left: 16px; padding-right: 16px; }
}
.public-shell .about-page.blog-article :is(h4, h5, h6) { line-height: 1.45; margin-bottom: 0.75em; }

/* ════════════════ Report charts (home carousel, Shared/ReportChart.razor) ════════════════
   SVG charts drawn from sample data; every colour is a token so they follow light/dark. */
.public-shell .rc {
    --rc-blue: var(--mot-reviewed);
    --rc-good: var(--risk-good, #2fbf71);
    --rc-warn: var(--risk-med, #e0a030);
    --rc-track: var(--border, rgba(127,127,127,.2));
    margin: 0; padding: 18px 20px 14px; text-align: left;
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.public-shell .rc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.public-shell .rc-title { color: var(--text-primary); font-weight: 600; font-size: .95rem; }
.public-shell .rc-tag {
    font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px;
}
.public-shell .rc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.public-shell .rc-kpis > div { background: var(--bg-elevated, var(--bg-primary)); border-radius: 10px; padding: 8px 12px; }
.public-shell .rc-kpis b { display: block; color: var(--text-primary); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.public-shell .rc-kpis b.up { color: var(--rc-good); }
.public-shell .rc-kpis b.warn { color: var(--rc-warn); }
.public-shell .rc-kpis span { color: var(--text-muted); font-size: .75rem; }
.public-shell .rc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.public-shell .rc-svg text { font-family: inherit; }
.public-shell .rc-grid { stroke: var(--border); stroke-width: 1; }
.public-shell .rc-axis { fill: var(--text-muted); font-size: 11px; }
.public-shell .rc-cat { fill: var(--text-secondary); font-size: 13px; }
.public-shell .rc-num { fill: var(--text-primary); font-size: 12px; font-weight: 600; }
.public-shell .rc-callout { fill: var(--rc-good); font-size: 14px; font-weight: 700; }
.public-shell .rc-big { fill: var(--text-primary); font-size: 30px; font-weight: 700; }
.public-shell .rc-small { fill: var(--text-muted); font-size: 12px; }
.public-shell .rc-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.public-shell .rc-dash { stroke-dasharray: 6 5; stroke-width: 2; }
.public-shell .rc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .8rem; color: var(--text-secondary); }
.public-shell .rc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.public-shell .rc-legend i.dash { width: 16px; height: 0; border-top: 2px dashed var(--text-muted); border-radius: 0; vertical-align: 3px; }
.public-shell .rc-legend i.tick { width: 2px; height: 12px; background: var(--text-primary); border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
    .public-shell .rc-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: rc-draw 1.4s ease-out forwards; }
    .public-shell .rc-dash { stroke-dasharray: 6 5; stroke-dashoffset: 0; animation: none; }
    .public-shell .rc-bar { transform-box: fill-box; transform-origin: left; animation: rc-grow .9s ease-out both; }
    @keyframes rc-draw { to { stroke-dashoffset: 0; } }
    @keyframes rc-grow { from { transform: scaleX(0); } }
}
@media (max-width: 560px) {
    /* The SVG scales down ~3x on a phone, so its text is set larger in SVG units to stay legible. */
    .public-shell .rc { padding: 14px 12px 10px; }
    .public-shell .rc-head { flex-wrap: wrap; }
    .public-shell .rc-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .public-shell .rc-kpis > div { padding: 6px 10px; }
    .public-shell .rc-kpis > div:nth-child(3) { display: none; }
    .public-shell .rc-kpis b { font-size: 1.05rem; }
    .public-shell .rc-kpis span { font-size: .7rem; line-height: 1.3; display: block; }
    .public-shell .kb-carousel { padding: 10px 4px; }
    /* Arrows move down beside the dots so they never cover the chart. */
    .public-shell .kb-btn { top: auto; bottom: 6px; transform: none; width: 34px; height: 34px; font-size: 22px; }
    .public-shell .reporting-country-detail-container { padding: 8px 4px; }
    .public-shell .rc-axis { font-size: 22px; }
    .public-shell .rc-alt { display: none; }
    .public-shell .rc-cat, .public-shell .rc-num { font-size: 24px; }
    .public-shell .rc-big { font-size: 38px; }
    .public-shell .rc-small { font-size: 18px; }
    .public-shell .rc-callout { font-size: 24px; }
    .public-shell .rc-line { stroke-width: 4; }
}

/* ═══ Home refresh: framed product shot, "Your month in 60 seconds" (all HTML/CSS, sample data) ═══
   Global .public-shell rules force colours on p/li/span/strong/a with !important, so text here is
   div/i/b and colours are re-asserted at higher specificity. No class contains "accent"/"button". */
.public-shell .main-content .bay-hero .bay-hero__promo a.hm-lnk.hm-lnk.hm-lnk.hm-lnk.hm-lnk.hm-lnk { color: var(--ml-n-8) !important; text-decoration: underline; text-underline-offset: 3px; }
.hm-shot-wrap { perspective: 1400px; min-width: 0; }
.hm-shot, .hm-panel {
    background: var(--ml-n-1); border: 1px solid var(--ml-n-4); border-radius: 20px; padding: 14px;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); text-align: left; min-width: 0;
}
html[data-theme="light"] .hm-shot, html[data-theme="light"] .hm-panel { box-shadow: 0 24px 56px -28px rgba(20,30,50,.35); }
.hm-shot { transform: rotateX(7deg) rotateY(-8deg); transform-origin: 60% 50%; }
.hm-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-bottom: 10px; background: var(--ml-n-2); border: 1px solid var(--ml-n-3); border-radius: 10px; }
.public-shell .main-content .hm-bar__t { font-size: .8125rem; font-weight: 600; color: var(--ml-n-8) !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-shell .main-content .hm-tag { flex: none; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--ml-n-4); color: var(--ml-n-7) !important; }
.hm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.hm-kpi { padding: 10px 12px; background: var(--ml-n-2); border: 1px solid var(--ml-n-3); border-radius: 10px; min-width: 0; }
.hm-kpi--flag { border-color: var(--mot-risk); }
.public-shell .main-content .hm-kpi__l { font-size: .6875rem; color: var(--ml-n-6) !important; }
.public-shell .main-content .hm-kpi__v { font-size: 1.5rem; line-height: 1.2; font-weight: 700; color: var(--ml-n-8) !important; font-variant-numeric: tabular-nums; }
.public-shell .main-content .hm-kpi__d { font-size: .6875rem; color: var(--ml-n-6) !important; font-variant-numeric: tabular-nums; }
.public-shell .main-content .hm-kpi__d.hm-good { color: var(--mot-pass-text) !important; }
.public-shell .main-content .hm-kpi__d.hm-amber { color: var(--mot-risk-text) !important; }
.hm-rows, .hm-table { display: grid; gap: 6px; }
.hm-row, .hm-trow {
    display: grid; align-items: center; gap: 4px 10px; padding: 9px 12px 9px 14px; position: relative; overflow: hidden;
    background: var(--ml-n-2); border: 1px solid var(--ml-n-3); border-radius: 10px;
}
.hm-row { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
.hm-row::before, .hm-trow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ml-n-5); }
.hm-row--high::before, .hm-trow:first-child::before { background: var(--mot-risk); }
.hm-row--med::before { background: var(--ml-n-6); }
.hm-trow:last-child::before { background: var(--mot-reviewed); }
.public-shell .main-content .hm-plate { display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: .75rem; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; background: var(--ml-plate-bg); color: var(--ml-plate-ink) !important; white-space: nowrap; }
.public-shell .main-content .hm-who { font-size: .8125rem; color: var(--ml-n-8) !important; white-space: nowrap; }
.public-shell .main-content .hm-when { font-size: .75rem; color: var(--ml-n-6) !important; white-space: nowrap; }
.public-shell .main-content .hm-pill { display: inline-block; font-style: normal; font-size: .6875rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; justify-self: start; }
.public-shell .main-content .hm-pill--high { background: var(--mot-risk-tint); color: var(--mot-risk-text) !important; border: 1px solid var(--mot-risk); }
.public-shell .main-content .hm-pill--med { background: var(--ml-n-3); color: var(--ml-n-7) !important; border: 1px solid var(--ml-n-5); }
.public-shell .main-content .hm-pill--blue { background: var(--mot-reviewed-tint); color: var(--mot-reviewed-text) !important; border: 1px solid var(--mot-reviewed); }
html[data-theme="light"] .public-shell .main-content .hm-pill--blue { color: #3A55D4 !important; }
.public-shell .main-content .hm-review { font-size: .6875rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--ml-cta-bg); color: var(--ml-cta-text) !important; }
@media (max-width: 860px) {
    .hm-shot { transform: none; }
    .hm-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .hm-row .hm-pill { grid-column: 1 / -1; grid-row: 2; }
    .hm-row .hm-review { display: none; }
    .hm-kpi { padding: 8px; }
    .public-shell .main-content .hm-kpi__v { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .hm-shot { transform: none; } }

/* Hero beat (hero.js adds .is-armed only when motion is allowed; without it the final state shows) */
.hm-shot.is-armed [data-hero-row] { opacity: 0; transform: translateY(-36px); transition: opacity 260ms var(--ease), transform 500ms var(--ease); }
.hm-shot.is-armed.is-play [data-hero-row] { opacity: 1; transform: none; }
.hm-shot.is-armed [data-hero-delta] { opacity: 0; transition: opacity 260ms var(--ease); }
.hm-shot.is-armed.is-tick [data-hero-delta] { opacity: 1; }
.hm-shot.is-tick [data-hero-count] { animation: hm-bump 260ms var(--ease); }
.hm-shot.is-chip [data-hero-chip] { animation: hm-pulse 900ms var(--ease) 1; }
@keyframes hm-bump { 50% { transform: translateY(-3px); } }
@keyframes hm-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ml-cta-bg) 55%, transparent); transform: scale(1); } 35% { transform: scale(1.08); } 70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ml-cta-bg) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .hm-shot [data-hero-row], .hm-shot [data-hero-delta], .hm-shot [data-hero-count], .hm-shot [data-hero-chip] { animation: none !important; transition: none !important; } }

/* How it works */
.hm-how { padding: clamp(48px, 7vw, 88px) 24px; }
.hm-wrap { max-width: 1200px; margin: 0 auto; }
.hm-head { max-width: 40em; margin-bottom: 32px; text-align: left; }
.public-shell .main-content .hm-eyebrow { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--text-muted) !important; margin-bottom: 10px; }
.public-shell .main-content .hm-how h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; color: var(--text-primary) !important; }
.public-shell .main-content .hm-intro { font-size: 1.0625rem; line-height: 1.55; color: var(--text-secondary) !important; }
.hm-how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: hm; }
.public-shell .main-content .hm-step { counter-increment: hm; position: relative; padding: 12px 14px 12px 56px; border-radius: 10px; border: 1px solid transparent; text-align: left; color: var(--text-secondary) !important; }
.hm-step::before {
    content: counter(hm); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
    border: 1px solid var(--border-strong); color: var(--text-secondary);
}
.public-shell .main-content .hm-step.is-active { background: var(--bg-surface); border-color: var(--border-strong); }
.hm-step.is-active::before { background: var(--mot-risk); border-color: var(--mot-risk); color: #111; }
.public-shell .main-content .hm-step__t { font-weight: 600; font-size: 1rem; color: var(--text-primary) !important; }
.public-shell .main-content .hm-step__d { font-size: .9375rem; line-height: 1.5; color: var(--text-secondary) !important; margin-top: 2px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.public-shell .main-content .hm-chip { font-size: .75rem; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--ml-n-4); color: var(--ml-n-7) !important; white-space: nowrap; }
.public-shell .main-content .hm-chip b { margin-left: 4px; font-variant-numeric: tabular-nums; color: inherit; }
.public-shell .main-content .hm-chip--on { border-color: var(--mot-risk); background: var(--mot-risk-tint); color: var(--mot-risk-text) !important; }
.hm-trow { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.public-shell .main-content .hm-why { font-size: .8125rem; color: var(--ml-n-7) !important; min-width: 0; }
.hm-signoff { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--ml-n-5); border-radius: 10px; }
.public-shell .main-content .hm-signoff__t { font-size: .8125rem; color: var(--ml-n-7) !important; min-width: 0; }
.public-shell .main-content .hm-signoff__b { flex: none; font-size: .8125rem; font-weight: 600; padding: 7px 14px; border-radius: 8px; background: var(--ml-n-3); color: var(--ml-n-6) !important; opacity: .7; cursor: not-allowed; }
.hm-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
.hm-feat { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-surface); text-align: left; }
.hm-feat svg { color: var(--text-primary); margin-bottom: 12px; display: block; }
.public-shell .main-content .hm-feat h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 6px; color: var(--text-primary) !important; }
.public-shell .main-content .hm-feat__d { font-size: .9375rem; line-height: 1.5; color: var(--text-secondary) !important; }
@media (max-width: 860px) {
    .hm-how { padding: 40px 16px; }
    .hm-how__grid, .hm-feats { grid-template-columns: minmax(0, 1fr); }
    .hm-trow { grid-template-columns: auto minmax(0, 1fr); }
    .hm-trow .hm-why, .hm-trow .hm-pill { grid-column: 1 / -1; }
    .hm-signoff { flex-wrap: wrap; }
}

/* ── "Your month in 60 seconds": animated sample panel (.hm-an). Four beats on one 16 s loop (4 s a beat): the At-risk list,
   one test sliding in from the right, the Scout national picture, a TQI figure commented on and marked complete.
   CSS only. The un-animated styles ARE the reduced-motion / no-animation state (list with the test open), so the
   panel is complete without motion. The checkbox pauses it (WCAG 2.2.2). Sample data throughout. */
.hm-an { position: relative; --hm-cy: 16s; }
.hm-an__pause { display: none; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.hm-an .hm-bar { gap: 8px; }
.hm-an__titles { position: relative; flex: 1 1 auto; min-width: 0; height: 1.25rem; }
.public-shell .main-content .hm-an__t { position: absolute; inset: 0; line-height: 1.25rem; opacity: 0; }
.public-shell .main-content .hm-an__t--2 { opacity: 1; }
.public-shell .main-content label.hm-an__toggle { display: none; flex: none; margin: 0; cursor: pointer; font-size: .6875rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--ml-n-5); color: var(--ml-n-8) !important; }
.public-shell .main-content .hm-an__toggle i { font-style: normal; color: inherit !important; }
.hm-an__toggle-b { display: none; }
.hm-an__pause:checked ~ .hm-bar .hm-an__toggle-a { display: none; }
.hm-an__pause:checked ~ .hm-bar .hm-an__toggle-b { display: inline; }
.hm-an__pause:focus-visible ~ .hm-bar .hm-an__toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-an__stage { position: relative; min-height: 304px; overflow: hidden; border-radius: 10px; }
.hm-an__list { position: relative; }
.hm-an__swap { display: grid; justify-self: start; }
.hm-an__swap > i { grid-area: 1 / 1; }
.public-shell .main-content .hm-an__swap-b { opacity: 0; }
.hm-an .hm-trow.hm-an__plain::before { background: var(--mot-risk); }
.hm-an .hm-trow:nth-child(2)::before { background: var(--mot-reviewed); }
.hm-an .hm-trow.hm-an__pick { box-shadow: inset 0 0 0 1px var(--mot-risk); }
.hm-an .hm-signoff { margin-top: 8px; padding: 10px 14px; }

.hm-an__drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 76%; padding: 12px 14px; display: grid; align-content: start; gap: 9px; background: var(--ml-n-1); border: 1px solid var(--ml-n-4); border-radius: 10px; box-shadow: -18px 0 36px -10px rgba(0,0,0,.55); }
html[data-theme="light"] .hm-an__drawer { box-shadow: -18px 0 36px -14px rgba(20,30,50,.3); }
.hm-an__dhead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.public-shell .main-content .hm-an__dtitle { font-size: .8125rem; font-weight: 600; color: var(--ml-n-8) !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-an__facts { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 6px; }
.hm-an__fact { padding: 6px 8px; background: var(--ml-n-2); border: 1px solid var(--ml-n-3); border-radius: 8px; min-width: 0; }
.public-shell .main-content .hm-an__fact i, .public-shell .main-content .hm-an__field > i, .public-shell .main-content .hm-an__sfig i { display: block; font-style: normal; font-size: .6875rem; color: var(--ml-n-6) !important; }
.public-shell .main-content .hm-an__fact b { display: block; font-size: .8125rem; font-weight: 600; color: var(--ml-n-8) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.public-shell .main-content .hm-an__concern { font-size: .8125rem; line-height: 1.4; padding: 7px 10px; border-radius: 8px; background: var(--mot-risk-tint); border: 1px solid var(--mot-risk); color: var(--ml-n-8) !important; }
.public-shell .main-content .hm-an__concern b { color: var(--mot-risk-text) !important; margin-right: 4px; }
.hm-an__field { padding: 7px 10px; border: 1px solid var(--ml-n-5); border-radius: 8px; background: var(--ml-n-0); min-width: 0; }
.public-shell .main-content .hm-an__typed { font-size: .8125rem; line-height: 1.4; min-height: 1.4em; color: var(--ml-n-8) !important; }
.public-shell .main-content .hm-an__scoutlink { justify-self: start; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--provider-scout); color: var(--provider-scout-text) !important; }

.hm-an__scout { position: absolute; left: 6%; top: 34px; width: 64%; padding: 12px 14px; display: grid; gap: 7px; background: var(--ml-n-2); border: 1px solid var(--provider-scout); border-radius: 12px; box-shadow: 0 22px 44px -14px rgba(0,0,0,.7); opacity: 0; }
html[data-theme="light"] .hm-an__scout { box-shadow: 0 22px 44px -18px rgba(20,30,50,.4); }
.hm-an__shead { display: flex; align-items: center; gap: 6px; }
.hm-an__sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--mot-pass); flex: none; }
.public-shell .main-content .hm-an__shead b { font-size: .8125rem; color: var(--provider-scout-text) !important; }
.public-shell .main-content .hm-an__shead i:last-child { font-style: normal; font-size: .6875rem; color: var(--ml-n-7) !important; }
.public-shell .main-content .hm-an__stitle { font-size: .875rem; font-weight: 600; color: var(--ml-n-8) !important; }
.hm-an__sfig { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--ml-n-4); }
.public-shell .main-content .hm-an__sfig b { font-size: .875rem; font-weight: 700; color: var(--ml-n-8) !important; font-variant-numeric: tabular-nums; text-align: right; }
.public-shell .main-content .hm-an__snote { font-size: .6875rem; color: var(--ml-n-6) !important; }

.hm-an__tqi { position: absolute; inset: 0; opacity: 0; background: var(--ml-n-1); }
.hm-an__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 6px; }
.public-shell .main-content .hm-an__gh { font-size: .6875rem; font-weight: 600; color: var(--ml-n-6) !important; padding: 2px 6px; line-height: 1.25; align-self: end; }
.public-shell .main-content .hm-an__gl { font-size: .8125rem; color: var(--ml-n-7) !important; padding: 8px 6px; min-width: 0; }
.public-shell .main-content .hm-an__gc { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: 8px 6px; border-radius: 8px; background: var(--ml-n-2); border: 1px solid var(--ml-n-3); color: var(--ml-n-8) !important; white-space: nowrap; }
.public-shell .main-content .hm-an__gc--pick { background: var(--mot-risk-tint); border-color: var(--mot-risk); color: var(--mot-risk-text) !important; }
.hm-an__dialog { position: absolute; left: 8%; right: 0; bottom: 0; padding: 12px 14px; display: grid; gap: 9px; background: var(--ml-n-2); border: 1px solid var(--ml-n-5); border-radius: 12px; box-shadow: 0 -18px 40px -12px rgba(0,0,0,.6); }
html[data-theme="light"] .hm-an__dialog { box-shadow: 0 -18px 40px -18px rgba(20,30,50,.35); }
.public-shell .main-content .hm-an__dlgt { font-size: .8125rem; font-weight: 600; color: var(--ml-n-8) !important; }
.hm-an__dlgrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.public-shell .main-content .hm-an__check { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ml-n-8) !important; }
.public-shell .main-content .hm-an__box { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--mot-pass); background: var(--mot-pass); color: #fff !important; font-style: normal; font-size: .6875rem; line-height: 14px; text-align: center; }
.hm-an__box::after { content: "\2713"; }
.public-shell .main-content .hm-an__done { font-size: .6875rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--mot-pass-tint); border: 1px solid var(--mot-pass); color: var(--mot-pass-text) !important; }
.hm-an__dots { display: none; justify-content: center; gap: 6px; margin-top: 10px; }
.hm-an__dots i { width: 18px; height: 3px; border-radius: 2px; background: var(--ml-n-4); }

@media (max-width: 1000px) {
    .hm-an__stage { min-height: 356px; }
    .hm-an__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .hm-an .hm-bar { flex-wrap: wrap; }
    .hm-an__titles { flex-basis: 100%; }
}
@media (max-width: 860px) {
    .hm-an__stage { min-height: 432px; }
    .hm-trow .hm-an__swap { grid-column: 1 / -1; }
    .hm-an__drawer { width: 92%; }
    .hm-an__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-an__scout { left: 4%; width: 86%; top: 40px; }
    .hm-an__dialog { left: 0; }
    .hm-an__grid { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
    .hm-an__pause { display: block; }
    .public-shell .main-content label.hm-an__toggle { display: inline-block; }
    .hm-an__box::after { animation: hm-an-tick var(--hm-cy) linear infinite; }
    .hm-an__dots { display: flex; }
    .public-shell .main-content .hm-an__t--1 { animation: hm-an-t1 var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__t--2 { animation: hm-an-t2 var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__t--3 { animation: hm-an-t3 var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__t--4 { animation: hm-an-t4 var(--hm-cy) linear infinite; }
    .hm-an__list { animation: hm-an-list var(--hm-cy) linear infinite; }
    .hm-an .hm-trow.hm-an__pick { animation: hm-an-pick var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__swap-a { animation: hm-an-swap-a var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__swap-b { animation: hm-an-swap-b var(--hm-cy) linear infinite; }
    .hm-an__drawer { animation: hm-an-drawer var(--hm-cy) linear infinite; }
    .hm-an__typed--1 { animation: hm-an-type1 var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__scoutlink { animation: hm-an-slink var(--hm-cy) linear infinite; }
    .hm-an__scout { animation: hm-an-scout var(--hm-cy) linear infinite; }
    .hm-an__tqi { animation: hm-an-tqi var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__gc--pick { animation: hm-an-cell var(--hm-cy) linear infinite; }
    .hm-an__dialog { animation: hm-an-dialog var(--hm-cy) linear infinite; }
    .hm-an__typed--2 { animation: hm-an-type2 var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__box { animation: hm-an-box var(--hm-cy) linear infinite; }
    .public-shell .main-content .hm-an__done { animation: hm-an-done var(--hm-cy) linear infinite; }
    .hm-an__dots i { animation: hm-an-dot var(--hm-cy) linear infinite; }
    .hm-an__dots i:nth-child(2) { animation-delay: calc(var(--hm-cy) * .25); }
    .hm-an__dots i:nth-child(3) { animation-delay: calc(var(--hm-cy) * .5); }
    .hm-an__dots i:nth-child(4) { animation-delay: calc(var(--hm-cy) * .75); }
    .hm-an.is-wait *, .hm-an.is-wait *::before, .hm-an.is-wait *::after,
    .hm-an__pause:checked ~ *, .hm-an__pause:checked ~ * *, .hm-an__pause:checked ~ * *::before, .hm-an__pause:checked ~ * *::after { animation-play-state: paused !important; }
}
@keyframes hm-an-t1 { 0%, 23% { opacity: 1; } 24.5%, 98.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hm-an-t2 { 0%, 24.5% { opacity: 0; } 26%, 48% { opacity: 1; } 49.5%, 100% { opacity: 0; } }
@keyframes hm-an-t3 { 0%, 49.5% { opacity: 0; } 51%, 73% { opacity: 1; } 74.5%, 100% { opacity: 0; } }
@keyframes hm-an-t4 { 0%, 74.5% { opacity: 0; } 76%, 97% { opacity: 1; } 98.5%, 100% { opacity: 0; } }
@keyframes hm-an-list { 0%, 72% { opacity: 1; } 75%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hm-an-pick { 0%, 8% { box-shadow: inset 0 0 0 1px transparent; } 12%, 72% { box-shadow: inset 0 0 0 1px var(--mot-risk); } 76%, 100% { box-shadow: inset 0 0 0 1px transparent; } }
@keyframes hm-an-swap-a { 0%, 43% { opacity: 1; } 45%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hm-an-swap-b { 0%, 43% { opacity: 0; } 45%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hm-an-drawer { 0%, 24% { transform: translateX(110%); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); } 28%, 72% { transform: none; } 76%, 100% { transform: translateX(110%); } }
@keyframes hm-an-type1 { 0%, 31% { clip-path: inset(0 100% 0 0); } 41%, 76% { clip-path: inset(0 0 0 0); } 77%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes hm-an-slink { 0%, 45% { background: transparent; } 48%, 72% { background: var(--provider-scout-tint); } 76%, 100% { background: transparent; } }
@keyframes hm-an-scout { 0%, 49% { opacity: 0; transform: translateY(14px) scale(.94); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); } 52%, 71% { opacity: 1; transform: none; } 75%, 100% { opacity: 0; transform: scale(.96); } }
@keyframes hm-an-tqi { 0%, 75% { opacity: 0; } 78%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes hm-an-cell { 0%, 79% { background: var(--ml-n-2); border-color: var(--ml-n-3); } 81%, 100% { background: var(--mot-risk-tint); border-color: var(--mot-risk); } }
@keyframes hm-an-dialog { 0%, 81% { opacity: 0; transform: translateY(16px) scale(.96); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); } 84%, 100% { opacity: 1; transform: none; } }
@keyframes hm-an-type2 { 0%, 85% { clip-path: inset(0 100% 0 0); } 91%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes hm-an-box { 0%, 92% { background: transparent; border-color: var(--ml-n-6); } 93%, 100% { background: var(--mot-pass); border-color: var(--mot-pass); } }
@keyframes hm-an-tick { 0%, 92% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes hm-an-done { 0%, 93% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes hm-an-dot { 0%, 24% { background: var(--mot-risk); } 25%, 100% { background: var(--ml-n-4); } }

/* Product cards: no orange buttons. "Open" is an outline button, "About" a text link. */
.public-shell .main-content a.product-open.product-open.product-open.product-open.product-open.product-open {
    background: transparent !important; background-color: transparent !important; color: var(--text-primary) !important;
    border: 1px solid var(--border-strong) !important; border-radius: 10px; padding: 8px 14px; box-shadow: none;
}
.public-shell .main-content a.product-open.product-open.product-open.product-open.product-open.product-open:hover { background: var(--bg-elevated) !important; background-color: var(--bg-elevated) !important; border-color: var(--text-secondary) !important; box-shadow: none; }
.public-shell .main-content a.product-learn.product-learn.product-learn.product-learn.product-learn.product-learn { color: var(--text-secondary) !important; text-decoration: underline; text-underline-offset: 3px; }
.public-shell .main-content a.product-learn.product-learn.product-learn.product-learn.product-learn.product-learn:hover { color: var(--text-primary) !important; }

/* ════════════════ Wave 2D: public MOT history (/mot-history), home lookup strip, blog index + posts ════════════════
   Plate colours are fixed (a UK plate is yellow in both themes); everything else is a token. */
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mh-plate { display: inline-flex; align-items: stretch; width: 100%; max-width: 520px; background: var(--ml-plate-bg); color: var(--ml-plate-ink); border: 2px solid var(--ml-plate-edge); border-radius: 8px; overflow: hidden; box-sizing: border-box; }
.mh-plate__band { display: flex; align-items: flex-end; justify-content: center; padding: 0 10px 8px; min-width: 44px; background: var(--ml-plate-band); color: #fff; font: 700 .8rem/1 var(--ml-font-sans); letter-spacing: .06em; }
.public-shell .mh-plate__input, .public-shell .mh-plate__input:focus {
    flex: 1; min-width: 0; width: 100%; background: transparent !important; color: var(--ml-plate-ink) !important; border: 0 !important; border-radius: 0 !important;
    font: 700 clamp(1.9rem, 6vw, 2.8rem)/1.1 var(--ml-font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px; box-shadow: none; outline: none;
}
.public-shell .mh-plate__input::placeholder { color: rgba(17,17,17,.38); }
.mh-plate:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.mh-plate--sm { max-width: 260px; border-width: 2px; border-radius: 6px; }
.mh-plate--sm .mh-plate__band { padding: 0 7px 5px; min-width: 32px; font-size: .62rem; }
.public-shell .mh-plate--sm .mh-plate__input { font-size: 1.35rem; padding: 7px 10px; }
.mh-plate__text { font: 700 1.15rem/1 var(--ml-font-mono); letter-spacing: .06em; padding: 7px 12px; color: var(--ml-plate-ink); }

.mh { max-width: 880px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 16px 64px; box-sizing: border-box; color: var(--text-secondary); }
.public-shell .main-content .mh h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem) !important; font-weight: 700; letter-spacing: -.01em; margin: 0 0 10px; color: var(--text-primary) !important; }
.public-shell .main-content .mh h2 { font-size: 1.35rem !important; font-weight: 600; margin: 0; color: var(--text-primary) !important; }
.public-shell .main-content .mh h3 { font-size: 1rem !important; font-weight: 600; margin: 0 0 12px; color: var(--text-primary) !important; }
.public-shell .main-content .mh-eyebrow { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--text-muted) !important; margin: 0 0 10px; }
.public-shell .main-content .mh-lead { font-size: 1.0625rem; max-width: 40em; color: var(--text-secondary) !important; margin: 0 0 28px; }
.mh-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.mh-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.mh-row .mh-plate { flex: 1 1 320px; }
.public-shell .mh-go, .public-shell .hm-lookup__b {
    background: var(--ml-cta-bg); color: var(--ml-cta-text); border: 1px solid var(--ml-cta-bg); border-radius: 10px; font: 600 1rem var(--ml-font-sans);
    padding: 0 28px; min-height: 48px; cursor: pointer; transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.public-shell .mh-go { min-height: 64px; font-size: 1.125rem; }
.public-shell .mh-go:hover, .public-shell .hm-lookup__b:hover { background: var(--ml-cta-bg-hover); box-shadow: 0 4px 16px var(--accent-glow); }
.public-shell .mh-go:focus-visible, .public-shell .hm-lookup__b:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.public-shell .main-content .mh-msg { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--border-strong); border-left: 3px solid var(--mot-fail, #EF5350); border-radius: var(--r-sm); background: var(--bg-surface); color: var(--text-primary) !important; font-size: .9375rem; }
.public-shell .main-content .mh-msg--info { border-left-color: var(--mot-risk, #F5A524); }

.mh-result { margin-top: 36px; }
.mh-vehicle { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.mh-vehicle__id { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mh-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.mh-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.mh-facts dd { margin: 2px 0 0; color: var(--text-primary); font-weight: 500; }
.mh-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.mh-tile { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.mh-tile__k { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.mh-tile__v { margin-top: 6px; font-size: 1.25rem; font-weight: 650; color: var(--text-primary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mh-chart { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; margin-bottom: 24px; }
.mh-svg { width: 100%; height: auto; display: block; }
.mh-svg__grid { stroke: var(--border); stroke-width: 1; opacity: .7; }
.mh-svg__t { fill: var(--text-muted); font: 11px var(--ml-font-sans); font-variant-numeric: tabular-nums; }
.mh-svg__line { stroke: var(--mot-reviewed); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mh-svg__dot { fill: var(--bg-surface); stroke: var(--mot-reviewed); stroke-width: 2; }

.mh-test { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 8px; }
.mh-test > summary { list-style: none; display: grid; grid-template-columns: 7.5em auto 1fr auto auto; gap: 8px 14px; align-items: center; padding: 12px 16px; cursor: pointer; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.mh-test > summary::-webkit-details-marker { display: none; }
.mh-test > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg); justify-self: end; transition: transform var(--dur-2) var(--ease); }
.mh-test[open] > summary::after { transform: rotate(-135deg); }
.mh-test > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-md); }
.mh-test__date { font-weight: 600; }
.mh-test__miles, .mh-test__count { color: var(--text-secondary); font-size: .875rem; }
.mh-test__body { padding: 4px 16px 14px; border-top: 1px solid var(--border); }
.mh-pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.mh-pill--pass { background: var(--mot-pass-tint, rgba(47,191,113,.13)); color: var(--mot-pass-text, #2FBF71); }
.mh-pill--fail { background: var(--mot-fail-tint, rgba(239,83,80,.13)); color: var(--mot-fail-text, #EF5350); }
html[data-theme="light"] .mh-pill--pass { color: #17794a; }
html[data-theme="light"] .mh-pill--fail { color: #b3302e; }
.mh-defects { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mh-defects li { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; line-height: 1.45; color: var(--text-secondary); }
.mh-kind { flex: none; min-width: 5.6em; text-align: center; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; background: var(--mot-pending-tint, rgba(138,145,154,.14)); color: var(--text-secondary); }
.mh-kind--dangerous, .mh-kind--major { background: var(--mot-fail-tint, rgba(239,83,80,.13)); color: var(--mot-fail-text, #EF5350); }
.mh-kind--minor { background: var(--mot-risk-tint, rgba(245,165,36,.13)); color: var(--mot-risk-text, #F5A524); }
html[data-theme="light"] .mh-kind--dangerous, html[data-theme="light"] .mh-kind--major { color: #b3302e; }
html[data-theme="light"] .mh-kind--minor { color: #8a5a00; }
.mh-muted { color: var(--text-muted); font-size: .875rem; margin: 10px 0 0; }
.mh-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-surface); }
.public-shell .main-content .mh-cta p { margin: 0; color: var(--text-primary) !important; font-weight: 600; }
.public-shell .main-content a.mh-cta__btn { display: inline-block; padding: 10px 20px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text-primary) !important; font-weight: 600; text-decoration: none; background: transparent; }
.public-shell .main-content a.mh-cta__btn:hover { border-color: var(--text-secondary); background: var(--bg-elevated); }
.public-shell .main-content .mh-legal { margin-top: 36px; font-size: .8125rem; color: var(--text-muted) !important; }
.public-shell .main-content .mh-legal a { color: var(--text-secondary) !important; text-decoration: underline; }
@media (max-width: 600px) {
    .mh-tiles { grid-template-columns: 1fr; }
    .mh-test > summary { grid-template-columns: auto 1fr auto; }
    .mh-test__miles, .mh-test__count { grid-column: 1 / 3; }
    .mh-test > summary::after { grid-column: 3; grid-row: 1; }
    .public-shell .mh-go { width: 100%; }
}

/* Home: 3D bay still with hotspots */
.hm-bay { padding: 0 24px clamp(40px, 6vw, 72px); }
.hm-bay__frame { position: relative; border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; background: #17191d; aspect-ratio: 16 / 9; box-shadow: 0 24px 56px -32px rgba(0,0,0,.6); }
.hm-bay__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-bay__pins { list-style: none; margin: 0; padding: 0; }
.hm-bay__pins li { position: absolute; transform: translate(-50%, -50%); margin: 0; padding: 0; }
.public-shell .main-content .hm-bay__pins a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(17,19,23,.88); border: 1px solid rgba(255,255,255,.28); color: #fff !important; font-size: .8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; backdrop-filter: blur(4px); transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.hm-bay__pins a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; }
.public-shell .main-content .hm-bay__pins a:hover { background: #000; border-color: #fff; }
.public-shell .main-content .hm-bay__pins a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-bay__cta { margin: 20px 0 0; }
.public-shell .main-content a.hm-bay__button { display: inline-block; padding: 11px 22px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: transparent; color: var(--text-primary) !important; font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.public-shell .main-content a.hm-bay__button:hover { background: var(--bg-surface); border-color: var(--text-secondary); }
.public-shell .main-content a.hm-bay__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
    .hm-bay { padding: 0 16px 40px; }
    .public-shell .main-content .hm-bay__pins a { padding: 4px 8px 4px 6px; gap: 5px; font-size: .625rem; }
    .hm-bay__pins a::before { width: 6px; height: 6px; }
    .public-shell .main-content a.hm-bay__button { display: block; text-align: center; }
}

/* Home: compact lookup strip */
.hm-lookup { padding: 0 24px clamp(40px, 6vw, 72px); }
.hm-lookup__in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-sizing: border-box; }
.public-shell .main-content .hm-lookup h2 { font-size: 1.25rem !important; font-weight: 600; margin: 0 0 4px; color: var(--text-primary) !important; }
.public-shell .main-content .hm-lookup p { margin: 0; font-size: .9375rem; color: var(--text-secondary) !important; }
.hm-lookup__f { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.hm-lookup__f .mh-plate { width: 240px; }
@media (max-width: 600px) { .hm-lookup { padding: 0 16px 40px; } .hm-lookup__f, .hm-lookup__f .mh-plate { width: 100%; max-width: none; } .public-shell .hm-lookup__b { width: 100%; } }

/* Blog index */
.public-shell .blog-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)) !important; }
.public-shell .blog-card { display: flex; border-radius: var(--r-lg) !important; transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.public-shell .blog-card:hover { transform: translateY(-2px); border-color: var(--border-strong) !important; }
.public-shell .blog-card-link { display: flex !important; flex-direction: column; width: 100%; }
.blog-card-cover { position: relative; height: 96px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); overflow: hidden; }
.blog-card-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog-card-cover .bc-grid { stroke: var(--border-strong); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.blog-card-cover .bc-line { stroke: var(--mot-reviewed); stroke-width: 2; opacity: .55; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.blog-plate { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: inline-flex; max-width: calc(100% - 32px); background: var(--ml-plate-bg); border: 2px solid var(--ml-plate-edge); border-radius: 6px; overflow: hidden; }
.blog-plate__band { display: flex; align-items: flex-end; padding: 0 6px 4px; background: var(--ml-plate-band); color: #fff; font: 700 .58rem/1 var(--ml-font-sans); letter-spacing: .06em; }
.blog-plate__text { padding: 6px 10px; color: var(--ml-plate-ink); font: 700 1.05rem/1 var(--ml-font-mono); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-card-content { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px !important; }
.public-shell .main-content .blog-card .blog-card-category { align-self: flex-start; background: transparent !important; color: var(--text-muted) !important; border: 0; padding: 0; margin: 0 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-radius: 0 !important; }
.public-shell .main-content .blog-card .blog-card-content h2 { font-size: 1.1rem !important; font-weight: 600; line-height: 1.35; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.public-shell .main-content .blog-card .blog-card-content p { font-size: .9rem; line-height: 1.5; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.public-shell .main-content .blog-card .blog-card-date { margin-top: auto; font-size: .8125rem; color: var(--text-muted) !important; font-variant-numeric: tabular-nums; }
.public-shell .main-content .faq-header-content h1 { font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.8rem) !important; }
.public-shell .main-content .faq-header-content p { font-size: 1.0625rem; }

/* Blog post body: reading column and type scale (content is HTML from the blog store) */
.public-shell .about-page.blog-article { max-width: 760px; }
.public-shell .about-page.blog-article .intro-section { padding: 1rem 0; gap: 1.5rem; }
.public-shell .about-page.blog-article .intro-section .text { min-width: 0; flex: 1 1 100%; font-size: 1.0625rem; line-height: 1.7; }
.public-shell .about-page.blog-article .intro-section .image { flex: 1 1 100%; order: -1; }
.public-shell .about-page.blog-article .intro-section .image img { width: 100%; max-height: 320px; object-fit: cover; }
.public-shell .main-content .blog-article h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem) !important; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; color: var(--text-primary) !important; }
.public-shell .main-content .blog-article h2 { font-size: clamp(1.4rem, 3vw, 1.65rem) !important; font-weight: 650; line-height: 1.25; margin: 1.8em 0 .55em; color: var(--text-primary) !important; }
.public-shell .main-content .blog-article h3 { font-size: 1.2rem !important; font-weight: 600; line-height: 1.3; margin: 1.5em 0 .5em; color: var(--text-primary) !important; }
.public-shell .main-content .blog-article :is(h4, h5, h6) { font-weight: 600; color: var(--text-primary) !important; }
.public-shell .main-content .blog-article .text p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.1em; }
.public-shell .main-content .blog-article .text :is(ul, ol) { padding-left: 1.4em; margin: 0 0 1.2em; }
.public-shell .main-content .blog-article .text li { margin-bottom: .45em; line-height: 1.65; }
.public-shell .main-content .blog-article .text blockquote { margin: 1.4em 0; padding: .4em 0 .4em 1.1em; border-left: 3px solid var(--border-strong); color: var(--text-secondary); font-style: italic; }
.public-shell .main-content .blog-article .text :is(strong, b) { color: var(--text-primary) !important; font-weight: 600; }
.public-shell .main-content .blog-article .text table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .9375rem; display: block; overflow-x: auto; }
.public-shell .main-content .blog-article .text :is(th, td) { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.public-shell .main-content .blog-article .text th { background: var(--bg-surface); color: var(--text-primary) !important; font-weight: 600; }
.public-shell .main-content .blog-article .text :is(pre, code) { font-family: var(--ml-font-mono); font-size: .9em; }
.public-shell .main-content .blog-article .text pre { overflow-x: auto; max-width: 100%; }
/* Wave 2D: beat the site-wide span/anchor colour rules (specificity), keep plate + CTA colours */
.public-shell .main-content .mh-plate .mh-plate__text { color: var(--ml-plate-ink) !important; }
.public-shell .main-content .mh-plate .mh-plate__band, .public-shell .main-content .blog-plate .blog-plate__band { color: #fff !important; }
.public-shell .main-content .blog-plate .blog-plate__text { color: var(--ml-plate-ink) !important; }
.public-shell .main-content a.mh-cta__btn.mh-cta__btn.mh-cta__btn { color: var(--text-primary) !important; }
.public-shell .main-content p.mh-legal a[href] { color: var(--text-secondary) !important; }
/* Blog index layout (moved here from Blogs.razor's inline style) */
.public-shell .faq-header { padding: 32px 16px 8px; margin: 0; text-align: center; box-sizing: border-box; width: 100%; }
.public-shell .faq-header-content { max-width: 1200px; margin: 0 auto; padding: 8px 0 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; text-align: left; }
.public-shell .main-content .faq-header-content h1 { margin: 0 0 8px; color: var(--text-primary) !important; }
.public-shell .main-content .faq-header-content p { margin: 0; color: var(--text-secondary) !important; }
.public-shell .blog-section { padding: 24px 16px 40px; margin: 0; width: 100%; box-sizing: border-box; }
.public-shell .blog-grid { display: grid; gap: 20px; max-width: 1200px; margin: 0 auto; }
.public-shell .blog-card { overflow: hidden; }

/* ── National picture hero (Components/Shared/LookupNationalPicture.razor): public /mot-history + member MOT History pop-up ──
   Scout-blue gradient (theme-invariant, like the Scout tile: white text on a darkened blue), so it reads the same in dark, light and contrast.
   The FINAL state is the base style; every animation only starts from an earlier state (backwards fill), so no animation, no JS or a
   screenshot all show the finished card. Contrast notes are in the PR. */
.lnp {
    --lnp-ink: #FFFFFF; --lnp-ink-2: #E6EFFC; --lnp-scrim: rgba(5, 18, 44, .30); --lnp-panel: rgba(5, 18, 44, .38);
    --lnp-line: rgba(255, 255, 255, .34); --lnp-track: rgba(255, 255, 255, .24); --lnp-bar: #A9CCF7; --lnp-hi: #FFFFFF;
    position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; margin: 24px 0;
    padding: clamp(16px, 3.4vw, 28px); border-radius: 20px; border: 1px solid var(--lnp-line);
    color: var(--lnp-ink); font-family: var(--ml-font-sans, 'Inter', system-ui, sans-serif); text-align: left;
    background: linear-gradient(var(--lnp-scrim), var(--lnp-scrim)), linear-gradient(140deg, var(--provider-scout-tile, #2f7de1) 0%, var(--provider-scout-tile-deep, #1c4f9a) 100%);
    box-shadow: 0 24px 60px -24px rgba(28, 79, 154, .65), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.lnp *, .lnp *::before, .lnp *::after { box-sizing: border-box; }
.lnp-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(520px 260px at 92% -8%, rgba(255, 255, 255, .20), transparent 70%), radial-gradient(420px 300px at -6% 108%, rgba(127, 190, 255, .22), transparent 70%); }
.lnp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 14px; }
.lnp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5;
    color: var(--lnp-ink); background: rgba(5, 18, 44, .5); border: 1px solid var(--lnp-line); }
.public-shell .main-content .lnp .lnp-eyebrow, .lnp .lnp-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lnp-ink-2); }
.public-shell .main-content .lnp h3.lnp-title, .lnp h3.lnp-title { flex: 1 0 100%; margin: 4px 0 0; font-size: clamp(1.4rem, 3.6vw, 2rem) !important; line-height: 1.15; font-weight: 750;
    letter-spacing: -.02em; color: var(--lnp-ink) !important; overflow-wrap: anywhere; }
.lnp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lnp-panel { min-width: 0; padding: 16px 18px; border-radius: 14px; background: var(--lnp-panel); border: 1px solid var(--lnp-line); backdrop-filter: blur(2px); }
.public-shell .main-content .lnp h4.lnp-h, .lnp h4.lnp-h { margin: 0 0 12px; font-size: .8125rem !important; line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lnp-ink-2) !important; }
.public-shell .main-content .lnp p, .lnp p { color: var(--lnp-ink); }

/* ring gauge + comparison */
.lnp-rate { display: flex; align-items: center; gap: 18px; }
.lnp-gauge { position: relative; flex: none; width: 150px; height: 150px; }
.lnp-gauge svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35)); }
.lnp-gauge__track, .lnp-gauge__arc { fill: none; stroke-width: 11; }
.lnp-gauge__track { stroke: var(--lnp-track); }
.lnp-gauge__arc { stroke: var(--lnp-hi); stroke-linecap: round; stroke-dasharray: var(--lnp-circ); stroke-dashoffset: var(--lnp-off); animation: lnp-sweep 1.4s cubic-bezier(.22, .8, .24, 1) .15s backwards; }
.lnp-gauge__v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
    font-variant-numeric: tabular-nums; color: var(--lnp-ink); animation: lnp-pop .7s ease-out .5s backwards; }
.lnp-rate__text { min-width: 0; }
.public-shell .main-content .lnp .lnp-rate__cap, .lnp .lnp-rate__cap { margin: 0 0 12px; font-size: .9375rem; line-height: 1.45; color: var(--lnp-ink); }
.public-shell .main-content .lnp .lnp-compare, .lnp .lnp-compare { margin: 0; padding-top: 10px; border-top: 1px solid var(--lnp-line); font-size: .9375rem; font-weight: 700; line-height: 1.4; color: var(--lnp-ink); }
.lnp-compare__n { font-weight: 500; color: var(--lnp-ink-2); }

/* age curve: column bars */
.lnp-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; align-items: end; --plot: 112px; padding-bottom: 20px; }
.lnp-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; text-align: center; }
.lnp-col__pct { margin-bottom: 4px; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lnp-ink); animation: lnp-fade .5s ease-out calc(var(--i) * 110ms + 650ms) backwards; }
.lnp-col__bar { display: block; width: 100%; max-width: 44px; min-height: 3px; height: calc(var(--plot) * var(--f)); border-radius: 6px 6px 2px 2px; background: var(--lnp-bar);
    transform-origin: bottom; animation: lnp-grow .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 110ms + 250ms) backwards; }
.lnp-col--now .lnp-col__bar { background: var(--lnp-hi); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 0 16px rgba(255, 255, 255, .55); }
.lnp-col--now .lnp-col__pct { font-size: .9375rem; }
.lnp-col__band { margin-top: 6px; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lnp-ink-2); }
.lnp-col--now .lnp-col__band { color: var(--lnp-ink); font-weight: 800; }
.lnp-col__tag { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px; padding: 1px 6px; border-radius: 999px; font-size: .5625rem; font-weight: 800; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; color: #0E3470; background: #FFFFFF;}
.public-shell .main-content .lnp .lnp-note, .lnp .lnp-note { margin: 10px 0 0; font-size: .75rem; line-height: 1.45; color: var(--lnp-ink-2); }

/* mileage range bar */
.lnp-range { position: relative; padding-top: 64px; }
.lnp-range__track { position: relative; display: block; height: 14px; border-radius: 999px; background: var(--lnp-track); }
.lnp-range__mid { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--lnp-bar); transform-origin: left; animation: lnp-scalex .9s cubic-bezier(.2, .8, .2, 1) .3s backwards; }
.lnp-range__med { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #0E3470; box-shadow: 0 0 0 1.5px #FFFFFF; }
.lnp-range__dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #FFFFFF; border: 4px solid #0E3470; box-shadow: 0 0 0 2px #FFFFFF, 0 0 14px rgba(255, 255, 255, .7); animation: lnp-pop .6s ease-out 1.1s backwards; }
.lnp-pin { position: absolute; top: 64px; z-index: 1; width: 0; animation: lnp-fade .5s ease-out 1.1s backwards; }
.lnp-pin__label { position: absolute; bottom: 14px; left: 0; transform: translateX(-50%); padding: 3px 9px; border-radius: 8px; font-size: .75rem; font-weight: 800; line-height: 1.3; white-space: normal; width: max-content; max-width: 9.5em; text-align: center; color: #0E3470 !important; background: #FFFFFF; }
.lnp-pin--start .lnp-pin__label { left: -8px; transform: none; }
.lnp-pin--start .lnp-pin__label::after { left: 3px; margin-left: 0; }
.lnp-pin--end .lnp-pin__label { left: auto; right: -8px; transform: none; }
.lnp-pin--end .lnp-pin__label::after { left: auto; right: 3px; margin-left: 0; }
.lnp-pin__label::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #FFFFFF; }
.lnp-range__ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--lnp-ink-2); }
.lnp-line { margin: 10px 0 0; font-size: .875rem; line-height: 1.45; }
.lnp-line + .lnp-line { margin-top: 4px; }
.lnp-line--you { font-weight: 700; }

/* parts: animated horizontal bars */
.lnp-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lnp-hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n p" "t t"; gap: 4px 10px; align-items: baseline; }
.lnp-hbar__name { grid-area: n; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.lnp-hbar__pct { grid-area: p; font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lnp-hbar__track { grid-area: t; display: block; height: 10px; border-radius: 999px; background: var(--lnp-track); overflow: hidden; }
.lnp-hbar__fill { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--lnp-bar), var(--lnp-hi)); transform-origin: left;
    animation: lnp-scalex .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 140ms + 350ms) backwards; }
.public-shell .main-content .lnp .lnp-fuel, .lnp .lnp-fuel { margin: 14px 2px 0; font-size: .875rem; line-height: 1.5; color: var(--lnp-ink); }

/* sign-up strip (public page only) */
.lnp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; padding: 16px 20px; border-radius: 14px;
    background: rgba(5, 18, 44, .62); border: 1px solid var(--lnp-line); }
.public-shell .main-content .lnp .lnp-cta__h, .lnp .lnp-cta__h { margin: 0; font-size: 1.125rem; font-weight: 750; line-height: 1.3; letter-spacing: -.01em; color: var(--lnp-ink); }
.public-shell .main-content .lnp a.lnp-cta-button, .lnp a.lnp-cta-button { display: inline-block; padding: 11px 24px; border-radius: 10px; font-size: 1rem; font-weight: 800; text-decoration: none;
    color: #0E3470 !important; background: #FFFFFF; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55); transition: background .15s, transform .15s; }
.public-shell .main-content .lnp a.lnp-cta-button:hover, .lnp a.lnp-cta-button:hover { background: #E6EFFC; color: #0E3470 !important; transform: translateY(-1px); }
.lnp a.lnp-cta-button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.public-shell .main-content .lnp .lnp-foot, .lnp .lnp-foot { margin: 14px 0 0; font-size: .75rem; line-height: 1.5; color: var(--lnp-ink-2); }

.lnp-member { margin-top: 0; }
.lnp-member .lnp { margin: 0; }

/* The public shell colours every p/li/span/... !important (public.css/member.css :is(p, li, span...) rule); out-rank it for the hero's own text. */
.public-shell .main-content .lnp .lnp-eyebrow,
.public-shell .main-content .lnp .lnp-compare__n,
.public-shell .main-content .lnp .lnp-col__band,
.public-shell .main-content .lnp .lnp-note,
.public-shell .main-content .lnp .lnp-range__ends span,
.public-shell .main-content .lnp .lnp-foot { color: var(--lnp-ink-2) !important; }
.public-shell .main-content .lnp .lnp-chip,
.public-shell .main-content .lnp .lnp-gauge__v,
.public-shell .main-content .lnp .lnp-rate__cap,
.public-shell .main-content .lnp .lnp-compare,
.public-shell .main-content .lnp .lnp-col__pct,
.public-shell .main-content .lnp .lnp-col--now .lnp-col__band,
.public-shell .main-content .lnp .lnp-line,
.public-shell .main-content .lnp .lnp-hbar__name,
.public-shell .main-content .lnp .lnp-hbar__pct,
.public-shell .main-content .lnp .lnp-fuel,
.public-shell .main-content .lnp .lnp-cta__h { color: var(--lnp-ink) !important; }
.public-shell .main-content .lnp .lnp-col__tag,
.public-shell .main-content .lnp .lnp-pin__label { color: #0E3470 !important; }

@keyframes lnp-sweep { from { stroke-dashoffset: var(--lnp-circ); } }
@keyframes lnp-grow { from { transform: scaleY(0); } }
@keyframes lnp-scalex { from { transform: scaleX(0); } }
@keyframes lnp-fade { from { opacity: 0; } }
@keyframes lnp-pop { from { opacity: 0; transform: scale(.6); } }

@media (max-width: 720px) {
    .lnp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
    .lnp-rate { flex-direction: column; align-items: flex-start; }
    .lnp-gauge { width: 132px; height: 132px; }
    .lnp-gauge__v { font-size: 2.5rem; }
    .lnp-bars { gap: 5px; }
    .lnp-panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .lnp, .lnp *, .lnp *::before, .lnp *::after { animation: none !important; transition: none !important; }
}

/* ── Public accent-colour picker (PublicNavBar): palette button + popover of swatches, same look as the member swatches ── */
.public-shell .pb-palette { position: relative; display: inline-block; }
.public-shell .pb-palette-btn { font-size: 16px; line-height: 1; }
.public-shell .pb-palette-pop {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 1100;
    display: flex; gap: 8px; padding: 10px;
    background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px);
}
.public-shell .pb-palette-pop[hidden] { display: none; }
.public-shell .pb-swatch {
    width: 28px; height: 28px; border-radius: 50%; padding: 3px; box-sizing: border-box; flex: 0 0 auto;
    border: 2px solid transparent; background: var(--sw); background-clip: content-box; cursor: pointer;
}
.public-shell .pb-swatch:hover { border-color: var(--text-muted); }
.public-shell .pb-swatch[aria-checked="true"] { border-color: #fff; }
html[data-theme="light"] .public-shell .pb-swatch[aria-checked="true"] { border-color: var(--text-primary); }
.public-shell .pb-swatch:focus-visible { outline: 2px solid var(--ml-accent); outline-offset: 2px; }
@media (max-width: 480px) { .public-shell .pb-palette-pop { position: fixed; top: 64px; right: 16px; } }
