/* ============================================================
   SINAUMESYNC — Shared Design System
   Version 3.0 · Industrial Tactical-Telemetry
   Dark substrate · SinaumeSync orange accent · 90° mechanical edges
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

/* ——— Design Tokens ——————————————————————————————————————— */
:root {
  /* Backgrounds — deactivated-CRT substrate, never pure black */
  --bg:           #0a0c0f;
  --surface:      #101318;
  --surface-2:    #161a21;
  --surface-hover:#1a1f27;
  --inset:        #07090b;   /* recessed wells (inputs, readouts) */

  /* Borders — visible structural compartmentalization */
  --border:       #262d37;
  --border-strong:#333c48;
  --border-hover: #475264;

  /* Accent — SinaumeSync Orange (primary, preserved) */
  --primary:      #e97b2c;
  --primary-hover:#ff8f3c;
  --primary-soft: rgba(233,123,44,.13);
  --primary-dim:  rgba(233,123,44,.055);
  --primary-line: rgba(233,123,44,.35);

  /* Text — white phosphor */
  --text:         #eef1f5;
  --muted:        #8b94a1;
  --subtle:       #525c69;

  /* Semantic */
  --success:      #4af626;   /* single-purpose terminal green */
  --warning:      #f59e0b;
  --error:        #ef4444;
  --info:         #3b82f6;

  /* Typography */
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body:    "Manrope", "Archivo", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --page-max:     1180px;
  --nav-h:        62px;

  /* Radii — mechanical rigidity: all corners exactly 90° */
  --r-xs:   0;
  --r-sm:   0;
  --r-md:   0;
  --r-lg:   0;
  --r-xl:   0;
  --r-full: 0;

  /* Shadows — hard, flat. No soft consumer blur, no glow. */
  --shadow-sm:  none;
  --shadow-md:  0 0 0 1px var(--border);
  --shadow-lg:  0 0 0 1px var(--border-strong);
  --shadow-glow:none;

  --edge-hi:        none;
  --edge-hi-strong: none;

  /* Motion — quick, mechanical */
  --ease:    cubic-bezier(.2,.6,.2,1);
  --t:       140ms var(--ease);
  --t-med:   240ms var(--ease);
}

/* ——— Reset ——————————————————————————————————————————————— */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg  { display: block; max-width: 100%; }
button    { font-family: inherit; cursor: pointer; border: none; background: none; }
a         { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--text); }
ul, ol    { list-style: none; }

/* ——— Keyboard focus ring (accessibility) ——————————————————— */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0;
}
.field input:focus-visible,
.field select:focus-visible { outline: none; }

/* ——— Reduced-motion ——————————————————————————————————————— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ——— Engineering blueprint grid + scanline substrate ————————— */
.eng-grid::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* CRT scanlines — extremely subtle so data stays razor-readable */
.eng-grid::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.05) 3px),
    radial-gradient(820px 460px at 88% -12%, rgba(233,123,44,.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ——— Navigation — flat control-bar ————————————————————————— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(10,12,15,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-strong);
}
/* hazard tick along the bottom edge of the bar */
.navbar::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: clamp(80px, 16vw, 200px); height: 2px;
  background: var(--primary);
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color var(--t);
  padding: 4px 0;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--primary);
}

