/*
CTC Separate Stylesheet
Updated: 2026-08-23
*/

/* =========================================
   Velopedia global footer
   Keeps Astra's Footer Builder content while
   replacing its loose desktop and stacked
   mobile layouts with a compact system.
   ========================================= */

#colophon .site-below-footer-wrap[data-section="section-below-footer-builder"] {
  padding: 24px 0 !important;
}

#colophon .site-below-footer-wrap[data-section="section-below-footer-builder"]
  .ast-builder-grid-row-container-inner {
  width: 100%;
}

#colophon .site-below-footer-wrap[data-section="section-below-footer-builder"]
  .site-below-footer-inner-wrap {
  min-height: 0 !important;
  padding-right: 24px;
  padding-left: 24px;
}

#colophon .site-below-footer-wrap[data-section="section-below-footer-builder"]
  .site-footer-section-1 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  margin: 0 !important;
}

#colophon .footer-widget-area[data-section="section-footer-menu"],
#colophon .footer-bar-navigation,
#colophon .footer-nav-wrap {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}

#colophon #astra-footer-menu {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px 24px;
  width: 100%;
}

#colophon #astra-footer-menu .menu-item {
  display: block;
  margin: 0;
}

#colophon #astra-footer-menu .menu-item > .menu-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 32px;
  height: auto;
  margin: 0 !important;
  padding: 4px 0 !important;
  color: #bfc2e4;
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
}

#colophon #astra-footer-menu .menu-item:hover > .menu-link,
#colophon #astra-footer-menu .menu-item > .menu-link:focus,
#colophon #astra-footer-menu .menu-item > .menu-link:focus-visible {
  color: #ffffff;
}

#colophon #astra-footer-menu .menu-item > .menu-link:focus-visible {
  outline: 2px solid #69b7ff;
  outline-offset: 4px;
  border-radius: 2px;
}

#colophon .site-footer-section-1
  > .ast-footer-copyright.ast-builder-layout-element {
  display: block !important;
  justify-self: end;
  width: auto !important;
  margin: 0 !important;
}

#colophon .site-footer-section-1
  > .ast-footer-copyright.ast-builder-layout-element
  > .ast-footer-copyright {
  color: #bfc2e4;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right !important;
  white-space: nowrap;
}

#colophon .ast-footer-copyright p {
  margin: 0;
}

#colophon .ast-footer-copyright p:empty {
  display: none;
}

@media (max-width: 921px) {
  #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"] {
    padding: 26px 0 !important;
  }

  #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"]
    .site-footer-section-1 {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  #colophon #astra-footer-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 32px;
  }

  #colophon #astra-footer-menu .menu-item {
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  #colophon #astra-footer-menu .menu-item:last-child {
    grid-column: 1 / -1;
  }

  #colophon #astra-footer-menu .menu-item > .menu-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    padding: 8px 0 !important;
  }

  #colophon .site-footer-section-1
    > .ast-footer-copyright.ast-builder-layout-element {
    justify-self: stretch;
    width: 100% !important;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  #colophon .site-footer-section-1
    > .ast-footer-copyright.ast-builder-layout-element
    > .ast-footer-copyright {
    text-align: left !important;
    white-space: normal;
  }
}

@media (max-width: 544px) {
  #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"] {
    padding: 22px 0 !important;
  }

  #colophon .site-below-footer-wrap[data-section="section-below-footer-builder"]
    .site-below-footer-inner-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  #colophon #astra-footer-menu {
    column-gap: 20px;
  }

  #colophon #astra-footer-menu .menu-item > .menu-link {
    min-height: 38px;
    padding: 7px 0 !important;
  }

  #colophon .site-footer-section-1
    > .ast-footer-copyright.ast-builder-layout-element {
    padding-top: 16px;
  }
}
