/* Northern Performance homepage content sections.
   Loaded per-section Dawn-style: each np-* section includes this file via
   {{ 'np-home.css' | asset_url | stylesheet_tag }}; browsers dedupe the href.
   Palette tokens come from np-header.css :root (global); no new token roots here.
   The few literals outside the tokens (#8a8a8a labels, #fafbfc row hover, navy-tinted
   shadows) are design values with no token equivalent; new roots are disallowed.
   The 70/30 template-index grid lives at the bottom of this file.
   Structural layout (stepped containers 1300/1000/768, grids) is locked, never a merchant setting.
   Desktop styling is >=990px; below 990px each section gets a simple single-column treatment. */

/* ---------- stepped container ---------- */
/* Mirrors the np-header.css container steps so bands line up with the header.
   The 70/30 homepage grid neutralizes this inside #MainContent at >=1000px. */
.np-container {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 990px) {
  .np-container {
    max-width: 768px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1000px) {
  .np-container {
    max-width: 1000px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1300px) {
  .np-container {
    max-width: 1300px;
  }
}

/* ---------- shared section head ---------- */
.np-sect-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.np-sect-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--np-charcoal);
  letter-spacing: 0.01em;
}

.np-sect-head a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--np-navy);
  text-decoration: none;
  white-space: nowrap;
}

.np-sect-head a:hover {
  text-decoration: underline;
}

/* a linked heading keeps reading as the heading, not as the side link */
.np-sect-head h2 a {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  white-space: normal;
}

.np-sect-head h2 a:hover {
  color: var(--np-navy);
  text-decoration: none;
}

/* ---------- missing-image placeholder ---------- */
.np-placeholder-svg {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--np-field);
  fill: var(--np-ink-soft);
}

/* ---------- story + facts ---------- */
.np-story {
  padding-top: 44px;
}

.np-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.np-story h1 {
  margin: 0 0 14px;
  font-size: 23px;
  font-weight: 800;
  color: var(--np-charcoal);
}

.np-story h1::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--np-red);
  margin-bottom: 14px;
  border-radius: 2px;
}

.np-story__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--np-ink-soft);
  max-width: 62ch;
}

.np-story__body p + p {
  margin-top: 12px;
}

.np-story__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.np-fact {
  border: 1px solid var(--np-border);
  border-radius: 6px;
  padding: 16px 18px;
  background: #fff;
}

.np-fact__num {
  font-size: 22px;
  font-weight: 800;
  color: var(--np-navy);
  margin-bottom: 4px;
}

.np-fact__txt {
  font-size: 13px;
  color: var(--np-ink-soft);
  line-height: 1.45;
}

@media (min-width: 1300px) {
  .np-story__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
  }
}

/* ---------- story brands row (brand blocks under the body) ---------- */
.np-story__brands {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.np-story__brands-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 100%;
}

.np-story__brands-label {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  white-space: nowrap;
}

.np-story__brand {
  flex: 1 1 0;
  height: 52px;
  border: 1px solid var(--np-border);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.np-story__brand:hover {
  border-color: var(--np-navy);
  box-shadow: 0 2px 8px rgba(20, 56, 127, 0.1);
}

.np-story__brand img,
.np-story__brand svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* the link's row is a wrapper so the anchor itself spans only its words and
   the hover box is the text, not the row (Greg 2026-09-09) */
.np-story__brands-foot {
  flex-basis: 100%;
}

.np-story__brands-all {
  display: inline-block;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--np-navy);
  white-space: nowrap;
  text-decoration: none;
}

.np-story__brands-all:hover {
  text-decoration: underline;
}

/* ---------- story promo flyer viewer (flyer blocks, dot-switched) ---------- */
/* the flyer reads like a poster; at stacked (sub-1300) widths the grid column
   runs the full container and blew the square frame up past 1200px - cap and
   center it instead */
.np-promo {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.np-promo__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--np-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  /* horizontal drags belong to the flyer swipe, vertical stays page scroll */
  touch-action: pan-y;
}

