/* One shared navigation layout, with the same breakpoint as navigation.js. */
:root {
  --header-height: 72px;
  --chrome-height: 72px;
  --page-pad: clamp(20px, 4.5vw, 72px);
  --glass-fill: rgba(26, 38, 56, .38);
  --glass-edge: rgba(222, 238, 255, .25);
  --glass-highlight: rgba(255, 255, 255, .36);
  --glass-selected: rgba(179, 212, 255, .13);
  --glass-shadow: 0 12px 40px rgba(0, 9, 24, .18);
}
html[data-theme="light"] {
  --glass-fill: rgba(250, 252, 255, .48);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-highlight: rgba(255, 255, 255, .95);
  --glass-selected: rgba(28, 81, 145, .09);
  --glass-shadow: 0 8px 36px rgba(28, 55, 89, .10), 0 0 0 1px rgba(26, 52, 80, .06);
}
html { scroll-padding-top: 110px; }
body { padding-top: calc(94px + max(14px, env(safe-area-inset-top, 0px))); padding-bottom: 0; }
body { background-image: radial-gradient(ellipse 62vw 420px at 18% -140px,rgba(78,139,222,.12),transparent 80%),radial-gradient(ellipse 50vw 320px at 90% -120px,rgba(84,77,163,.08),transparent 80%); background-repeat: no-repeat; }
main { width: 100%; max-width: 1680px; margin-inline: auto; padding-left: max(var(--page-pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--page-pad), env(safe-area-inset-right, 0px)); }
main > * { min-width: 0; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea { max-width: 100%; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 4px;
}
.skip-link { z-index: 120; border-radius: 14px; }
header.site-header {
  position: fixed !important;
  inset: max(14px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) auto max(24px, env(safe-area-inset-left, 0px)) !important;
  display: flex; flex-wrap: nowrap !important; align-content: normal !important; align-items: center;
  justify-content: space-between;
  width: auto !important; max-width: 1392px; height: var(--chrome-height) !important;
  min-height: var(--chrome-height) !important; margin: 0 auto !important; padding: 8px 18px 8px 22px !important;
  gap: 18px !important; border: 1px solid var(--glass-edge) !important; border-radius: 999px !important;
  background: var(--glass-fill) !important;
  -webkit-backdrop-filter: blur(26px) saturate(155%) brightness(1.08);
  backdrop-filter: blur(26px) saturate(155%) brightness(1.08);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 -1px 0 rgba(255,255,255,.025), var(--glass-shadow) !important;
  transform: none !important; z-index: 100; isolation: isolate;
  transition: background .3s, box-shadow .3s, border-color .3s !important;
}
header.site-header::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at var(--shine-x, 28%) -30%, rgba(255,255,255,.27), transparent 62%),linear-gradient(175deg,rgba(255,255,255,.04),transparent 42%,rgba(184,214,255,.025));
}
header.site-header::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 1px 0 0 rgba(255,255,255,.09), inset -1px 0 0 rgba(255,255,255,.07);
}
header.site-header.glass-scrolled { top: max(14px, env(safe-area-inset-top, 0px)) !important; }
header.site-header.glass-scrolled { --glass-fill: rgba(21,32,48,.58); border-color: rgba(222,238,255,.32) !important; box-shadow: inset 0 1px 0 var(--glass-highlight),inset 0 -1px 0 rgba(255,255,255,.04),0 8px 28px rgba(0,9,24,.2) !important; }
html[data-theme="light"] header.site-header.glass-scrolled { --glass-fill: rgba(249,252,255,.68); border-color: rgba(255,255,255,.94) !important; }
header.site-header.is-hidden { transform: none !important; }
.site-header .brand { order: 0; flex: 0 0 auto; gap: 9px; min-height: 44px; }
.site-header .brand-name { font-size: 22px; letter-spacing: 2px; }
.site-header .brand-name small { font-size: 7px; margin-top: 6px; letter-spacing: 1.7px; }
.site-header .apex-symbol { width: 30px; height: 33px; font-size: 27px !important; }
.site-header > nav {
  order: 0 !important; position: relative; display: flex !important; align-self: center !important;
  align-items: center !important; justify-content: center; flex: 0 1 auto; width: auto !important;
  height: auto !important; margin: 0 auto !important; gap: 2px !important; padding: 3px !important;
  border: 0 !important; border-radius: 999px; background: transparent;
}
.site-header > nav > a {
  position: relative; display: inline-flex; justify-content: center; align-items: center;
  min-height: 44px; padding: 10px 15px !important; font-size: 13px !important; font-weight: 500;
  line-height: 1.3; border-radius: 999px; color: var(--muted); z-index: 1;
  transition: color .2s, background .2s; flex: 0 0 auto;
}
.site-header > nav > a::before, .site-header > nav > a::after { display: none !important; }
.site-header > nav > a:hover { color: var(--white); background: rgba(128,175,234,.07); }
.site-header > nav > a[aria-current="page"] { color: var(--white); background: transparent; }
.glass-active-indicator {
  position: absolute; inset: 0 auto auto 0; border-radius: 999px; pointer-events: none;
  background: var(--glass-selected); border: 1px solid rgba(194,220,255,.1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.15), 0 2px 8px rgba(0,10,30,.05);
  transition: transform .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1);
}
.site-header .header-tools { display: flex; flex: 0 0 auto; order: 0; align-items: center; gap: 5px !important; margin-left: 0; }
.site-header .header-saved, .site-header .header-divider { display: none !important; }
.site-header .header-tools .icon-button,
.site-header .header-account .account-header-link {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 44px;
  min-width: 42px; min-height: 44px; padding: 10px; border: 0; border-radius: 50%;
  background: transparent; color: var(--white); transition: background .2s;
}
.site-header .header-tools .icon-button:hover, .site-header .account-header-link:hover { background: var(--glass-selected); }
.site-header .header-tools .icon-button > svg { width: 20px; height: 20px; }
.site-header .header-account { display: block; }
.site-header .header-account .account-header-link { width: auto; gap: 8px; font-size: 12px; border-radius: 24px; }
.site-header .header-account .account-header-link > span { max-width: 76px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.site-header .header-language-indicator { display: none !important; }
.site-header .apex-select { width: 52px; min-width: 52px; }
.site-header .apex-select-trigger { min-height: 44px; border: 0; border-radius: 22px; padding-inline: 7px; background: transparent; font-size: 11px; }
.site-header #language-select { width: 52px; padding: 10px 4px; font-size: 12px; min-height: 44px; color: var(--white); }
.site-header .header-xp { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; min-width: 43px; padding: 4px; font-size: 9px; color: var(--blue); line-height: 1.5; }
.site-header .header-xp b { font-size: 11px; letter-spacing: .6px; }
.site-header .header-units { position: relative; flex: none; }
.header-units > summary {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px;
  padding: 10px; font-size: 11px; list-style: none; cursor: pointer; border-radius: 24px; color: var(--muted);
}
.header-units > summary::-webkit-details-marker { display: none; }
.header-units > summary > svg { width: 19px; height: 19px; }
.header-units > summary:hover, .header-units[open] > summary { background: var(--glass-selected); color: var(--white); }
.units-popover {
  position: absolute; inset: 58px -20px auto auto; z-index: 5; display: grid; gap: 18px;
  width: 288px; max-width: calc(100vw - 32px); padding: 24px; border: 1px solid var(--glass-edge);
  border-radius: 24px; background: var(--surface); color: var(--white); box-shadow: 0 20px 64px rgba(0,10,30,.22);
}
.units-popover strong { font-size: 15px; font-weight: 500; letter-spacing: -.3px; }
.units-popover label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.units-popover select { width: 100%; min-height: 44px; padding: 10px; background: var(--bg); color: var(--white); font-size: 14px; border: 1px solid var(--line); border-radius: 10px; }
.units-popover p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.site-header .header-user-menu { top: calc(100% + 20px); right: -6px; padding: 8px; border-radius: 22px; border-color: var(--glass-edge); box-shadow: var(--glass-shadow); }
.site-header .header-user-menu > a, .site-header .header-user-menu > button { font-size: 13px; border-radius: 14px; padding: 12px; }
.site-header .mobile-menu-toggle { display: none !important; }
.global-search { border-radius: 28px; border: 1px solid var(--glass-edge); background: var(--surface); box-shadow: 0 24px 100px rgba(0,9,25,.3); }
.global-search .gs-top { padding: 20px 24px 10px; }
.global-search .gs-top > button { min-width: 42px; min-height: 42px; padding: 8px; border-radius: 50%; }
.global-search .gs-top > .eyebrow { font-size: 10px; line-height: 1.7; }
.global-search .gs-result { min-height: 76px; border-radius: 16px; padding: 14px; }
.global-search .gs-result strong { font-size: 14px; line-height: 1.5; }
.global-search .gs-result > span > span { font-size: 11px; }
.global-search .gs-result small { font-size: 9px; }
.global-search .gs-filters > button { min-height: 40px; font-size: 12px; padding: 9px 14px; }
.global-search .gs-status { font-size: 12px; line-height: 1.7; }

/* The hero belongs to its page container; 100vw plus margins caused sideways scrolling. */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; max-width: 100%; margin: 0; margin-left: 0; border-radius: 28px;
  height: min(760px, calc(100svh - 132px)); min-height: 620px; overflow: hidden;
  background: #101721; color: #fff; isolation: isolate;
}
.hero .hero-photo { max-width: none; object-position: 65% 50%; }
.hero .hero-shade { background: linear-gradient(90deg,#06101ce8 0%,#07101bbc 35%,#09142333 74%),linear-gradient(0deg,#07101aeb,transparent 38%); }
.hero .hero-content { position: relative; inset: auto; padding: clamp(40px, 5vw, 70px) clamp(28px, 4.5vw, 64px) 20px; width: 100%; max-width: 780px; }
.hero .hero-kicker { min-width: 0; font-size: 10px; line-height: 1.7; letter-spacing: 2px; }
.hero .hero-kicker > .live-dot { flex: 0 0 6px; }
.hero .hero-kicker > span:not(.live-dot) { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.7; }
.hero h1 { font-size: clamp(68px, 7.2vw, 104px); font-weight: 500; line-height: 1.02; letter-spacing: -.065em; margin: 28px 0 24px; }
.hero .hero-content > p { font-size: 15px; line-height: 1.8; max-width: 420px; margin: 0 0 27px; color: #d1d9e3; }
.hero .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.hero .button-primary { min-height: 48px; padding: 14px 22px; border-radius: 999px; font-size: 13px; }
.hero .hero-explore-link { min-height: 44px; display: inline-flex; gap: 10px; align-items: center; font-size: 13px; color: #edf4ff; padding: 10px 0; }
.hero .hero-secondary { display: none; }
.hero .hero-bottom { position: relative; inset: auto; display: flex; align-items: end; justify-content: space-between; padding: 18px clamp(28px, 4.5vw, 64px) 32px; width: 100%; gap: 24px; }
.hero .hero-stats { gap: 28px; }
.hero .hero-stats > span + span { padding-left: 28px; }
.hero .hero-stats strong { font-size: 29px; }
.hero .hero-stats small { font-size: 11px; line-height: 1.5; }
.hero .hero-passion strong { font-size: 17px; }
.hero .hero-caption { inset: 30px 30px auto auto; max-width: 160px; padding: 10px 12px; border: 1px solid #ffffff24; border-radius: 999px; background: #0a12245c; backdrop-filter: blur(12px); letter-spacing: 1px; }
.hero .hero-scroll { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.welcome-section { border-radius: 26px; margin-top: 30px; padding: 36px; }
.welcome-options > button, .welcome-options > a { min-width: 0; min-height: 104px; border-radius: 18px; padding: 24px; }
.welcome-options > button strong, .welcome-options > a strong { padding-right: 15px; }
.welcome-options > button span, .welcome-options > a span { font-size: 12px; line-height: 1.6; }
.welcome-options > button:hover, .welcome-options > a:hover { transform: translateY(-2px); }
.home-directions { margin-top: 55px; }
.home-next-grid { margin-bottom: 64px; }
.home-next-grid > a { border-radius: 26px; }
.owner-club-entry { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:clamp(24px,4vw,44px); margin:24px 0 40px; border:1px solid var(--glass-border,var(--line)); border-radius:28px; background:linear-gradient(125deg,rgba(112,179,255,.12),rgba(255,255,255,.025)); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.owner-club-entry>div { min-width:0; max-width:650px; }
.owner-club-entry h2 { margin:12px 0; font-size:clamp(23px,3vw,36px); letter-spacing:-.045em; line-height:1.12; }
.owner-club-entry p { margin:0; color:var(--muted); line-height:1.75; font-size:14px; }
.owner-club-entry>nav { display:grid; gap:8px; flex:none; }
.owner-club-entry a { display:inline-flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:10px 16px; border:1px solid var(--line); border-radius:14px; color:var(--white); font-size:13px; text-decoration:none; }
.owner-club-entry a:hover { border-color:var(--blue,#70b3ff); background:rgba(112,179,255,.08); }
.owner-club-entry>.button-primary { flex:none; color:#09111d; background:#70b3ff; }
.play-community-credit { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; margin:24px 0; border:1px solid var(--line); border-radius:22px; background:linear-gradient(120deg,rgba(112,179,255,.1),transparent); }
.play-community-credit h2 { margin:9px 0; font-size:24px; line-height:1.2; }
.play-community-credit p { max-width:650px; margin:0; color:var(--muted); line-height:1.7; font-size:14px; }
.play-community-credit>a { flex:none; min-height:44px; display:inline-flex; align-items:center; }
html:has(dialog[open]),html:has(dialog[open]) body { overflow:hidden; }
#dialog>#close,.asp-heading>button,.pg-close,[data-glossary-close] { display:inline-flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; padding:11px; border:1px solid var(--line); border-radius:14px; background:rgba(128,148,170,.08); color:var(--white); cursor:pointer; }
#dialog>#close svg,.asp-heading>button svg,.pg-close svg,[data-glossary-close] svg { width:20px; height:20px; display:block; pointer-events:none; }
#dialog>#close:hover,.asp-heading>button:hover,.pg-close:hover,[data-glossary-close]:hover { background:rgba(112,179,255,.16); border-color:rgba(112,179,255,.4); }
#dialog>#close:focus-visible,.asp-heading>button:focus-visible,.pg-close:focus-visible,[data-glossary-close]:focus-visible { outline:2px solid #70b3ff; outline-offset:3px; }
@media(max-width:760px) {
  .owner-club-entry,.play-community-credit { flex-direction:column; align-items:stretch; gap:20px; border-radius:22px; }
  .owner-club-entry>nav { display:flex; flex-wrap:wrap; }
  .owner-club-entry a { flex:1 1 150px; }
  .owner-club-entry>.button-primary { flex:auto; justify-content:center; }
  .play-community-credit>a { justify-content:flex-start; }
}
.direction-card { border-radius: 22px; overflow: hidden; }
.destination-page, .parts-encyclopedia-host, .photo-source-page { width: 100%; max-width: 1440px; margin-inline: auto; }
.destination-page { padding-top: 16px; }
.destination-breadcrumb { min-height: 32px; margin-bottom: 24px; flex-wrap: wrap; font-size: 12px; line-height: 1.6; }
.destination-heading { margin-bottom: 32px; }
.destination-heading h1 { font-size: clamp(38px, 4vw, 60px); line-height: 1.1; letter-spacing: -.04em; }
.destination-heading p { max-width: 650px; font-size: 14px; line-height: 1.85; }
.destination-label { font-size: 9px; letter-spacing: 1.2px; line-height: 1.6; }
.section-heading { gap: 22px; }
.site-footer { grid-template-columns:minmax(190px,.8fr) minmax(0,2.4fr); margin-top: 70px; padding-top: 44px; padding-bottom: 30px; }
.site-footer .footer-brand { grid-column:auto; }
.site-footer .footer-links { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); min-width:0; padding:0; gap:26px; }
.site-footer .footer-group { min-width:0; gap:5px; }
.site-footer .footer-group a,.site-footer .footer-group button { white-space:normal; overflow-wrap:anywhere; }
.site-footer .footer-brand p { max-width: 280px; font-size: 13px; }
.site-footer .footer-brand small { display: block; font-size: 11px; line-height: 1.85; max-width: 310px; }
.site-footer .footer-group a, .site-footer .footer-group button { font-size: 12px; min-height: 36px; display: inline-flex; align-items: center; text-align: left; }
.site-footer .footer-group h2 { font-size: 10px; letter-spacing: 1.5px; }
.site-footer .footer-end { font-size: 11px; line-height: 1.7; gap: 20px; }
.site-footer .footer-end > span { max-width: none; }
.engineering-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.engineering-detail-actions > a, .engineering-detail-actions > button { min-height: 44px; font-size: 12px; border-radius: 14px; white-space: normal; }
.collection-filters, .quick-picks { flex-wrap: wrap; }
.collection-filters button, .quick-picks button { min-height: 42px; }
.collection-search { border-radius: 14px; }
.model-card { border-radius: 18px; }
.glass-bottom-nav { display: none; }
#toast, .compare-tray ~ #toast { bottom: 24px; z-index: 110; max-width: calc(100vw - 32px); }
.compare-tray:not([hidden]) ~ #toast { bottom: 136px; }
.compare-tray { z-index: 95; }
.mobile-navigation { background: var(--surface) !important; }

@media (max-width: 1320px) and (min-width: 1121px) {
  .site-header .header-account .account-header-link > span { display: none; }
  .site-header > nav > a { padding-inline: 12px !important; }
  .site-header .header-xp { display: none; }
}
@media (max-width: 1120px) {
  :root { --chrome-height: 68px; }
  body { padding-top: calc(88px + max(14px, env(safe-area-inset-top, 0px))); }
  header.site-header { left: max(20px, env(safe-area-inset-left, 0px)) !important; right: max(20px, env(safe-area-inset-right, 0px)) !important; padding: 8px 12px 8px 20px !important; }
  .site-header > nav { display: none !important; }
  .site-header .mobile-menu-toggle { display: inline-flex !important; }
  .site-header .header-tools > .header-account { display: none; }
  .site-header .header-tools > #language-select, .site-header .header-tools > .apex-select { display: none; }
  .site-header .header-tools > #theme-toggle { display: none; }
  .site-header .header-xp { display: flex; margin-right: 4px; }
  .mobile-navigation {
    position: fixed; inset: auto max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)) !important; width: auto; max-width: 640px;
    height: auto; max-height: min(88dvh, 820px, calc(100dvh - max(12px, env(safe-area-inset-top, 0px)) - max(12px, env(safe-area-inset-bottom, 0px)))); margin: 0 auto !important; padding: 0;
    overflow: hidden; border: 1px solid var(--glass-edge) !important; border-radius: 30px !important;
    color: var(--white); background: var(--glass-fill) !important;
    -webkit-backdrop-filter: blur(36px) saturate(170%); backdrop-filter: blur(36px) saturate(170%);
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 24px 100px #0005;
  }
  .mobile-navigation[open] { display: flex; flex-direction: column; animation: glass-sheet-in .3s cubic-bezier(.2,.8,.2,1) both; }
  .mobile-navigation.is-closing { animation: glass-sheet-out .18s ease-in both; }
  .mobile-navigation::backdrop { background: rgba(2,8,20,.48); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  .mobile-navigation .mn-top { position: relative; padding: 30px 24px 18px; border-bottom: 1px solid var(--line); }
  .mobile-navigation .mn-top::before { content: ''; position: absolute; width: 36px; height: 4px; background: var(--muted); opacity: .4; border-radius: 4px; top: 11px; left: calc(50% - 18px); }
  .mobile-navigation .mn-top .mn-wordmark { font-size: 24px; }
  .mobile-navigation .mn-scroll { overflow-y: auto; padding: 20px 24px 24px; min-height: 0; }
  .mobile-navigation .mn-group { margin-top: 26px; }
  .mobile-navigation .mn-group nav > a { min-height: 60px; padding: 11px 12px; font-size: 18px; border-radius: 16px; animation: none; }
  .mobile-navigation small { font-size: 12px; line-height: 1.6; }
  .mobile-navigation .mn-group h2 { font-size: 10px; }
  .mobile-navigation .mn-preferences #theme-toggle { font-size: 14px; border-radius: 14px; }
  .mobile-navigation .mn-preferences .apex-select, .mobile-navigation .mn-preferences select { max-width: 100%; width: 100%; }
  .site-footer { grid-template-columns:1fr; column-gap: 30px; }
}
@media (min-width: 1121px) {
  .site-header > nav { display: flex !important; }
  .site-header .mobile-menu-toggle { display: none !important; }
}
@media (max-width: 800px) {
  .hero { min-height: 630px; height: auto; }
  .hero .hero-content { padding: 58px 34px 24px; }
  .hero h1 { font-size: clamp(62px, 9vw, 82px); }
  .hero .hero-bottom { padding-inline: 34px; }
  .hero .hero-caption { top: 22px; right: 22px; font-size: 9px; }
  .hero .hero-kicker { max-width: 70%; font-size: 9px; }
  .hero .hero-passion { display: none; }
  .welcome-section { padding: 28px; }
  .welcome-options { grid-template-columns: 1fr; gap: 10px; }
  .welcome-options > button, .welcome-options > a { min-height: 84px; padding: 18px 22px; }
  .welcome-options strong { font-size: 16px; }
  .welcome-options b { display: block; right: 20px; top: 20px; }
  .home-directions { margin-top: 42px; }
  .home-next-grid { grid-template-columns: 1fr; gap: 16px; }
  .site-footer { grid-template-columns: 1fr; gap: 30px; }
  .site-footer .footer-links { width: 100%; gap: 24px; }
  .site-footer .footer-brand p, .site-footer .footer-brand small { max-width: 450px; }
}
@media (max-width: 600px) {
  :root { --chrome-height: 62px; --page-pad: 18px; }
  html { scroll-padding-top: 96px; }
  body { padding-top: calc(88px + env(safe-area-inset-top, 0px)); padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
  header.site-header { inset: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) auto max(12px, env(safe-area-inset-left, 0px)) !important; padding: 6px 8px 6px 15px !important; gap: 10px !important; }
  header.site-header.glass-scrolled { top: max(10px, env(safe-area-inset-top, 0px)) !important; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-name { font-size: 20px; letter-spacing: 1.7px; }
  .site-header .brand-name small { font-size: 6px; letter-spacing: 1.25px; margin-top: 5px; }
  .site-header .apex-symbol { width: 27px; height: 30px; font-size: 25px !important; }
  .site-header .header-xp { display: none; }
  .site-header .header-tools { gap: 0 !important; }
  .site-header .header-tools .icon-button { width: 42px !important; min-width: 42px !important; height: 44px !important; padding: 11px !important; }
  .site-header .header-units > summary { width: 42px; min-width: 42px; }
  .site-header .header-units > summary > span { display: none; }
  .units-popover { position: fixed; inset: calc(84px + env(safe-area-inset-top,0px)) 16px auto !important; width: auto; max-width: none; }
  .units-popover select { font-size: 16px; }
  .hero { margin: 0; border-radius: 24px; width: 100%; min-height: 584px; height: auto; }
  .hero .hero-content { padding: 76px 26px 24px; }
  .hero .hero-kicker { max-width: 100%; font-size: 8px; letter-spacing: 1.4px; }
  .hero h1 { font-size: clamp(52px, 13.5vw, 76px); line-height: 1.04; letter-spacing: -.065em; margin: 24px 0 21px; }
  .hero .hero-content > p { max-width: 310px; font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
  .hero .hero-actions { gap: 10px; align-items: flex-start; flex-direction: column; }
  .hero .button-primary { font-size: 12px; min-height: 46px; gap: 18px; padding: 12px 18px; }
  .hero .hero-explore-link { font-size: 12px; padding: 6px 0; }
  .hero .hero-photo { object-position: 62% center; }
  .hero .hero-shade { background: linear-gradient(90deg,#07101ce8,#07101a94 65%,#07101a40),linear-gradient(0deg,#07101af5,transparent 45%); }
  .hero .hero-bottom { padding: 16px 26px 26px; gap: 10px; }
  .hero .hero-stats { gap: 22px; }
  .hero .hero-stats > span + span { padding-left: 22px; }
  .hero .hero-stats strong { font-size: 27px; }
  .hero .hero-stats small { font-size: 10px; }
  .hero .hero-caption { inset: 20px 20px auto auto; font-size: 8px; padding: 9px 11px; }
  .hero .hero-scroll { width: 40px; height: 40px; }
  .welcome-section { padding: 25px 22px; margin: 22px 0 42px; }
  .welcome-heading { align-items: flex-start; gap: 14px; }
  .guide-tools h2 { font-size: clamp(26px,7vw,34px); line-height: 1.17; letter-spacing: -1.1px; }
  .guide-tools p { font-size: 13px; }
  .welcome-stage h3 { font-size: 14px; line-height: 1.6; }
  .welcome-options > button, .welcome-options > a { min-height: 90px; padding: 18px; }
  .welcome-options strong { font-size: 15px; }
  .step-counter { font-size: 11px; padding-top: 8px; }
  .home-next-grid > a { padding: 27px; }
  .home-next-grid h2 { font-size: 30px; }
  .home-next-grid p { font-size: 13px; }
  .glass-bottom-nav {
    position: fixed; inset: auto max(16px, env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-left,0px)); z-index: 90;
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; width: auto; max-width: 440px;
    margin: 0 auto; padding: 6px; border: 1px solid var(--glass-edge); border-radius: 30px;
    color: var(--white); background: var(--glass-fill);
    -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  }
  body:has(.account-page) { padding-bottom: calc(24px + env(safe-area-inset-bottom,0px)); }
  body:has(.account-page) .glass-bottom-nav { display: none; }
  .glass-bottom-nav > a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-width: 0; min-height: 54px; padding: 7px 2px; border-radius: 24px; line-height: 1.2;
    font-size: 10px; font-weight: 500; color: var(--muted); transition: background .2s,color .2s;
  }
  .glass-bottom-nav > a > svg { width: 21px; height: 21px; }
  .glass-bottom-nav > a > span { display: block; font-size: 10px; line-height: 1.2; margin: 0; }
  .glass-bottom-nav > a[aria-current] { color: var(--white); background: var(--glass-selected); box-shadow: inset 0 1px 0 rgba(255,255,255,.13); }
  .glass-bottom-nav > a:active { background: var(--glass-selected); }
  .mobile-navigation { inset: auto max(8px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px)) !important; max-height: min(90dvh, calc(100dvh - max(8px,env(safe-area-inset-top,0px)) - max(8px,env(safe-area-inset-bottom,0px)))); border-radius: 28px !important; }
  .mobile-navigation .mn-scroll { padding: 18px 20px 24px; }
  .mobile-navigation .mn-top { padding-inline: 20px; }
  .mobile-navigation .mn-personal > a { font-size: 16px; border-radius: 16px; }
  .mobile-navigation .mn-bottom { line-height: 1.6; gap: 12px; }
  .global-search { width: calc(100% - 20px); max-height: calc(100dvh - 32px); margin-top: max(16px,env(safe-area-inset-top,0px)); border-radius: 24px; }
  .global-search .gs-top { padding-inline: 18px; }
  .global-search .gs-input-wrap { margin-inline: 18px; gap: 10px; }
  .global-search .gs-input-wrap > input { min-height: 44px; font-size: 16px; }
  .global-search .gs-input-wrap > input::placeholder { font-size: 14px; }
  .global-search .gs-filters { padding-inline: 18px; }
  .global-search .gs-status { margin-inline: 18px; }
  .global-search .gs-result { gap: 12px; padding: 12px; }
  .global-search .gs-result > img, .global-search .gs-topic-icon { width: 52px; height: 44px; flex: none; border-radius: 10px; }
  .destination-page { padding-top: 8px; padding-bottom: 36px; }
  .destination-breadcrumb { margin-bottom: 18px; font-size: 11px; gap: 9px; }
  .destination-heading h1 { font-size: 36px; letter-spacing: -1.4px; }
  .destination-heading p { font-size: 13px; }
  .destination-label { margin-top: 16px; font-size: 9px; }
  .collection { padding-top: 28px !important; }
  .collection .section-heading { align-items: flex-start; gap: 12px; }
  .collection .section-heading > #collectioncount { font-size: 11px; }
  .collection-filters { gap: 7px; }
  .collection-filters button { font-size: 12px; min-height: 44px; padding: 10px 13px; }
  .quick-picks { gap: 8px; }
  .quick-picks button { font-size: 12px; min-height: 44px; }
  .collection .view-switch > button { min-width: 44px; min-height: 44px; }
  .collection :is(.finder-toolbar > button,.active-filters > button,.card-actions button) { min-height: 44px; }
  .collection-search { padding-inline: 14px; }
  .finder-toolbar { flex-wrap: wrap; gap: 10px; }
  .collection-selects { gap: 10px; }
  .collection-selects .apex-select > select { font-size: 16px !important; }
  .models { gap: 20px; }
  .model-card .card-title { font-size: 23px; }
  .engineering-detail-actions { gap: 8px; }
  .engineering-detail-actions > a, .engineering-detail-actions > button { font-size: 12px; padding: 12px 14px; }
  .site-footer { margin-top: 44px; padding-top: 32px; gap: 28px; }
  .site-footer .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .site-footer .footer-group:last-child { grid-column:auto; }
  .site-footer .footer-group a, .site-footer .footer-group button { min-height: 38px; font-size: 12px; }
  .site-footer .footer-end { flex-wrap: wrap; padding-top: 24px; gap: 14px; }
  .compare-tray { bottom: calc(88px + env(safe-area-inset-bottom,0px)); left: 12px; right: 12px; border-radius: 22px; max-width: none; }
  .compare-tray .compare-items { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .compare-tray .compare-items > button { min-width: 0; }
  .compare-tray .compare-items img { display: none; }
  #toast, .compare-tray ~ #toast { bottom: calc(94px + env(safe-area-inset-bottom,0px)); border-radius: 18px; }
  .compare-tray:not([hidden]) ~ #toast { bottom: calc(250px + env(safe-area-inset-bottom,0px)); }
  dialog:not(.mobile-navigation):not(.global-search):not(.comparison-dialog) { max-width: calc(100vw - 20px); max-height: calc(100dvh - 32px); }
}
@media (max-width: 359px) {
  :root { --page-pad: 14px; }
  .site-header .brand-name { font-size: 18px; }
  .site-header .brand-name small { font-size: 5px; }
  .site-header .apex-symbol { width: 24px; height: 27px; }
  .hero .hero-content { padding-inline: 22px; }
  .hero .hero-bottom { padding-inline: 22px; }
  .hero .hero-stats { gap: 15px; }
  .hero .hero-stats > span + span { padding-left: 15px; }
}
@keyframes glass-sheet-in { from { opacity: .4; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes glass-sheet-out { to { opacity: .3; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  header.site-header, .glass-active-indicator, .glass-bottom-nav > a { transition: none !important; }
  .mobile-navigation[open], .mobile-navigation.is-closing { animation: none !important; }
  .welcome-options > button:hover, .welcome-options > a:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  header.site-header, .glass-bottom-nav, .mobile-navigation { background: var(--surface) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.site-header, .glass-bottom-nav, .mobile-navigation { background: var(--surface) !important; }
}
/* The mission action bar owns the phone's bottom edge while a lesson is open. */
body:has(.motron-learn .ac-player) .glass-bottom-nav { display: none; }
