/**
 * AlterEgo Header & Footer — Orbit / Slate.
 * Every visual rule is gated by the switch for its own region.
 * No rules target the article area, sidebars, menus or overall page widths.
 */

/* 01 · Header ------------------------------------------------------------ */
@media (min-width: 720px) {
body.aehf-header-on #header .central-header-zone {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 36px;
  min-height: 172px;
  padding-top: 36px;
  padding-bottom: 36px;
  background-color: #36424f;
  background-image: url("../images/header-orbits.svg"), linear-gradient(112deg, #3e4957 0%, #35414f 58%, #273541 100%);
  background-repeat: no-repeat;
  background-position: right center, center;
  background-size: auto 280px, cover;
  box-shadow: inset 0 -1px 0 rgba(225, 213, 74, .32);
}
body.aehf-header-on #header .central-header-zone::before,
body.aehf-header-on #header .central-header-zone::after {
  display: none;
}
body.aehf-header-on #header .central-header-zone .logo-tagline-group {
  float: none;
  box-sizing: border-box;
  flex: 1 1 380px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
body.aehf-header-on #header .central-header-zone .site-title {
  float: none;
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin: 0 0 8px;
  color: #f7f8fa;
  font-size: clamp(1.75rem, 2.65vw, 2.3rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
body.aehf-header-on #header .central-header-zone .site-title a {
  color: #f7f8fa;
  display: inline-block;
  max-width: 100%;
  line-height: inherit;
}
body.aehf-header-on #header .central-header-zone .site-title img {
  display: block;
  height: auto;
  width: auto;
  max-height: 68px;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
body.aehf-header-on #header .central-header-zone .site-description {
  float: none;
  clear: none;
  display: block;
  width: auto;
  min-width: 0;
  max-width: 680px;
  margin: 0;
  padding: 0;
  color: #d4dce5;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: .008em;
  overflow-wrap: anywhere;
}
/* The base rules remain usable without :has(), with a stacked brand layout. */
body.aehf-header-on #header .central-header-zone .aehf-wordmark {
  margin: 0 0 5px;
  padding: 0;
  color: #f7f8fa;
  font-size: clamp(1.8rem, 2.65vw, 2.35rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
body.aehf-header-on #header .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: 25px;
  row-gap: 7px;
  align-items: center;
}
body.aehf-header-on #header .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) > .site-title {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 220px;
  margin: 0;
}
body.aehf-header-on #header .central-header-zone .logo-tagline-group > .aehf-wordmark {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
}
body.aehf-header-on #header .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) > .site-description {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
body.aehf-header-on #header .central-header-zone #header-widgets {
  max-width: 100%;
  min-width: 0;
}
body.aehf-header-on #header .central-header-zone .site-title a:focus-visible {
  outline: 2px solid #e1d54a;
  outline-offset: 6px;
  border-radius: 4px;
}
body.aehf-header-on.aehf-header-compact #header .central-header-zone {
  min-height: 128px;
  padding-top: 24px;
  padding-bottom: 24px;
  background-size: auto 235px, cover;
}
}

/* Hueman uses its central branding on mobile only in its both-menus layout.
   In the other layouts the theme's separate mobile logo/menu is left alone. */
