/* ── Custom Fonts ─────────────────────────────────────────────────────── */
@font-face {
  font-family: 'USDeclaration';
  src: url('zai_USDeclaration.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '18thCentury';
  src: url('18thCentury.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --parchment:       #FEF1D4;
  --parchment-light: #F8F2E6;
  --parchment-dark:  #E8DCC8;
  --ink:             #2C1A0E;
  --ink-light:       #4A3728;
  --brown:           #8B4513;
  --gold:            #C8A96E;
  --gold-dark:       #A07840;
  --red:             #8B1A1A;
  --red-light:       #C0392B;
}

html, body {
  scroll-behavior: smooth;
  background: #FEF1D4;
}

body {
  background: #FEF1D4;
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, serif;
  min-height: 100vh;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.pable-root {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.pable-header {
  background: var(--ink);
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 4px solid var(--brown);
}
.pable-header-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.pable-header h1 {
  font-family: 'USDeclaration', 'Crimson Pro', cursive;
  font-size: 56px;
  color: var(--parchment-light);
  line-height: 1.2;
  letter-spacing: 1px;
  margin: 4px 0;
}
.pable-header-sub {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  margin-top: 6px;
  opacity: 0.9;
}

/* ── Date Banner ─────────────────────────────────────────────────────── */
.pable-date-banner {
  background: var(--brown);
  color: var(--parchment-light);
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  padding: 7px 0;
  text-transform: uppercase;
}

/* ── Section Label ───────────────────────────────────────────────────── */
.section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 22px 24px 8px;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 4px;
  opacity: 0.7;
}

/* ── Event Cards ─────────────────────────────────────────────────────── */
.event-card {
  margin: 12px 16px;
  background: var(--parchment-dark);
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.event-card:hover { box-shadow: 3px 3px 0 var(--brown); }
.event-card-inner { padding: 16px 18px 14px; }
.event-card-year {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 28px;
  color: var(--brown);
  float: left;
  margin-right: 14px;
  margin-top: 2px;
  line-height: 1;
}
.event-card-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}
.event-card-teaser {
  font-size: 14px;
  color: var(--ink-light);
  font-style: italic;
  line-height: 1.5;
  clear: both;
  margin-top: 6px;
}
.event-card-tag {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--parchment-light);
  background: var(--ink-light);
  padding: 2px 7px;
  margin-top: 8px;
  margin-right: 4px;
  border-radius: 1px;
}
.event-card-open-hint {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: var(--gold-dark);
  float: right;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ── Expanded Event ──────────────────────────────────────────────────── */
.event-expanded {
  background: var(--parchment);
  border-top: 3px solid var(--brown);
  border-bottom: 3px solid var(--brown);
  padding-bottom: 32px;
  animation: fadeIn 0.3s ease;
}
.event-expanded-header {
  background: var(--ink-light);
  padding: 20px 24px 16px;
}
.event-expanded-year {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 52px;
  color: var(--gold);
  line-height: 1;
}
.event-expanded-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 24px;
  color: var(--parchment-light);
  margin-top: 2px;
  line-height: 1.3;
}
.back-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--brown);
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 24px 0;
  display: inline-block;
  background: none;
  border: none;
}
.back-btn:hover { text-decoration: underline; }
.event-summary {
  padding: 20px 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}

/* ── Wax Seal ────────────────────────────────────────────────────────── */
.seal-wrapper { text-align: center; padding: 24px 0 8px; }
.seal-svg {
  cursor: pointer;
  transition: transform 0.15s;
  filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.35));
}
.seal-svg:hover { transform: scale(1.05) rotate(-2deg); }
.seal-svg.broken { animation: sealBreak 0.4s ease forwards; cursor: default; }
.seal-label {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 8px;
}

/* ── Goodies ─────────────────────────────────────────────────────────── */
.goodies-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 22px;
  color: var(--brown);
  text-align: center;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--gold);
  margin: 0 16px 4px;
}
.goodies-container { padding: 0 16px; animation: fadeIn 0.4s ease; }
.goodie-section {
  margin: 18px 0;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--parchment-light);
  overflow: hidden;
}
.goodie-section-header {
  background: var(--ink);
  color: var(--gold);
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.goodie-icon { font-size: 14px; }
.goodie-body { padding: 14px; }

/* ── Images ──────────────────────────────────────────────────────────── */
.images-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.image-item { border: 1px solid var(--gold); border-radius: 2px; overflow: hidden; background: var(--parchment-dark); }
.image-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.image-caption { font-size: 11px; font-style: italic; color: var(--ink-light); padding: 4px 6px; line-height: 1.3; }

/* ── Video ───────────────────────────────────────────────────────────── */
.video-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--gold);
  text-decoration: none; color: inherit;
}
.video-item:last-child { border-bottom: none; }
.video-thumb {
  width: 70px; height: 48px;
  background: var(--ink-light); border: 1px solid var(--gold);
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 20px; border-radius: 1px;
}
.video-title { font-family: 'Crimson Pro', serif; font-size: 14px; line-height: 1.4; }
.video-source { font-family: 'Courier Prime', monospace; font-size: 10px; color: var(--brown); letter-spacing: 1px; margin-top: 2px; }

