﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Low Coverage Regions Report V3 - Contemplative Premium Design
 * A narrative-driven, magazine-style experience for displaying low coverage
 * ancestry analysis with warm amber/copper accents and elegant typography.
 */

/* ========================================
   CSS VARIABLES - Contemplative Earth Palette
   ======================================== */
:root {
    /* Core palette - warm, earthy tones */
    --pr-obsidian: #0D0D0F;
    --pr-slate: #1A1C1E;
    --pr-stone: #2A2D31;
    --pr-earth: #3D3A36;
    --pr-sand: #D4CFC7;
    --pr-bone: #E8E4DC;
    --pr-ivory: #F5F3EF;
    
    /* Accent colors */
    --pr-amber: #C4956A;
    --pr-copper: #8B6D4F;
    --pr-amber-soft: rgba(196, 149, 106, 0.15);
    --pr-amber-glow: rgba(196, 149, 106, 0.25);
    --pr-success: #6B9080;
    --pr-success-soft: rgba(107, 144, 128, 0.15);
    --pr-warning: #D4A574;
    --pr-warning-soft: rgba(212, 165, 116, 0.15);
    
    /* Typography */
    --pr-font-display: 'Cormorant Garamond', Georgia, serif;
    --pr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --pr-section-padding: clamp(80px, 12vh, 140px);
    --pr-content-width: 800px;
    --pr-wide-width: 1100px;
    
    /* Shadows */
    --pr-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
    --pr-shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.35);
    --pr-shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.45);
    
    /* Border radius */
    --pr-radius-sm: 4px;
    --pr-radius-md: 8px;
    --pr-radius-lg: 12px;
    
    /* Transitions */
    --pr-transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --pr-transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --pr-transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BASE STYLES
   ======================================== */
.pr-report {
    background-color: var(--pr-obsidian);
    color: var(--pr-bone);
    font-family: var(--pr-font-body);
    font-size: 18px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pr-report *,
.pr-report *::before,
.pr-report *::after {
    box-sizing: border-box;
}

/* Body background override for dark theme */
body.pr-dark-theme {
    background-color: var(--pr-obsidian) !important;
    background-image: none !important;
}

body.pr-dark-theme #wrapper,
body.pr-dark-theme #content-wrapper,
body.pr-dark-theme #content-fluid {
    background: transparent !important;
}

body.pr-dark-theme footer {
    background-color: var(--pr-obsidian) !important;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.pr-heading-1 {
    font-family: var(--pr-font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--pr-ivory);
    margin: 0;
}

.pr-heading-2 {
    font-family: var(--pr-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--pr-ivory);
    margin: 0 0 1.5rem 0;
}

.pr-heading-3 {
    font-family: var(--pr-font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--pr-bone);
    margin: 0 0 1rem 0;
}

.pr-report .pr-body-large,
.pr-body-large {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.9;
    color: var(--pr-bone) !important;
}

.pr-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pr-bone);
}

.pr-label {
    font-family: var(--pr-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pr-amber);
}

/* ========================================
   SKIP LINK (Accessibility)
   ======================================== */
.pr-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--pr-amber);
    color: var(--pr-obsidian);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--pr-radius-sm);
    z-index: 10000;
    transition: top var(--pr-transition-fast);
}

.pr-skip-link:focus {
    top: 16px;
}

/* ========================================
   SCROLL PROGRESS INDICATOR
   ======================================== */
.pr-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--pr-copper), var(--pr-amber));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
   PAGE NAVIGATION DOTS
   ======================================== */
.pr-page-nav {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
}

@media (min-width: 1200px) {
    .pr-page-nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

.pr-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(168, 159, 145, 0.3);
    border: 1px solid var(--pr-sand);
    transition: all var(--pr-transition-fast);
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.pr-nav-dot:hover,
.pr-nav-dot.active {
    background: var(--pr-amber);
    border-color: var(--pr-amber);
    transform: scale(1.3);
}

.pr-nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--pr-stone);
    color: var(--pr-bone);
    padding: 8px 16px;
    border-radius: var(--pr-radius-sm);
    white-space: nowrap;
    font-size: 0.8125rem;
    font-family: var(--pr-font-body);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--pr-transition-fast);
}

