.category-breadcrumbs {
  padding-block: 14px;
}

.category-breadcrumbs .breadcrumbs { margin: 0; }

.category-hero {
  position: relative;
  isolation: isolate;
  background: #142631;
  color: #fff;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(12 22 29 / 88%), rgb(12 22 29 / 56%) 48%, rgb(12 22 29 / 12%));
}

.category-hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(420px, 46vw, 620px);
  padding-block: 48px;
}

.category-hero-copy { max-width: 680px; }

.category-hero-copy h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.7vw, 4.1rem);
  line-height: 1.08;
  margin: 0 0 20px;
}

.category-hero-copy p {
  color: #d6e3eb;
  max-width: 42ch;
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 0 24px;
}

.category-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.category-jump { color: #fff; text-underline-offset: 4px; }
.category-jump:hover { color: #d6e3eb; }

.category-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

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

.category-detail.section { padding-top: 24px; }

.category-detail .product-category-nav {
  justify-content: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.category-detail .product-category-nav .secondary {
  padding: 13px 25px;
  font-size: 1.0625rem;
  text-align: center;
}

.category-detail .model-specs {
  padding: clamp(18px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.category-detail #model-specs-title { scroll-margin-top: 100px; }

.category-detail .model-link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.category-detail .model-link-card a { margin-top: auto; }

.category-detail .category-project-guide {
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.category-product-photo .product-main-photo { margin: 0; }

@media (max-width: 760px) {
  .category-detail .category-project-guide { grid-template-columns: 1fr; }
  .category-hero-inner { min-height: 390px; }
  .category-hero::after { background: rgb(12 22 29 / 68%); }
  .category-product-photo .product-main-photo { max-height: 240px; }
}

/* Keep the luminaires near the top of landscape photos in the crop. */
.category-hero-media img { object-position: center top; }

.category-hero-portrait .category-hero-media::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: var(--category-photo) center / cover no-repeat;
  filter: blur(20px);
}

.category-hero-portrait .category-hero-media img {
  box-sizing: border-box;
  padding-inline-start: 48%;
  object-fit: contain;
  object-position: center;
}

.category-hero-portrait::after {
  background: linear-gradient(90deg, rgb(12 22 29 / 94%), rgb(12 22 29 / 76%) 38%, transparent 64%);
}

.category-hero-portrait .category-hero-copy { max-width: min(48%, 580px); }

@media (max-width: 760px) {
  .category-hero .category-hero-inner {
    align-items: flex-end;
    min-height: 0;
    padding-block: clamp(230px, 68vw, 380px) 28px;
  }
  .category-hero .category-hero-media img {
    height: clamp(225px, 67vw, 370px);
    padding: 0;
    object-fit: contain;
    object-position: center top;
  }
  .category-hero .category-hero-media::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: var(--category-photo) center / cover no-repeat;
    filter: blur(20px);
  }
  .category-hero::after {
    background: linear-gradient(180deg, transparent 12%, rgb(12 22 29 / 8%) 28%, rgb(12 22 29 / 97%) 64%);
  }
  .category-hero-portrait .category-hero-copy { max-width: 100%; }
}

.category-detail .product-category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 960px);
  margin-inline: auto;
}
.category-detail .product-category-nav .secondary {
  display: grid;
  place-items: center;
  padding-inline: clamp(6px, 2vw, 25px);
  overflow-wrap: anywhere;
}
.category-detail .category-overview {
  max-width: 800px;
  margin: clamp(26px, 4vw, 48px) auto clamp(36px, 5vw, 64px);
}
.category-overview h2 {
  margin: 0 0 18px;
  text-align: center;
  text-wrap: balance;
}
.category-overview p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.8;
}
.category-overview p + p { margin-top: 12px; }
