/* KBM Core rc.198.4 — Visual Experience Authority.
 * Page-specific progressive polish. Theme remains shell owner. */
:root{
  --kbm-vx-radius-sm:14px;
  --kbm-vx-radius-md:20px;
  --kbm-vx-radius-lg:28px;
  --kbm-vx-shadow-1:0 8px 24px rgba(7,29,45,.055);
  --kbm-vx-shadow-2:0 18px 46px rgba(7,29,45,.10);
  --kbm-vx-shadow-3:0 28px 72px rgba(7,29,45,.16);
  --kbm-vx-border:rgba(148,163,184,.24);
  --kbm-vx-canvas:#f4f7fb;
  --kbm-vx-glass:rgba(255,255,255,.86);
}
body.kbm-vx1984-active{
  background:
    radial-gradient(circle at 12% 4%,rgba(255,204,0,.07),transparent 22rem),
    linear-gradient(180deg,#f8fafc 0,#f3f7fb 58%,#f8fafc 100%)!important;
  color:var(--kbm-ds-text,#0f172a);
}
body.kbm-vx1984-active :where(a,button,input,select,textarea){-webkit-tap-highlight-color:rgba(255,204,0,.18)}
body.kbm-vx1984-active :where(a,button):focus-visible{outline:3px solid rgba(255,204,0,.34);outline-offset:2px}

/* Home / above-the-fold */
body.kbm-vx1984-home .kbm-home-v3{position:relative}
body.kbm-vx1984-home .kbm-v3-hero{gap:14px!important;margin-bottom:24px!important}
body.kbm-vx1984-home .kbm-v3-hero__content{
  min-height:520px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:32px!important;
  background-image:
    linear-gradient(132deg,rgba(5,25,44,.97) 0%,rgba(9,44,77,.94) 58%,rgba(13,59,96,.90) 100%),
    var(--kbm-vx-home-ambient-image,none)!important;
  background-size:cover!important;background-position:center!important;
  box-shadow:var(--kbm-vx-shadow-3)!important;
}
body.kbm-vx1984-home .kbm-v3-hero__content::after{
  content:"";position:absolute;inset:auto -7% -36% auto;width:420px;height:420px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(255,204,0,.20),rgba(255,204,0,0) 66%);filter:blur(3px)
}
body.kbm-vx1984-home .kbm-v3-kicker{position:relative;z-index:1;display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:7px;padding:6px 10px;border:1px solid rgba(255,224,108,.28);border-radius:999px;background:rgba(255,204,0,.10);color:#ffe68e!important;font-size:11px!important;font-weight:900!important}
body.kbm-vx1984-home .kbm-v3-hero__content h1{z-index:1;font-size:clamp(33px,4.15vw,56px)!important;letter-spacing:-1.25px!important;text-wrap:balance}
body.kbm-vx1984-home .kbm-v3-hero__content>p{z-index:1;max-width:760px;color:rgba(255,255,255,.84)!important}
body.kbm-vx1984-home .kbm-v3-search{z-index:2;padding:10px!important;border:1px solid rgba(255,255,255,.19)!important;border-radius:22px!important;background:rgba(255,255,255,.115)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08);backdrop-filter:blur(16px) saturate(115%)}
body.kbm-vx1984-home .kbm-v3-search__scope{scroll-snap-type:x proximity;padding-bottom:2px}
body.kbm-vx1984-home .kbm-v3-search__scope button{scroll-snap-align:start;min-height:38px!important;padding-inline:12px!important;border-color:rgba(255,255,255,.18)!important;background:rgba(255,255,255,.07)!important;transition:transform 160ms ease,background-color 160ms ease,border-color 160ms ease!important}
body.kbm-vx1984-home .kbm-v3-search__scope button.is-active{background:linear-gradient(180deg,#ffda3a,#ffc900)!important;border-color:#ffe270!important;box-shadow:0 8px 18px rgba(255,204,0,.20);color:#071d2d!important}
body.kbm-vx1984-home .kbm-v3-search__fields input{min-height:52px!important;border-radius:15px!important;border-color:rgba(226,232,240,.94)!important;background:rgba(255,255,255,.98)!important;box-shadow:0 5px 14px rgba(7,29,45,.05)}
body.kbm-vx1984-home .kbm-v3-search__submit{min-height:52px!important;border-radius:15px!important;background:linear-gradient(180deg,#ffdb3d,#ffc800)!important;box-shadow:0 10px 22px rgba(255,204,0,.24);transition:transform 150ms ease,box-shadow 150ms ease!important}
body.kbm-vx1984-home .kbm-v3-search__submit:hover{transform:translateY(-1px);box-shadow:0 13px 28px rgba(255,204,0,.30)}
body.kbm-vx1984-home .kbm-v3-hero__actions a{min-height:44px!important;border-radius:14px!important;backdrop-filter:blur(8px)}
body.kbm-vx1984-home .kbm-v3-hero__actions a.is-primary{background:#fff!important;box-shadow:0 8px 18px rgba(3,15,28,.14)}
body.kbm-vx1984-home .kbm-v3-hero__media{border:1px solid rgba(15,41,66,.08)!important;border-radius:32px!important;box-shadow:var(--kbm-vx-shadow-3)!important}
body.kbm-vx1984-home .kbm-v3-hero__media .kbm-sch27-hero-gallery{border-radius:32px!important}

/* Fast routes / category surfaces */
body.kbm-vx1984-home .kbm-v3-routes,
body.kbm-vx1984-home .kbm-v3-planner,
body.kbm-vx1984-home .kbm-v3-categories{position:relative}
body.kbm-vx1984-home .kbm-v3-route-card{border-color:var(--kbm-vx-border)!important;border-radius:22px!important;box-shadow:var(--kbm-vx-shadow-1)!important;overflow:hidden!important}
body.kbm-vx1984-home .kbm-v3-route-card::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:linear-gradient(90deg,transparent,#ffcc00 50%,transparent);opacity:0;transition:opacity 180ms ease}
body.kbm-vx1984-home .kbm-v3-route-card:hover::after,body.kbm-vx1984-home .kbm-v3-route-card:focus-visible::after{opacity:1}
body.kbm-vx1984-home .kbm-v3-route-card__icon{border:1px solid rgba(231,187,0,.22)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
body.kbm-vx1984-home .kbm-v3-section-head h2{letter-spacing:-.35px;text-wrap:balance}
body.kbm-vx1984-home .kbm-v3-final{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.10)!important;background-image:linear-gradient(132deg,rgba(7,29,45,.98),rgba(16,55,91,.96)),var(--kbm-vx-dark-mesh-image,none)!important;background-size:cover!important;box-shadow:var(--kbm-vx-shadow-2)!important}

/* Unified cards: preserve Card System 2 data and geometry, improve scanability. */
body.kbm-vx1984-active .kbm-card2{border-color:rgba(148,163,184,.25)!important;box-shadow:var(--kbm-vx-shadow-1)!important;background:rgba(255,255,255,.985)!important}
body.kbm-vx1984-active .kbm-card2:not(.is-expired):hover{border-color:rgba(219,172,0,.62)!important;box-shadow:var(--kbm-vx-shadow-2)!important}
body.kbm-vx1984-active .kbm-card2__media::after{content:"";position:absolute;inset:auto 0 0;height:28%;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(7,29,45,.13));z-index:1}
body.kbm-vx1984-active .kbm-card2__badges,body.kbm-vx1984-active .kbm-card2__gallery{z-index:3}
body.kbm-vx1984-active .kbm-card2__category{background:rgba(248,250,252,.96)!important;border-color:#e2e8f0!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
body.kbm-vx1984-active .kbm-card2__title{font-weight:950!important;letter-spacing:-.15px}
body.kbm-vx1984-active .kbm-card2__chip{background:#f8fafc!important;border-color:#e7edf3!important}
body.kbm-vx1984-active .kbm-card2__cta{border-radius:12px!important;background:linear-gradient(180deg,#ffd735,#ffc900)!important;box-shadow:0 8px 16px rgba(255,204,0,.18)!important}
body.kbm-vx1984-active .kbm-card2__cta.is-secondary{background:#fff!important;box-shadow:none!important}
body.kbm-vx1984-active .kbm-card2.is-expired{background:#fbfcfd!important}body.kbm-vx1984-active .kbm-card2.is-expired .kbm-card2__body{opacity:.74}

/* Filter UX: one clear mobile/desktop visual language, behaviour remains V5-owned. */
body.kbm-vx1984-active.kbm-filter-pro-active .kbm-filter-pro-sheet{border-color:rgba(148,163,184,.24)!important;box-shadow:var(--kbm-vx-shadow-1)!important;background:rgba(255,255,255,.985)!important}
body.kbm-vx1984-active .kbm-filter-pro-trigger{border-radius:16px!important;background:linear-gradient(180deg,#103654,#082c47)!important;color:#fff!important;box-shadow:0 10px 22px rgba(8,44,71,.16)!important}
body.kbm-vx1984-active .kbm-filter-pro-chipbar{border-color:rgba(148,163,184,.22)!important;border-radius:17px!important;background:rgba(255,255,255,.94)!important;box-shadow:var(--kbm-vx-shadow-1)!important;backdrop-filter:blur(10px)}
body.kbm-vx1984-active .kbm-filter-pro-chip{background:#fff8d5!important;border-color:#f4d86c!important;color:#5c4700!important}
body.kbm-vx1984-active .kbm-filter-pro-form :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-height:50px!important;border-radius:14px!important;background:#fff!important;border-color:#dfe7ee!important}
body.kbm-vx1984-active .kbm-filter-pro-form :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus{border-color:#d9ac00!important;box-shadow:0 0 0 3px rgba(255,204,0,.13)!important}

/* Archive rhythm / empty states / dashboard surfaces. */
body.kbm-vx1984-active :where(.kbm-ads-grid,.kbm-m40-grid,.kbm-drivers-recode-grid,.kbm-c118-grid,.kbm-card2-grid){gap:14px!important}
body.kbm-vx1984-active :where(.kbm-ads-recode-hero,.kbm-m40-hero,.kbm-drivers-recode-hero,.kbm-c118-hero){border-radius:var(--kbm-vx-radius-lg)!important;overflow:hidden!important;box-shadow:var(--kbm-vx-shadow-1)!important}
body.kbm-vx1984-dashboard :where(.kbm-dashboard,.kbm-p8-dashboard,.kbm-user-dashboard){background-image:linear-gradient(rgba(248,250,252,.90),rgba(248,250,252,.96)),var(--kbm-vx-dashboard-mesh-image,none);background-size:cover;background-attachment:local}
body.kbm-vx1984-dashboard :where(.kbm-dashboard-card,.kbm-life-card,.kbm-p8-card){border-radius:20px!important;box-shadow:var(--kbm-vx-shadow-1)!important}

/* Progressive reveal: elements are never hidden until JS explicitly marks them. */
body.kbm-vx1984-active.kbm-vx-reveal-js .kbm-vx-reveal{opacity:0;transform:translateY(14px);transition:opacity 360ms cubic-bezier(.16,1,.3,1),transform 360ms cubic-bezier(.16,1,.3,1)}
body.kbm-vx1984-active.kbm-vx-reveal-js .kbm-vx-reveal.is-visible{opacity:1;transform:none}
body.kbm-vx1984-active .kbm-vx-pressed{transform:scale(.985)!important}

@media(max-width:980px){
  body.kbm-vx1984-active{background:linear-gradient(180deg,#f7f9fc,#f1f5f9 56%,#f7f9fc)!important}
  body.kbm-vx1984-home .kbm-v3-hero__content{min-height:auto!important;border-radius:24px!important;padding:24px 16px!important}
  body.kbm-vx1984-home .kbm-v3-hero__media,body.kbm-vx1984-home .kbm-v3-hero__media .kbm-sch27-hero-gallery{border-radius:24px!important}
  body.kbm-vx1984-home .kbm-v3-hero__media .kbm-sch27-hero-gallery{aspect-ratio:16/10!important;min-height:0!important}
  body.kbm-vx1984-home .kbm-v3-search{border-radius:18px!important;padding:8px!important}
  body.kbm-vx1984-home .kbm-v3-search__fields input,body.kbm-vx1984-home .kbm-v3-search__submit{min-height:48px!important}
  body.kbm-vx1984-home .kbm-v3-route-grid{display:flex!important;grid-template-columns:none!important;gap:9px!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;overscroll-behavior-inline:contain;padding:2px 2px 8px!important;scrollbar-width:none}
  body.kbm-vx1984-home .kbm-v3-route-grid::-webkit-scrollbar{display:none}
  body.kbm-vx1984-home .kbm-v3-route-card{flex:0 0 min(82vw,330px)!important;scroll-snap-align:start!important;min-height:98px!important;padding:13px!important;border-radius:18px!important}
  body.kbm-vx1984-active .kbm-card2{border-radius:18px!important;box-shadow:0 8px 22px rgba(7,29,45,.07)!important}
  body.kbm-vx1984-active .kbm-card2__cta{box-shadow:none!important}
  body.kbm-vx1984-active .kbm-filter-pro-chipbar{border-radius:15px!important}
}
@media(max-width:430px){
  body.kbm-vx1984-home .kbm-v3-hero__content h1{font-size:clamp(28px,8vw,34px)!important;line-height:1.42!important}
  body.kbm-vx1984-home .kbm-v3-hero__content>p{font-size:12.5px!important;line-height:1.85!important}
  body.kbm-vx1984-home .kbm-v3-search__scope{margin-inline:-2px;padding-inline:2px}
  body.kbm-vx1984-home .kbm-v3-search__scope button{min-height:36px!important;font-size:10.4px!important;padding-inline:10px!important}
  body.kbm-vx1984-home .kbm-v3-search__fields{grid-template-columns:minmax(0,1fr) minmax(112px,.62fr)!important;gap:6px!important}
  body.kbm-vx1984-home .kbm-v3-search__query{grid-column:1/-1!important}
  body.kbm-vx1984-home .kbm-v3-search__fields input{font-size:12px!important}
  body.kbm-vx1984-home .kbm-v3-search__submit{min-width:0!important;font-size:10.8px!important;padding-inline:8px!important}
  body.kbm-vx1984-home .kbm-v3-hero__actions{gap:6px!important}.kbm-v3-hero__actions a{min-height:42px!important}
  body.kbm-vx1984-active .kbm-card2{min-height:176px!important}
  body.kbm-vx1984-active .kbm-card2__media{min-height:176px!important}
  body.kbm-vx1984-active .kbm-card2__body{min-height:176px!important}
}
@media(max-width:360px){
  body.kbm-vx1984-home .kbm-v3-search__fields{grid-template-columns:1fr!important}
  body.kbm-vx1984-home .kbm-v3-search__query{grid-column:auto!important}
  body.kbm-vx1984-home .kbm-v3-route-card{flex-basis:88vw!important}
}
@media(prefers-reduced-motion:reduce){
  body.kbm-vx1984-active *,body.kbm-vx1984-active *::before,body.kbm-vx1984-active *::after{scroll-behavior:auto!important;animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}
  body.kbm-vx1984-active.kbm-vx-reveal-js .kbm-vx-reveal{opacity:1!important;transform:none!important}
}
