/* asce_version_comparison.css - ASCE Standards Comparison Tool */
/* Consistent with Wind Load Calculator webapp branding - Comparison Theme */
/* BRAND COLORS: #181E57 (dark blue), #0018FF (blue), #FFFFFF (white) */
/* COMPARISON THEME: Cyan (#06b6d4) for comparison/exchange elements */

/* ==========================================================================
   BASE PAGE STYLING - COMPARISON THEME
   ========================================================================== */

.asce-comparison-page,
.comparison-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    padding: 0;
    margin: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.asce-comparison-container {
    width: 100%;
    min-height: 100vh;
}

/* ==========================================================================
   COMPARISON HEADER - PROFESSIONAL WITH COMPARISON ACCENT
   ========================================================================== */

.comparison-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 3px solid rgba(6, 182, 212, 0.3);
    padding: 48px 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.comparison-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.08) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(6, 182, 212, 0.08) 100%);
    pointer-events: none;
}

.comparison-page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #181E57;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(24, 30, 87, 0.15);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.comparison-page-title i {
    color: #06b6d4;
    font-size: clamp(28px, 4vw, 40px);
    animation: exchangeRotate 3s ease-in-out infinite;
}

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

.comparison-page-subtitle {
    font-size: clamp(16px, 3vw, 20px);
    color: #374151;
    font-weight: 500;
    margin: 0 0 32px 0;
    position: relative;
    z-index: 1;
}

