/* Latest Edit — editorial page within full site chrome */

.latest-edit-page {
  background: #fff;
  color: #171717;
}

.latest-edit-page .le-main {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.le-section {
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 1.75rem);
}

.le-container {
  width: min(100%, 1920px);
  margin: 0 auto;
}

.le-container--narrow {
  width: min(100%, 1480px);
  margin: 0 auto;
}

/* Hero */
.le-hero {
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.le-hero__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
}

@media (min-width: 900px) {
  .le-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.25rem, 2vw, 2.5rem);
  }

  .le-hero__copy-block {
    max-width: none;
    padding-right: clamp(0.5rem, 2vw, 2rem);
  }

  .le-hero__copy {
    max-width: 65ch;
  }
}

.le-hero__title {
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.le-hero__copy {
  margin: 0;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  line-height: 1.5;
  max-width: 75ch;
}

.le-hero__copy + .le-hero__copy {
  margin-top: 0.65rem;
}

.le-hero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f5f5f5;
}

.le-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 899px) {
  .latest-edit-page .le-section {
    padding-left: 13px;
    padding-right: 13px;
  }

  .le-hero__media {
    aspect-ratio: 4 / 5;
  }

  .le-hero__copy-block {
    order: 2;
  }

  .le-hero__media {
    order: 1;
  }

  .le-section--wide-grid .le-media {
    aspect-ratio: 3 / 4;
  }

  .le-section-head--row {
    align-items: flex-start;
  }
}

/* Section headers */
.le-section-head {
  margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
  max-width: 48rem;
}

.le-section-head--row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .le-section-head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.le-section__title {
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
}

.le-section__desc {
  margin: 0.5rem 0 0;
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  line-height: 1.45;
  max-width: 80ch;
}

/* Image grids */
.le-grid-3 {
  display: grid;
  gap: clamp(0.5rem, 1vw, 1.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .le-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.le-grid-2 {
  display: grid;
  gap: clamp(0.5rem, 1vw, 1.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .le-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.le-media {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 4 / 5;
}

.le-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wider last editorial sections */
.le-section--wide-grid .le-container--narrow {
  width: min(100%, 1680px);
}

.le-section--wide-grid .le-grid-2 {
  gap: clamp(1rem, 2vw, 2.5rem);
}

@media (min-width: 900px) {
  .le-section--wide-grid .le-media {
    aspect-ratio: 5 / 6;
  }
}

/* Product grid */
.le-product-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .le-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.le-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.le-product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f8f8f8;
  margin-bottom: 0.65rem;
}

.le-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.le-product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: #fc0313;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
}

.le-product-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.le-product-card__title {
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}

.le-product-card__price {
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  font-weight: 500;
  white-space: nowrap;
}

.le-section--tight-top {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

.le-section--spaced {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Product grid — uses storefront product-card from admin catalog */
.le-product-grid .product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.le-product-grid .product-card__meta {
  padding-top: 10px;
}

@media (max-width: 768px) {
  .latest-edit-page .hero-header.guides-hero {
    padding-left: 13px;
    padding-right: 13px;
  }

  .le-section {
    padding-left: 13px;
    padding-right: 13px;
  }

  .le-container,
  .le-container--narrow {
    width: 100%;
    max-width: none;
  }

  .le-section-head {
    margin-bottom: 1rem;
    max-width: none;
    width: 100%;
  }

  .le-hero__title,
  .le-section__title {
    max-width: none;
    width: 100%;
  }

  .le-hero__copy,
  .le-section__desc {
    max-width: none;
    width: 100%;
  }

  .le-hero__copy-block {
    width: 100%;
  }

  .le-product-grid {
    gap: 12px;
    width: 100%;
  }

  .le-product-grid .product-card {
    width: 100%;
    min-width: 0;
  }

  .le-product-grid .product-card__media {
    width: 100%;
  }
}
