﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Neanderthal Ancestry Report - Immersive Dark Theme Design
 * A cinematic, narrative-driven experience for personal DNA results.
 */

/* ========================================
   CUSTOM LOADING OVERLAY - Cave & Firelight Theme
   ======================================== */
.nth-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1512 0%, #2a2118 50%, #0f0d0a 100%);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

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

/* Background Image with Cave Atmosphere */
.nth-loading-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.nth-loading-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: blur(2px) sepia(30%);
    animation: nthLoadingBgPulse 4s ease-in-out infinite;
}

.nth-loading-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(26, 21, 18, 0.5) 60%, rgba(15, 13, 10, 0.75) 100%),
        linear-gradient(180deg, rgba(139, 67, 19, 0.1) 0%, transparent 50%, rgba(196, 163, 90, 0.05) 100%);
}

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

/* Firelight Flicker Effect */
.nth-loading-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(196, 120, 50, 0.15) 0%, transparent 50%);
    animation: nthFirelightFlicker 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes nthFirelightFlicker {
    0%, 100% { opacity: 0.3; }
    25% { opacity: 0.5; }
    50% { opacity: 0.2; }
    75% { opacity: 0.6; }
}

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

/* Cave Art Inspired Spinner */
.nth-loading-spinner {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nth-ring-outer {
    width: 100%;
    height: 100%;
    border-top-color: #C4A35A;
    border-right-color: #C4A35A;
    animation: nthSpinnerRotate 2.5s linear infinite;
    box-shadow: 0 0 20px rgba(196, 163, 90, 0.3);
}

.nth-ring-middle {
    width: 78%;
    height: 78%;
    border-bottom-color: #8B7355;
    border-left-color: #8B7355;
    animation: nthSpinnerRotate 2s linear infinite reverse;
    opacity: 0.8;
}

.nth-ring-inner {
    width: 56%;
    height: 56%;
    border-top-color: #7B9AA8;
    border-right-color: #7B9AA8;
    animation: nthSpinnerRotate 1.5s linear infinite;
    opacity: 0.6;
}

.nth-spinner-icon {
    font-size: 2.25rem;
    color: #C4A35A;
    animation: nthIconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(196, 163, 90, 0.5));
}

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

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

/* Cave Painting Decorative Elements */
.nth-loading-spinner::before,
.nth-loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(196, 163, 90, 0.2);
    animation: nthDecorRotate 20s linear infinite;
}

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

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

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

/* Typography */
.nth-loading-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #F5F2EB;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nth-loading-subtitle {
    font-size: 1rem;
    color: rgba(245, 242, 235, 0.7);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.nth-loading-narrative {
    font-size: 1.1rem;
    color: rgba(245, 242, 235, 0.85);
    margin-bottom: 2rem;
    min-height: 1.6em;
    transition: opacity 0.4s ease;
    line-height: 1.5;
}

/* Progress Bar - Stone Texture */
.nth-loading-progress {
    width: 220px;
    height: 5px;
    background: rgba(90, 90, 90, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    position: relative;
}

.nth-loading-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
}

.nth-loading-progress-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #8B4513, #C4A35A, #8B7355);
    border-radius: 3px;
    animation: nthProgressSlide 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(196, 163, 90, 0.4);
}

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

/* Hint Text */
.nth-loading-hint {
    font-size: 0.875rem;
    color: rgba(245, 242, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nth-loading-hint i {
    animation: nthHourglassRotate 2s ease-in-out infinite;
    color: #8B7355;
}

@keyframes nthHourglassRotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(180deg); }
}

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

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

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

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

/* Responsive Adjustments */
@media (max-width: 576px) {
    .nth-loading-content {
        padding: 1.5rem;
    }
    
    .nth-loading-spinner {
        width: 100px;
        height: 100px;
        margin-bottom: 2rem;
    }
    
    .nth-spinner-icon {
        font-size: 1.75rem;
    }
    
    .nth-loading-title {
        font-size: 2rem;
    }
    
    .nth-loading-narrative {
        font-size: 1rem;
    }
    
    .nth-loading-progress {
        width: 180px;
    }
}

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

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

