/* NorthStar Prime shell v2 — shared navigation and catalog polish. */
:root {
  --nsp-shell-ink: #070912;
  --nsp-shell-panel: rgba(10, 13, 25, .88);
  --nsp-shell-line: rgba(227, 195, 105, .18);
  --nsp-shell-copy: #f4f0e5;
  --nsp-shell-muted: #a9adbd;
  --nsp-shell-gold: #f0cb68;
  --nsp-shell-cyan: #65e7ef;
}

body {
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

.nsp-page-focus-target {
  display: block;
  width: 1px;
  height: 0;
  scroll-margin-top: 88px;
  outline: 0;
}

.nsp-site-nav.nsp-shell-v2 {
  position: sticky;
  top: 0;
  z-index: 9800;
  min-height: 76px;
  padding: 10px clamp(14px, 2.7vw, 42px);
  gap: clamp(12px, 2vw, 28px);
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(8, 9, 18, .97), rgba(14, 12, 29, .94) 48%, rgba(7, 15, 26, .97)),
    radial-gradient(circle at 18% 0, rgba(240, 203, 104, .13), transparent 38%);
  border-bottom: 1px solid var(--nsp-shell-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.nsp-site-nav.nsp-shell-v2::after {
  content: "";
  position: absolute;
  left: clamp(14px, 2.7vw, 42px);
  right: clamp(14px, 2.7vw, 42px);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nsp-shell-gold), #df58b8, var(--nsp-shell-cyan), transparent);
  opacity: .58;
}

.nsp-shell-v2 .nav-brand {
  min-width: max-content;
  gap: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.nsp-shell-v2 .nav-brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(240, 203, 104, .5);
  border-radius: 16px 8px 16px 8px;
  box-shadow: 0 0 0 4px rgba(240, 203, 104, .04), 0 12px 28px rgba(0, 0, 0, .36);
}

.nsp-brand-lockup { display: grid; line-height: 1.04; }
.nsp-brand-lockup .wordmark {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nsp-brand-lockup small {
  margin-top: 5px;
  color: #898fa4;
  font-size: .56rem;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nsp-shell-v2 .nsp-nav-primary {
  flex: 1;
  max-width: none;
  justify-content: center;
  gap: 3px;
}

.nsp-shell-v2 .nsp-nav-primary > a {
  position: relative;
  min-height: 46px;
  padding: 7px 12px;
  gap: 7px;
  border: 0;
  border-radius: 14px 7px 14px 7px;
  color: #b9bdca;
  background: transparent;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
}

.nsp-shell-v2 .nsp-nav-primary > a:hover,
.nsp-shell-v2 .nsp-nav-primary > a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(240, 203, 104, .13), rgba(101, 231, 239, .07));
  box-shadow: inset 0 0 0 1px rgba(240, 203, 104, .18), 0 10px 24px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.nsp-shell-v2 .nsp-nav-primary > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 3px;
  height: 1px;
  background: var(--nsp-shell-gold);
  box-shadow: 0 0 10px var(--nsp-shell-gold);
}

.nsp-shell-v2 .nav-emoji { font-size: .95rem; }

.nsp-nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
}

.nsp-search-trigger,
.nsp-shell-v2 .nsp-nav-more > summary {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 13px 7px 13px 7px;
  background: rgba(255, 255, 255, .035);
  color: #d8d9e2;
  cursor: pointer;
}

