@import url("/type.css");
/* ^ THE SITE'S TYPEFACES (2026-09-18) RIDE IN ON THIS FILE, and the import has to stay the FIRST statement or a
   browser ignores it. This is the one stylesheet all fifty-odd pages already link last, so type.css reaches every
   page - the published notes included - without one of them being edited. The faces, the four variables and why
   they were chosen: type.css and make_site_fonts.py; the gate is check_type.py.

   THE ONE NAV STYLESHEET. Every page links this LAST, after its own <style>,
   and every rule here starts with `nav.nav` so it also beats the older nav
   rules still sitting in each page's own stylesheet - which is why this file
   pins properties (display, margins, fonts, borders) a fresh stylesheet would
   leave alone.

   THE REBUILD (2026-09-13, user goal "the navigation system might need a
   rebuild"): the bar had grown to thirteen links plus five actions. On a
   1440 px screen that was three rows and 134 px of sticky header with
   Postcards alone on a line; on a 390 px phone it was 208 px - a quarter of
   the screen, pinned. Now:
   - WIDE (over 1100 px): ONE row - the brand, five groups that open a menu
     (hover, click or keyboard), and the actions on the right.
   - NARROW: the brand and a Menu button; the menu opens as a panel under the
     bar with the actions first and every group listed open.
   The groups are the 2026-09-11 ruling's five (now / competing / your build /
   learning / reading), named Live / Compete / Build / Learn / Community, with
   the same links in the same order. */

nav.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 15, 20, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid #243140;
  width: auto; min-width: 100%; margin: 0; padding: 0;
  font-family: var(--text, system-ui, "Segoe UI", Roboto, sans-serif); line-height: 1.3;
  box-sizing: border-box;
}
nav.nav *, nav.nav *::before, nav.nav *::after { box-sizing: border-box; }
nav.nav .nav-in {
  max-width: 1140px; height: 60px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
  justify-content: flex-start; gap: 22px;
}

