/* Article-detail proportions for the five editorial landing pages. */
@media screen {
  body.shared-header-site main .editorial-hero.editorial-hero {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 650px;
    height: auto;
    padding: 55px 0;
    overflow: hidden;
    color: #fff;
    background-color: #263c31;
  }
  body.shared-header-site main .editorial-hero.editorial-hero .editorial-hero-content {
    position: relative;
    z-index: 2;
    width: min(90%, 1560px);
    max-width: 1560px;
    margin: 0 auto;
    padding: 0;
    flex: 0 0 auto;
    transform: none;
  }
  body.shared-header-site main .editorial-hero h1 {
    font-size: 80px;
    line-height: 1.08;
    font-weight: 760;
    letter-spacing: normal;
    max-width: 1100px;
    margin: 26px 0 36px;
    overflow-wrap: break-word;
    text-shadow: 0 2px 30px #0004;
    color: #fff !important;
  }
  body.shared-header-site main .editorial-hero :is(.eyebrow, .p22-eyebrow, .am-kicker) {
    font-size: 11px;
    line-height: 1.6;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
    opacity: 1;
  }
  body.shared-header-site main .editorial-hero :is(.p22-hero-description, .cv-hero-inner > p:not(.eyebrow), .author-copy, .am-hero-lead, .cases-copy, .editorial-hero-description) {
    max-width: 780px;
    font-size: clamp(16px, 1.4vw, 21px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: normal;
    margin: 0 0 30px;
    color: #fff !important;
    opacity: 1;
  }
  body.shared-header-site main .editorial-hero :is(.portfolio-bg, .cv-bg, .author-background) {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  body.shared-header-site main .editorial-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,rgba(8,15,11,.05),rgba(8,15,11,.4) 25%,rgba(8,15,11,.9));
  }
  body.shared-header-site main .editorial-hero :is(.portfolio-shade, .cv-shade, .author-shade, .am-background-layer--hero span) { opacity: 0; }
  body.shared-header-site main .editorial-hero .p22-brands {
    position: relative;
    z-index: 2;
    width: min(90%, 1560px);
    margin: 24px auto 0;
    padding-top: 12px;
  }
  /* A full-bleed photo keeps the About title on the same text measure. */
  body.shared-header-site main .editorial-hero.editorial-hero .am-hero-grid { display: block; position: static; z-index: auto; translate: none !important; will-change: auto; }
  body.shared-header-site main .editorial-hero .am-hero-copy { position: relative; z-index: 2; max-width: 1100px; }
  body.shared-header-site main .editorial-hero .am-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
  }
  body.shared-header-site main .editorial-hero .am-hero-visual > img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
    border-radius: 0; box-shadow: none;
  }
  body.shared-header-site main .editorial-hero:has(.am-background-layer--hero) .am-hero-visual { display: none; }
  body.shared-header-site main .editorial-hero .author-hero-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 48px;
  }
  body.shared-header-site main .editorial-hero .author-hero-grid h2 { color: #fff; }
}
@media screen and (min-width: 761px) and (max-width: 1199px) {
  body.shared-header-site main .editorial-hero h1 { font-size: 64px; }
}
@media screen and (max-width: 760px) {
  body.shared-header-site main .editorial-hero.editorial-hero {
    min-height: 580px;
    justify-content: flex-end;
    padding: 120px 0 35px;
  }
  body.shared-header-site main .editorial-hero.editorial-hero .editorial-hero-content,
  body.shared-header-site main .editorial-hero .p22-brands { width: calc(100% - 40px); }
  body.shared-header-site main .editorial-hero h1 { font-size: 36px; }
  body.shared-header-site main .editorial-hero :is(.eyebrow, .p22-eyebrow, .am-kicker) {
    font-size: 10px; line-height: 1.8; letter-spacing: .1em;
  }
  body.shared-header-site main .editorial-hero .author-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  body.shared-header-site main .editorial-hero .author-portrait { grid-row: auto; text-align: left; }
  body.shared-header-site main .editorial-hero .author-portrait > img { width: 100px; height: 100px; }
  body.shared-header-site main .editorial-hero .author-social-icons { justify-content: flex-start; }
}

/* The same dimensions apply when Hero Studio replaces a page's native hero. */
@media screen {
  body.editorial-heroes main > .hs-slider { --hs-height: 650px !important; }
  body.editorial-heroes main > .hs-slider .hs-content { padding-block: 55px; }
  body.editorial-heroes main > .hs-slider .hs-title {
    font-size: 80px; line-height: 1.08; font-weight: 760; letter-spacing: normal;
    margin: 26px 0 36px; max-width: 1100px; overflow-wrap: break-word;
  }
  body.editorial-heroes main > .hs-slider .hs-eyebrow {
    font-size: 11px; line-height: 1.6; letter-spacing: .15em; margin: 0;
  }
}
@media screen and (min-width: 761px) and (max-width: 1199px) {
  body.editorial-heroes main > .hs-slider .hs-title { font-size: 64px; }
}
@media screen and (max-width: 760px) {
  body.editorial-heroes main > .hs-slider { --hs-height: 580px !important; }
  body.editorial-heroes main > .hs-slider .hs-slide { align-items: flex-end; }
  body.editorial-heroes main > .hs-slider .hs-content { width: calc(100% - 40px); margin-block: 0; padding-block: 120px 65px; }
  body.editorial-heroes main > .hs-slider .hs-title { font-size: 36px; }
  body.editorial-heroes main > .hs-slider .hs-eyebrow { font-size: 10px; line-height: 1.8; letter-spacing: .1em; }
}

/* Lower the portfolio introduction while keeping logos at the bottom. */
@media screen {
  body.portfolio-restored main .editorial-hero.editorial-hero {
    display: flex;
    justify-content: flex-start;
    padding: 165px 0 24px;
    gap: 32px;
  }
  body.portfolio-restored main .editorial-hero.editorial-hero .p22-hero-description {
    margin-bottom: 0;
  }
  body.portfolio-restored main .editorial-hero.editorial-hero .p22-brands {
    flex: 0 0 auto;
    margin: auto auto 0;
    padding: 0;
  }
}
@media screen and (max-width: 760px) {
  body.portfolio-restored main .editorial-hero.editorial-hero {
    padding: 120px 0 20px;
    gap: 28px;
  }
}

/* A portfolio hero without a selected image uses a solid black backdrop. */
@media screen {
  body.portfolio-restored main .editorial-hero.editorial-hero {
    background-color: #000;
  }
  body.portfolio-restored main .editorial-hero.editorial-hero:not(:has(.portfolio-bg))::after {
    background: none;
  }
}

/* Keep public-page eyebrows aligned with the shared blue accent. */
@media screen {
  body.shared-header-site main :is(.eyebrow, .p22-eyebrow, .am-kicker, .news-eyebrow, .journal-kicker, .kicker, .ls-faq59-eyebrow, .p2-modal-eyebrow),
  body.shared-header-site main .hs-slider .hs-slide .hs-eyebrow {
    color: var(--home-accent, #4da3ed) !important;
  }

  body.shared-header-site main #hjem.hs-slider .hs-eyebrow {
    color: #a4b7c8 !important;
  }
}