/* ========================================
   CSS Custom Properties - Earth, Stone, Ice
   ======================================== */
:root {
    /* Primary palette */
    --nth-cave-dark: #1a1a1a;
    --nth-cave-deep: #0f0f0f;
    --nth-stone-dark: #2a2a2a;
    --nth-stone-mid: #3d3d3d;
    --nth-stone-light: #5a5a5a;
    
    /* Accent colors */
    --nth-ochre: #C4A35A;
    --nth-ochre-dim: #9A8048;
    --nth-ochre-glow: rgba(196, 163, 90, 0.15);
    --nth-glacier: #7B9AA8;
    --nth-glacier-dim: #5C7A88;
    --nth-glacier-glow: rgba(123, 154, 168, 0.15);
    --nth-bone: #8B7355;
    
    /* Status colors */
    --nth-benefit: #4A9F7D;
    --nth-benefit-glow: rgba(74, 159, 125, 0.15);
    --nth-caution: #C4785A;
    --nth-caution-glow: rgba(196, 120, 90, 0.15);
    
    /* Text colors */
    --nth-text-primary: #F5F2EB;
    --nth-text-secondary: rgba(245, 242, 235, 0.9);
    --nth-text-muted: rgba(245, 242, 235, 0.7);
    
    /* Functional */
    --nth-border: rgba(245, 242, 235, 0.1);
    --nth-border-hover: rgba(245, 242, 235, 0.2);
    
    /* Typography */
    --nth-font-display: 'Cormorant Garamond', Georgia, serif;
    --nth-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --nth-section-padding: 100px;
    --nth-section-padding-mobile: 60px;
    
    /* Transitions */
    --nth-transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    --nth-transition-medium: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --nth-transition-fast: 0.3s ease;
}

/* ========================================
   Base & Reset
   ======================================== */
body:has(.nth-report-main) {
    background-color: var(--nth-cave-dark) !important;
    background-image: none !important;
}

#wrapper:has(.nth-report-main),
#content-wrapper:has(.nth-report-main),
#content-fluid:has(.nth-report-main) {
    background: transparent !important;
}

body:has(.nth-report-main) footer {
    background-color: var(--nth-cave-deep) !important;
}

.nth-report-main {
    font-family: var(--nth-font-body);
    color: var(--nth-text-primary);
    line-height: 1.7;
    background-color: var(--nth-cave-dark);
}

/* ========================================
   Skip Link (Accessibility)
   ======================================== */
.nth-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--nth-ochre);
    color: var(--nth-cave-dark);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 4px;
    transition: top var(--nth-transition-fast);
}

.nth-skip-link:focus {
    top: 16px;
    outline: 2px solid var(--nth-text-primary);
    outline-offset: 2px;
}

/* ========================================
   Scroll Progress Indicator
   ======================================== */
.nth-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--nth-ochre), var(--nth-glacier));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
   Page Navigation Dots
   ======================================== */
.nth-page-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
}

@media (min-width: 1200px) {
    .nth-page-nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

.nth-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(245, 242, 235, 0.2);
    border: 1px solid var(--nth-border);
    transition: all var(--nth-transition-fast);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.nth-nav-dot:hover,
.nth-nav-dot.active {
    background: var(--nth-ochre);
    border-color: var(--nth-ochre);
    transform: scale(1.3);
}

.nth-nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--nth-stone-dark);
    color: var(--nth-text-primary);
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--nth-transition-fast);
    font-size: 0.8125rem;
    font-family: var(--nth-font-body);
}

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

/* ========================================
   Back to Top Button
   ======================================== */
.nth-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--nth-stone-dark);
    border: 1px solid var(--nth-border);
    color: var(--nth-text-primary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--nth-transition-fast);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nth-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.nth-back-to-top:hover {
    background: var(--nth-ochre);
    border-color: var(--nth-ochre);
    transform: translateY(-4px);
}

