/* cached-references-sidebar.css: §11.10 sidebar drawer styling.
 * R-2026-05-30b. Vanilla CSS; Palette B aligned; CSP-clean.
 */
.vca-cached-refs-sidebar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: stretch;
  font-family: 'Geist Sans', 'Geist', system-ui, -apple-system, sans-serif;
  color: #d0d0d0;
}
.vca-cached-refs-tab {
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid #2a2a2a;
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: #fbbf24;
  cursor: pointer;
  padding: 0.85rem 0.4rem;
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-height: 8.5rem;
  min-width: 2.4rem;
}
.vca-cached-refs-tab:hover,
.vca-cached-refs-tab:focus-visible {
  color: #4ade80;
  border-color: #4ade80;
  outline: none;
}
.vca-cached-refs-tab-icon {
  font-size: 1.05rem;
  writing-mode: horizontal-tb;
}
.vca-cached-refs-tab-label {
  letter-spacing: 0.04em;
}
.vca-cached-refs-drawer {
  width: 340px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(15, 15, 15, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid #2a2a2a;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 0.9rem 0.9rem 0.7rem 0.9rem;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.5);
}
.vca-cached-refs-drawer[hidden] {
  display: none;
}
.vca-cached-refs-sidebar--open .vca-cached-refs-tab {
  border-radius: 6px 0 0 6px;
}
.vca-cached-refs-head h2 {
  color: #fbbf24;
  font-size: 0.95rem;
  margin: 0 0 0.2rem 0;
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-weight: 600;
}
.vca-cached-refs-sub {
  color: #707070;
  font-size: 0.78rem;
  margin: 0 0 0.7rem 0;
}
.vca-cached-refs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vca-cached-refs-item {
  border-top: 1px solid #2a2a2a;
  padding: 0.55rem 0;
}
.vca-cached-refs-item:first-child {
  border-top: none;
  padding-top: 0;
}
.vca-cached-refs-link {
  color: #4ade80;
  text-decoration: none;
  font-weight: 500;
  display: block;
  margin-bottom: 0.2rem;
}
.vca-cached-refs-link:hover,
.vca-cached-refs-link:focus-visible {
  color: #fbbf24;
  text-decoration: underline;
  outline: none;
}
.vca-cached-refs-item-name {
  font-size: 0.86rem;
}
.vca-cached-refs-item-blurb {
  color: #c8c8c8;
  font-size: 0.78rem;
  margin: 0.15rem 0 0.3rem 0;
  line-height: 1.35;
}
.vca-cached-refs-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  font-size: 0.7rem;
}
.vca-cached-refs-item-courses {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.vca-cached-refs-chip {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}
.vca-cached-refs-item-license {
  color: #707070;
  font-size: 0.7rem;
}
.vca-cached-refs-footer {
  margin-top: 0.7rem;
  padding-top: 0.5rem;
  border-top: 1px solid #2a2a2a;
  color: #707070;
  font-size: 0.7rem;
}
.vca-cached-refs-footer code {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  color: #4ade80;
}

@media (max-width: 640px) {
  .vca-cached-refs-tab {
    padding: 0.55rem 0.25rem;
    min-height: 7rem;
    min-width: 2rem;
    font-size: 0.72rem;
  }
  .vca-cached-refs-drawer {
    width: 86vw;
    padding: 0.7rem 0.6rem;
  }
}
