@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #080604;
  --ink-2: #141008;
  --ink-3: #241E14;
  --muted: #3A3028;
  --muted-2: #6A5E50;
  --border: rgba(8,6,4,0.1);
  --border-2: rgba(8,6,4,0.2);
  --gold: #7A5A0A;
  --gold-light: #A07820;
  --gold-dim: #5A4008;
  --parchment: #EEE4C8;
  --parchment-2: #E2D4B0;
  --cream: #F8F2E4;
  --clay: #8B4A2B;
  --surface: rgba(255,255,255,0.6);
  --surface-2: rgba(255,255,255,0.9);
  --radius: 6px;
  --radius-lg: 10px;
  --base: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--base); overflow-x: hidden; }
body { background: var(--cream); color: var(--ink); font-family: 'EB Garamond', Georgia, serif; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
h1,h2,h3 { font-family: 'Cinzel', serif; font-weight: 400; letter-spacing: 0.04em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248,242,228,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
}
.nav-logo { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.14em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.nav-logo .dingir { font-size: 22px; color: var(--gold); }
.nav-links { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; flex-shrink: 1; min-width: 0; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); padding: 0 0.75rem; height: 60px;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: all 0.15s; white-space: nowrap; flex-shrink: 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }

/* ── Hero ── */
.hero { padding: 4.5rem 1.5rem 3.5rem; text-align: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::before { content: '𒀭'; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: 10rem; opacity: 0.035; pointer-events: none; animation: slowspin 60s linear infinite; }
@keyframes slowspin { to { transform: translateY(-50%) rotate(360deg); } }
.hero-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; display: block; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); color: var(--ink); line-height: 1.18; margin-bottom: 1.1rem; max-width: 740px; margin-left: auto; margin-right: auto; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin: 0 auto 2.5rem; line-height: 1.9; }
.hero-stats { display: flex; gap: 3.5rem; justify-content: center; padding-top: 2.5rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat { text-align: center; }
.stat-n { font-family: 'Cinzel', serif; font-size: 2.2rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 6px; }
.stat-l { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

/* ── Main content ── */
#main { padding: 0 0 5rem; }
.container-main { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ── View toggle (Catalog / Series) ── */
.view-toggle { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.view-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 1.25rem; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.15s; background: transparent; border-top: none; border-left: none; border-right: none;
}
.view-tab:hover { color: var(--ink); }
.view-tab.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }

.view-panel { display: none; }
.view-panel.active { display: block; }

/* ── Controls ── */
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.search-wrap { position: relative; flex: 1; min-width: 220px; }
.search-wrap input {
  width: 100%; padding: 10px 12px 10px 38px;
  border: 1px solid var(--border-2); border-radius: var(--radius);
  font-family: 'EB Garamond', serif; font-size: 17px;
  background: var(--surface-2); color: var(--ink); outline: none;
  transition: border-color 0.15s;
}
.search-wrap input:focus { border-color: var(--gold); }
.search-wrap input::placeholder { color: var(--muted-2); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 16px; pointer-events: none; }

/* ── Pills ── */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 20px;
  border: 1px solid var(--border-2); background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.pill:hover { border-color: var(--gold); color: var(--ink); }
.pill.active { background: var(--parchment-2); border-color: var(--gold); color: var(--ink); font-weight: 500; }

.rcount { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted-2); margin-bottom: 1.25rem; }

/* ── Section headers in catalog ── */
.cat-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2); padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  margin: 2rem 0 0.9rem;
}
.cat-head:first-of-type { margin-top: 0; }