.pr-nav-dot:hover::after {
    opacity: 1;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.pr-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pr-amber);
    color: var(--pr-obsidian);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--pr-transition-fast);
    z-index: 1000;
    box-shadow: var(--pr-shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.pr-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pr-back-to-top:hover {
    background: var(--pr-copper);
    color: var(--pr-ivory);
    transform: translateY(-3px);
    box-shadow: var(--pr-shadow-strong);
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.pr-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(184, 134, 83, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
}

.pr-bottom-nav-item {
    text-decoration: none;
    color: var(--pr-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(--pr-transition-fast);
    opacity: 0.6;
}

.pr-bottom-nav-item i {
    font-size: 1rem;
}

.pr-bottom-nav-item:hover,
.pr-bottom-nav-item.active {
    color: var(--pr-amber);
    text-decoration: none;
    opacity: 1;
}

/* Adjust main content padding for bottom nav on mobile */
@media (max-width: 767.98px) {
    .pr-report {
        padding-bottom: 80px;
    }
    
    .pr-back-to-top {
        bottom: 90px;
    }
}

/* ========================================
   SECTION BASE STYLES
   ======================================== */
.pr-section {
    padding: var(--pr-section-padding) 24px;
    position: relative;
}

.pr-section-content {
    max-width: var(--pr-content-width);
    margin: 0 auto;
}

.pr-section-wide {
    max-width: var(--pr-wide-width);
    margin: 0 auto;
}

.pr-section-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--pr-amber), transparent);
    margin-bottom: 2.5rem;
}

.pr-section-alt {
    background-color: var(--pr-slate);
}

.pr-section-header {
    margin-bottom: 2.5rem;
}

.pr-chapter-header {
    margin-bottom: 2.5rem;
}

.pr-section-number,
.pr-chapter-number {
    display: block;
    font-family: var(--pr-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pr-amber);
    margin-bottom: 0.75rem;
}

.pr-section-title {
    font-family: var(--pr-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--pr-ivory);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.pr-section-subtitle {
    font-size: 1.1rem;
    color: var(--pr-sand);
    max-width: var(--pr-content-width);
    margin: 0;
    line-height: 1.7;
}

.pr-prose-narrow {
    max-width: var(--pr-content-width);
    margin: 0 0 2rem 0;
}

.pr-prose-narrow.pr-prose {
    margin-bottom: 2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.pr-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.pr-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pr-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: grayscale(30%);
}

.pr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 13, 15, 0.4) 0%,
        rgba(13, 13, 15, 0.7) 50%,
        rgba(13, 13, 15, 0.95) 100%
    );
}

.pr-hero-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.pr-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--pr-content-width);
    text-align: center;
}

.pr-hero-label {
    margin-bottom: 2rem;
    opacity: 0;
    animation: prFadeIn 1s ease forwards 0.3s;
}

.pr-hero-title {
    font-family: var(--pr-font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--pr-ivory);
    margin: 0 0 1.5rem 0;
    opacity: 0;
    animation: prFadeInUp 1s ease forwards 0.5s;
}

.pr-hero-title em {
    font-style: italic;
    color: var(--pr-amber);
}

.pr-hero-sample {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--pr-bone);
    margin-bottom: 2rem;
    opacity: 0;
    animation: prFadeInUp 1s ease forwards 0.6s;
}

.pr-hero-sample i {
    color: var(--pr-amber);
}

.pr-hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: prFadeInUp 1s ease forwards 0.7s;
}

.pr-hero-stat {
    text-align: center;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--pr-radius-md);
    min-width: 130px;
    transition: all var(--pr-transition-fast);
}