.np-promo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  user-select: none;
  -webkit-user-drag: none;
}

.np-promo__img.is-active,
.np-promo__img.is-drag {
  display: block;
}

.np-promo__dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.np-promo__dot {
  /* the theme's body-rendered button rules force min sizes; pin every axis */
  width: 13px !important;
  min-width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  line-height: 0;
  cursor: pointer;
  background: var(--np-charcoal);
  transition: background 0.15s, transform 0.15s;
}

.np-promo__dot:hover {
  background: var(--np-charcoal-light);
  transform: scale(1.15);
}

.np-promo__dot.is-active {
  background: var(--np-red);
}

/* ---------- top brands line ---------- */
.np-brands-line {
  margin-top: 34px;
}

.np-brands-line__row {
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.np-brands-line__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  margin-right: 6px;
  white-space: nowrap;
}

.np-brands-line__brand {
  flex: 1 1 0;
  height: 52px;
  border: 1px solid var(--np-border);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.np-brands-line__brand:hover {
  border-color: var(--np-navy);
  box-shadow: 0 2px 8px rgba(20, 56, 127, 0.1);
}

.np-brands-line__brand img,
.np-brands-line__brand svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.np-brands-line__all-row {
  text-align: center;
  margin-top: 12px;
}

.np-brands-line__all {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--np-navy);
  white-space: nowrap;
  text-decoration: none;
}

.np-brands-line__all:hover {
  text-decoration: underline;
}

/* mobile: label and link get their own lines, logos wrap 3-up */
@media (max-width: 989.98px) {
  .np-brands-line__label {
    flex-basis: 100%;
    margin-right: 0;
  }

  .np-brands-line__brand {
    flex: 1 1 calc(33.333% - 8px);
  }

  .np-brands-line__all {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* ---------- shop popular categories ---------- */
.np-category-grid {
  padding-top: 30px;
}

/* no hairline between the story and the categories: the left column's
   sections separate by whitespace alone (Greg 2026-09-09) */
.np-category-grid > .np-container {
  padding-top: 18px;
}

.np-category-grid__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.np-cat-card {
  display: block;
  border: 1px solid var(--np-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.np-cat-card:hover {
  border-color: var(--np-navy);
  box-shadow: 0 2px 8px rgba(20, 56, 127, 0.1);
}

.np-cat-card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.np-cat-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* crop toward the bottom so source tiles' baked-in top labels stay out of frame */
.np-cat-card__photo--crop-mid img {
  object-position: center 78%;
}

.np-cat-card__label {
  padding: 9px 10px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--np-charcoal);
  text-align: center;
  letter-spacing: 0.01em;
  border-top: 1px solid var(--np-border);
  transition: color 0.15s;
}

.np-cat-card:hover .np-cat-card__label {
  color: var(--np-navy);
}

@media (min-width: 990px) {
  .np-category-grid__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1300px) {
  .np-category-grid__grid {
    gap: 14px;
  }
}

/* ---------- shop by category ledger ---------- */
.np-category-ledger {
  padding-top: 36px;
}

.np-category-ledger__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.np-category-ledger__col {
  border: 1px solid var(--np-border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.np-ledger-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 12px;
  text-decoration: none;
  transition: background 0.15s;
}

.np-ledger-row + .np-ledger-row {
  border-top: 1px solid var(--np-border);
}

.np-ledger-row:hover {
  background: #fafbfc;
}

.np-ledger-row__photo {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--np-border);
  background: #fff;
}

.np-ledger-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np-ledger-row__body {
  flex: 1;
  min-width: 0;
}

.np-ledger-row__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--np-charcoal);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.np-ledger-row:hover .np-ledger-row__name {
  color: var(--np-navy);
}

.np-ledger-row__blurb {
  font-size: 13px;
  color: var(--np-ink-soft);
  line-height: 1.5;
  margin-top: 4px;
}

.np-ledger-row__go {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--np-navy);
  margin-top: 7px;
}

.np-ledger-row:hover .np-ledger-row__go {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 1300px) {
  .np-category-ledger__split {
    grid-template-columns: 1fr 1fr;
  }

  .np-ledger-row__photo {
    width: 116px;
    height: 116px;
  }
}

/* ---------- shop by vehicle: square make tiles + popular-model chips ---------- */

.np-shop-by-vehicle {
  margin-top: 36px;
}

/* standalone /pages/shop-by-vehicle: the section is the whole page, so it
   carries its own room before the footer */
.page-shop-by-vehicle .np-shop-by-vehicle {
  padding-bottom: 72px;
}

.np-make-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.np-make-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px 6px;
  background: #fff;
  border: 1px solid var(--np-border);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--np-charcoal);
  text-align: center;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.np-make-tile:hover {
  border-color: var(--np-navy);
  color: var(--np-navy);
  box-shadow: 0 2px 8px rgba(20, 56, 127, 0.1);
}