/* ── Card grid ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }

/* ── Tablet cards ── */
.tablet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.tablet-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-1px); }
.card-glyph { font-size: 1rem; line-height: 1.4; opacity: 0.45; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.card-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px; display: inline-block;
}
.badge-creation { background: #EEEDFE; color: #3C3489; }
.badge-flood { background: #E6F1FB; color: #0C447C; }
.badge-anunnaki { background: #E1F5EE; color: #085041; }
.badge-kingship { background: #FAEEDA; color: #633806; }
.badge-hero { background: #FBEAF0; color: #4B1528; }
.badge-underworld { background: #FAECE7; color: #4A1B0C; }
.badge-wisdom { background: #EAF3DE; color: #27500A; }
.badge-magic { background: #F0EAFE; color: #3B2080; }
.badge-divination { background: #E8EEF8; color: #1A3570; }
.badge-demonology { background: #FCEBEB; color: #501313; }
.badge-metaphysics { background: #E0F4F4; color: #0A4040; }
.badge-map { background: #EDF3E8; color: #2A4A1A; }
.badge-visual { background: #FEF3E2; color: #7A3B0A; }
.badge-catalogue { background: #F0F0F0; color: #333; }
.card-title { font-family: 'Cinzel', serif; font-size: 13px; color: var(--ink); line-height: 1.35; font-weight: 500; }
.card-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); }
.card-location { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); }
.card-location span { color: var(--muted); }
.card-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.card-chip { font-size: 11px; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--border); color: var(--muted); font-family: 'EB Garamond', serif; line-height: 1.4; }
.card-note-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ── Modal overlay ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(8,6,4,0.6); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream); border-radius: var(--radius-lg);
  width: 100%; max-width: 700px; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 64px rgba(8,6,4,0.3);
}
.modal-head { padding: 1.25rem 1.4rem 0; flex-shrink: 0; }
.modal-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 0.5rem; }
.modal-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-id-link { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--gold); border: 1px solid var(--border-2); border-radius: 3px; padding: 2px 7px; transition: background 0.15s; }
.modal-id-link:hover { background: var(--parchment); }
.modal-title { font-family: 'Cinzel', serif; font-size: 19px; color: var(--ink); line-height: 1.25; margin-bottom: 0.25rem; font-weight: 500; }
.modal-meta { font-size: 14px; color: var(--muted); margin-bottom: 0.85rem; line-height: 1.6; }
.modal-meta .meta-location { color: var(--muted-2); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.modal-meta .meta-location::before { content: 'Found at: '; color: var(--muted-2); }
.modal-close { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius); border: 1px solid var(--border-2); background: transparent; cursor: pointer; font-size: 20px; color: var(--muted); display: flex; align-items: center; justify-content: center; line-height: 1; transition: background 0.15s; }
.modal-close:hover { background: var(--parchment); color: var(--ink); }

/* ── Modal tabs — no horizontal scroll ── */
.modal-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 1.4rem; flex-wrap: wrap; flex-shrink: 0; gap: 0; }
.modal-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.6rem 0.65rem; cursor: pointer; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s; white-space: nowrap;
}
.modal-tab:hover { color: var(--ink); }
.modal-tab.active { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }
.modal-body { padding: 1.25rem 1.4rem; overflow-y: auto; flex: 1; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Overview tab ── */
.overview-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.overview-gallery { width: 100%; margin-bottom: 1.25rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--parchment); position: relative; }
.overview-gallery-main { width: 100%; height: 280px; position: relative; overflow: hidden; background: var(--parchment); display: flex; align-items: center; justify-content: center; }
.overview-gallery-main.no-image { height: auto; min-height: unset; padding: 0.6rem 1rem; }
.overview-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.overview-gallery-glyph { font-size: 3rem; opacity: 0.15; }
.overview-gallery-nav { display: flex; gap: 6px; padding: 8px; background: var(--cream); border-top: 1px solid var(--border); }
.overview-gallery-thumb { width: 56px; height: 42px; border-radius: 3px; overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; }
.overview-gallery-thumb.active { border-color: var(--gold); }
.overview-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.overview-gallery-link { position: absolute; bottom: 8px; right: 8px; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #fff; background: rgba(8,6,4,0.5); padding: 3px 8px; border-radius: 3px; text-decoration: none; }
.overview-gallery-link:hover { background: rgba(8,6,4,0.75); }
/* Legacy thumb — keep for fallback */
.overview-thumb { display: none; }
.overview-thumb-glyph { font-size: 1.6rem; opacity: 0.2; }
.overview-thumb-link { display: none; }
.overview-main { flex: 1; min-width: 0; }

/* Highlights */
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.1rem; }
.highlight { background: var(--parchment); border-radius: var(--radius); padding: 0.65rem 0.85rem; border-left: 2px solid var(--gold-dim); }
.highlight p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.m-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 0.4rem; margin-top: 1rem; }
.m-label:first-child { margin-top: 0; }
.m-text { font-size: 16px; color: var(--ink-2); line-height: 1.82; }

/* Evidence tiers */
.evidence-box { border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--border); }
.evidence-tier { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.evidence-tier:last-child { border-bottom: none; }
.evidence-tier-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 5px; }
.evidence-tier.stated { background: #EAF3DE; }
.evidence-tier.stated .evidence-tier-label { color: #27500A; }
.evidence-tier.inferred { background: #FAEEDA; }
.evidence-tier.inferred .evidence-tier-label { color: #633806; }
.evidence-tier.speculative { background: #F5F5F0; }
.evidence-tier.speculative .evidence-tier-label { color: var(--muted); }
.evidence-tier p { font-size: 14px; color: var(--ink-2); line-height: 1.72; }

.loc-grid { background: var(--parchment); border-radius: var(--radius); border: 1px solid var(--border); padding: 0.6rem 0.85rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; }
.loc-item { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.loc-item strong { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); display: block; margin-bottom: 1px; }
.loc-id-link { color: var(--gold); font-size: 13px; }
.loc-id-link:hover { color: var(--gold-light); }

.aka-box { background: var(--parchment); border-radius: var(--radius); border: 1px solid var(--border); padding: 0.75rem 1rem; margin-top: 0.75rem; }
.aka-box .aka-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); display: block; margin-bottom: 6px; }
.aka-list { display: flex; flex-wrap: wrap; gap: 5px; }
.aka-item { font-size: 13px; padding: 2px 9px; border-radius: 3px; background: var(--cream); border: 1px solid var(--border-2); color: var(--ink-2); }

.xrefs { display: flex; flex-wrap: wrap; gap: 6px; }
.xref-btn { font-family: 'EB Garamond', serif; font-size: 14px; padding: 4px 11px; border-radius: var(--radius); border: 1px solid var(--border-2); color: var(--muted); background: var(--surface-2); cursor: pointer; transition: all 0.15s; }
.xref-btn:hover { border-color: var(--gold); color: var(--ink); background: var(--parchment); }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--border); color: var(--muted-2); }

/* Text tab */
.trans-block { background: var(--parchment); border-left: 2px solid var(--muted-2); padding: 0.75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 0.75rem; }
.trans-block p { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink); line-height: 1.95; }
.trans-note { font-size: 15px; color: var(--muted); font-style: italic; margin: 0.5rem 0 1rem; line-height: 1.75; padding-left: 0.75rem; border-left: 2px solid var(--border-2); }
.comm-item { margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.comm-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.comm-term { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 0.3rem; }
.comm-note { font-size: 15px; color: var(--muted); line-height: 1.78; }

/* Full text */
.full-text-block { background: var(--parchment); border-radius: var(--radius); border: 1px solid var(--border); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.full-text-block .ft-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); display: block; margin-bottom: 8px; }
.full-text-block p { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink); line-height: 2; }
.gap-line { color: var(--muted-2); font-style: italic; }
.full-text-link { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gold); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 7px 14px; margin-top: 0.5rem; transition: all 0.15s; }
.full-text-link:hover { background: var(--parchment); color: var(--gold-light); }

