/* The nav menu behind the hamburger button. Markup: menu.php. Behaviour: menu.js.
   Loaded as a file on every staged page and printed into the homepage by home.php, so the values are plain
   (no tokens from slate.css; the homepage does not load it). Same dark menu surface as every other menu.
   Phones (640px and narrower): a sheet as wide as the nav bar, the page behind it dimmed and held still.
   Wider (up to 1380px, where the hamburger shows): a dropdown under the button.
   Rows are 46px or taller. No movement on hover. */

.sgm,.sgm *{box-sizing:border-box}
details.sgm{position:relative}
.sgm>summary{list-style:none;cursor:pointer}
.sgm>summary::-webkit-details-marker{display:none}
.sgm .sgm__x{display:none}
.sgm[open]>summary .sgm__bars{display:none}
.sgm[open]>summary .sgm__x{display:block}
.sgm[open]>summary{background:rgba(255,255,255,.15);border-color:rgba(226,232,240,.85)}

.sgm__sheet{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:330px;max-height:calc(100vh - 110px);display:flex;flex-direction:column;overflow:hidden;
  background:linear-gradient(180deg,rgba(148,163,184,.2),rgba(148,163,184,.12)),rgba(11,18,32,.97);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:16px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 24px 48px -16px rgba(0,0,0,.75);text-shadow:none;text-align:left;font-size:15.5px;line-height:1.3;font-weight:500;letter-spacing:0}
