/* uszup — shared design system */
/* Fintech-serious aesthetic inspired by Stripe/Linear. Indigo accent. */

:root {
  /* Type */
  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  /* Light palette */
  --bg: #fbfbfc;
  --bg-elev: #ffffff;
  --bg-subtle: #f4f4f6;
  --bg-hover: #efeff2;
  --border: #e7e7eb;
  --border-strong: #d4d4da;
  --fg: #0a0a0f;
  --fg-muted: #5a5a66;
  --fg-subtle: #8a8a94;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --accent-subtle: #eef0ff;
  --accent-hover: #4338ca;
  --success: #059669;
  --success-subtle: #ecfdf5;
  --warning: #d97706;
  --warning-subtle: #fffbeb;
  --shadow-sm: 0 1px 2px rgba(10,10,15,.04), 0 1px 1px rgba(10,10,15,.02);
  --shadow-md: 0 4px 12px rgba(10,10,15,.06), 0 1px 3px rgba(10,10,15,.04);
  --shadow-lg: 0 12px 40px rgba(10,10,15,.10), 0 2px 6px rgba(10,10,15,.04);

  /* Density (comfortable default) */
  --pad-page-y: 64px;
  --pad-page-x: 32px;
  --card-pad: 24px;
  --row-pad-y: 20px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 48px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

html[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-elev: #111118;
  --bg-subtle: #16161e;
  --bg-hover: #1c1c26;
  --border: #23232d;
  --border-strong: #2e2e3a;
  --fg: #f2f2f5;
  --fg-muted: #9a9aa6;
  --fg-subtle: #6a6a74;
  --accent: #7c74ff;
  --accent-fg: #ffffff;
  --accent-subtle: #1a1a2e;
  --accent-hover: #948dff;
  --success: #34d399;
  --success-subtle: #0b1f18;
  --warning: #fbbf24;
  --warning-subtle: #1f1608;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.45);
}

html[data-density="compact"] {
  --pad-page-y: 40px;
  --pad-page-x: 24px;
  --card-pad: 16px;
  --row-pad-y: 12px;
  --gap-md: 12px;
  --gap-lg: 16px;
  --gap-xl: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

img { display: block; max-width: 100%; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-page-x);
}

.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--pad-page-x);
}

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--gap-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 60%, #8b5cf6));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 32px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg-muted);
  transition: color .15s ease, background .15s ease;
}

.nav-link:hover { color: var(--fg); background: var(--bg-hover); }
.nav-link.active { color: var(--fg); }

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

/* Global search bar in navbar */
.nav-search {
  position: relative;
  flex: 1;
  max-width: 340px;
  margin: 0 12px;
}
.nav-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg-muted);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.nav-search-box:focus-within {
  background: var(--bg-elev);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.nav-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--fg);
  min-width: 0;
}
.nav-search-box input::placeholder { color: var(--fg-subtle); }
.nav-search-clear {
  background: none;
  border: none;
  padding: 2px;
  border-radius: 4px;
  color: var(--fg-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .12s, color .12s;
}
.nav-search-clear:hover { background: var(--bg-hover); color: var(--fg); }

.nav-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(10,10,15,.12), 0 2px 6px rgba(10,10,15,.06);
  max-height: 480px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 1000;
}
.nav-search-results.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ns-group { padding: 8px 0; }
.ns-group + .ns-group { border-top: 1px solid var(--border); }
.ns-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
}
.ns-count {
  background: var(--bg-subtle);
  color: var(--fg-muted);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
}

.ns-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.ns-item:hover { background: var(--bg-hover); }
.ns-item:hover .ns-arrow { color: var(--accent); transform: translateX(3px); }

