/* New Testament Explorer — /nt-explorer. Parchment + gold, transparent page
   background so the site background shows through (matches the timeline). */

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

.nt-hero { text-align: center; padding: 52px 20px 6px; }
.nt-hero-eyebrow { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: #a8823f; margin: 0 0 14px; }
.nt-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;
}
.nt-hero-sub { font-size: clamp(17px, 2.4vw, 22px); font-style: italic; color: #6b5a34; margin: 0 auto; max-width: 620px; }
.nt-flourish { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px auto 18px; max-width: 420px; color: #b8974e; }
.nt-flourish::before, .nt-flourish::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #c9a24e 40%, #c9a24e 60%, transparent); }

.nt-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; border: 1.5px solid #cdb987; background: rgba(251,246,234,0.72); border-radius: 999px; padding: 4px; }
.nt-tab {
  display: inline-flex; align-items: center; gap: 7px; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.03em;
  border: none; background: transparent; color: #6b5a34; cursor: pointer; padding: 9px 18px; border-radius: 999px;
  transition: background 140ms ease, color 140ms ease;
}
.nt-tab.is-active { background: #a8823f; color: #fbf6ea; }
.nt-hint { text-align: center; font-size: 16px; color: #7d7057; margin: 14px auto 0; max-width: 620px; padding: 0 16px; }

.nt-content { max-width: 960px; margin: 26px auto 0; padding: 0 20px; }

/* Card grids */
.nt-grid { display: grid; gap: 14px; }
.nt-grid--parables { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.nt-grid--gospels { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.nt-card {
  text-align: left; cursor: pointer; display: flex; flex-direction: column;
  background: linear-gradient(165deg, #faf3e2 0%, #f2e8cf 100%); border: 1px solid #b8974e; border-radius: 10px; padding: 16px 17px;
  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;
}
.nt-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,253,246,0.85), inset 0 0 0 4px #e6c96f, 0 10px 26px rgba(120,90,30,0.22); }
.nt-card-theme { align-self: flex-start; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #8a6a3f; background: rgba(168,130,63,0.16); border-radius: 999px; padding: 2px 10px; margin-bottom: 9px; }
.nt-card-name { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 600; color: #6b4f1e; margin: 0; }
.nt-card-ref { font-size: 13.5px; color: #8a6a3f; font-style: italic; margin: 3px 0 8px; }
.nt-card-text { font-size: 15px; line-height: 1.45; color: #5f5647; margin: 0; }

.nt-card--gospel { align-items: center; text-align: center; }
.nt-card--gospel .nt-card-name { font-size: 24px; margin-bottom: 4px; }
.nt-card-symbol { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #a8823f; margin: 0 0 8px; }
.nt-card-portrait { font-size: 16px; color: #5f5647; margin: 0 0 8px; }

/* Journeys map */
.nt-map {
  height: min(56vh, 460px); width: 100%; margin: 0 0 18px; border-radius: 12px;
  border: 1.5px solid #b89a5c; box-shadow: inset 0 0 0 4px rgba(222,203,146,0.5), 0 6px 18px rgba(90,68,28,0.16);
  overflow: hidden; background: #eef2f0; z-index: 0;
}
.nt-map .leaflet-container { font-family: 'Cormorant Garamond', serif; background: #eef2f0; }
.nt-map .leaflet-control-attribution { font-size: 10px; }

/* Journeys */
.nt-journeys { display: flex; flex-direction: column; gap: 14px; }
.nt-journey {
  display: flex; gap: 16px; text-align: left; cursor: pointer; align-items: flex-start;
  background: linear-gradient(165deg, #faf3e2 0%, #f2e8cf 100%); border: 1px solid #b8974e; border-radius: 10px; padding: 16px 18px;
  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;
}
.nt-journey:hover { 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); }
.nt-journey-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700; color: #fbf6ea;
  background: var(--jc, #a8823f); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.nt-journey-body { flex: 1; min-width: 0; }
.nt-journey-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nt-card-date { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #a8823f; white-space: nowrap; }
.nt-journey-stops { font-size: 14px; color: #6b5a34; margin: 4px 0 6px; }

/* Drawer */
.nt-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; }
.nt-scrim.open { opacity: 1; visibility: visible; }
.nt-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);
}
.nt-drawer.open { transform: translateX(0); }
.nt-drawer-head { position: relative; padding: 24px 26px 14px; border-bottom: 1px solid #e2d5b8; background: linear-gradient(180deg, rgba(255,250,236,0.6), transparent); }
.nt-drawer-close { position: absolute; top: 14px; right: 14px; border: none; background: transparent; color: #8a7f68; cursor: pointer; padding: 4px; line-height: 0; }
.nt-drawer-close:hover { color: #2c2a26; }
.nt-drawer-name { font-family: 'Cinzel', serif; font-size: 24px; font-weight: 700; color: #6b4f1e; margin: 0; line-height: 1.14; }
.nt-drawer-body { padding: 16px 26px 34px; }
.nt-drawer-meta { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: #a8823f; margin: 0 0 8px; }
.nt-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; }
.nt-drawer-lead { font-size: 17px; line-height: 1.55; color: #4a4335; margin: 0 0 14px; }
.nt-drawer h3 { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #7a5e26; margin: 18px 0 6px; }
.nt-drawer-p { font-size: 16px; line-height: 1.55; color: #4a4335; margin: 0; }
.nt-drawer-row { display: flex; gap: 10px; font-size: 15px; color: #5f5647; padding: 8px 0; border-top: 1px solid #e6d9bd; }
.nt-drawer-row .k { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #a8823f; min-width: 96px; padding-top: 2px; }
.nt-drawer-row .v { flex: 1; }

@media (max-width: 560px) { .nt-card--gospel .nt-card-name { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .nt-card, .nt-journey, .nt-drawer, .nt-scrim { transition: none; } }