.nav-actions {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ——— Hamburger (mobile nav trigger) ———————————————————————————— */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 18px; height: 2px; background: var(--text);
  transition: transform var(--t), opacity var(--t);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ——— Auth nav ——————————————————————————————————————————————— */
.nav-auth { display: flex; align-items: center; gap: 6px; }
.btn-nav-login {
  height: 34px; padding: 0 14px; font-size: .72rem; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); transition: color var(--t);
  display: inline-flex; align-items: center;
}
.btn-nav-login:hover { color: var(--text); }
.btn-nav-signup {
  height: 34px; padding: 0 16px; font-size: .72rem; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--primary); color: #0a0c0f; border: 1px solid var(--primary);
  transition: background var(--t); display: inline-flex; align-items: center;
}
.btn-nav-signup:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.nav-user { display: none; }
.nav-user.active { display: flex; align-items: center; gap: 10px; }
.nav-user-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 10px 0 6px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: border-color var(--t), background var(--t);
}
.nav-user-trigger:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.nav-username {
  font-size: .8rem; font-weight: 700; color: var(--text);
  font-family: var(--font-mono); letter-spacing: .02em;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-caret { color: var(--muted); font-size: .7rem; }
.nav-avatar {
  width: 28px; height: 28px; overflow: hidden;
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 800; color: var(--primary);
  user-select: none; flex-shrink: 0;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; }
.nav-avatar-lg { width: 40px; height: 40px; font-size: .9rem; }

.nav-dd-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px 12px; }
.nav-dd-id { display: flex; flex-direction: column; min-width: 0; }
.nav-dd-name { font-size: .86rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dd-email { font-size: .74rem; color: var(--muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  max-width: calc(100vw - 24px);
  width: max-content;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
  display: none; z-index: 300; overflow: hidden;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a, .nav-dropdown button {
  display: block; width: 100%; text-align: left; padding: 11px 16px;
  font-size: .78rem; font-weight: 600; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: .03em;
  background: none; border: none; cursor: pointer;
  transition: background var(--t), color var(--t);
}
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--surface-hover); color: var(--text); }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.nav-dropdown .logout-btn { color: var(--error); }
.nav-dropdown .logout-btn:hover { background: rgba(239,68,68,.08); color: var(--error); }

/* ——— Mobile drawer (nav links + auth) ——————————————————————————— */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 400; opacity: 0; pointer-events: none; transition: opacity var(--t-med);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px); max-width: 100vw;
  background: var(--surface); border-left: 1px solid var(--border-strong);
  z-index: 401; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-med);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 18px; flex-shrink: 0;
  border-bottom: 1px solid var(--border-strong);
}
.drawer-title {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.drawer-close {
  width: 32px; height: 32px; font-size: 1.3rem; line-height: 1; color: var(--muted);
  background: var(--inset); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.drawer-close:hover { color: var(--text); border-color: var(--border-hover); }

.drawer-nav { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--border); }
.drawer-nav a {
  display: block; padding: 14px 20px;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.drawer-nav a:last-child { border-bottom: none; }
.drawer-nav a:hover, .drawer-nav a.active { color: var(--primary); background: var(--surface-hover); }

.drawer-auth { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.drawer-auth .btn { width: 100%; }

.drawer-profile-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.drawer-profile-id { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.drawer-profile-name { font-size: .9rem; font-weight: 700; color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.drawer-profile-email { font-size: .76rem; color: var(--muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.drawer-auth a, .drawer-auth button.drawer-link {
  display: block; width: 100%; text-align: left; padding: 12px 4px;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: .03em;
  background: none; border: none; border-bottom: 1px solid var(--border); cursor: pointer;
}
.drawer-auth a:last-of-type, .drawer-auth button.drawer-link:last-of-type { border-bottom: none; }
.drawer-auth a:hover, .drawer-auth button.drawer-link:hover { color: var(--text); }
.drawer-auth .logout-btn { color: var(--error); }

body.drawer-open { overflow: hidden; }

/* ——— Buttons ———————————————————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #0a0c0f;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg {
  height: 52px;
  padding: 0 30px;
  font-size: .82rem;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: .7rem;
}

/* ——— Layout ————————————————————————————————————————————————— */
.page-wrap { position: relative; z-index: 1; }

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section     { padding: 80px 0; }
.section-sm  { padding: 50px 0; }
.section-xs  { padding: 32px 0; }

/* ——— Cards ——————————————————————————————————————————————————— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--t), box-shadow var(--t);
}
.card:hover {
  border-color: var(--primary-line);
  box-shadow: var(--shadow-md);
}

/* ——— Badges — tactical chips —————————————————————————————————— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-orange {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-line);
}
.badge-green {
  background: rgba(74,246,38,.08);
  color: var(--success);
  border-color: rgba(74,246,38,.28);
}
.badge-muted {
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border-color: var(--border);
}
.badge-blue {
  background: rgba(59,130,246,.1);
  color: var(--info);
  border-color: rgba(59,130,246,.25);
}

/* ——— Tags / Filter Pills — sharp selectors ———————————————————— */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--t);
  user-select: none;
}
.tag:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #0a0c0f;
}

/* ——— Divider ———————————————————————————————————————————————— */
hr.divider {
  height: 1px;
  border: none;
  background: var(--border);
}

/* ——— Footer (shared) ————————————————————————————————————————— */
.footer,
.site-footer {
  border-top: 1px solid var(--border-strong);
  padding: 36px clamp(16px, 4vw, 40px);
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { font-weight: 800; font-size: .95rem; }
.footer-tagline { color: var(--muted); font-size: .82rem; margin-top: 6px; max-width: 280px; }
.logo-text { font-weight: 800; font-size: 1rem; }
.logo-accent { color: var(--primary); }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--t);
}
.footer-links a:hover { color: var(--primary); }

.footer-copy {
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .03em;
}

/* ——— Support SinaumeSync ———————————————————————————————————— */
/* Reusable coffee/support button — available site-wide via main.css */
.btn-support {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px;
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  color: var(--primary);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; transition: background var(--t), color var(--t);
}
.btn-support:hover { background: var(--primary); color: #0a0c0f; }

/* Inline callout for calculator / content pages */
.support-callout {
  max-width: var(--page-max);
  margin: 40px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}
.support-callout-inner {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  position: relative;
}
.support-callout-inner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--primary);
}
.support-callout h2 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em;
  text-transform: uppercase; margin-bottom: 5px;
}
.support-callout p { color: var(--muted); font-size: .86rem; line-height: 1.6; max-width: 56ch; }

/* Shared trust line below any support/donate CTA */
.support-action { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.support-trust {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: .68rem; color: var(--muted);
  letter-spacing: .02em; text-align: center;
}
.support-grow-text .support-trust { text-align: left; margin-left: 0; }
.support-action .support-trust { margin-top: 0; }

/* Footer support block — first row inside any footer */
.footer-support {
  max-width: var(--page-max);
  margin: 0 auto 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer-support-text strong {
  display: block; font-size: .9rem; font-weight: 800; letter-spacing: -.01em;
}
.footer-support-text span {
  display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; max-width: 52ch;
}

/* Resources "keep growing" — message + optional QR card */
.support-grow {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  border: 1px solid var(--border-strong); background: var(--surface);
  padding: clamp(24px, 4vw, 36px); position: relative;
}
.support-grow::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary);
}
.support-grow h2 {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 12px;
}
.support-grow p { color: var(--muted); line-height: 1.7; font-size: .95rem; max-width: 60ch; margin-bottom: 22px; }
.support-qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: var(--inset);
  padding: 16px; text-align: center; color: var(--muted); width: 168px;
  transition: border-color var(--t);
}
.support-qr-card:hover { border-color: var(--primary-line); }
.support-qr-card svg { width: 120px; height: 120px; }
.support-qr-card span {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; line-height: 1.4;
}

