/* RBD Academy — shared header menu, footer social icons and the Notify me form.
   Loaded on every page after styles.css / course.css. */

/* ---------- Header menu ---------- */
.site-nav{display:flex;align-items:center;margin-left:auto;min-width:0;flex:0 1 auto;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.site-nav::-webkit-scrollbar{display:none}
.band .brand,.c-top .c-brand{flex:none}
.nav-group{display:flex;align-items:center;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);min-width:0}
.nav-group[hidden]{display:none!important}
.nl{appearance:none;-webkit-appearance:none;border:0;background:none;margin:0;font:inherit;font-family:"Poppins","Segoe UI",system-ui,sans-serif;cursor:pointer;color:#A3B6C4;padding:7px 15px;border-radius:999px;font-weight:500;font-size:14px;line-height:1.6;white-space:nowrap;text-decoration:none;transition:background .15s,color .15s}
.nl:hover{color:#EEF4F7;background:rgba(255,255,255,.08);text-decoration:none}
.nl[aria-current="page"]{color:#fff;background:#2F8F9D}
.nl .sm{display:none}
.nl:disabled{opacity:.6;cursor:progress}

/* the theme button always sits right after the menu */
.band .wrap > .site-nav ~ .theme-toggle,.c-top > .site-nav ~ .theme-toggle{margin-left:12px}

/* One line on every screen size: logo · menu · theme button */
html body .band .wrap{display:flex;flex-wrap:nowrap;align-items:center;gap:10px}
@media (max-width:860px){
  html body .band .wrap{min-height:64px;padding-block:8px}
  html body .band .wrap > .theme-toggle{order:0;margin-left:8px;width:38px;height:38px}
  .nl{padding:7px 11px;font-size:13px}
}
@media (max-width:640px){
  html body .band .wrap,html body .c-top{padding-inline:12px;gap:6px;flex-wrap:nowrap}
  html body .band .brandtxt,html body .c-brand span{display:none!important}
  html body .band .logo,html body .c-brand img{height:30px}
  .nav-group{gap:0;padding:3px}
  .nl{padding:6px 7px;font-size:11.5px}
  .nl .lg{display:none}
  .nl .sm{display:inline}
  html body .band .wrap > .theme-toggle,html body .c-top > .theme-toggle{width:34px;height:34px;border-radius:10px;margin-left:4px}
  html body .theme-toggle svg{width:16px;height:16px}
}
@media (max-width:420px){
  .nl{padding:6px 5px;font-size:11.5px}
  html body .band .logo,html body .c-brand img{height:26px}
}
@media (max-width:374px){
  html body .band .wrap,html body .c-top{padding-inline:10px;gap:4px}
  .nl{padding:5px 4px;font-size:11px}
  html body .band .logo,html body .c-brand img{height:22px}
  html body .band .wrap > .theme-toggle,html body .c-top > .theme-toggle{width:30px;height:30px;margin-left:2px}
}

/* course pages use the same menu in their own header */
html body .c-top{flex-wrap:nowrap}
html body .c-top .site-nav{margin-left:auto}

/* ---------- Footer social icons ---------- */
.social{display:inline-flex;align-items:center;gap:8px}
.social a{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;border:1px solid var(--line);color:var(--muted);transition:color .15s,border-color .15s,background .15s}
.social a:hover{color:var(--accent-text);border-color:var(--accent);background:var(--accent-soft)}
.social svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
footer .wrap{align-items:center}

/* ---------- Notify me form ---------- */
.nf{width:min(100% - 32px,460px);max-height:calc(100vh - 32px);overflow:auto;padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 30px 70px -20px rgba(0,0,0,.55)}
.nf::backdrop{background:rgba(5,14,24,.62);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.nf-body{padding:26px 26px 22px;display:flex;flex-direction:column;gap:14px}
.nf-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.nf-head h2{font-size:27px;margin-top:6px}
.nf-x{flex:none;width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);font-size:18px;line-height:1;cursor:pointer}
.nf-x:hover{border-color:var(--accent)}
.nf p.nf-lede{color:var(--muted);font-size:14px;line-height:1.55}
.nf .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.nf .field{display:flex;flex-direction:column;gap:6px}
.nf label{font-weight:600;font-size:13.5px}
.nf .input,.nf select{width:100%}
.nf select.input{appearance:auto}
.nf-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.nf-err{color:var(--danger);font-size:13.5px;font-weight:500}
.nf-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.nf-done{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.nf-done .nf-check{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--ok-soft);color:var(--ok);font-size:22px;font-weight:700}
@media (max-width:480px){ .nf .two{grid-template-columns:1fr} .nf-body{padding:22px 18px 18px} }

/* Sign out as a power icon */
.nl.nl-icon{display:inline-grid;place-items:center;padding:7px 11px}
.nl.nl-icon svg{width:17px;height:17px;display:block}
@media (max-width:560px){ .nl.nl-icon{padding:6px 6px} .nl.nl-icon svg{width:16px;height:16px} }
/* Five menu items on phones: tighter spacing, and never cut off (scrolls sideways as a last resort) */
@media (max-width:640px){
  .nav-group{min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .nav-group::-webkit-scrollbar{display:none}
  .nav-group > *{flex:0 0 auto}
}
@media (max-width:420px){
  .nl{padding:6px 4px;font-size:11.2px;letter-spacing:-.01em}
  .nl.nl-icon{padding:5px 4px}
}
