/* =====================================================================
 * The Trove — shared INNER styling (the journal itself).
 * ---------------------------------------------------------------------
 * The CONTAINER (#trove: side pane on Encounter, bottom sheet on ship)
 * stays in each surface's own <style> — only its inner faces live here,
 * so the journal looks identical wherever it opens. Parchment tokens
 * (--r-bg / --r-ink / --r-muted / --r-line), --forest, --font-display,
 * --font-mono are provided by the surface.
 * ===================================================================== */

/* header */
#trove .thead { display: flex; align-items: baseline; gap: 10px; padding: 18px 20px 12px; border-bottom: 1px solid var(--r-line); }
#trove .thead h2 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 20px; color: var(--forest); }
#trove .thead .sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--r-muted); }
#trove .thead .x { margin-left: auto; background: none; border: none; color: var(--r-muted); font-size: 22px; line-height: 1; cursor: pointer; }
#trove .thead .x:hover { color: var(--r-ink); }

/* contents (the list of saved passages) */
#trove .list { overflow-y: auto; padding: 6px 20px calc(24px + env(safe-area-inset-bottom)); }
#trove .item { padding: 16px 0; border-bottom: 1px solid var(--r-line); }
#trove .item .cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); margin-bottom: 7px; }
#trove .item .txt { color: var(--r-ink); font-size: .97rem; max-height: 8.5em; overflow: hidden; }
#trove .item .txt blockquote { margin: 0; padding-left: 12px; border-left: 2px solid var(--r-line); }
#trove .item .row { display: flex; gap: 16px; margin-top: 10px; }
#trove .item .row button { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; background: none; border: none; color: var(--r-muted); cursor: pointer; }
#trove .item .row button:hover { color: var(--r-ink); }
#trove .empty { color: var(--r-muted); font-style: italic; padding: 30px 0; }

/* the journal COVER — the resting face: a context-etched emblem, the
   trove_word as an embossed title, and what the Trove is. */
#trove .cover { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px 40px; }
#trove .cover-emblem { width: 176px; height: 176px; opacity: .92; }
#trove .cover-title { font-family: var(--font-display); font-size: 30px; font-weight: 300; color: var(--forest); margin: 16px 0 2px; letter-spacing: .02em; }
#trove .cover-lede { font-family: var(--font-body, var(--font-display)); font-style: italic; color: var(--r-muted); max-width: 34ch; line-height: 1.62; margin: 8px 0 20px; }

/* the sign-in / read-your-treasures button — one rule for BOTH the cover
   and the (legacy) empty state, so it is styled wherever it appears. */
#trove .signin { display: inline-block; margin-top: 12px; font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: transparent; color: var(--forest); border: 1px solid var(--forest); border-radius: var(--radius-xs, 6px); padding: .55em 1em; cursor: pointer; }
#trove .signin:hover { background: rgba(28, 90, 65, .10); }
