/* Approved full-width WSS hero: scoped to the homepage hero. */
#hero {
  box-sizing: border-box;
  --hero-gutter: clamp(28px, 5.4vw, 128px);
  height: auto;
  min-height: 0;
  padding-top: 88px;
  background: #fbfaf7;
  isolation: isolate;
}
#hero #bar {
  height: 88px;
  padding: 0 var(--hero-gutter);
  background: #fbfaf7;
  border-bottom: 1px solid rgba(20,22,26,.1);
}
#hero #bar > div > span:first-child { font-size: 30px !important; }
#hero .wss-hero-art { position: relative; inset: auto; z-index: -1; aspect-ratio: 1920 / 650; min-height: 560px; }
#hero .wss-hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; object-position: right center; }
#hero #panel {
  position: absolute !important;
  inset: 88px auto 0 0 !important;
  width: 50% !important;
  padding: 44px 0 36px var(--hero-gutter) !important;
  background: transparent;
  border: 0;
  display: block;
  box-sizing: border-box;
}
#hero .wss-hero-eyebrow {
  display: block;
  margin: 0 0 20px;
  font: 400 13px/1.5 'IBM Plex Mono', monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1f4d3a;
}
#hero #panel h1 {
  margin: 0 0 26px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(44px, 3.85vw, 74px) !important;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #14161a;
  text-wrap: initial;
}
#hero .wss-hero-line { display: block; white-space: nowrap; }
#hero #panel h1 em { color: #1f4d3a; font-size: .9em; font-weight: 400; margin-right: .08em; }
#hero .wss-hero-copy { max-width: 760px; padding-right: 32px; color: #14161a; font-size: clamp(18px, 1.05vw, 20px); line-height: 1.4; }
#hero .wss-hero-copy p { margin: 0 0 20px; }
#hero .wss-hero-copy p:last-child { margin-bottom: 0; }
#hero .wss-hero-action { margin-top: 26px; }
#hero #cta {
  display: inline-block;
  padding: 0 0 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #1f4d3a;
  border-radius: 0;
  color: #1f4d3a;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(26px, 1.6vw, 31px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-decoration: none;
}
#hero #cta:hover { background: transparent; color: #14161a; border-color: #14161a; }
#hero #compliance { position: absolute; bottom: 24px; right: var(--hero-gutter); padding: 0; background: transparent; z-index: 1; }
#hero #compliance img { display: block; width: 252px !important; height: auto; }
#row2 .wss-intro-side { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
#row2 .wss-intro-developed { display: block; line-height: 0; }
#row2 .wss-intro-developed img { display: block; width: 300px; max-width: 100%; height: auto; }
#row2 .wss-audience-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 4px 0 8px; }
@media (max-width: 1100px) and (min-width: 901px) {
  #hero .menu { gap: 10px; font-size: 10px; }
  #hero .menu .sep { display: none; }
}
@media (max-width: 900px) {
  #hero { min-height: 0 !important; height: auto !important; padding-top: 88px; display: flex; flex-direction: column; }
  #hero .wss-hero-art { position: relative; inset: auto; z-index: 0; order: 0; width: 100%; aspect-ratio: 1920 / 650; min-height: 0; overflow: hidden; }
  #hero .wss-hero-art img { position: absolute; width: 100%; max-width: 100%; height: 100%; inset: 0; object-fit: contain; object-position: center; }
  #hero #panel { position: relative !important; inset: auto !important; order: 1; width: 100% !important; padding: 40px 24px 22px !important; background: #fbfaf7; }
  #hero #panel h1 { font-size: clamp(34px, 6vw, 54px) !important; margin-bottom: 26px; letter-spacing: -.03em; }
  #hero .wss-hero-eyebrow { font-size: 11px; margin-bottom: 20px; }
  #hero .wss-hero-copy { max-width: 700px; padding: 0; font-size: 19px; line-height: 1.45; }
  #hero .wss-hero-copy p { margin-bottom: 20px; }
  #hero .wss-hero-action { margin-top: 28px; }
  #hero #cta { font-size: 28px; }
  #hero #compliance { position: relative !important; order: 2; inset: auto; align-items: flex-start !important; padding: 10px 24px 32px !important; background: #fbfaf7; }
  #hero #compliance img { width: 240px !important; max-width: 100%; }
}
@media (max-width: 900px) and (max-height: 500px) {
  #hero { padding-top: 64px; }
  #hero #bar { height: 64px !important; }
}
@media (max-width: 380px) {
  #hero #panel h1 { font-size: 31px !important; }
  #hero #panel { padding-left: 20px !important; padding-right: 20px !important; }
  #hero #compliance { padding-left: 20px !important; padding-right: 20px !important; }
}