/* ── Audio ───────────────────────────────────────────────────────────── */
.audio-item { padding: 10px 0; border-bottom: 1px dashed var(--gold); }
.audio-item:last-child { border-bottom: none; }
.audio-title { font-family: 'Crimson Pro', serif; font-size: 15px; margin-bottom: 6px; }
.audio-source { font-family: 'Courier Prime', monospace; font-size: 10px; color: var(--brown); letter-spacing: 1px; margin-top: 4px; }
audio { width: 100%; height: 32px; margin-top: 6px; }

/* ── Etymology ───────────────────────────────────────────────────────── */
.word-item { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--gold); }
.word-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.word-term { font-family: 'Crimson Pro', Georgia, serif; font-size: 20px; color: var(--brown); }
.word-pos { font-family: 'Courier Prime', monospace; font-size: 10px; color: var(--ink-light); letter-spacing: 1px; margin-left: 8px; text-transform: uppercase; }
.word-etymology { font-size: 14px; font-style: italic; color: var(--ink-light); margin-top: 4px; line-height: 1.5; }
.word-definition { font-size: 15px; color: var(--ink); margin-top: 6px; line-height: 1.6; }

/* ── Money ───────────────────────────────────────────────────────────── */
.money-display { text-align: center; padding: 8px 0 4px; }
.money-original { font-family: 'Crimson Pro', Georgia, serif; font-size: 28px; color: var(--brown); }
.money-arrow { font-size: 22px; color: var(--gold); margin: 4px 0; }
.money-modern { font-family: 'Crimson Pro', Georgia, serif; font-size: 32px; color: var(--ink); }
.money-note { font-family: 'Courier Prime', monospace; font-size: 11px; color: var(--ink-light); margin-top: 6px; letter-spacing: 1px; }
.money-context { font-size: 13px; font-style: italic; color: var(--ink-light); margin-top: 8px; text-align: center; }

/* ── Music ───────────────────────────────────────────────────────────── */
.music-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--gold); }
.music-item:last-child { border-bottom: none; }
.music-icon { font-size: 22px; flex-shrink: 0; width: 36px; text-align: center; }
.music-title { font-family: 'Crimson Pro', serif; font-size: 15px; line-height: 1.3; }
.music-composer { font-family: 'Courier Prime', monospace; font-size: 10px; color: var(--brown); letter-spacing: 1px; margin-top: 2px; }
.music-note { font-size: 12px; font-style: italic; color: var(--ink-light); margin-top: 2px; }

/* ── Books ───────────────────────────────────────────────────────────── */
.book-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--gold); }
.book-item:last-child { border-bottom: none; }
.book-cover { width: 48px; flex-shrink: 0; }
.book-cover img { width: 48px; height: 64px; object-fit: cover; border: 1px solid var(--gold); border-radius: 1px; }
.book-cover-placeholder { width: 48px; height: 64px; background: var(--brown); border-radius: 1px; display: flex; align-items: center; justify-content: center; }
.book-title { font-family: 'Crimson Pro', Georgia, serif; font-size: 15px; line-height: 1.3; }
.book-title a { color: var(--ink); text-decoration: none; }
.book-title a:hover { text-decoration: underline; }
.book-author { font-family: 'Courier Prime', monospace; font-size: 10px; color: var(--ink-light); letter-spacing: 1px; margin-top: 2px; }
.book-type { display: inline-block; font-family: 'Courier Prime', monospace; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 1px 5px; border: 1px solid var(--gold); color: var(--brown); margin-top: 4px; border-radius: 1px; }
.book-note { font-size: 13px; font-style: italic; color: var(--ink-light); margin-top: 4px; line-height: 1.4; }