.nsp-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  font: 650 .67rem/1 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nsp-search-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nsp-search-trigger kbd {
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 5px;
  color: #8f96a9;
  background: rgba(0, 0, 0, .2);
  font: inherit;
}
.nsp-search-trigger:hover { color: #fff; border-color: rgba(101, 231, 239, .36); }

.nsp-shell-v2 .nsp-nav-more { position: relative; }
.nsp-shell-v2 .nsp-nav-more > summary {
  padding: 0 12px;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .11em;
}
.nsp-shell-v2 .nsp-nav-more[open] > summary { border-color: rgba(240, 203, 104, .42); }
.nsp-shell-v2 .nsp-nav-menu {
  top: calc(100% + 14px);
  width: min(720px, 92vw);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 13px;
  border-radius: 22px 10px 22px 10px;
  background:
    linear-gradient(145deg, rgba(10, 12, 24, .99), rgba(18, 13, 31, .99)),
    var(--nsp-shell-ink);
  border-color: rgba(240, 203, 104, .27);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .62), 0 0 60px rgba(101, 231, 239, .07);
}
.nsp-nav-group {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 9px;
  border-radius: 13px 6px 13px 6px;
  background: rgba(255, 255, 255, .018);
}
.nsp-nav-group strong {
  padding: 2px 7px 7px;
  color: #747d94;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nsp-shell-v2 .nsp-nav-group a {
  min-height: 38px;
  justify-content: flex-start;
  border: 0;
  border-radius: 9px 4px 9px 4px;
  color: #cfd1da;
  background: transparent;
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: none;
}
.nsp-shell-v2 .nsp-nav-group a:hover,
.nsp-shell-v2 .nsp-nav-group a[aria-current="page"] {
  color: #fff;
  background: rgba(240, 203, 104, .1);
  box-shadow: inset 3px 0 0 var(--nsp-shell-gold);
}