.comparison-badge-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.comparison-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.comparison-badge.interactive {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.comparison-badge.smart {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.comparison-badge.analysis {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.comparison-badge.educational {
    background: linear-gradient(135deg, #0018FF 0%, #181E57 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 24, 255, 0.4);
}

.comparison-badge:hover {
    transform: translateY(-2px) scale(1.05);
}

/* ==========================================================================
   COMPARISON TOOLBAR - PROFESSIONAL CONTROLS
   ========================================================================== */

.comparison-toolbar {
    max-width: 1400px;
    margin: 32px auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quick-access-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.advisory-quick-btn,
.search-quick-btn,
.migration-quick-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.search-quick-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.migration-quick-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.advisory-quick-btn:hover,
.search-quick-btn:hover,
.migration-quick-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.context-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.context-label {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.context-dropdown {
    flex: 1;
}

/* ==========================================================================
   MAIN COMPARISON INTERFACE - SIDE-BY-SIDE LAYOUT
   ========================================================================== */

.comparison-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px 24px;
}

.comparison-panels {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    margin-bottom: 48px;
    min-height: 600px;
}

.comparison-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.asce-22-panel {
    border-radius: 20px 0 0 20px;
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-right: none;
}

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

.asce-16-panel {
    border-radius: 0 20px 20px 0;
    border: 3px solid rgba(245, 158, 11, 0.3);
    border-left: none;
}

.asce-16-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.08) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(245, 158, 11, 0.08) 100%);
    pointer-events: none;
}

.comparison-connector {
    width: 80px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    border-top: 3px solid rgba(6, 182, 212, 0.5);
    border-bottom: 3px solid rgba(6, 182, 212, 0.5);
}

.comparison-connector-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    text-align: center;
}

.comparison-icon {
    font-size: 24px;
    animation: compareFloat 2s ease-in-out infinite alternate;
}

@keyframes compareFloat {
    0% { transform: translateY(-2px); }
    100% { transform: translateY(2px); }
}

.vs-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.insights-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.insights-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ==========================================================================
   STANDARD HEADERS AND CONTENT
   ========================================================================== */

.standard-header {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.standard-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
}

.standard-title.current {
    color: #065f46;
}

.standard-title.legacy {
    color: #92400e;
}

.standard-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.current {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.status-badge.legacy {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.feature-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge.tornado {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.feature-badge.pre-tornado {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.standard-content {
    position: relative;
    z-index: 1;
    min-height: 400px;
}

/* ==========================================================================
   COMPARISON CARDS AND CONTENT
   ========================================================================== */

.comparison-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #181E57;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #06b6d4;
    padding-bottom: 8px;
    display: inline-block;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.comparison-card.current {
    border-color: rgba(16, 185, 129, 0.3);
}

.comparison-card.legacy {
    border-color: rgba(245, 158, 11, 0.3);
}

.comparison-card.tornado-card {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.comparison-card.warning-card {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.comparison-item {
    flex: 1;
}

.comparison-subsection {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.comparison-list,
.current-list,
.legacy-list,
.innovations-list,
.legacy-approach-list,
.methodology-list,
.tornado-features-list,
.limitation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li,
.current-list li,
.legacy-list li,
.innovations-list li,
.legacy-approach-list li,
.methodology-list li,
.tornado-features-list li,
.limitation-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-weight: 500;
}

.current-list li::before,
.innovations-list li::before,
.tornado-features-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 14px;
}

.legacy-list li::before,
.legacy-approach-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 14px;
}

.limitation-list li::before {
    content: '❌';
    position: absolute;
    left: 0;
    font-size: 14px;
}

.methodology-list.enhanced li::before {
    content: '🔬';
    position: absolute;
    left: 0;
    font-size: 14px;
}

.methodology-list.traditional li::before {
    content: '📊';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* Special highlighting */
.tornado-highlight,
.warning-highlight {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.tornado-highlight {
    background: rgba(254, 242, 242, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.warning-highlight {
    background: rgba(254, 226, 226, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #7f1d1d;
}

.new-badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    animation: newPulse 2s ease-in-out infinite;
}

@keyframes newPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==========================================================================
   CHAPTERS AND STRUCTURE DISPLAY
   ========================================================================== */

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-item {
    padding: 8px 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 6px;
    border-left: 4px solid #cbd5e1;
    transition: all 0.3s ease;
}

.chapter-item.new-chapter {
    background: rgba(254, 242, 242, 0.8);
    border-left-color: #ef4444;
    animation: chapterGlow 3s ease-in-out infinite alternate;
}

@keyframes chapterGlow {
    0% { box-shadow: 0 0 0 rgba(239, 68, 68, 0.3); }
    100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
}

.chapter-item.missing-chapter {
    background: rgba(249, 250, 251, 0.6);
    border-left-color: #9ca3af;
    opacity: 0.7;
}

.missing-indicator {
    font-style: italic;
    color: #6b7280;
}

/* ==========================================================================
   ADVISORY TRIGGER BUTTONS
   ========================================================================== */

.advisory-trigger {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.advisory-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.advisory-btn.tornado-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.advisory-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.6);
}

.advisory-btn.tornado-btn:hover {
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
}

/* ==========================================================================
   ADOPTION AND IMPLEMENTATION STATUS
   ========================================================================== */

.adoption-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adoption-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adoption-item.current-adoption {
    background: rgba(240, 253, 244, 0.8);
    border-left: 4px solid #10b981;
    color: #065f46;
}

.adoption-item.legacy-adoption {
    background: rgba(254, 243, 199, 0.8);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.migration-scenarios,
.continuation-scenarios {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.migration-item,
.continuation-item {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.migration-item.immediate {
    background: rgba(240, 253, 244, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.migration-item.consider {
    background: rgba(254, 243, 199, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.migration-item.continue {
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #374151;
}

.continuation-item {
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #374151;
}

/* ==========================================================================
   INTERACTIVE ADVISORY SYSTEM
   ========================================================================== */

.advisory-system {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: 24px;
    padding: 32px;
    margin-top: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.advisory-system::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.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.advisory-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.advisory-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.advisory-description {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.advisory-interface {
    position: relative;
    z-index: 1;
}

.quick-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.quick-question-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.4;
}

.quick-question-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.advisory-chat-container {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

.chat-placeholder {
    background: rgba(255, 255, 255, 0.95);
    color: #6b7280;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    font-style: italic;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: text;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.chat-placeholder:hover {
    background: white;
    color: #374151;
    border-color: #06b6d4;
}

.advisory-responses {
    margin-top: 20px;
    min-height: 60px;
}

.advisory-response-card {
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: responseSlideIn 0.4s ease-out;
}

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

.advisory-response-title {
    font-size: 18px;
    font-weight: 700;
    color: #181E57;
    margin: 0 0 16px 0;
}

.advisory-response-content {
    line-height: 1.6;
    margin-bottom: 20px;
}

.response-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.follow-up-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.follow-up-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ==========================================================================
   DETAILED COMPARISON SECTION
   ========================================================================== */

.detailed-comparison-section {
    max-width: 1400px;
    margin: 48px auto 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ========================================================================== */

@media (max-width: 1024px) {
    .comparison-panels {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .asce-22-panel {
        border-radius: 20px 20px 0 0;
        border-right: 3px solid rgba(16, 185, 129, 0.3);
        border-bottom: none;
    }
    
    .asce-16-panel {
        border-radius: 0 0 20px 20px;
        border-left: 3px solid rgba(245, 158, 11, 0.3);
        border-top: none;
    }
    
    .comparison-connector {
        width: 100%;
        height: 60px;
        border-left: 3px solid rgba(6, 182, 212, 0.5);
        border-right: 3px solid rgba(6, 182, 212, 0.5);
        border-top: none;
        border-bottom: none;
    }
    
    .comparison-connector-content {
        flex-direction: row;
    }
    
    .comparison-icon {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .asce-comparison-page {
        padding: 0;
    }
    
    .comparison-header {
        padding: 32px 16px;
    }
    
    .comparison-page-title {
        font-size: 28px;
        flex-direction: column;
        gap: 8px;
    }
    
    .comparison-page-subtitle {
        font-size: 16px;
    }
    
    .comparison-badge-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .comparison-toolbar {
        flex-direction: column;
        gap: 16px;
        padding: 20px 16px;
        margin: 16px;
    }
    
    .quick-access-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .advisory-quick-btn,
    .search-quick-btn,
    .migration-quick-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .context-selector {
        width: 100%;
        min-width: auto;
    }
    
    .comparison-main {
        padding: 0 16px 32px 16px;
    }
    
    .comparison-panels {
        min-height: auto;
    }
    
    .comparison-panel {
        padding: 24px 16px;
    }
    
    .comparison-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .quick-questions-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .quick-question-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .advisory-system {
        padding: 24px 16px;
    }
    
    .advisory-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }
    
    .advisory-chat-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .comparison-header {
        padding: 24px 12px;
    }
    
    .comparison-toolbar {
        margin: 12px;
        padding: 16px 12px;
    }
    
    .comparison-main {
        padding: 0 12px 24px 12px;
    }
    
    .comparison-panel {
        padding: 20px 12px;
    }
    
    .advisory-system {
        margin-top: 32px;
        padding: 20px 12px;
    }
    
    .standard-title {
        font-size: 20px;
    }
    
    .comparison-section-title {
        font-size: 18px;
    }
}

/* ==========================================================================
   APPLICABILITY AND CRITERIA STYLING
   ========================================================================== */

.applicability-criteria {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.criteria-item {
    padding: 8px 12px;
    background: rgba(240, 253, 244, 0.6);
    border-radius: 6px;
    border-left: 4px solid #10b981;
    font-weight: 500;
    color: #065f46;
}

.limitation-text {
    color: #6b7280;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.risk-callout {
    background: rgba(254, 226, 226, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #991b1b;
    font-weight: 600;
}

/* ==========================================================================
   ACCESSIBILITY AND PERFORMANCE
   ========================================================================== */

@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 #06b6d4 !important;
    outline-offset: 3px !important;
    border-radius: 4px !important;
}

.asce-comparison-page,
.comparison-header,
.comparison-panel,
.comparison-card,
.advisory-system {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .asce-comparison-page {
        background: white !important;
    }
    
    .comparison-header,
    .comparison-panel,
    .comparison-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .advisory-system {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 2px solid #000 !important;
    }
    
    .advisory-quick-btn,
    .search-quick-btn,
    .migration-quick-btn,
    .advisory-btn,
    .quick-question-btn {
        background: white !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
    
    .comparison-connector {
        background: #e5e7eb !important;
        color: #000 !important;
    }
}

/* ==========================================================================
   END OF ASCE VERSION COMPARISON CSS
   ========================================================================== */