/* Shared chrome for Location Integrity UI */
:root {
  --bg: #f4f3ef; --ink: #161616; --muted: #5c6570; --line: #ddd9d0; --paper: #fffefb;
  --accent: #1d4f91; --ok: #3f6212; --err: #9a3412; --warn: #a16207;
}
.topbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  justify-content: space-between; margin-bottom: 1.25rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--line);
}
.topbar-nav { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; font-size: 0.88rem; }
.topbar-nav a { color: var(--accent); text-decoration: none; }
.topbar-nav a:hover { text-decoration: underline; text-underline-offset: 2px; }
.topbar-nav a.active { color: var(--ink); font-weight: 600; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); background: var(--paper); overflow: hidden;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; font: inherit; font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace; padding: 0.35rem 0.55rem; cursor: pointer; color: var(--muted);
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button.active { background: var(--ink); color: #fff; }
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.svc-card {
  background: var(--paper); border: 1px solid var(--line); padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--line);
}
.svc-card.ok { border-left-color: var(--ok); }
.svc-card.off { border-left-color: var(--line); }
.svc-card.busy { border-left-color: var(--accent); }
.svc-card.err { border-left-color: var(--err); }
.svc-card .name { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; }
.svc-card .state { font-size: 0.95rem; font-weight: 600; margin-top: 0.2rem; }
.svc-card .detail { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; font-family: "IBM Plex Mono", monospace; line-height: 1.35; }
.tabs {
  display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); background: var(--paper);
  margin-bottom: 0; border-bottom: 0;
}
.tabs button {
  appearance: none; border: 0; border-right: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 0.82rem; padding: 0.55rem 0.85rem; cursor: pointer; color: var(--muted);
}
.tabs button:last-child { border-right: 0; }
.tabs button.active { background: var(--ink); color: #fff; }
.tab-panels > .tab-panel { display: none; }
.tab-panels > .tab-panel.active { display: block; }
.tab-panels .card.tab-panel { margin-top: 0; border-top: 0; }
.site-footer {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.site-footer a { color: var(--accent); }
.gdpr-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #161616; color: #f4f3ef; padding: 0.85rem 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.gdpr-banner-inner {
  max-width: 920px; margin: 0 auto; display: flex; flex-wrap: wrap;
  gap: 0.75rem; align-items: center; justify-content: space-between;
}
.gdpr-banner p { margin: 0; font-size: 0.85rem; line-height: 1.4; flex: 1; min-width: 220px; }
.gdpr-banner a { color: #93c5fd; }
.gdpr-banner code { font-size: 0.8em; }
.gdpr-banner-ok {
  appearance: none; border: 1px solid #f4f3ef; background: #f4f3ef; color: #161616;
  font: inherit; font-size: 0.85rem; padding: 0.45rem 0.85rem; cursor: pointer; white-space: nowrap;
}
body { padding-bottom: 4.5rem; } /* room for GDPR preference banner when visible */