/* tiles rendered without links keep their resting look */
.np-make-tile.np-is-static:hover {
  border-color: var(--np-border);
  color: var(--np-charcoal);
  box-shadow: none;
}

/* modern/classics toggle under the API-loaded grid (hidden until it loads) */
.np-make-more {
  margin-top: 10px;
}

.np-make-toggle {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--np-border);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--np-navy);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.np-make-toggle:hover {
  border-color: var(--np-navy);
  box-shadow: 0 2px 8px rgba(20, 56, 127, 0.1);
}

/* ---------- in-place vehicle picker ----------
   clicking a make tile swaps the grid for one row of the picked tile +
   Year select + Model select, with a back pill on its own line below.
   The handoff is animated (np-shop-by-vehicle.js): the other tiles fade
   away, the picked tile glides diagonally to the grid's top-left corner,
   and the picker controls fade in - transform/opacity only. */
.np-shop-by-vehicle.np-is-picking .np-make-grid,
.np-shop-by-vehicle.np-is-picking .np-make-more {
  display: none;
}

.np-make-picker {
  display: none;
}

.np-is-picking .np-make-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.np-picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* only the controls fade in: the adopted tile must sit dead still, so the
   entrance animation goes on its neighbours, never the container */
.np-is-picking .np-picker-row > :not(.np-is-picked),
.np-is-picking .np-picker-back {
  animation: np-picker-in 0.22s ease-out both;
}

@keyframes np-picker-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes np-picker-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.np-make-grid.np-is-animating .np-make-tile {
  transition: opacity 0.24s ease;
}

.np-make-grid .np-make-tile.np-is-flying {
  position: relative;
  z-index: 2;
  border-color: var(--np-navy);
  color: var(--np-navy);
  box-shadow: 0 2px 8px rgba(20, 56, 127, 0.1);
  transition: transform 0.27s cubic-bezier(0.4, 0, 0.2, 1);
}

/* the landed tile is adopted into the picker row as-is (width frozen to
   its grid size), so the box never turns into text or shifts */
.np-make-tile.np-is-picked {
  border-color: var(--np-navy);
  color: var(--np-navy);
  box-shadow: 0 2px 8px rgba(20, 56, 127, 0.1);
  pointer-events: none;
}

.np-picker-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--np-border);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--np-navy);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.np-picker-back:hover {
  border-color: var(--np-navy);
  box-shadow: 0 2px 8px rgba(20, 56, 127, 0.1);
}

.np-make-picker select {
  height: 42px;
  min-width: 130px;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--np-ink);
}

.np-make-picker select:disabled {
  color: var(--np-ink-soft);
  background: var(--np-field);
}

.np-picker-note {
  font-size: 13px;
  color: var(--np-ink-soft);
}

.np-picker-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--np-navy);
  white-space: nowrap;
  text-decoration: none;
}

/* reduced motion: the handoff keeps its fades but drops the movement
   (the page script also skips the glide and enters the picker directly) */