@media (max-width: 719px) {
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 36px;
  min-height: 172px;
  padding-top: 36px;
  padding-bottom: 36px;
  background-color: #36424f;
  background-image: url("../images/header-orbits.svg"), linear-gradient(112deg, #3e4957 0%, #35414f 58%, #273541 100%);
  background-repeat: no-repeat;
  background-position: right center, center;
  background-size: auto 280px, cover;
  box-shadow: inset 0 -1px 0 rgba(225, 213, 74, .32);
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone::before,
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone::after {
  display: none;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .logo-tagline-group {
  float: none;
  box-sizing: border-box;
  flex: 1 1 380px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-title {
  float: none;
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin: 0 0 8px;
  color: #f7f8fa;
  font-size: clamp(1.75rem, 2.65vw, 2.3rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-title a {
  color: #f7f8fa;
  display: inline-block;
  max-width: 100%;
  line-height: inherit;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-title img {
  display: block;
  height: auto;
  width: auto;
  max-height: 68px;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-description {
  float: none;
  clear: none;
  display: block;
  width: auto;
  min-width: 0;
  max-width: 680px;
  margin: 0;
  padding: 0;
  color: #d4dce5;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: .008em;
  overflow-wrap: anywhere;
}
/* The base rules remain usable without :has(), with a stacked brand layout. */
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .aehf-wordmark {
  margin: 0 0 5px;
  padding: 0;
  color: #f7f8fa;
  font-size: clamp(1.8rem, 2.65vw, 2.35rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: 25px;
  row-gap: 7px;
  align-items: center;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) > .site-title {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 220px;
  margin: 0;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .logo-tagline-group > .aehf-wordmark {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) > .site-description {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone #header-widgets {
  max-width: 100%;
  min-width: 0;
}
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-title a:focus-visible {
  outline: 2px solid #e1d54a;
  outline-offset: 6px;
  border-radius: 4px;
}
body.aehf-header-on.aehf-header-compact #header.both-menus-mobile-on .central-header-zone {
  min-height: 128px;
  padding-top: 24px;
  padding-bottom: 24px;
  background-size: auto 235px, cover;
}
}

/* 02 · Existing footer widgets ----------------------------------------- */
body.aehf-links-on #footer #footer-widgets {
  background-color: #f6f7f7;
  background-image: url("../images/utility-orbits.svg"), linear-gradient(120deg, #f4f6f7, #fafaf5);
  background-repeat: no-repeat;
  background-position: right center, center;
  background-size: auto 245px, cover;
  border-top: 1px solid #e0e5e9;
  border-bottom: 1px solid #e0e5e9;
  color: #3a4654;
}
body.aehf-links-on #footer #footer-widgets > .container-inner > .pad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 18px;
  padding-top: 27px;
  padding-bottom: 27px;
}
body.aehf-links-on #footer #footer-widgets > .container-inner > .pad::before,
body.aehf-links-on #footer #footer-widgets > .container-inner > .pad::after {
  display: none;
}
body.aehf-links-on #footer #footer-widgets > .container-inner > .pad > .grid {
  box-sizing: border-box;
  float: none;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid #dce2e7;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 3px 10px rgba(30, 43, 59, .025);
  color: #3a4654;
  overflow-wrap: anywhere;
}
body.aehf-links-on #footer #footer-widgets .widget {
  margin-bottom: 18px;
  color: #3a4654;
}
body.aehf-links-on #footer #footer-widgets .widget:last-child {
  margin-bottom: 0;
}
body.aehf-links-on #footer #footer-widgets .widget-title {
  color: #283746;
}
body.aehf-links-on #footer #footer-widgets a {
  color: #344456;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.aehf-links-on #footer #footer-widgets a:hover {
  color: #172638;
}
body.aehf-links-on #footer #footer-widgets a:focus-visible {
  outline: 2px solid #465b73;
  outline-offset: 4px;
}
/* Only a proven single-text-link widget is promoted to a full-width link. */
body.aehf-links-on #footer #footer-widgets > .container-inner > .pad > .aehf-simple-link-card {
  padding: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
body.aehf-links-on #footer #footer-widgets .aehf-simple-link-card:hover,
body.aehf-links-on #footer #footer-widgets .aehf-simple-link-card:focus-within {
  border-color: #b7c2ca;
  box-shadow: 0 5px 14px rgba(30, 43, 59, .065);
}
body.aehf-links-on #footer #footer-widgets .aehf-simple-link-card .widget,
body.aehf-links-on #footer #footer-widgets .aehf-simple-link-card .textwidget,
body.aehf-links-on #footer #footer-widgets .aehf-simple-link-card p {
  margin: 0;
  padding: 0;
  border: 0;
}
body.aehf-links-on #footer #footer-widgets a.aehf-utility-link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  width: 100%;
  margin: 0;
  padding: 18px 22px;
  border-radius: 11px;
  color: #344456;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: start;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.aehf-links-on #footer #footer-widgets a.aehf-utility-link::before {
  content: "";
  box-sizing: border-box;
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #e7e6d3;
  border-radius: 10px;
  background: #f8f8ef url("../images/link.svg") center / 21px 21px no-repeat;
}
body.aehf-links-on #footer #footer-widgets a.aehf-icon-privacy::before { background-image: url("../images/privacy.svg"); }
body.aehf-links-on #footer #footer-widgets a.aehf-icon-comments::before { background-image: url("../images/comments.svg"); }
body.aehf-links-on #footer #footer-widgets a.aehf-icon-feed::before { background-image: url("../images/feed.svg"); }
body.aehf-links-on #footer #footer-widgets a.aehf-utility-link::after {
  content: "";
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  background: url("../images/arrow.svg") center / contain no-repeat;
  opacity: .75;
}
body.aehf-links-on #footer #footer-widgets a.aehf-utility-link:focus-visible {
  outline-offset: -4px;
}