.pr-hero-stat:hover {
    background: var(--pr-amber-soft);
    border-color: var(--pr-amber-glow);
    transform: translateY(-2px);
}

.pr-hero-stat-value {
    font-family: var(--pr-font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--pr-ivory);
    margin-bottom: 4px;
}

.pr-hero-stat-label {
    font-size: 0.8rem;
    color: var(--pr-sand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pr-hero-trust {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    opacity: 0;
    animation: prFadeIn 1s ease forwards 0.9s;
}

.pr-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--pr-sand);
}

.pr-hero-trust-item i {
    color: var(--pr-amber);
}

.pr-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--pr-sand);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: prFadeIn 1s ease forwards 1.2s;
}

.pr-hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--pr-sand), transparent);
    animation: prScrollPulse 2s ease-in-out infinite;
}

/* ========================================
   PROSE CONTENT
   ======================================== */
.pr-report .pr-prose,
.pr-prose {
    color: var(--pr-bone) !important;
}

.pr-report .pr-prose p,
.pr-prose p {
    margin: 0 0 1.5rem 0;
    color: var(--pr-bone) !important;
}

.pr-prose p:last-child {
    margin-bottom: 0;
}

.pr-report .pr-prose em,
.pr-prose em {
    font-style: italic;
    color: var(--pr-bone) !important;
}

.pr-report .pr-prose strong,
.pr-prose strong {
    font-weight: 600;
    color: var(--pr-ivory) !important;
}

/* ========================================
   QUOTE BLOCK
   ======================================== */
.pr-quote {
    position: relative;
    padding: 2rem 0;
    margin: 3rem 0;
}

.pr-quote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--pr-amber), var(--pr-copper));
}

.pr-quote-text {
    font-family: var(--pr-font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    line-height: 1.6;
    color: var(--pr-ivory);
    padding-left: 2rem;
    margin: 0;
}

/* ========================================
   DEFINITION CARD
   ======================================== */
.pr-definition-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: var(--pr-content-width);
    margin: 0 auto 2rem;
    padding: 2rem;
    background: var(--pr-stone);
    border-radius: var(--pr-radius-md);
    border: 1px solid rgba(168, 159, 145, 0.1);
    text-align: left;
}

.pr-definition-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pr-amber-soft);
    border-radius: var(--pr-radius-md);
    color: var(--pr-amber);
    font-size: 1.5rem;
}

.pr-definition-text {
    font-size: 1.1rem;
    color: var(--pr-bone);
    line-height: 1.8;
    margin: 0;
}

.pr-definition-text strong {
    color: var(--pr-ivory);
}

/* ========================================
   CALLOUT
   ======================================== */
.pr-callout {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 700px;
    margin: 2rem auto;
    padding: 20px 28px;
    background: var(--pr-amber-soft);
    border: 1px solid var(--pr-amber-glow);
    border-radius: var(--pr-radius-md);
}

.pr-callout i {
    color: var(--pr-amber);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pr-callout p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--pr-ivory);
    font-style: italic;
    line-height: 1.7;
}

/* ========================================
   COMPOSITION SECTION
   ======================================== */
.pr-composition-container {
    background: var(--pr-stone);
    border-radius: var(--pr-radius-lg);
    border: 1px solid rgba(168, 159, 145, 0.1);
    overflow: hidden;
}

.pr-composition-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    max-width: var(--pr-wide-width);
    margin: 0 auto;
}

@media (max-width: 900px) {
    .pr-composition-grid {
        grid-template-columns: 1fr;
    }
}