@media (max-width: 640px) {
  .support-callout-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .support-callout-inner::before { width: 100%; height: 3px; bottom: auto; }
  .support-callout .btn-support { justify-content: center; }
  .footer-support { flex-direction: column; align-items: flex-start; text-align: left; }
  .support-grow { grid-template-columns: 1fr; justify-items: start; }
  .support-qr-card { width: 100%; max-width: 220px; margin: 0 auto; }
}

/* ——— Utilities —————————————————————————————————————————————— */
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--muted); }
.text-success  { color: var(--success); }
.text-warning  { color: var(--warning); }
.text-sm       { font-size: .875rem; }
.text-xs       { font-size: .78rem; }
.fw-600        { font-weight: 600; }
.fw-700        { font-weight: 700; }
.fw-800        { font-weight: 800; }
.mono          { font-family: var(--font-mono); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ——— Mobile —————————————————————————————————————————————————— */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .section    { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .nav-user-trigger { padding: 0 8px; gap: 0; }
  .nav-username { display: none; }
  .nav-avatar { width: 26px; height: 26px; }
  .nav-caret { display: none; }
}
@media (max-width: 600px) {
  .nav-auth .btn-nav-login { display: none; }
  .nav-auth .btn-nav-signup { height: 38px; padding: 0 12px; font-size: .68rem; }
}
@media (max-width: 380px) {
  .navbar { padding: 0 12px; }
  .nav-dropdown { max-width: calc(100vw - 16px); }
}