/* 03 · Bottom bar ------------------------------------------------------- */
body.aehf-bottom-on #footer #footer-bottom {
  position: relative;
  border-top: 1px solid rgba(225, 213, 74, .36);
  color: #d8dfe7;
  background-color: #2d3742;
  background-image: url("../images/footer-orbits.svg"), linear-gradient(112deg, #35404d, #26323e);
  background-repeat: no-repeat;
  background-position: right center, center;
  background-size: auto 235px, cover;
}
body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 72px;
  padding-bottom: 32px;
}
body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad::before,
body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad::after {
  display: none;
}
body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad > .grid {
  float: none;
  flex: 1 1 280px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}
body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad > .grid.last {
  flex: 0 1 auto;
}
body.aehf-bottom-on #footer #footer-bottom #copyright,
body.aehf-bottom-on #footer #footer-bottom #copyright p {
  margin: 0;
  color: #d8dfe7;
  font-size: .9375rem;
  line-height: 1.65;
}
body.aehf-bottom-on #footer #footer-bottom #credit,
body.aehf-bottom-on #footer #footer-bottom #credit p {
  margin: 5px 0 0;
  color: #b8c4d0;
  font-size: .8125rem;
  line-height: 1.6;
}
body.aehf-bottom-on #footer #footer-bottom a {
  color: #e0e6ed;
}
body.aehf-bottom-on #footer #footer-bottom #credit a,
body.aehf-bottom-on #footer #footer-bottom #copyright a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(224, 230, 237, .4);
}
body.aehf-bottom-on #footer #footer-bottom a:hover {
  color: #f1e778;
}
body.aehf-bottom-on #footer #footer-bottom a:focus-visible {
  outline: 2px solid #eee26d;
  outline-offset: 4px;
}
body.aehf-bottom-on #footer #footer-bottom #back-to-top {
  box-sizing: border-box;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 0 0 -22px;
  border: 1px solid #a39e55;
  border-radius: 50%;
  color: #f0e475;
  background: #35414d;
  box-shadow: 0 4px 12px rgba(15, 25, 39, .14);
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
body.aehf-bottom-on #footer #footer-bottom #back-to-top:hover {
  background-color: #43505d;
  border-color: #e1d54a;
}
body.aehf-bottom-on #footer #footer-bottom #back-to-top i {
  margin: 0;
  line-height: 1;
  color: inherit;
}
body.aehf-bottom-on #footer #footer-bottom .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  float: none;
  margin: 0;
  padding: 0;
}
body.aehf-bottom-on #footer #footer-bottom .social-links li {
  float: none;
  margin: 0;
  padding: 0;
}
body.aehf-bottom-on #footer #footer-bottom .social-links a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(219, 228, 235, .28);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  font-size: 23px;
  text-decoration: none;
}

/* Float the control across a boundary only when BOTH adjacent areas are on.
   Otherwise it stays entirely inside its own bar; an off area stays untouched. */
body.aehf-bottom-on.aehf-links-on #footer #footer-widgets + #footer-bottom #back-to-top { top: -22px; }
body.aehf-bottom-on.aehf-links-on #footer #footer-widgets + #footer-bottom > .container-inner > .pad { padding-top: 36px; }

