﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * FarmerHunterV3.css
 * Cinematic Narrative Report Design
 * Earth-rooted aesthetic with calm, spacious layouts
 */

/* ========================================
   PAGE BACKGROUND OVERRIDES
   ======================================== */
html body,
body:has(.fhv3-page),
body .fhv3-page {
    background: #151210 !important;
}

html {
    background: #151210 !important;
}

/* ========================================
   DESIGN TOKENS - Dark Earth-Toned Palette
   ======================================== */
.fhv3-page {
    /* Accent Colors (preserved) */
    --fhv3-earth: #7C6A52;
    --fhv3-earth-dark: #5C4A3D;
    --fhv3-earth-light: rgba(124, 106, 82, 0.2);
    --fhv3-forest: #4A5D48;
    --fhv3-forest-dark: #3A4D38;
    --fhv3-forest-light: rgba(74, 93, 72, 0.2);
    --fhv3-sky: #8BA4B4;
    --fhv3-sky-light: rgba(139, 164, 180, 0.2);
    --fhv3-stone: #C4BCB2;
    --fhv3-stone-light: rgba(196, 188, 178, 0.3);
    --fhv3-moss: #6B7D59;
    --fhv3-clay: #C4A77D;
    --fhv3-clay-light: rgba(196, 167, 125, 0.2);
    --fhv3-bark: #5C4A3D;
    
    /* Dark Background Palette */
    --fhv3-obsidian: #151210;
    --fhv3-slate: #1E1A17;
    --fhv3-dark-stone: #2A2520;
    --fhv3-dark-stone-light: rgba(42, 37, 32, 0.5);
    
    /* Light Text Palette */
    --fhv3-bone: #FAF8F5;
    --fhv3-ivory: #FFFFFF;
    --fhv3-sand: #D4CCC0;
    
    /* Legacy names flipped to dark equivalents */
    --fhv3-mist: #1E1A17;
    --fhv3-parchment: #151210;
    --fhv3-charcoal: #E8E2D8;
    
    /* Civilization Type Colors */
    --fhv3-farmer: #4A6741;
    --fhv3-farmer-light: rgba(74, 103, 65, 0.25);
    --fhv3-hunter: #8B5A2B;
    --fhv3-hunter-light: rgba(139, 90, 43, 0.25);
    --fhv3-maritime: #2D7D9A;
    --fhv3-maritime-light: rgba(45, 125, 154, 0.25);
    --fhv3-islander: #7B5DAD;
    --fhv3-islander-light: rgba(123, 93, 173, 0.25);
    
    /* Shadows (darker, warmer) */
    --fhv3-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
    --fhv3-shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.4);
    --fhv3-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
    --fhv3-shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    /* Gradients */
    --fhv3-gradient-earth: linear-gradient(135deg, var(--fhv3-earth) 0%, var(--fhv3-forest) 100%);
    --fhv3-gradient-mist: linear-gradient(180deg, var(--fhv3-slate) 0%, var(--fhv3-obsidian) 100%);
    --fhv3-gradient-hero: linear-gradient(180deg, rgba(21, 18, 16, 0.85) 0%, rgba(30, 26, 23, 0.8) 50%, rgba(21, 18, 16, 0.9) 100%);
    
    /* Typography */
    font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--fhv3-bone);
    background: var(--fhv3-obsidian);
    min-height: 100vh;
}

/* Visual Timeline - override light fhv3-stone with dark theme for better contrast */
.fhv3-page .vtl-timeline-wrapper {
    --vtl-bg: var(--fhv3-dark-stone) !important;
}

/* ========================================
   ACCESSIBILITY - SKIP LINK
   ======================================== */
.fhv3-skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--fhv3-forest);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    transition: top 0.3s ease;
}

.fhv3-skip-link:focus {
    top: 0;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.fhv3-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fhv3-forest) 0%, var(--fhv3-clay) 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 1px 3px rgba(74, 93, 72, 0.3);
}

/* ========================================
   PAGE NAVIGATION DOTS
   ======================================== */
.fhv3-page-nav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: var(--fhv3-shadow-medium);
    backdrop-filter: blur(10px);
}

@media (min-width: 1200px) {
    .fhv3-page-nav {
        display: flex;
    }
}

.fhv3-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(124, 106, 82, 0.25);
    border: 2px solid var(--fhv3-earth);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    display: block;
}

.fhv3-nav-dot:hover,
.fhv3-nav-dot.active {
    background: var(--fhv3-earth);
    transform: scale(1.3);
}

.fhv3-nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--fhv3-charcoal);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.fhv3-nav-dot:hover::after {
    opacity: 1;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.fhv3-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--fhv3-gradient-earth);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fhv3-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--fhv3-shadow-hover);
}

@media (max-width: 768px) {
    .fhv3-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.fhv3-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1250;
    background: rgba(13, 13, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 180, 154, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
}

.fhv3-bottom-nav-item {
    text-decoration: none;
    color: var(--fhv3-bone);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all var(--fhv3-transition);
    opacity: 0.6;
}

.fhv3-bottom-nav-item i {
    font-size: 1rem;
}

.fhv3-bottom-nav-item:hover,
.fhv3-bottom-nav-item.active {
    color: var(--fhv3-clay);
    text-decoration: none;
    opacity: 1;
}

/* Adjust main content padding for bottom nav on mobile */
@media (max-width: 767.98px) {
    .fhv3-page {
        padding-bottom: 80px;
    }
    
    .fhv3-back-to-top {
        bottom: 90px;
    }
}

/* ========================================
   SECTION 1: HERO
   ======================================== */
.fhv3-hero {
    min-height: 100vh;
    background: url('/img/reports/ancestry/farmer-hunter/farmerhunters-header.webp') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px;
}

@media (max-width: 768px) {
    .fhv3-hero {
        min-height: auto;
        padding: 120px 0 80px;
        background-attachment: scroll;
    }
}

.fhv3-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--fhv3-gradient-hero);
}

.fhv3-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 24px;
}

.fhv3-hero-prelude {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fhv3FadeIn 1.2s ease-out 0.3s forwards;
}

.fhv3-hero-title {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 28px;
    line-height: 1.15;
    color: white;
    letter-spacing: -0.5px;
    opacity: 0;
    animation: fhv3FadeIn 1.2s ease-out 0.6s forwards;
}

@media (max-width: 768px) {
    .fhv3-hero-title {
        font-size: 2.2rem;
    }
}

.fhv3-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fhv3FadeIn 1.2s ease-out 0.9s forwards;
}

@media (max-width: 768px) {
    .fhv3-hero-subtitle {
        font-size: 1.05rem;
    }
}

.fhv3-hero-sample {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 40px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    color: white;
    opacity: 0;
    animation: fhv3FadeIn 1.2s ease-out 1.2s forwards;
}

.fhv3-hero-sample i {
    color: var(--fhv3-clay);
}

/* Hero Stats */
.fhv3-hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    opacity: 0;
    animation: fhv3FadeIn 1.2s ease-out 1.5s forwards;
}

.fhv3-stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.fhv3-stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.fhv3-stat-card i {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.fhv3-stat-farmer i { color: #8BC34A; }
.fhv3-stat-hunter i { color: var(--fhv3-clay); }
.fhv3-stat-dominant i { color: #81D4FA; }

.fhv3-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    color: white;
    font-family: 'Inter', -apple-system, sans-serif;
    margin-bottom: 4px;
}

.fhv3-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, sans-serif;
}

@media (max-width: 768px) {
    .fhv3-hero-stats {
        gap: 16px;
    }
    
    .fhv3-stat-card {
        padding: 18px 24px;
        min-width: 140px;
    }
    
    .fhv3-stat-value {
        font-size: 1.5rem;
    }
}

/* Hero Trust Badges */
.fhv3-hero-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fhv3FadeIn 1.2s ease-out 1.8s forwards;
}

.fhv3-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
}

.fhv3-trust-item i {
    color: var(--fhv3-clay);
    font-size: 1rem;
}

/* Scroll Indicator */
.fhv3-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    opacity: 0;
    animation: fhv3FadeInCentered 1.2s ease-out 2.1s forwards;
}

.fhv3-scroll-indicator .dna-icon {
    animation: fhv3Bounce 2.5s ease-in-out infinite;
}

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

@keyframes fhv3FadeInCentered {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

/* ========================================
   SECTION STYLING
   ======================================== */
.fhv3-section {
    padding: 120px 0;
    background: var(--fhv3-obsidian);
}

.fhv3-section-mist {
    background: var(--fhv3-slate);
}

.fhv3-section-earth {
    background: linear-gradient(180deg, rgba(124, 106, 82, 0.1) 0%, rgba(74, 93, 72, 0.1) 100%);
}

@media (max-width: 768px) {
    .fhv3-section {
        padding: 80px 0;
    }
}

.fhv3-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.fhv3-section-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .fhv3-section-title {
        font-size: 1.9rem;
    }
}

.fhv3-section-lead {
    font-size: 1.15rem;
    color: var(--fhv3-stone);
    line-height: 1.9;
}

/* ========================================
   SECTION 2: ANCESTORS GALLERY
   ======================================== */
.fhv3-ancestors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.fhv3-ancestor-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--fhv3-shadow-soft);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.fhv3-ancestor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fhv3-shadow-hover);
}

.fhv3-ancestor-portrait {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.fhv3-ancestor-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.fhv3-ancestor-card:hover .fhv3-ancestor-portrait img {
    transform: scale(1.05);
}

.fhv3-ancestor-type {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.fhv3-ancestor-type.farmer { background: var(--fhv3-farmer); }
.fhv3-ancestor-type.hunter { background: var(--fhv3-hunter); }
.fhv3-ancestor-type.maritime { background: var(--fhv3-maritime); }
.fhv3-ancestor-type.islander { background: var(--fhv3-islander); }

.fhv3-ancestor-info {
    padding: 24px;
}

.fhv3-ancestor-match {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.fhv3-match-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fhv3-forest);
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-match-label {
    font-size: 0.85rem;
    color: var(--fhv3-stone);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fhv3-ancestor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-ancestor-location,
.fhv3-ancestor-era {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.fhv3-ancestor-location i,
.fhv3-ancestor-era i {
    color: var(--fhv3-earth);
    width: 16px;
}

.fhv3-ancestor-group {
    display: inline-block;
    background: var(--fhv3-earth-light);
    color: var(--fhv3-ivory);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: 'Inter', -apple-system, sans-serif;
    margin-top: 8px;
}

.fhv3-ancestor-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--fhv3-slate);
    color: var(--fhv3-forest);
    text-decoration: none;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(196, 167, 125, 0.15);
}

.fhv3-ancestor-link:hover {
    background: var(--fhv3-forest);
    color: white;
}

/* Reflection Quote */
.fhv3-reflection {
    max-width: 600px;
    margin: 60px auto 40px;
    text-align: center;
    padding: 0 20px;
}

.fhv3-reflection blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--fhv3-earth-dark);
    background: rgba(250, 248, 245, 0.95);
    border: none;
    padding: 32px 40px;
    margin: 0;
    line-height: 1.7;
    border-radius: 0 20px 20px 0;
    box-shadow: var(--fhv3-shadow-medium);
    position: relative;
    font-weight: 400;
}

