/* Shared sidebar for interactive prototypes — keeps users oriented
   when they drill into a hi-fi prototype from the dossier / gallery */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Instrument+Serif&display=swap");

body { padding-left: 240px !important; }

.proto-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 240px;
  background: #061a30;
  color: rgba(255,255,255,.85);
  padding: 22px 18px;
  overflow-y: auto;
  z-index: 1000;
  font-family: "DM Sans", system-ui, sans-serif;
  display: flex; flex-direction: column; gap: 16px;
  font-size: 13px;
  line-height: 1.4;
  border-right: 1px solid rgba(255,255,255,.05);
}
.proto-sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "DM Sans", sans-serif;
  letter-spacing: .04em; text-transform: uppercase;
  font-size: 11px; color: rgba(255,255,255,.65);
  text-decoration: none;
}
.proto-sidebar .brand .dot {
  width: 24px; height: 24px; border-radius: 4px;
  background: #c2271f;
  display: grid; place-items: center;
  color: #fff; font-family: "Instrument Serif", serif; font-size: 16px; line-height: 1;
}
.proto-sidebar h6 {
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin: 6px 0 2px;
}
.proto-sidebar nav { display: flex; flex-direction: column; gap: 1px; }
.proto-sidebar nav a {
  display: flex; align-items: baseline; gap: 10px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
  border: 0;
  transition: background .12s, color .12s;
}
.proto-sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.proto-sidebar nav a.current { background: rgba(194,39,31,.18); color: #fff; }
.proto-sidebar nav a .num {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  color: rgba(255,255,255,.4); width: 20px; flex-shrink: 0;
}
.proto-sidebar nav a.current .num { color: #f3b042; }
.proto-sidebar .foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}

/* Hide the per-prototype demo-bar — sidebar replaces it */
.demo-bar { display: none !important; }

/* Hide sidebar on small screens — collapses to top bar */
@media (max-width: 980px) {
  body { padding-left: 0 !important; padding-top: 48px !important; }
  .proto-sidebar {
    position: fixed; top: 0; left: 0; right: 0; bottom: auto;
    width: 100%; height: 48px;
    flex-direction: row; align-items: center; gap: 14px;
    padding: 0 14px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .proto-sidebar h6, .proto-sidebar .foot { display: none; }
  .proto-sidebar nav { flex-direction: row; gap: 4px; }
  .proto-sidebar nav a { padding: 4px 8px; white-space: nowrap; font-size: 11.5px; }
  .proto-sidebar nav a .num { display: none; }
  .proto-sidebar .brand { font-size: 10px; flex-shrink: 0; }
}
