/* R3.8 editorial-screening layer: short orientation cues around approved product records. */

.r4-home .r38-product-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.r4-home .r38-term-strip {
  padding: 28px 0;
  border-top: 1px solid rgba(185, 212, 222, 0.22);
  background: #102438;
}

.r4-home .r38-product-key div {
  min-width: 0;
}

.r4-home .r38-product-key dt {
  color: #89c4d6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.r4-home .r38-product-key dd {
  margin: 5px 0 0;
  color: #d6e0e6;
  font-size: 13px;
  line-height: 1.45;
}

.r4-home .r38-full-question-note {
  margin-top: 8px;
  color: var(--r4-muted);
  font-size: 13px !important;
  line-height: 1.45;
}

.r4-home .v3-brief-note {
  max-width: none;
}

.r4-home .v3-brief-note abbr {
  text-decoration: none;
}

/* Share a bottom edge above the two-line notes on the desktop hero. */
@media (min-width: 981px) {
  .r4-home .r4-hero-grid {
    --r39-note-size: 14px;
    --r39-note-leading: 1.45;
    --r39-note-gap: 8px;
  }

  .r4-home .r4-hero-copy,
  .r4-home .r4-folio-stage {
    align-self: end;
  }

  .r4-home .r4-folio-stage {
    margin-bottom: calc(var(--r39-note-gap) + 2 * var(--r39-note-size) * var(--r39-note-leading));
  }

  .r4-home .v3-home-note {
    margin-top: var(--r39-note-gap);
    font-size: var(--r39-note-size);
    line-height: var(--r39-note-leading);
  }
}

.cri-n4.cri-web-r3 .r38-at-glance {
  padding-block: 40px;
}

.cri-n4.cri-web-r3 .r38-at-glance .cards {
  margin-top: 0;
}

.cri-n4.cri-web-r3 .r38-at-glance .card h3 {
  margin-bottom: 8px;
}

/* The Brief is a direct entry point from the homepage, with no sticky header. */
.cri-n4.cri-web-r3 #the-brief {
  padding-block-start: 28px;
  scroll-margin-top: 0;
}

.cri-n4.cri-web-r3 #the-brief .section-head {
  margin-bottom: 28px;
}

.cri-n4.cri-web-r3 .r38-editorial-access {
  margin: 12px 0 0;
  color: var(--v3-muted);
  font-size: 16px;
  line-height: 1.5;
}

.cri-n4.cri-web-r3 .r38-editorial-access a {
  color: var(--v3-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cri-n4.cri-web-r3 .r38-reading-guide .section-head {
  max-width: 880px;
}

.cri-n4.cri-web-r3 .r38-record-boundary {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--v3-teal);
  background: #eef7f7;
  color: var(--v3-ink);
  font-size: 17px;
  line-height: 1.6;
}

.cri-n4.cri-web-r3 .r38-reading-guide .card {
  display: flex;
  flex-direction: column;
}

.cri-n4.cri-web-r3 .r38-reading-guide .card .text-link,
.cri-n4.cri-web-r3 .r38-reading-guide .card .r38-copy-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
}

.cri-n4.cri-web-r3 .r38-copy-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--v3-teal);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cri-n4.cri-web-r3 .r38-copy-link:focus-visible {
  outline: 3px solid #d49b43;
  outline-offset: 3px;
}

.cri-n4.cri-web-r3 .r38-copy-status {
  display: block;
  min-height: 1.5em;
  margin-top: 8px;
  color: var(--v3-muted);
  font-size: 14px;
}

@media (min-width: 981px) and (max-height: 700px) {
  .r4-home .v3-home-step-label {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .r4-home .r4-hero-grid {
    --r39-note-size: 13px;
    --r39-note-leading: 1.35;
    --r39-note-gap: 6px;
  }

  .r4-home .r4-folio-stage {
    height: min(504px, calc(100svh - 152px));
  }

  .r4-home .r4-folio-sheet {
    width: min(318px, calc((100svh - 252px) * .70665));
  }
}

@media (max-width: 760px) {
  .r4-home .r4-evidence-anchor {
    right: 0;
    max-width: 100%;
    line-height: 1.4;
  }

  .r4-home .r4-evidence-anchor::before {
    flex: none;
  }

  .r4-home .r38-product-key {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .r4-home .r38-term-strip {
    padding-block: 24px;
  }

  .r4-home .r38-product-key div {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .r4-home .r38-product-key dd {
    margin-top: 0;
  }

  .r4-home .v3-home-journey {
    gap: 20px;
  }

  .r4-home .v3-home-step-label {
    margin-bottom: 6px;
  }

  .r4-home .v3-home-note {
    margin-top: 6px;
  }

  .cri-n4.cri-web-r3 .r38-at-glance {
    padding-block: 28px;
  }
}