.fhv3-reflection blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--fhv3-clay);
    border-radius: 20px 0 0 20px;
}

@media (max-width: 768px) {
    .fhv3-reflection {
        margin: 40px auto 30px;
        padding: 0 16px;
    }
    
    .fhv3-reflection blockquote {
        font-size: 1.2rem;
        padding: 24px 28px;
        border-radius: 0 16px 16px 0;
    }
}

/* ========================================
   SECTION 3: TIMELINE
   ======================================== */
.fhv3-timeline-container {
    background: var(--fhv3-dark-stone);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--fhv3-shadow-medium);
    margin-bottom: 40px;
}

.fhv3-timeline-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.fhv3-zoom-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--fhv3-earth);
    background: var(--fhv3-dark-stone);
    color: var(--fhv3-earth);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fhv3-zoom-btn:hover {
    background: var(--fhv3-earth);
    color: white;
}

.fhv3-zoom-slider {
    width: 120px;
    accent-color: var(--fhv3-forest);
}

.fhv3-timeline-scroll {
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--fhv3-earth) var(--fhv3-mist);
}

.fhv3-timeline-track {
    position: relative;
    height: 180px;
    min-width: 100%;
}

.fhv3-timeline-track.fhv3-zoom-1 { min-width: 600px; }
.fhv3-timeline-track.fhv3-zoom-2 { min-width: 800px; }
.fhv3-timeline-track.fhv3-zoom-3 { min-width: 1000px; }
.fhv3-timeline-track.fhv3-zoom-4 { min-width: 1200px; }
.fhv3-timeline-track.fhv3-zoom-5 { min-width: 1500px; }

.fhv3-timeline-axis {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--fhv3-forest) 0%, var(--fhv3-hunter) 50%, var(--fhv3-clay) 100%);
    border-radius: 2px;
}

.fhv3-timeline-point {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--fhv3-shadow-medium);
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 10;
}

.fhv3-timeline-point.farmer { border-color: var(--fhv3-farmer); }
.fhv3-timeline-point.hunter { border-color: var(--fhv3-hunter); }
.fhv3-timeline-point.maritime { border-color: var(--fhv3-maritime); }
.fhv3-timeline-point.islander { border-color: var(--fhv3-islander); }

.fhv3-timeline-point:hover,
.fhv3-timeline-point:focus {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 20;
}

.fhv3-timeline-point.fhv3-timeline-top {
    width: 72px;
    height: 72px;
    border-width: 4px;
    border-color: var(--fhv3-clay);
    box-shadow: 0 0 0 4px rgba(196, 167, 125, 0.3), var(--fhv3-shadow-hover);
}

.fhv3-timeline-point img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fhv3-timeline-rank {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--fhv3-clay);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-timeline-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--fhv3-charcoal);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
    z-index: 100;
}

.fhv3-timeline-point:hover .fhv3-timeline-tooltip,
.fhv3-timeline-point:focus .fhv3-timeline-tooltip {
    opacity: 1;
    visibility: visible;
}

.fhv3-tooltip-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-tooltip-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.fhv3-tooltip-pct {
    display: inline-block;
    background: var(--fhv3-forest);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fhv3-timeline-markers {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.fhv3-timeline-markers span {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    color: var(--fhv3-stone);
    font-weight: 500;
}

.fhv3-timeline-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.fhv3-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    color: var(--fhv3-stone);
}

.fhv3-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.fhv3-legend-dot.farmer { background: var(--fhv3-farmer); }
.fhv3-legend-dot.hunter { background: var(--fhv3-hunter); }

/* Insight Callout */
.fhv3-insight-callout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--fhv3-dark-stone);
    padding: 28px 32px;
    border-radius: 16px;
    border-left: 4px solid var(--fhv3-clay);
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-insight-callout > i {
    font-size: 1.5rem;
    color: var(--fhv3-clay);
    flex-shrink: 0;
}

.fhv3-insight-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--fhv3-bone);
}

.fhv3-insight-content strong {
    color: var(--fhv3-ivory);
}

/* ========================================
   SECTION 4: GEOGRAPHY
   ======================================== */
.fhv3-map-wrapper {
    margin-bottom: 48px;
}

.fhv3-map-controls {
    background: var(--fhv3-dark-stone);
    padding: 16px 24px;
    border-radius: 16px 16px 0 0;
    box-shadow: var(--fhv3-shadow-soft);
    margin-bottom: 0;
}

.fhv3-map-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fhv3-map-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    color: var(--fhv3-bone);
    user-select: none;
}

.fhv3-map-toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fhv3-map-toggle-slider {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: var(--fhv3-stone);
    border-radius: 24px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.fhv3-map-toggle-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--fhv3-bone);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fhv3-map-toggle-checkbox:checked + .fhv3-map-toggle-slider {
    background-color: var(--fhv3-forest);
}

.fhv3-map-toggle-checkbox:checked + .fhv3-map-toggle-slider:before {
    transform: translateX(24px);
}

.fhv3-map-toggle-checkbox:focus + .fhv3-map-toggle-slider {
    box-shadow: 0 0 0 3px rgba(74, 93, 72, 0.2);
}

.fhv3-map-toggle-text {
    font-weight: 500;
    color: var(--fhv3-bone);
}

.fhv3-map-legend {
    background: var(--fhv3-dark-stone);
    padding: 16px 24px;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(196, 167, 125, 0.15);
}

.fhv3-legend-items {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.fhv3-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    color: var(--fhv3-stone);
}

.fhv3-legend-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.fhv3-legend-marker.farmer { background: var(--fhv3-farmer); }
.fhv3-legend-marker.hunter { background: var(--fhv3-hunter); }
.fhv3-legend-marker.maritime { background: var(--fhv3-maritime); }
.fhv3-legend-marker.islander { background: var(--fhv3-islander); }

.fhv3-map {
    height: 500px;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--fhv3-shadow-medium);
}

@media (max-width: 768px) {
    .fhv3-map {
        height: 350px;
    }
}

.fhv3-geo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media (max-width: 992px) {
    .fhv3-geo-grid {
        grid-template-columns: 1fr;
    }
}

.fhv3-geo-table-wrapper {
    background: var(--fhv3-dark-stone);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-geo-table-wrapper h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 20px;
}

.fhv3-geo-table-wrapper h4 i {
    color: var(--fhv3-forest);
    margin-right: 8px;
}

.fhv3-geo-table {
    width: 100%;
    border-collapse: collapse;
}

.fhv3-geo-table thead {
    background: var(--fhv3-slate);
}

.fhv3-geo-table th {
    text-align: left;
    padding: 12px 16px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fhv3-stone);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fhv3-geo-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(196, 167, 125, 0.15);
    font-size: 0.95rem;
    color: var(--fhv3-bone);
}

.fhv3-geo-table td.font-weight-semibold {
    color: var(--fhv3-ivory);
    font-weight: 600;
}

.fhv3-geo-table td small {
    color: var(--fhv3-sand);
}

.fhv3-geo-table td strong {
    color: var(--fhv3-ivory);
    font-weight: 600;
}

.fhv3-geo-table td.text-right {
    color: var(--fhv3-bone);
}

.fhv3-geo-table tr:hover {
    background: var(--fhv3-earth-light);
}

.fhv3-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    color: white;
}

.fhv3-type-badge.farmer { background: var(--fhv3-farmer); }
.fhv3-type-badge.hunter { background: var(--fhv3-hunter); }
.fhv3-type-badge.maritime { background: var(--fhv3-maritime); }
.fhv3-type-badge.islander { background: var(--fhv3-islander); }

.fhv3-geo-info {
    background: var(--fhv3-dark-stone);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-geo-info h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 16px;
}

.fhv3-geo-info h4 i {
    color: var(--fhv3-forest);
    margin-right: 8px;
}

.fhv3-geo-info p {
    color: var(--fhv3-stone);
    line-height: 1.7;
    margin-bottom: 24px;
}

.fhv3-geo-stats {
    display: flex;
    gap: 20px;
}

.fhv3-geo-stat {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: var(--fhv3-slate);
    border-radius: 12px;
}

.fhv3-geo-stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fhv3-forest);
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-geo-stat-label {
    font-size: 0.8rem;
    color: var(--fhv3-stone);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   SECTION 5: PATTERNS
   ======================================== */
.fhv3-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .fhv3-charts-grid {
        grid-template-columns: 1fr;
    }
}

.fhv3-chart-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-chart-card h5 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 24px;
}

.fhv3-chart-card h5 i {
    color: var(--fhv3-forest);
    margin-right: 8px;
}

.fhv3-chart {
    height: 280px;
}

/* Ensure AmCharts text is light colored for dark theme */
.fhv3-chart svg text,
.fhv3-chart .am5-label,
.fhv3-chart .am5-axis-label,
.fhv3-chart .am5-legend-label {
    fill: var(--fhv3-bone) !important;
    color: var(--fhv3-bone) !important;
}

.fhv3-interpretation {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--fhv3-shadow-soft);
    margin-bottom: 40px;
}

.fhv3-interpretation h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 32px;
    text-align: center;
}

.fhv3-interpretation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .fhv3-interpretation-grid {
        grid-template-columns: 1fr;
    }
}

.fhv3-interpretation-card {
    padding: 28px;
    border-radius: 16px;
}

.fhv3-interpretation-card.farmer {
    background: var(--fhv3-farmer-light);
    border-left: 4px solid var(--fhv3-farmer);
}

.fhv3-interpretation-card.hunter {
    background: var(--fhv3-hunter-light);
    border-left: 4px solid var(--fhv3-hunter);
}

.fhv3-interp-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.fhv3-interpretation-card.farmer .fhv3-interp-icon {
    background: var(--fhv3-farmer);
    color: white;
}

.fhv3-interpretation-card.hunter .fhv3-interp-icon {
    background: var(--fhv3-hunter);
    color: white;
}

.fhv3-interp-icon i {
    font-size: 1.2rem;
}