.nth-back-to-top:focus {
    outline: 2px solid var(--nth-ochre);
    outline-offset: 2px;
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.nth-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1250;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--nth-border);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
}

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

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

.nth-bottom-nav-item:hover,
.nth-bottom-nav-item.active {
    color: var(--nth-ochre);
    text-decoration: none;
}

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

/* ========================================
   Typography
   ======================================== */
.nth-section-title {
    font-family: var(--nth-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--nth-text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.nth-section-subtitle {
    font-family: var(--nth-font-body);
    font-size: 1.125rem;
    color: var(--nth-text-secondary);
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.nth-chapter-number {
    display: inline-block;
    font-family: var(--nth-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nth-ochre);
    margin-bottom: 1rem;
}

/* ========================================
   Section Base
   ======================================== */
.nth-section {
    padding: var(--nth-section-padding) 0;
    position: relative;
}

@media (max-width: 768px) {
    .nth-section {
        padding: var(--nth-section-padding-mobile) 0;
    }
}

.nth-chapter-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ========================================
   HERO SECTION - Personal Results
   ======================================== */
.nth-report-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.nth-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.nth-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(30%);
}

.nth-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center bottom, transparent 0%, var(--nth-cave-dark) 70%),
        linear-gradient(180deg, var(--nth-cave-deep) 0%, transparent 30%, transparent 70%, var(--nth-cave-dark) 100%),
        linear-gradient(135deg, rgba(196, 163, 90, 0.05) 0%, transparent 50%, rgba(123, 154, 168, 0.05) 100%);
}

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

/* Sample Badge */
.nth-sample-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 242, 235, 0.08);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nth-text-secondary);
    margin-bottom: 2rem;
    border: 1px solid var(--nth-border);
}

.nth-sample-badge i {
    color: var(--nth-ochre);
}

/* Hero Title */
.nth-hero-title {
    font-family: var(--nth-font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--nth-text-primary);
}

.nth-title-prelude {
    display: block;
    font-size: 0.45em;
    font-weight: 400;
    color: var(--nth-text-secondary);
    margin-bottom: 0.5em;
    letter-spacing: 0.05em;
}

.nth-title-accent {
    display: block;
    color: var(--nth-ochre);
    font-style: italic;
}

/* Main Percentage Display */
.nth-percentage-hero {
    margin: 3rem 0;
}

.nth-percentage-value {
    font-family: var(--nth-font-display);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 600;
    color: var(--nth-text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    display: block;
}

.nth-percentage-label {
    display: block;
    font-size: 1rem;
    color: var(--nth-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

/* Variant Count */
.nth-variant-summary {
    background: rgba(245, 242, 235, 0.05);
    backdrop-filter: blur(8px);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--nth-border);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.nth-variant-count {
    font-size: 1.125rem;
    color: var(--nth-text-primary);
    margin-bottom: 0.5rem;
}

.nth-variant-count strong {
    color: var(--nth-ochre);
    font-weight: 600;
}

.nth-variant-context {
    font-size: 0.875rem;
    color: var(--nth-text-muted);
}

/* Hero Stats Grid */
.nth-stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.nth-stat-item {
    text-align: center;
    padding: 0 1rem;
}

.nth-stat-value {
    display: block;
    font-family: var(--nth-font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--nth-text-primary);
}

.nth-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--nth-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.nth-stat-context {
    display: block;
    font-size: 0.7rem;
    color: var(--nth-glacier);
    margin-top: 0.25rem;
}

.nth-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--nth-border);
}

@media (max-width: 576px) {
    .nth-stat-divider {
        display: none;
    }
    .nth-stats-grid {
        gap: 1.5rem;
    }
}

/* Trust Badges */
.nth-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nth-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--nth-text-muted);
}

.nth-trust-item i {
    color: var(--nth-glacier);
}

/* Scroll Indicator */
.nth-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--nth-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: nth-float 3s ease-in-out infinite;
}

.nth-scroll-indicator i {
    font-size: 1rem;
}

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

@media (max-width: 768px) {
    .nth-scroll-indicator {
        display: none;
    }
}

