/* Shared outer edges for the storefront, header and footer. */
:root {
  --n38-layout-max: 1440px;
  --n38-layout-gutter: clamp(20px, 6vw, 96px);
  --n38-layout-width: min(var(--n38-layout-max), calc(100% - var(--n38-layout-gutter) - var(--n38-layout-gutter)));
}

body .header,
body .footer,
body > .demo-strip,
body > aside.n38-top,
.home #contenido > .hero,
.home #contenido > .section,
.home #contenido > .n38-manifesto,
.home #contenido > aside.n38-banner,
main#contenido.n38-page,
main#contenido.n38-woo,
main#contenido.n38-recipe-page,
main#contenido.n38-origin-page {
  width: var(--n38-layout-width);
  max-width: var(--n38-layout-max);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* These blocks used to add a second horizontal inset. */
.home #contenido > .hero > .hero-copy {
  padding-left: 0;
  padding-right: clamp(20px, 3vw, 48px);
}
.home #coleccion > .section-top,
.home #coleccion > .product-grid {
  margin-left: 0;
  margin-right: 0;
}
.home #coleccion > .n38-filter {
  padding-left: 0;
  padding-right: 0;
}
.home #catas > .n38-tasting-card {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  border-left: 0;
  border-right: 0;
}

/* The origin article inherits its page's container instead of nesting one. */
main#contenido.n38-origin-page .n38-origin {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.footer .n38-social-admin-note { max-width: 100%; }

body .header .nav { font-size: 15.6px; }
body .header .nav a { white-space: nowrap; }
body .header .nav a.is-active,
body .header .nav a[aria-current] {
  border-bottom-color: var(--ink);
  border-bottom-width: 2px;
}
body .header .account-button[aria-current],
body .header .bag-button[aria-current] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* One gap between home blocks, rather than two neighbouring paddings. */
.home { --n38-section-gap: 32px; }
.home #contenido {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--n38-section-gap);
}
.home #contenido > .hero,
.home #contenido > .n38-manifesto,
.home #contenido > .section,
.home #contenido > aside.n38-banner {
  margin-top: 0;
  margin-bottom: 0;
}
.home #contenido > .section {
  padding-top: 0;
  padding-bottom: 0;
}
.home #catas > .n38-tasting-card {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}
.home .footer {
  margin-top: var(--n38-section-gap);
  padding-top: 0;
}

@media (max-width: 1050px) {
  body .header .nav {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 760px) {
  .home { --n38-section-gap: 24px; }
  .home #contenido > .hero > .hero-copy { padding-right: 0; }
  .home #origen .n38-origin-home-photo { min-height: 0; }
}