.fhv3-interpretation-card h5 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.fhv3-interpretation-card.farmer h5 { color: var(--fhv3-farmer); }
.fhv3-interpretation-card.hunter h5 { color: var(--fhv3-hunter); }

.fhv3-interpretation-card p {
    color: var(--fhv3-bone);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Insights Grid */
.fhv3-insights-grid {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--fhv3-shadow-soft);
    margin-bottom: 40px;
}

.fhv3-insights-grid h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 24px;
}

.fhv3-insights-grid h4 i {
    color: var(--fhv3-clay);
    margin-right: 8px;
}

.fhv3-insights-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .fhv3-insights-list {
        grid-template-columns: 1fr;
    }
}

.fhv3-insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fhv3-insight-item i {
    color: var(--fhv3-forest);
    margin-top: 4px;
    flex-shrink: 0;
}

.fhv3-insight-item span {
    color: var(--fhv3-bone);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Scale Guide */
.fhv3-scale-guide {
    background: var(--fhv3-dark-stone);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-scale-guide h5 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 20px;
}

.fhv3-scale-items {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.fhv3-scale-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fhv3-scale-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.fhv3-scale-badge.high { background: var(--fhv3-forest); }
.fhv3-scale-badge.medium { background: var(--fhv3-clay); }
.fhv3-scale-badge.low { background: var(--fhv3-stone); }
.fhv3-scale-badge.trace { background: #666; color: var(--fhv3-bone); }

.fhv3-scale-item span:last-child {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
}

/* ========================================
   PERCENTILE COMPARISON
   ======================================== */
.fhv3-percentile-comparison {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--fhv3-shadow-soft);
    margin-bottom: 40px;
}

.fhv3-percentile-comparison h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 32px;
    text-align: center;
}

.fhv3-percentile-comparison h4 i {
    color: var(--fhv3-clay);
    margin-right: 8px;
}

.fhv3-percentile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .fhv3-percentile-grid {
        grid-template-columns: 1fr;
    }
}

.fhv3-percentile-card {
    padding: 28px;
    border-radius: 16px;
    background: var(--fhv3-slate);
    border: 2px solid rgba(196, 167, 125, 0.15);
    transition: all 0.3s ease;
}

.fhv3-percentile-card:hover {
    border-color: var(--fhv3-earth);
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-percentile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.fhv3-percentile-header h5 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin: 0;
}

.fhv3-percentile-header i {
    color: var(--fhv3-forest);
}

.fhv3-percentile-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fhv3-forest);
    font-family: 'Inter', -apple-system, sans-serif;
    margin-bottom: 16px;
}

.fhv3-percentile-value sup {
    font-size: 1rem;
    font-weight: 500;
}

.fhv3-percentile-bar {
    height: 12px;
    background: var(--fhv3-stone-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.fhv3-percentile-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fhv3-forest) 0%, var(--fhv3-clay) 100%);
    border-radius: 6px;
    transition: width 0.6s ease;
}

.fhv3-percentile-note {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   TOP CONNECTIONS BENTO GRID
   ======================================== */
.fhv3-connections-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 200px);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 1200px) {
    .fhv3-connections-bento {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(6, 200px);
    }
}

@media (max-width: 768px) {
    .fhv3-connections-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.fhv3-featured-connection {
    grid-column: span 6;
    grid-row: span 2;
    background: var(--fhv3-dark-stone);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--fhv3-shadow-medium);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

@media (max-width: 1200px) {
    .fhv3-featured-connection {
        grid-column: span 6;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .fhv3-featured-connection {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 400px;
    }
}

.fhv3-featured-connection:hover {
    transform: translateY(-8px);
    box-shadow: var(--fhv3-shadow-hover);
}

.fhv3-featured-portrait {
    width: 100%;
    height: 60%;
    overflow: hidden;
    position: relative;
}

.fhv3-featured-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fhv3-featured-connection:hover .fhv3-featured-portrait img {
    transform: scale(1.1);
}

.fhv3-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fhv3-forest);
}

.fhv3-featured-content {
    padding: 28px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fhv3-featured-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--fhv3-stone);
    font-size: 0.9rem;
}

.fhv3-connections-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 200px);
    gap: 24px;
}

@media (max-width: 1200px) {
    .fhv3-connections-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(8, 200px);
    }
}

@media (max-width: 768px) {
    .fhv3-connections-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.fhv3-connection-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--fhv3-shadow-soft);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.fhv3-connection-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-connection-portrait {
    width: 100%;
    height: 70%;
    overflow: hidden;
    position: relative;
}

.fhv3-connection-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fhv3-connection-card:hover .fhv3-connection-portrait img {
    transform: scale(1.08);
}

.fhv3-connection-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fhv3-forest);
}

.fhv3-connection-info {
    padding: 16px;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fhv3-connection-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.3;
}

.fhv3-connection-location {
    color: var(--fhv3-stone);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fhv3-connection-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, sans-serif;
    margin-top: 8px;
}

.fhv3-connection-type.farmer {
    background: var(--fhv3-farmer-light);
    color: var(--fhv3-farmer);
}

.fhv3-connection-type.hunter {
    background: var(--fhv3-hunter-light);
    color: var(--fhv3-hunter);
}

.fhv3-connection-type.maritime {
    background: var(--fhv3-maritime-light);
    color: var(--fhv3-maritime);
}

.fhv3-connection-type.islander {
    background: var(--fhv3-islander-light);
    color: var(--fhv3-islander);
}

/* ========================================
   BENTO GRID (VikingV2 Style)
   ======================================== */
.fhv3-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.fhv3-bento-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--fhv3-dark-stone);
    border: 1px solid rgba(196, 167, 125, 0.15);
}

.fhv3-bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.fhv3-bento-first {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 400px;
}

.fhv3-bento-large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 400px;
}

.fhv3-bento-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.fhv3-bento-card:hover .fhv3-bento-bg {
    opacity: 0.5;
}

.fhv3-bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(21, 18, 16, 0.3) 50%,
        rgba(21, 18, 16, 0.9) 100%
    );
}

.fhv3-bento-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fhv3-bento-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.fhv3-bento-rank {
    background: var(--fhv3-clay);
    color: var(--fhv3-obsidian);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(196, 167, 125, 0.3);
    text-shadow: none;
}

.fhv3-bento-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.fhv3-bento-type.farmer {
    background: rgba(74, 103, 65, 0.85);
    color: var(--fhv3-ivory);
}

.fhv3-bento-type.hunter {
    background: rgba(139, 90, 43, 0.85);
    color: var(--fhv3-ivory);
}

.fhv3-bento-type.maritime {
    background: rgba(45, 125, 154, 0.85);
    color: var(--fhv3-ivory);
}

.fhv3-bento-type.islander {
    background: rgba(123, 93, 173, 0.85);
    color: var(--fhv3-ivory);
}

.fhv3-bento-era {
    background: rgba(196, 167, 125, 0.85);
    color: var(--fhv3-obsidian);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(196, 167, 125, 0.4);
    text-shadow: none;
}

.fhv3-bento-info {
    flex: 1;
}

.fhv3-bento-name {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.fhv3-bento-meta {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.fhv3-bento-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fhv3-clay);
    margin-bottom: 8px;
}

.fhv3-bento-description {
    color: var(--fhv3-stone);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 8px;
    opacity: 0.9;
}

.fhv3-bento-cta {
    margin-top: 16px;
}

.fhv3-bento-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fhv3-clay);
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.fhv3-bento-card:hover .fhv3-bento-view {
    opacity: 0.8;
}

/* Responsive adjustments for bento grid */
@media (max-width: 992px) {
    .fhv3-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fhv3-bento-first {
        grid-column: span 2;
    }
    .fhv3-bento-large {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .fhv3-bento-grid {
        grid-template-columns: 1fr;
    }
    .fhv3-bento-first {
        grid-column: span 1;
    }
    .fhv3-bento-large {
        grid-column: span 1;
    }
}

/* ========================================
   HAPLOGROUP MATCHES
   ======================================== */
.fhv3-haplogroup-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.fhv3-tab-btn {
    padding: 14px 28px;
    background: var(--fhv3-dark-stone);
    border: 2px solid rgba(196, 167, 125, 0.15);
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fhv3-stone);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fhv3-tab-btn:hover {
    border-color: var(--fhv3-earth);
    color: var(--fhv3-ivory);
}

.fhv3-tab-btn.active {
    background: var(--fhv3-gradient-earth);
    border-color: var(--fhv3-earth);
    color: white;
}

.fhv3-tab-content {
    display: none;
}

.fhv3-tab-content.active {
    display: block;
}

.fhv3-haplogroup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.fhv3-haplogroup-card {
    background: var(--fhv3-dark-stone);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--fhv3-shadow-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fhv3-haplogroup-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fhv3-shadow-medium);
    border-color: var(--fhv3-earth);
}

.fhv3-haplogroup-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid rgba(196, 167, 125, 0.15);
}

.fhv3-haplogroup-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fhv3-haplogroup-info {
    text-align: center;
}

.fhv3-haplogroup-match-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, sans-serif;
    margin-bottom: 12px;
}

.fhv3-haplogroup-match-type.exact {
    background: var(--fhv3-farmer-light);
    color: var(--fhv3-farmer);
}

.fhv3-haplogroup-match-type.subclade {
    background: var(--fhv3-hunter-light);
    color: var(--fhv3-hunter);
}

.fhv3-haplogroup-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-haplogroup-sample {
    font-size: 0.9rem;
    color: var(--fhv3-stone);
    margin-bottom: 8px;
}

.fhv3-haplogroup-date,
.fhv3-haplogroup-location {
    font-size: 0.85rem;
    color: var(--fhv3-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.fhv3-no-matches {
    text-align: center;
    color: var(--fhv3-stone);
    font-size: 1rem;
    padding: 60px 20px;
}

/* ========================================
   CULTURAL PERIODS
   ======================================== */
.fhv3-era-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

@media (min-width: 1200px) {
    .fhv3-era-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fhv3-era-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--fhv3-shadow-soft);
    border-left: 4px solid var(--fhv3-clay);
    transition: all 0.3s ease;
}

.fhv3-era-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fhv3-shadow-medium);
    border-left-color: var(--fhv3-earth);
}

.fhv3-era-header {
    margin-bottom: 20px;
}

