/* asce_7_22_current.css - ASCE 7-22 Current Standard CSS */
/* Matches cc_windows_doors.css theme and branding exactly */
/* Brand Colors: #181E57 (dark blue), #0018FF (blue), #FFFFFF (white) */
/* Current Standard Theme: Green accents for modern/active status */

/* ==========================================================================
   BASE VARIABLES - MATCHING MAIN APP
   ========================================================================== */
:root {
    /* Brand Colors - Exact Match */
    --brand-primary: #181E57;
    --brand-secondary: #0018FF;
    --brand-white: #FFFFFF;
    
    /* Extended Color Palette */
    --premium-charcoal: #1E293B;
    --premium-silver: #F8FAFC;
    --premium-emerald: #10B981;
    --premium-ruby: #EF4444;
    --premium-sapphire: #3B82F6;
    --premium-gold: #F59E0B;
    --premium-onyx: #0F172A;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --success-bold: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --warning-bold: rgba(245, 158, 11, 0.15);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.1);
    --error-bold: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);
    --info-bold: rgba(59, 130, 246, 0.15);
    
    /* Tornado-specific colors */
    --tornado-red: #dc2626;
    --tornado-light: rgba(220, 38, 38, 0.1);
    --tornado-bold: rgba(220, 38, 38, 0.15);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Typography */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 28px;
    --text-4xl: 36px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    
    /* Shadows - Match Main App */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-brand: 0 20px 40px rgba(24, 30, 87, 0.3);
    --shadow-success: 0 20px 40px rgba(16, 185, 129, 0.4);
    --shadow-tornado: 0 20px 40px rgba(220, 38, 38, 0.4);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-bg-dark: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.25s ease-out;
    --transition-slow: 0.35s ease-out;
}

/* ==========================================================================
   ASCE 7-22 MAIN CONTAINER - CURRENT STANDARD THEME
   ========================================================================== */
.asce-7-22-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    border: 2px solid rgba(16, 185, 129, 0.2);
    box-shadow: var(--shadow-success);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    margin-bottom: var(--space-xl);
}

.asce-7-22-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.08) 0%, 
        rgba(16, 185, 129, 0.02) 50%,
        rgba(16, 185, 129, 0.08) 100%);
    pointer-events: none;
    z-index: 0;
}

.asce-7-22-container > * {
    position: relative;
    z-index: 1;
}

.asce-7-22-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl), var(--shadow-success);
    border-color: rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   CURRENT STANDARD HEADER - SUCCESS THEME
   ========================================================================== */
.asce-header {
    margin-bottom: var(--space-2xl);
    position: relative;
}

.asce-header::after {
    content: '';
    position: absolute;
    bottom: -var(--space-lg);
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--success) 0%, 
        rgba(16, 185, 129, 0.3) 50%, 
        var(--success) 100%);
    border-radius: 2px;
}

.asce-page-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(24, 30, 87, 0.15);
}

.asce-page-title i {
    color: var(--success);
    font-size: clamp(20px, 4vw, 28px);
    margin-right: var(--space-md);
    animation: currentGlow 3s ease-in-out infinite alternate;
}

@keyframes currentGlow {
    0% { 
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.9));
        transform: scale(1.05);
    }
}

.asce-page-subtitle {
    color: var(--premium-charcoal);
    margin-bottom: var(--space-lg);
    font-size: var(--text-base);
    line-height: 1.7;
    font-weight: 500;
}

/* Badge Container - Current Standard Theme */
.asce-badge-container {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.asce-badge {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.asce-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.asce-badge:hover::before {
    left: 100%;
}

.asce-badge.current {
    background: var(--success-bold);
    color: #047857;
    border: 2px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: currentPulse 3s ease-in-out infinite;
}

@keyframes currentPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
        border-color: rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
        border-color: rgba(16, 185, 129, 0.6);
    }
}

.asce-badge.edition {
    background: var(--info-bold);
    color: #1e40af;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.asce-badge.tornado-new {
    background: var(--tornado-bold);
    color: #991b1b;
    border: 2px solid rgba(220, 38, 38, 0.4);
    position: relative;
}