/* ========================================
   CHAPTER SECTIONS - Common Styles
   ======================================== */
.nth-story {
    background: var(--nth-cave-dark);
}

.nth-story-content {
    max-width: 900px;
    margin: 0 auto;
}

.nth-story-lead {
    font-family: var(--nth-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--nth-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.nth-story-text {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #ffffff;
}

.nth-story-text p {
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Story Quote */
.nth-story-quote {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--nth-ochre-glow);
    border-left: 3px solid var(--nth-ochre);
    border-radius: 0 4px 4px 0;
}

.nth-story-quote p {
    font-family: var(--nth-font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--nth-text-primary);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   HEALTH IMPLICATIONS SECTION
   ======================================== */
.nth-health {
    background: linear-gradient(180deg, var(--nth-cave-dark) 0%, var(--nth-stone-dark) 50%, var(--nth-cave-dark) 100%);
}

.nth-health-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .nth-health-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nth-health-card {
    background: var(--nth-stone-dark);
    border: 1px solid var(--nth-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all var(--nth-transition-fast);
}

.nth-health-card.nth-benefits {
    border-left: 3px solid var(--nth-benefit);
}

.nth-health-card.nth-considerations {
    border-left: 3px solid var(--nth-caution);
}

.nth-health-card:hover {
    border-color: var(--nth-border-hover);
    transform: translateY(-4px);
}

.nth-health-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nth-health-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nth-benefits .nth-health-icon {
    background: var(--nth-benefit-glow);
}

.nth-benefits .nth-health-icon i {
    color: var(--nth-benefit);
}

.nth-considerations .nth-health-icon {
    background: var(--nth-caution-glow);
}

.nth-considerations .nth-health-icon i {
    color: var(--nth-caution);
}

.nth-health-header h3 {
    font-family: var(--nth-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--nth-text-primary);
    margin: 0;
}

.nth-health-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nth-health-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--nth-text-primary);
    line-height: 1.6;
}

.nth-health-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.nth-benefits .nth-health-list li::before {
    background: var(--nth-benefit);
}

.nth-considerations .nth-health-list li::before {
    background: var(--nth-caution);
}

/* Distribution Card */
.nth-distribution-card {
    background: var(--nth-stone-dark);
    border: 1px solid var(--nth-border);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.nth-distribution-title {
    font-family: var(--nth-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--nth-text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nth-distribution-title i {
    color: var(--nth-glacier);
}

.nth-distribution-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nth-distribution-label {
    flex: 0 0 200px;
    font-size: 0.9375rem;
    color: var(--nth-text-secondary);
}

.nth-distribution-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nth-distribution-bar {
    flex: 1;
    height: 8px;
    background: var(--nth-cave-dark);
    border-radius: 4px;
    overflow: hidden;
}

.nth-distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nth-ochre), var(--nth-glacier));
    border-radius: 4px;
    transition: width var(--nth-transition-slow);
}

.nth-distribution-value {
    flex: 0 0 80px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nth-ochre);
    text-align: right;
}

@media (max-width: 576px) {
    .nth-distribution-row {
        flex-wrap: wrap;
    }
    .nth-distribution-label {
        flex: 0 0 100%;
        margin-bottom: 0.5rem;
    }
}

/* Map Container */
.nth-map-container {
    background: var(--nth-stone-dark);
    border: 1px solid var(--nth-border);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.nth-map-title {
    font-family: var(--nth-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--nth-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nth-map-title i {
    color: var(--nth-glacier);
}

.nth-map-description {
    color: var(--nth-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.nth-map-image {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: transform var(--nth-transition-fast);
}

.nth-map-image:hover {
    transform: scale(1.02);
}

.nth-map-caption {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--nth-text-muted);
}

/* ========================================
   TRAITS SECTION
   ======================================== */
.nth-traits {
    background: var(--nth-cave-dark);
}

.nth-traits-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--nth-text-secondary);
}

.nth-traits-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .nth-traits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .nth-traits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nth-trait-card {
    background: var(--nth-stone-dark);
    border: 1px solid var(--nth-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all var(--nth-transition-fast);
    display: flex;
    flex-direction: column;
}

.nth-trait-card:hover {
    border-color: var(--nth-ochre-dim);
    transform: translateY(-4px);
}

.nth-trait-card.nth-trait-zero {
    opacity: 0.6;
    border-style: dashed;
}

.nth-trait-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nth-trait-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--nth-ochre-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nth-trait-icon i {
    font-size: 1.25rem;
    color: var(--nth-ochre);
}

.nth-trait-info {
    flex: 1;
    min-width: 0;
}

.nth-trait-title {
    font-family: var(--nth-font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--nth-text-primary);
    margin-bottom: 0.25rem;
}

.nth-trait-description {
    font-size: 0.875rem;
    color: var(--nth-text-muted);
    line-height: 1.6;
}

.nth-trait-description strong {
    color: var(--nth-ochre);
    font-weight: 600;
}

.nth-trait-metrics {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--nth-border);
}

.nth-trait-variant-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--nth-text-secondary);
}

.nth-trait-percentage {
    font-weight: 600;
    color: var(--nth-ochre);
    font-size: 1rem;
}

.nth-trait-progress {
    height: 6px;
    background: var(--nth-cave-dark);
    border-radius: 3px;
    overflow: hidden;
}

.nth-trait-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nth-ochre), var(--nth-glacier));
    border-radius: 3px;
    transition: width var(--nth-transition-slow);
    width: 0;
}

