/* The Epstein Files hub test page (stage 3, 9 Oct 2026). Page-only styles on top of shared/ratc.css.
   Her two intro paragraphs, then the front door she chose ("Start with The Blank Check", 1991) with her vault
   picture, then the records room: a cabinet with one drawer per year the essays cover (her year headings),
   each opening to its files tagged by investigation, then everyone whose page shares one of these essays.
   Motion: the shared print-in on the vault; a drawer opens with the shared folder move. All finished under Still. */

/* ---------- 1. Opening ---------------------------------------------------- */
.ep-open { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.ep-open__inner { display: grid; gap: 32px; align-items: center; }
.ep-open__text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.ep-open__art { margin: 0; width: 100%; }  /* the top picture, 11 Oct 2026; under the text on phones */
@media (min-width: 900px) { .ep-open__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 64px); } }
.ep-kicker, .ep-title { margin: 0; }
.ep-kicker a { color: var(--label); text-decoration-color: var(--accent); text-underline-offset: .25em; }
.ep-lede { margin: 4px 0 0; max-width: 32ch; font: 700 var(--fs-h3)/1.4 var(--font-body); color: var(--display); text-wrap: pretty; }
.ep-intro { margin: 0; max-width: 58ch; }
.ep-count { margin: 4px 0 0; }

/* ---------- 2. The front door --------------------------------------------- */
.ep-door__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px clamp(32px, 5vw, 64px); align-items: center; }
.ep-door__art { display: block; margin: 0; }
.ep-door__art img { width: 100%; height: auto; }
.ep-door__text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.ep-door__stamp { margin: 0; }
.ep-door__h { margin: 0; }
.ep-door__h a { color: var(--display); text-decoration: none; }
.ep-door__h a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); text-underline-offset: .1em; }
.ep-door__ex { margin: 0; max-width: 44ch; }
.ep-door__date { margin: 0 0 6px; }

/* ---------- 3. The records room ------------------------------------------- */
.ep-room__h { margin: 0 0 1rem; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem; }
.ep-chip { min-height: 40px; }
.cabinet { display: grid; gap: 10px; padding: 14px; border: 2px solid var(--bone); background: var(--ground-black); }
.drawer { background: var(--night-plum); border: 2px solid var(--dusk-violet); }
.drawer[hidden] { display: none; }
.drawer__front {
  list-style: none; cursor: pointer; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 12px 20px;
  padding: 14px 18px; min-height: 64px;
}
.drawer__front::-webkit-details-marker { display: none; }
.drawer__front:focus-visible { outline-offset: 2px; }
/* the label card in its brass frame, as on a records-room drawer */
.drawer__year { justify-self: start; padding: 4px 14px; border: 2px solid var(--mustard); background: var(--cream); color: var(--ink-plum); font: 400 clamp(1.375rem, 1.1rem + .9vw, 2rem)/1 var(--font-display); }
.drawer__n { color: var(--text); }
.drawer__handle { justify-self: end; width: 56px; height: 14px; border: 2px solid var(--mustard); border-top: 0; border-radius: 0 0 10px 10px; }
.drawer__front:hover .drawer__handle, .drawer[open] .drawer__handle { background: var(--mustard); }
.drawer[open] { border-color: var(--bone); }
.drawer__files { list-style: none; display: grid; gap: 0; margin: 0 18px 16px; border-top: 2px dashed rgb(232 195 146 / .4); }
.ep-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--dusk-violet); }
.ep-file:last-child { border-bottom: 0; }
.ep-file[hidden] { display: none; }
.ep-file__a { font: 700 1.1875rem/1.3 var(--font-body); color: var(--cream); text-decoration: none; text-wrap: pretty; }
.ep-file__a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.ep-file__tags { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.ep-tag { color: var(--text); text-decoration: none; white-space: nowrap; }
a.ep-tag:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.ep-room__key { margin: 16px 0 0; }

/* ---------- 4. Who is in these files --------------------------------------- */
.ep-who-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.ep-who { display: grid; gap: 6px; color: var(--text); text-decoration: none; }
.ep-who__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; border: 2px solid transparent; }
.ep-who__name { font: 400 1.125rem/1.05 var(--font-display); text-transform: uppercase; color: var(--display); }
.ep-who:hover .ep-who__img { border-color: var(--bone); }
.ep-who:hover .ep-who__name { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.ep-ppl__all { margin: 22px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="still"]) .drawer__handle { transition: background-color 160ms var(--ease-out); }
}
@media (max-width: 899px) {
  .ep-door__grid { grid-template-columns: minmax(0, 1fr); }
  .ep-door__art { margin-inline: calc(-1 * var(--gutter) + 6px); }
  .ep-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .ep-chip { flex: none; }
  .cabinet { padding: 8px; margin-inline: calc(-1 * var(--gutter) + 6px); }
  .drawer__front { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .drawer__handle { display: none; }
  .drawer__files { margin: 0 12px 12px; }
  .ep-who-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .ep-who__name { font-size: 1rem; }
}