/* Responsive: the theme still decides when to show its own mobile header. */
@media (min-width: 720px) and (max-width: 800px) {
  body.aehf-header-on #header .central-header-zone {
    min-height: 152px;
    padding-top: 30px;
    padding-bottom: 30px;
    background-size: auto 230px, cover;
    background-position: calc(100% + 115px) center, center;
  }
  body.aehf-header-on #header .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) { column-gap: 19px; }
  body.aehf-header-on #header .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) > .site-title { max-width: 155px; }
  body.aehf-header-on #header .central-header-zone .site-title img { max-height: 60px; }
  body.aehf-links-on #footer #footer-widgets > .container-inner > .pad { gap: 14px; }
}
@media (max-width: 600px) {
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone {
    min-height: 140px;
    padding-top: 26px;
    padding-bottom: 26px;
    background-position: calc(100% + 230px) center, center;
  }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) { column-gap: 16px; row-gap: 6px; }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .logo-tagline-group:has(> .aehf-wordmark) > .site-title { max-width: 95px; }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-title img { max-height: 54px; }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .aehf-wordmark { font-size: 1.65rem; }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-description { font-size: .875rem; line-height: 1.5; }
  body.aehf-header-on.aehf-header-compact #header.both-menus-mobile-on .central-header-zone { min-height: 116px; padding-top: 22px; padding-bottom: 22px; }
  body.aehf-links-on #footer #footer-widgets > .container-inner > .pad { grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 28px; }
  body.aehf-links-on #footer #footer-widgets a.aehf-utility-link { min-height: 76px; padding: 16px 18px; }
  body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad { padding-top: 72px; padding-bottom: 28px; gap: 20px; }
  body.aehf-bottom-on.aehf-links-on #footer #footer-widgets + #footer-bottom > .container-inner > .pad { padding-top: 34px; }
  body.aehf-bottom-on #footer #footer-bottom .social-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  body.aehf-header-on #header .central-header-zone a,
  body.aehf-header-on #header .central-header-zone img,
  body.aehf-links-on #footer #footer-widgets .aehf-simple-link-card,
  body.aehf-links-on #footer #footer-widgets a,
  body.aehf-links-on #footer #footer-widgets a::before,
  body.aehf-links-on #footer #footer-widgets a::after,
  body.aehf-bottom-on #footer #footer-bottom a { transition: none; }
}
@media (forced-colors: active) {
  body.aehf-header-on #header .central-header-zone,
  body.aehf-links-on #footer #footer-widgets,
  body.aehf-bottom-on #footer #footer-bottom { background-image: none; }
  body.aehf-links-on #footer #footer-widgets a.aehf-utility-link::before,
  body.aehf-links-on #footer #footer-widgets a.aehf-utility-link::after { display: none; }
  body.aehf-bottom-on #footer #footer-bottom #back-to-top { border: 1px solid ButtonText; }
}
@media print {
  body.aehf-header-on #header .central-header-zone,
  body.aehf-links-on #footer #footer-widgets,
  body.aehf-bottom-on #footer #footer-bottom { background: transparent; box-shadow: none; }
  body.aehf-header-on #header .central-header-zone .site-title,
  body.aehf-header-on #header .central-header-zone .site-title a,
  body.aehf-header-on #header .central-header-zone .aehf-wordmark,
  body.aehf-header-on #header .central-header-zone .site-description,
  body.aehf-bottom-on #footer #footer-bottom #copyright p,
  body.aehf-bottom-on #footer #footer-bottom #credit p,
  body.aehf-bottom-on #footer #footer-bottom a { color: #222; }
  body.aehf-bottom-on #footer #footer-bottom #back-to-top { display: none; }
}

/* 04 · RC2 graphical image treatment ----------------------------------- */
/* Uses bundled local PNGs derived from the approved AlterEgo artwork. */
@media (min-width: 720px) {
  body.aehf-header-on #header .central-header-zone {
    position: relative;
    display: block;
    min-height: 193px;
    padding: 0;
    background: #0d1724 url("../images/header-graphic.png") center center / cover no-repeat;
    box-shadow: inset 0 -1px 0 rgba(225, 213, 74, .28);
    overflow: hidden;
  }
  body.aehf-header-on #header .central-header-zone .logo-tagline-group {
    position: relative;
    display: block;
    min-height: 193px;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  body.aehf-header-on #header .central-header-zone .site-title {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(48%, 760px);
    height: 100%;
    margin: 0;
    z-index: 2;
  }
  body.aehf-header-on #header .central-header-zone .site-title a {
    display: block;
    width: 100%;
    height: 100%;
  }
  body.aehf-header-on #header .central-header-zone .site-title img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    opacity: 0;
  }
  body.aehf-header-on.aehf-header-compact #header .central-header-zone,
  body.aehf-header-on.aehf-header-compact #header .central-header-zone .logo-tagline-group {
    min-height: 170px;
  }
}
@media (max-width: 719px) {
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone {
    position: relative;
    display: block;
    min-height: 140px;
    padding: 0;
    background: #0d1724 url("../images/header-graphic.png") center center / cover no-repeat;
    box-shadow: inset 0 -1px 0 rgba(225, 213, 74, .28);
    overflow: hidden;
  }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .logo-tagline-group {
    position: relative;
    display: block;
    min-height: 140px;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-title {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    height: 100%;
    margin: 0;
    z-index: 2;
  }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-title a {
    display: block;
    width: 100%;
    height: 100%;
  }
  body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-title img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    opacity: 0;
  }
  body.aehf-header-on.aehf-header-compact #header.both-menus-mobile-on .central-header-zone,
  body.aehf-header-on.aehf-header-compact #header.both-menus-mobile-on .central-header-zone .logo-tagline-group {
    min-height: 124px;
  }
}
body.aehf-header-on #header .central-header-zone .aehf-wordmark,
body.aehf-header-on #header .central-header-zone .site-description,
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .aehf-wordmark,
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone .site-description {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.aehf-header-on #header .central-header-zone #header-widgets,
body.aehf-header-on #header.both-menus-mobile-on .central-header-zone #header-widgets {
  display: none;
}