.ns-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ns-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ns-thumb-icon {
  display: grid;
  place-items: center;
}
.ns-body { flex: 1; min-width: 0; }
.ns-name {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ns-meta {
  font-size: 11.5px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-top: 1px;
}
.ns-arrow {
  color: var(--fg-subtle);
  transition: color .12s, transform .12s;
  flex-shrink: 0;
}

.ns-empty {
  padding: 28px 20px;
  text-align: center;
}
.ns-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--fg-subtle);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}
.ns-empty-text {
  font-size: 13.5px;
  color: var(--fg);
  margin-bottom: 4px;
}
.ns-empty-sub {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.ns-empty-sub a { color: var(--accent); text-decoration: underline; }

/* Hide global search on small screens (to save room) */
@media (max-width: 900px) {
  .nav-search { display: none; }
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--fg-muted);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background .15s, transform .05s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: color-mix(in oklab, var(--fg) 90%, var(--accent)); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(79,70,229,.3);
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-hover); }

.btn-lg { padding: 12px 20px; font-size: 15px; border-radius: 10px; }

/* Pills / tags */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.pill-accent {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 20%, transparent);
}

.pill-success {
  background: var(--success-subtle);
  color: var(--success);
  border-color: color-mix(in oklab, var(--success) 20%, transparent);
}

.pill-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

h1, h2, h3, h4 { letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 56px; line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: 36px; line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
h4 { font-size: 16px; line-height: 1.3; font-weight: 600; }

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 620px;
  text-wrap: pretty;
}

/* Card */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* Placeholder imagery */
.placeholder {
  background:
    repeating-linear-gradient(
      -45deg,
      color-mix(in oklab, var(--fg) 4%, transparent) 0 1px,
      transparent 1px 10px
    ),
    var(--bg-subtle);
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

/* Breadcrumb */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { color: var(--fg-subtle); }

/* Section */
.section { padding: var(--pad-page-y) 0; }
.section-tight { padding: calc(var(--pad-page-y) * 0.6) 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}
.section-head .left { display: flex; flex-direction: column; gap: 8px; }

/* Footer */
footer.foot {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.foot-col h5 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
}

.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color .15s;
}
.foot-col a:hover { color: var(--fg); }

.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-subtle);
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  font-size: 13px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h6 {
  margin: 0 0 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.tweak-row:first-of-type { border-top: none; }
.tweak-seg {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.tweak-seg button {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}
.tweak-seg button.active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

/* Utility */
.row { display: flex; align-items: center; gap: var(--gap-md); }
.col { display: flex; flex-direction: column; gap: var(--gap-md); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }

/* Article card */
.article-card { overflow: hidden; display: flex; flex-direction: column; }
.article-media { aspect-ratio: 16/9; position: relative; margin: 10px 10px 0; border-radius: var(--radius-md); overflow: hidden; }
.article-media .placeholder { height: 100%; width: 100%; border-radius: 0; }
.article-tag { position: absolute; top: 10px; left: 10px; background: var(--bg-elev); color: var(--fg); border: 1px solid var(--border); }
.article-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-meta { font-size: 12px; color: var(--fg-muted); }
.article-title { font-size: 17px; font-weight: 600; margin: 2px 0 4px; line-height: 1.3; letter-spacing: -0.015em; }
.article-excerpt { font-size: 13.5px; color: var(--fg-muted); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-subtle); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.article-author { color: var(--fg); font-weight: 500; }
.article-dot { color: var(--fg-subtle); }

/* Thread row */
.thread-row {
  display: grid;
  grid-template-columns: 44px 1fr 160px;
  gap: 18px;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .15s, box-shadow .15s;
  align-items: start;
}
.thread-row + .thread-row { margin-top: 10px; }
.thread-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.thread-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.thread-topline { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.thread-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; letter-spacing: -0.01em; }
.thread-preview { font-size: 13.5px; color: var(--fg-muted); margin: 0 0 8px; line-height: 1.55; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread-foot { font-size: 12px; color: var(--fg-subtle); display: flex; gap: 6px; align-items: center; }
.thread-foot b { color: var(--fg); font-weight: 500; }
.thread-dot { color: var(--fg-subtle); }
.thread-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  background: var(--bg-subtle);
  border-radius: 10px;
  text-align: center;
}
.thread-stats > div { display: flex; flex-direction: column; gap: 2px; }
.thread-stats .mono { font-size: 14px; font-weight: 600; color: var(--fg); font-family: var(--font-mono); }
.thread-stats .lab { font-size: 10px; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); }

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .thread-row { grid-template-columns: 40px 1fr; }
  .thread-stats { grid-column: 1 / -1; }
}

