/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', 'Georgia', serif;
    background: #05070f;
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* === Main Map === */
#main-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: opacity 2s ease;
}

#main-map.pre-earth {
    opacity: 0;
}

/* === Inset Map: "The Ancient World" (once-cursed world, 2 Peter 2:5) === */
#inset-container {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 320px;
    z-index: 1000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 80, 40, 0.5), 0 0 60px rgba(40, 180, 100, 0.15);
    border: 2px solid rgba(60, 180, 100, 0.4);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

#inset-container.destroyed {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

#inset-container.hidden {
    display: none;
}

#inset-label {
    background: linear-gradient(135deg, #1a4a2a, #2a6a3a);
    color: #c0f0c0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

#inset-map {
    width: 100%;
    height: 200px;
    background: #0a3a1a;
}

/* Override Leaflet tiles in inset for lush paradise look */
#inset-map .leaflet-tile-pane {
    filter: invert(0.85) sepia(0.5) saturate(5) hue-rotate(70deg) brightness(1.15) contrast(1.1);
}

#inset-event-text {
    background: linear-gradient(135deg, #1a3a2a, #0a2a1a);
    color: #a0d8a0;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    min-height: 20px;
    max-height: 80px;
    overflow-y: auto;
}

/* === Date Display === */
#date-display {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(20, 20, 40, 0.85);
    backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: bold;
    color: #d0d0e0;
    letter-spacing: 1px;
    border: 1px solid rgba(100, 100, 160, 0.3);
}

/* === Explore Intro Panels (nations / languages entry cards) === */

.explore-intro {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-intro.hidden {
    display: none;
}

.explore-intro-card {
    background: #05070f;
    border: 1px solid rgba(110, 168, 255, 0.15);
    border-radius: 0;
    max-width: 560px;
    width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.explore-intro-image {
    display: block;
    width: 100%;
    height: 36vh;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
}

.explore-intro-image-wrap {
    position: relative;
}

.explore-intro-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 7, 15, 0.95), rgba(5, 7, 15, 0.7) 60%, transparent);
    color: #c0c0d0;
    padding: 24px 16px 12px;
    font-size: 14px;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-style: italic;
    text-align: center;
}

.explore-intro-body {
    padding: 18px 32px 12px;
    text-align: center;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.explore-intro-footer {
    padding: 14px 32px 20px;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid rgba(110, 168, 255, 0.08);
    background: #05070f;
}

.explore-intro-title {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    font-weight: 400;
    color: #e8ecf5;
    margin-bottom: 16px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.explore-intro-desc {
    font-size: 14px;
    color: #b0b0d0;
    line-height: 1.65;
    margin-bottom: 8px;
    text-align: left;
}

.explore-intro-source {
    font-size: 12px;
    color: #707090;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.explore-intro-btn {
    border-radius: 0;
    padding: 9px 22px;
    font-size: 13px;
    font-family: 'EB Garamond', 'Georgia', serif;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(110, 168, 255, 0.4);
    color: #6ea8ff;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.explore-intro-btn:hover {
    background: rgba(110, 168, 255, 0.1);
    border-color: rgba(110, 168, 255, 0.7);
    color: #e8ecf5;
}

.explore-intro-btn--nations,
.explore-intro-btn--languages,
.explore-intro-btn--chronology {
    /* unified — overrides applied via base class above */
}

.explore-intro-btn--solid {
    background: #6ea8ff;
    border-color: #6ea8ff;
    color: #05070f;
}

.explore-intro-btn--solid:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #05070f;
}

/* === Walkthrough Opener (artifact card) === */

#walkthrough-opener {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#walkthrough-opener.hidden {
    display: none;
}

#walkthrough-opener-card {
    background: #05070f;
    border: 1px solid rgba(110, 168, 255, 0.15);
    border-radius: 0;
    max-width: 860px;
    width: 94vw;
    max-height: 94vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

#walkthrough-opener-image {
    display: block;
    width: 100%;
    height: 52vh;
    min-height: 280px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 0;
}

#walkthrough-opener-body {
    padding: 22px 32px 28px;
    text-align: center;
}

#walkthrough-opener-title {
    font-size: 26px;
    font-weight: 400;
    color: #e8ecf5;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    letter-spacing: 0.5px;
}

#walkthrough-opener-desc {
    font-size: 14px;
    color: #b0b0d0;
    line-height: 1.65;
    margin-bottom: 8px;
}

#walkthrough-opener-source {
    font-size: 12px;
    color: #707090;
    font-style: italic;
    margin-bottom: 20px;
}

#walkthrough-opener-btn {
    background: #6ea8ff;
    border: 1px solid #6ea8ff;
    border-radius: 0;
    color: #05070f;
    font-size: 13px;
    padding: 10px 28px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: 'EB Garamond', 'Georgia', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#walkthrough-opener-btn:hover {
    background: #e8ecf5;
    border-color: #e8ecf5;
    color: #05070f;
}

/* === Event Banner === */
#event-banner {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(20, 20, 50, 0.92);
    backdrop-filter: blur(12px);
    padding: 16px 32px;
    border-radius: 0;
    max-width: 760px;
    width: 90vw;
    text-align: center;
    border: 1px solid rgba(120, 120, 200, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.3s ease;
}

#event-banner.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: none;
}

#event-banner-title {
    font-size: 20px;
    font-weight: bold;
    color: #f0f0ff;
    margin-bottom: 4px;
}

#event-banner-location {
    font-size: 12px;
    color: #6ea8ff;
    font-style: italic;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

#event-banner-location.hidden {
    display: none;
}

#event-banner-image {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 4px;
    margin: 8px 0 12px;
    opacity: 0.92;
}

#event-banner-image.hidden {
    display: none;
}

#event-banner-description {
    font-size: 14px;
    color: #b0b0d0;
    line-height: 1.5;
}

#event-banner-description p {
    margin: 0 0 0.7em 0;
}

#event-banner-description p:last-child {
    margin-bottom: 0;
}

#event-banner-source {
    margin-top: 8px;
    font-size: 12px;
    color: #7070a0;
}

#event-banner-source a {
    color: #8888cc;
    text-decoration: none;
}

#event-banner-source a:hover {
    text-decoration: underline;
}

#event-banner.paused {
    border-color: rgba(200, 180, 100, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(200, 180, 100, 0.3);
    animation: bannerPulse 2s ease-in-out infinite;
}

