/* A single live surface for moving and stationary backdrops. No snapshot or
   scroll-dependent tint, opacity, clipping, or filter replacement. */
html[data-aa-main-v16-test]{
 --aa-live-fallback:blur(9px);
 --aa-live-tone:brightness(1.06);
 --aa-live-tint:rgb(250 248 241 / .09);
}
html[data-aa-main-v16-test="blend"]{
 --aa-live-fallback:blur(12px);
 --aa-live-tone:brightness(1.07);
 --aa-live-tint:rgb(250 248 241 / .24);
}
html[data-aa-main-v16-test][data-aa-main-v16-tone="night"]{
 --aa-live-fallback:blur(9px);
 --aa-live-tone:brightness(.89);
 --aa-live-tint:rgb(33 35 41 / .12);
}
html[data-aa-main-v16-test="blend"][data-aa-main-v16-tone="night"]{
 --aa-live-fallback:blur(12px);
 --aa-live-tone:brightness(.89);
 --aa-live-tint:rgb(33 35 41 / .25);
}
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body :is(.bottom-nav .beta-nav-group,.bottom-nav>.nav-spotlight,#calendar-fab,#route-fab)[data-aa-main-v16-ready]{
 -webkit-backdrop-filter:var(--aa-live-filter,var(--aa-live-fallback)) var(--aa-live-tone)!important;
 backdrop-filter:var(--aa-live-filter,var(--aa-live-fallback)) var(--aa-live-tone)!important;
}
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body :is(:is(.bottom-nav .beta-nav-group,.bottom-nav>.nav-spotlight,#calendar-fab)[data-aa-main-v16-ready="glass"],#route-fab[data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]),#route-fab>.aa-live-pin-lens){
 background-color:var(--aa-live-tint)!important;
}
/* The original surface paint sits at 50% opacity above the unchanged new glass.
   Use a background layer, not opacity on the control or its active glyphs. */
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test="blend"] body :is(:is(.bottom-nav .beta-nav-group,.bottom-nav>.nav-spotlight,#calendar-fab)[data-aa-main-v16-ready="glass"],#route-fab[data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]),#route-fab>.aa-live-pin-lens){
 --aa-legacy-paint:var(--nav-material,rgba(8,14,11,.13));
 --aa-legacy-overlay:color-mix(in srgb,var(--aa-legacy-paint) 50%,transparent);
 background-image:linear-gradient(var(--aa-legacy-overlay),var(--aa-legacy-overlay))!important;
}
html:is(:not(.club-mode),.club-mode)[data-theme="light"][data-aa-main-v16-test="blend"] body :is(:is(.bottom-nav .beta-nav-group,.bottom-nav>.nav-spotlight,#calendar-fab)[data-aa-main-v16-ready="glass"],#route-fab[data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]),#route-fab>.aa-live-pin-lens){
 --aa-legacy-paint:var(--aa-day-fab-glass,rgb(255 255 255 / .59));
}
@media(min-width:751px){
 html:is(:not(.club-mode),.club-mode)[data-theme="dark"][data-aa-main-v16-test="blend"] body :is(#calendar-fab[data-aa-main-v16-ready="glass"],#route-fab[data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]),#route-fab>.aa-live-pin-lens){
  --aa-legacy-paint:var(--desktop-fab-material,rgba(8,14,11,.13));
 }
}

/* Use the common material in the pin lens, then recolor that surface in a
   second local pass without changing its luminance or the pin glyph. */
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]{
 isolation:auto;
 -webkit-backdrop-filter:var(--aa-live-fallback) var(--aa-live-tone)!important;
 backdrop-filter:var(--aa-live-fallback) var(--aa-live-tone)!important;
}
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"][data-aa-pin-recolor]{
 background-color:transparent!important;background-image:none!important;
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab[data-aa-pin-recolor]>.aa-live-pin-lens{
 position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
 -webkit-backdrop-filter:var(--aa-live-filter,var(--aa-live-fallback)) var(--aa-live-tone)!important;
 backdrop-filter:var(--aa-live-filter,var(--aa-live-fallback)) var(--aa-live-tone)!important;
}
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab[data-aa-pin-recolor]>.aa-live-pin-color{
 position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;
 backdrop-filter:url("#aa-preview-pin-chroma");
}
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]::before,
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]::after{
 content:none;
}

