/* TED Logo Swap v1.0.5 — footer alignment tweak */
:root {
  --ted-red: #3760ca !important;
  --ted-ip-red: #3760ca !important;
  --ted-blue: #3760ca !important;
}

/* Hard-coded legacy red accents that are not variable-driven. */
body.ted-divi-generated-page #top-menu li.current-menu-item > a,
body.ted-divi-generated-page #top-menu a:hover,
body.ted-divi-generated-page .mobile_menu_bar:before {
  color: #3760ca !important;
}
body.ted-divi-generated-page .et_mobile_menu {
  border-top-color: #3760ca !important;
}

/* Gravity Forms replacement plugin used literal #ea1f24 values. */
.ted-gf-divi-module input:focus,
.ted-gf-divi-module textarea:focus,
.ted-gf-divi-module select:focus,
.ted-gf-divi-module .gfield_error input,
.ted-gf-divi-module .gfield_error textarea {
  border-color: #3760ca !important;
}
.ted-gf-divi-module .gfield_validation_message,
.ted-gf-divi-module .validation_message,
.ted-gf-divi-module .gform_validation_errors {
  color: #3760ca !important;
}
.ted-gf-divi-module .gform_footer input[type="submit"],
.ted-gf-divi-module .gform_footer button,
.ted-gf-divi-module .gform_button {
  background: #3760ca !important;
  border-color: #3760ca !important;
}
.ted-gf-divi-module .gform_footer input[type="submit"]:hover,
.ted-gf-divi-module .gform_footer button:hover,
.ted-gf-divi-module .gform_button:hover {
  color: #3760ca !important;
}
.ted-gf-divi-module .gform_confirmation_wrapper,
.ted-gf-divi-module .gform_confirmation_message {
  border-left-color: #3760ca !important;
}

/* Defensive overrides in case any legacy section/plugin hard-coded the old red. */
.ted-red-section,
.ted-ip-red-diagonal,
.ted-ip-red-solid {
  background-color: #3760ca !important;
}
.ted-kicker,
.ted-ip-kicker,
.ted-talent-meta,
.ted-review-credit,
.ted-ip-review-index,
.ted-ip-step-number,
.ted-ip-direct-cards span,
.ted-ip-direct-location {
  color: #3760ca !important;
}
.ted-ip-kicker-black,
.ted-red-section .ted-kicker,
.ted-ip-red-diagonal .ted-ip-kicker {
  color: #000 !important;
}

/* New vertical footer mark: about 25% smaller than the previous footer logo footprint. */
.ted-footer-logo img {
  width: auto !important;
  max-width: 195px !important;
  height: auto !important;
}
.ted-ip-footer-logo img {
  width: auto !important;
  max-width: 188px !important;
  height: auto !important;
}


/* v1.0.4 — exact transparent NBG header logo; scaled for ~5% more visible height than v1.0.2 */
body.ted-divi-generated-page #logo {
  max-width: 480px !important;
  max-height: 136px !important;
  position: relative !important;
  top: -15px !important;
}
body.ted-divi-generated-page.ted-header-scrolled #logo {
  max-width: 332px !important;
  max-height: 95px !important;
  top: -15px !important;
}
@media (max-width: 980px) {
  body.ted-divi-generated-page #logo {
    max-width: 354px !important;
    max-height: 108px !important;
    top: -15px !important;
  }
  body.ted-divi-generated-page.ted-header-scrolled #logo {
    max-width: 267px !important;
    max-height: 82px !important;
    top: -15px !important;
  }
}


/* v1.0.4 hard visual source override: exact user-supplied transparent NBG asset. */
body.ted-divi-generated-page #logo {
  content: url(../images/ted-logo-horizontal-nbg-v4.png) !important;
}


/* v1.0.5 — raise the left-hand footer column about 25px sitewide. */
.ted-footer-row > .et_pb_column:first-child,
.ted-ip-footer-row > .et_pb_column:first-child {
  position: relative !important;
  top: -25px !important;
}

@media (max-width: 980px) {
  .ted-footer-row > .et_pb_column:first-child,
  .ted-ip-footer-row > .et_pb_column:first-child {
    top: -15px !important;
  }
}
