/* NoobiBuilds shared chrome: the header and footer every public page outside the homepage uses.
   Everything here is prefixed nb- (classes and custom properties) so it can sit beside a product
   page's own stylesheet without either one restyling the other.
   Tokens match /assets/workshop/v1/workshop.css, which owns the homepage. Change both together. */
@font-face { font-family: Baloo; font-weight: 400 800; src: url('/assets/brand/v2026-11/fonts/baloo2-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Source; font-weight: 400; src: url('/assets/brand/v2026-11/fonts/source-sans.woff2') format('woff2'); font-display: swap; }

:root {
  --nb-bg: #f7f1e6; --nb-paper: #fffdf8; --nb-mat: #efe5d3; --nb-ink: #1c2422; --nb-muted: #55605c; --nb-line: #e2d6c2;
  --nb-red: #c8201a; --nb-teal: #0a5f66; --nb-teal-ink: #fffdf8; --nb-amber: #ffc867;
  --nb-ring-a: #1c2422; --nb-ring-b: #fffdf8;
  --nb-display: Baloo, 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --nb-body: Source, system-ui, Arial, sans-serif;
  --nb-sh-low: 0 1px 2px rgba(60, 35, 15, .10), 0 4px 12px rgba(60, 35, 15, .08);
  --nb-sh-high: 0 2px 4px rgba(60, 35, 15, .10), 0 18px 40px rgba(60, 35, 15, .18);
  --nb-quick: 160ms; --nb-out: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] {
  --nb-bg: #101817; --nb-paper: #1a2523; --nb-mat: #22302e; --nb-ink: #f2ede2; --nb-muted: #a9b5b0; --nb-line: #2c3d3b;
  --nb-red: #ff7566; --nb-teal: #86d6cf; --nb-teal-ink: #0c1716; --nb-ring-a: #f2ede2; --nb-ring-b: #101817;
  --nb-sh-low: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
  --nb-sh-high: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .45);
}

.nb-skip { position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--nb-paper); color: var(--nb-ink); padding: 10px 14px; border: 2px solid var(--nb-ink); border-radius: 6px; font: 400 16px/1.2 var(--nb-body); }
.nb-skip:focus { top: 12px; }

/* position + z-index: some product pages paint fixed decorative layers that would otherwise cover a static header. */
.nb-head, .nb-foot { position: relative; z-index: 5; box-sizing: border-box; background: var(--nb-bg); color: var(--nb-ink); font: 400 16px/1.45 var(--nb-body); -webkit-font-smoothing: antialiased; }
.nb-head *, .nb-foot * { box-sizing: border-box; }
.nb-head a, .nb-foot a { color: inherit; text-underline-offset: 4px; }
.nb-head :focus-visible, .nb-foot :focus-visible { outline: 2px solid var(--nb-ring-a); outline-offset: 3px; box-shadow: 0 0 0 3px var(--nb-ring-b); border-radius: 6px; }
.nb-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

/* Header */
.nb-head { border-bottom: 1px solid var(--nb-line); margin: 0; padding: 0; }
.nb-head .nb-wrap { position: relative; display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.nb-brand { display: block; border-radius: 6px; flex: none; }
.nb-brand img { display: block; height: 48px; width: auto; max-width: none; }
.nb-brand .nb-logo-dark, [data-theme="dark"] .nb-brand .nb-logo-light { display: none; }
[data-theme="dark"] .nb-brand .nb-logo-dark { display: block; }
.nb-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 16px; }
.nb-nav a { text-decoration: none; padding: 10px 0; }
.nb-nav a:hover, .nb-nav a[aria-current="page"] { text-decoration: underline; }
.nb-nav a[aria-current="page"] { text-decoration-color: var(--nb-red); text-decoration-thickness: 2px; }
.nb-theme { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--nb-line); background: var(--nb-paper); color: var(--nb-ink);
  font: 600 15px/1 var(--nb-display); cursor: pointer; transition: transform var(--nb-quick) var(--nb-out), border-color var(--nb-quick); }
.nb-theme:hover { transform: translateY(-1px); border-color: var(--nb-amber); }
.nb-theme i { width: 18px; height: 18px; border-radius: 50%; background: #2a3a6b; box-shadow: inset -5px -3px 0 0 #f4e9c8; }
[data-theme="dark"] .nb-theme i { background: var(--nb-amber); box-shadow: 0 0 0 3px rgba(255, 200, 103, .25); }
.nb-theme[hidden], .nb-motion[hidden] { display: none; }

/* Footer */
.nb-foot { border-top: 1px solid var(--nb-line); margin-top: 72px; font-size: 15px; }
.nb-foot .nb-wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: flex-start; padding: 24px 0 40px; }
.nb-foot strong { font: 600 22px/1.2 var(--nb-display); }
.nb-foot p { color: var(--nb-muted); margin: 4px 0 0; }
.nb-foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nb-foot nav a { padding: 10px 0; }
.nb-foot-end { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; color: var(--nb-muted); font-size: 14px; }
.nb-motion { min-height: 44px; margin: 0; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--nb-line); background: var(--nb-paper); color: var(--nb-ink); font: 600 14px/1 var(--nb-display); cursor: pointer; }
.nb-motion:disabled { cursor: default; opacity: .75; }

@media (max-width: 760px) {
  .nb-head .nb-wrap { flex-wrap: wrap; gap: 0 16px; }
  .nb-brand img { height: 44px; }
  .nb-nav { margin-left: 0; flex-basis: 100%; flex-wrap: wrap; gap: 0 14px; font-size: 15px; }
  .nb-nav a { padding: 12px 0; }
  .nb-theme { position: absolute; right: 0; top: 12px; padding: 6px 12px 6px 8px; } /* beside the logo, not in the link row */
}
@media (max-width: 380px) { .nb-nav { font-size: 14px; column-gap: 8px; } }
@media (max-width: 360px) { .nb-wrap { width: calc(100% - 24px); } }

html[data-motion="off"] .nb-theme, html[data-motion="off"] .nb-theme i { transition: none; }
@media (prefers-reduced-motion: reduce) { .nb-theme, .nb-theme i { transition: none; } }
@media print { .nb-nav, .nb-theme, .nb-motion, .nb-skip { display: none; } }