.guided-view-btn {
    position: fixed;
    right: 22px;
    bottom: 142px;
    z-index: 2200;
    padding: 9px 14px;
    background: rgba(22, 24, 42, 0.92);
    color: #e8e0d4;
    border: 1px solid rgba(200, 180, 100, 0.42);
    border-radius: 4px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.guided-view-btn:hover {
    background: rgba(36, 38, 62, 0.96);
    border-color: rgba(224, 205, 130, 0.68);
}

.guided-view-btn.hidden {
    display: none;
}

@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(200, 180, 100, 0.15); }
    50%      { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 28px rgba(200, 180, 100, 0.5); }
}

.banner-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.banner-walkthrough-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(120, 120, 200, 0.2);
}

.banner-walkthrough-end.hidden {
    display: none;
}

.banner-end-btn {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    background: transparent;
    color: #e8ecf5;
    border: 1px solid rgba(232, 236, 245, 0.3);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.banner-end-btn:hover {
    background: rgba(232, 236, 245, 0.08);
    border-color: rgba(232, 236, 245, 0.5);
    color: #ffffff;
}
}

#banner-hint {
    font-size: 12px;
    color: rgba(110, 168, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'EB Garamond', 'Georgia', serif;
}

#banner-hint.hidden {
    display: none;
}

.banner-learn-more-btn {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    color: #6ea8ff;
    background: rgba(110, 168, 255, 0.15);
    border: 1px solid rgba(110, 168, 255, 0.4);
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.banner-learn-more-btn:hover {
    background: rgba(110, 168, 255, 0.4);
    color: #e0c080;
}

.banner-learn-more-btn.hidden {
    display: none;
}

/* === Layer Panel === */
#layer-panel {
    font-family: 'EB Garamond', 'Georgia', serif;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(20, 20, 40, 0.85);
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    border-radius: 0;
    border: 1px solid rgba(100, 100, 160, 0.3);
    min-width: 140px;
}

.layer-panel-title {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8080a0;
    margin-bottom: 8px;
}

.layer-toggle {
    font-family: 'EB Garamond', 'Georgia', serif;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 13px;
    color: #c0c0d0;
}

.layer-toggle input[type="checkbox"] {
    accent-color: #6666bb;
}

/* === Auto-zoom toggle === */
.autozoom-btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #8080a0;
    background: rgba(60, 60, 120, 0.2);
    border: 1px solid rgba(80, 80, 140, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    user-select: none;
}

.autozoom-btn:hover {
    background: rgba(80, 80, 160, 0.3);
    color: #b0b0d0;
}

.autozoom-btn.active {
    background: rgba(80, 80, 160, 0.4);
    color: #d0d0ff;
    border-color: rgba(120, 120, 200, 0.5);
}

/* === Timeline Container === */
#timeline-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to top, rgba(15, 15, 30, 0.95), rgba(15, 15, 30, 0.7));
    backdrop-filter: blur(8px);
    padding: 8px 20px 16px;
}

/* Timeline markers row */
#timeline-markers {
    position: relative;
    height: 24px;
    margin: 0 60px 0 40px;
}

.timeline-marker {
    position: absolute;
    transform: translateX(-50%);
    font-size: 9px;
    color: #7070a0;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.timeline-marker:hover {
    color: #b0b0e0;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 6px;
    background: #5050a0;
}

.timeline-marker.active {
    color: #d0d0ff;
    font-weight: bold;
}

/* Slider row */
#timeline-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

#play-btn {
    background: rgba(80, 80, 160, 0.3);
    border: 1px solid rgba(100, 100, 180, 0.4);
    color: #c0c0e0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

#play-btn:hover {
    background: rgba(80, 80, 160, 0.5);
}

#play-btn.playing {
    color: #ff8888;
}

/* Slider */
#timeline-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #2a2a5a, #4a4a8a, #6a6aaa);
    outline: none;
    cursor: pointer;
}

#timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8888cc;
    border: 2px solid #b0b0e0;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(100, 100, 200, 0.5);
    transition: transform 0.1s;
}

#timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#timeline-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8888cc;
    border: 2px solid #b0b0e0;
    cursor: pointer;
}

/* Speed control */
#speed-control {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.speed-btn {
    background: rgba(60, 60, 120, 0.3);
    border: 1px solid rgba(80, 80, 140, 0.3);
    color: #8080a0;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.speed-btn:hover {
    background: rgba(80, 80, 160, 0.4);
    color: #b0b0d0;
}

.speed-btn.active {
    background: rgba(80, 80, 160, 0.5);
    color: #d0d0ff;
    border-color: rgba(120, 120, 200, 0.5);
}

/* === Event markers on map === */
.event-marker {
    background: rgba(120, 120, 200, 0.8);
    border: 1px solid #d0d0ff;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px rgba(100, 100, 200, 0.6);
}

.event-marker.israel {
    background: rgba(200, 180, 80, 0.8);
    border-color: #f0e0a0;
    box-shadow: 0 0 12px rgba(200, 180, 80, 0.6);
}

.event-marker.christianity {
    background: rgba(200, 100, 100, 0.8);
    border-color: #f0c0c0;
    box-shadow: 0 0 12px rgba(200, 100, 100, 0.6);
}

/* Pulsing highlight for banner-active marker */
.marker-pulse {
    animation: markerPulse 1.5s ease-in-out infinite;
    border-color: #6ea8ff !important;
    box-shadow: 0 0 20px rgba(110, 168, 255, 0.9) !important;
}

#main-map.map-camera-zooming .marker-pulse {
    animation: none;
    transform: scale(1) !important;
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

/* === People group labels (smudges are canvas-drawn) === */
.people-group-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 10px;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    color: #e8ecf5;
    opacity: 0.5;
    text-shadow: 0 0 6px rgba(0,0,0,1), 0 0 12px rgba(0,0,0,0.9);
}

.people-group-pop {
    font-size: 8px;
    opacity: 0.7;
    color: #e8ecf5;
}

/* === Dot labels (travel, scatter, Nimrod, Patriarch) === */
.travel-dot-label,
.babel-scatter-label,
.nimrod-label,
.patriarch-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* === Nation labels === */
.nation-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.9);
}

.language-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    color: #e8ecf5;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.9);
}

.language-special-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    color: #e8ecf5;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.9);
}

/* === Legend Panel === */
#legend-panel {
    position: absolute;
    bottom: 90px;
    left: 16px;
    z-index: 1000;
    background: rgba(20, 20, 40, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 0;
    border: 1px solid rgba(100, 100, 160, 0.3);
    min-width: 130px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: opacity 0.3s;
}

#legend-panel.hidden {
    display: none;
}

.legend-title {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8080a0;
    margin-bottom: 6px;
}