/* 05 · RC4 link grid and continuous footer panorama ---------------------
 * The header above is byte-identical to RC3. Rules below are footer-only.
 * Important resets are restricted to plugin-owned nodes or structurally proved
 * plain panel wrappers; they do not reset the theme's other widgets/menus.
 */
body.aehf-links-on #footer #footer-widgets {
  background: #0e1924;
  border-top: 1px solid rgba(227, 198, 62, .24);
  border-bottom: 0;
  color: #e5ebef;
}
body.aehf-links-on #footer #footer-widgets > .container-inner > .pad {
  display: block;
  padding: 18px 24px;
}
body.aehf-links-on #footer #footer-widgets > .container-inner > .pad > .grid {
  background: transparent;
  box-shadow: none;
  color: #e5ebef;
  padding: 12px;
  border: 0;
}
body.aehf-links-on #footer #footer-widgets .widget,
body.aehf-links-on #footer #footer-widgets .widget-title { color: #e5ebef; }
body.aehf-links-on #footer #footer-widgets a { color: #f2d86c; }
body.aehf-links-on #footer #footer-widgets a:hover { color: #fff1aa; }
body.aehf-links-on #footer #footer-widgets a:focus-visible {
  outline: 3px solid #ffe270;
  outline-offset: 3px;
}
body.aehf-links-on #footer #footer-widgets.aehf-panel-grid,
body.aehf-links-on #footer #footer-widgets .aehf-panel-grid {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 16px !important;
  align-items: center !important;
  justify-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 18px 24px !important;
  column-count: auto !important;
  position: relative !important;
  overflow: visible !important;
  background: transparent !important;
}
body.aehf-links-on #footer #footer-widgets .aehf-panel-flow {
  display: contents !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  list-style: none !important;
}
body.aehf-links-on #footer #footer-widgets .aehf-panel-flow::before,
body.aehf-links-on #footer #footer-widgets .aehf-panel-flow::after,
body.aehf-links-on #footer #footer-widgets .aehf-panel-grid::before,
body.aehf-links-on #footer #footer-widgets .aehf-panel-grid::after,
body.aehf-links-on #footer #footer-widgets.aehf-panel-grid::before,
body.aehf-links-on #footer #footer-widgets.aehf-panel-grid::after { display: none !important; content: none !important; }
body.aehf-links-on #footer #footer-widgets .aehf-panel-grid br { display: none !important; }
body.aehf-links-on #footer #footer-widgets a.aehf-panel-link {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  float: none !important;
  width: 100% !important;
  max-width: 724px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 16px !important;
  border: 1px solid rgba(226, 201, 88, .35) !important;
  border-radius: 3px !important;
  background: #14212d !important;
  box-shadow: none !important;
  text-indent: 0 !important;
  white-space: normal !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  color: #f5e6a0 !important;
  overflow: visible !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: filter .15s ease;
}
body.aehf-links-on #footer #footer-widgets a.aehf-panel-link::before,
body.aehf-links-on #footer #footer-widgets a.aehf-panel-link::after { display: none !important; content: none !important; }
body.aehf-links-on #footer #footer-widgets a.aehf-panel-link.aehf-panel-ready {
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}
body.aehf-links-on #footer #footer-widgets .aehf-panel-image { display: none !important; }
body.aehf-links-on #footer #footer-widgets .aehf-panel-ready > .aehf-panel-image {
  display: block !important;
  position: static !important;
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}
body.aehf-links-on #footer #footer-widgets .aehf-panel-ready > .aehf-panel-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.aehf-links-on #footer #footer-widgets a.aehf-panel-link:hover { filter: brightness(1.1); }
body.aehf-links-on #footer #footer-widgets a.aehf-panel-link:focus-visible {
  outline: 3px solid #ffe270 !important;
  outline-offset: 3px !important;
}