.pr-composition-card {
    background: var(--pr-stone);
    border-radius: var(--pr-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(168, 159, 145, 0.1);
}

.pr-composition-header {
    background: linear-gradient(135deg, var(--pr-copper), var(--pr-amber));
    color: var(--pr-obsidian);
    padding: 20px 24px;
    text-align: center;
}

.pr-composition-header h4 {
    margin: 0;
    font-family: var(--pr-font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.pr-composition-list {
    padding: 16px;
}

.pr-composition-item {
    display: grid;
    grid-template-columns: 200px 1fr 70px 30px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(168, 159, 145, 0.1);
    cursor: pointer;
    transition: all var(--pr-transition-fast);
}

.pr-composition-item:last-child {
    border-bottom: none;
}

.pr-composition-item:hover {
    background: rgba(196, 149, 106, 0.08);
}

.pr-composition-item:focus {
    outline: none;
    background: rgba(196, 149, 106, 0.12);
}

.pr-composition-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--pr-ivory);
}

.pr-composition-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pr-percentage-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.pr-percentage-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
}

.pr-percentage-value {
    font-family: var(--pr-font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--pr-amber);
    text-align: right;
}

.pr-composition-arrow {
    color: var(--pr-sand);
    opacity: 0.5;
    transition: all var(--pr-transition-fast);
}

.pr-composition-item:hover .pr-composition-arrow {
    opacity: 1;
    color: var(--pr-amber);
    transform: translateX(4px);
}

.pr-composition-empty {
    padding: 3rem;
    text-align: center;
    color: var(--pr-bone);
}

.pr-composition-empty i {
    font-size: 2rem;
    color: var(--pr-amber);
    margin-bottom: 1rem;
}

/* Highlights sidebar */
.pr-highlights-card {
    background: var(--pr-stone);
    border-radius: var(--pr-radius-lg);
    padding: 28px;
    border: 1px solid rgba(168, 159, 145, 0.1);
    height: fit-content;
}

.pr-highlights-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--pr-font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--pr-ivory);
    margin-bottom: 20px;
}

.pr-highlights-title i {
    color: var(--pr-amber);
}

.pr-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pr-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(168, 159, 145, 0.08);
    font-size: 0.95rem;
    color: var(--pr-bone);
    line-height: 1.6;
}

.pr-highlights-list li:last-child {
    border-bottom: none;
}

.pr-highlights-list li i {
    color: var(--pr-amber);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========================================
   MAP SECTION
   ======================================== */
.pr-map-container {
    max-width: var(--pr-wide-width);
    margin: 0 auto;
}

.pr-map-wrapper {
    background: var(--pr-stone);
    border-radius: var(--pr-radius-lg);
    padding: 24px;
    border: 1px solid rgba(168, 159, 145, 0.1);
    margin-bottom: 16px;
}

.pr-map {
    width: 100%;
    height: 500px;
    border-radius: var(--pr-radius-md);
    overflow: hidden;
}

.pr-map-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--pr-warning-soft);
    border-radius: var(--pr-radius-sm);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.pr-map-notice i {
    color: var(--pr-warning);
    margin-top: 2px;
}

.pr-map-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pr-bone);
    line-height: 1.6;
}

/* ========================================
   SEGMENTS SECTION
   ======================================== */
.pr-segments-container {
    max-width: var(--pr-wide-width);
    margin: 0 auto;
}

.pr-segments-card {
    background: var(--pr-stone);
    border-radius: var(--pr-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(168, 159, 145, 0.1);
}

.pr-segments-header {
    background: linear-gradient(135deg, var(--pr-earth), var(--pr-stone));
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(168, 159, 145, 0.1);
}

.pr-segments-header i {
    color: var(--pr-amber);
    font-size: 1.25rem;
}

.pr-segments-header h5 {
    margin: 0;
    font-family: var(--pr-font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--pr-ivory);
}

.pr-chromosome-browser {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(168, 159, 145, 0.08);
}

.pr-chromosome-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--pr-bone);
    margin-bottom: 16px;
}

.pr-chromosome-title i {
    color: var(--pr-amber);
}

