/* Shared Manifested Identity navigation and footer styles. Load after page CSS. */
:root {
  --navh: 92px;
  --isp-unified-ink: #192d28;
  --isp-unified-muted: #4a635b;
  --isp-unified-line: #dce5e2;
  --isp-unified-bg: #f8faf9;
}

#nav,
body > nav:not([id]),
#isp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: var(--navh);
  min-height: var(--navh);
  background: rgba(248, 250, 249, .95);
  border-bottom: 1px solid #ebf0ee;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#nav .wrap,
body > nav:not([id]) > .navrow,
#isp-nav .isp-nav-inner {
  box-sizing: border-box;
  width: min(100%, 1320px);
  max-width: 1320px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#nav .logo,
body > nav:not([id]) .logo,
#isp-nav .isp-logo {
  display: flex;
  align-items: center;
  flex: none;
}

#nav .logo img,
body > nav:not([id]) .logo img,
#isp-nav .isp-logo img {
  display: block;
  width: 240px;
  height: 82px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

/* Keep the empty hamburger wrapper out of the desktop flex layout. */
#nav .navcta {
  display: none;
}

#nav .navlinks,
#nav .links,
body > nav:not([id]) .links,
#isp-nav .isp-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--isp-unified-muted);
  font: 600 15px/1.3 "IBM Plex Sans", system-ui, sans-serif;
  white-space: nowrap;
}

#nav .navlinks a,
#nav .links a,
body > nav:not([id]) .links a,
#isp-nav .isp-nav-links a {
  color: var(--isp-unified-muted);
  font: inherit;
  font-size: inherit !important;
  text-decoration: none;
  white-space: nowrap;
}

#nav .navlinks a + a,
#nav .links a + a,
body > nav:not([id]) .links a + a,
#isp-nav .isp-nav-links a + a {
  position: relative;
}

#nav .navlinks a + a::before,
#nav .links a + a::before,
body > nav:not([id]) .links a + a::before,
#isp-nav .isp-nav-links a + a::before {
  content: "|";
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  color: #9aada5;
  font-weight: 400;
  pointer-events: none;
}

#nav .navlinks a:hover,
#nav .navlinks a[aria-current="page"],
#nav .links a:hover,
#nav .links a.active,
body > nav:not([id]) .links a:hover,
body > nav:not([id]) .links a.active,
#isp-nav .isp-nav-links a:hover,
#isp-nav .isp-nav-links a[aria-current="page"] {
  color: var(--isp-unified-ink);
}

#nav .hamburger,
#nav .menu,
body > nav:not([id]) .menu,
#isp-nav .isp-menu-button {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  flex: none;
  cursor: pointer;
  color: var(--isp-unified-ink);
  background-color: transparent;
}

#mobilemenu,
.mobile,
.isp-mobile-menu {
  position: fixed;
  display: none;
  inset: var(--navh) 0 0;
  z-index: 99;
  box-sizing: border-box;
  padding: 24px 32px;
  overflow-y: auto;
  background: var(--isp-unified-bg);
  border-bottom: 1px solid #ebf0ee;
}

#mobilemenu.open,
.mobile.open,
.isp-mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

#mobilemenu a,
.mobile a,
.isp-mobile-menu a {
  color: var(--isp-unified-ink);
  font: 500 15px/1.4 "IBM Plex Sans", system-ui, sans-serif;
  text-decoration: none;
}

.isp-laws-banner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  min-height: 60px;
  padding: 10px 24px;
  border-bottom: 1px solid #cbded6;
  background: #e8f1ed;
  color: #193d37;
  font: 600 14px/1.35 "IBM Plex Sans", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}

.isp-laws-banner-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 99px;
  background: #2e6a62;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.isp-laws-banner:hover .isp-laws-banner-action {
  background: #24564f;
}

.isp-laws-banner:focus-visible {
  outline: 3px solid #c28e5a;
  outline-offset: -4px;
}

.course-continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-color: #c2410c !important;
  background-color: #c2410c !important;
  color: #fff !important;
  box-shadow: 0 5px 16px rgba(154, 52, 18, .22);
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}

.course-continue-button:hover,
.course-continue-button:focus-visible {
  border-color: #9a3412 !important;
  background-color: #9a3412 !important;
  color: #fff !important;
}

.course-continue-button[hidden] {
  display: none !important;
}

.isp-unified-footer {
  box-sizing: border-box;
  padding: 50px 32px 22px;
  border-top: 1px solid var(--isp-unified-line);
  background: #fff;
  color: #66717a;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.isp-footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) minmax(125px, .7fr) minmax(140px, .85fr) minmax(225px, 1.1fr);
  align-items: start;
  gap: 32px;
  width: min(100%, 1220px);
  margin: 0 auto;
}

.isp-footer-brand {
  min-width: 0;
}

.isp-footer-brand a {
  display: inline-block;
}