/* One full-width image, without any cover crop, gradient or dark overlay. */
body.aehf-bottom-on #footer #footer-bottom {
  position: relative;
  background: #101a24;
  border-top: 1px solid rgba(227, 198, 62, .2);
  color: #edf0f1;
}
body.aehf-bottom-on #footer #footer-bottom > .container-inner {
  position: relative;
  background: transparent;
  background-image: none;
  min-width: 0;
}
body.aehf-bottom-on #footer #footer-bottom > .container-inner::before,
body.aehf-bottom-on #footer #footer-bottom > .container-inner::after { display: none; }
body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad,
body.aehf-bottom-on.aehf-links-on #footer #footer-widgets + #footer-bottom > .container-inner > .pad {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 68px 28px 22px;
  background: transparent;
}
body.aehf-bottom-on #footer #footer-bottom.aehf-panorama-ready > .container-inner > .pad {
  padding-top: 16px !important;
}
body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad > .grid {
  box-sizing: border-box;
  float: none;
  width: auto;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad > .grid.last {
  flex: 0 1 auto;
}
body.aehf-bottom-on #footer #footer-bottom #copyright,
body.aehf-bottom-on #footer #footer-bottom #credit {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}
body.aehf-bottom-on #footer #footer-bottom #copyright::before { display: none; }
body.aehf-bottom-on #footer #footer-bottom #copyright,
body.aehf-bottom-on #footer #footer-bottom #copyright p { font-size: .9375rem; line-height: 1.6; color: #edf0f1; margin: 0; }
body.aehf-bottom-on #footer #footer-bottom #credit,
body.aehf-bottom-on #footer #footer-bottom #credit p { font-size: .8125rem; line-height: 1.6; color: #c4ced6; margin: 4px 0 0; }
body.aehf-bottom-on #footer #footer-bottom #credit a,
body.aehf-bottom-on #footer #footer-bottom #copyright a { color: #f1d65e; text-decoration: underline; text-underline-offset: 3px; }
body.aehf-bottom-on #footer #footer-bottom #back-to-top,
body.aehf-bottom-on.aehf-links-on #footer #footer-widgets + #footer-bottom #back-to-top {
  top: 12px;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: 0 0 0 -22px;
  padding: 0;
  color: #ffe071;
  background: #172633;
  border: 1px solid #6c704e;
  border-radius: 5px;
  box-shadow: none;
}
body.aehf-bottom-on #footer #footer-bottom .social-links {
  display: flex;
  flex-wrap: wrap;
  float: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
}
body.aehf-bottom-on #footer #footer-bottom .social-links li { list-style: none; margin: 0; padding: 0; float: none; }
body.aehf-bottom-on #footer #footer-bottom .social-links a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  height: auto;
  padding: 6px;
  margin: 0;
  border: 1px solid rgba(221, 226, 232, .22);
  border-radius: 5px;
  color: #f1d65e;
  background: transparent;
  font-size: 23px;
  opacity: 1;
}
body.aehf-bottom-on #footer #footer-bottom .aehf-empty-control-slot { display: none !important; }
body.aehf-bottom-on #footer #footer-bottom .aehf-footer-stage {
  display: none;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}
body.aehf-bottom-on #footer #footer-bottom .aehf-footer-stage.aehf-stage-ready { display: block; }
body.aehf-bottom-on #footer #footer-bottom .aehf-footer-stage > img.aehf-footer-panorama {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none;
}
/* The live anchors sit exactly over the painted controls, not the whole footer.
   Their 44px minimum touch area remains usable even on a narrow phone screen. */