/* Chromosome Browser Styling */
.pr-chromosome-browser .dar-chromo-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, var(--pr-stone) 0%, var(--pr-slate) 100%);
    border: 1px solid rgba(168, 159, 145, 0.15);
    border-radius: 50%;
    color: var(--pr-ivory);
    font-family: var(--pr-font-body);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pr-chromosome-browser .progress {
    background: var(--pr-stone);
    border-radius: 7px;
    height: 10px;
    overflow: visible;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pr-chromosome-browser .progress-bar {
    border-radius: 0;
    position: relative;
    transition: all 0.15s ease-out;
}

.pr-chromosome-browser .progress-bar.dar-chromo-empty {
    background: var(--pr-stone) !important;
}

.pr-chromosome-browser .progress .progress-bar:first-child {
    border-radius: 7px 0 0 7px;
}

.pr-chromosome-browser .progress .progress-bar:last-child {
    border-radius: 0 7px 7px 0;
}

.pr-chromosome-browser .progress .progress-bar:only-child {
    border-radius: 7px;
}

.pr-chromosome-browser .progress-bar:not(.dar-chromo-empty):hover {
    filter: brightness(1.15);
    z-index: 5;
}

.pr-chromosome-browser .row.no-gutters {
    margin-bottom: 4px;
}

.pr-chromosome-browser .col-1 {
    flex: 0 0 40px;
    max-width: 40px;
    padding-right: 8px;
}

.pr-chromosome-browser .col-11 {
    flex: 0 0 calc(100% - 48px);
    max-width: calc(100% - 48px);
}

/* Segments table */
.pr-segments-table-wrapper {
    overflow-x: auto;
}

.pr-segments-table {
    width: 100%;
    border-collapse: collapse;
}

.pr-segments-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.pr-segments-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pr-sand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(168, 159, 145, 0.1);
}

.pr-segments-table td {
    padding: 14px 20px;
    font-size: 0.95rem;
    color: var(--pr-bone);
    border-bottom: 1px solid rgba(168, 159, 145, 0.05);
    font-variant-numeric: tabular-nums;
}

.pr-segments-table tbody tr {
    transition: background-color var(--pr-transition-fast);
}

.pr-segments-table tbody tr:hover {
    background: var(--pr-amber-soft);
}

.pr-segments-table tbody tr:last-child td {
    border-bottom: none;
}

.pr-segments-empty {
    padding: 40px;
    text-align: center;
    color: var(--pr-sand);
}

/* ========================================
   SCIENCE PILLARS
   ======================================== */
.pr-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .pr-pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pr-pillar {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--pr-stone);
    border-radius: var(--pr-radius-md);
    border: 1px solid rgba(168, 159, 145, 0.1);
    transition: all var(--pr-transition-fast);
}

.pr-pillar:hover {
    transform: translateY(-4px);
    border-color: var(--pr-amber-glow);
}

.pr-pillar-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pr-amber-soft);
    border-radius: 50%;
    color: var(--pr-amber);
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.pr-pillar h4 {
    font-family: var(--pr-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--pr-ivory);
    margin-bottom: 12px;
}

.pr-pillar p {
    font-size: 0.95rem;
    color: var(--pr-bone);
    margin: 0;
    line-height: 1.7;
}

/* Methodology */
.pr-methodology {
    max-width: var(--pr-content-width);
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--pr-stone);
    border-radius: var(--pr-radius-lg);
    border: 1px solid rgba(168, 159, 145, 0.1);
}

.pr-methodology h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--pr-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--pr-ivory);
    margin-bottom: 28px;
}

.pr-methodology h4 i {
    color: var(--pr-amber);
}

.pr-method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pr-method-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
}

.pr-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pr-amber);
    color: var(--pr-obsidian);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
}

.pr-method-step p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--pr-bone);
    line-height: 1.6;
    padding-top: 4px;
}

/* ========================================
   AI ASSISTANT SECTION
   ======================================== */
.pr-ai-section {
    background: linear-gradient(180deg, var(--pr-slate) 0%, var(--pr-obsidian) 100%);
}

.pr-ai-container {
    max-width: var(--pr-content-width);
    margin: 0 auto;
    padding: 2rem;
    background: var(--pr-stone);
    border-radius: var(--pr-radius-lg);
    border: 1px solid rgba(168, 159, 145, 0.1);
}

