:root {
  /* Guide destinations: parents-guide number backgrounds and heading text. */
  --guide-rule-bg: #de7300;
  --guide-rule-text: #9b5100;
  --guide-diagnosis-bg: #7d46b4;
  --guide-diagnosis-text: #7d46b4;
  --guide-learning-bg: #1ca28f;
  --guide-learning-text: #128172;
}

.site-main {
  min-height: 300px;
}

/* Shared category colors for pickup and event/news on the top and detail pages. */
.editorial-category { font-weight: 700; }
.editorial-category--important { color: #fff; background: #e94070; }
.editorial-category--feature { color: #fff; background: #e67700; }
.editorial-category--campaign { color: #fff; background: var(--color-primary-dark); }
.editorial-category--news { color: #0875df; background: #e8f3ff; }
.editorial-category--event { color: #16845f; background: #e4f8ed; }

.site-footer {
  position: relative;
  color: #fff;
  background: var(--color-navy);
}

.site-footer__inner {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
  padding: 55px 0 20px;
}

.site-footer .site-footer__sitemap {
  overflow-wrap: anywhere;
}

.site-footer .site-footer__home {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.site-footer .site-footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem clamp(1.5rem, 4vw, 3.75rem);
}

.site-footer .site-footer__column > * + * {
  margin-top: 1.5rem;
}

.site-footer .site-footer__sitemap h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.site-footer .site-footer__column > .site-footer__destination {
  margin-top: 1.25rem;
}

.site-footer .site-footer__sitemap a {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-nav-group h3 {
  margin: 1rem 0 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer .footer-nav-group ul {
  display: grid;
  margin: 0.375rem 0 0;
  padding: 0;
  gap: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.6;
  list-style: none;
}

.site-footer .footer-nav-group li a {
  display: inline-block;
  max-width: 100%;
  padding-block: 0.125rem;
}

.site-footer .site-footer__sitemap a:hover,
.site-footer .site-footer__sitemap a:focus-visible,
.site-footer__utility a:hover,
.site-footer__bottom a:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.site-footer__utility {
  display: flex;
  margin-top: 45px;
  padding: 20px 0;
  gap: 50px;
  border-top: 1px solid rgb(255 255 255 / 20%);
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  font-size: 0.75rem;
}

.site-footer__utility a,
.site-footer__bottom a {
  color: inherit;
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  padding-top: 20px;
  align-items: center;
  gap: 30px;
  font-size: 0.75rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__contact {
  display: inline-flex;
  min-height: 40px;
  padding: 5px 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 20px;
}

.page-top {
  position: absolute;
  top: -25px;
  right: max(20px, calc((100% - var(--content-width)) / 2));
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  background: #fff;
  border: 2px solid var(--color-navy);
  border-radius: 50%;
}

.page-top span {
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-navy);
  border-left: 2px solid var(--color-navy);
  transform: translateY(3px) rotate(45deg);
}

body.has-modal-open {
  overflow: hidden;
}

.breadcrumb {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 15px auto;
  color: var(--color-text-sub);
  font-size: 0.75rem;
}

.breadcrumb ol {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 10px;
  content: "/";
}

@media (min-width: 768px) and (max-width: 1099px) {
  .site-footer .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
  }

  .site-footer .footer-nav-group--learning {
    grid-row: span 2;
  }
}

@media (max-width: 767px) {
	.breadcrumb {
		width: min(calc(100% - 30px), var(--content-width));
	}

  .site-footer__inner {
    width: min(calc(100% - 30px), var(--content-width));
    padding-top: 45px;
  }

  .site-footer .site-footer__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.875rem;
  }

  .site-footer .footer-nav-group li a {
    display: block;
    padding-block: 0.3125rem;
  }

  .site-footer__utility {
    margin-top: 35px;
    gap: 30px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .page-top {
    right: 15px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .site-footer__inner {
    width: calc(100% - 30px);
    padding: 38px 0 18px;
  }

  .site-footer .site-footer__sitemap h2 {
    font-size: 1rem;
  }

  .site-footer__utility {
    margin-top: 28px;
    padding: 16px 0;
  }

  .site-footer__bottom {
    padding-top: 16px;
  }
}

.registration-save-prompt {
  width: min(760px, calc(100% - 40px));
  margin: 48px auto;
  padding: 28px;
  border: 2px solid #bfdfe9;
  border-radius: 16px;
  background: #f4fbfd;
  text-align: center;
}

.registration-save-prompt[hidden] {
  display: none;
}

.registration-save-prompt p {
  margin: 0 0 18px;
  font-weight: 700;
}

.registration-save-prompt .modal-button {
  width: min(100%, 360px);
  margin: 0 auto;
}

.registration-save-prompt .modal-button[hidden] {
  display: none;
}

.lesson-complete-save-status {
  width: min(760px, calc(100% - 40px));
  margin: 16px auto;
  text-align: center;
}

.lesson-complete-save-retry[hidden] {
  display: none;
}

.lesson-complete-save-retry {
  display: block;
  width: min(360px, calc(100% - 40px));
  margin: 16px auto 48px;
}

@media (max-width: 600px) {
  .registration-save-prompt {
    width: calc(100% - 30px);
    margin: 32px auto;
    padding: 22px 16px;
  }

  .lesson-complete-save-status {
    width: calc(100% - 30px);
  }
}