.legend-item {
    font-family: 'EB Garamond', 'Georgia', serif;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    font-size: 13px;
    color: #c0c0d0;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item--sub {
    font-family: 'EB Garamond', 'Georgia', serif;
    padding-left: 16px;
    font-size: 13px;
    color: #a0a0b8;
}

/* === Isolate Tour === */
#isolate-tour-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    padding: 0 16px 24px;
}

#isolate-tour-overlay.hidden {
    display: none;
}

.tour-card {
    pointer-events: auto;
    background: rgba(16, 16, 32, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 100, 160, 0.35);
    border-radius: 0;
    padding: 18px 24px 20px;
    max-width: 480px;
    width: 100%;
    color: #d0d0e0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tour-card--flying {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.tour-card--paradox {
    border-color: rgba(200, 120, 60, 0.6);
    background: rgba(32, 16, 8, 0.92);
}

.tour-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tour-card__progress {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8080a0;
}

.tour-card__skip {
    background: none;
    border: none;
    color: #8080a0;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    transition: color 0.2s;
}

.tour-card__skip:hover {
    color: #c0c0d0;
}

.tour-card__name {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: #e8e0d4;
    margin: 0 0 6px;
}

.tour-card--paradox .tour-card__name {
    color: #f0c080;
}

.tour-card__date {
    font-size: 12px;
    line-height: 1.45;
    color: #c4a66a;
    margin-bottom: 8px;
}

.tour-card__isolation {
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tour-badge {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(80, 80, 130, 0.4);
    color: #a0a0c0;
}

.tour-badge--terrain {
    background: rgba(60, 100, 80, 0.4);
    color: #90b8a0;
}

.tour-badge--paradox {
    background: rgba(200, 100, 40, 0.3);
    color: #e0a070;
}

.tour-card__look-for {
    font-size: 13px;
    line-height: 1.45;
    color: #d8d2c4;
    margin: 0 0 8px;
}

.tour-card__description {
    font-size: 13px;
    line-height: 1.55;
    color: #b8b8cc;
    margin: 0 0 10px;
}

.tour-card--paradox .tour-card__description {
    color: #d0c0a8;
    font-size: 13.5px;
}

.tour-card__speakers {
    font-size: 12px;
    color: #808098;
    margin-bottom: 14px;
}

.tour-card__next {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(80, 80, 140, 0.35);
    border: 1px solid rgba(100, 100, 160, 0.4);
    border-radius: 8px;
    color: #c0c0e0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-card__next:hover {
    background: rgba(100, 100, 160, 0.5);
    border-color: rgba(120, 120, 180, 0.5);
}

.tour-card--paradox .tour-card__next {
    background: rgba(160, 100, 40, 0.3);
    border-color: rgba(200, 120, 60, 0.4);
    color: #e0c0a0;
}

.tour-card--paradox .tour-card__next:hover {
    background: rgba(180, 110, 50, 0.45);
}

.isolate-tour-label {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: bold;
    color: #f0d780;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    pointer-events: none;
}

.isolate-tour-label--paradox {
    color: #e0a070;
}

/* === Flood destruction animation === */
@keyframes flood-destroy {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
    30% {
        filter: brightness(1.5) saturate(0.5);
    }
    60% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: brightness(0.5) saturate(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
        filter: brightness(0) saturate(0);
    }
}

#inset-container.flooding {
    animation: flood-destroy 3s ease-out forwards;
}

/* === Zoom Controls === */
.leaflet-control-zoom {
    border: 1px solid rgba(100, 100, 160, 0.3) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: rgba(20, 20, 40, 0.85) !important;
    color: #c0c0e0 !important;
    border-color: rgba(100, 100, 160, 0.3) !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(60, 60, 120, 0.85) !important;
    color: #f0f0ff !important;
}

/* === Landmark Labels === */
.landmark-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 10px;
    font-style: italic;
    color: #a0a0c0;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
    white-space: nowrap;
    pointer-events: none;
}

/* === Start Screen === */
/* === Landing Page === */
/* === Site Nav === */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    pointer-events: none;
}

.site-nav-logo {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    color: #e8ecf5;
    pointer-events: auto;
}

.site-nav-logo em {
    font-style: italic;
    color: #6ea8ff;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.site-nav-tagline {
    color: #ffffff;
    font-style: normal;
    letter-spacing: 2px;
    margin-left: 10px;
}

.site-nav-circle {
    flex-shrink: 0;
    opacity: 0.85;
}

.site-nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    pointer-events: auto;
}

.site-nav-link {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8090b0;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0;
}

.site-nav-link:hover {
    color: #e8ecf5;
}

#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: #05070f;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 1s ease;
    scroll-behavior: smooth;
}

