/* Header dropdown menu (built into each page by tools/nav/build_nav.py).
   Desktop: uppercase labels that open panels on hover, click or keyboard,
   in the style of the Nova AI Ops header. Phone: fold-out groups in the menu. */
.nav-links.nd { gap: 4px; }
.nd-item { position: relative; }
.nd-top, .nd-plain {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 10px; border: 0; background: none; cursor: pointer;
  font: 800 var(--nd-size, 0.9rem)/1 var(--font-body, Inter, system-ui, sans-serif); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); text-decoration: none; white-space: nowrap; border-radius: 8px; transition: color 0.15s ease, background 0.15s ease;
}
.nav-links.nd a.nd-plain { font: 800 var(--nd-size, 0.9rem)/1 var(--font-body, Inter, system-ui, sans-serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.nav-links.nd a.nd-plain:hover, .nav-links.nd a.nd-plain[aria-current="page"] { color: var(--accent-2); }
.nav-links.nd a.nd-plain::after { display: none; }
.nd-top:hover, .nd-plain:hover, .nd-item.is-open > .nd-top, .nd-item.is-current > .nd-top, .nd-plain[aria-current="page"] { color: var(--accent-2); }
/* Bigger, bolder menu text (like the Nova AI Ops bar): 14.4px from 1320px wide;
   between 1180px (where the full menu appears) and 1320px it steps down so the
   bar still fits on one line next to the logo and Register button. */
.nav-links.nd { --nd-size: 0.9rem; gap: 0; margin-right: 20px; }
.nav-links.nd .nd-top, .nav-links.nd .nd-plain { padding-left: 8px; padding-right: 8px; }
@media (max-width: 1319px) { .nav-links.nd { --nd-size: 0.83rem; } .nav-links.nd .nd-top, .nav-links.nd .nd-plain { padding-left: 7px; padding-right: 7px; } }
@media (min-width: 1180px) { .nav-actions .btn-sm { font-size: 0.95rem; } }
.nd-item.is-open > .nd-top { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nd-chev { width: 11px; height: 11px; transition: transform 0.2s ease; }
.nd-item.is-open .nd-chev { transform: rotate(180deg); }
.nd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 600; min-width: 300px;
  display: flex; gap: 22px; padding: 18px 18px 14px; flex-wrap: wrap;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  opacity: 0; visibility: hidden; transform: translate(calc(-50% + var(--nd-shift, 0px)), 6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
/* an invisible bridge so the panel stays open while the pointer moves down to it */
.nd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nd-item.is-open > .nd-panel {
  opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--nd-shift, 0px)), 0); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.nd-col { display: flex; flex-direction: column; gap: 2px; min-width: 290px; }
.nd-col.nd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; min-width: 460px; }
.nd-col.nd-two .nd-head { grid-column: 1 / -1; }
.nd-head { margin: 0 6px 8px; font: 700 0.68rem/1 var(--font-body, Inter, system-ui, sans-serif); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.nav-links.nd .nd-link {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 0.9rem; white-space: normal; transition: background 0.15s ease;
}
.nav-links.nd .nd-link::after { display: none; }
.nav-links.nd .nd-link:hover, .nav-links.nd .nd-link:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav-links.nd .nd-link[aria-current="page"] { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.nd-ic {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.nd-compact .nd-ic { width: 28px; height: 28px; font-size: 0.9rem; border-radius: 8px; }
/* Menu icons are Lucide line icons (inline SVG, tools/icons): accent coloured, crisp at any size. */
.nd-ic { color: var(--accent-2); }
.nd-ic .ti { width: 18px; height: 18px; }
.nd-compact .nd-ic .ti { width: 15px; height: 15px; }
.nav-links.nd .nd-link:hover .nd-ic, .nav-links.nd .nd-link[aria-current="page"] .nd-ic { color: var(--accent); }
.mobile-panel .mp-links a { display: flex; align-items: center; gap: 10px; }
.mobile-panel .mp-ic { display: inline-flex; color: var(--accent-2); }
.mobile-panel .mp-ic .ti { width: 17px; height: 17px; }
.nav-coffee .ti, .mp-coffee .ti { width: 15px; height: 15px; vertical-align: -2px; }
.nd-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nd-tx strong { font-weight: 600; font-size: 0.9rem; line-height: 1.25; }
.nd-tx span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; }
/* launch.js marks locked pages; in the panels the "Soon" pill can show */
.nav-links.nd .nd-panel .taa-link-pill { display: inline-block; }
.nd-langs { flex-basis: 100%; margin: 6px 6px 0; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.nav-links.nd .nd-langs a { color: var(--text); font-weight: 600; font-size: 0.8rem; }
.nav-links.nd .nd-langs a::after { display: none; }

/* Phone menu: one fold-out group per dropdown */
.mobile-panel .mp-group > summary {
  list-style: none; cursor: pointer; padding: 12px 6px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center;
  font: 700 0.86rem/1.2 var(--font-body, Inter, system-ui, sans-serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.mobile-panel .mp-group > summary::-webkit-details-marker { display: none; }
.mobile-panel .mp-group > summary::after { content: "+"; font-size: 1.2rem; color: var(--text-muted); }
.mobile-panel .mp-group[open] > summary::after { content: "\2212"; }
.mobile-panel .mp-group > summary:hover { background: var(--surface); }
.mobile-panel .mp-links { display: flex; flex-direction: column; padding: 0 0 8px 8px; }
.mobile-panel .mp-links a { padding: 9px 6px; font-size: 0.94rem; color: var(--text-muted); }
.mobile-panel .mp-links a[aria-current="page"] { color: var(--accent-2); }
.mobile-panel.open { max-height: calc(100vh - 72px); overflow-y: auto; }

@media (prefers-reduced-motion: reduce) { .nd-panel, .nd-chev { transition: none; } }

/* Header giving button: "Support the Free Training" (heart icon) (to the Sponsor page, red with a white heart) replaces Register
   Free once the Sponsor page is launched. Until then launch.js keeps it hidden,
   except in the founder's preview. */
.nav-coffee[hidden], .mp-coffee[hidden] { display: none !important; }
.nav-actions:has(.nav-coffee:not([hidden])) .nav-reg { display: none; }
.mobile-panel:has(.mp-coffee:not([hidden])) .mp-reg { display: none; }
.nav-coffee { border-radius: 0 !important; gap: 6px; background: linear-gradient(135deg, #dc2626, #b91c1c) !important; color: #fff !important; box-shadow: 0 10px 28px -12px rgba(220, 38, 38, 0.75) !important; }
.nav-coffee:hover { box-shadow: 0 14px 32px -12px rgba(220, 38, 38, 0.9) !important; }
.nav-coffee-short { display: none; }
@media (max-width: 420px) { .nav-coffee-long { display: none; } .nav-coffee-short { display: inline; } }

/* Laptops (1180-1799px): the top bar also holds Replays, Tools and Stories next to Schedule,
   so it tightens here to stay on one line: smaller letters and gaps, and the Support button
   uses its short label. Re-measure if you add another top-level item. */
@media (min-width: 1180px) and (max-width: 1799px) {
  .nav-links.nd { --nd-size: 0.8rem; margin-right: 12px; }
  .nav-links.nd .nd-top, .nav-links.nd .nd-plain, .nav-links.nd a.nd-plain { letter-spacing: 0.04em; padding-left: 6px; padding-right: 6px; }
  .nav-coffee-long { display: none; }
  .nav-coffee-short { display: inline; }
}
@media (min-width: 1180px) and (max-width: 1299px) {
  .nav-links.nd { --nd-size: 0.76rem; margin-right: 8px; }
  .nav-links.nd .nd-top, .nav-links.nd .nd-plain, .nav-links.nd a.nd-plain { letter-spacing: 0.02em; padding-left: 5px; padding-right: 5px; }
  .nd-chev { width: 10px; }
}

/* Code Lab button after the plain top links (build_nav.py CODELAB; founder request): a pill
   with the code icon, so the Code Lab is one click away. Phones: a highlighted row. */
.nav-links.nd a.nd-btn { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; margin-left: 6px; padding: 9px 14px !important; border-radius: 999px; letter-spacing: 0.04em;
  color: #fff; background: linear-gradient(135deg, var(--accent, #1f7bff), var(--accent-2, #38b6ff)); box-shadow: 0 8px 20px -10px rgba(31, 123, 255, 0.8); white-space: nowrap; }
.nav-links.nd a.nd-btn svg { width: 1.05em; height: 1.05em; }
.nav-links.nd a.nd-btn:hover { color: #fff; filter: brightness(1.08); }
.mobile-panel a.mp-codelab { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-2); }
/* Remove Watermark (founder 2026-10-31): a gold version of the Code Lab buttons, so the paid feature
   reads as its own thing beside Code Lab. Desktop pill keeps the glass/animation, just recoloured. */
.nav-links.nd a.nd-btn.nd-wm { background: linear-gradient(135deg, #f6c851 0%, #e0a93a 55%, #c8862a 100%);
  color: #2a1e04; text-shadow: 0 1px 6px rgba(120, 80, 10, .35);
  box-shadow: 0 10px 26px -10px rgba(224, 169, 58, .9), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -10px 18px -10px rgba(90, 60, 10, .5); }
.nav-links.nd a.nd-btn.nd-wm:hover { color: #2a1e04; }
.mobile-panel a.mp-codelab.mp-wm { color: #e0a93a; }

/* Code Lab button, made beautiful (founder 2026-10-09: "make this button at the top navigation bar beautiful"):
   a glass button with a light running round its edge, a soft breathing glow, a shine that sweeps across now and then,
   brackets that open on hover and a lift with a brighter glow. Square corners like the rest of the site (square.css).
   Still under prefers-reduced-motion and in data saver. Phones: the highlighted Code Lab row in the menu gets the same colours. */
@property --ndl-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.nav-links.nd a.nd-btn { position: relative; isolation: isolate; overflow: hidden; gap: 8px; padding: 10px 16px !important; font-weight: 800;
  background: linear-gradient(135deg, #1f7bff 0%, #4f6bff 45%, #8b5cf6 100%); text-shadow: 0 1px 8px rgba(10, 20, 60, .45);
  box-shadow: 0 10px 26px -10px rgba(79, 107, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -10px 18px -10px rgba(10, 10, 60, .55);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, filter .3s ease; animation: ndl-breathe 3.2s ease-in-out infinite; }
/* the light running round the edge */
.nav-links.nd a.nd-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; padding: 1.5px;
  background: conic-gradient(from var(--ndl-a), transparent 0 62%, rgba(255, 255, 255, .95) 76%, #7dd3fc 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ndl-run 3.6s linear infinite; }
/* the shine that sweeps across (overrides the menu links' underline) */
.nav-links.nd a.nd-btn::after { content: ""; display: block; position: absolute; inset: 0; left: 0; right: auto; bottom: auto; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 66%); transform: translateX(-130%); transform-origin: 50% 50%;
  animation: ndl-shine 5.5s ease-in-out 1.5s infinite; }
.nav-links.nd a.nd-btn svg { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 0 6px rgba(186, 230, 253, .8)); }
.nav-links.nd a.nd-btn:hover, .nav-links.nd a.nd-btn:focus-visible { transform: translateY(-2px) scale(1.04); filter: brightness(1.12) saturate(1.1);
  box-shadow: 0 16px 34px -10px rgba(139, 92, 246, .95), 0 0 0 3px rgba(125, 211, 252, .22), inset 0 1px 0 rgba(255, 255, 255, .45); }
.nav-links.nd a.nd-btn:hover svg, .nav-links.nd a.nd-btn:focus-visible svg { transform: rotate(-8deg) scale(1.18); }
.nav-links.nd a.nd-btn:active { transform: translateY(0) scale(.98); }
@keyframes ndl-run { to { --ndl-a: 360deg; } }
@keyframes ndl-shine { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes ndl-breathe { 50% { box-shadow: 0 12px 32px -8px rgba(139, 92, 246, .85), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -10px 18px -10px rgba(10, 10, 60, .55); } }
.mobile-panel a.mp-codelab { color: #fff; background: linear-gradient(135deg, #1f7bff, #8b5cf6); box-shadow: 0 10px 24px -12px rgba(79, 107, 255, .9); }
@media (prefers-reduced-motion: reduce) {
  .nav-links.nd a.nd-btn, .nav-links.nd a.nd-btn::before, .nav-links.nd a.nd-btn::after { animation: none; }
  .nav-links.nd a.nd-btn::after { display: none; }
}
html.lite .nav-links.nd a.nd-btn, html.lite .nav-links.nd a.nd-btn::before { animation: none; }
html.lite .nav-links.nd a.nd-btn::after { display: none; }

/* MEET THE FOUNDER (founder 2026-11-06: "At the footer or header, have a button call meet the founder
   or Founder and add this section there in a standalone page"). It goes to about.html, which already
   holds the whole "Meet Dr. Daniel Tanimawo" story. Outlined rather than filled: the row already has a
   red Support and a blue Buy domain, and a third filled button would turn the bar into a fairground.
   Same shape and height as those two, so the three line up. */
.nav-founder { border-radius: 0 !important; gap: 6px; background: transparent !important; color: var(--text, #e8eefc) !important;
  border: 1px solid rgba(255, 255, 255, .28) !important; box-shadow: none !important; }
.nav-founder:hover, .nav-founder:focus-visible { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .5) !important; }
.nav-founder .ti { width: 15px; height: 15px; vertical-align: -2px; }
/* nav-founder typography: site-scale.css gives .nav-coffee and .nav-dom their uppercase 12px
   and their 10/20 padding BY NAME, so the third button has to ask for the same or it sits
   6px taller in a different face. */
.nav-inner .nav-founder, .nav-inner .nav-auth { font-size: 12px !important; font-weight: 800 !important; letter-spacing: .96px !important;
  text-transform: uppercase; line-height: 19.2px; padding: 10px 20px !important; min-height: 0 !important; }
/* the hamburger takes over below the nav's breakpoint, where this button is in the menu instead */
@media (max-width: 1024px) { .nav-founder { display: none; } }

/* THE BAR IS FULL (founder 2026-11-06: "Keep this buttons at the top next to each other"). Ten items
   plus the logo want 1,493px and a 1440 screen gives 1,440 - so between the hamburger's breakpoint and
   1520 everything tightens rather than wrapping or spilling past the bar. Above 1520 nothing changes.
   Measured on the real page: 1,493 -> 1,290 at 1440, which leaves room to spare at 1280 too. */
@media (min-width: 1025px) and (max-width: 1700px) {
  html .nav-inner .nav-coffee, html .nav-inner .nav-dom, html .nav-inner .nav-founder, html .nav-inner .nav-auth {
    padding: 9px 11px !important; font-size: 11px !important; letter-spacing: .5px !important; gap: 5px;
  }
  html .nav-inner .nav-coffee .ti, html .nav-inner .nav-dom .ti, html .nav-inner .nav-founder .ti, html .nav-inner .nav-auth .ti { width: 13px; height: 13px; }
  html .nav-links.nd { gap: 2px; }
  html .nav-links .nd-top, html .nav-links .nd-plain { padding-left: 9px !important; padding-right: 9px !important; letter-spacing: .4px; }
  html .nav-links .nd-plain.nd-btn { padding-left: 12px !important; padding-right: 12px !important; }
  html .nav-actions { gap: 6px; }
}

/* The fold rule that lived here is gone with the three links it folded (founder 2026-11-06).
   Seven items - logo, three panels, four buttons - fit from the menu breakpoint up, measured, so
   there is nothing to fold and no width where anything runs past the edge. */

/* THE HOLE BETWEEN CODE LAB AND SUPPORT (founder 2026-11-06: "There is a wide space between this
   'Code Lab Support' fix it"). The bar is a flex row of three - logo, links, buttons - with
   space-between, so every pixel the container gained went into the two gaps, and the widest one
   landed in the middle of the row. An auto margin on the links takes that space before
   space-between can share it out: the logo stays left and the links and the buttons sit together
   on the right, one row with one small gap between them. Only where the links are shown: narrower
   than 1180 they are hidden and space-between still puts the buttons on the right, as it should. */
/* REVISED 2026-11-06 (founder: "The header buttons are too far from the left logo, fix it
   professionally"). The auto margin above solved the first complaint by pushing the links AND the
   buttons to the right - which left the logo alone on the left with 678px of nothing beside it at
   1440. The row has one spare gap to put somewhere, and both complaints are about where it lands:
   in the middle of the button pair (Code Lab | Support) it reads as a hole; between the logo and
   everything else it reads as abandonment.
   It now falls between the plain links and the button cluster, which is where a nav bar is supposed
   to breathe: Replays and Stories sit beside the logo, and Code Lab, Support and Buy domain stay
   together on the right. .nav-links takes the slack (flex: 1) and an auto margin on the Code Lab
   button pushes it to the far end of that slack, hard against Support - so the pair the founder
   complained about on the first pass stays closed. */
/* SPACED LIKE novaaiops.com (founder 2026-11-06: "move the other buttons close to each other like the
   buttons at the header in https://novaaiops.com/"). That bar is a logo and six items spread evenly from
   the logo to the right edge with roughly even gaps - no cluster on one side and no hole. Here .nav-links
   takes the slack and shares it evenly between the three panels and Code Lab, and .nav-actions keeps its
   own even gap, so the whole row reads as one evenly spaced line. The auto margin that used to pin Code
   Lab to Support is gone: with three fewer items there is no hole left for it to close. */
@media (min-width: 1180px) {
  /* The row is a logo, a .nav-links box and a .nav-actions box, so spacing can only ever be shared
     BETWEEN those three - which is why every version of this ended with one wide gap somewhere, most
     recently 142px between Code Lab and Support at 1440. `display: contents` drops the two boxes out of
     the layout (not out of the DOM: nav-menu.js still finds them) and makes their children direct items
     of the row. Eight items then share the slack evenly, which is what novaaiops.com does. */
  html .nav-inner { justify-content: space-between; }
  html .nav-inner > .nav-links,
  html .nav-inner > .nav-actions { display: contents; }
  /* The Code Lab button carried a left margin from when it followed the plain links. */
  html .nav-links.nd a.nd-btn { margin-left: 0; }
}

/* Replays and Stories were bare words standing beside four boxed buttons (founder: "Add containers
   to this buttons at the header like the rest"). Same pill as the Code Lab button - same radius,
   same vertical size - but quiet: a hairline and a barely-there fill rather than the Code Lab
   gradient, because they are navigation and Code Lab is the action. The padding carries !important
   because four earlier rules in this file set .nd-plain's padding per breakpoint. */
html .nav-links.nd a.nd-plain:not(.nd-btn) {
  padding: 9px 15px !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
html .nav-links.nd a.nd-plain:not(.nd-btn):hover,
html .nav-links.nd a.nd-plain:not(.nd-btn):focus-visible,
html .nav-links.nd a.nd-plain:not(.nd-btn)[aria-current="page"] {
  border-color: var(--accent-2, #38b6ff);
  background: rgba(56, 182, 255, 0.12);
}

/* COLOURS OFF (founder 2026-11-06: "remove the colors here: Code Lab / Support / Buy domain"). All three
   carried a linear-gradient and a matching coloured shadow - blue, red and blue. They now wear exactly
   what the Founder button already wore, which is the one in the row he did not name: transparent fill, a
   1px hairline at 28% white, no shadow. 1px here computes to the same 0.8px Founder shows, because the
   site is under html { zoom: 1.25 }. Hover matches Founder's too.
   Scoped to .nav-inner, so this is the bar only; the phone menu's own buttons are untouched. */
html .nav-inner .nd-btn,
html .nav-inner .nav-coffee,
html .nav-inner .nav-dom,
html .nav-inner .nav-auth {
  background-color: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
  color: var(--text, #f2f7ff) !important;
}
/* The decorations go with the colours. Each of the three painted something over itself that only made
   sense on a coloured fill: Code Lab a glow underneath (::before) and a shine across it (::after),
   Support and Buy domain a diagonal sheen (::after). Founder has no pseudo-element at all, which is why
   it was already the clean one - this makes the other three match it exactly. */
html .nav-inner .nd-btn::before,
html .nav-inner .nd-btn::after,
html .nav-inner .nav-coffee::before,
html .nav-inner .nav-coffee::after,
html .nav-inner .nav-dom::before,
html .nav-inner .nav-dom::after,
html .nav-inner .nav-auth::before,
html .nav-inner .nav-auth::after { display: none !important; }
html .nav-inner .nd-btn:hover,
html .nav-inner .nd-btn:focus-visible,
html .nav-inner .nav-coffee:hover,
html .nav-inner .nav-coffee:focus-visible,
html .nav-inner .nav-dom:hover,
html .nav-inner .nav-dom:focus-visible,
html .nav-inner .nav-auth:hover,
html .nav-inner .nav-auth:focus-visible {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  filter: none !important;
}

/* ============================================================================
   LOG IN AND SIGN UP (founder 2026-11-06: "Add a signup and login button as well at the header
   https://tanix.app/login.html and https://tanix.app/signup.html").

   They are built by tools/nav/build_nav.py (AUTH) into .nav-actions, after Founder and before the
   hamburger. Everything about how they LOOK is already written above: .nav-auth was added to the
   Founder typography rule, to the 1025-1700 tightening band, and to the three colour-off rules - so
   the pair wears exactly what the rest of the bar wears, which is what he asked for this morning
   ("remove the colors here"). Nothing here repeats any of that.

   Room: measured on the real page with both buttons in place - the row ends at 1410 of 1440, 1250 of
   1280 and 1150 of 1180, so they fit at every width the full bar is shown at, with slack. */
.nav-inner .nav-auth { white-space: nowrap; }
.nav-inner .nav-auth .ti { width: 14px; height: 14px; }

/* THE PHONE BAR (founder 2026-11-06: "Make sure the phone version is responsive and neat").
   Two things were wrong with it.

   One: .nav-inner is `justify-content: space-between` and on a phone only three of its children are
   on screen - the logo, .nav-actions and the hamburger - so the browser shared the slack between
   them and parked the Support button in the dead centre of the bar, equidistant from both. It read
   as a stray button, not as part of a group. `margin-left: auto` on .nav-actions takes the slack
   before it instead, so the buttons and the hamburger sit together on the right, with the logo on
   the left. Below the menu breakpoint, not above it: the wide bar's own spacing (display: contents,
   further up) is deliberate and untouched.

   Two: the bar is 312px wide in these units on a 390px phone, and Support alone is 117px of it.
   Support, Log in and Sign up cannot all be there. Support is the one that is already two taps
   away everywhere else - it is in the phone menu (.mp-coffee), in the footer, and it has its own
   page - while Log in and Sign up are the two the founder just asked to put IN the header. So on
   phones Support steps back into the menu and the account pair takes the bar. Nothing is removed:
   .mp-coffee still carries Support in the menu, and the footer card is untouched. */
@media (max-width: 1179px) {
  html .nav-inner > .nav-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  html .nav-inner .nav-coffee { display: none !important; }
  html .nav-inner .nav-auth { padding: 8px 10px !important; font-size: 11px !important; letter-spacing: .4px !important; gap: 5px; }
  html .nav-inner .nav-auth .ti { width: 13px; height: 13px; }
  html .nav-actions { gap: 8px; }
}
/* Narrow phones (320-359px): the labels alone, no icons, which is 26px back across the pair. */
@media (max-width: 359px) {
  html .nav-inner .nav-auth > [aria-hidden="true"] { display: none; }
  html .nav-inner .nav-auth { padding: 8px 9px !important; }
  html .nav-actions { gap: 6px; }
}

/* The same pair in the phone menu, in the row style the menu already uses for Code Lab and Buy
   domain, so the menu does not grow a third kind of row. */
.mobile-panel a.mp-auth { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mobile-panel a.mp-auth .mp-ic { color: var(--accent-2); }

/* "Remove Watermark" is a longer label than the "Resources" menu it replaced (founder 2026-11-12). At
   laptop widths the top bar cannot show it beside the two secondary actions without the text clipping,
   so Support and Buy domain - both also in the footer and the phone menu - step aside until there is
   room for everything again (>=1471px). Below ~1120px the phone menu already takes over. */
@media (max-width: 1470px) {
  header.nav .nav-actions a.nav-coffee,
  header.nav .nav-actions a.nav-dom { display: none !important; }
}