.pr-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.pr-ai-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pr-ai-title i {
    font-size: 1.75rem;
    color: var(--pr-amber);
}

.pr-ai-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pr-ivory);
}

.pr-ai-title small {
    font-weight: 400;
    color: var(--pr-sand);
}

.pr-ai-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pr-ai-badge.badge-success {
    background: var(--pr-success-soft);
    color: var(--pr-success);
    border: 1px solid rgba(107, 144, 128, 0.3);
}

.pr-ai-badge.badge-warning {
    background: var(--pr-warning-soft);
    color: var(--pr-warning);
    border: 1px solid rgba(212, 165, 116, 0.3);
}

.pr-ai-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--pr-radius-sm);
    margin-bottom: 24px;
}

.pr-ai-info i {
    color: var(--pr-sand);
    margin-top: 2px;
}

.pr-ai-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pr-bone);
    line-height: 1.6;
}

.pr-suggested-prompts {
    margin-bottom: 24px;
}

.pr-suggested-prompts > p {
    font-size: 0.85rem;
    color: var(--pr-sand);
    margin-bottom: 12px;
}

.pr-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--pr-amber-glow);
    border-radius: 100px;
    color: var(--pr-amber);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0 8px 8px 0;
    transition: all var(--pr-transition-fast);
}

.pr-prompt-btn:hover {
    background: var(--pr-amber-soft);
    border-color: var(--pr-amber);
}

.pr-prompt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pr-ai-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--pr-copper), var(--pr-amber));
    border: none;
    border-radius: 100px;
    color: var(--pr-obsidian);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--pr-transition-fast);
    box-shadow: 0 4px 20px rgba(196, 149, 106, 0.3);
}

.pr-ai-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 149, 106, 0.4);
}

.pr-ai-main-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pr-ai-main-btn img {
    width: 20px;
    height: 20px;
}

.pr-sample-output {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--pr-radius-md);
    border: 1px dashed rgba(168, 159, 145, 0.2);
}

.pr-sample-output h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--pr-amber);
    margin-bottom: 16px;
}

.pr-sample-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--pr-radius-sm);
    margin-bottom: 20px;
}

.pr-sample-content p {
    margin: 0 0 8px;
    color: var(--pr-bone);
    line-height: 1.7;
}

.pr-sample-content p:last-child {
    margin-bottom: 0;
}

.pr-unlock-cta {
    text-align: center;
}

.pr-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--pr-success);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--pr-transition-fast);
}

.pr-unlock-btn:hover {
    background: #5A7D6E;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.pr-ai-results {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--pr-radius-md);
    border: 1px solid rgba(168, 159, 145, 0.1);
    display: none;
}

.pr-ai-results.has-content {
    display: block;
}

.pr-ai-results .ai-result-content {
    color: var(--pr-bone);
    line-height: 1.8;
}

.pr-ai-results .ai-result-content p {
    margin-bottom: 16px;
}

.pr-ai-results .ai-result-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.pr-faq-section {
    background: var(--pr-slate);
}

.pr-faq-container {
    max-width: var(--pr-content-width);
    margin: 0 auto;
}

.pr-faq-title {
    font-family: var(--pr-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--pr-ivory);
    text-align: center;
    margin-bottom: 2rem;
}

.pr-faq-item {
    border-bottom: 1px solid rgba(168, 159, 145, 0.15);
}

.pr-faq-item:last-child {
    border-bottom: none;
}

.pr-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.pr-faq-question span {
    font-family: var(--pr-font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--pr-ivory);
    transition: color var(--pr-transition-fast);
}

.pr-faq-question:hover span {
    color: var(--pr-amber);
}

.pr-faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 159, 145, 0.3);
    border-radius: 50%;
    color: var(--pr-sand);
    font-size: 0.75rem;
    transition: all var(--pr-transition-fast);
}