@media (prefers-reduced-motion: reduce) {
  .np-make-grid .np-make-tile.np-is-flying {
    transition: none;
  }

  .np-is-picking .np-picker-row > :not(.np-is-picked),
  .np-is-picking .np-picker-back {
    animation-name: np-picker-fade;
  }
}


/* fixed 5-up make tiles across the design's whole 768-step range; below 768 the
   auto-fill base rule takes over so phone tiles keep a readable width and long
   names like Mercedes-Benz still fit */
@media (min-width: 768px) and (max-width: 999.98px) {
  .np-make-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- NP news rail ---------- */
/* The rail carries no chrome of its own (no hairlines beside or above it, Greg
   2026-09-09); the 70/30 placement is the template grid at the bottom of this file.
   Below the 1000 step the rail follows the left content on whitespace alone. */
.np-news-rail {
  padding-top: 44px;
}

.np-news-rail__col {
  padding-top: 8px;
}

@media (min-width: 1000px) {
  .np-news-rail__col {
    padding-top: 0;
  }
}

/* the headline stands on size and weight alone: no rule under it, no tick
   above it (Greg 2026-09-09) */
.np-news-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.np-news-rail__head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  color: var(--np-charcoal);
  line-height: 1.15;
}

/* posts separate by whitespace, no hairlines; only the title is a link */
.np-news-item {
  display: block;
}

.np-news-item + .np-news-item {
  margin-top: 28px;
}

/* the post image shows whole at its own aspect, never cropped to a band
   (Greg 2026-09-09); only a taller-than-square image letterboxes at the
   rail's width */
.np-news-item__photo {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--np-border);
  margin-bottom: 11px;
  background: var(--np-field);
}

.np-news-item__photo img,
.np-news-item__photo .np-placeholder-svg {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.np-news-item__photo .np-placeholder-svg {
  aspect-ratio: 300 / 130;
}

.np-news-item__title {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--np-charcoal);
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s;
}

.np-news-item__title:hover {
  color: var(--np-navy);
  text-decoration: underline;
}

.np-news-item__date {
  font-size: 12px;
  font-weight: 700;
  color: var(--np-red);
  margin: 2px 0 6px;
}

.np-news-item__blurb {
  font-size: 13px;
  line-height: 1.55;
  color: var(--np-ink-soft);
}

.np-news-rail__more {
  display: inline-block;
  margin-top: 26px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--np-navy);
  text-decoration: none;
}

.np-news-rail__more:hover {
  text-decoration: underline;
}

/* ---------- newsletter - full-bleed charcoal band ---------- */
/* subdued car photo under a heavy charcoal wash - charcoal stays dominant, text stays on
   solid-ish ground. The wash is structural, never a merchant setting; the photo layer (when
   shown) is emitted by the section's own {% style %} block on top of this same gradient. */
