/* Klimate Consulting — shared nav for standalone interactive posts.
   These posts live outside the Next.js layout, so they don't get the React
   Header/Footer. This lightweight vanilla bar (injected by site-nav.js) gives
   them the same global navigation so no visitor is stranded.
   Brand: --kc-dark #162123, --kc-blue #0F4C81, --kc-light-blue #C3D2DF. */

:root {
  --kc-nav-dark: #162123;
  --kc-nav-blue: #0F4C81;
  --kc-nav-light-blue: #C3D2DF;
}

/* Skip link — visually hidden until focused. */
.kc-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: var(--kc-nav-blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
}
.kc-skip:focus { left: 0; }

/* Sticky header — first element in <body>, so it occupies layout flow and
   never overlaps the Plotly/Mapbox content beneath it. */
.kc-nav {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: var(--kc-nav-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Montserrat", sans-serif;
}
.kc-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kc-nav__brand {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}
.kc-nav__brand:hover { color: var(--kc-nav-light-blue); }
.kc-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.kc-nav__links a {
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.kc-nav__links a:hover { color: #fff; }
.kc-nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}
.kc-nav__toggle svg { width: 26px; height: 26px; }

/* Mobile */
@media (max-width: 640px) {
  .kc-nav__toggle { display: inline-flex; }
  .kc-nav__links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--kc-nav-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
    display: none;
  }
  .kc-nav__links.kc-open { display: flex; }
  .kc-nav__links li { width: 100%; }
  .kc-nav__links a {
    display: block;
    padding: 12px 20px;
    width: 100%;
  }
}

/* Footer */
.kc-foot {
  background: var(--kc-nav-dark);
  color: #9ca3af;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Montserrat", sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.kc-foot__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.kc-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.kc-foot__links a {
  color: #d1d5db;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.kc-foot__links a:hover { color: #fff; }
.kc-foot__cross {
  font-size: 13px;
  margin: 0 0 14px;
}
.kc-foot__cross a { color: var(--kc-nav-light-blue); text-decoration: none; }
.kc-foot__cross a:hover { text-decoration: underline; }
.kc-foot__copy {
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}
