/* Accepted shared article hero; scoped to the 15 editorial pages. */
body.article-hero-page #main > .blog-container {
  padding-top: 0;
}
body.article-hero-page #main .blog-container .article-background-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-left: 0;
  margin-bottom: 56px;
  padding: 100px max(4.2vw, calc((100vw - 1312px) / 2)) 42px;
  min-height: max(480px, 55svh);
  border: 0;
  background: #f8f7f3;
}
body.article-hero-page #main .blog-container .article-background-hero > figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -2;
}
body.article-hero-page #main .blog-container .article-background-hero > figure img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: var(--article-image-desktop, 50% 46%);
}
body.article-hero-page #main .blog-container .article-background-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #f8f7f3 0px, rgba(248,247,243,.98) 68px, transparent 170px), linear-gradient(90deg,#f8f7f3 0%,rgba(248,247,243,.96) 24%,rgba(248,247,243,.88) 43%,rgba(248,247,243,.2) 70%,transparent 100%);
}
body.article-hero-page #main .blog-container .article-background-hero .blog-breadcrumb {
  padding: 0;
  margin: 0 0 24px;
  flex-wrap: wrap;
  gap: 6px 13px;
  max-width: 760px;
}
body.article-hero-page #main .blog-container .article-background-hero h1 {
  max-width: 760px;
  font-size: 52px;
  line-height: 1.14;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: balance;
}
body.article-hero-page #main .blog-container .article-background-hero > .article-hero-lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: #4a5149;
}
@media (min-width: 601px) and (max-width: 1150px) {
  body.article-hero-page #main .blog-container .article-background-hero {
    min-height: 450px;
    padding-top: 36px;
    padding-bottom: 40px;
  }
  body.article-hero-page #main .blog-container .article-background-hero h1 {
    max-width: 680px;
    font-size: 46px;
  }
}

body.article-hero-page #main > .article-hero-shell {max-width:none;padding:0;}
body.article-hero-page #main .article-hero-copy {width:100%;min-width:0;}
body.article-hero-page #main .article-toc-disclosure > summary {font-size:17px;font-weight:600;line-height:1.4;list-style:none;margin-bottom:20px;}
body.article-hero-page #main .article-toc-disclosure > summary::-webkit-details-marker {display:none;}
body.article-hero-page #main .article-toc-disclosure .contents {position:static;}
@media(min-width:901px){
 body.article-hero-page #main .article-toc-disclosure {position:sticky;top:110px;}
}

@media(max-width:900px){
 body.article-hero-page #main .blog-container .article-layout {display:block;}
 body.article-hero-page #main .article-toc-disclosure {border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:16px;}
 body.article-hero-page #main .article-toc-disclosure > summary {cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:44px;margin-bottom:0;}
 body.article-hero-page #main .article-toc-disclosure > summary::after {content:'+';font-size:24px;font-weight:400;}
 body.article-hero-page #main .article-toc-disclosure[open] > summary::after {content:'−';}
 body.article-hero-page #main .article-toc-disclosure .contents {margin:12px 0 0;}
}
@media(max-width:600px){
 body.article-hero-page #main .blog-container .article-background-hero {
  min-height:0;margin:0 0 24px;padding:24px 22px 30px;
 }
 body.article-hero-page #main .blog-container .article-background-hero::after {
  background:linear-gradient(90deg,rgba(248,247,243,.98),rgba(248,247,243,.87) 65%,rgba(248,247,243,.62)),linear-gradient(0deg,rgba(248,247,243,.9),transparent 60%);
 }
 body.article-hero-page #main .blog-container .article-background-hero > figure img {object-position:var(--article-image-mobile,65% 50%);}
 body.article-hero-page #main .blog-container .article-background-hero .blog-breadcrumb {font-size:11px;gap:4px 9px;margin-bottom:22px;}
 body.article-hero-page #main .blog-container .article-background-hero > .article-hero-lead {margin-top:22px;font-size:16px;line-height:1.6;}
}

/* Article titles, sections and subsections share one mobile reading scale. */
@media (max-width: 767px) {
  body.article-hero-page #main .blog-container .article-background-hero h1 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.1;
  }
  body.aj-transfer-blog.article-hero-page #main .blog-container h2,
  body.aj-transfer-blog.article-hero-page #main .blog-container .related .section-head h2 {
    font-size: clamp(24px, 6.4vw, 28px);
    line-height: 1.18;
  }
  body.aj-transfer-blog.article-hero-page #main .blog-container h3 {
    font-size: clamp(20px, 5.4vw, 23px);
    line-height: 1.25;
  }
}

/* Compact phones: keep the complete title/lead and bring article text into view. */
@media(max-width:600px) and (max-height:700px){
 body.article-hero-page #main .blog-container .article-background-hero {padding:12px 16px 14px;margin-bottom:12px;}
 body.article-hero-page #main .blog-container .article-background-hero .blog-breadcrumb {margin-bottom:10px;line-height:1.4;}
 body.article-hero-page #main .blog-container .article-background-hero .blog-breadcrumb > span:not(:first-of-type) {display:none;}
 body.article-hero-page #main .blog-container .article-background-hero h1 {font-size:30px;line-height:1.1;text-wrap:normal;}
 body.article-hero-page #main .blog-container .article-background-hero > .article-hero-lead {margin-top:10px;font-size:15px;line-height:1.4;}
 body.article-hero-page #main .article-toc-disclosure {padding-bottom:4px;margin-bottom:12px;}
}