#landing-page.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Hero - Split Layout */
.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 82px 48px 48px;
    background: #05070f;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 5% 12%, rgba(255,255,255,0.75) 0.5px, transparent 0.5px),
        radial-gradient(circle at 18% 7%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 32% 20%, rgba(255,255,255,0.6) 0.5px, transparent 0.5px),
        radial-gradient(circle at 47% 5%, rgba(255,255,255,0.45) 1px, transparent 1px),
        radial-gradient(circle at 62% 15%, rgba(255,255,255,0.7) 0.5px, transparent 0.5px),
        radial-gradient(circle at 75% 8%, rgba(255,255,255,0.55) 0.8px, transparent 0.8px),
        radial-gradient(circle at 88% 18%, rgba(255,255,255,0.6) 0.5px, transparent 0.5px),
        radial-gradient(circle at 95% 10%, rgba(255,255,255,0.4) 1px, transparent 1px),
        radial-gradient(circle at 12% 30%, rgba(255,255,255,0.35) 0.5px, transparent 0.5px),
        radial-gradient(circle at 28% 42%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 53% 35%, rgba(255,255,255,0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 70% 28%, rgba(255,255,255,0.6) 1px, transparent 1px),
        radial-gradient(circle at 85% 38%, rgba(255,255,255,0.35) 0.5px, transparent 0.5px),
        radial-gradient(circle at 40% 55%, rgba(255,255,255,0.45) 0.8px, transparent 0.8px),
        radial-gradient(circle at 92% 50%, rgba(255,255,255,0.5) 0.5px, transparent 0.5px),
        radial-gradient(circle at 7% 65%, rgba(255,255,255,0.4) 1px, transparent 1px),
        radial-gradient(circle at 22% 72%, rgba(255,255,255,0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 58% 68%, rgba(255,255,255,0.45) 0.8px, transparent 0.8px),
        radial-gradient(circle at 78% 75%, rgba(255,255,255,0.5) 0.5px, transparent 0.5px),
        radial-gradient(circle at 15% 88%, rgba(255,255,255,0.35) 1px, transparent 1px),
        radial-gradient(circle at 35% 92%, rgba(255,255,255,0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 65% 85%, rgba(255,255,255,0.55) 0.8px, transparent 0.8px),
        radial-gradient(circle at 90% 90%, rgba(255,255,255,0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 42% 78%, rgba(255,255,255,0.45) 1px, transparent 1px),
        radial-gradient(circle at 55% 48%, rgba(255,255,255,0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 3% 45%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 97% 32%, rgba(255,255,255,0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 82% 58%, rgba(255,255,255,0.35) 1px, transparent 1px),
        radial-gradient(circle at 48% 22%, rgba(255,255,255,0.6) 0.5px, transparent 0.5px),
        radial-gradient(circle at 16% 55%, rgba(255,255,255,0.4) 0.8px, transparent 0.8px),
        radial-gradient(circle at 73% 45%, rgba(255,255,255,0.35) 0.5px, transparent 0.5px),
        radial-gradient(circle at 38% 10%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 60% 95%, rgba(255,255,255,0.3) 0.5px, transparent 0.5px),
        radial-gradient(circle at 10% 95%, rgba(255,255,255,0.4) 1px, transparent 1px),
        radial-gradient(circle at 50% 60%, rgba(255,255,255,0.25) 0.5px, transparent 0.5px);
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1200px;
    width: 100%;
}

.hero-full {
    max-width: 1480px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 1180px;
}

.hero-eyebrow {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.55);
    margin-bottom: 18px;
    font-weight: 400;
    font-style: normal;
}

.hero-eyebrow-dot {
    margin-right: 6px;
    color: #6ea8ff;
    opacity: 0.6;
    letter-spacing: 0;
}

.hero-eyebrow em {
    font-style: italic;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.hero-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 84px;
    font-weight: 300;
    color: #e8ecf5;
    margin-bottom: 30px;
    letter-spacing: -1px;
    line-height: 1.0;
}

.hero-title-to {
    font-style: italic;
    color: #6ea8ff;
    font-weight: 300;
    letter-spacing: 0;
}

.hero-subtitle {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 20px;
    font-weight: 400;
    color: rgba(232, 236, 245, 0.6);
    letter-spacing: 1px;
    line-height: 1.4;
    margin-bottom: 28px;
}

.hero-quotes {
    position: relative;
    min-height: 132px;
    margin-bottom: 28px;
}

.hero-quote {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.hero-quote-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-quote-text {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 21px;
    font-style: italic;
    font-weight: 400;
    color: rgba(232, 236, 245, 0.7);
    line-height: 1.38;
    margin-bottom: 10px;
}

.hero-quote-label {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.55);
    margin-bottom: 6px;
}

.hero-quote-attr {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.55);
}

.hero-author {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 15px;
    color: #4a5070;
    font-style: italic;
    margin-bottom: 36px;
}

.hero-row-hint {
    display: grid;
    grid-template-columns: 60px 20px;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 86px;
}

.hero-row-hint svg {
    width: 20px;
    height: 12px;
}

.hero-row-label {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8ecf5;
    line-height: 1.2;
    text-align: right;
    justify-self: end;
}

.hero-action-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

.hero-choice-grid,
.hero-quick-grid,
.hero-argument-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.hero-argument-grid button,
.hero-argument-spacer {
    min-height: 34px;
    border: 1px solid rgba(110, 168, 255, 0.26);
    background: rgba(110, 168, 255, 0.04);
    color: rgba(232, 236, 245, 0.7);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: center;
}

.hero-argument-grid button {
    cursor: pointer;
}

.hero-argument-grid button:hover {
    background: rgba(110, 168, 255, 0.12);
    border-color: rgba(110, 168, 255, 0.48);
    color: #e8ecf5;
}

/* Hero timeline */
.hero-timeline {
    position: relative;
    width: 100%;
    height: 150px;
    margin-top: 28px;
    overflow: visible;
}

.hero-timeline-curve {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tl-node {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tl-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(110, 168, 255, 0.28);
    box-shadow: 0 0 4px rgba(110, 168, 255, 0.18);
    flex-shrink: 0;
    transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

.tl-dot-active {
    background: #e8ecf5;
    box-shadow: 0 0 10px rgba(232, 236, 245, 0.9), 0 0 24px rgba(110, 168, 255, 0.55);
    transform: scale(1.55);
}

.tl-dot-end {
    width: 7px;
    height: 7px;
}

.tl-label {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(232, 236, 245, 0.5);
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
}

.hero-book-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.5);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
    cursor: pointer;
}

.hero-book-link:hover {
    color: #a0c4ff;
}

.hero-book-link svg {
    opacity: 0.7;
}

/* Map preview frame */
.hero-preview {
    flex: 1;
    max-width: 580px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-preview-frame {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(100, 100, 160, 0.2);
    box-shadow:
        0 0 60px rgba(37, 99, 235, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.hero-preview-label {
    background: rgba(12, 12, 24, 0.9);
    color: #8888a8;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(100, 100, 160, 0.15);
}

.hero-preview-img {
    display: block;
    width: 100%;
    height: auto;
}

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

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: #e8ecf5;
    animation: bob 2.5s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-hint-text {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e8ecf5;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* CTA Buttons */
.cta-btn {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 12px;
    padding: 12px 14px;
    min-height: 68px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btn-primary {
    background: transparent;
    color: #e8ecf5;
    border-color: rgba(232, 236, 245, 0.3);
}

.cta-btn-primary:hover {
    background: rgba(232, 236, 245, 0.06);
    border-color: rgba(232, 236, 245, 0.5);
    color: #ffffff;
}

.cta-btn-secondary {
    background: transparent;
    color: #e8ecf5;
    border-color: rgba(232, 236, 245, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(232, 236, 245, 0.06);
    color: #ffffff;
    border-color: rgba(232, 236, 245, 0.5);
}

.cta-btn-walkthrough {
    background: #6ea8ff;
    color: #05070f;
    border-color: #6ea8ff;
}

.cta-btn-walkthrough:hover {
    background: #a0c4ff;
    color: #05070f;
    border-color: #a0c4ff;
}

.cta-btn-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.cta-btn-sm {
    font-size: 13px;
    padding: 10px 22px;
}

/* Also keep .start-btn for thesis panel buttons */
.start-btn {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    padding: 12px 28px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid;
}

.start-btn-primary {
    background: transparent;
    color: #6ea8ff;
    border-color: rgba(110, 168, 255, 0.5);
}

.start-btn-primary:hover {
    background: rgba(110, 168, 255, 0.1);
    border-color: rgba(110, 168, 255, 0.8);
    color: #a0c4ff;
}

.start-btn-secondary {
    background: transparent;
    color: rgba(110, 168, 255, 0.6);
    border-color: rgba(110, 168, 255, 0.25);
}

.start-btn-secondary:hover {
    background: rgba(110, 168, 255, 0.08);
    color: #6ea8ff;
    border-color: rgba(110, 168, 255, 0.5);
}

.start-btn-white {
    background: transparent;
    color: #e8ecf5;
    border-color: rgba(232, 236, 245, 0.3);
}

.start-btn-white:hover {
    background: rgba(232, 236, 245, 0.08);
    color: #ffffff;
    border-color: rgba(232, 236, 245, 0.5);
}

.start-btn-solid {
    background: #6ea8ff;
    color: #05070f;
    border-color: #6ea8ff;
}

.start-btn-solid:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #05070f;
}

/* Landing sections */
.landing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 48px;
}

.quick-watch-btn {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #e8ecf5;
    background: rgba(110, 168, 255, 0.1);
    border: 1px solid rgba(110, 168, 255, 0.34);
    border-radius: 0;
    min-height: 34px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quick-watch-btn:hover {
    background: #6ea8ff;
    border-color: #6ea8ff;
    color: #ffffff;
}

/* News Ticker */
.ticker-area {
    max-width: 100%;
    padding: 48px 40px;
    border-top: 1px solid rgba(80, 80, 120, 0.15);
    border-bottom: 1px solid rgba(80, 80, 120, 0.15);
}

.ticker-heading {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 28px;
    color: #e8ecf5;
    text-align: center;
    margin-bottom: 28px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.ticker-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(60, 60, 100, 0.1);
}

.ticker-row:last-child {
    border-bottom: none;
}

.ticker-label {
    flex-shrink: 0;
    width: 120px;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6a6a8a;
    padding-right: 20px;
    text-align: right;
    border-right: 1px solid rgba(80, 80, 120, 0.2);
    font-weight: 600;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
    padding-left: 28px;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    flex-shrink: 0;
}

.ticker-item-date {
    color: #4a4a68;
    font-size: 12px;
    font-family: 'EB Garamond', 'Georgia', serif;
    letter-spacing: 0.5px;
}

.ticker-item-headline {
    color: #8888a8;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Author section */
.author-section {
    max-width: 1180px;
    padding: 84px 48px;
    scroll-margin-top: 84px;
}

.author-inner {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 54px;
    align-items: center;
}

.author-photo-frame {
    border: 1px solid rgba(110, 168, 255, 0.24);
    background: rgba(5, 7, 15, 0.6);
    padding: 10px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.author-photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.04);
}

.author-kicker {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.62);
    margin-bottom: 12px;
}

.author-copy h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 46px;
    font-weight: 300;
    color: #e8ecf5;
    margin: 0 0 18px;
    line-height: 1.05;
}

.author-copy p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(232, 236, 245, 0.64);
    margin-bottom: 16px;
}

.author-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.author-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    max-width: 100%;
    border: 1px solid rgba(110, 168, 255, 0.35);
    background: rgba(110, 168, 255, 0.08);
    color: #e8ecf5;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 9px 13px;
    text-align: center;
}

.author-links a:nth-child(4n + 1),
.author-links a:nth-child(4n) {
    background: #6ea8ff;
    border-color: #6ea8ff;
    color: #05070f;
}

.author-links a:nth-child(4n + 2),
.author-links a:nth-child(4n + 3) {
    background: transparent;
    border-color: rgba(232, 236, 245, 0.3);
    color: #e8ecf5;
}

.author-links a:hover {
    filter: brightness(1.14);
}

/* Community section */
.community-section {
    text-align: center;
    padding: 80px 40px;
}

.community-section h2 {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 28px;
    color: #d0d0e0;
    margin-bottom: 16px;
    font-weight: 600;
}

.community-section p {
    font-size: 15px;
    color: #6a6a88;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* Footer */
.landing-footer {
    border-top: 1px solid rgba(80, 80, 120, 0.12);
    padding: 48px 40px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-book-link {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 14px;
    color: #6ea8ff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-book-link:hover {
    color: #d8c0a0;
}

.footer-credit {
    font-size: 13px;
    color: #404058;
    margin-top: 12px;
    line-height: 1.5;
}

.footer-copyright {
    font-size: 12px;
    color: #303045;
    margin-top: 8px;
}

/* === Text Panels (Thesis + Chronology) === */
.text-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: #05070f;
    overflow-y: auto;
    transition: opacity 0.6s ease;
}

.text-panel.hidden {
    display: none;
}

.text-panel-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    color: #7080a0;
    line-height: 1.8;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 17px;
}

.text-panel-inner h1 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 42px;
    font-weight: 300;
    color: #e8ecf5;
    margin-bottom: 28px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.text-panel-inner h2 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 28px;
    font-weight: 400;
    color: #c0cce0;
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.text-panel-inner h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 22px;
    font-weight: 400;
    color: #a0b0c8;
    margin-top: 32px;
    margin-bottom: 12px;
}

.text-panel-inner p {
    font-size: 17px;
    margin-bottom: 18px;
    color: #7080a0;
    font-family: 'EB Garamond', 'Georgia', serif;
}

.thesis-intro {
    font-size: 19px !important;
    color: #8090b0 !important;
    font-family: 'EB Garamond', 'Georgia', serif !important;
}

.thesis-subtitle {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 16px;
    color: #5a6880;
    font-style: italic;
    margin-top: -12px;
    margin-bottom: 24px;
}

.thesis-action-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(110, 168, 255, 0.3);
    border-radius: 0;
    color: #6ea8ff;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.thesis-action-btn:hover {
    background: rgba(110, 168, 255, 0.08);
    border-color: rgba(110, 168, 255, 0.5);
}

.thesis-action-btn-primary {
    background: #6ea8ff;
    border-color: #6ea8ff;
    color: #ffffff;
}

.thesis-action-btn-primary:hover {
    background: #8cbaff;
    border-color: #8cbaff;
    color: #ffffff;
}

.thesis-criteria {
    padding-left: 24px;
    margin-bottom: 16px;
}

.thesis-criteria li {
    font-size: 15px;
    color: #b0b0d0;
    margin-bottom: 6px;
    line-height: 1.6;
}

.thesis-evidence {
    padding-left: 20px;
    margin-bottom: 16px;
}

.thesis-evidence li {
    font-size: 15px;
    color: #b0b0d0;
    margin-bottom: 12px;
    line-height: 1.7;
}

.thesis-reference {
    font-size: 13px !important;
    color: #7070a0 !important;
    font-style: italic;
    border-left: 2px solid rgba(100, 100, 160, 0.3);
    padding-left: 12px;
}

/* === Tables in text panels === */
.thesis-table,
.chronology-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.thesis-table th,
.chronology-table th {
    background: rgba(40, 40, 80, 0.5);
    color: #b0b0d0;
    padding: 8px 12px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(100, 100, 160, 0.3);
}

.thesis-table td,
.chronology-table td {
    padding: 6px 12px;
    color: #a0a0c0;
    border-bottom: 1px solid rgba(60, 60, 100, 0.2);
}

.thesis-table tbody tr:hover,
.chronology-table tbody tr:hover {
    background: rgba(40, 40, 80, 0.2);
}

.chronology-table {
    font-size: 13px;
}

.chronology-table td:nth-child(n+2) {
    text-align: center;
}

.chronology-table th:nth-child(n+2) {
    text-align: center;
}

.table-section td {
    background: rgba(60, 60, 120, 0.2) !important;
    color: #9090b0 !important;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 12px !important;
}

.table-event td {
    background: rgba(20, 30, 60, 0.4) !important;
    color: #6ea8ff !important;
    font-style: italic;
}

.table-highlight td {
    background: rgba(60, 80, 60, 0.15) !important;
}

.table-highlight-nahor td {
    background: rgba(80, 60, 60, 0.15) !important;
}

.table-footnote {
    font-size: 13px !important;
    color: #7070a0 !important;
    margin-bottom: 8px !important;
}

.text-panel-buttons {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.text-panel-inner a {
    color: #8888cc;
    text-decoration: none;
}

.text-panel-inner a:hover {
    text-decoration: underline;
}

/* === Return home button in layer panel === */
.return-home-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 8px;
    cursor: pointer;
    text-align: center;
    margin-top: 4px;
}

.return-home-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.return-home-btn.hidden {
    display: none;
}

.gospel-map-hint {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    z-index: 1300;
    max-width: min(520px, calc(100vw - 32px));
    padding: 10px 18px;
    border: 1px solid rgba(110, 168, 255, 0.38);
    background: rgba(5, 7, 15, 0.86);
    color: #e8ecf5;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.gospel-map-hint.hidden {
    display: none;
}


/* === Banner claim label === */
#event-banner-claim {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7070a0;
    margin-bottom: 4px;
}

#event-banner-claim.hidden {
    display: none;
}