/* Additional Traits Toggle */
.nth-traits-toggle {
    text-align: center;
    margin-top: 3rem;
}

.nth-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--nth-text-primary);
    font-family: var(--nth-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--nth-border);
    transition: all var(--nth-transition-fast);
    cursor: pointer;
}

.nth-toggle-btn:hover {
    background: rgba(245, 242, 235, 0.05);
    border-color: var(--nth-border-hover);
}

.nth-additional-traits {
    margin-top: 3rem;
}

.nth-additional-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-family: var(--nth-font-display);
    font-size: 1.25rem;
    color: var(--nth-text-muted);
}

/* ========================================
   SCIENCE & FAQ SECTION
   ======================================== */
.nth-science {
    background: var(--nth-stone-dark);
}

.nth-science-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--nth-text-secondary);
}

.nth-science-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

@media (min-width: 768px) {
    .nth-science-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .nth-science-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nth-science-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.nth-science-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--nth-cave-dark);
    border: 1px solid var(--nth-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.nth-science-icon i {
    font-size: 1.5rem;
    color: var(--nth-ochre);
}

.nth-science-card h4 {
    font-family: var(--nth-font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--nth-text-primary);
    margin-bottom: 0.75rem;
}

.nth-science-card p {
    font-size: 0.875rem;
    color: var(--nth-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* FAQ Accordion */
.nth-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.nth-faq-title {
    font-family: var(--nth-font-display);
    font-size: 1.5rem;
    color: var(--nth-text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.nth-faq-item {
    border-bottom: 1px solid var(--nth-border);
}

.nth-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    color: var(--nth-text-primary);
    font-family: var(--nth-font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color var(--nth-transition-fast);
}

.nth-faq-question:hover {
    color: var(--nth-ochre);
}

.nth-faq-question i {
    transition: transform var(--nth-transition-fast);
}

.nth-faq-question.active i {
    transform: rotate(180deg);
}

.nth-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--nth-transition-medium);
}

.nth-faq-answer.active {
    max-height: 500px;
}

.nth-faq-answer-content {
    padding: 0 0 1.5rem;
    font-size: 0.9375rem;
    color: var(--nth-text-secondary);
    line-height: 1.8;
}

/* Resources Grid */
.nth-resources-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--nth-border);
}

.nth-resources-title {
    font-family: var(--nth-font-display);
    font-size: 1.5rem;
    color: var(--nth-text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.nth-resources-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .nth-resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .nth-resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nth-resource-card {
    display: block;
    background: var(--nth-cave-dark);
    border: 1px solid var(--nth-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all var(--nth-transition-fast);
}

.nth-resource-card:hover {
    border-color: var(--nth-glacier-dim);
    transform: translateY(-4px);
    text-decoration: none;
}

.nth-resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--nth-glacier-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.nth-resource-icon i {
    font-size: 1.25rem;
    color: var(--nth-glacier);
}

.nth-resource-card h4 {
    font-family: var(--nth-font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--nth-text-primary);
    margin-bottom: 0.5rem;
}

.nth-resource-card p {
    font-size: 0.8125rem;
    color: var(--nth-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   AI ASSISTANT SECTION (Subtle)
   ======================================== */
.nth-understanding {
    background: linear-gradient(180deg, var(--nth-cave-dark) 0%, var(--nth-cave-deep) 100%);
}

.nth-ai-minimal {
    background: var(--nth-stone-dark);
    border: 1px solid var(--nth-border);
    border-radius: 8px;
    padding: 2rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.nth-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.nth-ai-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nth-ai-title i {
    color: var(--nth-glacier);
    font-size: 1.25rem;
}

.nth-ai-title h4 {
    font-family: var(--nth-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--nth-text-primary);
    margin: 0;
}

.nth-ai-title small {
    color: var(--nth-text-muted);
    font-size: 0.75rem;
}

.nth-ai-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nth-ai-badge.badge-success {
    background: var(--nth-benefit-glow);
    color: var(--nth-benefit);
    border: 1px solid var(--nth-benefit);
}

.nth-ai-badge.badge-warning {
    background: var(--nth-caution-glow);
    color: var(--nth-caution);
    border: 1px solid var(--nth-caution);
}

.nth-ai-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 242, 235, 0.03);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.nth-ai-info i {
    color: var(--nth-glacier);
    margin-top: 0.125rem;
}

.nth-ai-info p {
    font-size: 0.875rem;
    color: var(--nth-text-muted);
    margin: 0;
    line-height: 1.6;
}

.nth-suggested-prompts {
    margin-bottom: 1.5rem;
}

.nth-suggested-prompts p {
    font-size: 0.8125rem;
    color: var(--nth-text-muted);
    margin-bottom: 0.75rem;
}

.nth-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--nth-border);
    border-radius: 4px;
    color: var(--nth-text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--nth-transition-fast);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.nth-prompt-btn:hover {
    background: rgba(245, 242, 235, 0.05);
    border-color: var(--nth-ochre-dim);
    color: var(--nth-text-primary);
}

.nth-ai-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--nth-cave-dark);
    border: 1px solid var(--nth-border);
    border-radius: 4px;
    color: var(--nth-text-primary);
    font-family: var(--nth-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--nth-transition-fast);
}

.nth-ai-main-btn:hover {
    background: var(--nth-ochre-glow);
    border-color: var(--nth-ochre-dim);
}

.nth-ai-main-btn img {
    width: 20px;
    height: 20px;
}

.nth-ai-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--nth-cave-dark);
    border-radius: 4px;
    border: 1px solid var(--nth-border);
}

.nth-ai-results:empty {
    display: none;
}

.nth-ai-sample-output {
    padding: 1.5rem;
    background: var(--nth-cave-dark);
    border-radius: 4px;
    border: 1px solid var(--nth-border);
}

.nth-ai-sample-output h6 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nth-ochre);
    margin-bottom: 1rem;
}