.fhv3-era-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-era-dates {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-era-description {
    color: var(--fhv3-bone);
    line-height: 1.8;
    margin-bottom: 20px;
}

.fhv3-era-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.fhv3-era-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-era-stat i {
    color: var(--fhv3-earth);
}

/* Era Samples Gallery */
.fhv3-era-samples-gallery {
    margin-top: 1.5rem;
}

.fhv3-era-samples-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-era-samples-title i {
    color: var(--fhv3-clay);
}

.fhv3-era-samples-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.75rem 0.5rem 1rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--fhv3-sand) var(--fhv3-obsidian);
}

.fhv3-era-samples-scroll::-webkit-scrollbar {
    height: 6px;
}

.fhv3-era-samples-scroll::-webkit-scrollbar-track {
    background: var(--fhv3-obsidian);
    border-radius: 3px;
}

.fhv3-era-samples-scroll::-webkit-scrollbar-thumb {
    background: var(--fhv3-sand);
    border-radius: 3px;
}

.fhv3-era-sample-thumb {
    flex-shrink: 0;
    width: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.fhv3-era-sample-thumb:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.fhv3-era-sample-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--fhv3-stone-light);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

.fhv3-era-sample-thumb:hover img {
    border-color: var(--fhv3-clay);
    box-shadow: 0 4px 12px rgba(196, 167, 125, 0.4);
    transform: scale(1.05);
}

.fhv3-era-sample-thumb-name {
    font-size: 0.6875rem;
    color: var(--fhv3-bone);
    text-align: center;
    margin-top: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-era-sample-more {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fhv3-dark-stone);
    border-radius: 8px;
    border: 2px dashed var(--fhv3-stone);
    color: var(--fhv3-stone);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Responsive styles for era samples gallery */
@media (max-width: 768px) {
    .fhv3-era-samples-gallery {
        margin-top: 1.25rem;
    }
    
    .fhv3-era-samples-title {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }
    
    .fhv3-era-samples-scroll {
        gap: 0.75rem;
    }
    
    .fhv3-era-sample-thumb {
        width: 80px;
    }
    
    .fhv3-era-sample-thumb img {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }
    
    .fhv3-era-sample-thumb-name {
        font-size: 0.625rem;
    }
    
    .fhv3-era-sample-more {
        width: 80px;
        height: 80px;
        font-size: 0.6875rem;
    }
    
    /* Responsive styles for publication samples gallery */
    .fhv3-publication-samples-gallery {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .fhv3-publication-samples-title {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }
    
    .fhv3-publication-samples-scroll {
        gap: 0.75rem;
    }
    
    .fhv3-publication-sample-thumb {
        width: 80px;
    }
    
    .fhv3-publication-sample-thumb img {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }
    
    .fhv3-publication-sample-thumb-name {
        font-size: 0.625rem;
    }
    
    .fhv3-publication-sample-more {
        width: 80px;
        height: 80px;
        font-size: 0.6875rem;
    }
}

/* ========================================
   REGIONAL BREAKDOWN
   ======================================== */
.fhv3-regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.fhv3-regional-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--fhv3-shadow-soft);
    transition: all 0.3s ease;
}

.fhv3-regional-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-regional-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 24px;
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fhv3-regional-name i {
    color: var(--fhv3-forest);
}

.fhv3-regional-chart {
    margin-bottom: 20px;
}

.fhv3-regional-bar {
    height: 32px;
    background: var(--fhv3-slate);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    position: relative;
}

.fhv3-regional-segment {
    height: 100%;
    transition: width 0.6s ease;
}

.fhv3-regional-segment.farmer {
    background: var(--fhv3-farmer);
}

.fhv3-regional-segment.hunter {
    background: var(--fhv3-hunter);
}

.fhv3-regional-segment.steppe {
    background: var(--fhv3-clay);
}

.fhv3-regional-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.fhv3-regional-detail-item {
    text-align: center;
}

.fhv3-regional-label {
    display: block;
    font-size: 0.8rem;
    color: var(--fhv3-stone);
    margin-bottom: 4px;
    font-family: 'Inter', -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fhv3-regional-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fhv3-ivory);
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-regional-populations {
    font-size: 0.9rem;
    color: var(--fhv3-stone);
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid rgba(196, 167, 125, 0.15);
}

/* ========================================
   ARCHAEOLOGICAL SITES
   ======================================== */
.fhv3-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

@media (min-width: 1200px) {
    .fhv3-sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fhv3-site-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--fhv3-shadow-soft);
    transition: all 0.3s ease;
}

.fhv3-site-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-site-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.fhv3-site-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fhv3-site-card:hover .fhv3-site-image img {
    transform: scale(1.1);
}

.fhv3-site-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(42, 37, 32, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    font-family: 'Inter', -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fhv3-site-content {
    padding: 24px;
}

.fhv3-site-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-site-location,
.fhv3-site-dates {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fhv3-site-description {
    color: var(--fhv3-bone);
    line-height: 1.7;
    margin: 16px 0;
}

.fhv3-site-significance {
    padding: 16px;
    background: var(--fhv3-slate);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--fhv3-bone);
    line-height: 1.6;
}

.fhv3-site-significance strong {
    color: var(--fhv3-ivory);
}

/* ========================================
   GENETIC CONTINUITY
   ======================================== */
.fhv3-continuity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.fhv3-continuity-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--fhv3-shadow-soft);
    transition: all 0.3s ease;
}

.fhv3-continuity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-continuity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fhv3-continuity-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-continuity-score {
    padding: 6px 14px;
    background: var(--fhv3-gradient-earth);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-continuity-region {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fhv3-continuity-description {
    color: var(--fhv3-bone);
    line-height: 1.7;
    margin-bottom: 24px;
}

.fhv3-continuity-breakdown {
    margin-bottom: 16px;
}

.fhv3-continuity-bar {
    height: 24px;
    background: var(--fhv3-slate);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    margin-bottom: 12px;
}

.fhv3-continuity-segment {
    height: 100%;
    transition: width 0.6s ease;
}

.fhv3-continuity-segment.farmer {
    background: var(--fhv3-farmer);
}

.fhv3-continuity-segment.hunter {
    background: var(--fhv3-hunter);
}

.fhv3-continuity-segment.steppe {
    background: var(--fhv3-clay);
}

.fhv3-continuity-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--fhv3-stone);
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-continuity-note {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fhv3-continuity-note i {
    color: var(--fhv3-clay);
    margin-top: 2px;
}

/* ========================================
   SCIENTIFIC PUBLICATIONS
   ======================================== */
.fhv3-publications-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.fhv3-publication-item {
    background: var(--fhv3-dark-stone);
    border: 1px solid rgba(201, 160, 48, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fhv3-publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(201, 160, 48, 0.4);
}

/* Publication Header */
.fhv3-publication-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fhv3-publication-icon {
    width: 40px;
    height: 40px;
    background: rgba(201, 160, 48, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fhv3-clay);
    flex-shrink: 0;
}

.fhv3-publication-icon i {
    font-size: 1.1rem;
}

.fhv3-publication-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.fhv3-publication-journal {
    font-size: 0.85rem;
    color: var(--fhv3-clay);
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-publication-date {
    font-size: 0.8rem;
    color: var(--fhv3-stone);
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Publication Title */
.fhv3-publication-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Publication Authors */
.fhv3-publication-authors {
    font-size: 0.9rem;
    color: var(--fhv3-stone);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-publication-authors i {
    color: var(--fhv3-clay);
    margin-right: 0.5rem;
}

/* Publication Footer (Avatars + Links) */
.fhv3-publication-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

/* Publication Avatar Stack */
.fhv3-publication-avatars {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.fhv3-publication-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--fhv3-clay);
    overflow: hidden;
    cursor: pointer;
    margin-left: -12px;
    box-shadow: 0 0 8px rgba(201, 160, 48, 0.4);
    transition: all 0.2s ease;
    position: relative;
    background: var(--fhv3-clay);
    flex-shrink: 0;
}

.fhv3-publication-avatar:first-child {
    margin-left: 0;
}

.fhv3-publication-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fhv3-publication-avatar:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 0 12px rgba(201, 160, 48, 0.8);
    border-color: rgba(255, 255, 255, 0.9);
}

.fhv3-publication-avatar:focus {
    outline: 2px solid var(--fhv3-clay);
    outline-offset: 2px;
}

.fhv3-publication-avatar-count {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fhv3-clay);
    color: var(--fhv3-obsidian);
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -12px;
    border: 2px solid var(--fhv3-obsidian);
    box-shadow: 0 0 8px rgba(201, 160, 48, 0.4);
    cursor: default;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Publication Links */
.fhv3-publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.fhv3-publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(201, 160, 48, 0.1);
    color: var(--fhv3-clay);
    border: 1px solid rgba(201, 160, 48, 0.3);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-publication-link:hover {
    background: var(--fhv3-clay);
    color: var(--fhv3-obsidian);
    border-color: var(--fhv3-clay);
    text-decoration: none;
}

.fhv3-publication-link i {
    font-size: 0.8rem;
}

/* Responsive styles for publications */
@media (max-width: 768px) {
    .fhv3-publications-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fhv3-publication-item {
        padding: 1.5rem;
    }
    
    .fhv3-publication-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .fhv3-publication-links {
        width: 100%;
        justify-content: flex-start;
    }
    
    .fhv3-publication-link {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
}

.fhv3-publication-samples-gallery {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fhv3-stone);
}

.fhv3-publication-samples-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-publication-samples-title .dna-icon {
    color: var(--fhv3-clay);
}

.fhv3-publication-samples-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.75rem 0.5rem 1rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--fhv3-sand) var(--fhv3-obsidian);
}

.fhv3-publication-samples-scroll::-webkit-scrollbar {
    height: 6px;
}

.fhv3-publication-samples-scroll::-webkit-scrollbar-track {
    background: var(--fhv3-obsidian);
    border-radius: 3px;
}

.fhv3-publication-samples-scroll::-webkit-scrollbar-thumb {
    background: var(--fhv3-sand);
    border-radius: 3px;
}

.fhv3-publication-sample-thumb {
    flex-shrink: 0;
    width: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.fhv3-publication-sample-thumb:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.fhv3-publication-sample-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--fhv3-stone-light);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

.fhv3-publication-sample-thumb:hover img {
    border-color: var(--fhv3-clay);
    box-shadow: 0 4px 12px rgba(196, 167, 125, 0.4);
    transform: scale(1.05);
}

.fhv3-publication-sample-thumb-name {
    font-size: 0.6875rem;
    color: var(--fhv3-bone);
    text-align: center;
    margin-top: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-publication-sample-more {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fhv3-dark-stone);
    border-radius: 8px;
    border: 2px dashed var(--fhv3-stone);
    color: var(--fhv3-stone);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ========================================
   NEOLITHIC NARRATIVE
   ======================================== */
.fhv3-narrative-content {
    max-width: 800px;
    margin: 0 auto;
}

.fhv3-narrative-text {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-narrative-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--fhv3-bone);
    margin-bottom: 24px;
}

.fhv3-narrative-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   ACHIEVEMENTS
   ======================================== */
.fhv3-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.fhv3-achievement-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--fhv3-shadow-soft);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fhv3-achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fhv3-shadow-medium);
    border-color: var(--fhv3-clay);
}