.asce-badge.tornado-new::after {
    content: '🆕';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

/* Action Bar - Enhanced for Current Standard */
.asce-action-bar {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, #FFFFFF, #F8FAFC);
    color: var(--brand-primary);
    border: 3px solid rgba(24, 30, 87, 0.3);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(24, 30, 87, 0.15), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--premium-silver), #F1F5F9);
    color: var(--brand-primary);
    border-color: rgba(24, 30, 87, 0.5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px) scale(1.02);
}

.action-btn.comparison-btn:hover {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: var(--brand-white);
}

.action-btn.advisory-btn {
    background: linear-gradient(135deg, var(--info), #1d4ed8);
    color: var(--brand-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn.guide-btn {
    background: linear-gradient(135deg, var(--success), #047857);
    color: var(--brand-white);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   NAVIGATION TABS - CURRENT STANDARD THEME
   ========================================================================== */
.asce-tab-container {
    margin-bottom: var(--space-2xl);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.asce-tabs {
    border-bottom: 3px solid rgba(16, 185, 129, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

/* Target Dash tabs container */
.asce-tabs .tab-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.asce-tab {
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 3px solid transparent;
    color: var(--premium-onyx);
    font-weight: 600;
    font-size: var(--text-base);
    padding: var(--space-md) var(--space-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    margin-bottom: -3px;
}

.asce-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.08) 0%,
        transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.asce-tab:hover::before {
    opacity: 1;
}

.asce-tab:hover {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
    border-bottom-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.05);
}

/* Dash selected tab - multiple selectors for compatibility */
.asce-tab.react-tabs__tab--selected,
.asce-tab.tab--selected,
.asce-tab[aria-selected="true"],
.custom-tab--selected {
    color: var(--brand-primary) !important;
    border-color: rgba(16, 185, 129, 0.4);
    border-bottom-color: var(--success) !important;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.12) 0%,
        rgba(16, 185, 129, 0.06) 100%) !important;
    font-weight: 700;
    box-shadow: 0 -2px 10px rgba(16, 185, 129, 0.15);
}

/* Special Tornado Tab */
.asce-tab.tornado-tab {
    position: relative;
}

.asce-tab.tornado-tab::after {
    content: 'NEW';
    position: absolute;
    top: -8px;
    right: 4px;
    background: var(--tornado-red);
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
    animation: newFeature 2s ease-in-out infinite alternate;
}

@keyframes newFeature {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* ==========================================================================
   CONTENT AREA AND CARDS - CURRENT STANDARD THEME
   ========================================================================== */
.asce-content-area {
    min-height: 400px;
}

.asce-overview-card,
.asce-adoption-card,
.asce-wind-provisions,
.asce-tornado-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.asce-overview-card::before,
.asce-adoption-card::before,
.asce-wind-provisions::before,
.asce-tornado-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

.asce-overview-card > *,
.asce-adoption-card > *,
.asce-wind-provisions > *,
.asce-tornado-card > * {
    position: relative;
    z-index: 1;
}

.asce-overview-card:hover,
.asce-adoption-card:hover,
.asce-wind-provisions:hover,
.asce-tornado-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Special Tornado Card Styling */
.asce-tornado-card {
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.03) 0%, 
        var(--glass-bg) 100%);
}

.enhanced-tornado-card:hover {
    box-shadow: var(--shadow-tornado);
}

/* Section Titles */
.asce-section-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-shadow: 0 1px 2px rgba(24, 30, 87, 0.1);
}

.asce-section-title.tornado-title {
    color: var(--tornado-red);
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.asce-subsection-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
    margin-top: var(--space-xl);
    border-left: 4px solid var(--success);
    padding-left: var(--space-md);
}

.asce-text {
    color: var(--premium-onyx);
    line-height: 1.8;
    font-weight: 500;
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
}

.asce-text.tornado-intro {
    background: var(--tornado-light);
    border-left: 4px solid var(--tornado-red);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

/* ==========================================================================
   FEATURE GRID - INNOVATION SHOWCASE
   ========================================================================== */
.asce-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.asce-feature-item {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid rgba(24, 30, 87, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 220px;
    box-shadow: var(--shadow-md);
}

/* REMOVED: Sliding ::before animation that caused flickering */

.asce-feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(16, 185, 129, 0.15);
}

/* REMOVED: Color-changing hover effects that caused strobing */

.asce-feature-title {
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--brand-primary);
    margin-bottom: var(--space-sm);
}

.asce-feature-desc {
    color: var(--premium-onyx);
    font-size: var(--text-base);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

/* Feature Link Button - Functional external links */
.feature-link-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: var(--brand-white) !important;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: auto;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-md);
}

.feature-link-btn:hover {
    background: linear-gradient(135deg, var(--success), #047857);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.feature-link-btn i {
    color: var(--brand-white);
}

/* Legacy feature-advisory-btn - kept for backwards compatibility */
.feature-advisory-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: #047857;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.feature-advisory-btn:hover {
    background: linear-gradient(135deg, var(--success), #047857);
    color: var(--brand-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-success);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   ADOPTION STATUS GRID - SUCCESS THEME
   ========================================================================== */
.asce-adoption-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

@media (max-width: 1024px) {
    .asce-adoption-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.asce-adoption-column {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid rgba(16, 185, 129, 0.25);
    transition: all var(--transition-normal);
    min-height: 220px;
    box-shadow: var(--shadow-md);
}

.asce-adoption-column:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-success);
    border-color: rgba(16, 185, 129, 0.5);
}

.asce-adoption-category {
    font-weight: 800;
    margin-bottom: var(--space-lg);
    font-size: var(--text-xl);
    color: var(--brand-primary);
    border-bottom: 3px solid var(--success);
    padding-bottom: var(--space-md);
}

.asce-adoption-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asce-adoption-column li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--premium-onyx);
    font-weight: 600;
    font-size: var(--text-base);
    position: relative;
    padding-left: var(--space-xl);
}

.asce-adoption-column li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--success);
}

