/* Shared premium inner-page hero system.
   Scope: all non-homepage mastheads only. */

:root {
  --inner-hero-navy-950: var(--editorial-dark, #050b18);
  --inner-hero-navy-900: var(--editorial-dark, #071126);
  --inner-hero-navy-850: var(--editorial-dark-2, #081a3c);
  --inner-hero-navy-800: var(--editorial-dark-3, #0a1f53);
  --inner-hero-gold: var(--color-accent, #f5a623);
  --inner-hero-gold-soft: var(--editorial-gold-soft, #f2c66f);
  --inner-hero-text: var(--text-on-dark, #ffffff);
  --inner-hero-muted: rgba(255, 255, 255, 0.78);
  --inner-hero-rule: rgba(var(--color-accent-rgb, 245, 166, 35), 0.32);
  --inner-hero-grid: rgba(255, 255, 255, 0.038);
  --inner-hero-top: calc(var(--nav-h, 72px) + 76px);
  --inner-hero-bottom: 92px;
  --inner-hero-title: clamp(42px, 5.4vw, 72px);
}

body.about-page main .page-hero,
body.vision-page main .page-hero,
body.join-page main .page-hero,
body.contact-page main .page-hero,
body.legal-page main .legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(550px, 80vh, 760px) !important;
  height: clamp(550px, 80vh, 760px) !important;
  padding: var(--inner-hero-top) 0 var(--inner-hero-bottom);
  color: var(--inner-hero-text);
  text-align: center;
  background-color: var(--inner-hero-navy-950);
  background:
    radial-gradient(ellipse 58% 72% at 50% 8%, rgba(245, 166, 35, 0.12), transparent 66%),
    radial-gradient(ellipse 76% 90% at 88% 28%, rgba(27, 58, 140, 0.24), transparent 64%),
    linear-gradient(145deg, var(--inner-hero-navy-950) 0%, var(--inner-hero-navy-900) 55%, var(--inner-hero-navy-800) 100%);
  border-bottom: 1px solid var(--inner-hero-rule);
}

body.about-page main .page-hero::before,
body.vision-page main .page-hero::before,
body.join-page main .page-hero::before,
body.contact-page main .page-hero::before,
body.legal-page main .legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.035) 18% 18.08%, transparent 18.08% 82%, rgba(245, 166, 35, 0.04) 82% 82.08%, transparent 82.08%),
    repeating-linear-gradient(0deg, var(--inner-hero-grid) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(245, 166, 35, 0.03) 0 1px, transparent 1px 38px);
  pointer-events: none;
}

body.about-page main .page-hero::after,
body.vision-page main .page-hero::after,
body.join-page main .page-hero::after,
body.contact-page main .page-hero::after,
body.legal-page main .legal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  z-index: 1;
  height: 88px;
  background:
    linear-gradient(180deg, rgba(5, 11, 24, 0), rgba(5, 11, 24, 0.28) 72%, rgba(5, 11, 24, 0.08)),
    linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.18), transparent);
  pointer-events: none;
}

body.about-page main .page-hero-inner,
body.vision-page main .page-hero-inner,
body.join-page main .page-hero-inner,
body.contact-page main .page-hero-inner,
body.legal-page main .legal-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
}

body.about-page main .page-hero .eyebrow,
body.vision-page main .page-hero .eyebrow,
body.join-page main .page-hero .eyebrow,
body.contact-page main .page-hero .eyebrow,
body.legal-page main .legal-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  color: var(--inner-hero-gold-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.26);
  border-left: 3px solid var(--inner-hero-gold);
  border-radius: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.about-page main .page-hero h1,
body.vision-page main .page-hero h1,
body.join-page main .page-hero h1,
body.contact-page main .page-hero h1,
body.legal-page main .legal-hero h1 {
  max-width: 880px;
  margin: 24px auto 18px;
  color: var(--inner-hero-text);
  font-family: var(--font-display);
  font-size: var(--inner-hero-title);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: none;
}

body.about-page main .page-hero h1::after,
body.vision-page main .page-hero h1::after,
body.join-page main .page-hero h1::after,
body.contact-page main .page-hero h1::after,
body.legal-page main .legal-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, var(--inner-hero-gold), rgba(245, 166, 35, 0.1));
}

body.about-page main .page-hero-sub,
body.vision-page main .page-hero-sub,
body.join-page main .page-hero-sub,
body.contact-page main .page-hero-sub,
body.legal-page main .legal-hero .updated {
  max-width: 720px;
  margin: 0 auto;
  color: var(--inner-hero-muted);
  font-size: 17px;
  line-height: 1.72;
  text-wrap: balance;
}