/* === Responsive === */

/* Tablet */
@media (max-width: 900px) {
    .hero-text {
        max-width: 620px;
    }
    .hero-eyebrow {
        margin-bottom: 24px;
    }
    .hero-title {
        font-size: 64px;
        margin-bottom: 24px;
    }
    .hero-quotes {
        min-height: 190px;
        margin-bottom: 30px;
    }
    .hero-action-row {
        display: block;
        margin-bottom: 14px;
    }
    .hero-row-hint {
        justify-content: center;
        width: auto;
        margin-bottom: 12px;
    }
    .hero-row-label {
        text-align: center;
    }
    .hero-choice-grid,
    .hero-quick-grid,
    .hero-argument-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-argument-spacer {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .landing-hero {
        padding: 48px 24px 60px;
    }
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-quotes {
        min-height: 240px;
    }
    .hero-action-row {
        display: block;
    }
    .hero-scroll-hint {
        display: none;
    }
    .hero-timeline {
        display: none;
    }
    .hero-choice-grid,
    .hero-quick-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hero-argument-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .author-section {
        padding: 64px 24px;
    }
    .author-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .author-photo-frame {
        max-width: 340px;
        margin: 0 auto;
    }
    .author-copy {
        text-align: center;
    }
    .author-copy h2 {
        font-size: 38px;
    }
    .author-links {
        justify-content: center;
        grid-template-columns: 1fr;
    }
    .feedback-contact-row {
        grid-template-columns: 1fr;
    }
    .feedback-form {
        padding: 30px 24px;
    }
    .landing-section {
        padding: 60px 24px;
    }
    .ticker-area {
        padding: 32px 16px;
    }
    .ticker-heading {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .ticker-row {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }
    .ticker-label {
        width: auto;
        border-right: none;
        text-align: center;
        padding-right: 0;
        padding-bottom: 4px;
    }
    .community-section h2 {
        font-size: 24px;
    }
    .landing-footer {
        padding: 32px 24px;
    }
    #inset-container {
        width: 200px;
    }
    #inset-map {
        height: 120px;
    }
    #layer-panel {
        top: auto;
        bottom: 80px;
        right: 8px;
    }
    #event-banner {
        max-width: 90%;
        padding: 12px 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }
    .cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Walkthrough Exit Button (D-01, D-02)
   ========================================================================== */

