/* Shared navigation belongs to the site, independent of the room or page type. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 30;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.site-header.site-chrome-header,
.site-footer.site-chrome-footer {
  box-sizing: border-box;
  width: min(89.6%, 1440px);
  margin-inline: auto;
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
}

.site-header.site-chrome-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  row-gap: 0;
  height: 116px;
  min-height: 116px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.site-chrome-header a,
.site-chrome-footer a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}

.site-chrome-header a:focus-visible,
.site-chrome-footer a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-chrome-header .site-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.site-brand .site-brand-mark {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.site-chrome-header .site-primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 24px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.site-primary-nav > a,
.site-chrome-header .site-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  white-space: nowrap;
}

.site-primary-nav > a[aria-current],
.site-footer-links > a[aria-current] {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-chrome-header .site-contact {
  justify-self: end;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
}

.site-chrome-header a:hover,
.site-chrome-footer a:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

.site-primary-nav .site-search-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.site-footer.site-chrome-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  height: auto;
  min-height: 96px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  flex-shrink: 0;
}

.site-chrome-footer .site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  min-width: 0;
}

.site-footer-links > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
}

.site-footer-links .footer-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.site-footer-links a:hover .footer-icon,
.site-footer-links a:focus-visible .footer-icon {
  opacity: 1;
}

.site-chrome-footer .site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 12px;
}

.site-footer-meta [data-offline-status]:empty,
.site-footer-meta time:empty {
  display: none;
}

@media (max-width: 900px) {
  .site-header.site-chrome-header {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    padding-block: 16px 3px;
    row-gap: 8px;
  }

  .site-chrome-header .site-brand {
    grid-area: 1 / 1;
    gap: 10px;
    font-size: 14px;
  }

  .site-chrome-header .site-contact {
    grid-area: 1 / 2;
    font-size: 13px;
  }

  .site-chrome-header .site-primary-nav {
    grid-area: 2 / 1 / 3 / -1;
    justify-content: space-between;
    gap: 4px 12px;
  }
}

@media (max-width: 760px) {
  .site-footer.site-chrome-footer {
    justify-content: center;
    gap: 16px;
    padding-block: 20px 24px;
  }

  .site-chrome-footer .site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    width: 100%;
  }

  .site-footer-links > a {
    flex-direction: column;
    gap: 7px;
    min-height: 60px;
    padding: 6px 0;
    text-align: center;
  }

  .site-chrome-footer .site-footer-meta {
    justify-content: center;
    width: 100%;
  }
}

@media print {
  .site-header.site-chrome-header,
  .site-footer.site-chrome-footer,
  .skip-link {
    display: none;
  }
}