html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]){
 background-color:var(--aa-live-tint)!important;
}
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test="blend"] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]){
 background-image:linear-gradient(var(--aa-legacy-overlay),var(--aa-legacy-overlay))!important;
}
html:is(:not(.club-mode),.club-mode)[data-theme="light"][data-aa-main-v16-test="blend"] body :is(#route-fab[data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]),#route-fab>.aa-live-pin-lens){
 --aa-legacy-paint:rgb(255 255 255 / .59);
}
html:is(:not(.club-mode),.club-mode)[data-theme="light"][data-aa-main-v16-test="blend"] body :is(#route-fab[aria-expanded="true"][data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]),#route-fab[aria-expanded="true"]>.aa-live-pin-lens){
 --aa-legacy-paint:rgb(255 255 255 / .76);
}

/* The pin glyph and the active tab use the same selected-control palette. */
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab[data-aa-pin-material] .route-pin-outline{
 fill:var(--nav-selected-glyph,var(--green,#bdf258))!important;
}
html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body #route-fab[data-aa-pin-material] #route-count{
 color:var(--nav-selected-glyph,var(--green,#bdf258))!important;
}

/* The nav base and selected pill are sibling paint levels. A filtered nav
   ancestor would hide the live page from the pill's color-only backdrop. */
@media(max-width:750px){
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body:has(#route-fab) .bottom-nav .beta-nav-group[data-aa-nav-chroma][data-aa-main-v16-ready]{
  isolation:auto;background:transparent!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
 }
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body .bottom-nav .beta-nav-group[data-aa-nav-chroma]>:is(.aa-live-nav-lens,.aa-live-nav-active-lens){
  position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;
  -webkit-backdrop-filter:var(--aa-live-filter,var(--aa-live-fallback)) var(--aa-live-tone)!important;
  backdrop-filter:var(--aa-live-filter,var(--aa-live-fallback)) var(--aa-live-tone)!important;
  background-color:var(--aa-live-tint);
 }
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test="blend"] body .bottom-nav .beta-nav-group[data-aa-nav-chroma]>:is(.aa-live-nav-lens,.aa-live-nav-active-lens){
  background-image:linear-gradient(var(--aa-legacy-overlay),var(--aa-legacy-overlay));
 }
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body .bottom-nav .beta-nav-group[data-aa-nav-chroma]>.nav-bottom{
  position:relative;z-index:3;
 }
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body:has(#route-fab) .bottom-nav .beta-nav-group[data-aa-nav-chroma]>.nav-bottom.active{
  background:transparent!important;isolation:auto;
 }
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body:has(#route-fab) .bottom-nav .beta-nav-group[data-aa-nav-chroma]>.nav-bottom.active::before{
  content:none;
 }
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body .bottom-nav .beta-nav-group[data-aa-nav-chroma]>.aa-live-nav-pill{
  position:absolute;z-index:2;pointer-events:none;
  backdrop-filter:url("#aa-preview-selected-chroma");
 }
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test] body .bottom-nav .beta-nav-group[data-aa-nav-chroma]>.aa-live-nav-active-lens{
  inset:auto;z-index:1;
  --aa-active-white:linear-gradient(rgb(255 255 255 / .03),rgb(255 255 255 / .03));
  background-image:var(--aa-active-white);
 }
 html:is(:not(.club-mode),.club-mode)[data-theme][data-aa-main-v16-test="blend"] body .bottom-nav .beta-nav-group[data-aa-nav-chroma]>.aa-live-nav-active-lens{
  background-image:var(--aa-active-white),linear-gradient(var(--aa-legacy-overlay),var(--aa-legacy-overlay));
 }

}

/* Preserve each edition's established accent instead of importing CDMX green. */
html[data-aa-main-v16-test][data-aa-glass-project]:not([data-aa-glass-project="main"]) body :is(.bottom-nav .beta-nav-group>.nav-bottom.active,#route-fab[data-aa-pin-material] #route-count){
 color:var(--aa-project-glyph,var(--green))!important;
}
html[data-aa-main-v16-test][data-aa-glass-project]:not([data-aa-glass-project="main"]) body #route-fab[data-aa-pin-material] .route-pin-outline{
 fill:var(--aa-project-glyph,var(--green))!important;
}
html[data-aa-main-v16-test][data-aa-glass-project]:not([data-aa-glass-project="main"]) body .bottom-nav{
 background-color:transparent!important;
}
html.club-mode[data-aa-main-v16-test][data-aa-glass-project="club"][data-theme="light"]{
 --aa-project-glyph:#b82a60;
}

