/* Homepage cover palette; isolated from inner-page banners. */
.hero.hero-cover-theme {
  background: radial-gradient(ellipse at 75% 35%, #42667b 0%, #304f65 48%, #243f56 100%);
}
.hero.hero-cover-theme::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url("../images/hero-cover-globe.svg") center right / auto 135% no-repeat;
  opacity: .66;
}
.hero-cover-theme .hero-lead { color: #e1e8ec; }
.hero-cover-theme .eyebrow { color: #e3c587; }
.hero-cover-theme .hero-line { background: #cfb375; }
@media (max-width: 760px) {
  .hero.hero-cover-theme::before {
    background-position: 65% top;
    background-size: auto 75%;
    opacity: .42;
  }
}

/* The featured event shares the homepage cover theme. */
.home-event-card.home-event-cover-theme {
  position: relative;
  isolation: isolate;
  background: linear-gradient(105deg, #304f65 0%, #304f65 35%, #42667b 100%);
}
.home-event-cover-theme::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../images/hero-cover-globe.svg") center right / auto 160% no-repeat;
  opacity: .66;
}
.home-event-cover-theme.home-event-card figure::after {
  background: linear-gradient(270deg, #304f65 0%, transparent 34%);
}
.home-event-cover-theme .home-event-brand { color: #e3c587; }
.home-event-cover-theme.home-event-card .home-event-copy > p:not(.home-event-brand):not(.home-event-date) { color: #e1e8ec; }
@media (max-width: 650px) {
  .home-event-cover-theme::before { opacity: .42; }
  .home-event-cover-theme.home-event-card figure::after {
    background: linear-gradient(270deg, #304f65 0%, transparent 46%);
  }
}

/* Reading guide banner, using the approved cover palette. */
.rg-hero.reading-cover-theme {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 75% 35%, #42667b 0%, #304f65 48%, #243f56 100%);
  border-bottom-color: #cfb375;
}
.reading-cover-theme::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../images/hero-cover-globe.svg") center right / auto 170% no-repeat;
  opacity: .66;
}
.reading-cover-theme .rg-eyebrow { color: #e3c587; }
.reading-cover-theme h1 em { color: #e3c587; }
.rg-hero.reading-cover-theme p { color: #e1e8ec; }
.reading-cover-theme .rg-stats { color: #e1e8ec; }
@media (max-width: 760px) {
  .reading-cover-theme::before { opacity: .42; }
}

/* Equal-height library banners, including the reading guide reference. */
.cover-banner.cover-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  height: 178px;
  min-height: 178px;
  padding: 24px 0 20px;
  border-bottom: 4px solid #cfb375;
  color: #fff;
  background: radial-gradient(ellipse at 75% 35%, #42667b 0%, #304f65 48%, #243f56 100%);
  display: flex;
  align-items: center;
}
.cover-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../images/hero-cover-globe.svg") center right / auto 170% no-repeat;
  opacity: .66;
}
.cover-banner > .shell { flex-shrink: 0; }
.cover-banner .rg-eyebrow, .cover-banner .eyebrow {
  margin: 0 0 10px;
  color: #e3c587;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .17em;
}
.cover-banner h1 {
  font: normal 34px/1.2 var(--serif);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.cover-banner .archive-page-copy > p:last-child {
  white-space: normal;
  font-style: normal;
}
.cover-banner p, .cover-banner .archive-page-copy > p:last-child {
  margin: 0;
  color: #e1e8ec;
  font-size: 13px;
  line-height: 1.6;
}
.cover-banner .rg-stats { color: #e1e8ec; }
@media (max-width: 900px) {
  .cover-banner.cover-banner { height: 296px; min-height: 296px; }
}
@media (max-width: 620px) {
  .cover-banner.cover-banner { height: 246px; min-height: 246px; padding: 20px 0 18px; }
  .cover-banner h1 { font-size: 27px; }
  .cover-banner p, .cover-banner .archive-page-copy > p:last-child { font-size: 12px; }
  .cover-banner::before { opacity: .42; }
}

/* Academy pages share the cover colors; the international guide retains its two-column hero. */
.academy-cover-palette {
  isolation: isolate;
  background: radial-gradient(ellipse at 75% 35%, #42667b 0%, #304f65 48%, #243f56 100%);
  border-bottom: 4px solid #cfb375;
}
.academy-cover-palette::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/hero-cover-globe.svg") center right / auto 135% no-repeat;
  opacity: .66;
}
.academy-cover-palette .eyebrow, .cover-banner .academy-hero-kicker,
.cover-banner .bankasi-hero-kicker { color: #e3c587; }
.academy-cover-palette .ioc-hero-lead { color: #e1e8ec; }
.cover-banner .do-hero-sub { font-style: normal; }
@media (min-width: 901px) {
  .banner-single-lead .academy-hero-row,
  .banner-single-lead .kd-hero-in { position: relative; display: block; }
  .banner-single-lead .academy-hero-copy,
  .banner-single-lead .kd-hero-in > div { width: 100%; }
  .banner-single-lead .do-hero-sub,
  .banner-single-lead.kd-hero p { max-width: none; white-space: nowrap; font-size: clamp(11px, .9vw, 13px); }
  .banner-single-lead .kd-info-btn { position: absolute; right: 0; top: 0; }
  .banner-single-lead .ask-hero-actions { position: absolute; right: 0; bottom: -36px; }
}
@media (max-width: 900px) {
  .banner-single-lead .do-hero-sub,
  .banner-single-lead.kd-hero p { max-width: none; white-space: normal; }
  .academy-cover-palette::before { opacity: .42; }
}
@media (max-width: 620px) {
  .mobile-compact-hero .banner-single-lead.do-hero .do-hero-sub {
    display: block;
    white-space: normal;
    max-width: none;
  }
}
/* Keep the ambassador banner controls together at the right edge. */
#ask-content .banner-single-lead .academy-hero-row { position: relative; display: block; }
#ask-content .banner-single-lead .academy-hero-copy { width: 100%; }
#ask-content .banner-single-lead .ask-hero-actions {
  position: absolute;
  right: 0;
  top: 0;
  bottom: auto;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
}
#ask-content .ask-hero-actions .ask-head-tools { width: auto; flex: 0 0 auto; }
#ask-content .ask-hero-actions .ask-viewbar { gap: 10px; align-items: center; }
#ask-content .ask-hero-actions .ask-how-toggle { height: 40px; border-radius: 6px; }
@media (max-width: 1100px) {
  #ask-content .banner-single-lead .ask-hero-actions {
    position: static;
    margin-top: 16px;
  }
  #ask-content .banner-single-lead .do-hero-sub { max-width: none; }
}
@media (max-width: 620px) {
  #ask-content .mobile-compact-hero .ask-head-tools,
  .mobile-compact-hero #ask-content .ask-hero-actions .ask-head-tools { display: block; }
  #ask-content .ask-hero-actions .ask-viewbar { flex-direction: row; }
  #ask-content .ask-hero-actions .ask-perrow { display: none; }
  #ask-content .banner-single-lead .ask-hero-actions { gap: 8px; margin-top: 14px; }
}
#ask-content .ask-hero-actions .ask-perrow[style*="visibility: hidden"] { display: none; }

/* About pages follow the same banner typography and readable full-width lead. */
.about-cover-banner.cover-banner h1 { max-width: none; }
.about-cover-banner.cover-banner p:not(.eyebrow) {
  max-width: none;
  margin: 0;
  color: #e1e8ec;
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}
@media (max-width: 620px) {
  .about-cover-banner.cover-banner p:not(.eyebrow) { font-size: 12px; }
  .membership-hero.cover-banner h1 { font-size: 25px; }
}