.asce-adoption-column li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   CHAPTER CARDS - ENHANCED FOR CURRENT STANDARD
   ========================================================================== */
.asce-chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.asce-chapter-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid rgba(24, 30, 87, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: visible;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.asce-chapter-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.asce-chapter-title {
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
    font-size: var(--text-xl);
    border-bottom: 3px solid var(--success);
    padding-bottom: var(--space-md);
}

.asce-chapter-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
    flex-grow: 1;
}

.asce-chapter-list li {
    padding: var(--space-sm) 0;
    color: var(--premium-onyx);
    font-weight: 600;
    position: relative;
    padding-left: var(--space-xl);
    font-size: var(--text-base);
    line-height: 1.5;
}

.asce-chapter-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: var(--space-sm);
    color: var(--success);
    font-size: 12px;
}

.chapter-advisory-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: #047857;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.chapter-advisory-btn:hover {
    background: linear-gradient(135deg, var(--success), #047857);
    color: var(--brand-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-success);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   TORNADO SECTION STYLING - SPECIAL EMPHASIS
   ========================================================================== */
.asce-tornado-section {
    color: var(--tornado-red);
    font-weight: 800;
    font-size: var(--text-2xl);
    margin: var(--space-2xl) 0 var(--space-xl) 0;
    border-left: 5px solid var(--tornado-red);
    padding-left: var(--space-lg);
    position: relative;
}

.asce-tornado-section::before {
    content: '🌪️';
    position: absolute;
    left: -20px;
    top: 0;
    font-size: var(--text-xl);
}

.asce-tornado-subsection {
    color: var(--brand-primary);
    font-weight: 700;
    font-size: var(--text-xl);
    margin: var(--space-xl) 0 var(--space-lg) 0;
}

.asce-tornado-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl) 0;
}

.asce-tornado-list li {
    padding: var(--space-md) 0;
    color: var(--premium-onyx);
    font-weight: 600;
    font-size: var(--text-base);
    position: relative;
    padding-left: var(--space-xl);
    border-bottom: 1px solid rgba(220, 38, 38, 0.15);
    line-height: 1.5;
}

.asce-tornado-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: var(--text-base);
}

.asce-tornado-list li:last-child {
    border-bottom: none;
}

.tornado-check-btn,
.tornado-advisory-btn {
    background: linear-gradient(135deg, var(--tornado-red), #b91c1c);
    color: var(--brand-white);
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-tornado);
    font-weight: 800;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    margin: var(--space-lg) 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-base);
}

.tornado-check-btn:hover,
.tornado-advisory-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl), 0 0 40px rgba(220, 38, 38, 0.5);
}