/* ── Newspapers ──────────────────────────────────────────────────────── */
.newspaper-item { padding: 8px 0; border-bottom: 1px dashed var(--gold); }
.newspaper-item:last-child { border-bottom: none; }
.newspaper-title { font-family: 'Crimson Pro', Georgia, serif; font-size: 16px; line-height: 1.3; }
.newspaper-title a { color: var(--ink); }
.newspaper-meta { font-family: 'Courier Prime', monospace; font-size: 10px; color: var(--brown); letter-spacing: 1px; margin-top: 3px; }
.newspaper-snippet { font-size: 13px; font-style: italic; color: var(--ink-light); margin-top: 4px; line-height: 1.4; }

/* ── Map ─────────────────────────────────────────────────────────────── */
.map-placeholder {
  background: var(--parchment-dark); border: 1px dashed var(--gold);
  border-radius: 2px; padding: 20px; text-align: center;
  font-family: 'Crimson Pro', serif; font-style: italic;
  color: var(--ink-light); font-size: 14px;
}
.map-link {
  display: inline-block; margin-top: 8px;
  font-family: 'Courier Prime', monospace; font-size: 11px;
  color: var(--brown); text-decoration: underline; cursor: pointer; letter-spacing: 1px;
}

/* ── Source Footer ───────────────────────────────────────────────────── */
.source-footer {
  font-family: 'Courier Prime', monospace;
  font-size: 10px; color: var(--ink-light); text-align: center;
  padding: 20px 24px 0; letter-spacing: 1px; opacity: 0.6; line-height: 1.9;
}

/* ── Loading / States ────────────────────────────────────────────────── */
.loading-ink {
  font-family: 'Courier Prime', monospace; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-light); text-align: center; padding: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}
.empty-state { font-style: italic; font-size: 14px; color: var(--ink-light); padding: 4px 0; }

/* ── Animations ──────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
/* seal styles moved to v3.8 section below */

/* ── Scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Splash Screen ───────────────────────────────────────────────────── */
#splash {
  background: #FEF1D4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  animation: fadeIn 0.6s ease;
}

#splash-logo {
  width: 100%;
  max-width: 460px;
  height: auto;
  animation: splashDrop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#splash-tagline {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-light);
  letter-spacing: 1px;
  margin-top: 8px;
  text-align: center;
  animation: fadeIn 1.2s ease both;
}

#splash-enter {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 32px;
  cursor: pointer;
  border: 1px solid var(--gold);
  padding: 10px 28px;
  border-radius: 2px;
  background: var(--parchment-dark);
  transition: background 0.15s, box-shadow 0.15s;
  animation: fadeIn 1.6s ease both;
}

#splash-enter:hover {
  background: var(--parchment);
  box-shadow: 2px 2px 0 var(--brown);
}

#splash.hidden {
  animation: splashFadeOut 0.5s ease forwards;
}

@keyframes splashDrop {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes splashFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}

/* ── Custom Font Usage ───────────────────────────────────────────────── */

/* USDeclaration script — Pable wordmark in app header only */
.pable-wordmark {
  font-family: 'USDeclaration', cursive;
  font-size: 56px;
  color: var(--parchment-light);
  line-height: 1.05;
  letter-spacing: 1px;
}

/* Display font for section headers and event titles */
.font-18c {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pable-header h1 { font-size: 34px; }
  .event-expanded-year { font-size: 38px; }
  .images-grid { grid-template-columns: 1fr; }
}

/* ── v2 Additions ────────────────────────────────────────────────────── */

