body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { margin-top: auto; }
.logo { display: block; width: 175px; height: auto; }
.footer-brand { background: #fff; border-radius: 4px; padding: 10px 12px; }
.footer-brand .logo { width: 165px; }
.mobile-menu { display: none; }

/* Navigation and legacy article content adapt to narrow screens. */
.article { overflow-wrap: anywhere; }
.article table { width: 100%; }
.article iframe, .article video { max-width: 100%; }
@media (max-width: 800px) {
  .head-inner { position: relative; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .header .desktop-nav { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; color: var(--navy); font-size: 14px; font-weight: 750; padding: 10px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
  .hamburger { width: 23px; display: grid; gap: 4px; }
  .hamburger span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
  .mobile-menu[open] summary { color: var(--blue); }
  .header .mobile-menu nav { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; width: 100%; padding: 10px 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16, 40, 59, .12); }
  .header .mobile-menu nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .header .mobile-menu nav a { padding: 11px 0; }
  .header nav { overflow: visible; }
  .header nav ul { flex-wrap: wrap; gap: 2px 20px; white-space: normal; }
  .header nav a { padding: 8px 0; }
  .page-layout { padding-top: 40px; }
}
@media (max-width: 480px) {
  .topbar .shell { flex-wrap: wrap; }
  .header nav ul { gap: 2px 16px; }
  .article table, .article tbody, .article tr, .article td, .article th { display: block; width: 100%; }
  .article td, .article th { padding: 4px 0; }
  .actions { gap: 15px; }
  .map { min-height: 240px; }
}