/* WebKit live compositing: no screen capture or SVG backdrop displacement. */
html[data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme]{
 --aa-native-selected:rgb(161 220 51 / .20);
 --aa-native-pin:rgb(161 220 51 / .15);
 --aa-live-tone:saturate(1.16) brightness(1.07);
}
html[data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme="dark"]{
 --aa-native-selected:rgb(166 230 45 / .16);
 --aa-native-pin:rgb(166 230 45 / .13);
 --aa-live-tone:saturate(1.18) brightness(.89);
}
html[data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]){
 background-color:var(--aa-live-tint)!important;
 background-image:linear-gradient(var(--aa-native-pin),var(--aa-native-pin)),linear-gradient(var(--aa-legacy-overlay,transparent),var(--aa-legacy-overlay,transparent))!important;
}
@media(max-width:750px){
 html[data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme] body:has(#route-fab) .bottom-nav .beta-nav-group[data-aa-main-v16-ready]>.nav-bottom.active{
  background-color:var(--aa-native-selected)!important;
  background-image:linear-gradient(rgb(255 255 255 / .03),rgb(255 255 255 / .03))!important;
 }
 html[data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme] body:has(#route-fab) .bottom-nav .beta-nav-group[data-aa-main-v16-ready]>.nav-bottom.active::before{
  content:none!important;
 }
}

/* WebKit: derive pin chroma from the live backdrop; do not brighten black. */
html[data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme]{
 --aa-live-fallback:blur(6px);
}
html[data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]){
 background-color:transparent!important;
 background-image:none!important;
 -webkit-backdrop-filter:var(--aa-live-fallback) grayscale(1) sepia(1) hue-rotate(30deg) saturate(2.4) brightness(.83)!important;
 backdrop-filter:var(--aa-live-fallback) grayscale(1) sepia(1) hue-rotate(30deg) saturate(2.4) brightness(.83)!important;
}

/* The light pin keeps the live green filter beneath the common neutral lift. */
html[data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme="light"] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]){
 background-color:rgb(249 249 249 / .24)!important;
 -webkit-backdrop-filter:var(--aa-live-fallback) grayscale(1) sepia(1) hue-rotate(30deg) saturate(2.4) brightness(.89)!important;
 backdrop-filter:var(--aa-live-fallback) grayscale(1) sepia(1) hue-rotate(30deg) saturate(2.4) brightness(.89)!important;
}
html[data-aa-native-glass="webkit"][data-aa-main-v16-test="blend"][data-theme="light"] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]){
 background-image:linear-gradient(var(--aa-legacy-overlay),var(--aa-legacy-overlay))!important;
}

/* Brighten the live material, not the icon; light theme and main site only. */
html[data-aa-glass-project="main"][data-theme="light"][data-aa-main-v16-test] body #route-fab[data-aa-pin-recolor]>.aa-live-pin-color{
 backdrop-filter:url("#aa-preview-pin-chroma-day");
}
@media(max-width:750px){
 html[data-aa-glass-project="main"][data-theme="light"][data-aa-main-v16-test] body .bottom-nav .beta-nav-group[data-aa-nav-chroma]>.aa-live-nav-pill{
  backdrop-filter:url("#aa-preview-selected-chroma-day");
 }
 html[data-aa-glass-project="main"][data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme="light"] body:has(#route-fab) .bottom-nav .beta-nav-group[data-aa-main-v16-ready]>.nav-bottom.active{
  -webkit-backdrop-filter:brightness(1.18)!important;
  backdrop-filter:brightness(1.18)!important;
 }
}
html[data-aa-glass-project="main"][data-aa-native-glass="webkit"][data-aa-main-v16-test][data-theme="light"] body #route-fab#route-fab[data-aa-pin-material][data-aa-main-v16-ready="pin"]:not([data-aa-pin-recolor]){
 -webkit-backdrop-filter:var(--aa-live-fallback) grayscale(1) sepia(1) hue-rotate(30deg) saturate(2.4) brightness(1.20)!important;
 backdrop-filter:var(--aa-live-fallback) grayscale(1) sepia(1) hue-rotate(30deg) saturate(2.4) brightness(1.20)!important;
}
