/* ═══════════════════════════════════════════════════════════════════════
   OpenOwls — two-panel reader (Projects & People index pages)
   ───────────────────────────────────────────────────────────────────────
   Loaded AFTER main.css + profile.css. Adds only the master/detail shell;
   the injected <article> is styled by profile.css. On narrow screens the
   two panels stack (list first, then the selected detail).
   ═══════════════════════════════════════════════════════════════════════ */

.reader-head { padding: 2.4rem 0 0.4rem; }
.reader-head h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em;
  line-height: 1.05; margin-bottom: 0.5rem;
}
.reader-lede { color: var(--gray-light); max-width: 42rem; }

.reader {
  display: grid; grid-template-columns: 280px 1fr; gap: 2rem;
  align-items: start; padding: 1.6rem 0 3.5rem;
}

/* ── left: master list ── */
.reader-list {
  position: sticky; top: 76px; align-self: start;
  display: flex; flex-direction: column; gap: 0.4rem;
  max-height: calc(100vh - 100px); overflow-y: auto;
  padding-right: 0.2rem;
}
.reader-list .item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.7rem 0.85rem; color: var(--white);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.reader-list .item:hover {
  border-color: rgba(245,197,24,0.45); transform: translateX(2px); color: var(--white);
}
.reader-list .item.is-active { border-color: var(--gold); background: rgba(245,197,24,0.08); }
.item-avatar, .item-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.item-avatar {
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-dim));
}
.item-icon { background: var(--navy-light); font-size: 1.2rem; }
.item-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.item-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.item-sub { font-size: 0.76rem; color: var(--gold); }

/* ── right: detail pane (holds the injected <article>) ── */
.reader-detail { min-width: 0; }
.reader-detail .article { max-width: none; margin: 0; }
.reader-detail .breadcrumb { display: none; }        /* redundant inside the reader */
.reader-detail .tpl-note { margin-left: 0; margin-right: 0; max-width: none; }
.reader-error { color: var(--gray-light); padding: 2rem 0; }

@media (max-width: 800px) {
  .reader { grid-template-columns: 1fr; gap: 1.2rem; }
  .reader-list { position: static; top: auto; max-height: 44vh; }
}