.nsp-command {
  width: min(760px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 48px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 203, 104, .32);
  border-radius: 28px 12px 28px 12px;
  color: var(--nsp-shell-copy);
  background: #090c17;
  box-shadow: 0 40px 120px #000, 0 0 80px rgba(101, 231, 239, .08);
}
.nsp-command::backdrop { background: rgba(1, 3, 9, .82); backdrop-filter: blur(9px); }
.nsp-command-head { display: flex; align-items: center; gap: 12px; padding: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nsp-command-head input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(101, 231, 239, .25);
  border-radius: 13px 6px 13px 6px;
  outline: none;
  color: #fff;
  background: #101729;
  font: 600 1rem/1.2 "Space Grotesk", system-ui, sans-serif;
}
.nsp-command-head input:focus { border-color: var(--nsp-shell-cyan); box-shadow: 0 0 0 3px rgba(101,231,239,.08); }
.nsp-command-close { border: 0; padding: 9px; color: #a8adba; background: transparent; cursor: pointer; font-size: 1.1rem; }
.nsp-command-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 560px; padding: 15px; overflow: auto; }
.nsp-command-item {
  display: grid;
  gap: 2px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px 6px 13px 6px;
  color: #eef0f5;
  background: rgba(255,255,255,.025);
}
.nsp-command-item[hidden], .nsp-command-empty[hidden] { display: none !important; }
.nsp-command-item:hover, .nsp-command-item:focus-visible { border-color: rgba(240,203,104,.32); background: rgba(240,203,104,.07); }
.nsp-command-item small { color: #7f879a; font-size: .68rem; letter-spacing: .05em; }
.nsp-command-empty { grid-column: 1 / -1; padding: 32px; color: #9198a9; text-align: center; }

/* Shared catalog rhythm without flattening route-specific art direction. */
.section { padding-inline: clamp(18px, 4vw, 64px); }
.pillar-card, .tier-card, .product-card, .prime-display-card, .station-display-card {
  border-radius: 20px 8px 20px 8px;
}
.pillar-card img, .tier-card img, .product-card img, .prime-display-card img, .station-display-card img {
  background: #080b14;
}
footer { border-top: 1px solid rgba(240, 203, 104, .14); }

/* Recipe cards use exact-title identities; category seals remain navigation, never fake dish photos. */
.recipe-card-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: 240px;
  padding: 22px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.11);
  color: #fff;
  background:
    radial-gradient(circle at 72% 24%, hsla(var(--recipe-hue-alt), 92%, 67%, .43), transparent 31%),
    radial-gradient(circle at 18% 74%, hsla(var(--recipe-hue), 86%, 55%, .28), transparent 38%),
    linear-gradient(var(--recipe-angle), hsl(var(--recipe-hue) 42% 15%), #070a12 68%);
}
.recipe-card-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35%;
  opacity: .44;
  background: repeating-conic-gradient(from var(--recipe-angle), transparent 0 10deg, hsla(var(--recipe-hue-alt), 88%, 70%, .16) 10deg 11deg);
  mask-image: radial-gradient(circle, #000 0 36%, transparent 68%);
  transform: rotate(-8deg);
}
.recipe-card-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 1px solid hsla(var(--recipe-hue-alt), 90%, 76%, .25);
  border-radius: 22px 7px 22px 7px;
  box-shadow: inset 0 0 42px rgba(255,255,255,.035);
}
.recipe-card-visual__index {
  position: absolute;
  top: 18px;
  left: 20px;
  color: hsla(var(--recipe-hue-alt), 92%, 82%, .82);
  font: 700 .64rem/1 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: .16em;
}
.recipe-card-visual__glyph {
  position: absolute;
  top: 42%;
  left: 50%;
  translate: -50% -50%;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,.55));
  font-size: clamp(3rem, 6vw, 4.6rem);
}
.recipe-card-visual__kicker {
  margin-bottom: 7px;
  color: hsla(var(--recipe-hue-alt), 90%, 84%, .86);
  font: 700 .62rem/1 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.recipe-card-visual__title {
  max-width: 24ch;
  text-wrap: balance;
  text-shadow: 0 3px 18px #000;
  font: 650 clamp(.96rem, 1.7vw, 1.2rem)/1.14 "Space Grotesk", system-ui, sans-serif;
}

@media (max-width: 1120px) {
  .nsp-brand-lockup small { display: none; }
  .nsp-shell-v2 .nsp-nav-primary > a { padding-inline: 9px; }
  .nsp-search-trigger .nsp-search-label { display: none; }
}

@media (max-width: 820px) {
  .nsp-site-nav.nsp-shell-v2 {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 9px 12px;
  }
  .nsp-shell-v2 .nav-brand { justify-content: flex-start; }
  .nsp-shell-v2 .nsp-nav-primary {
    grid-column: 1 / -1;
    order: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
  }
  .nsp-shell-v2 .nsp-nav-primary > a { min-height: 39px; padding: 4px; font-size: .6rem; }
  .nsp-shell-v2 .nsp-nav-primary > a .nav-emoji { display: none; }
  .nsp-nav-actions { justify-self: end; }
  .nsp-shell-v2 .nsp-nav-more { position: static; }
  .nsp-shell-v2 .nsp-nav-menu { position: fixed; top: 121px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 150px); grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .nsp-shell-v2 .nav-brand img { width: 42px; height: 42px; }
  .nsp-brand-lockup .wordmark { font-size: .78rem; }
  .nsp-shell-v2 .nsp-nav-primary > a:nth-child(5) { display: none; }
  .nsp-shell-v2 .nsp-nav-primary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nsp-shell-v2 .nsp-nav-menu, .nsp-command-results { grid-template-columns: 1fr; }
  .nsp-search-trigger kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nsp-site-nav *, .nsp-command * { transition: none !important; animation: none !important; }
}

.nsp-site-nav .nsp-account-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 .8rem;border:1px solid rgba(232,203,140,.4);border-radius:9px;color:#ecdaab;text-decoration:none;white-space:nowrap}
.nsp-site-nav .nsp-account-link:focus-visible {outline:3px solid #b7b4ff;outline-offset:3px}
@media (max-width: 640px) {
  .nsp-shell-v2 .nsp-brand-lockup {display:none}
  .nsp-site-nav.nsp-shell-v2 {grid-template-columns:minmax(0,1fr) auto}
  .nsp-shell-v2 .nav-brand {min-width:0}
}