/* Equal audience columns keep every supplied square at the same display size. */
@media (min-width: 901px) {
  #row2 .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 88px; }
  #row2 .col, #row2 .col + .col { min-width: 0; padding: 32px 0 0; border-left: 0; }
  #row2 .col + .col::before { left: -44px; height: calc(100% + 1px); background: rgba(20,22,26,.12); }
}

/* WSS alert section uses the existing green and ink brand colours. */
#row2 .strip { background: #1F4D3A; color: #FBFAF7; border-top-color: #1F4D3A; }
#row2 .strip span, #row2 .strip strong { color: #FBFAF7 !important; }
#rowa .dhero { background: #14161A; }
#rowa .dhero h3, #rowa .dhero .kpi b { color: #FBFAF7; }
#rowa .dhero p, #rowa .dhero .kpi i { color: #D8D6CF; }
#rowa .dhero .kpi .bar { background: rgba(251,250,247,.25); }

/* Grey sampled from the supplied RSP2 alerts reference. */
#rowa .frame { background: #EEEFEC; }

/* Preserve the full composition of each supplied square report photo. */
#row3b .tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
#row3b .tile { min-width: 0; }
#row3b .wss-report-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

/* Charcoal report call-to-action row. */
#row3 .strip { background: #14161A; color: #FBFAF7; border-top-color: #14161A; }

/* Hero keyline and contrast for the charcoal call-to-action. */
#hero #bar { border-bottom: 1px solid #1F4D3A; }
#row3 .strip .cta-btn { background: #FBFAF7; color: #14161A; }
#row3 .strip .cta-btn:hover { background: #EEEFEC; color: #14161A; }
#row3 .strip .cta-btn:focus-visible { outline: 2px solid #FBFAF7; outline-offset: 4px; }

/* Match the report call-to-action row to the green alert divider. */
#row3 .strip { background: #1F4D3A; border-top-color: #1F4D3A; }

/* Match the divider below the example reports to the other green rows. */
#row3b .strip { background: #1F4D3A; color: #FBFAF7; border-top-color: #1F4D3A; }
#row3b .strip span { color: #FBFAF7 !important; }

/* Draw attention to the alert label without moving the surrounding text. */
#row2 .strip strong { display: inline-block; font-size: 17px; font-weight: 600 !important; line-height: 1.2; margin-right: 6px; transform-origin: center; animation: wss-alert-pulse 2.4s ease-in-out infinite; }
@keyframes wss-alert-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .65; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { #row2 .strip strong { animation: none; } }

/* Green footer keylines and white-on-green bottom row. */
#foot { border-top-color: #1F4D3A; }
#foot .footer-socials { border-top-color: #1F4D3A; }
#foot .strip { background: #1F4D3A; border-top-color: #1F4D3A; color: #FFFFFF; }
#foot .strip span, #foot .strip a { color: #FFFFFF !important; }
#foot .strip .sep { background: rgba(255,255,255,.35); }

/* Mobile portrait framing: full photo height, crop sides only. */
@media (max-width: 900px) {
 #hero .wss-hero-art { aspect-ratio: 960 / 650; }
 #hero .wss-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 100% center; }
}