/* Top-right corner, visible during walkthrough mode */
.walkthrough-exit-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    padding: 8px 18px;
    background: rgba(30, 30, 30, 0.85);
    color: #e0d6c8;
    border: 1px solid rgba(224, 214, 200, 0.3);
    border-radius: 4px;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.walkthrough-exit-btn:hover {
    background: rgba(60, 50, 40, 0.95);
    border-color: rgba(224, 214, 200, 0.6);
}

.walkthrough-exit-btn.hidden {
    display: none;
}

/* === Patriarch Genesis Text Box (accumulating verse list, per D-13/D-14) === */
/* Positioned below the inset map (top:16px + ~280px height) so they never overlap */
#patriarch-genesis-text {
    position: absolute;
    top: 310px;
    left: 16px;
    width: 290px;
    max-height: calc(100vh - 390px);
    overflow-y: auto;
    background: rgba(10, 20, 10, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(80, 160, 80, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    z-index: 2000;
    font-family: 'EB Garamond', 'Georgia', serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 160, 80, 0.3) transparent;
}

#patriarch-genesis-text::-webkit-scrollbar {
    width: 4px;
}

#patriarch-genesis-text::-webkit-scrollbar-thumb {
    background: rgba(80, 160, 80, 0.3);
    border-radius: 2px;
}

#patriarch-genesis-text.hidden {
    display: none;
}

