/* archive-feed — side rail showing the most recent persona exchanges
   from feed/recent-exchanges.json. Voice-neutral; no calls to action. */

.archive-feed {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  max-width: calc(100vw - 70px);
  max-height: 70vh;
  z-index: 920;
  font-family: 'Exo', sans-serif;
  color: #d8d8d8;
  background: rgba(8, 8, 10, 0.92);
  border: 1px solid rgba(120, 120, 140, 0.25);
  border-radius: 4px 0 0 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}

/* Collapsed: the panel slides fully off-screen to the right. The handle
   (anchored to the viewport edge by its right offset) stays in place. */
.archive-feed.collapsed {
  right: -360px;
}

.archive-feed__handle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8, 8, 10, 0.92);
  color: #c0c0c0;
  border: 1px solid rgba(120, 120, 140, 0.25);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 6px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  z-index: 921;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1;
  font-family: 'Exo', sans-serif;
}

.archive-feed__handle:hover { color: #fff; background: rgba(20, 20, 24, 0.95); }
.archive-feed__handle:focus { outline: 1px solid rgba(180,180,200,0.4); outline-offset: 1px; }

.archive-feed__header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(120, 120, 140, 0.18);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.archive-feed__title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9aa;
  font-weight: 500;
}

.archive-feed__meta {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #667;
  text-transform: uppercase;
}

.archive-feed__list {
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,120,140,0.4) transparent;
}

.archive-feed__list::-webkit-scrollbar { width: 6px; }
.archive-feed__list::-webkit-scrollbar-thumb { background: rgba(120,120,140,0.4); }

.archive-entry {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(120,120,140,0.10);
}
.archive-entry:last-child { border-bottom: 0; }

a.archive-entry,
a.archive-entry:visited {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
a.archive-entry:hover {
  background: rgba(120, 120, 140, 0.06);
}
a.archive-entry:hover .archive-entry__layer {
  color: #88a;
}

.archive-entry__layer {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #557;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.archive-turn {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  margin-bottom: 6px;
  align-items: start;
}
.archive-turn:last-child { margin-bottom: 0; }

.archive-turn__persona {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding-top: 1px;
  word-break: break-word;
}

.archive-turn--design .archive-turn__persona { color: #b8a878; }
.archive-turn--engineering .archive-turn__persona { color: #7896b8; }

.archive-turn__text {
  font-size: 12px;
  line-height: 1.45;
  color: #c8c8c8;
}

.archive-feed__empty {
  padding: 30px 14px;
  font-size: 11px;
  color: #667;
  text-align: center;
  letter-spacing: 0.05em;
}

.archive-feed__time {
  font-size: 9px;
  color: #556;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .archive-feed,
  .archive-feed__handle { display: none; }
}