/* Event card thumbnail */
.event-card-thumb {
  width: 100%; height: 140px; object-fit: cover;
  display: block; border-bottom: 1px solid var(--gold);
  margin-bottom: 10px;
}
.event-card-era {
  font-family: 'Courier Prime', monospace;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 4px;
}
.event-expanded-era {
  font-family: 'Courier Prime', monospace;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.wiki-link {
  display: inline-block; margin-top: 10px;
  font-family: 'Courier Prime', monospace; font-size: 11px;
  color: var(--brown); letter-spacing: 1px; text-decoration: underline;
}

/* Goodies grid */
.goodies-grid { padding: 0 16px; }
.goodies-title {
  font-size: 22px; color: var(--brown); text-align: center;
  padding: 4px 0 16px; border-bottom: 1px solid var(--gold);
  margin: 0 16px 4px;
}

/* Goodie source note */
.goodie-source {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  color: var(--ink-light); margin-top: 10px; letter-spacing: 1px;
  opacity: 0.65; border-top: 1px dashed var(--gold); padding-top: 6px;
}

/* Video items */
.video-thumb-img {
  width: 110px; height: 62px; object-fit: cover;
  border: 1px solid var(--gold); border-radius: 1px; flex-shrink: 0;
}
.video-thumb-placeholder {
  width: 70px; height: 48px; background: var(--ink-light);
  border: 1px solid var(--gold); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 1px;
}
.video-channel {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  color: var(--gold-dark); letter-spacing: 1px; margin-top: 2px;
}

/* Newspaper */
.newspaper-page-link { display: block; position: relative; margin-bottom: 8px; }
.newspaper-thumb {
  width: 100%; max-height: 200px; object-fit: cover;
  border: 1px solid var(--gold); border-radius: 1px;
}
.newspaper-zoom {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(44,26,14,0.8); color: var(--gold);
  font-family: 'Courier Prime', monospace; font-size: 10px;
  padding: 2px 6px; border-radius: 1px; letter-spacing: 1px;
}

/* Money */
.money-mention {
  font-family: 'Crimson Pro', Georgia, serif; font-size: 20px;
  color: var(--brown); font-style: italic; margin-bottom: 4px;
}
.money-display { text-align: center; padding: 8px 0 4px; }
.money-original { font-size: 14px; color: var(--ink-light); font-style: italic; }
.money-arrow { font-size: 22px; color: var(--gold); margin: 4px 0; }
.money-modern { font-family: 'Crimson Pro', Georgia, serif; font-weight: 600; font-size: 28px; color: var(--ink); }
.money-note { font-family: 'Courier Prime', monospace; font-size: 10px; color: var(--ink-light); margin-top: 6px; }
.money-context { font-size: 13px; font-style: italic; color: var(--ink-light); margin-top: 8px; text-align: center; }

/* Thesaurus */
.thes-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thes-word {
  font-family: 'Crimson Pro', serif; font-size: 14px;
  background: var(--parchment-dark); border: 1px solid var(--gold);
  padding: 2px 8px; border-radius: 1px; color: var(--ink);
}
.thes-word.antonym { border-color: var(--brown); color: var(--brown); }

/* Composer portrait */
.composer-portrait {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--gold);
}

/* Audio label */
.audio-label {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  color: var(--gold-dark); letter-spacing: 1px; margin-top: 4px;
}

/* Archive link */
.archive-link {
  font-family: 'Courier Prime', monospace; font-size: 11px;
  color: var(--brown); text-decoration: underline; letter-spacing: 1px;
}

/* Image source badge */
.img-source {
  font-family: 'Courier Prime', monospace; font-size: 9px;
  color: var(--gold-dark); letter-spacing: 1px; margin-left: 4px;
  opacity: 0.7;
}

/* Source footer */
.source-footer {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  color: var(--ink-light); text-align: center; padding: 24px 24px 0;
  letter-spacing: 1px; opacity: 0.55; line-height: 2;
}

/* ── v3 Additions ─────────────────────────────────────────────────── */

/* Display font — Crimson Pro semibold throughout */
.font-18c { font-family: 'Crimson Pro', Georgia, serif; font-weight: 600; }

/* Fix: header eyebrow with About button */
.pable-header-eyebrow {
  display: flex; align-items: center; justify-content: center;
  position: relative; width: 100%;
}
.about-btn {
  position: absolute; right: 0;
  font-family: 'Courier Prime', monospace; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); background: none; border: 1px solid var(--gold);
  padding: 3px 10px; border-radius: 1px; cursor: pointer;
  opacity: 0.8; transition: opacity 0.15s;
}
.about-btn:hover { opacity: 1; }

/* Fix: header sub — use Crimson Pro not 18thCentury */
.pable-header-sub {
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic; font-size: 15px;
  color: var(--gold); margin-top: 6px; opacity: 0.9;
}

/* Fix: event card layout */
.event-card { overflow: hidden; }
.event-card-inner { padding: 14px 18px 12px; }
.event-card-year {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600; font-size: 26px;
  color: var(--brown); line-height: 1; margin-bottom: 2px;
}
.event-card-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 600; font-size: 17px;
  color: var(--ink); line-height: 1.3; margin-bottom: 6px;
}
.event-card-open-hint {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  color: var(--gold-dark); text-align: right;
  letter-spacing: 1px; margin-top: 10px; display: block;
  border-top: 1px dashed var(--gold); padding-top: 8px;
}