.np-newsletter-band {
  /* breathing room between the page's last section and the signup: the band
     renders from the footer group, so no template can own this gap */
  margin-top: 28px;
  background-color: var(--np-charcoal);
  background-image: linear-gradient(90deg, var(--np-charcoal) 0%, var(--np-charcoal) 38%, rgba(46, 46, 46, 0.66) 100%), var(--np-newsletter-band-photo, none);
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

/* pages that end on a full-bleed gray band (the visit band on About and
   Book a Service) sit flush against the signup: the breathing room above
   would read as a stray white slit between two solid bands */
main:has(.np-section-visit:last-child) ~ .shopify-section .np-newsletter-band {
  margin-top: 0;
}

.np-newsletter-band__wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.np-newsletter-band__heading {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

/* the body line is optional and not rendered when blank; it carries the
   gap under the heading so a heading-only band stays centered */
.np-newsletter-band__body {
  font-size: 14px;
  line-height: 1.6;
  color: #C8CDD4;
  max-width: 52ch;
  margin: 6px 0 0;
}

.np-newsletter-band__form-col {
  flex: none;
  width: 460px;
  max-width: 100%;
}

.np-newsletter-band__form {
  display: flex;
  gap: 10px;
}

.np-newsletter-band__form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid #4A4A4A;
  border-radius: 5px;
  background: var(--np-charcoal-light);
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.np-newsletter-band__form input[type="email"]::placeholder {
  color: #9AA0A8;
  opacity: 1;
}

.np-newsletter-band__form input[type="email"]:focus {
  border-color: #7C8AAB;
  background: #444;
}

/* the theme forces button min-widths at >=1300; neutralize so the band button keeps its own size */
.np-newsletter-band__form button[type="submit"] {
  flex: none;
  height: 46px;
  min-width: 0 !important;
  padding: 0 28px;
  border: 0;
  background: var(--np-red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  border-radius: 5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s;
}

.np-newsletter-band__form button[type="submit"]:hover {
  background: var(--np-red-dark);
}

/* success / already-subscribed / invalid-email states, tinted light for legibility on charcoal */
.np-newsletter-band__message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.4;
}

.np-newsletter-band__message p {
  margin: 0;
  color: inherit;
}

.np-newsletter-band__message svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.np-newsletter-band__message--error {
  color: #FFB3B8;
}

.np-newsletter-band__message--success {
  color: #A9E5B4;
}

@media (max-width: 1299.98px) {
  .np-newsletter-band__wrap {
    max-width: 1000px;
    gap: 32px;
  }

  .np-newsletter-band__form-col {
    width: 400px;
  }
}

/* the design stacks the band below the 1000 step; the same treatment carries through mobile */
@media (max-width: 999.98px) {
  .np-newsletter-band__wrap {
    max-width: 768px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .np-newsletter-band__form-col {
    width: 100%;
  }
}

/* ---------- homepage 70/30 grid ---------- */
/* Template-level layout that parks the news rail beside all left-column content.
   Body class confirmed from theme.liquid: class="{{ template }}" -> .index.
   Five tracks: gutter | left 7 | gap | rail 3 | gutter. The middle three add up to the
   stepped container width, so full-bleed surfaces (announcement strip, newsletter band)
   span 1 / -1 while everything else stays on the steps. Sections inside the grid drop
   their own .np-container padding; the grid owns the stepped width here.
   The rail's oversized row span parks it beside every left section; while a promo runs
   the announcement strip takes row 1 and pushes the rail down one row.
   Empty implicit rows cost zero height with row-gap: 0.
   A section added later via the theme editor lands in the left column by default. */
@media (min-width: 1000px) {
  main.np-home {
    --np-home-content: calc(min(1000px, 100%) - 64px);
    display: grid;
    grid-template-columns:
      minmax(32px, 1fr)
      minmax(0, calc((var(--np-home-content) - 40px) * 0.7))
      40px
      minmax(0, calc((var(--np-home-content) - 40px) * 0.3))
      minmax(32px, 1fr);
    row-gap: 0;
  }

  main.np-home > section {
    grid-column: 2;
  }

  main.np-home > .np-section-news-rail {
    grid-column: 4;
    grid-row: 1 / span 20;
  }

  main.np-home.has-announcement > .np-section-news-rail {
    grid-row: 2 / span 20;
  }

  
  main.np-home > section:has(.np-newsletter-band) {
    grid-column: 1 / -1;
  }

  /* the design's .below bottom padding: the band clears the columns by 64px no matter
     which section ends up last in the left column */
  main.np-home > section:has(.np-newsletter-band) {
    margin-top: 64px;
  }

  main.np-home .np-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1300px) {
  main.np-home {
    --np-home-content: calc(min(1300px, 100%) - 64px);
    grid-template-columns:
      minmax(32px, 1fr)
      minmax(0, calc((var(--np-home-content) - 56px) * 0.7))
      56px
      minmax(0, calc((var(--np-home-content) - 56px) * 0.3))
      minmax(32px, 1fr);
  }
}

/* the makes past the featured set render hidden behind View all makes; the
   flex display above would otherwise beat the hidden attribute */
.np-make-tile[hidden] {
  display: none;
}