.nth-ai-sample-content {
    padding: 1rem;
    background: rgba(245, 242, 235, 0.02);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.nth-ai-sample-content p:last-child {
    margin-bottom: 0;
}

.nth-unlock-cta {
    text-align: center;
}

.nth-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--nth-benefit) 0%, #3A8F6D 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--nth-transition-fast);
}

.nth-unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 159, 125, 0.3);
    color: white;
    text-decoration: none;
}

/* ========================================
   INTERPRETATION GUIDE
   ======================================== */
.nth-interpretation {
    background: var(--nth-stone-dark);
    border: 1px solid var(--nth-border);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.nth-interpretation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nth-interpretation-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--nth-ochre-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nth-interpretation-icon i {
    font-size: 1.5rem;
    color: var(--nth-ochre);
}

.nth-interpretation-title {
    font-family: var(--nth-font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--nth-text-primary);
}

.nth-interpretation-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nth-interpretation-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

.nth-interpretation-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--nth-text-primary);
}

.nth-interpretation-text p {
    margin-bottom: 1.5rem;
}

.nth-key-takeaways h5 {
    font-family: var(--nth-font-display);
    font-size: 1.125rem;
    color: var(--nth-ochre);
    margin-bottom: 1rem;
}

.nth-takeaway-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nth-takeaway-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--nth-text-primary);
    line-height: 1.6;
}

