/* Shared footer: white directory, midnight utility and legal band. */
html body #autopilot-footer.aw-foot[data-aw-footer] {
  background: #0B1020 !important;
}
#autopilot-footer > .aw-f-shell > .aw-f-main-grid {
  position: relative;
  isolation: isolate;
  background: #FFFFFF;
}
#autopilot-footer > .aw-f-shell > .aw-f-main-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #FFFFFF;
  box-shadow: 0 0 0 100vmax #FFFFFF;
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}
#autopilot-footer :is(.aw-f-utility,.aw-f-bottom) {
  color-scheme: dark;
  --aw-f-line: rgba(164,217,255,.24);
  --aw-f-blue: #ADE0FF;
  background: #0B1020;
  border-color: rgba(164,217,255,.24) !important;
  color: #C4D3E3 !important;
}
#autopilot-footer .aw-f-bottom :is(p,strong,a) {
  color: #C4D3E3 !important;
}
#autopilot-footer .aw-f-bottom .aw-f-legal a {
  color: #C4D3E3 !important;
}
#autopilot-footer .aw-f-bottom :is(strong,.aw-f-publisher a) {
  color: #F4F7FE !important;
}
#autopilot-footer .aw-f-utility :is(.aw-f-control,.aw-f-top) {
  color: #E8F3FF !important;
}
#autopilot-footer .aw-f-utility :is(.aw-f-control,.aw-f-top) svg {
  color: #E8F3FF !important;
}
#autopilot-footer .aw-f-utility :is(.aw-f-control,.aw-f-top svg) {
  background: #14213A !important;
  border-color: rgba(164,217,255,.38) !important;
}
#autopilot-footer .aw-f-utility :is(.aw-f-control,.aw-f-top):is(:hover,:focus-visible) {
  color: #FFFFFF !important;
  background: #1B2B45 !important;
}
#autopilot-footer .aw-f-bottom a:is(:hover,:focus-visible) {
  color: #ADE0FF !important;
  text-decoration: underline;
}
#autopilot-footer :is(.aw-f-utility,.aw-f-bottom) :is(a,summary,button):focus-visible {
  outline: 2px solid #ADE0FF;
  outline-offset: 3px;
}
/* Reserve space for both blocks when the main footer stacks on smaller screens. */
@media(max-width:1100px) {
  #autopilot-footer .aw-f-main-grid > .aw-f-intro {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(220px,280px);
    align-items: center;
  }
}
@media(max-width:700px) {
  #autopilot-footer .aw-f-main-grid > .aw-f-intro {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Stable identity selector: translated accessible labels never set logo size. */
@layer autopilot-public-brand {
  body.apn-document #autopilot-header .aw-brand img {
    width: 215px !important;
  }
  @media (min-width:1020px) and (max-width:1219px) {
    body.apn-document #autopilot-header .aw-brand img { width:170px !important; }
  }
  @media (min-width:601px) and (max-width:1019px) {
    body.apn-document #autopilot-header .aw-brand img { width:197px !important; }
  }
  @media (max-width:600px) {
    body.apn-document #autopilot-header .aw-brand {
      flex: 0 1 clamp(113px,34vw,163px) !important;
      min-width: 0;
    }
    body.apn-document #autopilot-header .aw-brand img { width:100% !important; }
  }
}
