/* Reference mobile navigation uses six broad targets and a tinted selection;
   the desktop moving white pill remains a separate treatment. */
@media(max-width:1023px){
  .bottom-dock{--dock-active:#ffffff1f;--dock-border:#ffffff1f;display:flex;position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 16px);z-index:50;align-items:center;justify-content:space-around;gap:4px;width:max-content;min-width:280px;max-width:95vw;height:64px;padding:0 16px;border:1px solid var(--af-nav-border,var(--dock-border));border-radius:999px;background:var(--af-glass,#14141466);box-shadow:0 25px 50px -12px #0004;backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);transform:translateX(-50%);font-family:ui-sans-serif,system-ui,sans-serif}
  .bottom-dock>a,.bottom-dock>button{display:flex;flex:0 1 auto;align-items:center;justify-content:center;position:relative;width:14vw;max-width:60px;min-width:0;height:40px;min-height:40px;padding:0;border:0;border-radius:999px;background:transparent;color:#9ca3af;box-shadow:none;transition:color .3s cubic-bezier(.4,0,.2,1),background-color .3s cubic-bezier(.4,0,.2,1)}
  .bottom-dock>a:hover,.bottom-dock>button:hover{background:transparent;color:#fff}
  .bottom-dock>a:focus-visible,.bottom-dock>button:focus-visible{outline:2px solid #ffffff40;outline-offset:2px}
  .bottom-dock .mf-icon{width:24px;height:24px;filter:none;transform:none}
  .bottom-dock .nav-motion-pill{display:none}
  .bottom-dock .active,.bottom-dock.nav-motion-host [data-nav-motion-active],.bottom-dock.nav-motion-host [data-nav-motion-active]:hover{color:#fff!important;background:var(--af-accent-muted,var(--dock-active))!important;box-shadow:none!important}
  html[data-theme=midnight] .bottom-dock{--dock-active:#648cbe47;--dock-border:#7896be33}
  html[data-theme=pure-black] .bottom-dock{--dock-active:#c8c8c82e;--dock-border:#ffffff24}
  html[data-theme=custom] .bottom-dock{--dock-active:color-mix(in srgb,var(--accent,#fff) 18%,#ffffff0d);--dock-border:color-mix(in srgb,var(--accent,#fff) 28%,#ffffff14)}
}
@media(max-width:1023px) and (orientation:landscape){.bottom-dock{transform:translateX(-50%) scale(.75);transform-origin:center bottom}}

/* Keep the phrase and title on one baseline. Long titles truncate inside their
   own selector instead of pushing the entire selector onto a second line. */
#recommendation-heading{display:flex;flex-wrap:nowrap;align-items:baseline;gap:6px;width:100%;min-width:0;max-width:100%;font-size:20px;font-weight:600;line-height:28px;letter-spacing:0;color:#ffffffe6}
#recommendation-heading .recommendation-prefix{flex:0 0 auto;white-space:nowrap}
#recommendation-heading .recommendation-select{display:block;flex:1 1 auto;min-width:0;max-width:100%;font:inherit}
#recommendation-heading .mf-select{display:inline-flex;width:max-content;min-width:0;max-width:100%;vertical-align:baseline}
#recommendation-heading .mf-select-trigger{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-start;gap:4px;width:auto;min-width:0;max-width:100%;min-height:28px;margin:0;padding:0;border:0;border-radius:2px;background:transparent;box-shadow:none;color:#fff;font:inherit;line-height:28px;white-space:nowrap}
#recommendation-heading .mf-select-trigger:hover,#recommendation-heading .mf-select.is-open .mf-select-trigger{border:0;background:transparent;box-shadow:none}
#recommendation-heading .mf-select-trigger:focus-visible{outline:2px solid #ffffff40;outline-offset:2px}
#recommendation-heading .mf-select-value{flex:0 1 auto;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--accent,#fff);text-underline-offset:4px}
#recommendation-heading .mf-select-chevron{flex:0 0 20px;width:20px;height:20px;color:#ffffff80;transition:transform .3s cubic-bezier(.4,0,.2,1),color .3s cubic-bezier(.4,0,.2,1)}
#recommendation-heading .mf-select-chevron svg{width:20px!important;height:20px!important}
#recommendation-heading .mf-select-trigger:hover .mf-select-chevron{color:#fff}
@media(prefers-reduced-motion:reduce){:where(html:not([data-motion=full])) .bottom-dock>a,:where(html:not([data-motion=full])) .bottom-dock>button,:where(html:not([data-motion=full])) #recommendation-heading .mf-select-chevron{transition:none}}
:where(html[data-motion=reduced]) .bottom-dock>a,:where(html[data-motion=reduced]) .bottom-dock>button,:where(html[data-motion=reduced]) #recommendation-heading .mf-select-chevron{transition:none}

