/* gw/shell.css — Groundwork consolidation shell (slice 4, 2026-07-03).
   Injected into every review-pages/public/*.html by inject_shell.py (slice 5).
   Everything is gw-* namespaced — zero collision with deck-page CSS. */

:root {
  --gw-navy: #0C2340;
  --gw-blue-gray: #8FA3BF;
  --gw-cyan: #35C4E8;
  --gw-nav-h: 46px;
  --gw-tabbar-h: 56px;
}

/* Pages opt out of top padding + get their own layout via data-gw="fullbleed" (map only). */
body:not([data-gw="fullbleed"]) {
  padding-top: var(--gw-nav-h);
}
@media (max-width: 767px) {
  body:not([data-gw="fullbleed"]) {
    padding-bottom: var(--gw-tabbar-h);
  }
  body[data-gw="fullbleed"] {
    padding-bottom: var(--gw-tabbar-h);
  }
}

.gw-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--gw-nav-h);
  background: var(--gw-navy);
  display: flex; align-items: center; gap: 18px;
  padding: 0 14px;
  font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.gw-logo {
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.gw-logo-mark {
  width: 9px; height: 9px; border-radius: 2px; background: var(--gw-cyan); display: inline-block;
}

.gw-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.gw-nav-item, .gw-dropdown-toggle {
  color: var(--gw-blue-gray); text-decoration: none; font-weight: 500;
  padding: 6px 10px; border-radius: 6px; border: none; background: none;
  font: inherit; cursor: pointer; position: relative; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.gw-nav-item:hover, .gw-dropdown-toggle:hover, .gw-dropdown.gw-open .gw-dropdown-toggle {
  color: #fff;
}
.gw-nav-item.gw-active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gw-cyan);
}
.gw-badge {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 11px;
  color: var(--gw-navy); background: var(--gw-cyan);
  border-radius: 999px; padding: 1px 6px; min-width: 16px; text-align: center; line-height: 1.4;
}

.gw-dropdown { position: relative; }
.gw-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 6px;
  background: #10294f; border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  min-width: 260px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.4); z-index: 9001;
}
.gw-dropdown.gw-open .gw-dropdown-menu { display: block; }
.gw-dropdown-menu .gw-section-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--gw-blue-gray);
  padding: 8px 10px 4px;
}
.gw-dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #e6edf5; text-decoration: none; font-size: 13px; padding: 8px 10px; border-radius: 6px;
}
.gw-dropdown-menu a:hover { background: rgba(255,255,255,.08); }
.gw-dropdown-menu .gw-drained { color: var(--gw-blue-gray); }
.gw-dropdown-menu .gw-all-link {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 4px; padding-top: 8px;
  color: var(--gw-cyan); font-weight: 600; justify-content: flex-start;
}

.gw-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.gw-search { display: flex; align-items: center; }
.gw-search input {
  width: 180px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; outline: none;
}
.gw-search input::placeholder { color: var(--gw-blue-gray); }
.gw-search input:focus { border-color: var(--gw-cyan); background: rgba(255,255,255,.12); }
.gw-search-icon-btn {
  display: none; background: none; border: none; color: var(--gw-blue-gray); cursor: pointer;
  padding: 6px; font-size: 16px; line-height: 1;
}

.gw-data-link { color: var(--gw-blue-gray); text-decoration: none; font-weight: 500; }
.gw-data-link:hover { color: #fff; }

.gw-refresh-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid rgba(255,255,255,.18); color: var(--gw-blue-gray);
  border-radius: 999px; padding: 6px 12px; font: 600 13px/1 inherit; cursor: pointer;
}
.gw-refresh-btn:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.gw-refresh-btn.gw-ok { border-color: #22c55e; color: #86efac; }
.gw-refresh-btn.gw-err { border-color: #ef4444; color: #fecaca; }
.gw-refresh-btn .gw-spin {
  display: inline-block; width: 11px; height: 11px; border: 2px solid rgba(255,255,255,.25);
  border-top-color: currentColor; border-radius: 50%; animation: gw-spin .8s linear infinite;
}
@keyframes gw-spin { to { transform: rotate(360deg); } }

.gw-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000;
  font: 500 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gw-blue-gray); background: rgba(12,35,64,.92); backdrop-filter: blur(4px);
  padding: 4px 14px; text-align: right;
}
.gw-footer a { color: inherit; text-decoration: underline; }
@media (max-width: 767px) { .gw-footer { bottom: var(--gw-tabbar-h); } }

.gw-bottom-tabs {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  height: var(--gw-tabbar-h); background: var(--gw-navy);
  border-top: 1px solid rgba(255,255,255,.08);
}
.gw-bottom-tabs a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--gw-blue-gray); text-decoration: none; font-size: 10px; font-weight: 600;
}
.gw-bottom-tabs a.gw-active { color: var(--gw-cyan); }
.gw-bottom-tabs .gw-tab-icon { font-size: 18px; line-height: 1; }

@media (max-width: 767px) {
  .gw-topbar { gap: 8px; }
  .gw-nav { display: none; }
  .gw-search { display: none; }
  .gw-search.gw-mobile-open {
    display: flex; position: fixed; top: var(--gw-nav-h); left: 0; right: 0; z-index: 8999;
    background: var(--gw-navy); padding: 8px 14px;
  }
  .gw-search.gw-mobile-open input { width: 100%; }
  .gw-search-icon-btn { display: inline-flex; }
  .gw-data-link { display: none; }
  .gw-refresh-btn span.gw-refresh-label { display: none; }
  .gw-bottom-tabs { display: flex; }
}
