/* B144: GACC line in the beige footer, slightly larger and in site petrol/gold.
   Certificate lightbox from B143. Footer social circles go gold on hover.
   Does not change existing CSS files. */

.sv-original-footer .sv-gacc-membership {
  width: 80%;
  max-width: 1320px;
  margin: -60px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px 8px;
  box-sizing: border-box;
  font: 400 15px/1.8 Montserrat, Arial, sans-serif;
  color: #1d5255;
  text-align: left;
}

.sv-original-footer .sv-gacc-membership__trigger,
.sv-original-footer .sv-gacc-membership__spotlight {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  display: inline;
  font: 400 15px/1.8 Montserrat, Arial, sans-serif;
  color: #1d5255 !important;
  text-decoration: none;
  cursor: pointer;
  text-align: inherit;
  transition: color 0.25s ease;
}

.sv-original-footer .sv-gacc-membership__trigger:hover,
.sv-original-footer .sv-gacc-membership__trigger:focus-visible,
.sv-original-footer .sv-gacc-membership__spotlight:hover,
.sv-original-footer .sv-gacc-membership__spotlight:focus-visible {
  color: #955e03 !important;
  text-decoration: underline;
}

.sv-original-footer .sv-gacc-membership__trigger:focus-visible,
.sv-original-footer .sv-gacc-membership__spotlight:focus-visible {
  outline: 2px solid #1d5255;
  outline-offset: 3px;
}

.sv-original-footer .sv-gacc-membership__aside {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.sv-original-footer .sv-gacc-membership__sep {
  font: 400 15px/1.8 Montserrat, Arial, sans-serif;
  color: #1d5255;
  opacity: 0.7;
  transition: color 0.25s ease;
}

.sv-original-footer .sv-gacc-membership:hover .sv-gacc-membership__sep,
.sv-original-footer .sv-gacc-membership:focus-within .sv-gacc-membership__sep {
  color: #955e03;
}

/* Section 0 uses a 60px flex gap. Cancel the extra gap created by the new child
   so the line sits in the existing space under the city bar (which already has
   24px padding-bottom) and just above the disclaimer rule. */
footer.sv-original-footer .sv-gacc-membership ~ .et_pb_row_1_tb_footer.et_pb_row {
  margin-top: -36px !important;
}

@media (max-width: 980px) {
  .sv-original-footer .sv-gacc-membership {
    width: 90%;
  }
}

/* Footer social icons (Facebook, Instagram, LinkedIn): the petrol is the
   circle background (--gcid-primary-color / --sv-petrol #1d5255). The glyph
   is already white. Hover and keyboard focus tint the circle to site gold
   (--sv-gold #955e03). Specificity beats the Divi !important background. */
footer.sv-original-footer .et_pb_social_media_follow_network[class*="_tb_footer"] a.icon {
  transition: background-color 0.25s ease;
}

footer.sv-original-footer .et_pb_social_media_follow_network[class*="_tb_footer"] a.icon:hover,
footer.sv-original-footer .et_pb_social_media_follow_network[class*="_tb_footer"] a.icon:focus-visible {
  background-color: #955e03 !important;
}

footer.sv-original-footer .et_pb_social_media_follow_network[class*="_tb_footer"] a.icon:hover:before,
footer.sv-original-footer .et_pb_social_media_follow_network[class*="_tb_footer"] a.icon:focus-visible:before {
  color: #fff;
}

/* Do not set display on <dialog>: that breaks the native modal focus trap. */
.sv-gacc-lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  margin: auto;
  box-sizing: border-box;
  width: min(1100px, calc(100% - 32px));
  max-width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
}

.sv-gacc-lightbox::backdrop {
  background: rgba(10, 22, 24, 0.84);
}

.sv-gacc-lightbox__panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  padding: 52px 16px 16px;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.sv-gacc-lightbox__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sv-gacc-lightbox__panel img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 92px);
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
}

/* Beat body.sv-site :focus-visible (gold 3px / 5px offset) and default button chrome. */
body.sv-site .sv-gacc-lightbox__close,
.sv-gacc-lightbox__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  color: #1d5255 !important;
  font: 400 28px/1 "Montserrat", Helvetica, Arial, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.sv-site .sv-gacc-lightbox__close:hover,
body.sv-site .sv-gacc-lightbox__close:active,
body.sv-site .sv-gacc-lightbox__close:focus,
.sv-gacc-lightbox__close:hover,
.sv-gacc-lightbox__close:active,
.sv-gacc-lightbox__close:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #1d5255 !important;
  outline: none;
}

body.sv-site .sv-gacc-lightbox__close:focus-visible,
.sv-gacc-lightbox__close:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 2px solid #1d5255;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .sv-gacc-lightbox {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: auto;
    max-height: calc(100vh - 32px);
  }

  .sv-gacc-lightbox__panel {
    width: 100%;
    max-height: calc(100vh - 32px);
    padding: 56px 16px 16px;
  }

  .sv-gacc-lightbox__panel img {
    max-height: calc(100vh - 104px);
  }

  body.sv-site .sv-gacc-lightbox__close,
  .sv-gacc-lightbox__close {
    top: 6px;
    right: 6px;
  }
}

@supports (height: 100dvh) {
  .sv-gacc-lightbox,
  .sv-gacc-lightbox__panel {
    max-height: calc(100dvh - 32px);
  }

  .sv-gacc-lightbox__panel img {
    max-height: calc(100dvh - 92px);
  }

  @media (max-width: 767px) {
    .sv-gacc-lightbox__panel img {
      max-height: calc(100dvh - 104px);
    }
  }

  @media (max-height: 500px) {
    .sv-gacc-lightbox__panel img {
      max-height: calc(100dvh - 104px);
    }
  }
}

@media (max-height: 500px) {
  .sv-gacc-lightbox,
  .sv-gacc-lightbox__panel {
    max-height: calc(100vh - 32px);
  }

  .sv-gacc-lightbox__panel {
    padding: 56px 16px 16px;
    overflow: auto;
  }

  .sv-gacc-lightbox__panel img {
    max-height: calc(100vh - 104px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-gacc-lightbox,
  .sv-gacc-lightbox::backdrop,
  .sv-original-footer .sv-gacc-membership__trigger,
  .sv-original-footer .sv-gacc-membership__spotlight,
  .sv-original-footer .sv-gacc-membership__sep,
  footer.sv-original-footer .et_pb_social_media_follow_network[class*="_tb_footer"] a.icon {
    transition: none;
  }
}
