/* Public site header / footer — injected into published page iframe.
   Use hex colors and margin-based spacing for cross-browser support. */

.site-header {
  background: var(--site-header-bg);
  color: var(--site-header-text);
  padding: 0.85rem 1.25rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 40;
}

.site-header .site-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
  margin-right: 1.5rem;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  vertical-align: middle;
  font-size: 1.05rem;
  align-items: center;
  gap: var(--site-brand-gap, calc(var(--site-spacing) * 1.5));
}

.site-brand-logo {
  display: inline-block;
  width: auto;
  height: var(--site-logo-height, 2.25rem);
  max-width: var(--site-logo-max-width, 10rem);
  object-fit: contain;
  vertical-align: middle;
}

.site-brand-logo--rounded {
  border-radius: 0.5rem;
  border: 1px solid var(--site-logo-border-color, transparent);
  background: var(--site-logo-bg, transparent);
  padding: 0.1rem;
  box-sizing: content-box;
}

.site-brand-logo--circle {
  border-radius: 999px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  width: var(--site-logo-height, 2.25rem);
  height: var(--site-logo-height, 2.25rem);
  max-width: none;
  border: 1px solid var(--site-logo-border-color, transparent);
  background: var(--site-logo-bg, transparent);
  padding: 0.1rem;
  box-sizing: content-box;
}

.site-brand-logo--bordered {
  border: 1px solid var(--site-logo-border-color, rgba(0, 0, 0, 0.12));
  border-radius: 0.35rem;
  padding: 0.15rem;
  background: var(--site-logo-bg, transparent);
  box-sizing: content-box;
}

.site-brand--align-left {
  margin-right: auto;
}

.site-brand--align-center {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
}

.site-brand--align-center .site-brand-copy {
  align-items: center;
  text-align: center;
}

.site-brand--align-right {
  margin-left: auto;
}

.site-brand--stack-row {
  flex-direction: row;
  align-items: center;
}

.site-brand--stack-column {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--site-brand-gap, 0.45rem);
}

.site-brand--stack-column .site-brand-copy {
  align-items: center;
  text-align: center;
}

.site-header--brand-align-left .site-brand {
  margin-right: auto;
  margin-left: 0;
}

.site-header--brand-align-center .site-brand,
.site-header--brand-align-center .site-header-brand-row,
.site-header--brand-align-center .site-header-title-block {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.site-header--brand-align-center .site-brand {
  justify-content: center;
}

.site-header--brand-align-center .site-brand-copy {
  align-items: center;
  text-align: center;
}

.site-header--brand-align-right .site-brand {
  margin-left: auto;
  margin-right: 0;
}

.site-header--brand-stack-column .site-brand {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--site-brand-gap, 0.45rem);
}

.site-header--brand-stack-column .site-brand-copy {
  align-items: center;
  text-align: center;
}

.site-header--brand-stack-row .site-brand {
  flex-direction: row;
  align-items: center;
}

.site-header--actions-start .site-header-actions {
  margin-left: 0;
  margin-right: auto;
}

.site-header--actions-center .site-header-actions {
  margin-left: auto;
  margin-right: auto;
}

.site-header--actions-end .site-header-actions {
  margin-left: auto;
  margin-right: 0;
}

.site-brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand-name {
  color: inherit;
}

.site-brand-tagline {
  margin-top: 0.2rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.72;
}

.site-header-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: var(--site-nav-gap, 1.5rem);
  max-width: var(--site-container-width);
  margin: 0 auto;
  position: relative;
}

.site-header-nav {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

/* —— Hamburger (hidden on desktop) —— */
.site-nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-button-radius);
  background: transparent;
  color: var(--site-header-text);
  cursor: pointer;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.site-nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
  border-radius: 1px;
  -webkit-transition: -webkit-transform 0.2s ease, opacity 0.2s ease;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .site-nav-toggle-bar:nth-child(1) {
  -webkit-transform: translateY(6px) rotate(45deg);
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-nav-open .site-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .site-nav-toggle-bar:nth-child(3) {
  -webkit-transform: translateY(-6px) rotate(-45deg);
  transform: translateY(-6px) rotate(-45deg);
}

/* —— Top-level nav (shared base) —— */
.site-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > .site-nav-item {
  margin-right: 1.25rem;
  margin-bottom: 0;
}

.site-nav > .site-nav-item:last-child {
  margin-right: 0;
}

.site-nav a {
  color: var(--site-header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--site-accent);
}

/* —— Header: dropdown behaviour (desktop) —— */
.site-header .site-nav-item {
  position: relative;
}

.site-header .site-nav-item > a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0.4rem 0;
  line-height: 1.2;
}

