/* THE top menu, 2026-09-25. One stylesheet for the public pages (inc/page.php
   page_nav()) and the lesson start screen (learn.html), because "the menu is
   different on /learn" was exactly the complaint (user: "top menu common ho
   sab me"). learn.html cannot include PHP, so its markup is a copy of
   page_nav()'s -- change one, change the other. Class names are prefixed
   `sn-` so nothing in site.css, app.css or landing.css can reach in. */
/* Every page that carries this header scrolls something (the document on the
   public pages, .start's own overflow on learn.html) to a #anchor or via
   scrollIntoView() without knowing this header is sticky and eats real
   estate at the top -- content could land half-hidden under it. This is
   exactly what scroll-padding-top is for. learn.html's own .start sets a
   more precise value (css/app.css); this covers the public pages, which
   scroll the plain document. */
html{scroll-padding-top:130px}
.sn{position:sticky;top:0;z-index:20;background:#ffffffe8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid #e2eaf6;font-family:Inter,system-ui,Arial,sans-serif}
.sn-in{max-width:1280px;margin:0 auto;padding:0 28px;min-height:72px;display:flex;align-items:center;gap:18px}
.sn-brand{display:inline-flex;align-items:center;font-size:22px;font-weight:900;letter-spacing:-.01em;
  color:#10244b;text-decoration:none;white-space:nowrap;flex:none}
.sn-brand img{width:32px;height:32px;border-radius:9px;display:block;margin-right:9px;box-shadow:0 4px 12px rgba(15,23,42,.22)}
.sn-brand b{color:#1677ff;font-weight:900}
.sn-links{display:flex;align-items:center;gap:26px;margin:0 auto;font-size:14px;font-weight:600}
.sn-links a{color:#61718c;text-decoration:none;position:relative;padding:6px 0}
.sn-links a:hover{color:#10244b}
.sn-links a.on{color:#1677ff}
.sn-links a.on::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;border-radius:2px;background:#1677ff}
.sn-right{display:flex;align-items:center;gap:10px;flex:none}
.sn-tara{display:flex;align-items:center;gap:10px;text-decoration:none;color:#10244b;margin-right:4px}
.sn-tara img{width:40px;height:40px;border-radius:50%;background:#eaf2ff;object-fit:cover;display:block}
.sn-tara span{display:flex;flex-direction:column;line-height:1.2}
.sn-tara b{font-size:13px}
.sn-tara small{font-size:12px;color:#61718c}
.sn-login{border-radius:12px;padding:11px 20px;font-size:14px;font-weight:800;text-decoration:none;white-space:nowrap;
  color:#fff;background:linear-gradient(135deg,#1677ff,#19b9f5);box-shadow:0 8px 20px #1677ff33}
.sn-login:hover{filter:brightness(1.05)}
.sn-toggle{display:none;width:44px;height:40px;border:1px solid #e2eaf6;background:#fff;border-radius:12px;
  padding:11px;flex-direction:column;justify-content:space-between;cursor:pointer}
.sn-toggle span{display:block;height:2px;border-radius:2px;background:#10244b}

@media (max-width:1100px){ .sn-tara span{display:none} }
.sn-login-m{display:none}

@media (max-width:980px){
  .sn-in{flex-wrap:wrap;gap:12px;padding:0 16px}
  .sn-right{margin-left:auto}
  .sn-toggle{display:flex}
  .sn-links{display:none;order:3;width:100%;flex-direction:column;align-items:stretch;gap:0;margin:0;
    padding:6px 0 14px;border-top:1px solid #e2eaf6}
  .sn-links.open{display:flex}
  .sn-links a{padding:12px 2px;border-bottom:1px solid #f0f4fa}
  .sn-links a.on::after{display:none}
  /* After the user's own mobile mockup (2026-09-26): the bar itself is just
     the logo and the toggle at this width -- "Sign in" moves into the sheet
     that opens, as its own button under the links, rather than crowding the
     bar. #navLogin (the bar's own button) and .sn-login-m (this one) are two
     elements sharing the same "Sign in"/"Dashboard" text -- js/nav.js updates
     both together so neither can say something different from the other. */
  .sn-right #navLogin{display:none}
  .sn-login-m{display:flex;justify-content:center;margin-top:10px}
}
@media (max-width:420px){
  .sn-tara{display:none}
  .sn-brand{font-size:20px}
}
