/* Longevity Research Review â€” retained dental category layout v1.
 * Category art was authored at 1440x480 (3:1). Keep it as a landscape
 * editorial hero; never squeeze the source image into a portrait card.
 */
.lrr-dental-category-hero {
  --lrr-dental-hero-position: 77% 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  height: clamp(230px, 21vw, 300px);
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(31, 79, 99, .28);
  border-radius: 16px;
  background: #071a2a;
  box-shadow: 0 14px 36px rgba(7, 26, 42, .12);
  color: #fff;
}

.lrr-dental-category-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.lrr-dental-category-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: var(--lrr-dental-hero-position);
}

.lrr-dental-category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 22, 37, .98) 0%, rgba(5, 22, 37, .92) 27%, rgba(5, 22, 37, .68) 47%, rgba(5, 22, 37, .18) 68%, rgba(5, 22, 37, .04) 100%),
    linear-gradient(0deg, rgba(5, 22, 37, .18), transparent 45%);
}

.lrr-dental-category-hero__inner {
  box-sizing: border-box;
  width: min(1180px, 100%);
  height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.25rem, 4vw, 3rem);
}

.lrr-dental-category-hero__eyebrow {
  margin: 0 0 .55rem;
  color: #66dfd6;
  font: 800 .74rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lrr-dental-category-hero__title {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font: 700 clamp(2rem, 4vw, 3.65rem)/1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}

.lrr-dental-category-hero__deck {
  max-width: 52ch;
  margin: .8rem 0 0;
  color: rgba(244, 251, 252, .9);
  font: 400 clamp(.98rem, 1.35vw, 1.13rem)/1.48 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Keep existing category content and archive loop intact. The PR only changes
 * the archive header / artwork presentation. */
.lrr-dental-category-page .page-header .page-title:empty {
  display: none;
}

.lrr-dental-category-page .site-main > .page-header:first-child {
  margin-top: 0;
}

@media (max-width: 720px) {
  .lrr-dental-category-hero {
    height: clamp(210px, 58vw, 240px);
    border-radius: 12px;
  }

  .lrr-dental-category-hero::after {
    background: linear-gradient(90deg, rgba(5, 22, 37, .97) 0%, rgba(5, 22, 37, .88) 48%, rgba(5, 22, 37, .36) 100%);
  }

  .lrr-dental-category-hero__inner {
    padding: 1.2rem 1rem;
  }

  .lrr-dental-category-hero__eyebrow {
    margin-bottom: .4rem;
    font-size: .66rem;
  }

  .lrr-dental-category-hero__title {
    max-width: 15ch;
    font-size: clamp(1.75rem, 8.5vw, 2.45rem);
    line-height: 1.06;
  }

  .lrr-dental-category-hero__deck {
    max-width: 34ch;
    margin-top: .55rem;
    font-size: .9rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .lrr-dental-category-hero {
    /* Still landscape at common phone widths; never a portrait art crop. */
    height: clamp(210px, 60vw, 230px);
  }

  .lrr-dental-category-hero__title {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .lrr-dental-category-hero__deck {
    max-width: 30ch;
    font-size: .86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lrr-dental-category-hero,
  .lrr-dental-category-hero * {
    animation: none !important;
    transition: none !important;
  }
}

/* Editorial header and copy span the archive grid; post cards follow below. */
body.lrr-layout-archive.lrr-dental-category-page .site-main > :is(.lrr-dental-category-hero, .dr-dental-category-content, .dr-dental-category-after-archive) { grid-column: 1 / -1; min-width: 0; }