.asce-tornado-requirements {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.03));
    border: 3px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

/* ==========================================================================
   INTERACTIVE ADVISORY PANEL - CURRENT STANDARD THEME
   ========================================================================== */
.advisory-panel {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 3px solid rgba(16, 185, 129, 0.35);
    box-shadow: var(--shadow-success), var(--shadow-xl);
    margin-bottom: var(--space-xl);
    display: none;
    transition: all var(--transition-normal);
}

.advisory-panel-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.advisory-panel-title i {
    color: var(--premium-gold);
    font-size: var(--text-2xl);
}

.advisory-panel-desc {
    color: var(--premium-onyx);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    font-size: var(--text-lg);
}

.quick-advisory-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.quick-advisory-btn {
    background: linear-gradient(135deg, #FFFFFF, #F8FAFC);
    color: var(--brand-primary);
    border: 2px solid rgba(24, 30, 87, 0.25);
    box-shadow: var(--shadow-md);
    font-weight: 700;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--text-base);
    text-align: center;
}

.quick-advisory-btn:hover {
    background: linear-gradient(135deg, var(--success), #047857);
    color: var(--brand-white);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-success), var(--shadow-lg);
}

.advisory-responses-container {
    min-height: 120px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.7);
    border: 2px dashed rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--premium-onyx);
    font-style: italic;
    font-size: var(--text-base);
    padding: var(--space-lg);
}

.advisory-response-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 3px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-success), var(--shadow-md);
}

.advisory-response-title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
}

.advisory-response-content {
    color: var(--premium-onyx);
    line-height: 1.7;
    font-size: var(--text-base);
    margin-bottom: var(--space-xl);
}

.response-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.follow-up-btn,
.close-response-btn {
    background: linear-gradient(135deg, #FFFFFF, #F8FAFC);
    color: var(--brand-primary);
    border: 2px solid rgba(24, 30, 87, 0.25);
    box-shadow: var(--shadow-md);
    font-weight: 700;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--text-base);
}

.follow-up-btn:hover {
    background: linear-gradient(135deg, var(--success), #047857);
    color: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-success);
}

.close-response-btn:hover {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: var(--brand-white);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   INLINE ADVISORY ELEMENTS - SUCCESS THEME
   ========================================================================== */
.inline-advisory {
    margin: var(--space-lg) 0;
}

.inline-advisory-btn,
.section-advisory-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: #047857;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.inline-advisory-btn:hover,
.section-advisory-btn:hover {
    background: linear-gradient(135deg, var(--success), #047857);
    color: var(--brand-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-success);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-header-with-advisory {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* ==========================================================================
   IMPLEMENTATION STEPS - CURRENT STANDARD WORKFLOW
   ========================================================================== */
.asce-implementation-guide {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 3px solid rgba(16, 185, 129, 0.25);
    box-shadow: var(--shadow-xl);
}

.asce-implementation-title {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2xl);
    text-align: center;
    border-bottom: 4px solid var(--success);
    padding-bottom: var(--space-lg);
}

.asce-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.asce-step-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: visible;
    min-height: 200px;
    box-shadow: var(--shadow-md);
}

.asce-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--success);
    transition: width var(--transition-normal);
}

.asce-step-card:hover::before {
    width: 8px;
}

.asce-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-success);
    border-color: rgba(16, 185, 129, 0.4);
}

.asce-step-title {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.asce-step-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background: var(--success);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
}

.asce-steps-grid {
    counter-reset: step-counter;
}

.asce-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asce-step-list li {
    padding: var(--space-sm) 0;
    color: var(--premium-onyx);
    font-weight: 600;
    position: relative;
    padding-left: var(--space-xl);
    font-size: var(--text-base);
    line-height: 1.5;
}

.asce-step-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
    font-size: var(--text-lg);
}

/* ==========================================================================
   CHANGES SECTION - REVOLUTIONARY STYLING
   ========================================================================== */
.asce-changes-section {
    margin-bottom: var(--space-2xl);
}

.asce-changes-category {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-2xl);
    text-align: center;
    position: relative;
    padding-bottom: var(--space-lg);
}

.asce-changes-category.revolutionary {
    color: var(--tornado-red);
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.asce-changes-category.revolutionary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--tornado-red), transparent);
    border-radius: 2px;
}