/* About: institutional founding identity */
body.about-page main .page-hero {
  min-height: 430px;
  text-align: left;
  background:
    radial-gradient(ellipse 54% 76% at 86% 12%, rgba(245, 166, 35, 0.12), transparent 60%),
    radial-gradient(ellipse 58% 88% at 8% 96%, rgba(27, 58, 140, 0.28), transparent 64%),
    linear-gradient(135deg, #050b18 0%, #071126 52%, #0a1f53 100%);
}

body.about-page main .page-hero::after {
  background:
    linear-gradient(180deg, rgba(5, 11, 24, 0), rgba(248, 245, 238, 0.9) 94%, #f8f5ee 100%),
    linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.2), transparent);
}

body.about-page main .page-hero-inner {
  max-width: 1080px;
}

body.about-page main .page-hero h1,
body.about-page main .page-hero-sub {
  margin-left: 0;
  margin-right: 0;
}

body.about-page main .page-hero h1 {
  max-width: 790px;
}

body.about-page main .page-hero h1::after {
  margin-left: 0;
  margin-right: 0;
}

body.about-page main .page-hero-sub {
  max-width: 700px;
}

/* Vision: official manifesto document */
body.vision-page main .page-hero {
  min-height: 470px;
  background:
    radial-gradient(ellipse 46% 64% at 50% 8%, rgba(245, 166, 35, 0.14), transparent 62%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 18%, transparent 82%, rgba(245, 166, 35, 0.045)),
    linear-gradient(145deg, #050b18 0%, #071126 56%, #081b49 100%);
}

body.vision-page main .page-hero::before {
  opacity: 0.24;
  background-image:
    linear-gradient(90deg, rgba(245, 166, 35, 0.06) 0 1px, transparent 1px 14%, transparent 86%, rgba(245, 166, 35, 0.06) 86% calc(86% + 1px), transparent calc(86% + 1px)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(245, 166, 35, 0.025) 0 1px, transparent 1px 36px);
}

body.vision-page main .page-hero::after {
  background: linear-gradient(180deg, rgba(5, 11, 24, 0), #050b18 94%);
}

body.vision-page main .vision-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

body.vision-page main .vision-hero-actions .btn {
  min-height: 52px;
  min-width: 190px;
  padding: 14px 24px;
}

/* Join: membership gateway */
body.join-page main .page-hero {
  min-height: 520px;
  background:
    radial-gradient(ellipse 42% 58% at 50% 20%, rgba(245, 166, 35, 0.15), transparent 66%),
    radial-gradient(ellipse 66% 86% at 82% 32%, rgba(27, 58, 140, 0.24), transparent 62%),
    linear-gradient(135deg, #050b18 0%, #071126 54%, #0a1f53 100%);
}

body.join-page main .page-hero-sub {
  max-width: 760px;
  padding: 18px 24px;
  background: rgba(5, 11, 24, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid rgba(245, 166, 35, 0.56);
  border-radius: 3px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

body.join-page main .join-hero-emphasis {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 3px 8px;
  color: var(--inner-hero-gold-soft);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.22);
  border-radius: 2px;
  font-weight: 800;
}

/* Contact: public access channel */
body.contact-page main .page-hero {
  min-height: 410px;
  text-align: left;
  background:
    radial-gradient(ellipse 52% 72% at 88% 18%, rgba(245, 166, 35, 0.13), transparent 58%),
    radial-gradient(ellipse 58% 86% at 12% 88%, rgba(27, 58, 140, 0.26), transparent 64%),
    linear-gradient(135deg, #050b18 0%, #071126 54%, #0a1f53 100%);
}

body.contact-page main .page-hero::after {
  background:
    linear-gradient(180deg, rgba(5, 11, 24, 0), rgba(247, 246, 242, 0.9) 94%, var(--off-white) 100%),
    linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.2), transparent);
}

body.contact-page main .page-hero-inner,
body.contact-page main .page-hero h1,
body.contact-page main .page-hero-sub {
  margin-left: 0;
  margin-right: 0;
}

body.contact-page main .page-hero h1 {
  max-width: 700px;
}

body.contact-page main .page-hero h1::after {
  margin-left: 0;
  margin-right: 0;
}

body.contact-page main .page-hero-sub {
  max-width: 650px;
}

/* Newsroom: official media centre */
body.newsroom-page main {
  padding-top: 0;
}

body.newsroom-page main > div:first-of-type {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 82px;
  color: var(--inner-hero-text);
  background:
    radial-gradient(ellipse 60% 82% at 88% 12%, rgba(245, 166, 35, 0.12), transparent 58%),
    radial-gradient(ellipse 58% 76% at 8% 92%, rgba(27, 58, 140, 0.24), transparent 64%),
    linear-gradient(135deg, #050b18 0%, #071126 58%, #081b49 100%) !important;
  border-bottom: 1px solid rgba(245, 166, 35, 0.32) !important;
}

body.newsroom-page main > div:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(245, 166, 35, 0.028) 0 1px, transparent 1px 36px);
  pointer-events: none;
}

body.newsroom-page main > div:first-of-type .container {
  position: relative;
  z-index: 1;
}

body.newsroom-page main > div:first-of-type .newsroom-flag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 900px;
  padding: 0;
  color: var(--inner-hero-text);
}

body.newsroom-page main > div:first-of-type .newsroom-dateline {
  order: -1;
  display: inline-flex;
  width: auto;
  margin: 0 0 24px;
  padding: 8px 14px;
  color: var(--inner-hero-gold-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.26);
  border-left: 3px solid var(--inner-hero-gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.newsroom-page main > div:first-of-type .newsroom-flag-title {
  display: block;
  color: var(--inner-hero-text);
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 70px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: none;
}

body.newsroom-page main > div:first-of-type .newsroom-flag-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 22px 0 0;
  background: linear-gradient(90deg, var(--inner-hero-gold), rgba(245, 166, 35, 0.1));
}

body.newsroom-page main > div:nth-of-type(2) {
  background: #030814 !important;
  border-bottom: 1px solid rgba(245, 166, 35, 0.24);
}

/* Legal: compact compliance header */
body.legal-page {
  padding-top: 0;
}

body.legal-page main .legal-hero {
  min-height: 0;
  padding: calc(var(--nav-h, 72px) + 42px) 0 54px;
  text-align: left;
  background:
    radial-gradient(ellipse 42% 64% at 88% 14%, rgba(245, 166, 35, 0.1), transparent 58%),
    linear-gradient(135deg, #050b18 0%, #071126 62%, #0a1b48 100%);
}

body.legal-page main .legal-hero::after {
  height: 42px;
  background: linear-gradient(180deg, rgba(5, 11, 24, 0), rgba(247, 246, 242, 0.86));
}

body.legal-page main .legal-hero .container,
body.legal-page main .legal-hero h1,
body.legal-page main .legal-hero .updated {
  margin-left: 0;
  margin-right: 0;
}

body.legal-page main .legal-hero h1 {
  max-width: 760px;
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: clamp(34px, 4.5vw, 52px);
}

body.legal-page main .legal-hero h1::after {
  width: 56px;
  margin: 18px 0 0;
}

body.legal-page main .legal-hero .updated {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.62;
}

@media (max-width: 768px) {
  :root {
    --inner-hero-top: calc(var(--nav-h, 72px) + 48px);
    --inner-hero-bottom: 64px;
    --inner-hero-title: clamp(34px, 9vw, 50px);
  }

  body.about-page main .page-hero,
  body.vision-page main .page-hero,
  body.join-page main .page-hero,
  body.contact-page main .page-hero {
    min-height: auto;
    text-align: center;
  }

  body.about-page main .page-hero-inner,
  body.about-page main .page-hero h1,
  body.about-page main .page-hero-sub,
  body.contact-page main .page-hero-inner,
  body.contact-page main .page-hero h1,
  body.contact-page main .page-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  body.about-page main .page-hero h1::after,
  body.contact-page main .page-hero h1::after {
    margin-left: auto;
    margin-right: auto;
  }

  body.about-page main .page-hero .eyebrow,
  body.vision-page main .page-hero .eyebrow,
  body.join-page main .page-hero .eyebrow,
  body.contact-page main .page-hero .eyebrow,
  body.legal-page main .legal-hero .eyebrow {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  body.about-page main .page-hero h1,
  body.vision-page main .page-hero h1,
  body.join-page main .page-hero h1,
  body.contact-page main .page-hero h1 {
    margin-top: 20px;
    margin-bottom: 18px;
  }

  body.about-page main .page-hero-sub,
  body.vision-page main .page-hero-sub,
  body.join-page main .page-hero-sub,
  body.contact-page main .page-hero-sub,
  body.legal-page main .legal-hero .updated {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.66;
  }

  body.join-page main .page-hero-sub {
    padding: 16px 17px;
  }

  body.vision-page main .vision-hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 26px;
  }

  body.vision-page main .vision-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  body.newsroom-page main > div:first-of-type {
    padding: 62px 0 58px;
    text-align: center;
  }

  body.newsroom-page main > div:first-of-type .newsroom-flag {
    align-items: center;
    text-align: center;
  }

  body.newsroom-page main > div:first-of-type .newsroom-flag-title {
    font-size: clamp(34px, 10vw, 50px);
  }

  body.newsroom-page main > div:first-of-type .newsroom-flag-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  body.newsroom-page main > div:first-of-type .newsroom-dateline {
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  body.legal-page main .legal-hero {
    padding: calc(var(--nav-h, 72px) + 34px) 0 42px;
    text-align: center;
  }

  body.legal-page main .legal-hero .container,
  body.legal-page main .legal-hero h1,
  body.legal-page main .legal-hero .updated {
    margin-left: auto;
    margin-right: auto;
  }

  body.legal-page main .legal-hero h1::after {
    margin-left: auto;
    margin-right: auto;
  }
}