.fhv3-achievement-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--fhv3-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--fhv3-clay);
}

.fhv3-achievement-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-achievement-description {
    color: var(--fhv3-stone);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.fhv3-achievement-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.fhv3-achievement-badge.gold {
    background: var(--fhv3-clay);
}

.fhv3-achievement-badge.silver {
    background: var(--fhv3-stone);
}

.fhv3-achievement-badge.bronze {
    background: var(--fhv3-earth);
}

/* ========================================
   EXPORT TOOLBAR
   ======================================== */
.fhv3-hero-export {
    margin-top: 40px;
    opacity: 0;
    animation: fhv3FadeIn 1.2s ease-out 2.1s forwards;
}

.fhv3-export-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fhv3-export-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fhv3-export-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.fhv3-export-btn i {
    font-size: 1rem;
}

/* ========================================
   ANIMATED TIMELINE MAP
   ======================================== */

/* Timeline Map Container */
.fhv3-timeline-map-container {
    position: relative;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

/* Year Display (top-left overlay) */
.fhv3-timeline-year {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1000;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--fhv3-bone);
    background: rgba(21, 18, 16, 0.75);
    border: 1px solid var(--fhv3-clay);
    border-radius: 8px;
    padding: 6px 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

/* Research Notes Button (top-right overlay) */
.fhv3-research-notes-btn {
    position: absolute;
    top: 16px;
    right: 54px;
    z-index: 1000;
    background: rgba(21, 18, 16, 0.75);
    border: 1px solid rgba(196, 167, 125, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fhv3-clay);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
}

.fhv3-research-notes-btn:hover {
    background: rgba(21, 18, 16, 0.9);
    border-color: var(--fhv3-clay);
}

/* Samples Toggle (top-right below research) */
.fhv3-samples-toggle {
    position: absolute;
    top: 60px;
    right: 54px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(21, 18, 16, 0.75);
    border: 1px solid rgba(196, 167, 125, 0.2);
    border-radius: 16px;
    padding: 4px 10px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fhv3-samples-toggle input { display: none; }

.fhv3-samples-toggle-track {
    width: 28px;
    height: 14px;
    background: rgba(196, 188, 178, 0.3);
    border-radius: 7px;
    position: relative;
    transition: background 0.2s;
}

.fhv3-samples-toggle-track::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fhv3-stone);
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.fhv3-samples-toggle input:checked + .fhv3-samples-toggle-track {
    background: var(--fhv3-forest);
}

.fhv3-samples-toggle input:checked + .fhv3-samples-toggle-track::after {
    transform: translateX(14px);
    background: var(--fhv3-bone);
}

.fhv3-samples-toggle-label {
    font-size: 0.7rem;
    color: var(--fhv3-stone);
    font-weight: 500;
}

/* Collapsible Legend Panel */
.fhv3-timeline-legend {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1000;
    top: 68px;
    background: rgba(30, 26, 23, 0.88);
    border: 1px solid rgba(196, 167, 125, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    max-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.fhv3-timeline-legend.collapsed .fhv3-legend-body {
    display: none;
}

.fhv3-timeline-legend.collapsed {
    max-height: 36px;
    padding: 6px 10px;
}

.fhv3-legend-toggle {
    background: none;
    border: none;
    color: var(--fhv3-clay);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    display: block;
    margin-bottom: 6px;
}

.fhv3-legend-section h6 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--fhv3-stone);
    margin: 8px 0 4px;
    text-transform: uppercase;
}

.fhv3-legend-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 0.72rem;
    color: var(--fhv3-bone);
}

.fhv3-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.fhv3-legend-icon {
    font-size: 0.6rem;
    width: 12px;
    text-align: center;
    color: var(--fhv3-clay);
}

.fhv3-legend-empty {
    font-size: 0.7rem;
    color: rgba(196, 188, 178, 0.4);
    font-style: italic;
    padding: 2px 0;
}

/* Milestone Event Ticker */
.fhv3-milestone-ticker {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(21, 18, 16, 0.82);
    border: 1px solid rgba(196, 167, 125, 0.15);
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--fhv3-bone);
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fhv3-milestone-ticker.visible {
    opacity: 1;
}

/* Timeline Controls Bar */
.fhv3-timeline-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--fhv3-dark-stone);
    padding: 12px 20px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(196, 167, 125, 0.1);
}

.fhv3-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--fhv3-clay);
    background: transparent;
    color: var(--fhv3-clay);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
}

.fhv3-play-btn:hover {
    background: rgba(196, 167, 125, 0.15);
    box-shadow: 0 0 12px rgba(196, 167, 125, 0.3);
}

.fhv3-time-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(196, 188, 178, 0.2);
    border-radius: 2px;
    outline: none;
    direction: rtl;
}

.fhv3-time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--fhv3-clay);
    cursor: pointer;
    border: 2px solid var(--fhv3-dark-stone);
    box-shadow: 0 0 4px rgba(196, 167, 125, 0.4);
}

.fhv3-time-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--fhv3-clay);
    cursor: pointer;
    border: 2px solid var(--fhv3-dark-stone);
}

.fhv3-time-display {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fhv3-clay);
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
}

.fhv3-speed-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.fhv3-speed-btn {
    background: transparent;
    border: 1px solid rgba(196, 167, 125, 0.25);
    border-radius: 12px;
    color: var(--fhv3-stone);
    font-size: 0.7rem;
    padding: 3px 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.fhv3-speed-btn.active,
.fhv3-speed-btn:hover {
    background: rgba(196, 167, 125, 0.2);
    color: var(--fhv3-clay);
    border-color: var(--fhv3-clay);
}

.fhv3-playback-status {
    font-size: 0.7rem;
    color: rgba(196, 188, 178, 0.5);
    min-width: 48px;
    text-align: center;
}

/* Disclaimer */
.fhv3-timeline-disclaimer {
    font-size: 0.72rem;
    font-style: italic;
    color: rgba(196, 188, 178, 0.45);
    text-align: center;
    margin: 10px 0 0;
}

/* Wavefront Pulse Animation */
.fhv3-wavefront-container {
    background: none !important;
    border: none !important;
}

.fhv3-wavefront {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 6px currentColor;
}

.fhv3-wavefront::before,
.fhv3-wavefront::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
    border-color: inherit;
    background: inherit;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.fhv3-wavefront::before {
    animation: fhv3-pulse 1.5s ease-out infinite;
}

.fhv3-wavefront::after {
    animation: fhv3-pulse 1.5s ease-out 0.5s infinite;
}

@@keyframes fhv3-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Culture Labels */
.fhv3-culture-label {
    background: none !important;
    border: none !important;
}

.fhv3-culture-label span {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(21, 18, 16, 0.7);
    border-left: 3px solid;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fhv3-bone);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fhv3-culture-label small {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--fhv3-stone);
    margin-top: 1px;
}

/* Key Archaeological Site Markers */
.fhv3-site-marker {
    background: none !important;
    border: none !important;
}

.fhv3-site-diamond {
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(196, 167, 125, 0.5);
    border: 1.5px solid var(--fhv3-clay);
    transform: rotate(45deg);
    border-radius: 2px;
}

.fhv3-site-tooltip {
    background: rgba(21, 18, 16, 0.9) !important;
    border: 1px solid rgba(196, 167, 125, 0.2) !important;
    border-radius: 8px !important;
    color: var(--fhv3-bone) !important;
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
}

.fhv3-site-tooltip::before {
    border-top-color: rgba(196, 167, 125, 0.2) !important;
}

/* Research Notes Drawer */
.fhv3-research-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
}

.fhv3-research-drawer.open {
    pointer-events: auto;
    visibility: visible;
}

.fhv3-research-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fhv3-research-drawer.open .fhv3-research-drawer-backdrop {
    opacity: 1;
}

.fhv3-research-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 90vw;
    height: 100vh;
    background: var(--fhv3-slate);
    border-left: 1px solid rgba(196, 167, 125, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.fhv3-research-drawer.open .fhv3-research-drawer-panel {
    transform: translateX(0);
}

.fhv3-research-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(196, 167, 125, 0.15);
}

.fhv3-research-drawer-header h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--fhv3-bone);
    font-weight: 600;
}

.fhv3-research-close {
    background: none;
    border: none;
    color: var(--fhv3-stone);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.fhv3-research-drawer-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.fhv3-research-section {
    margin-bottom: 24px;
}

.fhv3-research-section h6 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fhv3-clay);
    margin-bottom: 10px;
}

.fhv3-research-section p {
    font-size: 0.85rem;
    color: var(--fhv3-stone);
    line-height: 1.6;
    margin-bottom: 8px;
}

.fhv3-evidence-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.fhv3-evidence-chip {
    background: rgba(196, 167, 125, 0.12);
    border: 1px solid rgba(196, 167, 125, 0.25);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.72rem;
    color: var(--fhv3-bone);
    text-transform: capitalize;
}

.fhv3-confidence-badge {
    font-size: 0.78rem;
    color: var(--fhv3-stone);
    margin-bottom: 8px;
}

.fhv3-uncertainty-note {
    font-size: 0.78rem;
    color: rgba(196, 188, 178, 0.6);
}

.fhv3-sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fhv3-sources-list li {
    font-size: 0.78rem;
    color: var(--fhv3-stone);
    padding: 6px 0;
    border-bottom: 1px solid rgba(196, 167, 125, 0.08);
    line-height: 1.5;
}

.fhv3-sources-list a {
    color: var(--fhv3-clay);
    text-decoration: none;
}

.fhv3-sources-list a:hover {
    text-decoration: underline;
}

/* Popup link styling for dark map */
.fhv3-popup-research-link {
    text-decoration: none;
}

.fhv3-popup-research-link:hover {
    text-decoration: underline;
}

