/* Layout integration for the imported template header and footer. */
body { min-height: 100vh; display: flex; flex-direction: column; padding-top: 131px; }
.site-header { background: var(--dark); }
main.container { flex: 1; padding-top: 4rem; padding-bottom: 4rem; }
.eyebrow { color: var(--primary); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.back-to-top:not(.is-visible) { display: none; }
.back-to-top.is-visible { display: flex; }
.navbar .nav-item:focus-within .dropdown-menu { transform: rotateX(0); visibility: visible; opacity: 1; }
@media (max-width: 991.98px) {
  body { padding-top: 86px; }
  .navbar { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.site-logo { display: block; width: auto; height: 54px; object-fit: contain; }
.site-header .navbar .navbar-nav { margin-top: 0; border-top: 0; background: transparent; }
.site-header .navbar .navbar-nav .nav-link { margin-right: 0; padding: 10px 0; }
.site-logo-footer { width: 220px; max-width: 100%; height: auto; margin-bottom: 24px; }

.contact-intro { max-width: 720px; }
.contact-shell { border: 1px solid #e5e5e5; border-top: 3px solid var(--primary); padding: clamp(24px, 4vw, 40px); }
.contact-shell dt { font-weight: 900; }
.contact-map { display: block; width: 100%; height: clamp(300px, 40vw, 450px); border: 0; }

.about-content { overflow-wrap: anywhere; line-height: 1.8; }
.about-content > :last-child { margin-bottom: 0; }
.about-content img, .about-content video { max-width: 100%; height: auto; }
.about-content figure { max-width: 100%; }
.about-content table { display: block; max-width: 100%; overflow-x: auto; }
.about-content blockquote { border-left: 3px solid var(--primary); padding-left: 20px; }
.about-content a { text-decoration: underline; text-underline-offset: 3px; }
.about-image img { display: block; width: 100%; height: auto; }
.about-image figcaption { padding: 12px 0; font-size: .9rem; color: #666; }
@media (max-width: 575.98px) {
  .site-header .navbar-nav { gap: 16px !important; }
  .site-header .navbar-nav .nav-link { font-size: .9rem; }
}

.not-found-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.not-found-content { max-width: 650px; }
.not-found-code { color: var(--primary); font-weight: 900; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; margin-bottom: 24px; letter-spacing: -.06em; }
.not-found-content h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse { max-height: calc(100dvh - 100px); overflow-y: auto; }
  .site-header .navbar .navbar-nav { border-top: 1px solid rgb(255 255 255 / 25%); margin-top: 16px; }
  .site-header .navbar-nav .nav-link { padding: 12px 0; }
}
