/* Sitewide page styles shared by every route (the chrome itself lives in
   np-chrome.css, the palette tokens with it). Per-page stylesheets
   are ported from the theme's np-*.css and loaded by their page. */
.np-parts-main { display: block; }
.np-password { padding: 60px 20px; max-width: 520px; }
.np-password h1 { font-size: 32px; font-weight: 800; color: var(--np-ink-strong); margin: 0 0 12px; }
.np-password__form { display: flex; gap: 0; margin-top: 18px; }
.np-password__input { flex: 1; height: 44px; border: 2px solid var(--np-ink-strong); border-right: 0; border-radius: 5px 0 0 5px; padding: 0 14px; font: inherit; }
.np-password__form button { height: 44px; padding: 0 22px; background: var(--np-red); color: #fff; border: 0; border-radius: 0 5px 5px 0; font: inherit; font-weight: 700; cursor: pointer; }
.np-password__error { color: var(--np-red); margin-top: 10px; }

/* header search suggestions (htmx fragment under the hero search) */
.search { position: relative; }
#np-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; }
.np-suggest__panel { margin-top: 4px; background: var(--np-bg); border: 1px solid var(--np-border); border-radius: 5px; box-shadow: 0 10px 28px rgba(0,0,0,.14); overflow: hidden; text-align: left; }
.np-suggest__group { padding: 8px 14px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--np-muted); text-transform: uppercase; }
.np-suggest__row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--np-ink); text-decoration: none; font-size: 14px; }
.np-suggest__row:hover, .np-suggest__row:focus { background: var(--np-surface); }
.np-suggest__img { width: 40px; height: 40px; object-fit: contain; border: 1px solid var(--np-border); border-radius: 3px; background: var(--np-logo-bg); flex: none; }
.np-suggest__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.np-suggest__title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-suggest__meta { font-size: 12px; color: var(--np-ink-soft); }
.np-suggest__price { font-weight: 700; white-space: nowrap; }
.np-suggest__count { margin-left: auto; font-size: 12px; color: var(--np-ink-soft); }
.np-suggest__more { display: block; padding: 10px 14px; border-top: 1px solid var(--np-border); font-size: 13px; font-weight: 700; color: var(--np-navy); text-decoration: none; }
.np-suggest__more:hover { text-decoration: underline; }

/* footer below the fold on desktop, as the theme reserves it (np-header.css) */
@media (min-width: 990px) {
  main#MainContent {
    min-height: calc(100vh - 140px);
  }
}

/* ---------- shared: the "more" link chevron ----------
   Every see-all / more link (np-more) ends in one thin chevron drawn in
   its own colour, replacing the » glyph the copy used to carry (Greg
   2026-09-09: the guillemets read as >>). The chevron is the band's. */
.np-more::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  margin-bottom: 1px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: middle;
}

/* the kit's parts pages (storefront_kit/static/parts, its --parts-* tokens) in the 313 look: the coral, Montserrat,
   and Oswald on the headings as the theme set them; the headings' rules are one id up, since the kit's stylesheet
   loads after this one */
:root {
  --parts-accent: var(--np-red);
  --parts-accent-strong: var(--np-red-dark);
  --parts-cta: var(--np-red);
  --parts-cta-hover: var(--np-red-dark);
  --parts-font: var(--font-body-family);
  /* the heading icons in the accent */
  --parts-icon-filter: brightness(0) saturate(100%) invert(30%) sepia(21%) saturate(1407%) hue-rotate(196deg) brightness(132%) contrast(159%);
}
/* dark mode (np-chrome.css): the counter's palette turned over, the greens lifted to read on dark, the photos' white kept */
:root[data-theme="dark"] {
  --parts-ink: #ececec;
  --parts-ink-2: #fff;
  --parts-cream: #1a1a1a;
  --parts-sand: #262626;
  --parts-sand-2: #303030;
  --parts-dove: #363636;
  --parts-steel: #b4b4b4;
  --parts-fog: #8a8a8a;
  --parts-red: #f08a80;
  --parts-red-bg: #3a1f1c;
  --parts-accent-bg: #1c2244;
  --parts-fit: #4cc37a;
  --parts-fit-strong: #7ddc9f;
  --parts-bg: #1c1c1c;
  --parts-bar-bg: #242424;
  --parts-photo-bg: #fff;
  --parts-rail-rule-soft: #262626;
}
body #np-category-page .npc-title, body #np-category-page .npc-rail-title, body #np-category-page .nps-facet-title { font-family: var(--font-heading-family); font-weight: 500; }
/* the kit's lightbox (the part's pictures, opened from a listing's picture) centred: the site's reset zeroes every
   margin, which took away the margin: auto a modal dialog centres by (Greg 2026-10-15) */
dialog.parts-lb { margin: auto; }
/* a product box with a part page is one big link to it (np-site.js), so it shows the hand */
.parts-ledger .parts-row:has(.parts-row__title[href]) { cursor: pointer; }
/* the category hub's row tiles solid white over the page's icon background (Greg 2026-10-15) */
.np-catprev .np-catprev__tile { background: var(--parts-bg); }

/* the kit's checkout and account pages in the accent (their --kc-* and --kit-account-* tokens, declared on the
   page's own class; one element up, since the kit's stylesheets load after this one) */
body .kc-page { --kc-accent: var(--np-red-dark); }
body .kit-account { --kit-account-accent: var(--np-red-dark); }