/* Translation history */
.trans-hist-item { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.trans-hist-item:last-child { border-bottom: none; }
.trans-hist-who { font-family: 'Cinzel', serif; font-size: 14px; color: var(--ink); margin-bottom: 2px; font-weight: 500; }
.trans-hist-when { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-2); margin-bottom: 7px; }
.trans-hist-note { font-size: 15px; color: var(--muted); line-height: 1.78; }
.trans-hist-example { margin-top: 9px; background: var(--parchment); border-radius: var(--radius); padding: 8px 11px; }
.trans-hist-example .ex-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); display: block; margin-bottom: 4px; }
.trans-hist-example p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.our-trans-box { background: #EAF3DE; border-radius: var(--radius); border: 1px solid #97C459; padding: 0.8rem 1rem; margin-top: 1rem; }
.our-trans-box .ot-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: #27500A; display: block; margin-bottom: 6px; }
.our-trans-box p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* Alt tab */
.alt-box { background: #FAFAF3; border: 1px solid #E0DCC8; border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 0.85rem; }
.alt-box p { font-size: 15px; color: var(--ink-2); line-height: 1.82; }
.alt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.85rem; }
.alt-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 3px 8px; border-radius: 3px; background: #F0EDE0; border: 1px solid #D8D4C0; color: var(--muted); }
.researchers { font-size: 14px; color: var(--muted); margin-top: 0.85rem; font-style: italic; line-height: 1.6; }
.broader-impl { background: var(--parchment); border-radius: var(--radius); border-left: 3px solid var(--gold); padding: 0.9rem 1rem; margin-top: 1rem; }
.broader-impl .bi-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-dim); display: block; margin-bottom: 6px; }
.broader-impl p { font-size: 14px; color: var(--ink-2); line-height: 1.78; }