.isp-footer-brand img {
  display: block;
  width: 290px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.isp-footer-brand p {
  max-width: 300px;
  margin: 28px 0 0;
  color: #243c39;
  font: 18px/1.28 Georgia, "Times New Roman", serif;
}

.isp-unified-footer nav {
  position: static;
  inset: auto;
  z-index: auto;
  box-sizing: border-box;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.isp-unified-footer h2 {
  margin: 0 0 17px;
  color: #303c46;
  font: 700 10px/1.5 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.isp-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.isp-footer-column h2 {
  margin-bottom: 5px;
}

.isp-footer-column a {
  color: #66717a;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.isp-footer-action p {
  max-width: 245px;
  margin: -1px 0 14px;
  color: #66717a;
  font-size: 13px;
  line-height: 1.55;
}

.isp-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 9px 17px;
  border-radius: 4px;
  background: #193c65;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.isp-footer-button:hover {
  background: #102d4d;
}

.isp-footer-button span {
  margin-left: 8px;
}

.isp-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px !important;
}

.isp-footer-socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e4e9ee;
  border-radius: 50%;
  background: #f4f6f8;
  color: #475b75;
  font: 700 12px/1 "IBM Plex Sans", system-ui, sans-serif;
  text-decoration: none;
}

.isp-footer-socials a:hover {
  background: #e9eff4;
}

.isp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1220px);
  margin: 42px auto 0;
  padding-top: 17px;
  border-top: 1px solid #e7ebee;
  color: #66717a;
  font-size: 11px;
}

.isp-footer-bottom p {
  margin: 0;
}

.isp-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.isp-footer-legal a {
  color: #66717a;
  font-size: 11px;
  text-decoration: none;
}

.isp-unified-footer a:hover {
  color: #193c65;
}

.isp-unified-footer a:focus-visible {
  outline: 2px solid #193c65;
  outline-offset: 3px;
}

/* Desktop keeps every destination visible, even on pages with older inline breakpoints. */
@media (min-width: 768px) {
  #nav .navlinks,
  #nav .links,
  body > nav:not([id]) .links,
  #isp-nav .isp-nav-links {
    display: flex !important;
  }

  #nav .navcta,
  #nav .hamburger,
  #nav .menu,
  body > nav:not([id]) .menu,
  #isp-nav .isp-menu-button {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1250px) {
  #nav .navlinks a + a::before,
  #nav .links a + a::before,
  body > nav:not([id]) .links a + a::before,
  #isp-nav .isp-nav-links a + a::before {
    left: -6px;
  }

  #nav .wrap,
  body > nav:not([id]) > .navrow,
  #isp-nav .isp-nav-inner {
    gap: 12px;
    padding-inline: 20px;
  }

  #nav .logo img,
  body > nav:not([id]) .logo img,
  #isp-nav .isp-logo img {
    width: clamp(160px, 17vw, 210px) !important;
  }

  #nav .navlinks,
  #nav .links,
  body > nav:not([id]) .links,
  #isp-nav .isp-nav-links {
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    font-size: 14px !important;
  }

  #nav .navlinks a,
  #nav .links a,
  body > nav:not([id]) .links a,
  #isp-nav .isp-nav-links a {
    font-size: inherit !important;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  #nav .navlinks a:nth-child(5)::before,
  #nav .links a:nth-child(5)::before,
  body > nav:not([id]) .links a:nth-child(5)::before,
  #isp-nav .isp-nav-links a:nth-child(5)::before {
    content: none;
  }

  #nav .logo img,
  body > nav:not([id]) .logo img,
  #isp-nav .isp-logo img {
    width: clamp(150px, 16vw, 176px) !important;
  }

  #nav .navlinks,
  #nav .links,
  body > nav:not([id]) .links,
  #isp-nav .isp-nav-links {
    display: grid !important;
    grid-template-columns: repeat(4, max-content);
    align-content: center;
    gap: 5px 9px !important;
  }
}

@media (max-width: 767px) {
  #nav .navlinks,
  #nav .links,
  body > nav:not([id]) .links,
  #isp-nav .isp-nav-links {
    display: none !important;
  }

  #nav .navcta {
    display: flex;
    margin-left: auto;
  }

  #nav .hamburger,
  #nav .menu,
  body > nav:not([id]) .menu,
  #isp-nav .isp-menu-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #nav .hamburger {
    flex-direction: column;
    gap: 4px;
  }

  #nav .hamburger span {
    width: 20px;
    height: 2px;
    background: var(--isp-unified-ink);
  }

  #nav .menu,
  body > nav:not([id]) .menu,
  #isp-nav .isp-menu-button {
    font-size: 0;
    background:
      linear-gradient(var(--isp-unified-ink), var(--isp-unified-ink)) center 9px / 20px 2px no-repeat,
      linear-gradient(var(--isp-unified-ink), var(--isp-unified-ink)) center 15px / 20px 2px no-repeat,
      linear-gradient(var(--isp-unified-ink), var(--isp-unified-ink)) center 21px / 20px 2px no-repeat;
  }

}

@media (max-width: 850px) {
  .isp-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 24px;
  }

  .isp-footer-brand,
  .isp-footer-action {
    grid-column: 1 / -1;
  }

  .isp-footer-brand p {
    margin-top: 18px;
  }
}

@media (max-width: 600px) {
  #nav .wrap,
  body > nav:not([id]) > .navrow,
  #isp-nav .isp-nav-inner {
    padding-inline: 20px;
  }

  #nav .logo img,
  body > nav:not([id]) .logo img,
  #isp-nav .isp-logo img {
    width: min(240px, calc(100vw - 112px));
  }

  #mobilemenu,
  .mobile,
  .isp-mobile-menu {
    padding: 24px;
  }

  .isp-unified-footer {
    padding: 36px 20px 20px;
  }

  .isp-footer-inner {
    gap: 32px 16px;
  }

  .isp-footer-brand img {
    width: 260px;
  }

  .isp-footer-brand p {
    font-size: 17px;
  }

  .isp-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 34px;
  }
}