/* Individual verse entries — accumulate like the chain ledger */
.patriarch-verse-entry {
    font-size: 12px;
    line-height: 1.55;
    color: #b8d4b0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(80, 160, 80, 0.1);
    animation: chainEntryFadeIn 0.4s ease forwards;
    opacity: 0;
}

.patriarch-verse-entry:last-of-type {
    border-bottom: none;
}

.patriarch-verse-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-style: italic;
    color: #f0d880;
    opacity: 0.85;
}

#patriarch-verse {
    margin: 0 0 8px 0;
}

#lxx-mt-panel-btn {
    display: inline-block;
    background: rgba(100, 180, 100, 0.2);
    border: 1px solid rgba(100, 180, 100, 0.4);
    border-radius: 3px;
    color: #a8c8a8;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

#lxx-mt-panel-btn:hover {
    background: rgba(100, 180, 100, 0.35);
}

/* === Chain Ledger Panel (right side, during walkthrough) === */
#chain-ledger {
    position: absolute;
    top: 60px;
    right: 16px;
    width: 270px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 2000;
    background: rgba(15, 12, 30, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(180, 150, 80, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'EB Garamond', 'Georgia', serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 150, 80, 0.3) transparent;
}

#chain-ledger.hidden {
    display: none;
}

#chain-ledger::-webkit-scrollbar {
    width: 4px;
}

#chain-ledger::-webkit-scrollbar-track {
    background: transparent;
}

#chain-ledger::-webkit-scrollbar-thumb {
    background: rgba(180, 150, 80, 0.3);
    border-radius: 2px;
}

/* Anchor entry — a named date milestone */
.chain-entry {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: chainEntryFadeIn 0.4s ease forwards;
    opacity: 0;
}

.chain-entry:last-child {
    border-bottom: none;
}

@keyframes chainEntryFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.chain-entry--anchor {
    padding: 8px 0;
    border-bottom: 1px solid rgba(180, 150, 80, 0.2);
}

.chain-entry--anchor .chain-entry-year {
    font-size: 15px;
    font-weight: 700;
    color: #d4a840;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.chain-entry--anchor .chain-entry-text {
    font-size: 13px;
    color: #e8e0c8;
    margin-top: 2px;
    line-height: 1.3;
}

.chain-entry--anchor .chain-entry-subtext {
    font-size: 10px;
    color: #a09070;
    margin-top: 2px;
    font-style: italic;
}

/* Fast entry — rapid citation */
.chain-entry--fast .chain-entry-text {
    font-size: 12px;
    color: #a8a090;
    line-height: 1.3;
}

/* Terminal entry — the chain's conclusion (styled like an anchor) */
.chain-entry--terminal {
    padding: 8px 0;
    border-bottom: 1px solid rgba(180, 150, 80, 0.2);
}

.chain-entry--terminal .chain-entry-year {
    font-size: 15px;
    font-weight: 700;
    color: #d4a840;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.chain-entry--terminal .chain-entry-text {
    font-size: 13px;
    color: #e8e0c8;
    margin-top: 2px;
    line-height: 1.3;
}

/* Reference and learn-more badge — shared across all entry types */
.chain-entry-ref {
    font-size: 12px;
    color: #a09070;
    margin-top: 2px;
    font-style: italic;
}

.chain-entry-learn-badge {
    display: inline-block;
    font-size: 10px;
    color: #a08040;
    background: rgba(160, 120, 40, 0.15);
    border: 1px solid rgba(160, 120, 40, 0.25);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* === Detail Panel (full-screen modal overlay) === */
#detail-panel {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

#detail-panel.hidden {
    display: none;
}

.detail-panel-inner {
    position: relative;
    background: rgba(18, 16, 36, 0.97);
    border: 1px solid rgba(180, 150, 80, 0.35);
    border-radius: 0;
    padding: 32px 36px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.7);
    font-family: 'EB Garamond', 'Georgia', serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 150, 80, 0.3) transparent;
}

.detail-panel-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #806850;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px 8px;
}

.detail-panel-close:hover {
    color: #6ea8ff;
}

#detail-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: #d4a840;
    margin-bottom: 20px;
    padding-right: 24px;
    line-height: 1.3;
}

.detail-point {
    margin-bottom: 18px;
}

.detail-point-heading {
    font-size: 15px;
    font-weight: 600;
    color: #e8e0c8;
    margin-bottom: 6px;
}

.detail-point-body {
    font-size: 14px;
    color: #a8a090;
    line-height: 1.65;
}

.detail-panel-source {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(180, 150, 80, 0.2);
    font-size: 12px;
    color: #706858;
    font-style: italic;
    line-height: 1.5;
}

.detail-panel-source.hidden {
    display: none;
}

/* === Feedback Panel === */
.feedback-panel {
    position: fixed;
    inset: 0;
    z-index: 21000;
    background: rgba(0, 0, 0, 0.76);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.feedback-panel.hidden {
    display: none;
}

.feedback-form {
    position: relative;
    width: min(640px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: rgba(8, 10, 22, 0.98);
    border: 1px solid rgba(110, 168, 255, 0.35);
    box-shadow: 0 18px 72px rgba(0, 0, 0, 0.72);
    padding: 34px 38px;
    font-family: Georgia, 'Times New Roman', serif;
    color: #e8ecf5;
}

.feedback-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #8090b0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.feedback-close:hover {
    color: #ffffff;
}

.feedback-hidden {
    display: none;
}

#feedback-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    color: #e8ecf5;
    margin: 0 34px 12px 0;
    line-height: 1.2;
}

.feedback-intro,
.feedback-prompts,
.feedback-label {
    font-family: Georgia, 'Times New Roman', serif;
}

.feedback-intro {
    color: rgba(232, 236, 245, 0.72);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.feedback-prompts {
    color: rgba(232, 236, 245, 0.62);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 22px 18px;
    padding: 0;
}

.feedback-label {
    display: block;
    color: #e8ecf5;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.feedback-label span {
    color: rgba(232, 236, 245, 0.45);
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
}

.feedback-form textarea,
.feedback-form input {
    width: 100%;
    margin-top: 8px;
    border: 1px solid rgba(110, 168, 255, 0.32);
    background: rgba(255, 255, 255, 0.04);
    color: #e8ecf5;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 0;
}

.feedback-form textarea:focus,
.feedback-form input:focus {
    outline: none;
    border-color: rgba(110, 168, 255, 0.8);
    background: rgba(110, 168, 255, 0.08);
}

.feedback-contact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 12px;
    margin-top: 16px;
}

.feedback-submit {
    margin-top: 22px;
    width: 100%;
    border: 1px solid #6ea8ff;
    background: #6ea8ff;
    color: #05070f;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 13px 18px;
    cursor: pointer;
}

