.text-overview {
  zoom: 1;
  padding: 0 clamp(.75rem, 1.5vw, 1.5rem) 3rem;
  color: #2d2924;
  font-family: "Atkinson Hyperlegible", sans-serif;
}

/* Keep the landing page at normal browser scale; analysis views use a larger shell scale. */
.desktop-content-shell > main:has(.text-overview) {
  zoom: 1;
}

.text-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 2.5vw, 3rem);
  align-items: start;
}

.text-overview-copy {
  min-width: 0;
  padding-top: 0;
}

.text-overview-title {
  max-width: 44rem;
  color: #2d2924;
  font-size: clamp(2.5rem, 3vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .92;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.text-overview-author {
  margin-top: 1rem;
  color: rgb(45 41 36 / 62%);
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.2;
}

.text-overview-blurb {
  max-width: 44rem;
  margin-top: clamp(2rem, 4vw, 4rem);
  color: #2d2924;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.35;
}

.text-overview-visual {
  min-width: 0;
  width: auto;
  max-width: 34rem;
  margin: 0;
  justify-self: start;
  overflow: hidden;
}

.text-overview-image-frame {
  position: relative;
  display: flex;
  width: 100%;
  height: min(72vh, 36rem);
  min-height: 0;
  max-height: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

@media (max-width: 767px) {
  .text-overview-image-frame {
    aspect-ratio: 1 / 1;
  }
}

.text-overview-generated-image {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.text-overview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: url("/static/images/soft-edge-mask.png");
  mask-image: url("/static/images/soft-edge-mask.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.text-overview-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  background: #fbf8f4;
}

.text-overview-navigation {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid rgb(45 41 36 / 18%);
}

.text-overview-navigation-section {
  position: relative;
  border-bottom: 1px solid rgb(45 41 36 / 18%);
  padding: .95rem .1rem 1.25rem;
}

.text-overview-navigation-heading {
  min-height: 2.5rem;
}

.text-overview-navigation-heading h2 {
  margin: 0;
  color: rgb(45 41 36 / 78%);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 2.5rem;
  text-transform: uppercase;
}

.text-overview-navigation .secondary-panel-group-title {
  margin-bottom: .3rem;
  color: rgb(45 41 36 / 58%);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .16em;
}

.text-overview-navigation-content {
  padding-top: .15rem;
}

@media (min-width: 768px) {
  #main-panel:has(.text-overview) {
    padding-top: 0;
  }

  .text-overview-hero {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, min(34rem, 34vw));
  }

  .text-overview-visual {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 767px) {
  .text-overview {
    padding-top: 0;
  }

  .text-overview-visual {
    grid-row: 1;
  }

  .text-overview-copy {
    grid-row: 2;
    padding-top: 0;
  }

  .text-overview-blurb {
    margin-top: 2rem;
  }
}