/* ---- the brand ---------------------------------------------------------- */
nav.nav a.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  /* the wordmark is the page title's stencil, a size up from the 17 px it had in a face two and a half times wider */
  font-family: var(--hero, system-ui, sans-serif);
  font-weight: 800; letter-spacing: .1em; font-size: 23px; line-height: 1;
  color: #dde5ee; text-decoration: none; margin: 0; padding: 0; border: 0;
  background: none; white-space: nowrap;
}
nav.nav a.brand b { color: #e8c56a; font-weight: 800; }
nav.nav a.brand small {
  display: block; font-family: var(--text, system-ui, sans-serif);
  font-weight: 400; letter-spacing: .02em; font-size: 11px; line-height: 1.2;
  color: #5c6a7a; margin: 1px 0 0; padding: 0;
}
nav.nav a.brand svg { width: 22px; height: 22px; flex: none; }

/* ---- the menu: groups on the left, actions on the right ------------------ */
nav.nav .nav-menu {
  display: flex; flex: 1 1 auto; align-items: center; gap: 20px; min-width: 0;
  margin: 0; padding: 0;
}
nav.nav .nav-groups { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
nav.nav .nav-grp { position: relative; margin: 0; padding: 0; }

nav.nav button.nav-top {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 7px;
  width: auto; height: auto; min-width: 0; margin: 0; padding: 8px 10px 6px;
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  box-shadow: none; outline-offset: 2px;
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .03em;
  text-transform: none; color: #aab6c4; cursor: pointer; white-space: nowrap;
}
nav.nav button.nav-top::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .65;
}
nav.nav .nav-grp:hover > button.nav-top,
nav.nav .nav-grp.open > button.nav-top { color: #dde5ee; }
/* the group holding the current page reads as current */
nav.nav .nav-grp:has(a.lnk.on) > button.nav-top { color: #e8c56a; border-bottom-color: #e8c56a; }

nav.nav .nav-drop {
  display: none; position: absolute; top: 100%; left: -6px; z-index: 1;
  min-width: 260px; margin: 6px 0 0; padding: 8px;
  background: #101720; border: 1px solid #2a3949; border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
/* a bridge over the 6 px gap, so the pointer can travel from the label to
   the menu without the hover dropping */
nav.nav .nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
nav.nav .nav-grp.open > .nav-drop { display: block; }
@media (hover: hover) and (min-width: 1101px) {
  nav.nav .nav-grp:hover > .nav-drop { display: block; }
}

nav.nav .nav-drop a.lnk {
  display: block; margin: 0; padding: 8px 10px; border: 0; border-radius: 7px;
  background: none; text-decoration: none; white-space: normal;
  color: #dde5ee; font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1.25;
}
nav.nav .nav-drop a.lnk small {
  display: block; margin: 2px 0 0; padding: 0; text-transform: none;
  color: #7d8a9a; font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.35;
}
nav.nav .nav-drop a.lnk:hover { background: #18222e; color: #fff; }
nav.nav .nav-drop a.lnk.on { color: #e8c56a; background: #161f29; box-shadow: inset 2px 0 0 #e8c56a; }

/* ---- the actions --------------------------------------------------------- */
nav.nav .nav-act {
  display: flex; align-items: center; gap: 14px; margin: 0 0 0 auto; padding: 0;
  flex-wrap: nowrap;
}
nav.nav .nav-act a.lnk {
  display: inline-block; margin: 0; padding: 6px 2px 4px; background: none; border: 0;
  border-bottom: 2px solid transparent; border-radius: 0; text-decoration: none;
  color: #8b98a8; font-size: 13.5px; font-weight: 400; letter-spacing: .04em; white-space: nowrap;
}
nav.nav .nav-act a.lnk:hover { color: #dde5ee; }
nav.nav .nav-act a.lnk.on { color: #e8c56a; border-bottom-color: #e8c56a; }
nav.nav .nav-act a.lnk[hidden] { display: none; }

nav.nav a.dc {
  display: inline-block; background: #5865F2; color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 8px 16px; margin: 0; border-radius: 99px; letter-spacing: .03em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; border: 0; width: auto;
}
nav.nav a.dc:hover { filter: brightness(1.12); color: #fff; }
nav.nav a.cta {
  display: inline-block; background: linear-gradient(180deg, #f0b860, #d99a3d); color: #20160a;
  font-weight: 700; font-size: 13px; padding: 7px 14px; margin: 0; border-radius: 99px;
  letter-spacing: .03em; line-height: 1.2; text-decoration: none; white-space: nowrap; border: 0; width: auto;
}
nav.nav a.cta:hover { filter: brightness(1.08); color: #20160a; }

/* ---- the Menu button (narrow screens only) ------------------------------- */
nav.nav button.nav-burger {
  -webkit-appearance: none; appearance: none; display: none;
  align-items: center; gap: 9px; margin: 0 0 0 auto; padding: 7px 12px;
  width: auto; height: auto; min-width: 0;
  background: #121a24; border: 1px solid #2a3949; border-radius: 8px; box-shadow: none;
  font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; text-transform: none;
  color: #dde5ee; cursor: pointer;
}
nav.nav .nav-bars, nav.nav .nav-bars::before, nav.nav .nav-bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .15s ease, background-color .15s ease;
}
nav.nav .nav-bars { position: relative; }
nav.nav .nav-bars::before, nav.nav .nav-bars::after { content: ""; position: absolute; left: 0; }
nav.nav .nav-bars::before { top: -5px; }
nav.nav .nav-bars::after { top: 5px; }
nav.nav.open .nav-bars { background: transparent; }
nav.nav.open .nav-bars::before { transform: translateY(5px) rotate(45deg); }
nav.nav.open .nav-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1100px) {
  nav.nav .nav-in { height: 56px; padding: 0 16px; }
  nav.nav button.nav-burger { display: inline-flex; }
  nav.nav .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 20px; background: #0d131a; border-bottom: 1px solid #243140;
    box-shadow: 0 24px 40px rgba(0, 0, 0, .55);
    max-height: calc(100vh - 56px); overflow-y: auto;
  }
  nav.nav.open .nav-menu { display: flex; }
  nav.nav .nav-act {
    order: -1; margin: 0; flex-wrap: wrap; gap: 10px 16px;
    padding: 0 0 14px; border-bottom: 1px solid #243140;
  }
  nav.nav .nav-groups {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    align-items: start; gap: 12px 20px;
  }
  nav.nav .nav-grp { position: static; }
  nav.nav button.nav-top {
    pointer-events: none; padding: 2px 10px 4px; border: 0;
    font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5c6a7a;
  }
  nav.nav button.nav-top::after { display: none; }
  nav.nav .nav-grp:has(a.lnk.on) > button.nav-top { color: #5c6a7a; }
  nav.nav .nav-drop {
    display: block; position: static; min-width: 0; margin: 0; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  nav.nav .nav-drop::before { display: none; }
  nav.nav .nav-drop a.lnk { padding: 7px 10px; }
}
@media (max-width: 480px) {
  nav.nav a.brand small { display: none; }
  nav.nav .nav-long { display: none; }
  nav.nav .nav-menu { padding: 14px 16px 18px; }
  nav.nav .nav-act { gap: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  nav.nav .nav-bars, nav.nav .nav-bars::before, nav.nav .nav-bars::after { transition: none; }
}

/* the panel page's who-line sits under the bar, same width */
.modbar { max-width: 1140px; margin: 0 auto; padding: 8px 20px 0; display: flex; align-items: center; gap: 14px; box-sizing: border-box; }