/* People dossiers */
.person-card {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--gold);
}
.person-card:last-child { border-bottom: none; }
.person-portrait {
  width: 72px; height: 90px; object-fit: cover;
  border: 1px solid var(--gold); border-radius: 1px; flex-shrink: 0;
}
.person-portrait-placeholder {
  width: 72px; height: 90px; background: var(--parchment-dark);
  border: 1px solid var(--gold); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.person-name {
  font-family: 'Crimson Pro', serif; font-weight: 600; font-size: 17px;
  color: var(--brown); margin-bottom: 4px;
}
.person-extract { font-size: 13px; color: var(--ink-light); line-height: 1.5; }

/* Life & Society */
.society-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--gold); }
.society-item:last-child { border-bottom: none; margin-bottom: 0; }
.society-thumb { width: 100%; max-height: 140px; object-fit: cover; border: 1px solid var(--gold); margin-bottom: 8px; border-radius: 1px; }
.society-name { font-family: 'Crimson Pro', serif; font-weight: 600; font-size: 17px; color: var(--brown); margin-bottom: 4px; }
.society-extract { font-size: 14px; color: var(--ink-light); line-height: 1.6; margin-bottom: 6px; }
.goodie-context { font-style: italic; font-size: 14px; color: var(--ink-light); margin-bottom: 12px; line-height: 1.5; }

/* ── About Section ───────────────────────────────────────────────── */
.about-container { padding: 0 0 40px; }
.about-tabs {
  display: flex; border-bottom: 2px solid var(--gold);
  margin: 16px 16px 0;
}
.about-tab {
  font-family: 'Courier Prime', monospace; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  background: none; border: none; padding: 10px 18px;
  color: var(--ink-light); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.15s;
}
.about-tab.active { color: var(--brown); border-bottom-color: var(--brown); }
.about-panel { padding: 20px 20px 0; }

/* Tribute */
.pable-tribute { text-align: center; padding: 20px 0 16px; }
.tribute-photo-wrap { margin-bottom: 14px; }
.tribute-photo {
  width: 160px; height: 200px; object-fit: cover;
  border: 3px solid var(--gold); border-radius: 2px;
  filter: sepia(20%);
}
.tribute-photo-placeholder {
  width: 160px; height: 200px; background: var(--parchment-dark);
  border: 3px solid var(--gold); border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Crimson Pro', serif; font-size: 28px; color: var(--ink-light);
}
.tribute-name {
  font-family: 'Crimson Pro', serif; font-weight: 600; font-size: 22px;
  color: var(--ink); margin-bottom: 4px;
}
.tribute-dates {
  font-family: 'Courier Prime', monospace; font-size: 12px;
  letter-spacing: 2px; color: var(--inkLight); margin-bottom: 8px;
}
.tribute-titles {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 14px; color: var(--ink-light); line-height: 1.7;
}
.tribute-bio {
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  padding: 18px 0; margin: 16px 0;
}
.tribute-bio p { font-size: 16px; line-height: 1.75; margin-bottom: 12px; color: var(--ink); }
.tribute-bio p:last-child { margin-bottom: 0; }
.tribute-obit-link {
  display: inline-block; font-family: 'Courier Prime', monospace;
  font-size: 11px; letter-spacing: 1px; color: var(--brown);
  text-decoration: underline; margin-bottom: 24px;
}

/* Paul Harvey */
.harvey-section {
  background: var(--ink); border-radius: 2px; padding: 20px;
  margin-top: 8px;
}
.harvey-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.harvey-icon { font-size: 32px; flex-shrink: 0; }
.harvey-title {
  font-family: 'Crimson Pro', serif; font-weight: 600; font-size: 20px;
  color: var(--gold); line-height: 1.2;
}
.harvey-sub {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  letter-spacing: 2px; color: var(--parchment-dark);
  margin-top: 4px; text-transform: uppercase;
}
.harvey-bio p {
  font-size: 15px; color: var(--parchment-light); line-height: 1.7;
  margin-bottom: 10px;
}
.harvey-bio p:last-child { margin-bottom: 16px; }
.harvey-bio em { color: var(--gold); font-style: italic; }
.harvey-playlist-btn {
  display: block; text-align: center;
  font-family: 'Courier Prime', monospace; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--brown); color: var(--parchment-light);
  padding: 12px 20px; border-radius: 1px; text-decoration: none;
  transition: background 0.15s; margin-top: 4px;
}
.harvey-playlist-btn:hover { background: var(--gold-dark); }

