/* Match the former Gatsby article image treatment while remaining mobile-safe. */
.md-typeset img {
  display: block;
  width: auto;
  max-width: min(100%, 630px);
  height: auto;
  margin: 1rem auto;
}

/* Avoid forcing a horizontal scroll when an image appears in a table cell. */
.md-typeset td img,
.md-typeset th img {
  max-width: 100%;
}

.article-date {
  color: var(--md-default-fg-color--light);
  font-size: 0.8rem;
  margin-top: -1rem;
}

.contact-form {
  max-width: 42rem;
}

.contact-form label,
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  box-sizing: border-box;
  border: 1px solid #767676;
  border-radius: 0.2rem;
  background-color: #fff;
  color: var(--md-default-fg-color);
  margin: 0.25rem 0 1rem;
  padding: 0.55rem 0.65rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--md-primary-fg-color) 25%, transparent);
  outline: none;
}

.contact-form button[type="submit"] {
  border: 1px solid var(--md-primary-fg-color);
  border-radius: 0.2rem;
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
}

.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus {
  background-color: var(--md-primary-fg-color--dark);
  border-color: var(--md-primary-fg-color--dark);
}

.contact-form button[type="submit"]:focus {
  box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--md-primary-fg-color) 25%, transparent);
  outline: none;
}

:root {
  --norm-header-height: 72px;
  --norm-banner-title-size: clamp(1.15rem, 1.9vw, 1.7rem);
  --norm-header-center-bg: #224c42;
  --norm-header-side-bg: #0f2742;
}

.norm-header {
  position: relative;
  height: var(--norm-header-height);
  overflow: hidden;
  background: var(--norm-header-center-bg);
}

.norm-header .md-header__inner {
  display: grid;
  grid-template-columns: 32px 400px minmax(0, 1fr) 400px;
  position: relative;
  z-index: 1;
  height: 100%;
  align-items: stretch;
}

.norm-header__cell {
  min-width: 0;
}

.norm-header__cell--menu {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--norm-header-center-bg);
}

.norm-header__cell--left,
.norm-header__cell--right {
  background-color: var(--norm-header-side-bg);
  background-repeat: no-repeat;
  background-size: cover;
}

.norm-header__cell--left {
  background-image: image-set(
    url("../assets/shared/img/bannerleft_400.webp") 1x,
    url("../assets/shared/img/bannerleft_800.webp") 2x
  );
  background-position: left center;
}

.norm-header__cell--right {
  background-image: image-set(
    url("../assets/shared/img/banneright_400.webp") 1x,
    url("../assets/shared/img/banneright_800.webp") 2x
  );
  background-position: right center;
}

.norm-header__cell--title {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--norm-header-center-bg);
}

.norm-header .md-header__button.md-icon:first-child {
  position: relative;
  z-index: 3;
  margin: 0;
}

.norm-header .md-header__title {
  display: none;
}

.norm-header__title-link {
  width: 100%;
  padding: 0 1rem;
  color: #fff;
  font-size: var(--norm-banner-title-size);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.md-header {
  box-shadow: none;
}

.md-footer,
.md-footer-meta {
  background-color: var(--md-default-bg-color);
  border-top: 1px solid #cfcfcf;
}

.norm-footer-meta {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
}

.norm-footer-meta__contact {
  position: absolute;
  left: 0;
  max-width: 100%;
  white-space: nowrap;
}

.md-footer-meta.md-typeset .norm-footer-meta__contact a {
  color: #0b57d0;
  font-weight: 500;
  text-decoration: none;
}

.md-footer-meta.md-typeset .norm-footer-meta__contact a:hover,
.md-footer-meta.md-typeset .norm-footer-meta__contact a:focus {
  color: #0b57d0;
  text-decoration: underline;
}

.norm-footer-meta__copyright {
  display: flex;
  justify-content: center;
}

.md-copyright {
  color: #4a4a4a;
  text-align: center;
}

.md-copyright__highlight {
  color: inherit;
}

/* Keep nested sidebar-section chevrons beside their labels, not at the far edge. */
.md-nav--primary .md-nav__item--nested > .md-nav__link .md-nav__icon:last-child {
  order: -1;
  margin-left: 0;
  margin-right: 0.4rem;
}

/* Keep first-level entries modestly indented below their top-level section. */
.md-nav--primary .md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item > .md-nav__link {
  padding-left: 0.95rem;
}

/* Align second-level entries with the text following a first-level chevron. */
.md-nav--primary .md-nav[data-md-level="2"] > .md-nav__list > .md-nav__item > .md-nav__link {
  padding-left: 2.55rem;
}

@media screen and (max-width: 44.9844em) {
  :root {
    --norm-header-height: 48px;
    --norm-banner-title-size: clamp(1rem, 3.7vw, 1.3rem);
  }

  .norm-header .md-header__inner {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .norm-header__cell--left,
  .norm-header__cell--right {
    display: none;
  }

  .norm-header__title-link {
    width: min(92%, 18rem);
    font-size: 1rem;
  }

  .norm-footer-meta {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
  }

  .norm-footer-meta__contact,
  .norm-footer-meta__copyright {
    position: static;
    text-align: center;
  }
}