/* Leaflet popup dark theme override for this map */
.fhv3-timeline-map-container .leaflet-popup-content-wrapper {
    background: rgba(30, 26, 23, 0.95);
    border: 1px solid rgba(196, 167, 125, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.fhv3-timeline-map-container .leaflet-popup-tip {
    background: rgba(30, 26, 23, 0.95);
    border: 1px solid rgba(196, 167, 125, 0.2);
}

.fhv3-timeline-map-container .leaflet-popup-close-button {
    color: var(--fhv3-stone) !important;
}

/* Responsive: Mobile */
@@media (max-width: 768px) {
    .fhv3-timeline-year {
        font-size: 1.1rem;
        padding: 4px 10px;
    }

    .fhv3-timeline-legend {
        display: none;
    }

    .fhv3-timeline-controls {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 14px;
    }

    .fhv3-speed-controls {
        display: none;
    }

    .fhv3-playback-status {
        display: none;
    }

    .fhv3-time-display {
        font-size: 0.85rem;
        min-width: 70px;
    }

    .fhv3-milestone-ticker {
        font-size: 0.68rem;
        padding: 4px 12px;
    }

    .fhv3-research-drawer-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: 80vh;
        border-radius: 24px 24px 0 0;
        border-left: none;
        border-top: 1px solid rgba(196, 167, 125, 0.15);
        transform: translateY(100%);
    }

    .fhv3-research-drawer.open .fhv3-research-drawer-panel {
        transform: translateY(0);
    }

    .fhv3-samples-toggle {
        top: 16px;
        right: 54px;
    }

    .fhv3-research-notes-btn {
        right: 54px;
        top: 16px;
    }
}

/* ========================================
   ERA DETAIL DRAWER
   ======================================== */
.fhv3-era-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    pointer-events: none;
    visibility: hidden;
    display: none;
}

.fhv3-era-drawer.open {
    pointer-events: auto;
    visibility: visible;
}

.fhv3-era-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fhv3-era-drawer.open .fhv3-era-drawer-backdrop {
    opacity: 1;
}

.fhv3-era-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    max-width: 760px;
    min-width: 400px;
    height: 100vh;
    background: var(--fhv3-slate);
    border-left: 1px solid rgba(196, 167, 125, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--fhv3-shadow-strong);
}

.fhv3-era-drawer.open .fhv3-era-drawer-panel {
    transform: translateX(0);
}

.fhv3-era-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(135deg, var(--fhv3-clay) 0%, var(--fhv3-earth) 100%);
    border-bottom: 1px solid rgba(196, 167, 125, 0.2);
    flex-shrink: 0;
}

.fhv3-era-drawer-header-content {
    flex: 1;
}

.fhv3-era-drawer-title {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: var(--fhv3-bone);
    font-weight: 700;
    line-height: 1.3;
}

.fhv3-era-drawer-dates {
    display: block;
    font-size: 0.9rem;
    color: var(--fhv3-stone);
    font-weight: 500;
}

.fhv3-era-drawer-close {
    background: none;
    border: none;
    color: var(--fhv3-bone);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    margin-left: 16px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.fhv3-era-drawer-close:hover {
    opacity: 1;
}

.fhv3-era-drawer-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    background: var(--fhv3-dark-stone);
}

.fhv3-era-drawer-image-wrap {
    width: 180px;
    height: 180px;
    max-height: none;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 24px;
    border: 3px solid rgba(196, 167, 125, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    background: var(--fhv3-slate);
}

.fhv3-era-drawer-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fhv3-era-drawer-stats {
    display: flex;
    gap: 24px;
    padding: 16px;
    background: var(--fhv3-slate);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(196, 167, 125, 0.15);
}

.fhv3-era-drawer-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fhv3-stone);
    font-size: 0.9rem;
}

.fhv3-era-drawer-stat .dna-icon {
    color: var(--fhv3-clay);
}

.fhv3-era-drawer-section {
    margin-bottom: 32px;
}

.fhv3-era-drawer-section-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fhv3-clay);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fhv3-era-drawer-sample-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fhv3-stone);
    margin-left: auto;
}

.fhv3-era-drawer-description {
    color: var(--fhv3-stone);
    line-height: 1.7;
    font-size: 0.95rem;
}

.fhv3-era-drawer-description p {
    margin-bottom: 12px;
}

.fhv3-era-drawer-description p:last-child {
    margin-bottom: 0;
}

.fhv3-era-drawer-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.fhv3-era-drawer-metadata-item {
    padding: 12px;
    background: var(--fhv3-slate);
    border-radius: 8px;
    border: 1px solid rgba(196, 167, 125, 0.1);
}

.fhv3-era-drawer-metadata-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fhv3-clay);
    margin-bottom: 4px;
}

.fhv3-era-drawer-metadata-value {
    font-size: 0.9rem;
    color: var(--fhv3-stone);
    line-height: 1.4;
}

.fhv3-era-drawer-samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
}

.fhv3-era-drawer-sample-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-era-drawer-sample-thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-era-drawer-sample-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fhv3-era-drawer-sample-thumb-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--fhv3-bone);
    font-size: 0.7rem;
    padding: 8px 4px 4px;
    text-align: center;
    font-weight: 500;
}

.fhv3-era-detail-btn {
    margin-top: 16px;
    background: var(--fhv3-slate);
    border: 1px solid rgba(196, 167, 125, 0.3);
    color: var(--fhv3-clay);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.fhv3-era-detail-btn:hover {
    background: var(--fhv3-clay-light);
    border-color: var(--fhv3-clay);
    color: var(--fhv3-bone);
    transform: translateY(-2px);
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-era-detail-btn .dna-icon {
    color: inherit;
}

/* Body scroll lock */
body.fhv3-era-drawer-open {
    overflow: hidden;
}

/* Mobile styles */
@media (max-width: 768px) {
    .fhv3-era-drawer-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 85vh;
        border-radius: 24px 24px 0 0;
        border-left: none;
        border-top: 1px solid rgba(196, 167, 125, 0.15);
        transform: translateY(100%);
    }

    .fhv3-era-drawer.open .fhv3-era-drawer-panel {
        transform: translateY(0);
    }

    .fhv3-era-drawer-header {
        padding: 20px;
    }

    .fhv3-era-drawer-title {
        font-size: 1.25rem;
    }

    .fhv3-era-drawer-body {
        padding: 20px;
    }

    .fhv3-era-drawer-image-wrap {
        width: 140px;
        height: 140px;
    }

    .fhv3-era-drawer-stats {
        flex-direction: column;
        gap: 12px;
    }

    .fhv3-era-drawer-samples-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 12px;
    }
}

/* Print: hide interactive elements */
@@media print {
    .fhv3-timeline-controls,
    .fhv3-timeline-legend,
    .fhv3-timeline-year,
    .fhv3-milestone-ticker,
    .fhv3-research-notes-btn,
    .fhv3-samples-toggle,
    .fhv3-timeline-disclaimer,
    .fhv3-research-drawer,
    .fhv3-era-drawer {
        display: none !important;
    }
}

/* ========================================
   SECTION 6: EXPLORER
   ======================================== */
.fhv3-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: var(--fhv3-dark-stone);
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
    background: var(--fhv3-slate);
    padding: 12px 20px;
    border-radius: 50px;
}

.fhv3-search-box i {
    color: var(--fhv3-stone);
}

.fhv3-search-box input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.95rem;
    color: var(--fhv3-bone);
    font-family: 'Inter', -apple-system, sans-serif;
}

.fhv3-search-box input:focus {
    outline: none;
}

.fhv3-search-box input::placeholder {
    color: var(--fhv3-stone);
}

.fhv3-filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fhv3-filter-select {
    padding: 10px 16px;
    border: 2px solid rgba(196, 167, 125, 0.15);
    border-radius: 50px;
    background: var(--fhv3-dark-stone);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    color: var(--fhv3-bone);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fhv3-filter-select:hover,
.fhv3-filter-select:focus {
    border-color: var(--fhv3-earth);
    outline: none;
}

.fhv3-results-count {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, sans-serif;
    margin-left: auto;
}

/* Population Cards Grid */
.fhv3-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.fhv3-population-card {
    background: var(--fhv3-dark-stone);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--fhv3-shadow-soft);
    transition: all 0.4s ease;
    cursor: pointer;
}

.fhv3-population-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fhv3-shadow-hover);
}

.fhv3-card-portrait {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.fhv3-card-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.fhv3-population-card:hover .fhv3-card-portrait img {
    transform: scale(1.08);
}

.fhv3-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.fhv3-card-type-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.fhv3-card-type-indicator.farmer { background: var(--fhv3-farmer); }
.fhv3-card-type-indicator.hunter { background: var(--fhv3-hunter); }
.fhv3-card-type-indicator.maritime { background: var(--fhv3-maritime); }
.fhv3-card-type-indicator.islander { background: var(--fhv3-islander); }

.fhv3-card-body {
    padding: 20px;
}

.fhv3-card-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    color: white;
    margin-bottom: 12px;
}

.fhv3-card-type.farmer { background: var(--fhv3-farmer); }
.fhv3-card-type.hunter { background: var(--fhv3-hunter); }
.fhv3-card-type.maritime { background: var(--fhv3-maritime); }
.fhv3-card-type.islander { background: var(--fhv3-islander); }

.fhv3-card-name {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 12px;
}

.fhv3-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.fhv3-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fhv3-stone);
    font-size: 0.85rem;
}

.fhv3-card-meta i {
    color: var(--fhv3-earth);
    width: 14px;
}

.fhv3-card-description {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   SECTION 7: FAQ
   ======================================== */
.fhv3-faq-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.fhv3-faq-item {
    background: var(--fhv3-dark-stone);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: var(--fhv3-dark-stone);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.fhv3-faq-question:hover {
    background: var(--fhv3-slate);
}

.fhv3-faq-question span {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
}

.fhv3-faq-question i {
    color: var(--fhv3-earth);
    transition: transform 0.3s ease;
}

.fhv3-faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.fhv3-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.fhv3-faq-answer.show {
    max-height: 1000px;
}

.fhv3-faq-answer p {
    padding: 0 28px 24px;
    margin: 0;
    color: var(--fhv3-stone);
    line-height: 1.8;
}

.fhv3-faq-answer strong {
    color: var(--fhv3-ivory);
}

/* Methodology Grid */
.fhv3-methodology {
    padding: 0 28px 24px;
}

.fhv3-methodology > p {
    margin-bottom: 20px;
    color: var(--fhv3-stone);
}

.fhv3-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .fhv3-method-grid {
        grid-template-columns: 1fr;
    }
}

.fhv3-method-item {
    background: var(--fhv3-slate);
    padding: 20px;
    border-radius: 12px;
}

.fhv3-method-item i {
    font-size: 1.5rem;
    color: var(--fhv3-forest);
    margin-bottom: 12px;
    display: block;
}

.fhv3-method-item h6 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 8px;
}