.site-nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  -webkit-transition: -webkit-transform 0.15s ease;
  transition: transform 0.15s ease;
}

.site-header .site-nav-item.has-children:hover > a .site-nav-caret,
.site-header .site-nav-item.has-children:focus-within > a .site-nav-caret,
.site-header .site-nav-item.is-open > a .site-nav-caret {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

/* Dropdown panel (level 2) */
.site-header .site-nav-children {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--site-header-bg);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  -webkit-box-shadow: var(--site-shadow);
  box-shadow: var(--site-shadow);
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(6px);
  transform: translateY(6px);
  -webkit-transition: opacity 0.15s ease, -webkit-transform 0.15s ease;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

.site-header .site-nav-item.has-children:hover > .site-nav-children,
.site-header .site-nav-item.has-children:focus-within > .site-nav-children {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.site-header .site-nav-children .site-nav-item {
  margin: 0;
  width: 100%;
}

.site-header .site-nav-children a {
  display: block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--site-header-text);
}

.site-header .site-nav-children a:hover,
.site-header .site-nav-children a.is-active {
  background: var(--site-secondary);
  color: var(--site-link-hover);
}

/* Level 3+ : flyout to the side */
.site-header .site-nav-children .site-nav-children {
  top: -0.4rem;
  left: 100%;
  margin-left: 2px;
}

.site-header .site-nav-children .site-nav-item.has-children > a::after {
  content: '';
  display: inline-block;
  float: right;
  margin-top: 0.35rem;
  margin-left: 0.75rem;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  opacity: 0.7;
}

/* —— Mobile: hamburger + accordion —— */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header[data-t-brand-stack='column'] .site-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
  }

  .site-header[data-t-brand-stack='row'] .site-brand {
    flex-direction: row;
    align-items: center;
  }

  .site-header[data-t-brand-align='left'] .site-brand,
  .site-header[data-t-brand-align='left'] .site-header-title-block {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }

  .site-header[data-t-brand-align='center'] .site-brand,
  .site-header[data-t-brand-align='center'] .site-header-brand-row,
  .site-header[data-t-brand-align='center'] .site-header-title-block {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    justify-content: center;
  }

  .site-header[data-t-brand-align='right'] .site-brand,
  .site-header[data-t-brand-align='right'] .site-header-title-block {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
  }

  .site-header[data-t-hide-tagline] .site-brand-tagline,
  .site-header[data-t-hide-tagline] .site-header-portal-tagline {
    display: none !important;
  }

  .site-header[data-t-hide-buttons] .site-header-actions {
    display: none !important;
  }

  .site-header[data-t-hide-utility] .site-header-utility,
  .site-header[data-t-hide-utility] .site-header-topbar {
    display: none !important;
  }

  .site-header[data-t-hide-partners] .site-header-partners,
  .site-header[data-t-hide-partners] .site-header-logo-zone--right,
  .site-header[data-t-hide-partners] .site-header-logo-zone--center {
    display: none !important;
  }

  .site-header[data-t-actions-full] .site-header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .site-header[data-t-actions-full] .site-header-cta {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .site-header[data-m-brand-stack='column'] .site-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
  }

  .site-header[data-m-brand-stack='row'] .site-brand {
    flex-direction: row;
    align-items: center;
  }

  .site-header[data-m-brand-align='left'] .site-brand,
  .site-header[data-m-brand-align='left'] .site-header-brand-row,
  .site-header[data-m-brand-align='left'] .site-header-title-block {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    justify-content: flex-start;
  }

  .site-header[data-m-brand-align='center'] .site-brand,
  .site-header[data-m-brand-align='center'] .site-header-brand-row,
  .site-header[data-m-brand-align='center'] .site-header-title-block {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    justify-content: center;
  }

  .site-header[data-m-brand-align='right'] .site-brand,
  .site-header[data-m-brand-align='right'] .site-header-brand-row,
  .site-header[data-m-brand-align='right'] .site-header-title-block {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    justify-content: flex-end;
  }

  .site-header[data-m-hide-tagline] .site-brand-tagline,
  .site-header[data-m-hide-tagline] .site-header-portal-tagline {
    display: none !important;
  }

  .site-header[data-m-hide-buttons] .site-header-actions {
    display: none !important;
  }

  .site-header[data-m-hide-utility] .site-header-utility,
  .site-header[data-m-hide-utility] .site-header-topbar {
    display: none !important;
  }

  .site-header[data-m-hide-partners] .site-header-partners,
  .site-header[data-m-hide-partners] .site-header-logo-zone--right,
  .site-header[data-m-hide-partners] .site-header-logo-zone--center {
    display: none !important;
  }

  .site-header[data-m-actions-full] .site-header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .site-header[data-m-actions-full] .site-header-cta {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .site-nav-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .site-header-nav {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    width: 100%;
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--site-border);
  }

  .site-header.is-nav-open .site-header-nav {
    display: block;
  }

  .site-header .site-nav {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  .site-header .site-nav > .site-nav-item {
    margin-right: 0;
    margin-bottom: 0;
    width: 100%;
    border-bottom: 1px solid var(--site-border);
  }

  .site-header .site-nav-item > a {
    padding: 0.75rem 0.25rem;
    width: 100%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  /* Disable hover dropdowns; use accordion instead */
  .site-header .site-nav-children {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0.35rem 0.85rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    -webkit-transform: none;
    transform: none;
    display: none;
  }

  .site-header .site-nav-item.is-open > .site-nav-children {
    display: block;
  }

  .site-header .site-nav-item.has-children:hover > .site-nav-children,
  .site-header .site-nav-item.has-children:focus-within > .site-nav-children {
    /* hover must not force-open on mobile; only .is-open */
    display: none;
  }

  .site-header .site-nav-item.is-open > .site-nav-children,
  .site-header .site-nav-item.is-open:hover > .site-nav-children,
  .site-header .site-nav-item.is-open:focus-within > .site-nav-children {
    display: block;
  }

  .site-header .site-nav-children .site-nav-children {
    left: auto;
    top: auto;
    margin-left: 0;
    padding-left: 0.85rem;
  }

  .site-header .site-nav-children .site-nav-item.has-children > a::after {
    display: none;
  }

  .site-header .site-nav-children a {
    white-space: normal;
    padding: 0.55rem 0.25rem;
  }
}

/* —— Footer: stacked columns —— */
.site-footer {
  background: var(--site-footer-bg);
  color: var(--site-footer-text);
  padding: 1.75rem 1.25rem;
  margin-top: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.site-footer--pad-compact {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.site-footer--pad-comfortable {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.site-footer--pad-spacious {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.site-footer--style-minimal {
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-footer--style-minimal .site-footer-bottom {
  border-top-color: color-mix(in srgb, currentColor 18%, transparent);
}

.site-footer--style-soft {
  border-radius: calc(var(--site-radius) * 1.25) calc(var(--site-radius) * 1.25) 0 0;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
}

.site-footer--style-bordered {
  border-top: 3px solid var(--site-footer-accent, var(--site-accent, #c4a35a));
}

.site-footer a {
  color: var(--site-footer-link, inherit);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--site-footer-accent, var(--site-footer-link, inherit));
}

.site-footer--social-pills .site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  text-decoration: none;
}

.site-footer--social-outline .site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--site-button-radius);
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  text-decoration: none;
}

.site-footer-inner {
  max-width: var(--site-container-width);
  margin: 0 auto;
}

.site-footer .site-nav {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 2.5rem;
}

.site-footer .site-nav > .site-nav-item {
  margin-right: 0;
  margin-bottom: 0.5rem;
}

.site-footer .site-nav-caret {
  display: none;
}

.site-footer .site-nav-children {
  display: block;
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.site-footer .site-nav-children > .site-nav-item {
  margin-bottom: 0.35rem;
}

.site-footer .site-nav > .site-nav-item > a {
  font-weight: 700;
  font-size: 1rem;
}

.site-footer .site-nav a {
  color: var(--site-footer-text);
  font-weight: 500;
}

.site-footer .site-nav a:hover,
.site-footer .site-nav a.is-active {
  color: var(--site-primary-foreground);
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: calc(var(--site-spacing) * 2);
  margin-top: calc(var(--site-spacing) * 2);
  padding-top: calc(var(--site-spacing) * 2);
  border-top: 1px solid var(--site-border);
  color: var(--site-footer-text);
  font-size: 0.925rem;
}

.site-footer-meta a {
  color: var(--site-footer-text);
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--site-spacing) * 1.5);
}

.site-main {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-flex: 1;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
}

/* —— Header template variants —— */
.site-header.is-sticky {
  position: sticky;
  top: 0;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0;
}

.site-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--site-button-radius);
  border: 1px solid transparent;
  background: var(--site-primary);
  color: var(--site-primary-foreground);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-header-cta:not(.site-header-cta--outline):not(.site-header-cta--link):hover {
  background: var(--site-primary-hover, var(--site-primary));
  color: var(--site-primary-foreground);
  opacity: 1;
}

.site-header-cta--outline {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid currentColor;
  color: inherit;
  box-shadow: none !important;
}

.site-header-cta--outline:hover {
  background: transparent !important;
  background-color: transparent !important;
  opacity: 0.85;
  color: inherit;
}

.site-header-cta--link {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  box-shadow: none !important;
}

.site-header-cta--link:hover {
  background: transparent !important;
  background-color: transparent !important;
  opacity: 0.85;
  color: inherit;
}

/* —— Portal (multi-logo / dual-menu) —— */
.site-header--portal {
  padding: 0;
  background: var(--portal-brand-bg, #ffffff);
  color: var(--portal-brand-text, #0b2a4a);
}

.site-header--portal .site-header-utility {
  background: var(--portal-utility-bg, #0b1c2c);
  color: var(--portal-utility-text, #ffffff);
  font-size: 0.8125rem;
}

.site-header--portal .site-header-utility-inner {
  max-width: var(--site-container-width);
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

.site-header--portal .site-header-utility-inner--end {
  justify-content: flex-end;
}

.site-header--portal .site-utility-nav .site-nav {
  justify-content: flex-end;
  gap: 0.15rem 1rem;
}

.site-header--portal .site-utility-nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.92;
}

.site-header--portal .site-utility-nav a:hover,
.site-header--portal .site-utility-nav a.is-active,
.site-header--portal .site-utility-nav a[aria-current='page'] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-header--portal .site-header-actions--utility {
  margin-left: 0;
}

.site-header--portal .site-header-brand-bar {
  background: var(--portal-brand-bg, #ffffff);
  color: var(--portal-brand-text, #0b2a4a);
  border-bottom: 1px solid rgba(11, 42, 74, 0.08);
}

.site-header--portal .site-header-brand-bar-inner {
  max-width: var(--site-container-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.site-header--portal .site-brand {
  margin-right: 0;
  color: inherit;
}

.site-header--portal .site-header-title-block {
  flex: 1 1 12rem;
  min-width: 0;
  text-align: center;
}

.site-header--portal .site-header-portal-title {
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
}

.site-header--portal .site-header-portal-tagline {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  opacity: 0.75;
}

.site-header--portal .site-header-partners,
.site-header--portal .site-header-logo-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.site-header--portal .site-header-logo-zone--left {
  justify-content: flex-start;
  min-width: 0;
}

.site-header--portal .site-header-logo-zone--right {
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.site-header--portal .site-header-title-block .site-header-logo-zone--center {
  justify-content: center;
  margin-top: 0.5rem;
}

.site-header--portal .site-header-partners {
  justify-content: flex-end;
  margin-left: auto;
}

.site-header--portal .site-partner-logo {
  display: block;
  height: var(--logo-height, 52px);
  max-height: var(--logo-height, 52px);
  width: auto;
  max-width: var(--logo-max-width, 120px);
  object-fit: contain;
}

.site-header--portal .site-nav-toggle {
  margin-left: 0.25rem;
  color: var(--portal-brand-text, #0b2a4a);
  border-color: rgba(11, 42, 74, 0.28);
}

.site-header--portal .site-header-nav-bar {
  background: var(--portal-nav-bg, #1d5fad);
  color: var(--portal-nav-text, #ffffff);
}

.site-header--portal .site-header-nav-bar-inner {
  max-width: var(--site-container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header--portal .site-header-nav {
  width: 100%;
}

.site-header--portal .site-header-nav .site-nav {
  gap: 0.15rem 0.25rem;
}

.site-header--portal .site-header-nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.925rem;
}

.site-header--portal .site-header-nav a:hover,
.site-header--portal .site-header-nav a.is-active,
.site-header--portal .site-header-nav a[aria-current='page'] {
  background: rgba(0, 0, 0, 0.12);
}

.site-header--portal .site-header-nav .site-nav-children {
  background: rgba(20, 70, 130, 0.98);
  background: color-mix(in srgb, var(--portal-nav-bg, #1d5fad) 92%, #000);
  color: var(--portal-nav-text, #ffffff);
  border-color: rgba(255, 255, 255, 0.15);
}

.site-header--centered .site-header-inner {
  flex-direction: column;
  align-items: center;
  gap: var(--site-nav-gap, 0.75rem);
}

.site-header--centered .site-header-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.site-header--centered.site-header--brand-align-left .site-header-brand-row {
  justify-content: flex-start;
}

.site-header--centered.site-header--brand-align-right .site-header-brand-row {
  justify-content: flex-end;
}

.site-header--centered .site-brand,
.site-header--centered .site-brand.site-brand--align-left,
.site-header--centered .site-brand.site-brand--align-center,
.site-header--centered .site-brand.site-brand--align-right {
  margin: 0;
}

.site-header--centered.site-header--brand-stack-column .site-brand {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--site-brand-gap, 0.45rem);
}

.site-header--centered.site-header--brand-stack-row .site-brand {
  flex-direction: row;
  align-items: center;
  text-align: left;
}

.site-header--centered.site-header--brand-stack-row .site-brand-copy {
  align-items: flex-start;
  text-align: left;
}

.site-header--centered.site-header--brand-align-center .site-brand {
  margin: 0 auto;
}

.site-header--centered .site-nav-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}

.site-header--centered .site-header-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.site-header--centered .site-nav {
  justify-content: center;
}

.site-header--centered .site-header-actions {
  margin-left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.site-header--split .site-header-nav {
  display: flex;
  justify-content: center;
}

.site-header--split .site-header-actions {
  margin-left: auto;
}

.site-header--stacked {
  /* utility strip + bar colors via inline --stacked-* / --site-header-* vars */
}

.site-header--stacked .site-header-inner {
  background: inherit;
  color: inherit;
}

.site-header--stacked .site-header-topbar {
  background: var(--stacked-utility-bg, rgba(0, 0, 0, 0.18));
  color: var(--stacked-utility-text, inherit);
  font-size: 0.8rem;
  padding: 0.35rem 1.25rem;
}

.site-header--stacked .site-header-topbar-inner {
  max-width: var(--site-container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0.95;
}

.site-header--stacked .site-header-topbar a {
  color: inherit;
  text-decoration: none;
}

.site-header--stacked .site-header-topbar a:hover,
.site-header--stacked .site-header-topbar a.is-active {
  text-decoration: underline;
}

.site-header--stacked .site-header-partners {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-header--stacked .site-partner-logo {
  display: block;
  height: var(--logo-height, 40px);
  max-height: var(--logo-height, 40px);
  width: auto;
  max-width: var(--logo-max-width, 120px);
  object-fit: contain;
}

.site-partner-logo--rounded {
  border-radius: 0.5rem;
  border: 1px solid var(--logo-border-color, transparent);
  background: var(--logo-bg, transparent);
  padding: 0.1rem;
  box-sizing: content-box;
}

.site-partner-logo--circle {
  border-radius: 999px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  width: var(--logo-height, 40px);
  height: var(--logo-height, 40px);
  max-width: none;
  border: 1px solid var(--logo-border-color, transparent);
  background: var(--logo-bg, transparent);
  padding: 0.1rem;
  box-sizing: content-box;
}

.site-partner-logo--bordered {
  border: 1px solid var(--logo-border-color, rgba(0, 0, 0, 0.12));
  border-radius: 0.35rem;
  padding: 0.15rem;
  background: var(--logo-bg, transparent);
  box-sizing: content-box;
}

.site-header--custom {
  padding: 0;
}

.site-header--custom .site-header-inner,
.site-footer--custom .site-footer-inner {
  max-width: none;
}

/* —— Portal footer —— */
.site-footer--portal {
  padding: 0;
  background: var(--portal-footer-bg, #001b44);
  color: var(--portal-footer-text, #ffffff);
}

.site-footer--portal .site-footer-portal-main {
  padding: 2.5rem 1.25rem 2rem;
}

.site-footer--portal .site-footer-portal-inner {
  max-width: var(--site-container-width);
  margin: 0 auto;
}

.site-footer--portal .site-footer-portal-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) repeat(2, minmax(8rem, 1fr)) minmax(12rem, 1.2fr);
  gap: 2rem 1.75rem;
  align-items: start;
}

.site-footer--portal .site-footer-portal-title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.site-footer--portal .site-footer-col-nav .site-nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.site-footer--portal .site-footer-col-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.95;
}

.site-footer--portal .site-footer-col-nav a:hover {
  text-decoration: underline;
  opacity: 1;
}

.site-footer--portal .site-footer-portal-map {
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  min-height: 140px;
}

.site-footer--portal .site-footer-portal-map iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
}

.site-footer--portal .site-footer-portal-map--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  font-size: 0.85rem;
  opacity: 0.55;
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

.site-footer--portal .site-footer-portal-bar {
  background: var(--portal-footer-bar-bg, #f39233);
  color: var(--portal-footer-bar-text, #ffffff);
  font-size: 0.85rem;
}

.site-footer--portal .site-footer-portal-bar-inner {
  max-width: var(--site-container-width);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
}

.site-footer--portal .site-footer-portal-bar-item--center {
  text-align: center;
}

.site-footer--portal .site-footer-portal-bar-item--end {
  text-align: right;
}

.site-footer--portal .site-footer-portal-bar .site-footer-copyright {
  margin: 0;
  font-size: inherit;
  opacity: 1;
}

.site-footer--portal .site-footer-portal-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  background: var(--site-scroll-top-bg, #f06449);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transform: translateY(0.5rem);
  transform: translateY(0.5rem);
  -webkit-transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    background 0.15s ease;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
    background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.site-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.site-scroll-top:hover,
.site-scroll-top:focus-visible {
  background: var(--site-scroll-top-bg-hover, #e4553a);
  color: #fff;
  outline: none;
}

.site-scroll-top:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 100, 73, 0.35), 0 4px 16px rgba(0, 0, 0, 0.22);
}

.site-scroll-top__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-scroll-top {
    -webkit-transition: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-footer--portal .site-footer-portal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer--portal .site-footer-portal-brand {
    grid-column: 1 / -1;
  }

  .site-footer--portal .site-footer-portal-map,
  .site-footer--portal .site-footer-portal-map--placeholder {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer--portal .site-footer-portal-grid {
    grid-template-columns: 1fr;
  }

  .site-footer--portal .site-footer-portal-bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer--portal .site-footer-portal-bar-item--center,
  .site-footer--portal .site-footer-portal-bar-item--end {
    text-align: center;
  }
}

/* —— Footer template variants —— */
.site-footer-copyright {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.site-footer-bottom {
  margin-top: calc(var(--site-spacing) * 2);
  padding-top: calc(var(--site-spacing) * 2);
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  background: var(--site-footer-bar-bg, transparent);
  color: var(--site-footer-bar-text, inherit);
}

.site-footer-credit {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.95;
}

.site-footer-credit-label {
  opacity: 0.85;
}

.site-footer-credit-name {
  font-weight: 600;
  text-decoration: none;
}

.site-footer-credit a.site-footer-credit-name:hover {
  text-decoration: underline;
}

.site-footer--simple .site-footer-simple-credit {
  margin-top: 0.85rem;
  text-align: right;
}

.site-footer--centered .site-footer-bottom {
  width: 100%;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: transparent;
}

.site-footer--portal.site-footer--pad-compact .site-footer-portal-main {
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.site-footer--portal.site-footer--pad-spacious .site-footer-portal-main {
  padding-top: 3.25rem;
  padding-bottom: 2.5rem;
}

.site-footer--portal .site-footer-credit {
  display: inline;
}

.site-footer--simple .site-footer-simple-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer--centered .site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.site-footer--centered .site-nav {
  justify-content: center;
}

.site-footer--centered .site-footer-social {
  justify-content: center;
}

.site-footer--columns .site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer--columns .site-footer-blurb {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 18rem;
}

.site-footer--columns .site-footer-col--meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer--columns .site-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.925rem;
}

.site-footer--columns .site-footer-contact a,
.site-footer--columns .site-footer-contact span {
  color: inherit;
}

.site-footer--custom {
  padding: 0;
}

@media (max-width: 767px) {
  .site-footer .site-nav {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-header-actions {
    margin-left: 0;
    width: 100%;
    order: 3;
  }

  .site-header--split .site-header-actions,
  .site-header--classic .site-header-actions,
  .site-header--stacked .site-header-actions {
    margin-left: 0;
  }

  .site-header--centered .site-header-nav {
    display: none;
  }

  .site-header--centered.is-nav-open .site-header-nav {
    display: block;
  }

  .site-header--portal .site-header-brand-bar-inner {
    justify-content: space-between;
  }

  .site-header--portal .site-header-title-block {
    order: 3;
    flex: 1 1 100%;
    text-align: left;
  }

  .site-header--portal .site-header-partners,
  .site-header--portal .site-header-logo-zone--right {
    margin-left: 0;
  }

  .site-header--portal .site-header-nav {
    display: none;
  }

  .site-header--portal.is-nav-open .site-header-nav {
    display: block;
    padding-bottom: 0.5rem;
  }

  .site-header--portal.is-nav-open .site-header-nav .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer--columns .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer--simple .site-footer-simple-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dataset Data Tabs — colors come from CSS vars on .ghg-data-tabs (set once).
   Runtime only toggles .is-active; it must not paint inline colors. */
.ghg-data-tabs {
  --ghg-tab-active-bg: var(--site-accent, #ee7c5f);
  --ghg-tab-active-color: #ffffff;
  --ghg-tab-inactive-bg: transparent;
  --ghg-tab-inactive-color: var(--site-text, #0f172a);
  --ghg-tab-hover-bg: color-mix(in srgb, var(--site-accent, #ee7c5f) 18%, transparent);
  --ghg-tab-hover-color: var(--site-text, #0f172a);
}

.ghg-data-tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--site-border, #e2e8f0);
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
  margin-bottom: 20px;
}

.ghg-data-tab {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--ghg-tab-inactive-bg);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ghg-tab-inactive-color);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.ghg-data-tab:hover:not(.is-active) {
  background: var(--ghg-tab-hover-bg);
  color: var(--ghg-tab-hover-color);
}

.ghg-data-tab.is-active {
  background: var(--ghg-tab-active-bg);
  color: var(--ghg-tab-active-color);
  font-weight: 600;
}

/* KPI Counter — each piece (prefix / value / suffix / title) is independently styleable. */
.el-counter {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.el-counter__number {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  font-size: var(--el-counter-number-size, 44px);
}
.el-counter__value {
  font-weight: 700;
  color: var(--el-counter-number-color, #1f6b4f);
}
.el-counter__prefix,
.el-counter__suffix {
  font-weight: 700;
}
.el-counter__prefix.is-empty,
.el-counter__suffix.is-empty,
.el-counter__title.is-empty,
.el-counter__description.is-empty {
  display: none;
}
.el-counter__title {
  font-weight: 600;
  line-height: 1.3;
  font-size: var(--el-counter-title-size, 16px);
  color: var(--el-counter-title-color, #14201c);
}
.el-counter__description {
  line-height: 1.45;
  max-width: 28rem;
  font-size: 14px;
  color: var(--el-counter-desc-color, #6a7f74);
}
.el-counter-group {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  gap: 24px;
}
@media (max-width: 768px) {
  .el-counter-group {
    grid-template-columns: 1fr !important;
  }
}