.pr-faq-question[aria-expanded="true"] .pr-faq-icon {
    background: var(--pr-amber);
    border-color: var(--pr-amber);
    color: var(--pr-obsidian);
    transform: rotate(45deg);
}

.pr-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--pr-transition-medium);
}

.pr-faq-answer.show {
    max-height: 400px;
}

.pr-faq-answer p {
    padding: 0 0 1.5rem 0;
    margin: 0;
    color: var(--pr-bone);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ========================================
   FOOTER NOTE
   ======================================== */
.pr-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: var(--pr-content-width);
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--pr-stone);
    border-radius: var(--pr-radius-md);
    border-left: 4px solid var(--pr-amber);
}

.pr-footer-note i {
    color: var(--pr-amber);
    margin-top: 3px;
    flex-shrink: 0;
}

.pr-footer-note span {
    font-size: 0.95rem;
    color: var(--pr-bone);
    line-height: 1.7;
}

.pr-footer-note strong {
    color: var(--pr-ivory);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes prFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes prFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes prScrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

/* Scroll-triggered animations */
.pr-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--pr-transition-slow), transform var(--pr-transition-slow);
}

.pr-animate.pr-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure color is maintained for animated prose elements */
.pr-report .pr-animate.pr-prose,
.pr-animate.pr-prose,
.pr-report .pr-animate.pr-body-large,
.pr-animate.pr-body-large {
    color: var(--pr-bone) !important;
}

.pr-report .pr-animate.pr-prose p,
.pr-animate.pr-prose p {
    color: var(--pr-bone) !important;
}

.pr-report .pr-animate.pr-prose em,
.pr-animate.pr-prose em {
    color: var(--pr-bone) !important;
}

.pr-report .pr-animate.pr-prose strong,
.pr-animate.pr-prose strong {
    color: var(--pr-ivory) !important;
}

.pr-animate-delay-1 { transition-delay: 0.1s; }
.pr-animate-delay-2 { transition-delay: 0.2s; }
.pr-animate-delay-3 { transition-delay: 0.3s; }

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .pr-animate,
    .pr-hero-label,
    .pr-hero-title,
    .pr-hero-sample,
    .pr-hero-stats,
    .pr-hero-trust,
    .pr-hero-scroll {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    
    .pr-hero-scroll-line {
        animation: none;
    }
    
    .pr-percentage-fill {
        transition: none;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .pr-section {
        padding: clamp(60px, 10vh, 100px) 20px;
    }
    
    .pr-hero {
        padding: 100px 20px 60px;
        min-height: 90vh;
    }
    
    .pr-hero-scroll {
        display: none;
    }
    
    .pr-hero-stats {
        gap: 16px;
    }
    
    .pr-hero-stat {
        min-width: 100px;
        padding: 16px 20px;
    }
    
    .pr-hero-stat-value {
        font-size: 1.5rem;
    }
    
    .pr-hero-trust {
        flex-direction: column;
        gap: 12px;
    }
    
    .pr-definition-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .pr-quote-text {
        padding-left: 1.5rem;
    }
    
    .pr-composition-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .pr-composition-label {
        justify-content: center;
    }
    
    .pr-percentage-value {
        text-align: center;
    }
    
    .pr-composition-arrow {
        display: none;
    }
    
    .pr-map {
        height: 350px;
    }
    
    .pr-segments-table th,
    .pr-segments-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    .pr-method-steps {
        grid-template-columns: 1fr;
    }
    
    .pr-ai-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pr-prompt-btn {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
    
    .pr-ai-main-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pr-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .pr-composition-container {
        background: var(--pr-stone);
        border-radius: var(--pr-radius-lg);
        border: 1px solid rgba(168, 159, 145, 0.1);
        overflow: hidden;
    }
}

/* ========================================
   DRAWER (REGION DETAILS)
   ======================================== */
.pr-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.pr-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 15, 0.85);
    opacity: 0;
    transition: opacity var(--pr-transition-fast);
}

.pr-drawer.open .pr-drawer-backdrop {
    opacity: 1;
}