.feedback-submit:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
}

/* === Feedback Thank You Page === */
.thanks-page {
    min-height: 100vh;
    background: #05070f;
    color: #e8ecf5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.thanks-card {
    width: min(620px, 100%);
    border: 1px solid rgba(110, 168, 255, 0.28);
    background: rgba(8, 10, 22, 0.94);
    padding: 42px 46px;
    text-align: center;
}

.thanks-card h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 300;
    margin: 0 0 14px;
}

.thanks-card p {
    font-family: Georgia, 'Times New Roman', serif;
    color: rgba(232, 236, 245, 0.72);
    font-size: 17px;
    line-height: 1.6;
}

.thanks-link {
    display: inline-block;
    margin-top: 22px;
    border: 1px solid #6ea8ff;
    background: #6ea8ff;
    color: #05070f;
    text-decoration: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 22px;
}

.thanks-link:hover {
    background: #a0c4ff;
    border-color: #a0c4ff;
}

/* === Walkthrough Map Pins (chronology location markers) === */
.walkthrough-pin {
    position: relative;
    pointer-events: none;
}

.walkthrough-pin-dot {
    width: 11px;
    height: 11px;
    background: #d4a840;
    border: 2px solid #f0d880;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 168, 64, 0.8), 0 0 20px rgba(212, 168, 64, 0.4);
    animation: pinPulse 2s ease-in-out infinite;
}

@keyframes pinPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(212, 168, 64, 0.7), 0 0 16px rgba(212, 168, 64, 0.3); }
    50%       { box-shadow: 0 0 14px rgba(212, 168, 64, 1.0), 0 0 28px rgba(212, 168, 64, 0.6); }
}

.walkthrough-pin-label {
    position: absolute;
    left: 16px;
    top: -5px;
    white-space: nowrap;
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 12px;
    font-weight: 600;
    color: #f0d880;
    text-shadow: 1px 1px 3px #000, -1px -1px 3px #000, 0 0 6px rgba(0,0,0,0.9);
    pointer-events: none;
}


/* ============================================================ */
/* Gospel Walkthrough                                           */
/* ============================================================ */

.gospel-complete-card {
    max-width: 680px;
}

.gospel-detail-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(100, 100, 160, 0.2);
    text-align: left;
}

.gospel-detail-heading {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8080a0;
    margin-bottom: 10px;
}

.gospel-prayer-box {
    background: rgba(110, 168, 255, 0.06);
    border: 1px solid rgba(110, 168, 255, 0.25);
    border-left: 3px solid rgba(110, 168, 255, 0.5);
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0;
}

.gospel-prayer-text {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 15px;
    font-style: italic;
    color: #d0d8f0;
    line-height: 1.7;
    margin: 0;
}

.gospel-assurance-box {
    background: rgba(100, 200, 130, 0.05);
    border: 1px solid rgba(100, 200, 130, 0.2);
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 0;
}

.gospel-assurance-text {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 14px;
    color: #a0c8a8;
    line-height: 1.65;
    margin: 0;
}

.gospel-link {
    color: #6ea8ff;
    text-decoration: none;
}

.gospel-link:hover {
    text-decoration: underline;
    color: #a0c4ff;
}

/* Gospel overlay detail panels (guilt offering, God, resurrection) */
.gospel-overlay-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gospel-overlay-panel.hidden {
    display: none;
}

.gospel-overlay-card {
    background: #06080f;
    border: 1px solid rgba(110, 168, 255, 0.2);
    max-width: 620px;
    width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 36px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.gospel-overlay-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #8080a0;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.gospel-overlay-close:hover {
    color: #e8ecf5;
}

.gospel-overlay-title {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 20px;
    font-weight: 400;
    color: #e8ecf5;
    margin-bottom: 18px;
    padding-right: 28px;
}

.gospel-overlay-body {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-size: 15px;
    color: #b0b0d0;
    line-height: 1.7;
    margin-bottom: 12px;
}

.gospel-overlay-body strong {
    color: #d0d0f0;
}

.gospel-overlay-body em {
    color: #c8d8ff;
}

/* Christianity layer: flash label on dot appearance */
.church-flash-label {
    background: none;
    border: none;
    white-space: nowrap;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.7);
    pointer-events: none;
}

/* Christianity layer: hover tooltip */
.church-tooltip {
    background: rgba(10, 12, 28, 0.88);
    border: 1px solid rgba(110, 168, 255, 0.3);
    border-radius: 4px;
    color: #d8e4ff;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    padding: 4px 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.church-tooltip::before {
    border-top-color: rgba(10, 12, 28, 0.88) !important;
}

/* Christianity layer: click ancestry popup */
.ancestry-popup-wrap .leaflet-popup-content-wrapper {
    background: rgba(8, 10, 24, 0.95);
    border: 1px solid rgba(110, 168, 255, 0.3);
    border-radius: 6px;
    color: #d8e4ff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    padding: 0;
}

.ancestry-popup-wrap .leaflet-popup-content {
    margin: 14px 16px;
}

.ancestry-popup-wrap .leaflet-popup-tip {
    background: rgba(8, 10, 24, 0.95);
}

.ancestry-popup-wrap .leaflet-popup-close-button {
    color: #6688bb !important;
    font-size: 16px;
    top: 6px !important;
    right: 8px !important;
}

.ancestry-popup-wrap .leaflet-popup-close-button:hover {
    color: #aaccff !important;
}

.ancestry-popup {
    font-family: 'EB Garamond', Georgia, serif;
}

.ancestry-popup-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}

.ancestry-popup-year {
    font-size: 12px;
    color: #6688bb;
    margin-bottom: 10px;
}

.ancestry-popup-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8899bb;
    margin-bottom: 6px;
}

.ancestry-origin {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: #f0c030;
}

.ancestry-chain {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid rgba(100, 130, 200, 0.25);
    padding-left: 10px;
}

.ancestry-chain li {
    font-size: 13px;
    line-height: 1.6;
    position: relative;
}

.ancestry-chain li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: rgba(100, 130, 200, 0.3);
}

.ancestry-year {
    font-size: 11px;
    color: #6688bb;
}

.ancestry-status {
    font-size: 12px;
    font-style: italic;
    color: #888898;
}

/* Persistent labels on ancestor dots when a church is clicked */
.church-ancestry-label {
    background: none;
    border: none;
    white-space: nowrap;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    color: #d8e4ff;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 8px rgba(0,0,0,0.9);
    pointer-events: none;
}