body.aehf-bottom-on #footer #footer-bottom #back-to-top.aehf-panorama-top,
body.aehf-bottom-on #footer #footer-bottom a.aehf-panorama-rss {
  box-sizing: border-box !important;
  display: block !important;
  position: absolute !important;
  z-index: 2 !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.aehf-bottom-on #footer #footer-bottom #back-to-top.aehf-panorama-top {
  top: 6% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 6% !important;
  height: 72% !important;
  transform: translateX(-50%) !important;
}
body.aehf-bottom-on #footer #footer-bottom a.aehf-panorama-rss {
  right: 1% !important;
  bottom: 8% !important;
  left: auto !important;
  top: auto !important;
  width: 7% !important;
  height: 50% !important;
  transform: none !important;
}
body.aehf-bottom-on #footer #footer-bottom .aehf-panorama-top > i,
body.aehf-bottom-on #footer #footer-bottom .aehf-panorama-rss > i,
body.aehf-bottom-on #footer #footer-bottom .aehf-panorama-top > img,
body.aehf-bottom-on #footer #footer-bottom .aehf-panorama-rss > img { visibility: hidden !important; }
body.aehf-bottom-on #footer #footer-bottom a:focus-visible { outline: 3px solid #ffe270 !important; outline-offset: 2px !important; }
body.aehf-bottom-on #footer #footer-bottom .aehf-panorama-top:hover,
body.aehf-bottom-on #footer #footer-bottom .aehf-panorama-rss:hover { outline: 1px solid rgba(255, 225, 112, .5); outline-offset: 1px; }
@media (max-width: 719px) {
  body.aehf-links-on #footer #footer-widgets.aehf-panel-grid,
  body.aehf-links-on #footer #footer-widgets .aehf-panel-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }
  body.aehf-bottom-on #footer #footer-bottom > .container-inner > .pad,
  body.aehf-bottom-on.aehf-links-on #footer #footer-widgets + #footer-bottom > .container-inner > .pad { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.aehf-links-on #footer #footer-widgets a.aehf-panel-link { transition: none; }
}
@media (forced-colors: active), print {
  body.aehf-links-on #footer #footer-widgets,
  body.aehf-bottom-on #footer #footer-bottom { background: transparent; }
  body.aehf-links-on #footer #footer-widgets .aehf-panel-ready > .aehf-panel-image,
  body.aehf-bottom-on #footer #footer-bottom .aehf-footer-stage > img.aehf-footer-panorama { display: none !important; }
  body.aehf-links-on #footer #footer-widgets .aehf-panel-ready > .aehf-panel-label {
    position: static !important; width: auto !important; height: auto !important;
    clip: auto !important; clip-path: none !important; margin: 0 !important;
    white-space: normal !important; overflow: visible !important;
  }
  body.aehf-links-on #footer #footer-widgets a.aehf-panel-link.aehf-panel-ready {
    padding: 12px !important; border: 1px solid currentColor !important; color: LinkText !important;
  }
  body.aehf-bottom-on #footer #footer-bottom .aehf-footer-stage.aehf-stage-ready {
    display: flex; justify-content: center; gap: 16px; padding: 12px 0;
  }
  body.aehf-bottom-on #footer #footer-bottom #back-to-top.aehf-panorama-top,
  body.aehf-bottom-on #footer #footer-bottom a.aehf-panorama-rss {
    position: static !important; width: auto !important; height: auto !important;
    transform: none !important; color: LinkText !important; font-size: 1rem !important;
    padding: 12px !important; border: 1px solid currentColor !important; line-height: 1.5;
  }
  body.aehf-bottom-on #footer #footer-bottom #back-to-top.aehf-panorama-top::after { content: 'Back to top'; }
  body.aehf-bottom-on #footer #footer-bottom a.aehf-panorama-rss::after { content: 'RSS feed'; }
}
@media print {
  body.aehf-bottom-on #footer #footer-bottom .aehf-footer-stage { display: none !important; }
  body.aehf-links-on #footer #footer-widgets a.aehf-panel-link.aehf-panel-ready,
  body.aehf-bottom-on #footer #footer-bottom #credit,
  body.aehf-bottom-on #footer #footer-bottom #copyright { color: #222 !important; }
}

/* Standard desktop footer: live text occupies the artwork's cleared original
   credit position. There is NO opaque panel behind it. Extra content and mobile
   keep the normal readable row below the uncropped image. */
@media (min-width: 1000px) {
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay > .container-inner > .pad {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    pointer-events: none;
  }
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay > .container-inner > .pad > .grid {
    position: absolute;
    left: 5.3%;
    bottom: 13%;
    width: 36%;
    max-width: 36%;
    pointer-events: auto;
  }
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay > .container-inner > .pad > .grid.last { display: none; }
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay #copyright,
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay #copyright p { font-size: clamp(11px, 1.04vw, 15px); line-height: 1.4; }
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay #credit,
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay #credit p { font-size: clamp(10px, .94vw, 13px); line-height: 1.4; margin-top: 4px; }
}
@media (forced-colors: active), print {
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay > .container-inner > .pad {
    position: static !important; height: auto !important; padding: 16px 24px !important; pointer-events: auto;
  }
  body.aehf-bottom-on #footer #footer-bottom.aehf-live-overlay > .container-inner > .pad > .grid {
    position: static; width: auto; max-width: 100%;
  }
}