.nth-takeaway-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nth-ochre);
}

.nth-takeaway-list li strong {
    color: var(--nth-ochre);
}

.nth-heritage-summary {
    background: var(--nth-cave-dark);
    border: 1px solid var(--nth-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.nth-heritage-summary h6 {
    font-family: var(--nth-font-display);
    font-size: 1rem;
    color: var(--nth-glacier);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nth-heritage-main {
    margin-bottom: 1.5rem;
}

.nth-heritage-percentage {
    font-family: var(--nth-font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--nth-ochre);
    line-height: 1;
}

.nth-heritage-label {
    display: block;
    font-weight: 600;
    color: var(--nth-text-primary);
    margin-top: 0.25rem;
}

.nth-heritage-variants {
    font-size: 0.9rem;
    color: var(--nth-text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nth-border);
}

.nth-heritage-variants strong {
    color: var(--nth-ochre);
}

.nth-heritage-modern {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nth-border);
}

.nth-heritage-modern .nth-heritage-percentage {
    font-size: 2rem;
    color: var(--nth-glacier);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.nth-animate-fade-in {
    opacity: 0;
    animation: nth-fade-in var(--nth-transition-slow) forwards;
}

.nth-animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: nth-fade-in-up var(--nth-transition-slow) forwards;
}

.nth-delay-1 { animation-delay: 0.2s; }
.nth-delay-2 { animation-delay: 0.4s; }
.nth-delay-3 { animation-delay: 0.6s; }
.nth-delay-4 { animation-delay: 0.8s; }

@keyframes nth-fade-in {
    to { opacity: 1; }
}

@keyframes nth-fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.nth-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--nth-transition-slow), transform var(--nth-transition-slow);
}

.nth-reveal.nth-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .nth-animate-fade-in,
    .nth-animate-fade-in-up,
    .nth-reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .nth-scroll-indicator {
        animation: none;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .nth-report-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .nth-percentage-value {
        font-size: 5rem;
    }
    
    .nth-variant-summary {
        padding: 1rem 1.5rem;
    }
    
    .nth-health-card:hover,
    .nth-trait-card:hover,
    .nth-resource-card:hover {
        transform: none;
    }
    
    .nth-interpretation-content {
        gap: 1.5rem;
    }
    
    .nth-ai-minimal {
        padding: 1.5rem;
    }
}

/* ========================================
   HERITAGE SUMMARY SECTION
   ======================================== */
.nth-heritage-summary-section {
    padding-top: var(--nth-section-padding);
    padding-bottom: var(--nth-section-padding);
}

.nth-summary-card {
    background: linear-gradient(135deg, var(--nth-cave-dark) 0%, var(--nth-stone-dark) 100%);
    border: 1px solid var(--nth-border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nth-summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--nth-cave-deep);
    border-bottom: 1px solid var(--nth-border);
}

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

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

.nth-summary-title span {
    font-size: 0.8125rem;
    color: var(--nth-text-muted);
    display: block;
    margin-top: 0.25rem;
}

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

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

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

.nth-summary-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nth-ochre);
    font-family: var(--nth-font-display);
    line-height: 1.2;
}

.nth-summary-stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nth-text-muted);
    margin-top: 0.5rem;
    display: block;
}

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

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