/* Book recommendations */
.book-recs { margin-top: 1rem; }
.book-recs-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); display: block; margin-bottom: 8px; }
.book-list { display: flex; flex-direction: column; gap: 6px; }
.book-item { display: flex; align-items: center; justify-content: space-between; background: var(--parchment); border-radius: var(--radius); padding: 8px 12px; border: 1px solid var(--border); }
.book-info { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.book-info span { font-size: 12px; color: var(--muted-2); display: block; }
.book-link { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--gold); border: 1px solid var(--border-2); border-radius: 3px; padding: 3px 8px; white-space: nowrap; flex-shrink: 0; margin-left: 8px; transition: background 0.15s; }
.book-link:hover { background: var(--cream); color: var(--gold-light); }

/* Notes */
.notes-area textarea { width: 100%; min-height: 110px; border: 1px solid var(--border-2); border-radius: var(--radius); padding: 0.85rem; font-family: 'EB Garamond', serif; font-size: 16px; color: var(--ink); background: var(--surface-2); resize: vertical; line-height: 1.7; }
.notes-area textarea::placeholder { color: var(--muted-2); }
.notes-area textarea:focus { outline: none; border-color: var(--gold); }
.notes-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.notes-save { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; padding: 6px 16px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--parchment); cursor: pointer; color: var(--ink); transition: background 0.15s; }
.notes-save:hover { background: var(--parchment-2); }
.notes-saved { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gold); display: none; }
.notes-hint { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-2); margin-top: 0.5rem; font-style: italic; }

/* Modal footer */
.modal-foot { padding: 0.8rem 1.4rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-shrink: 0; }
.modal-foot a { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); transition: color 0.15s; }
.modal-foot a:hover { color: var(--gold); }

/* ── Series Explorer ── */
.series-legend { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; padding: 0.75rem 1rem; background: var(--parchment); border-radius: var(--radius); border: 1px solid var(--border); }
.leg-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.leg-dot { width: 12px; height: 4px; border-radius: 2px; flex-shrink: 0; }
.leg-dot.s { background: #5A9A2A; }
.leg-dot.f { background: #C07A10; }
.leg-dot.l { background: transparent; border: 2px dashed var(--muted-2); height: 0; width: 12px; }
.leg-dot.p { background: transparent; border: 2px dashed var(--clay); height: 0; width: 12px; }
.leg-dot.m { background: #C0392B; }

.series-block { margin-bottom: 3rem; }
.series-head-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 0.3rem; flex-wrap: wrap; }
.series-title { font-family: 'Cinzel', serif; font-size: 17px; color: var(--ink); font-weight: 500; }
.series-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-2); }
.series-desc { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 1.1rem; max-width: 720px; }