.pr-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: var(--pr-slate);
    transform: translateX(100%);
    transition: transform var(--pr-transition-fast);
    display: flex;
    flex-direction: column;
}

.pr-drawer.open .pr-drawer-panel {
    transform: translateX(0);
}

.pr-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--pr-stone);
    border-bottom: 1px solid rgba(168, 159, 145, 0.1);
}

.pr-drawer-title {
    font-family: var(--pr-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--pr-ivory);
    margin: 0;
}

.pr-drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(168, 159, 145, 0.2);
    border-radius: var(--pr-radius-sm);
    color: var(--pr-bone);
    cursor: pointer;
    transition: all var(--pr-transition-fast);
}

.pr-drawer-close:hover {
    background: var(--pr-amber);
    border-color: var(--pr-amber);
    color: var(--pr-obsidian);
}

.pr-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Drawer Content Styling */
.region-detail-hero {
    position: relative;
    height: 250px;
}

.region-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.region-detail-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(13, 13, 15, 0.95));
}

.region-stat-item {
    text-align: center;
}

.region-stat-value {
    display: block;
    font-family: var(--pr-font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--pr-amber);
}

.region-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--pr-bone);
    opacity: 0.8;
}

.region-detail-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(168, 159, 145, 0.1);
}

.region-detail-section:last-child {
    border-bottom: none;
}

.region-detail-section h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pr-font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--pr-ivory);
    margin: 0 0 1rem 0;
}

.region-detail-section h5 i {
    color: var(--pr-amber);
}

.region-detail-section p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--pr-bone);
    margin: 0 0 1rem 0;
}

.region-detail-section p:last-child {
    margin-bottom: 0;
}

.region-detail-section .badge {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
}

.region-detail-section .badge-primary {
    background: var(--pr-amber);
    color: var(--pr-obsidian);
}

.region-detail-section .badge-info {
    background: var(--pr-copper);
    color: var(--pr-ivory);
}

.region-detail-section .list-unstyled li {
    color: var(--pr-bone);
    margin-bottom: 0.5rem;
}

.region-detail-section .text-success {
    color: #28a745 !important;
}

.region-detail-section .text-primary {
    color: var(--pr-amber) !important;
}

.region-detail-section a {
    color: var(--pr-amber);
}

.region-detail-section a:hover {
    color: var(--pr-copper);
}

.btn-read-more {
    background: var(--pr-amber);
    border-color: var(--pr-amber);
    color: var(--pr-obsidian);
}

.btn-read-more:hover {
    background: var(--pr-copper);
    border-color: var(--pr-copper);
    color: var(--pr-ivory);
}

/* Mobile Drawer Behavior */
@media (max-width: 768px) {
    .pr-drawer-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: 90vh;
        transform: translateY(100%);
        border-radius: 24px 24px 0 0;
    }
    
    .pr-drawer.open .pr-drawer-panel {
        transform: translateY(0);
    }
}

/* Body Scroll Lock for Drawer */
body.drawer-open {
    overflow: hidden;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .pr-scroll-progress,
    .pr-page-nav,
    .pr-back-to-top,
    .pr-bottom-nav,
    .pr-ai-container,
    .pr-faq-section,
    .pr-suggested-prompts,
    .pr-ai-main-btn,
    .pr-prompt-btn,
    .pr-hero-scroll,
    .pr-drawer,
    .pr-composition-arrow {
        display: none !important;
    }
    
    .pr-report {
        background: white;
        color: #333;
    }
    
    .pr-hero {
        min-height: auto;
        padding: 40px 20px;
        background: #f5f5f5;
    }
    
    .pr-section {
        padding: 30px 20px;
        page-break-inside: avoid;
    }
    
    .pr-composition-card,
    .pr-segments-card,
    .pr-pillar,
    .pr-methodology {
        background: #f9f9f9;
        border: 1px solid #ddd;
    }
    
    .pr-ivory, .pr-bone {
        color: #333 !important;
    }
    
    .pr-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}


