/* The Story of the Bible — /bible-timeline.
   A vertical, era-grouped timeline with a gold spine and parchment plaque
   cards, matching the site's antique palette. The page background is left
   transparent so the site's own background shows through. */

.bt-page {
  position: relative;
  min-height: 100vh;
  padding: 0 0 70px;
  color: #3a3327;
  font-family: 'Cormorant Garamond', serif;
  background: transparent;
}

/* Hero */
.bt-hero { text-align: center; padding: 52px 20px 8px; }
.bt-hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.32em;
  text-transform: uppercase; color: #a8823f; margin: 0 0 14px;
}
.bt-hero-title {
  font-family: 'Cinzel', serif; font-weight: 700; line-height: 1.06;
  font-size: clamp(32px, 5.4vw, 54px); margin: 0 0 6px;
  background: linear-gradient(180deg, #9a7a34 0%, #7a5e26 62%, #5f4a1e 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #7a5e26;
}
.bt-hero-sub { font-size: clamp(17px, 2.4vw, 22px); font-style: italic; color: #6b5a34; margin: 0 auto; max-width: 620px; }
.bt-flourish { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px auto 18px; max-width: 420px; color: #b8974e; }
.bt-flourish::before, .bt-flourish::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #c9a24e 40%, #c9a24e 60%, transparent); }

/* Controls */
.bt-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin: 4px 0 0; }
.bt-filters { display: inline-flex; border: 1.5px solid #cdb987; background: rgba(251,246,234,0.7); border-radius: 999px; padding: 3px; }
.bt-filter {
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.04em;
  border: none; background: transparent; color: #6b5a34; cursor: pointer;
  padding: 7px 16px; border-radius: 999px; transition: background 140ms ease, color 140ms ease;
}
.bt-filter.is-active { background: #a8823f; color: #fbf6ea; }
.bt-books-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: #5f5647; cursor: pointer; }
.bt-books-toggle input { width: 16px; height: 16px; accent-color: #a8823f; }

.bt-hint { text-align: center; font-size: 16px; color: #7d7057; margin: 14px auto 0; padding: 0 16px; }
.bt-methodology-row { text-align: center; margin: 8px 0 0; }
.bt-methodology-btn {
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #6b5a34; background: transparent; border: none; cursor: pointer;
  border-bottom: 1px solid #c9a24e; padding: 2px 2px 3px; display: inline-flex; align-items: center; gap: 6px;
}
.bt-methodology-btn:hover { color: #3a3327; border-color: #a8823f; }

/* Timeline */
.bt-timeline { position: relative; max-width: 760px; margin: 26px auto 0; padding: 0 20px; }
.bt-timeline::before {
  content: ''; position: absolute; left: 40px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(180deg, #e0c477, #c9a24e 40%, #c9a24e 60%, #b8934a);
  border-radius: 3px;
}

.bt-era { position: relative; margin: 0 0 8px; }
.bt-era-head { padding: 22px 0 12px 62px; }
.bt-era-badge {
  display: inline-block; font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8a6a3f; background: rgba(168,130,63,0.14);
  border-radius: 999px; padding: 3px 11px; margin-bottom: 7px;
}
.bt-era-name { font-family: 'Cinzel', serif; font-size: 23px; font-weight: 700; color: #6b4f1e; margin: 0 0 4px; }
.bt-era-blurb { font-size: 16px; line-height: 1.45; color: #6b5a44; margin: 0; max-width: 560px; }

/* Milestone */
.bt-item { position: relative; display: flex; gap: 16px; padding: 8px 0 8px 0; align-items: flex-start; cursor: pointer; }
.bt-dot {
  position: relative; z-index: 1; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #a8823f;
  background: radial-gradient(circle at 40% 35%, #fbf4e2, #ecd9a9);
  box-shadow: inset 0 0 0 1px #d8bd7e, 0 0 0 5px rgba(243,235,214,0.9), 0 2px 6px rgba(120,90,30,0.25);
  margin-left: 16px;
}
.bt-dot svg { width: 22px; height: 22px; }
.bt-dot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.bt-card {
  flex: 1; min-width: 0; background: linear-gradient(165deg, #faf3e2 0%, #f2e8cf 100%);
  border: 1px solid #b8974e; border-radius: 9px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px rgba(255,253,246,0.85), inset 0 0 0 4px #decb92, 0 5px 16px rgba(90,68,28,0.14);
  transition: transform 150ms ease, box-shadow 180ms ease;
}
.bt-item:hover .bt-card { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255,253,246,0.85), inset 0 0 0 4px #e6c96f, 0 10px 24px rgba(120,90,30,0.22); }
.bt-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bt-card-name { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 600; color: #6b4f1e; margin: 0; }
.bt-card-date { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #a8823f; white-space: nowrap; }
.bt-card-ref { font-size: 14px; color: #8a6a3f; font-style: italic; margin: 2px 0 6px; }
.bt-card-summary { font-size: 16px; line-height: 1.45; color: #5f5647; margin: 0; }
.bt-card-theme { display: inline-block; margin-top: 8px; font-size: 12px; letter-spacing: 0.03em; color: #6b5a34; background: rgba(168,130,63,0.14); border-radius: 999px; padding: 2px 11px; }
.bt-card-more { display: inline-block; margin-top: 8px; margin-left: 8px; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #a8823f; opacity: 0; transition: opacity 150ms ease; }
.bt-item:hover .bt-card-more, .bt-item:focus-visible .bt-card-more { opacity: 1; }

/* Book layer */
.bt-books { margin: 6px 0 10px 82px; }
.bt-books-label { display: inline-flex; align-items: center; gap: 6px; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #8a6a3f; }
.bt-books-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.bt-book-chip { font-size: 13px; color: #6b5a34; background: rgba(251,246,234,0.85); border: 1px solid #d8c08a; border-radius: 5px; padding: 3px 9px; }

/* Note */
.bt-note {
  max-width: 620px; margin: 24px auto 0; text-align: center;
  background: linear-gradient(165deg, #faf3e2, #efe2c4); border: 1px solid #cdb987;
  box-shadow: inset 0 0 0 3px #e2d0a0, 0 4px 14px rgba(90,68,28,0.12); padding: 14px 22px;
}
.bt-note b { font-family: 'Cinzel', serif; color: #7a5e26; letter-spacing: 0.04em; }
.bt-note p { font-size: 15px; color: #6b6152; margin: 5px 0 0; line-height: 1.5; }

/* Drawer */
.bt-scrim { position: fixed; inset: 0; background: rgba(38,32,20,0.5); z-index: 1190; opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms; }
.bt-scrim.open { opacity: 1; visibility: visible; }
.bt-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 94vw);
  background: linear-gradient(180deg, #f7f0de, #f2e8d0); border-left: 2px solid #b89a5c; z-index: 1200;
  transform: translateX(100%); transition: transform 260ms ease; overflow-y: auto;
  box-shadow: -14px 0 44px rgba(60,45,20,0.24);
}
.bt-drawer.open { transform: translateX(0); }
.bt-drawer-head { position: relative; padding: 24px 26px 16px; border-bottom: 1px solid #e2d5b8; background: linear-gradient(180deg, rgba(255,250,236,0.6), transparent); }
.bt-drawer-close { position: absolute; top: 14px; right: 14px; border: none; background: transparent; color: #8a7f68; cursor: pointer; padding: 4px; line-height: 0; }
.bt-drawer-close:hover { color: #2c2a26; }
.bt-drawer-medallion { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #a8823f; margin-bottom: 10px; background: radial-gradient(circle at 40% 35%, #fbf4e2, #ecd9a9); box-shadow: inset 0 0 0 1px #d8bd7e; }
.bt-drawer-medallion svg { width: 25px; height: 25px; }
.bt-drawer-medallion img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.bt-drawer-name { font-family: 'Cinzel', serif; font-size: 24px; font-weight: 700; color: #6b4f1e; margin: 0 0 4px; line-height: 1.14; }
.bt-drawer-meta { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #a8823f; margin: 0; }
.bt-drawer-body { padding: 18px 26px 34px; }
.bt-drawer-theme { display: inline-block; font-size: 13px; color: #6b5a34; background: rgba(168,130,63,0.16); border-radius: 999px; padding: 3px 13px; margin-bottom: 12px; }
.bt-drawer-summary { font-size: 17px; line-height: 1.55; color: #4a4335; margin: 0 0 14px; }
.bt-drawer-row { display: flex; gap: 10px; font-size: 15px; color: #5f5647; padding: 8px 0; border-top: 1px solid #e6d9bd; }
.bt-drawer-row .k { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #a8823f; min-width: 90px; padding-top: 2px; }
.bt-drawer-row .v { flex: 1; }
.bt-callout { border-left: 3px solid #c9a24e; background: rgba(233,220,181,0.42); padding: 12px 15px; margin: 16px 0 0; }
.bt-callout .lbl { font-family: 'Cinzel', serif; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: #a8823f; display: block; margin-bottom: 4px; }
.bt-callout p { font-size: 16px; line-height: 1.5; color: #4a4335; margin: 0; }
.bt-drawer-links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.bt-drawer-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.04em; color: #6b4f1e; background: #efe4ca; border: 1px solid #cdb987; padding: 12px 15px; text-decoration: none; transition: border-color 140ms ease, background 140ms ease; }
.bt-drawer-link:hover { border-color: #a8823f; background: #eaddbe; color: #6b4f1e; }
.bt-drawer-link i { color: #a8823f; }

/* Methodology modal */
.bt-modal-scrim { position: fixed; inset: 0; background: rgba(38,32,20,0.55); z-index: 1210; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 200ms; }
.bt-modal-scrim.open { opacity: 1; visibility: visible; }
.bt-modal { width: 100%; max-width: 540px; max-height: calc(100vh - 40px); overflow-y: auto; background: linear-gradient(180deg, #f8f1df, #f2e8d0); border: 1.5px solid #b89a5c; box-shadow: 0 18px 50px rgba(38,32,20,0.28); }
.bt-modal-head { position: relative; padding: 24px 28px 6px; text-align: center; }
.bt-modal-close { position: absolute; top: 14px; right: 14px; border: none; background: transparent; color: #8a7f68; cursor: pointer; padding: 4px; line-height: 0; }
.bt-modal-close:hover { color: #2c2a26; }
.bt-modal h2 { font-family: 'Cinzel', serif; font-size: 23px; font-weight: 700; color: #6b4f1e; margin: 0; }
.bt-modal-body { padding: 12px 28px 28px; }
.bt-modal-body p { font-size: 16px; line-height: 1.5; color: #4a4335; margin: 0 0 10px; }
.bt-modal-body ul { margin: 8px 0 0; padding-left: 20px; }
.bt-modal-body li { font-size: 15px; line-height: 1.45; color: #5f5647; margin-bottom: 7px; }

@media (max-width: 560px) {
  .bt-timeline::before { left: 28px; }
  .bt-dot { margin-left: 4px; width: 44px; height: 44px; }
  .bt-dot svg { width: 19px; height: 19px; }
  .bt-era-head { padding-left: 58px; }
  .bt-books { margin-left: 58px; }
  .bt-card-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-card, .bt-drawer, .bt-scrim, .bt-modal-scrim { transition: none; }
}
