/* Header logo and simplified footer, retaining the supplied prototype styling. */
body.mapstl-prototype .prototype-shell.site-header .brand { width: 270px; }
body.mapstl-prototype .prototype-shell.site-header,
body.mapstl-prototype .prototype-shell.site-header .header-inner { height: 84px; }
body.mapstl-prototype .prototype-shell.site-header.is-open { height: auto; }

@media (max-width: 1380px) {
  body.mapstl-prototype .prototype-shell.site-header a.header-utility > span { display: none; }
}
@media (max-width: 700px) {
  body.mapstl-prototype .prototype-shell.site-header,
  body.mapstl-prototype .prototype-shell.site-header .header-inner { height: 62px; }
  body.mapstl-prototype .prototype-shell.site-header.is-open { height: auto; }
  body.mapstl-prototype .prototype-shell.site-header .brand { width: 200px; }
}

/* Compact footer: three focused link groups and a small legal / copyright band. */
body.mapstl-prototype .prototype-shell.site-footer :is(.footer-main, .footer-meta) { max-width: 1080px; }
body.mapstl-prototype .prototype-shell.site-footer .footer-main { display: grid; grid-template-columns: 176px repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; padding-block: 24px; }
body.mapstl-prototype .prototype-shell.site-footer .footer-about { display: block; grid-column: auto; min-width: 0; margin: 0; padding: 0; }
body.mapstl-prototype .prototype-shell.site-footer .footer-logo { box-sizing: border-box; width: 176px; max-width: 100%; padding: 4px 7px; }
body.mapstl-prototype .prototype-shell.site-footer .footer-logo img { display: block; width: 100%; height: auto; }
body.mapstl-prototype .prototype-shell.site-footer .footer-links { gap: 0; }
body.mapstl-prototype .prototype-shell.site-footer .footer-links h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.4; }
body.mapstl-prototype .prototype-shell.site-footer .footer-links :is(a, button) { display: inline-flex; align-items: center; min-width: 0; min-height: 24px; max-width: 100%; padding: 2px 0; font-size: 14px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
body.mapstl-prototype .prototype-shell.site-footer .footer-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; border-top: 1px solid #ffffff20; padding-block: 8px; }
body.mapstl-prototype .prototype-shell.site-footer :is(.footer-legal, .footer-bottom) { display: flex; align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px 16px; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 12px; line-height: 1.4; }
body.mapstl-prototype .prototype-shell.site-footer .footer-meta :is(a, button, summary) { min-height: 24px; padding: 3px 0; font: inherit; line-height: 1.4; color: #d2e3e4; }
body.mapstl-prototype .prototype-shell.site-footer .footer-bottom > span { white-space: nowrap; }
body.mapstl-prototype .prototype-shell.site-footer #support-button { border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
body.mapstl-prototype .prototype-shell.site-footer #support-button:focus-visible { outline: 2px solid #b1f398; outline-offset: 3px; }
body.mapstl-prototype .prototype-shell.site-footer .footer-projects-menu { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
body.mapstl-prototype .prototype-shell.site-footer .footer-projects-menu > summary { display: list-item; width: max-content; cursor: pointer; white-space: nowrap; }
body.mapstl-prototype .prototype-shell.site-footer .footer-projects-list { position: absolute; z-index: 2; right: 0; bottom: calc(100% + 6px); display: grid; min-width: 154px; max-width: calc(100vw - 28px); padding: 8px 12px; border: 1px solid #62847c; border-radius: 6px; background: #173f45; box-shadow: 0 4px 16px #071d2940; }
body.mapstl-prototype .prototype-shell.site-footer .footer-projects-menu:not([open]) .footer-projects-list { display: none; }
body.mapstl-prototype .prototype-shell.site-footer .footer-projects-list a { display: block; min-height: 28px; padding-block: 5px; }
body.mapstl-prototype .prototype-shell.site-footer .footer-meta :is(button, summary):hover { color: #b1f398; text-decoration: underline; }
body.mapstl-prototype .prototype-shell.site-footer .footer-meta :is(button, summary):focus-visible { outline: 2px solid #b1f398; outline-offset: 3px; }
@media (max-width: 700px) {
  body.mapstl-prototype .prototype-shell.site-footer .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-block: 18px; }
  body.mapstl-prototype .prototype-shell.site-footer .footer-about { grid-column: 1 / -1; }
  body.mapstl-prototype .prototype-shell.site-footer .footer-logo { width: 160px; }
  body.mapstl-prototype .prototype-shell.site-footer .footer-links :is(a, button) { font-size: 13px; }
  body.mapstl-prototype .prototype-shell.site-footer .footer-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
  body.mapstl-prototype .prototype-shell.site-footer :is(.footer-legal, .footer-bottom) { justify-content: space-between; gap: 2px 8px; }
}
@media (max-width: 380px) {
  body.mapstl-prototype .prototype-shell.site-footer .footer-main { column-gap: 10px; }
  body.mapstl-prototype .prototype-shell.site-footer .footer-links :is(h3, a, button) { font-size: 12px; }
}
@media (max-width: 420px) {
  body.mapstl-prototype .prototype-shell.site-header .brand { width: min(200px, calc(100vw - 162px)); }
  body.mapstl-prototype .prototype-shell.site-header .header-inner { gap: 4px; }
  body.mapstl-prototype .prototype-shell.site-header .header-actions { gap: 1px; }
  /* Saved maps remain available in the mobile navigation. */
  body.mapstl-prototype .prototype-shell.site-header a.header-utility { display: none; }
  body.mapstl-prototype .prototype-shell.site-header #account-button,
  body.mapstl-prototype .prototype-shell.site-header .menu-toggle { width: 29px; }
}

/* The catalogue link needs the full navigation to collapse before it overflows. */
@media (max-width: 1380px) {
  body.mapstl-prototype .prototype-shell.site-header .desktop-nav,
  body.mapstl-prototype .prototype-shell.site-header .header-create { display: none; }
  body.mapstl-prototype .prototype-shell.site-header .menu-toggle { display: flex; }
  html:not(.header-navigation-ready) body.mapstl-prototype .prototype-shell.site-header #header-menu { display: block; position: static; }
  html:not(.header-navigation-ready) body.mapstl-prototype .prototype-shell.site-header { height: auto; }
}