/* 06 · RC5 independent blending ----------------------------------------
 * Zero leaves every RC4 visual rule above in control.
 * Positive levels lift shadows, soften contrast and mute saturation rather
 * than fading entire areas. The original artwork files are not modified.
 * These rules are screen-only so the existing print/forced-colour fallbacks
 * cannot be overridden by the tone controls.
 */
@media screen and (forced-colors: none) {
  body.aehf-header-on.aehf-header-blended #header .central-header-zone {
    background-color: var(--aehf-header-surface);
    box-shadow: inset 0 -1px 0 rgba(231, 233, 236, .2);
  }
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets,
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets.aehf-panel-grid {
    background-color: var(--aehf-links-surface) !important;
    border-top-color: rgba(231, 233, 236, .22);
    color: #f4f6f7;
  }
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets > .container-inner > .pad > .grid,
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets .widget,
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets .widget-title {
    color: #f4f6f7;
  }
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets a { color: #fff0af; }
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets a:hover { color: #fff7d5; }
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets a.aehf-panel-link:not(.aehf-panel-ready) {
    background: var(--aehf-links-card) !important;
    border-color: rgba(231, 233, 236, .3) !important;
    color: #fff3bf !important;
  }
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets .aehf-panel-ready > .aehf-panel-image {
    filter: var(--aehf-links-filter) !important;
    transition: filter .15s ease;
  }
  /* Keep actual link text and focus rings at full contrast, including on hover. */
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets a.aehf-panel-link,
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets a.aehf-panel-link:hover { filter: none; }
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets a.aehf-panel-ready:hover > .aehf-panel-image {
    filter: var(--aehf-links-filter) brightness(1.035) !important;
  }
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom {
    background-color: var(--aehf-footer-surface);
    border-top-color: rgba(231, 233, 236, .22);
    color: #f4f6f7;
  }
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom .aehf-footer-stage > img.aehf-footer-panorama {
    filter: var(--aehf-footer-filter) !important;
  }
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #copyright,
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #copyright p,
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #credit,
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #credit p { color: #f4f6f7; }
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #credit a,
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #copyright a,
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom .social-links a { color: #fff0af; }
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #credit a:hover,
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #copyright a:hover { color: #fff7d5; }
  body.aehf-bottom-on.aehf-footer-blended #footer #footer-bottom #back-to-top:not(.aehf-panorama-top) {
    background: var(--aehf-footer-card);
    border-color: rgba(231, 233, 236, .4);
  }
}
/* Filter the header's artwork layer only. Navigation and the live home-link
 * target retain their existing DOM, dimensions, contrast and hit-testing.
 * Both selectors follow the exact RC4 central-branding breakpoints. */
@media screen and (min-width: 720px) and (forced-colors: none) {
  body.aehf-header-on.aehf-header-blended #header .central-header-zone { background-image: none; }
  body.aehf-header-on.aehf-header-blended #header .central-header-zone::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0d1724 url('../images/header-graphic.png') center center / cover no-repeat;
    filter: var(--aehf-header-filter);
    pointer-events: none;
  }
  body.aehf-header-on.aehf-header-blended #header .central-header-zone .logo-tagline-group { z-index: 1; }
}
@media screen and (max-width: 719px) and (forced-colors: none) {
  body.aehf-header-on.aehf-header-blended #header.both-menus-mobile-on .central-header-zone { background-image: none; }
  body.aehf-header-on.aehf-header-blended #header.both-menus-mobile-on .central-header-zone::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0d1724 url('../images/header-graphic.png') center center / cover no-repeat;
    filter: var(--aehf-header-filter);
    pointer-events: none;
  }
  body.aehf-header-on.aehf-header-blended #header.both-menus-mobile-on .central-header-zone .logo-tagline-group { z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.aehf-links-on.aehf-links-blended #footer #footer-widgets .aehf-panel-ready > .aehf-panel-image { transition: none; }
}