.fhv3-method-item p {
    font-size: 0.9rem;
    color: var(--fhv3-stone);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Populations Info */
.fhv3-populations-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 28px 24px;
}

@media (max-width: 600px) {
    .fhv3-populations-info {
        grid-template-columns: 1fr;
    }
}

.fhv3-pop-col h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.fhv3-pop-col h6 i.fa-seedling { color: var(--fhv3-farmer); }
.fhv3-pop-col h6 i.fa-mountain { color: var(--fhv3-hunter); }

.fhv3-pop-col ul {
    margin: 0;
    padding-left: 20px;
}

.fhv3-pop-col li {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* Science Note */
.fhv3-science-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--fhv3-forest-light);
    padding: 20px 24px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.fhv3-science-note > i {
    color: var(--fhv3-forest);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.fhv3-science-note p {
    margin: 0;
    color: var(--fhv3-bone);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   SECTION 8: AI ASSISTANT
   ======================================== */
.fhv3-ai-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--fhv3-dark-stone);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.fhv3-ai-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fhv3-ai-title i {
    font-size: 1.8rem;
    color: var(--fhv3-forest);
}

.fhv3-ai-title h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fhv3-bone);
    margin: 0;
}

.fhv3-ai-title small {
    font-weight: 400;
    color: var(--fhv3-stone);
    font-size: 0.85rem;
}

.fhv3-ai-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

.fhv3-ai-badge.enabled {
    background: var(--fhv3-forest-light);
    color: var(--fhv3-forest);
}

.fhv3-ai-badge.disabled {
    background: var(--fhv3-clay-light);
    color: var(--fhv3-hunter);
}

.fhv3-ai-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--fhv3-slate);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.fhv3-ai-info > i {
    color: var(--fhv3-forest);
    margin-top: 2px;
}

.fhv3-ai-info p {
    margin: 0;
    color: var(--fhv3-bone);
    font-size: 0.95rem;
    line-height: 1.6;
}

.fhv3-suggested-prompts {
    margin-bottom: 28px;
}

.fhv3-suggested-prompts > p {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    color: var(--fhv3-stone);
    margin-bottom: 14px;
}

.fhv3-suggested-prompts > p i {
    color: var(--fhv3-clay);
    margin-right: 6px;
}

.fhv3-prompts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fhv3-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--fhv3-earth-light);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--fhv3-ivory);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fhv3-prompt-btn:hover {
    background: var(--fhv3-earth);
    color: white;
}

.fhv3-prompt-btn i {
    font-size: 0.95rem;
}

.fhv3-ai-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 28px;
    background: var(--fhv3-gradient-earth);
    border: none;
    border-radius: 16px;
    color: white;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-ai-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--fhv3-shadow-hover);
}

.fhv3-ai-main-btn img {
    filter: brightness(10);
}

/* Sample Output */
.fhv3-ai-sample {
    text-align: center;
}

.fhv3-ai-sample h6 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fhv3-clay);
    margin-bottom: 20px;
}

.fhv3-sample-content {
    background: var(--fhv3-slate);
    padding: 24px;
    border-radius: 16px;
    text-align: left;
    margin-bottom: 24px;
}

.fhv3-sample-content p:first-child {
    color: var(--fhv3-ivory);
    font-weight: 600;
    margin-bottom: 12px;
}

.fhv3-sample-text {
    color: var(--fhv3-stone);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.fhv3-sample-cta {
    color: var(--fhv3-forest);
    font-style: italic;
    margin: 0;
}

.fhv3-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--fhv3-forest);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fhv3-unlock-btn:hover {
    background: var(--fhv3-forest-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.fhv3-ai-results {
    margin-top: 32px;
}

/* ========================================
   NOT AVAILABLE STATE
   ======================================== */
.fhv3-not-available {
    text-align: center;
    background: var(--fhv3-dark-stone);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: var(--fhv3-shadow-medium);
    max-width: 500px;
    margin: 0 auto;
}

.fhv3-not-available > i {
    font-size: 3rem;
    color: var(--fhv3-clay);
    margin-bottom: 24px;
}

.fhv3-not-available h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin-bottom: 16px;
}

.fhv3-not-available p {
    color: var(--fhv3-stone);
    margin-bottom: 28px;
    line-height: 1.7;
}

.fhv3-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--fhv3-forest);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fhv3-store-btn:hover {
    background: var(--fhv3-forest-dark);
    color: white;
    text-decoration: none;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .fhv3-page-nav,
    .fhv3-back-to-top,
    .fhv3-scroll-progress,
    .fhv3-scroll-indicator,
    .fhv3-filter-bar,
    .fhv3-ai-container,
    .fhv3-prompt-btn,
    .fhv3-ai-main-btn {
        display: none !important;
    }
    
    .fhv3-hero {
        min-height: auto;
        padding: 40px 0;
        background: var(--fhv3-mist) !important;
    }
    
    .fhv3-section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
    
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   CUSTOM LOADING OVERLAY - Seed & Earth Theme
   ======================================== */
.fhv3-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3D3329 0%, #4A5D48 50%, #2C2418 100%);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.fhv3-loading-overlay.fhv3-overlay-fadeout {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background with Nature Atmosphere */
.fhv3-loading-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.fhv3-loading-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(2px) sepia(15%);
    animation: fhv3LoadingBgPulse 6s ease-in-out infinite;
}

.fhv3-loading-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(61, 51, 41, 0.5) 60%, rgba(44, 36, 24, 0.75) 100%),
        linear-gradient(180deg, rgba(74, 103, 65, 0.1) 0%, transparent 40%, transparent 60%, rgba(139, 90, 43, 0.05) 100%);
}

@keyframes fhv3LoadingBgPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
}

/* Dappled Sunlight Effect */
.fhv3-loading-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(196, 167, 125, 0.12) 0%, transparent 35%),
        radial-gradient(ellipse at 70% 60%, rgba(74, 103, 65, 0.1) 0%, transparent 40%);
    animation: fhv3SunlightDapple 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fhv3SunlightDapple {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Loading Content Container */
.fhv3-loading-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

/* Seedling Spinner */
.fhv3-loading-spinner {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fhv3-spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.fhv3-ring-outer {
    width: 100%;
    height: 100%;
    border-top-color: var(--fhv3-farmer);
    border-right-color: var(--fhv3-farmer);
    animation: fhv3SpinnerRotate 3s linear infinite;
    box-shadow: 0 0 20px rgba(74, 103, 65, 0.25);
}

.fhv3-ring-middle {
    width: 75%;
    height: 75%;
    border-bottom-color: var(--fhv3-hunter);
    border-left-color: var(--fhv3-hunter);
    animation: fhv3SpinnerRotate 2.5s linear infinite reverse;
    opacity: 0.7;
}

.fhv3-ring-inner {
    width: 50%;
    height: 50%;
    border-top-color: var(--fhv3-clay);
    border-right-color: var(--fhv3-clay);
    animation: fhv3SpinnerRotate 2s linear infinite;
    opacity: 0.5;
}

.fhv3-spinner-icon {
    font-size: 2.5rem;
    color: var(--fhv3-farmer);
    animation: fhv3IconGrow 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(74, 103, 65, 0.4));
}

@keyframes fhv3SpinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fhv3IconGrow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Decorative Rings */
.fhv3-loading-spinner::before,
.fhv3-loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(74, 103, 65, 0.2);
    animation: fhv3DecorRotate 30s linear infinite;
}

.fhv3-loading-spinner::before {
    width: 160%;
    height: 160%;
}

.fhv3-loading-spinner::after {
    width: 180%;
    height: 180%;
    animation-direction: reverse;
    animation-duration: 35s;
}

@keyframes fhv3DecorRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Typography */
.fhv3-loading-title {
    font-family: 'Source Serif Pro', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #FAF8F5;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.fhv3-loading-subtitle {
    font-size: 0.9375rem;
    color: rgba(250, 248, 245, 0.7);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.fhv3-loading-narrative {
    font-size: 1rem;
    color: rgba(250, 248, 245, 0.85);
    margin-bottom: 2rem;
    min-height: 1.6em;
    transition: opacity 0.4s ease;
    line-height: 1.6;
}

/* Progress Bar */
.fhv3-loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(74, 103, 65, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    position: relative;
}

.fhv3-loading-progress-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--fhv3-earth-dark), var(--fhv3-farmer), var(--fhv3-clay));
    border-radius: 2px;
    animation: fhv3ProgressFlow 2.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(74, 103, 65, 0.3);
}

@keyframes fhv3ProgressFlow {
    0% { transform: translateX(-100%); width: 30%; }
    50% { width: 45%; }
    100% { transform: translateX(400%); width: 30%; }
}

/* Hint Text */
.fhv3-loading-hint {
    font-size: 0.8125rem;
    color: rgba(250, 248, 245, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.fhv3-loading-hint i {
    animation: fhv3HintPulse 2s ease-in-out infinite;
    color: var(--fhv3-clay);
    opacity: 0.6;
}

@keyframes fhv3HintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Content Hidden State */
.fhv3-content-hidden {
    opacity: 0 !important;
    visibility: hidden;
}

.fhv3-content-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    animation: fhv3ContentReveal 0.6s ease-out forwards;
}

.fhv3-content-hidden.fhv3-content-reveal {
    opacity: 1 !important;
    visibility: visible !important;
}

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

/* Responsive Adjustments */
@media (max-width: 576px) {
    .fhv3-loading-content {
        padding: 1.5rem;
    }
    
    .fhv3-loading-spinner {
        width: 110px;
        height: 110px;
        margin-bottom: 2rem;
    }
    
    .fhv3-spinner-icon {
        font-size: 2rem;
    }
    
    .fhv3-loading-title {
        font-size: 1.875rem;
    }
    
    .fhv3-loading-narrative {
        font-size: 0.9375rem;
    }
    
    .fhv3-loading-progress {
        width: 160px;
    }
}

/* Print Styles */
@media print {
    .fhv3-loading-overlay {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fhv3-loading-bg img,
    .fhv3-loading-bg::before,
    .fhv3-spinner-ring,
    .fhv3-spinner-icon,
    .fhv3-loading-progress-bar,
    .fhv3-loading-hint i,
    .fhv3-loading-spinner::before,
    .fhv3-loading-spinner::after {
        animation: none;
    }
    
    .fhv3-loading-overlay,
    .fhv3-content-reveal {
        transition: opacity 0.3s ease;
    }
    
    .fhv3-loading-progress-bar {
        width: 50%;
        transform: none;
    }
}

/* ========================================
   SAMPLE DRAWER
   ======================================== */
.fh-sample-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.35s, opacity 0.35s ease-in-out;
}

.fh-sample-drawer.open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 0.35s ease-in-out;
}