/* App About */
.app-about-section { padding-bottom: 20px; }
.app-about-logo { text-align: center; margin: 10px 0 16px; }
.app-about-title {
  font-family: 'Crimson Pro', serif; font-size: 20px;
  color: var(--ink); margin-bottom: 10px; font-weight: 600;
}
.app-about-subhead {
  font-family: 'Crimson Pro', serif; font-size: 16px; font-weight: 600;
  color: var(--brown); margin: 16px 0 6px; border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.app-about-body {
  font-size: 15px; color: var(--ink-light); line-height: 1.7; margin-bottom: 4px;
}

/* ── Met Museum Artifacts ─────────────────────────────────────────── */
.met-artifact {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--gold);
}
.met-artifact:last-child { border-bottom: none; }
.met-img-link { flex-shrink: 0; }
.met-img {
  width: 90px; height: 110px; object-fit: cover;
  border: 1px solid var(--gold); border-radius: 1px;
  display: block; transition: opacity 0.15s;
}
.met-img:hover { opacity: 0.85; }
.met-info { flex: 1; min-width: 0; }
.met-title {
  font-family: 'Crimson Pro', serif; font-size: 15px;
  font-weight: 600; line-height: 1.3; margin-bottom: 3px;
}
.met-title a { color: var(--ink); text-decoration: none; }
.met-title a:hover { text-decoration: underline; color: var(--brown); }
.met-artist {
  font-family: 'Crimson Pro', serif; font-style: italic;
  font-size: 13px; color: var(--brown); margin-bottom: 3px;
}
.met-meta {
  font-family: 'Courier Prime', monospace; font-size: 10px;
  color: var(--ink-light); letter-spacing: 0.5px; line-height: 1.5;
  margin-bottom: 2px;
}
.met-dims {
  font-family: 'Courier Prime', monospace; font-size: 9px;
  color: var(--ink-light); opacity: 0.6;
}

/* ── Curated Context ─────────────────────────────────────────────── */
.curated-context {
  background: var(--parchment-dark);
  border-left: 3px solid var(--brown);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  font-style: italic;
  border-radius: 0 2px 2px 0;
}

/* Person role line */
.person-role {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 4px;
  opacity: 0.85;
}

/* ── Infobox Map ─────────────────────────────────────────────────── */
.infobox-map-wrap {
  margin-bottom: 16px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  overflow: hidden;
}
.infobox-map {
  width: 100%;
  display: block;
  max-height: 300px;
  object-fit: contain;
  background: var(--parchment-dark);
}
.infobox-map-caption {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--ink-light);
  padding: 4px 8px;
  opacity: 0.7;
  background: var(--parchment-dark);
}

/* ── Wax Seal ─────────────────────────────────────────────────── */
.seal-wrapper {
  text-align: center;
  padding: 24px 0 8px;
  user-select: none;
}
.seal-img-wrap {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.3));
  background: #FCEFD1;
  border-radius: 50%;
}
.seal-img-wrap:hover { transform: scale(1.06) rotate(-2deg); }
.seal-img {
  width: 200px;
  height: 200px;
  display: block;
}
/* sprite sheet replaced by GIF */
.seal-label {
  font-family: 'Courier Prime', monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-light); margin-top: 10px;
}
/* ── Goodies Reveal Animation ────────────────────────────────────── */
/* Simple, reliable fade + slide — works on all browsers including mobile */

.goodies-reveal {
  animation: goodiesReveal 0.5s ease-out 0.1s both;
}

@keyframes goodiesReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Goodie sections — simple fade in, no stagger (stagger broke with slot divs) */
.goodie-section {
  animation: goodieReveal 0.4s ease-out both;
}
@keyframes goodieReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Image Lightbox ───────────────────────────────────────────────── */
.lightbox-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.lightbox-modal.lightbox-open { opacity: 1; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(44, 26, 14, 0.92);
}
.lightbox-content {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
  animation: lightboxIn 0.3s ease both;
}
@keyframes lightboxIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lightbox-img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--gold);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.lightbox-caption {
  font-family: 'Crimson Pro', serif;
  font-style: italic; font-size: 14px;
  color: var(--gold); text-align: center;
  max-width: 80vw; margin-top: 10px;
  line-height: 1.4;
}
.lightbox-close {
  position: absolute; top: -14px; right: -14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brown); color: var(--parchment-light);
  border: none; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.lightbox-close:hover { background: var(--red); }

/* Make image items show pointer cursor */
.image-item img, .met-img { cursor: zoom-in; }
