.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 clamp(12px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.site-footer nav { display: flex; gap: clamp(10px, 3vw, 22px); }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); }
.site-footer a[aria-current="page"] { font-weight: 700; }
.site-footer .footer-credits { display: flex; gap: clamp(10px, 2vw, 20px); text-align: right; }
.site-footer .footer-credits a { min-height: 24px; font-weight: 700; }
.about-cookie-settings { margin-top: 32px; }
.about-cookie-settings button[data-cookie-settings] {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ecosystem-info-page > .site-footer, .jobs-page > .site-footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
}
.cookie-panel {
  position: fixed;
  z-index: 500;
  inset: auto auto calc(var(--site-footer-height, 49px) + 10px) 12px;
  width: min(400px, calc(100% - 24px));
  max-height: calc(100dvh - var(--site-footer-height, 49px) - 24px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 24px rgb(0 0 0 / 20%);
  font-size: 15px;
}
.cookie-panel[hidden] { display: none; }
.cookie-panel h2 { margin: 0; font-size: 17px; }
.cookie-panel p { margin: 5px 0 12px; }
.cookie-panel label { display: flex; gap: 10px; align-items: start; margin-block: 10px; cursor: pointer; }
.cookie-panel input { width: 17px; height: 17px; flex: 0 0 auto; }
.cookie-panel small { display: block; color: var(--muted); font-size: 14px; }
.cookie-actions { display: flex; gap: 8px; margin-top: 14px; }
.cookie-actions button {
  flex: 1;
  min-height: 42px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookie-actions button:hover { text-decoration: underline; }
.cookie-panel :focus-visible, [data-cookie-settings]:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.privacy-notice h2 { margin: 28px 0 8px; font-size: 19px; }

.ecosystem-shell { --site-footer-height: calc(45px + env(safe-area-inset-bottom)); }
.ecosystem-shell > .site-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 440;
  padding-bottom: env(safe-area-inset-bottom);
}
.ecosystem-shell.city-scene-active #main-content { bottom: var(--site-footer-height); }
.ecosystem-shell:not(.city-scene-active) #explore-view {
  height: calc(100dvh - var(--header-height) - var(--notice-height) - var(--site-footer-height));
}
.ecosystem-shell #guides-view:is([data-guide-ui="dialogue"], [data-guide-ui="structured"]) {
  height: calc(100dvh - var(--header-height) - var(--site-footer-height));
}
@media (max-width: 650px) {
  .site-footer .footer-credits { flex-direction: column; gap: 0; font-size: 13.5px; }
  .ecosystem-shell { --site-footer-height: calc(49px + env(safe-area-inset-bottom)); }
}
@media (max-width: 650px), (max-width: 950px) and (max-height: 500px) {
  .ecosystem-shell #main-content[data-view="explore"] > .profile-panel {
    bottom: calc(var(--site-footer-height) + 12px);
  }
}

.ecosystem-info-page { display: flex; flex-direction: column; min-height: 100dvh; }
.ecosystem-info-header { padding: 20px clamp(16px, 5vw, 48px); border-bottom: 1px solid var(--line); }
.ecosystem-info-header a { color: var(--ink); font-weight: 700; }
.ecosystem-info-main { flex: 1; width: min(100%, 730px); margin-inline: auto; padding: 32px clamp(16px, 5vw, 42px) 44px; }
.ecosystem-info-main p { margin-block: 14px; }
.ecosystem-info-main .about-thanks { margin-block-start: clamp(28px, 5vw, 42px); }
.ecosystem-info-main .about-thanks p + p { margin-block-start: 22px; }
.ecosystem-info-main .ecosystem-info-back { margin-block-start: clamp(40px, 7vh, 72px); }