.fh-sample-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 52, 42, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1049;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.fh-sample-drawer.open .fh-sample-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.fh-sample-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 55vw;
    max-width: 750px;
    min-width: 400px;
    height: 100vh;
    background: var(--fhv3-obsidian);
    box-shadow: var(--fhv3-shadow-strong);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fh-sample-drawer.open .fh-sample-drawer-panel {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .fh-sample-drawer-panel {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        top: auto;
        bottom: 0;
        height: 90vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    
    .fh-sample-drawer.open .fh-sample-drawer-panel {
        transform: translateY(0);
    }
}

.fh-sample-drawer-header {
    background: var(--fhv3-gradient-earth);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.fh-sample-drawer-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fh-sample-drawer-title .dna-icon {
    color: var(--fhv3-clay);
}

.fh-sample-drawer-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 1.25rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fh-sample-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.fh-sample-drawer-close:focus {
    outline: 2px solid var(--fhv3-clay);
    outline-offset: 2px;
}

.fh-sample-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    background: var(--fhv3-obsidian);
    padding: 0;
}

.fh-sample-drawer-portrait {
    text-align: center;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.fh-sample-drawer-portrait img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--fhv3-clay);
    box-shadow: var(--fhv3-shadow-medium);
}

.fh-sample-drawer-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.fh-sample-drawer-info h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.5rem;
    color: var(--fhv3-ivory);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.fh-sample-drawer-info p {
    color: var(--fhv3-stone);
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fh-sample-drawer-info .dna-icon {
    color: var(--fhv3-earth);
}

.fh-sample-drawer-era {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.fh-sample-drawer-era-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--fhv3-clay-light);
    color: var(--fhv3-ivory);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fh-sample-drawer-dates {
    color: var(--fhv3-stone);
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fh-sample-drawer-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(196, 167, 125, 0.15);
}

.fh-sample-drawer-section:last-child {
    border-bottom: none;
}

.fh-sample-drawer-section-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fhv3-ivory);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fh-sample-drawer-section-title .dna-icon {
    color: var(--fhv3-clay);
}

.fh-sample-drawer-metadata {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.fh-sample-drawer-metadata-item {
    padding: 0.75rem;
    background: var(--fhv3-slate);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.fh-sample-drawer-metadata-item:hover {
    background: var(--fhv3-dark-stone);
}

.fh-sample-drawer-metadata-label {
    font-size: 0.75rem;
    color: var(--fhv3-stone);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
}

.fh-sample-drawer-metadata-value {
    font-size: 0.95rem;
    color: var(--fhv3-bone);
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
}

.fh-sample-drawer-about-era {
    background: var(--fhv3-slate);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.fh-sample-drawer-about-era-content {
    color: var(--fhv3-bone);
    line-height: 1.8;
    font-size: 0.95rem;
}

.fh-sample-drawer-about-era-text {
    color: var(--fhv3-bone);
    line-height: 1.8;
}

.fh-sample-drawer-actions {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(196, 167, 125, 0.15);
}

.fh-sample-drawer-actions .btn {
    background: var(--fhv3-gradient-earth);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: all 0.3s ease;
}

.fh-sample-drawer-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--fhv3-shadow-medium);
}

.fh-sample-drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--fhv3-stone);
}

.fh-sample-drawer-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
    color: var(--fhv3-clay);
    margin-bottom: 1rem;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .fhv3-page {
        background: white !important;
        color: #3D3D3D !important;
    }
    
    .fhv3-section,
    .fhv3-section-mist,
    .fhv3-section-earth {
        background: white !important;
    }
    
    .fhv3-ancestor-card,
    .fhv3-timeline-container,
    .fhv3-card,
    .fhv3-bento-card,
    .fhv3-haplogroup-card,
    .fhv3-era-card,
    .fhv3-region-card,
    .fhv3-site-card,
    .fhv3-continuity-card,
    .fhv3-publication-item,
    .fhv3-achievement-card,
    .fhv3-filter-bar,
    .fhv3-map-controls,
    .fhv3-map-legend {
        background: white !important;
        border: 1px solid #ddd !important;
    }
    
    .fhv3-section-title,
    .fhv3-ancestor-name,
    .fhv3-card-title,
    h1, h2, h3, h4, h5, h6 {
        color: #3D3D3D !important;
    }
    
    .fhv3-section-subtitle,
    p,
    span,
    div {
        color: #3D3D3D !important;
    }
    
    .fh-sample-drawer,
    .fh-sample-drawer-backdrop,
    .fhv3-page-nav,
    .fhv3-bottom-nav,
    .fhv3-scroll-progress,
    .fhv3-export-toolbar,
    .fhv3-skip-link {
        display: none !important;
    }
    
    .fhv3-map {
        border: 1px solid #ddd !important;
    }
    
    a {
        color: #3D3D3D !important;
        text-decoration: underline !important;
    }
    
    .fhv3-ancestor-type,
    .fhv3-era-badge,
    .fhv3-scale-badge,
    .fhv3-haplogroup-badge {
        background: #f5f5f5 !important;
        color: #3D3D3D !important;
        border: 1px solid #ddd !important;
    }
}

/* ========================================
   HERITAGE SUMMARY SECTION
   ======================================== */
.fhv3-summary-card {
    background: linear-gradient(135deg, var(--fhv3-slate) 0%, var(--fhv3-dark-stone) 100%);
    border: 1px solid var(--fhv3-dark-stone);
    border-radius: 16px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--fhv3-shadow-medium);
}

.fhv3-summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--fhv3-obsidian);
    border-bottom: 1px solid var(--fhv3-dark-stone);
}

.fhv3-summary-logo img {
    opacity: 0.8;
    height: 16px;
    width: auto;
    max-width: 60px;
    max-height: 16px;
}

.fhv3-summary-title h3 {
    font-family: var(--fhv3-font-display);
    font-size: 1.25rem;
    color: var(--fhv3-ivory);
    margin: 0;
    font-weight: 600;
}

.fhv3-summary-title span {
    font-size: 0.8125rem;
    color: var(--fhv3-sand);
    display: block;
    margin-top: 4px;
}

.fhv3-summary-body {
    padding: 1.5rem;
}

.fhv3-summary-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--fhv3-dark-stone);
    margin-bottom: 1.5rem;
}

.fhv3-summary-stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.fhv3-summary-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fhv3-earth);
    margin-bottom: 4px;
}

.fhv3-summary-stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fhv3-sand);
}

.fhv3-summary-section {
    margin-bottom: 1.5rem;
}

.fhv3-summary-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fhv3-sand);
    margin: 0 0 1rem;
    font-weight: 600;
}

.fhv3-summary-matches {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fhv3-summary-match {
    position: relative;
    text-align: center;
    flex: 0 0 auto;
}

.fhv3-summary-match img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--fhv3-earth);
    display: block;
    margin: 0 auto;
}

.fhv3-summary-match-rank {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--fhv3-earth);
    color: var(--fhv3-ivory);
    padding: 3px 7px;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 24px;
    text-align: center;
}

.fhv3-summary-match-info {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fhv3-summary-match-name {
    display: block;
    font-size: 0.75rem;
    color: var(--fhv3-bone);
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
}

.fhv3-summary-match-pct {
    font-size: 0.6875rem;
    color: var(--fhv3-earth);
    font-weight: 600;
}

.fhv3-summary-match-type {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.fhv3-type-farmer {
    background: var(--fhv3-farmer-light);
    color: var(--fhv3-farmer);
}

.fhv3-type-hunter {
    background: var(--fhv3-hunter-light);
    color: var(--fhv3-hunter);
}

.fhv3-type-maritime {
    background: var(--fhv3-maritime-light);
    color: var(--fhv3-maritime);
}

.fhv3-type-islander {
    background: var(--fhv3-islander-light);
    color: var(--fhv3-islander);
}

.fhv3-type-default {
    background: var(--fhv3-dark-stone-light);
    color: var(--fhv3-sand);
}

.fhv3-summary-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.fhv3-summary-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fhv3-summary-highlight .dna-icon {
    color: var(--fhv3-earth);
    font-size: 1rem;
    flex-shrink: 0;
}

.fhv3-summary-hl-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fhv3-sand);
    margin-bottom: 2px;
}

.fhv3-summary-hl-value {
    font-size: 0.875rem;
    color: var(--fhv3-bone);
    display: block;
}

.fhv3-summary-composition {
    text-align: center;
    padding: 1rem;
    background: var(--fhv3-obsidian);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--fhv3-sand);
}

.fhv3-summary-composition strong {
    color: var(--fhv3-ivory);
}

.fhv3-summary-footer {
    padding: 1rem 1.5rem;
    background: var(--fhv3-obsidian);
    text-align: center;
    font-size: 0.75rem;
    color: var(--fhv3-sand);
    border-top: 1px solid var(--fhv3-dark-stone);
}

.fhv3-summary-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.fhv3-summary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid var(--fhv3-dark-stone);
    background: var(--fhv3-slate);
    color: var(--fhv3-bone);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fhv3-summary-btn:hover {
    background: var(--fhv3-dark-stone);
    border-color: var(--fhv3-earth);
    color: var(--fhv3-ivory);
    transform: translateY(-2px);
    box-shadow: var(--fhv3-shadow-soft);
}

.fhv3-summary-btn-outline {
    background: transparent;
    border-color: var(--fhv3-dark-stone);
}

.fhv3-summary-btn-primary {
    background: var(--fhv3-earth);
    border-color: var(--fhv3-earth);
    color: var(--fhv3-ivory);
}

.fhv3-summary-btn-primary:hover {
    background: var(--fhv3-earth-dark);
    border-color: var(--fhv3-earth-dark);
}

@media (max-width: 768px) {
    .fhv3-summary-card {
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .fhv3-summary-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .fhv3-summary-body {
        padding: 1rem;
    }
    
    .fhv3-summary-stats {
        gap: 0.75rem;
    }
    
    .fhv3-summary-stat {
        min-width: 80px;
    }
    
    .fhv3-summary-stat-value {
        font-size: 1.25rem;
    }
    
    .fhv3-summary-matches {
        gap: 0.75rem;
    }
    
    .fhv3-summary-match img {
        width: 56px;
        height: 56px;
    }
    
    .fhv3-summary-match-name {
        max-width: 80px;
    }
    
    .fhv3-summary-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .fhv3-summary-btn {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    .fhv3-summary-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .fhv3-summary-actions {
        display: none;
    }
}


