/* The top bar, one for every page: the home page, the maps, the account and plans pages, the
   legal pages and the area pages scripts/seo builds. Each page loads this file after fonts.css
   and before its own stylesheet, and draws the same markup (scripts/seo/classic.js has a copy).
   The bar is held still at the top, the same royal blue everywhere. It sits straight in the body,
   outside any header: nothing that clips or layers a header (the home hero clips) can take it
   away. Pages keep its room with --top (site.css, app.css). */
:root{--nav-h:82px}
@media (max-width:640px){:root{--nav-h:60px}}

.nav{position:fixed;z-index:50;top:0;left:0;right:0;box-sizing:content-box;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#fff;
  height:var(--nav-h);padding:env(safe-area-inset-top,0px) calc((100% - min(100% - 40px,1180px)) / 2 + clamp(16px,4vw,40px)) 0;
  background-color:rgba(36,60,230,.94);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);
  box-shadow:0 6px 22px rgba(6,24,120,.22);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;line-height:1.6;
  font-variant-numeric:normal;letter-spacing:normal}
.nav a{color:#fff}
.brand{display:flex;flex:none;align-items:center;gap:10px;text-decoration:none;color:#fff}
.brand img.wordmark{width:auto;height:26px}
/* The app icon, with the rounded corners the phone gives it. */
.brand img.app-icon{width:32px;height:32px;border-radius:22.5%;box-shadow:0 2px 6px rgba(6,24,120,.3)}

/* The links: the page you're on is marked, and Get the app is a button. */
.nav nav{display:flex;align-items:center;gap:26px;font-size:14px;font-weight:650}
.nav nav a{text-decoration:none;opacity:.85;white-space:nowrap}
.nav nav a:hover{opacity:1;text-decoration:underline}
.nav nav a[aria-current="page"]{opacity:1;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.nav nav a.nav-get{opacity:1;padding:8px 15px;border-radius:999px;background:#fff;color:#1F35D6}
.nav nav a.nav-get:hover{text-decoration:none;background:#EEF2FF}

/* Narrower, the links close up, then swipe sideways in their own row, the logo held still at
   the left. The row runs to the screen's edge and fades there, so the cut link says there's more;
   while the links fit, the first one's auto margin keeps them at the right. */
@media (max-width:1040px){.nav nav{gap:18px}}
@media (max-width:900px){
  .nav{padding-right:0}
  .nav nav{flex:1;min-width:0;align-self:stretch;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;
    padding:0 18px 0 12px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 28px),transparent);
    mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 28px),transparent)}
  .nav nav::-webkit-scrollbar{display:none}
  .nav nav a:first-child{margin-left:auto}
}
@media (max-width:640px){.nav{padding-left:calc((100% - min(100% - 28px,1180px)) / 2 + clamp(16px,4vw,40px))}}
/* Phones: Courts and Lessons, a size down, so the logo and the links sit side by side. */
@media (max-width:560px){
  .nav{gap:10px}.nav nav{gap:14px}
  .brand{gap:8px}.brand img.wordmark{height:18px}.brand img.app-icon{width:24px;height:24px}
  .nav nav a{font-size:13px}.nav nav a.nav-get{padding:7px 12px}
  .nav nav a.nav-find span{display:none}.nav nav a.nav-find::first-letter{text-transform:uppercase}
}
@media (max-width:400px){.brand img.wordmark{height:15px}.nav nav{gap:10px}.nav nav a{font-size:12.5px}}
@media (max-width:350px){.nav{gap:8px}.brand img.wordmark{height:13px}.nav nav{gap:8px}.nav nav a{font-size:12px}.nav nav a.nav-get{padding:6px 9px}}