.asce-change-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 2px solid rgba(24, 30, 87, 0.15);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: visible;
}

.revolutionary-change {
    border-color: rgba(220, 38, 38, 0.35);
    background: linear-gradient(135deg,
        rgba(220, 38, 38, 0.05) 0%,
        #FFFFFF 50%,
        #F8FAFC 100%);
}

.revolutionary-change:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-tornado), var(--shadow-2xl);
    border-color: rgba(220, 38, 38, 0.5);
}

.asce-change-title {
    color: var(--tornado-red);
    font-weight: 800;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.asce-change-desc {
    color: var(--premium-onyx);
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.asce-change-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asce-change-details li {
    padding: var(--space-md) 0;
    color: var(--premium-onyx);
    font-weight: 600;
    font-size: var(--text-base);
    position: relative;
    padding-left: var(--space-xl);
    border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}

.asce-change-details li::before {
    content: '🔥';
    position: absolute;
    left: 0;
    font-size: var(--text-sm);
}

.asce-change-details li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS - MATCHES MAIN APP
   ========================================================================== */
@media (max-width: 768px) {
    .asce-7-22-container {
        padding: var(--space-lg);
        border-radius: var(--radius-xl);
    }

    .asce-page-title {
        font-size: var(--text-2xl);
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .asce-section-title {
        font-size: var(--text-2xl);
        flex-direction: column;
        text-align: center;
    }

    .asce-subsection-title {
        font-size: var(--text-xl);
    }

    .asce-badge-container {
        justify-content: center;
        flex-wrap: wrap;
    }

    .asce-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn {
        text-align: center;
        justify-content: center;
    }

    .asce-tabs {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .asce-tab {
        text-align: center;
        justify-content: center;
        border-radius: var(--radius-lg);
        margin-bottom: 0;
    }

    .asce-features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .asce-chapters-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .asce-adoption-grid,
    .asce-steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .quick-advisory-buttons {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .response-actions {
        flex-direction: column;
    }

    .section-header-with-advisory {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }

    .section-advisory-btn {
        text-align: center;
        justify-content: center;
    }

    .asce-tab.tornado-tab::after {
        display: none;
    }

    .asce-feature-item,
    .asce-chapter-card,
    .asce-step-card,
    .asce-change-card,
    .asce-adoption-column {
        min-height: auto;
    }

    .advisory-panel {
        padding: var(--space-lg);
    }

    .asce-implementation-guide {
        padding: var(--space-lg);
    }
}

/* ==========================================================================
   ACCESSIBILITY - MATCHES MAIN APP
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 4px solid var(--success);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

@media (prefers-contrast: high) {
    .asce-feature-item,
    .asce-chapter-card,
    .asce-step-card,
    .asce-change-card {
        border-width: 3px;
    }
    
    .asce-feature-title,
    .asce-chapter-title,
    .asce-step-title,
    .asce-change-title {
        font-weight: 800;
        color: var(--premium-onyx);
    }
    
    .asce-text,
    .asce-feature-desc,
    .asce-change-desc {
        color: var(--premium-onyx);
        font-weight: 600;
    }
}

/* ==========================================================================
   PRINT STYLES - MATCHES MAIN APP
   ========================================================================== */
@media print {
    .asce-7-22-container,
    .asce-overview-card,
    .asce-adoption-card,
    .asce-wind-provisions,
    .asce-tornado-card {
        box-shadow: none;
        border: 2px solid #000;
        background: #ffffff;
    }
    
    .asce-page-title,
    .asce-section-title,
    .asce-subsection-title {
        color: #000000;
    }
    
    .asce-text,
    .asce-feature-desc,
    .asce-change-desc {
        color: #000000;
    }
    
    .action-btn,
    .quick-advisory-btn,
    .feature-advisory-btn,
    .chapter-advisory-btn {
        display: none;
    }
    
    .asce-badge.tornado-new::after {
        display: none;
    }
    
    .asce-tab.tornado-tab::after {
        display: none;
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS - MATCHES MAIN APP
   ========================================================================== */
.asce-feature-item,
.asce-chapter-card,
.asce-step-card,
.asce-change-card,
.advisory-panel {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.asce-feature-item:hover,
.asce-chapter-card:hover,
.asce-step-card:hover,
.asce-change-card:hover {
    will-change: transform, box-shadow;
}

/* ==========================================================================
   UTILITY CLASSES - MATCHES MAIN APP
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.text-success { color: var(--success); }
.text-tornado { color: var(--tornado-red); }
.text-brand-primary { color: var(--brand-primary); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }

/* ==========================================================================
   CHAPTER SELECTOR AND DETAILS - CHAPTERS TAB
   ========================================================================== */
.asce-chapter-selector {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: 2px solid rgba(24, 30, 87, 0.15);
    box-shadow: var(--shadow-md);
}

.asce-chapter-group-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
    border-bottom: 3px solid var(--success);
    padding-bottom: var(--space-md);
}

.asce-chapter-dropdown {
    width: 100%;
    font-size: var(--text-base);
    font-weight: 600;
}

/* Style the Dash dropdown component */
.asce-chapter-dropdown .Select-control {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 2px solid rgba(24, 30, 87, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    min-height: 50px;
}

.asce-chapter-dropdown .Select-value-label,
.asce-chapter-dropdown .Select-placeholder {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: var(--text-base);
}

.asce-chapter-dropdown .Select-option {
    color: var(--premium-onyx);
    font-weight: 600;
    padding: var(--space-md);
}

.asce-chapter-dropdown .Select-option.is-focused {
    background: rgba(16, 185, 129, 0.15);
}

.asce-chapter-dropdown .Select-option.is-selected {
    background: var(--success);
    color: white;
}

.asce-chapter-details {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 2px solid rgba(16, 185, 129, 0.25);
    box-shadow: var(--shadow-lg);
    min-height: 250px;
}

.asce-chapter-details h4 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
    border-bottom: 3px solid var(--success);
    padding-bottom: var(--space-md);
}

.asce-chapter-details h5 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--brand-primary);
    margin: var(--space-lg) 0 var(--space-md) 0;
}

.asce-chapter-details p {
    color: var(--premium-onyx);
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.asce-chapter-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asce-chapter-details li {
    color: var(--premium-onyx);
    font-weight: 600;
    font-size: var(--text-base);
    padding: var(--space-sm) 0;
    padding-left: var(--space-xl);
    position: relative;
    line-height: 1.5;
}

.asce-chapter-details li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--success);
    font-size: 12px;
}

/* ==========================================================================
   FINAL OVERRIDES - ENSURE CONSISTENCY & HIGH CONTRAST
   ========================================================================== */
.asce-feature-item h4,
.asce-feature-item h5,
.asce-feature-item h6 {
    color: var(--brand-primary);
    font-weight: 700;
}

.asce-feature-item p {
    color: var(--premium-onyx);
}

.asce-chapter-card h4,
.asce-chapter-card h5,
.asce-chapter-card h6 {
    color: var(--brand-primary);
    font-weight: 700;
}

.asce-step-card h4,
.asce-step-card h5,
.asce-step-card h6 {
    color: var(--brand-primary);
    font-weight: 700;
}

.asce-change-card h4,
.asce-change-card h5,
.asce-change-card h6 {
    color: var(--tornado-red);
    font-weight: 700;
}

/* Ensure all text elements have proper contrast */
.asce-overview-card p,
.asce-adoption-card p,
.asce-wind-provisions p,
.asce-tornado-card p,
.asce-implementation-guide p,
.asce-changes-section p {
    color: var(--premium-onyx);
}

/* Ensure all interactive elements have proper cursor */
.action-btn,
.quick-advisory-btn,
.feature-advisory-btn,
.chapter-advisory-btn,
.tornado-check-btn,
.tornado-advisory-btn,
.inline-advisory-btn,
.section-advisory-btn,
.follow-up-btn,
.close-response-btn {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Special emphasis for tornado-related content */
.tornado-emphasis {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.1) 0%, 
        rgba(220, 38, 38, 0.05) 100%);
    border-left: 4px solid var(--tornado-red);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

/* Success highlights for current standard benefits */
.current-benefit {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1) 0%, 
        rgba(16, 185, 129, 0.05) 100%);
    border-left: 4px solid var(--success);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

/* Enhanced drop shadows for current standard elements */
.current-glow {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
}

.tornado-glow {
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.3));
}