/* Series alt history */
.series-alt { background: #FAFAF3; border: 1px solid #E0DCC8; border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.series-alt-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: #856A20; display: block; margin-bottom: 0.6rem; }
.series-alt p { font-size: 15px; color: var(--ink-2); line-height: 1.82; margin-bottom: 0.75rem; }
.series-alt p:last-child { margin-bottom: 0; }

/* Series tablet cards */
.series-tablets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 1rem; }
.s-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 1rem; cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  background: var(--surface);
  position: relative;
  border-top-width: 3px;
}
.s-card:hover { border-color: var(--border-2); transform: translateY(-1px); background: var(--surface-2); }
.s-card.ss { border-top-color: #5A9A2A; }
.s-card.sf { border-top-color: #C07A10; }
.s-card.sl { border-top-color: #888780; border-style: dashed; border-top-style: solid; }
.s-card.sp { border-top-color: var(--clay); border-style: dashed; border-top-style: solid; }
.s-card.sm { border-top-color: #C0392B; }

.s-card-status { display: inline-flex; align-items: center; gap: 4px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; }
.s-card-status.ss { background: #EAF3DE; color: #27500A; }
.s-card-status.sf { background: #FAEEDA; color: #633806; }
.s-card-status.sl { background: #F1EFE8; color: #444441; }
.s-card-status.sp { background: #FDF0EC; color: var(--clay); }
.s-card-status.sm { background: #FCEBEB; color: #501313; }

.s-card-num { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; color: var(--muted-2); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.s-card-title { font-family: 'Cinzel', serif; font-size: 13px; color: var(--ink); margin-bottom: 6px; line-height: 1.3; font-weight: 500; }
.s-card-summary { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.s-card-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.s-card-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.s-card-meta-row { display: flex; gap: 6px; font-size: 12px; }
.s-card-meta-label { color: var(--muted-2); min-width: 60px; flex-shrink: 0; font-family: 'JetBrains Mono', monospace; font-size: 10px; padding-top: 1px; }
.s-card-meta-value { color: var(--ink-2); }
.s-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.s-card-trans { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.s-card-trans.full { background: #EAF3DE; color: #27500A; }
.s-card-trans.partial { background: #FAEEDA; color: #633806; }
.s-card-trans.none { background: #F1EFE8; color: #5F5E5A; }
.s-card-open { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); }

.series-bar { display: flex; gap: 7px; flex-wrap: wrap; }
.s-pill { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 3px 10px; border-radius: 10px; }
.s-pill.s { background: #EAF3DE; color: #27500A; }
.s-pill.f { background: #FAEEDA; color: #7A4A05; }
.s-pill.l { background: var(--parchment); color: var(--muted); border: 1px solid var(--border-2); }
.s-pill.p { background: #FDF0EC; color: var(--clay); border: 1px solid rgba(139,74,43,0.3); }
.s-pill.m { background: #FCEBEB; color: #501313; }
.series-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Section nav thumbs (Concepts + Cross-Cultural) */
.section-nav-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.section-nav-thumb { font-family: 'Cinzel', serif; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px; cursor: pointer; transition: all 0.15s; line-height: 1.35; }
.section-nav-thumb:hover { border-color: var(--gold); color: var(--ink); background: var(--parchment); }
.card-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-toggle-icon { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--muted-2); line-height: 1; flex-shrink: 0; transition: transform 0.2s, color 0.15s; user-select: none; margin-top: 1px; }
.collapsible { cursor: pointer; }
.collapsible:hover { border-color: var(--border-2); background: var(--surface-2); }
.collapsible.open { border-color: var(--gold); }
.collapsible.open .card-toggle-icon { transform: rotate(45deg); color: var(--gold); }

/* ── Concepts ── */
.concepts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.concept-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; transition: border-color 0.15s, background 0.15s; }
.concept-title { font-family: 'Cinzel', serif; font-size: 14px; color: var(--ink); line-height: 1.4; font-weight: 500; }
.concept-sources { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); margin-top: 4px; margin-bottom: 8px; }
.concept-preview { font-size: 14px; color: var(--muted); line-height: 1.65; }
.concept-body { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.concept-card.open .concept-body { display: block; }
.concept-expand-hint { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 0.6rem; opacity: 0.7; }
.concept-card.open .concept-expand-hint { display: none; }
.concept-body p { font-size: 15px; color: var(--ink-2); line-height: 1.82; margin-bottom: 0.75rem; }
.concept-body p:last-child { margin-bottom: 0; }

/* ── Cross-cultural ── */
.xc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 0.75rem; transition: border-color 0.15s, background 0.15s; }
.xc-title { font-family: 'Cinzel', serif; font-size: 15px; color: var(--ink); font-weight: 500; }
.xc-traditions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.5rem; }
.xc-trad { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 2px 8px; border-radius: 3px; background: var(--parchment); border: 1px solid var(--border-2); color: var(--muted); }
.xc-body { display: block; margin-top: 0.75rem; }
.xc-item.open .xc-body { display: block; }
.xc-text { font-size: 15px; color: var(--muted); line-height: 1.82; }

/* ── Glossary ── */
.glossary-search { margin-bottom: 1.5rem; position: relative; max-width: 400px; }
.glossary-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--border-2); border-radius: var(--radius); font-family: 'EB Garamond', serif; font-size: 17px; background: var(--surface-2); color: var(--ink); outline: none; }
.glossary-search input:focus { border-color: var(--gold); }
.glossary-search .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 16px; pointer-events: none; }
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.gloss-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.gloss-term { font-family: 'Cinzel', serif; font-size: 15px; color: var(--ink); margin-bottom: 2px; font-weight: 500; }
.gloss-orig { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gold); margin-bottom: 5px; }
.gloss-literal { font-size: 13px; color: var(--muted-2); font-style: italic; margin-bottom: 7px; }
.gloss-def { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 7px; }
.gloss-appears { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); }
.gloss-mistrans { font-size: 13px; color: var(--clay); margin-top: 6px; font-style: italic; }

/* ── Private collections ── */
.private-intro { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 2rem; max-width: 700px; }
.private-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 0.75rem; border-left: 3px solid var(--clay); transition: border-color 0.15s, background 0.15s; }
.private-card-title { font-family: 'Cinzel', serif; font-size: 15px; color: var(--ink); font-weight: 500; }
.private-card-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-2); margin-top: 4px; margin-bottom: 0.6rem; }
.private-body { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.private-card.open .private-body { display: block; }
.private-card-text { font-size: 15px; color: var(--muted); line-height: 1.82; }
.private-status { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 3px; margin-top: 9px; }
.ps-looted { background: #FCEBEB; color: #501313; }
.ps-private { background: #FDF0EC; color: var(--clay); }
.ps-undisclosed { background: #F5F5F0; color: var(--muted); border: 1px solid var(--border-2); }

/* ── Learn section ── */
#learn { background: var(--parchment); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 0; }
.section-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.5rem; }
.section-title { font-family: 'Cinzel', serif; font-size: 1.9rem; color: var(--ink); margin-bottom: 0.85rem; }
.section-intro { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.88; margin-bottom: 2.5rem; }
.signs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sign-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; text-align: center; transition: border-color 0.15s; }
.sign-card:hover { border-color: var(--border-2); }
.sign-glyph { font-size: 2.4rem; display: block; margin-bottom: 0.4rem; }
.sign-name { font-family: 'Cinzel', serif; font-size: 13px; color: var(--ink); display: block; margin-bottom: 3px; font-weight: 500; }
.sign-reading { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gold); display: block; margin-bottom: 6px; }
.sign-meaning { font-size: 13px; color: var(--muted); line-height: 1.65; text-align: left; }

/* ── About ── */
#about { padding: 4rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text h2 { font-family: 'Cinzel', serif; font-size: 1.7rem; color: var(--ink); margin-bottom: 1rem; }
.about-text p { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 0.9rem; }
.resource-list { list-style: none; }
.resource-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--muted); line-height: 1.6; }
.resource-list li:last-child { border-bottom: none; }
.res-cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 2px; }

/* ── Footer ── */
footer { background: var(--parchment); border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; text-align: center; }
.footer-logo { font-family: 'Cinzel', serif; font-size: 14px; color: var(--gold); margin-bottom: 0.75rem; letter-spacing: 0.1em; }
.footer-links { display: flex; justify-content: center; gap: 2.5rem; margin: 0.75rem 0; flex-wrap: wrap; }
.footer-links a { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
footer p { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-2); line-height: 1.7; }

.empty-state { text-align: center; padding: 3rem 0; color: var(--muted-2); font-size: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links a { padding: 0 0.6rem; font-size: 10px; }
  .hero::before { display: none; }
  .hero-stats { gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .loc-grid { grid-template-columns: 1fr; }
  .series-tablets-grid { grid-template-columns: 1fr 1fr; }
  .concepts-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .series-tablets-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .tablet-card, .s-card { transition: none; }
}

/* ── v3.2 additions ── */
.hero-sub-2 { margin-top: 1rem; }
.hero-sub-punch { margin-top: 1.25rem; font-weight: 500; color: var(--ink); font-size: 1.1rem; }
.hero-sub-cta { margin-top: 1rem; font-family: 'Cinzel', serif; font-size: 1rem; color: var(--gold); letter-spacing: 0.05em; }

.section-panel-title { font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--ink); margin-bottom: 0.5rem; font-weight: 400; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.section-panel-intro { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 1.75rem; max-width: 680px; }

/* Series nav thumbnails */
.series-nav-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.series-nav-thumb { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.65rem 1rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; text-align: left; }
.series-nav-thumb:hover { border-color: var(--gold); background: var(--parchment); }
.series-nav-thumb.active { border-color: var(--gold); background: var(--parchment-2); }
.series-nav-thumb-title { font-family: 'Cinzel', serif; font-size: 12px; color: var(--ink); display: block; margin-bottom: 3px; font-weight: 500; }
.series-nav-thumb-meta { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--muted-2); display: block; margin-bottom: 4px; }
.series-nav-thumb-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.series-nav-thumb-pill { font-family: 'JetBrains Mono', monospace; font-size: 9px; padding: 1px 5px; border-radius: 3px; }
.sntp-s { background: #EAF3DE; color: #27500A; }
.sntp-f { background: #FAEEDA; color: #7A4A05; }
.sntp-l { background: #F5F5F0; color: var(--muted); border: 1px solid var(--border); }
.sntp-p { background: #FDF0EC; color: var(--clay); }

/* Nav logo as link */
a.nav-logo { text-decoration: none; }
a.nav-logo:hover { color: var(--ink); }

/* Glossary pronunciation */
.gloss-pronunciation { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.gloss-pronounce-btn { background: var(--parchment); border: 1px solid var(--border-2); border-radius: 3px; padding: 2px 8px; cursor: pointer; font-size: 10px; color: var(--gold); transition: background 0.15s; font-family: 'JetBrains Mono', monospace; }
.gloss-pronounce-btn:hover { background: var(--parchment-2); }

/* About page donation */
.donation-box { background: var(--parchment); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 2rem; text-align: center; }
.donation-box h3 { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.5rem; font-weight: 400; }
.donation-box p { font-size: 14px; color: var(--muted); margin-bottom: 1rem; line-height: 1.7; }
.venmo-btn { display: inline-flex; align-items: center; gap: 8px; background: #3D95CE; color: #fff; padding: 10px 24px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-decoration: none; transition: background 0.15s; }
.venmo-btn:hover { background: #2d7ab0; color: #fff; }

/* Last updated note */
.last-updated { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); text-align: center; margin-top: 0.5rem; }

/* Parent brand bar */
.parent-bar {
  background: #0A0806;
  padding: 6px 1.5rem;
  border-bottom: 1px solid rgba(200,168,74,0.15);
}
.parent-bar-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,168,74,0.7);
  transition: color 0.15s;
}
.parent-bar-link:hover { color: #C8A84A; }

/* ── v3.5 additions ── */

/* Series further reading */
.series-further-reading { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.series-further-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); display: block; margin-bottom: 0.75rem; }
.series-book-list { display: flex; flex-direction: column; gap: 0; }
.series-book-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.series-book-item:last-child { border-bottom: none; }
.series-book-info { display: flex; flex-direction: column; gap: 1px; }
.series-book-title { font-family: 'Cinzel', serif; font-size: 13px; color: var(--ink); font-weight: 500; }
.series-book-author { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); }
.series-book-link { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--gold); border: 1px solid var(--border-2); border-radius: 3px; padding: 4px 10px; white-space: nowrap; flex-shrink: 0; transition: background 0.15s; }
.series-book-link:hover { background: var(--parchment); color: var(--gold-light); }

/* Hamburger menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: transparent; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: all 0.2s; display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav { display: none; position: fixed; top: 92px; left: 0; right: 0; background: rgba(248,242,228,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 199; flex-direction: column; padding: 0.5rem 0; }
.mobile-nav.open { display: flex; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav a.active { color: var(--ink); font-weight: 500; }

/* Learn page intro */
.learn-intro { max-width: 680px; margin-bottom: 2.5rem; }
.learn-intro p { font-size: 16px; color: var(--muted); line-height: 1.88; margin-bottom: 0.85rem; }
.learn-intro p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
}

/* About page hero text fixes */
.about-hero-text { padding: 2rem 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.about-hero-text .hero-sub { text-align: left; margin-left: 0; margin-right: 0; max-width: 100%; }
.about-hero-text .hero-sub-2 { text-align: left; margin-left: 0; }
.about-hero-text .hero-sub-punch { text-align: left; margin-left: 0; }

/* Donation box alignment fix */
.donation-box { text-align: left; }
.donation-box h3 { text-align: left; }
.donation-box p { text-align: left; }

/* Back to top floating button */
.back-to-top-fab { display: none; position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--cream); border: none; font-size: 1.2rem; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.2); z-index: 500; transition: opacity 0.2s; align-items: center; justify-content: center; }
.back-to-top-fab.visible { display: flex; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.lightbox-close { position: fixed; top: 1.25rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; opacity: 0.7; }
.lightbox-close:hover { opacity: 1; }