@supports (height:100dvh){.sgm__sheet{max-height:calc(100dvh - 110px)}}
.sgm:not([open])>.sgm__sheet{display:none}
.sgm[open]>.sgm__sheet{animation:sgm-in .16s ease}
@keyframes sgm-in{from{opacity:0}}
.sgm__scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px}
.sgm a{text-decoration:none;color:#fff;-webkit-tap-highlight-color:transparent}
.sgm :focus-visible{outline:2px solid #fff;outline-offset:-2px;border-radius:10px}
.sgm>summary:focus-visible{outline-offset:2px;border-radius:50%}

/* main pages */
.sgm .sgm__main a{display:flex;align-items:center;min-height:46px;padding:0 12px;border-radius:10px;font-size:17px;font-weight:700;color:#fff}
.sgm .sgm__main a:hover,.sgm .sgm__items a:hover,.sgm .sgm__sec>summary:hover{background:rgba(255,255,255,.09)}
.sgm .sgm__main a[aria-current],.sgm .sgm__items a[aria-current]{background:rgba(110,231,183,.14);color:#6ee7b7}

/* sections: closed by default, a line under the name says what is inside */
.sgm__secs{margin-top:6px;padding-top:6px;border-top:1px solid rgba(255,255,255,.13)}
.sgm__sec>summary{display:block;list-style:none;cursor:pointer;border-radius:10px;padding:0 12px;color:#fff;-webkit-tap-highlight-color:transparent}
.sgm__sec>summary::-webkit-details-marker{display:none}
.sgm__row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-content:center;align-items:center;min-height:52px}
.sgm__name{grid-column:1;font-size:15.5px;font-weight:700;color:#fff}
.sgm__pre{grid-column:1;margin-top:1px;font-size:13px;font-weight:500;color:#b9c5d6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sgm__row svg{grid-column:2;grid-row:1 / span 2;color:#b9c5d6;transition:transform .2s ease}
.sgm__sec[open]>summary svg{transform:rotate(180deg)}
.sgm__sec[open]>summary .sgm__pre{display:none}
.sgm__sec[open]>summary .sgm__row{min-height:46px}
.sgm__sec[open]>summary .sgm__row svg{grid-row:1}
.sgm__items{padding-bottom:4px}
.sgm .sgm__items a{display:flex;align-items:center;min-height:46px;padding:0 12px 0 26px;border-radius:10px;font-size:15.5px;font-weight:500;color:#fff}
.sgm .sgm__items a[aria-current]{font-weight:700}
.sgm__label{padding:8px 12px 4px;font-size:13px;font-weight:600;color:#b9c5d6}
.sgm__sec--flat .sgm__items a{padding-left:12px}

/* regions: they switch sites, so they sit apart from the pages */
.sgm__region{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;padding:8px 6px 4px 12px;border-top:1px solid rgba(255,255,255,.13)}
.sgm__region span{margin-right:auto;font-size:13px;font-weight:600;color:#b9c5d6}
.sgm .sgm__region a{display:inline-flex;align-items:center;min-height:38px;padding:0 13px;border-radius:99px;border:1px solid rgba(255,255,255,.22);font-size:14px;font-weight:600;color:#fff}
.sgm .sgm__region a:hover{background:rgba(255,255,255,.09)}
.sgm .sgm__region a[aria-current]{background:rgba(110,231,183,.14);border-color:rgba(110,231,183,.5);color:#6ee7b7}
.sgm .sgm__region a:focus-visible,.sgm .sgm__foot a:focus-visible{outline-offset:2px;border-radius:99px}

/* account and upgrade: outside the scrolling part, so always in view */
.sgm__foot{flex:none;display:flex;align-items:center;gap:10px;padding:8px 10px;border-top:1px solid rgba(255,255,255,.14);background:rgba(2,6,23,.3)}
.sgm .sgm__foot a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:99px;font-size:15.5px;font-weight:700;color:#fff;white-space:nowrap}
.sgm .sgm__foot a.sgm__acct{padding:0 14px}
.sgm .sgm__foot a.sgm__acct:hover{background:rgba(255,255,255,.09)}
.sgm .sgm__foot a.sgm__pro{margin-left:auto;padding:0 22px;background:#B94F35;transition:background-color .3s ease,box-shadow .3s ease}
.sgm .sgm__foot a.sgm__pro:hover{background:#c64a26;box-shadow:0 10px 24px -8px rgba(198,74,38,.65),0 2px 6px -2px rgba(0,0,0,.4)}
.sgm .sgm__foot a.sgm__pro:active{background:#9E4029;box-shadow:none;transition-duration:.08s}

/* search: phones only (wider screens have the search button in the bar). The field is the site's own search
   (v3/site-search.js wires every .nav-search on the page); these rules replace the light site's look for it. */
.sgm .sgm__search{display:none;position:static;width:auto;margin:0;padding:2px 2px 8px;border:0}
.sgm .sgm__search .nav-search__field{display:flex;align-items:center;gap:9px;height:44px;margin:0;padding:0 12px;border-radius:11px;background:rgba(2,6,23,.42);border:1px solid rgba(255,255,255,.2);color:#a9b6c8;transition:border-color .2s ease}
.sgm .sgm__search .nav-search__field:focus-within{border-color:rgba(110,231,183,.75)}
.sgm .sgm__search .nav-search__field svg{flex:none}
.sgm .sgm__search .nav-search__input{flex:1;min-width:0;width:auto;height:100%;margin:0;padding:0;border:0;border-radius:0;outline:0;background:none;box-shadow:none;-webkit-appearance:none;appearance:none;
  font:inherit;font-size:16px;font-weight:500;color:#fff;caret-color:#6ee7b7;opacity:1}   /* 16px: smaller makes iPhones zoom the page when the field is tapped */
.sgm .sgm__search .nav-search__input::placeholder{color:#a9b6c8;opacity:1}
.sgm .sgm__search .nav-search__input::-webkit-search-cancel-button{display:none}
.sgm .sgm__search .nav-search__results{position:static;width:auto;max-height:none;overflow:visible;margin:0;padding:6px 0 0;border:0;border-radius:0;background:none;box-shadow:none}
.sgm .sgm__search .nav-search__results[hidden]{display:none}
.sgm .sgm__search .nav-search__result{display:block;padding:9px 12px;border-radius:10px;color:#fff}
.sgm .sgm__search .nav-search__result:hover,.sgm .sgm__search .nav-search__result.is-active{background:rgba(110,231,183,.14);color:#fff}
.sgm .sgm__search .nav-search__result-title{display:block;font-size:15px;font-weight:600;color:#fff}
.sgm .sgm__search .nav-search__result-sub{display:block;margin-top:1px;font-size:12.5px;color:#b9c5d6}
.sgm .sgm__search .nav-search__empty{padding:10px 12px;font-size:13.5px;color:#b9c5d6}
.sgm .sgm__search .dropdown__pro{margin-left:5px;font-size:10.5px;font-weight:700;color:#5eead4}

/* the dim behind the sheet (phones). menu.js adds the element to <body>, one layer under the nav bar. */
.sgm-veil{display:none}

@media (max-width:640px){
  /* the sheet hangs from the bar itself, not from the button, so it is as wide as the bar */
  .sg-nav__in,.topnav__in{position:relative}
  details.sgm{position:static}
  /* a bigger button and a bigger drawing on phones (owner, 2026-11-15: 36px was small and hard to hit) */
  .sgm>summary.sgm__btn{width:44px;height:44px}
  .sgm>summary.sgm__btn svg{width:20px;height:20px}
  .sgm__sheet{left:0;right:0;width:auto;max-height:calc(100vh - 84px)}
  @supports (height:100dvh){.sgm__sheet{max-height:calc(100dvh - 84px)}}
  .sgm .sgm__search{display:block}
  .sgm-veil{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(2,6,23,.62);opacity:0;visibility:hidden;touch-action:none;transition:opacity .2s ease,visibility 0s linear .2s}
  html.sgm-open .sgm-veil{opacity:1;visibility:visible;transition:opacity .2s ease}
  html.sgm-open{overflow:hidden}                       /* the page behind the sheet holds still */
  html.sgm-open .pro-floater{visibility:hidden}        /* the floating upgrade pill would sit on the sheet's own upgrade button */
}
@media (prefers-reduced-motion:reduce){
  .sgm[open]>.sgm__sheet{animation:none}
  .sgm__row svg,.sgm-veil,html.sgm-open .sgm-veil,.sgm .sgm__foot a.sgm__pro{transition:none}
}
@media print{.sgm-veil{display:none}}