.nth-summary-traits {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.nth-summary-trait {
    position: relative;
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: 150px;
}

.nth-summary-trait-rank {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nth-ochre);
    color: var(--nth-cave-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    z-index: 1;
}

.nth-summary-trait-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--nth-stone-dark);
    border: 2px solid var(--nth-ochre);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.nth-summary-trait-icon i {
    font-size: 1.5rem;
    color: var(--nth-ochre);
}

.nth-summary-trait-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nth-summary-trait-name {
    display: block;
    font-size: 0.75rem;
    color: var(--nth-text-secondary);
    font-weight: 500;
    line-height: 1.3;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nth-summary-trait-pct {
    font-size: 0.6875rem;
    color: var(--nth-glacier);
    font-weight: 600;
}

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

.nth-summary-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nth-summary-highlight .dna-icon {
    color: var(--nth-ochre);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

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

.nth-summary-hl-value {
    font-size: 0.875rem;
    color: var(--nth-text-secondary);
    line-height: 1.4;
}

.nth-summary-breakdown {
    margin-bottom: 1.5rem;
}

.nth-summary-breakdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nth-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.nth-summary-breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nth-summary-breakdown-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nth-summary-breakdown-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--nth-text-secondary);
}

.nth-summary-breakdown-pct {
    font-weight: 600;
    color: var(--nth-text-primary);
}

.nth-summary-breakdown-fill {
    height: 8px;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.nth-summary-footer {
    padding: 1rem 1.5rem;
    background: var(--nth-cave-deep);
    text-align: center;
    font-size: 0.75rem;
    color: var(--nth-text-muted);
    border-top: 1px solid var(--nth-border);
}

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

.nth-summary-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--nth-transition-fast);
    border: 1px solid;
    font-family: var(--nth-font-body);
}

.nth-summary-btn-outline {
    background: transparent;
    border-color: var(--nth-border);
    color: var(--nth-text-secondary);
}

.nth-summary-btn-outline:hover {
    background: var(--nth-stone-dark);
    border-color: var(--nth-border-hover);
    color: var(--nth-text-primary);
}

.nth-summary-btn-primary {
    background: var(--nth-ochre);
    border-color: var(--nth-ochre);
    color: var(--nth-cave-dark);
}

.nth-summary-btn-primary:hover {
    background: var(--nth-ochre-dim);
    border-color: var(--nth-ochre-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 163, 90, 0.3);
}

.nth-summary-btn .dna-icon {
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nth-summary-card {
        max-width: 100%;
        margin: 0;
    }
    
    .nth-summary-header {
        padding: 1.25rem;
    }
    
    .nth-summary-body {
        padding: 1.25rem;
    }
    
    .nth-summary-stats {
        gap: 0.75rem;
    }
    
    .nth-summary-stat {
        min-width: 80px;
    }
    
    .nth-summary-stat-value {
        font-size: 1.25rem;
    }
    
    .nth-summary-traits {
        gap: 0.75rem;
    }
    
    .nth-summary-trait {
        min-width: 100px;
        max-width: 120px;
    }
    
    .nth-summary-trait-icon {
        width: 56px;
        height: 56px;
    }
    
    .nth-summary-trait-icon i {
        font-size: 1.25rem;
    }
    
    .nth-summary-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .nth-summary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .nth-hero-bg,
    .nth-page-nav,
    .nth-back-to-top,
    .nth-bottom-nav,
    .nth-scroll-progress,
    .nth-scroll-indicator,
    .nth-ai-minimal,
    .nth-toggle-btn,
    .nth-summary-actions {
        display: none !important;
    }
    
    .nth-report-main {
        background: white;
        color: black;
    }
    
    .nth-section {
        padding: 40px 0;
    }
    
    .nth-section-title,
    .nth-story-lead,
    .nth-trait-title {
        color: black !important;
    }
    
    .nth-trait-card,
    .nth-health-card,
    .nth-interpretation,
    .nth-summary-card {
        break-inside: avoid;
    }
    
    .nth-summary-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