/* ===== uszup reviews embed widget (Latest Reviews) ===== */
.reviews-section-title {
  font-size: 26px; font-weight: 700; margin: 32px 0 18px;
  letter-spacing: -0.02em; color: var(--fg);
}
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.rcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.rcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.rcard-img {
  height: 180px; background: var(--bg-subtle); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.rcard-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rcard-img.placeholder { background: linear-gradient(135deg, var(--bg-subtle), var(--bg-hover)); }
.rcard-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rcard-cat {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  color: var(--accent); margin-bottom: 2px;
}
.card-fresh {
  position: absolute; top: 12px; right: 12px;
  background: var(--success); color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
}
.rcard-title { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; letter-spacing: -0.015em; }
.rcard-excerpt { font-size: 13.5px; color: var(--fg-muted); line-height: 1.55; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-subtle); padding-top: 10px; border-top: 1px solid var(--border);
  margin-top: auto;
}
.rcard-stars { color: #f5b300; font-size: 14px; letter-spacing: 1px; }
.rcard-stars small { color: var(--fg-muted); font-size: 11px; margin-left: 4px; }

/* Testimonials marquee — minimal, uses uszup tokens */
.testim-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.testim-row { padding: 8px 0; overflow: hidden; }
.testim-track { display: flex; gap: 16px; width: max-content; animation: usz-marquee 50s linear infinite; }
.testim-track-right { animation-direction: reverse; animation-duration: 60s; }
.testim-marquee:hover .testim-track { animation-play-state: paused; }
@keyframes usz-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.t-card { flex: 0 0 320px; padding: 22px; gap: 12px; display: flex; flex-direction: column; }
.t-card-top { display: flex; justify-content: space-between; align-items: center; }
.t-stars { color: #f5b300; font-size: 14px; letter-spacing: 1.5px; }
.t-verif { font-size: 11px; color: var(--success); font-weight: 600; background: var(--success-subtle); padding: 2px 8px; border-radius: 999px; }
.t-quote-text {
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.t-author { display: flex; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.t-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-subtle); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; font-family: var(--font-mono); flex-shrink: 0; }
.t-name { font-size: 13px; font-weight: 600; color: var(--fg); line-height: 1.2; }
.t-meta { font-size: 12px; color: var(--fg-subtle); margin-top: 2px; }
@media (max-width: 700px) { .t-card { flex-basis: 280px; } }


/* === Mobile hamburger nav (added 2026-05-30) === */
/* Hide hamburger on desktop, show on <900px */
.nav-mobile-toggle { display: none; }

@media (max-width: 900px) {
  .nav-mobile-toggle { display: inline-grid; }
  /* Make nav-inner allow wrap so drawer can fall below */
  .nav-inner { flex-wrap: wrap; gap: 8px; }
  /* When .nav-open: drop nav-links + nav-search as full-width drawer */
  .nav.nav-open .nav-links { display: flex !important; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; margin-left: 0; padding: 8px 0 4px; border-top: 1px solid var(--border); }
  .nav.nav-open .nav-link { padding: 12px 14px; border-radius: 8px; font-size: 15px; }
  .nav.nav-open .nav-search { display: block !important; width: 100%; max-width: none; margin: 0 0 8px; }
  /* Hide 'Browse all' CTA on mobile to give nav-actions room */
  .nav-actions .btn-accent { display: none; }
}
