/* Compact print masthead: the same forest green and cream as the front page. */
.ote-site-footer {
  --footer-paper: #1f5133;
  --footer-ink: #eaf2dc;
  --footer-rule: rgb(234 242 220 / 0.25);
  --footer-type: "Archivo", var(--font-ui, system-ui, sans-serif);
  margin-top: clamp(2rem, 4vw, 3rem);
  /* The block template supplies a large inline top padding. */
  padding-top: 0 !important;
  padding-inline: clamp(16px, 4vw, 48px);
  background: var(--footer-paper);
  border-top: 4px double var(--footer-ink);
  color: var(--footer-ink);
}

html[data-theme="dark"] .ote-site-footer {
  --footer-paper: #1c3826;
  --footer-ink: #e3efcf;
  --footer-rule: rgb(227 239 207 / 0.25);
}

.ote-site-footer .ote-site-footer__main,
.ote-site-footer .ote-site-footer__bar {
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.ote-site-footer__main {
  gap: 12px 24px;
  padding-block: 18px;
  align-items: center;
}

.ote-site-footer__brand {
  flex: 0 0 auto;
}

.ote-site-footer__brand p,
.ote-site-footer__brand .wp-block-shortcode {
  margin: 0;
  line-height: 0;
}

.ote-site-footer__brand .ote-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

/* Override the SVG's original green presentation fill on the green masthead. */
.ote-site-footer__brand .ote-logo path {
  fill: var(--footer-ink);
}

.ote-site-footer__nav {
  flex: 1 1 auto;
  gap: 4px 24px;
  margin: 0;
}

.ote-site-footer__nav p {
  margin: 0;
}

.ote-site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--footer-type);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  color: var(--footer-ink);
  text-decoration: none;
}

.ote-site-footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ote-site-footer__utility {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
}

.ote-site-footer__utility-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--footer-ink);
  background: transparent;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.ote-site-footer__utility-link:hover {
  background: rgb(234 242 220 / 0.08);
  border-color: var(--footer-rule);
}

.ote-site-footer a:focus-visible {
  outline: 2px solid var(--footer-ink) !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

.ote-site-footer__utility-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ote-site-footer__bar {
  border-top: 1px solid var(--footer-rule);
  background: transparent;
}

.ote-site-footer .ote-site-footer__meta {
  margin: 0;
  padding-block: 10px;
  text-align: center;
}

.ote-site-footer__meta p {
  margin: 0;
  font-family: var(--footer-type);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--footer-ink);
  text-transform: none;
}

.ote-site-footer__meta strong {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 899px) {
  .ote-site-footer {
    /* Clear the fixed bottom navigation, including device safe areas. */
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }

  .ote-site-footer .ote-site-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding-block: 14px 8px;
  }

  .ote-site-footer__brand .ote-logo {
    width: 170px;
  }

  .ote-site-footer__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 0 20px;
  }

  .ote-site-footer__utility {
    grid-column: 2;
    grid-row: 1;
    gap: 0;
  }

  .ote-site-footer__meta p {
    font-size: 11px;
  }
}

@media (max-width: 359px) {
  .ote-site-footer__brand .ote-logo {
    width: 140px;
  }
}
