/* Gallery + contents overlay for the exported deck (see export_extras.py). Colours follow slides/style.py. */
:root { --bg:#faf7f0; --fg:#1c2230; --accent:#1d6fb8; --accent2:#a8680f; --muted:#666c7c; --card:#fffdf8; --line:#ded8c8; }
#deck-panel, #deck-btn { font-family: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", serif; color: var(--fg); }

/* ---- always-visible button */
#deck-btn { position: fixed; top: 14px; left: 14px; z-index: 900; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; font-size: 16px; cursor: pointer; opacity: .55; transition: opacity .2s; }
#deck-btn:hover, #deck-btn:focus { opacity: 1; }

/* ---- contents panel (drawer) */
#deck-panel { position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 92vw); z-index: 950; background: var(--bg);
  border-right: 1px solid var(--line); box-shadow: 4px 0 20px rgba(28,34,48,.2); transform: translateX(-105%);
  transition: transform .2s; display: flex; flex-direction: column; }
#deck-panel.open { transform: none; }
#deck-panel header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
#deck-panel header b { font-size: 20px; color: var(--accent); }
#deck-panel header button { font: inherit; font-size: 15px; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; cursor: pointer; color: var(--fg); }
#deck-panel .list { overflow-y: auto; padding: 6px 10px 30px; flex: 1; }
#deck-panel h3 { margin: 18px 6px 6px; font-size: 16px; color: var(--accent2); cursor: pointer; }
.deck-row { display: flex; gap: 10px; align-items: center; padding: 5px 6px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.deck-row:hover { background: var(--card); }
.deck-row.cur { background: var(--card); border-color: var(--accent); }
.deck-row img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; flex: none; background: var(--bg); }
.deck-row span { font-size: 16px; line-height: 1.25; }
.deck-row small { color: var(--muted); display: block; font-size: 12px; }
