/* ============================================================
   UH section pages: the investigative series page today, and any
   future channel page built from the same parts.
   ============================================================ */

/* Shared components read --uh-section-gap; every section page must set it. */
.uh-section-page {
  --uh-section-gap: clamp(32px, 4vw, 72px);
}

.uh-section-page > * + * {
  margin-top: var(--uh-section-gap);
}

.uh-section-page > :last-child {
  margin-bottom: var(--uh-section-gap);
}

/* ---- Section page header ---------------------------------- */

.uh-page-header {
  /* Also drives the arrow's offset onto the title's first line. */
  --uh-page-title-size: clamp(38px, 5vw, 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: clamp(28px, 3.5vw, 64px) 42px;
}

.uh-page-header-lead {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(12px, 1.4vw, 24px);
  padding-right: clamp(16px, 2vw, 32px);
  min-width: 0;
}

.uh-page-header-arrow {
  position: relative;
  flex: 0 0 auto;
  width: clamp(70px, 10vw, 150px);
  height: 2px;
  margin-top: calc(var(--uh-page-title-size) * 0.45);
  background-color: var(--text-color);
}

.uh-page-header-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: clamp(10px, 1vw, 16px);
  height: clamp(10px, 1vw, 16px);
  border-top: 2px solid var(--text-color);
  border-right: 2px solid var(--text-color);
  transform: translateY(-50%) rotate(45deg);
}

/* min-content shrinks the box to the longest word so the arrow meets the text. */
.uh-page-header-title {
  font: var(--t-display-2xl);
  text-transform: uppercase;
  width: min-content;
  text-align: right;
  margin: 0;
}

.uh-page-header-description {
  font: var(--t-dek-lg);
  align-self: stretch;
  display: flex;
  align-items: center;
  border-left: 2px solid var(--text-color);
  padding-left: clamp(16px, 2vw, 32px);
  margin: 0;
}

.uh-page-header-description > span {
  display: block;
  max-width: 52ch;
}

@media (max-width: 991px) {
  .uh-page-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 20px;
  }

  .uh-page-header-lead {
    justify-content: flex-start;
    padding-right: 0;
  }

  .uh-page-header-arrow {
    display: none;
  }

  .uh-page-header-title {
    text-align: left;
  }

  .uh-page-header-description {
    border-left: 0;
    padding-left: 0;
  }
}

/* ---- Page hero -------------------------------------------- */

.uh-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: start;
  padding: 0 42px;
}

.uh-page-hero-image {
  display: block;
}

.uh-page-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.uh-page-hero-body {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 18px);
  min-width: 0;
}

.uh-page-hero-kickers {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

/* Sized down to sit level with the New kicker. */
.uh-page-hero-kickers .uh-post-part {
  font: var(--t-label);
}

.uh-page-hero-label {
  font: var(--t-label);
  text-transform: uppercase;
  letter-spacing: var(--t-track-label-wide);
  color: var(--text-color);
}

.uh-page-hero-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 2vw, 40px);
  align-items: end;
}

.uh-page-hero-title {
  font: var(--t-display-xl);
  text-transform: uppercase;
  margin: 0;
}

.uh-page-hero-title a {
  color: var(--text-color);
}

.uh-page-hero-date {
  font: var(--t-meta-lg);
  padding-bottom: 0.15em;
  opacity: var(--t-emph-soft);
}

.uh-page-hero-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 2vw, 40px);
  align-items: start;
  border-top: 1px solid var(--text-color);
  padding-top: clamp(12px, 1.2vw, 22px);
}

.uh-page-hero-excerpt {
  font: var(--t-dek-feature);
  opacity: var(--t-emph);
  max-width: 68ch;
  margin: 0;
}

.uh-page-hero-excerpt:empty {
  display: none;
}

.uh-page-hero-writers {
  font: var(--t-meta-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

.uh-page-hero-writers a {
  color: var(--text-color);
  font-weight: 600;
}

.uh-page-hero-writers-label {
  display: none;
}

@media (max-width: 991px) {
  .uh-page-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 20px;
  }

  .uh-page-hero-image {
    margin-left: -20px;
    margin-right: -20px;
  }

  .uh-page-hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .uh-page-hero-headline,
  .uh-page-hero-footer {
    display: contents;
  }

  .uh-page-hero-kickers {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .uh-page-hero-title {
    grid-column: 1 / -1;
    grid-row: 2;
  }


  .uh-page-hero-excerpt {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .uh-page-hero-date {
    grid-column: 1;
    grid-row: 4;
    align-self: baseline;
    padding-bottom: 0;
  }

  .uh-page-hero-writers-group {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
    align-self: baseline;
  }
}

/* ---- 3. Investigation sections ---------------------------- */

/* uh-investigation.css owns how a section looks; only page-specific rules here. */

.series-page .uh-series-kicker-series {
  display: none;
}
