/* Reusable layout and presentation for staff-editable evergreen pages. */
body.sc-public-page .sc-public-document:has(.sc-structured-page__layout) {
  padding-top: clamp(1.25rem, 2vw, 2rem);
}

body.sc-public-page .sc-structured-page__layout {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: start;
}

body.sc-public-page .sc-structured-page__layout > .sc-page-toc {
  margin: 0;
}

body.sc-public-page .sc-structured-page__content {
  min-width: 0;
}

/* Editor-controlled accents are intentionally limited to the site palette.
 * They are offered through the Basic HTML “Style” menu, so staff do not need
 * to write inline CSS or use the unrestricted Full HTML format. */
body.sc-public-page .sc-text-accent--gold {
  color: var(--sc-brand-yellow, #fbbb0f);
}

body.sc-public-page .sc-text-accent--teal {
  color: var(--sc-peak-green-bright, #2fd6a5);
}

body.sc-public-page .sc-text-accent--blue {
  color: #74aae3;
}

body.sc-public-page .sc-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  margin: 0 0 var(--sc-band-lg);
}

body.sc-public-page .sc-editorial-hero__copy {
  min-width: 0;
  max-width: 100%;
}

/* Some editorial heroes deliberately use the page's fixed action rail as
 * their visual. Do not reserve a second, empty image column for those pages. */
body.sc-public-page .sc-editorial-hero--no-media {
  grid-template-columns: minmax(0, 1fr);
}

body.sc-public-page .sc-editorial-hero--no-media h2 {
  max-width: 20ch;
  font-size: clamp(2.15rem, 4vw, 4.25rem);
}

body.sc-public-page .sc-editorial-hero--no-media .sc-page-lede {
  width: min(100%, 58rem);
  max-width: 58rem;
}

body.sc-public-page .sc-editorial-hero__index,
body.sc-public-page .sc-page-callout__label {
  margin: 0 0 1rem;
  color: var(--sc-peak-green-bright, #2fd6a5);
  font-family: var(--sc-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.sc-public-page .sc-editorial-hero h2 {
  max-width: 11ch;
  margin: 0 0 1.35rem;
  color: #ffffff;
  font-family: var(--sc-font-sans);
  font-size: clamp(2.3rem, 5vw, 5.25rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

body.sc-public-page .sc-editorial-hero__copy .sc-page-lede {
  width: min(100%, 37rem);
  max-width: 37rem;
  margin: 0 0 1.65rem;
  color: #d6e0e9;
  font-size: clamp(1.1rem, 1.65vw, 1.34rem);
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
}

body.sc-public-page .sc-editorial-hero__link {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  color: #ffffff !important;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

body.sc-public-page .sc-editorial-hero__link a {
  color: inherit;
  text-decoration: none;
}

body.sc-public-page .sc-editorial-hero__link span {
  color: var(--sc-brand-yellow, #fbbb0f);
  font-size: 1.45em;
  line-height: 0;
  transition: transform 0.18s ease;
}

body.sc-public-page .sc-editorial-hero__link:hover span,
body.sc-public-page .sc-editorial-hero__link:focus-visible span {
  transform: translateX(0.25rem);
}

body.sc-public-page .sc-structured-page .sc-page-next-steps__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.35rem;
  border: 1px solid var(--sc-brand-yellow, #fbbb0f);
  border-radius: var(--sc-radius-md);
  color: var(--sc-brand-yellow, #fbbb0f);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

body.sc-public-page .sc-structured-page .sc-page-next-steps__links a:first-child,
body.sc-public-page .sc-structured-page .sc-page-next-steps__links a:hover,
body.sc-public-page .sc-structured-page .sc-page-next-steps__links a:focus-visible {
  border-color: transparent;
  background: var(--sc-brand-gradient);
  color: var(--sc-bg-deep, #0d0d19);
}

body.sc-public-page .sc-editorial-hero__visual {
  position: relative;
  min-height: min(60vw, 28rem);
  padding: clamp(1.2rem, 3vw, 2.5rem) 0 0 clamp(1.2rem, 3vw, 2.5rem);
}

body.sc-public-page .sc-editorial-hero__visual::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 clamp(1.2rem, 3vw, 2.5rem) clamp(1.2rem, 3vw, 2.5rem);
  content: "";
  border-radius: 1rem;
  background:
    radial-gradient(circle at 86% 78%, rgba(82, 218, 242, 0.36) 0 0.12rem, transparent 0.16rem) 0 0 / 0.8rem 0.8rem,
    linear-gradient(145deg, #075aac, #002b6c 72%, #072250);
}

body.sc-public-page .sc-editorial-hero__figure {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: inherit;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.65rem;
  background: #061323;
  box-shadow: 0 2rem 4rem -2.5rem rgba(0, 0, 0, 0.9);
}

body.sc-public-page .sc-editorial-hero__figure::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 62%, rgba(2, 9, 24, 0.32));
  pointer-events: none;
}

body.sc-public-page .sc-editorial-hero__figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.04);
}

body.sc-public-page .sc-editorial-hero__season {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: clamp(3.8rem, 8vw, 5.7rem);
  height: clamp(3.8rem, 8vw, 5.7rem);
  padding: 0.3rem;
  border: 1px solid rgba(251, 187, 15, 0.66);
  border-radius: 50%;
  background: #08111f;
  box-shadow: 0 0 0 0.45rem #08111f;
}

body.sc-public-page .sc-editorial-hero__season img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  border-radius: 50%;
}

@media (min-width: 1024px) {
  body.sc-public-page .sc-structured-page__layout {
    grid-template-columns: minmax(10.5rem, 13rem) minmax(0, 1fr);
  }

  body.sc-public-page .sc-structured-page__layout > .sc-page-toc {
    position: sticky;
    top: 6rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--sc-editorial-rule-strong, rgba(255, 255, 255, 0.14));
  }

  body.sc-public-page .sc-structured-page__layout > .sc-page-toc::before {
    display: block;
    margin-bottom: 1rem;
    content: "On this page";
    color: var(--sc-peak-green-bright, #2fd6a5);
    font-family: var(--sc-font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  body.sc-public-page .sc-structured-page__layout > .sc-page-toc .sc-page-toc__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  body.sc-public-page .sc-structured-page__layout > .sc-page-toc .sc-page-toc__list a {
    justify-content: flex-start;
    min-height: 0;
    padding: 0.7rem 0.35rem 0.7rem 0.9rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: transparent;
    color: var(--sc-editorial-muted, #b8c4d1) !important;
    white-space: normal;
    transform: none;
  }

  body.sc-public-page .sc-structured-page__layout > .sc-page-toc .sc-page-toc__list a:hover,
  body.sc-public-page .sc-structured-page__layout > .sc-page-toc .sc-page-toc__list a:focus-visible {
    border-left-color: var(--sc-peak-green-bright, #2fd6a5);
    background: rgba(47, 214, 165, 0.06);
    color: #ffffff !important;
    transform: none;
  }

  body.sc-public-page .sc-editorial-hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(19rem, 1.12fr);
  }

  /* A no-media hero uses the invitation action rail as its visual, so the
   * regular desktop image column must not be reserved here. */
  body.sc-public-page .sc-editorial-hero--no-media {
    grid-template-columns: minmax(0, 1fr);
  }

  body.sc-public-page .sc-editorial-hero__visual {
    min-height: clamp(22rem, 32vw, 31rem);
  }
}

@media (max-width: 1023px) {
  body.sc-public-page .sc-structured-page__layout > .sc-page-toc {
    margin-bottom: 0.25rem;
  }

  body.sc-public-page .sc-structured-page__layout > .sc-page-toc .sc-page-toc__list {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body.sc-public-page .sc-editorial-hero h2 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 12vw, 3.75rem);
  }

  body.sc-public-page .sc-editorial-hero__visual {
    min-height: 15rem;
  }

  body.sc-public-page .sc-editorial-hero__season {
    box-shadow: 0 0 0 0.3rem #08111f;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sc-public-page .sc-editorial-hero__link span {
    transition: none;
  }
}
