/* Evidence page specific styles */

.evidence-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Audience Toggle Styles */
.audience-toggle-container {
    position: fixed;
    top: 80px;
    right: 280px; /* Positioned next to progress tracker */
    background: rgba(18, 29, 51, 0.95);
    border: 1px solid rgba(125, 140, 196, 0.3);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.audience-toggle-container.minimized {
    right: 280px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
}

.audience-toggle-container.minimized .audience-toggle,
.audience-toggle-container.minimized .toggle-hint {
    display: none;
}

.toggle-minimize-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 4px;
    color: var(--cosmic-highlight);
    font-size: 12px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-minimize-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.5);
}

.audience-toggle-container.minimized .toggle-minimize-btn {
    position: static;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audience-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    white-space: nowrap;
}

.toggle-label {
    color: rgba(178, 198, 239, 0.7);
    font-size: 0.875rem;
    transition: all var(--transition-speed);
    user-select: none;
}

.toggle-label.active {
    color: var(--starlight);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.3);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(125, 140, 196, 0.2);
    transition: 0.4s;
    border-radius: 28px;
    border: 1px solid rgba(125, 140, 196, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: var(--starlight);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background-color: rgba(100, 255, 218, 0.3);
    border-color: var(--cosmic-highlight);
}

input:checked + .toggle-slider:before {
    transform: translateX(32px);
    background-color: var(--cosmic-highlight);
}

.toggle-hint {
    color: var(--distant-stars);
    font-size: 0.75rem;
    text-align: center;
    margin-top: var(--space-xs);
    opacity: 0.7;
}

/* Hide technical elements in general mode */
.tech-only {
    transition: opacity var(--transition-speed);
}

/* Your RFT Journey section */
.rft-journey {
    background: linear-gradient(135deg, rgba(124, 116, 255, 0.05), rgba(100, 255, 218, 0.05));
    border: 1px solid rgba(124, 116, 255, 0.2);
    border-radius: var(--card-radius);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.rft-journey h2 {
    color: var(--scalaron-glow);
    margin-bottom: var(--space-md);
}

.journey-text {
    color: var(--distant-stars);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Proof Pipeline Diagram */
.proof-pipeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(18, 29, 51, 0.6);
    border-radius: var(--border-radius);
}

.pipeline-step {
    text-align: center;
    position: relative;
}

.pipeline-icon {
    width: 60px;
    height: 60px;
    background: rgba(100, 255, 218, 0.15);
    border: 2px solid var(--cosmic-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.5rem;
    color: var(--cosmic-highlight);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    transition: all var(--transition-speed);
}

.pipeline-step:hover .pipeline-icon {
    background: rgba(100, 255, 218, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

.pipeline-arrow {
    position: absolute;
    top: 30px;
    right: -3rem;
    width: 2rem;
    height: 2px;
    background: var(--nebula-blue);
    line-height: 0;
}

.pipeline-arrow::after {
    content: "▶";
    position: absolute;
    right: -8px;
    top: -8px;
    color: var(--nebula-blue);
    line-height: 2px;
}

.pipeline-label {
    color: var(--distant-stars);
    font-size: 0.9rem;
}

/* Two-layer narrative toggle */
.technical-derivation {
    margin-top: 1rem;
}

.derivation-toggle {
    background: rgba(18, 29, 51, 0.8);
    border: 1px solid rgba(125, 140, 196, 0.3);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--starlight);
    transition: all var(--transition-speed);
}

.derivation-toggle:hover {
    background: rgba(18, 29, 51, 0.9);
    border-color: var(--cosmic-highlight);
}

.derivation-toggle::after {
    content: "▼";
    transition: transform 0.3s;
}

.derivation-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Assumption boxes */
.assumption-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #FFC107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

.assumption-box::before {
    content: "⚠️ ";
    font-size: 1.2rem;
}

.assumption-box p {
    color: var(--distant-stars);
    margin: 0;
}

.assumption-box strong {
    color: #FFC107;
}

/* Citation popovers */
.citation {
    position: relative;
    color: var(--nebula-blue);
    cursor: help;
    border-bottom: 1px dotted var(--nebula-blue);
    outline: none;
}

.citation-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 11, 20, 0.95);
    border: 1px solid var(--nebula-blue);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.citation:hover .citation-popover,
.citation:focus .citation-popover {
    opacity: 1;
    visibility: visible;
}

.citation-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(7, 11, 20, 0.95);
}

/* Parameter controls */
.parameter-controls {
    background: rgba(18, 29, 51, 0.8);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.parameter-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.parameter-slider label {
    color: var(--distant-stars);
    min-width: 150px;
}

.parameter-slider input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(125, 140, 196, 0.3);
    border-radius: 3px;
    outline: none;
}

.parameter-slider input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    background: var(--cosmic-highlight);
    border-radius: 50%;
    cursor: pointer;
}

.parameter-value {
    color: var(--starlight);
    font-family: var(--heading-font);
    min-width: 60px;
    text-align: right;
}

.parameter-result {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

/* Download button */
.download-jupyter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(125, 140, 196, 0.2);
    border: 1px solid rgba(125, 140, 196, 0.3);
    border-radius: var(--border-radius);
    color: var(--distant-stars);
    text-decoration: none;
    transition: all var(--transition-speed);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.download-jupyter:hover {
    background: rgba(125, 140, 196, 0.3);
    color: var(--starlight);
}

/* Lay summary styling */
.lay-summary {
    background: rgba(100, 255, 218, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.lay-summary h3 {
    color: var(--nebula-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.lay-summary p {
    color: var(--distant-stars);
    line-height: 1.6;
}

/* Progress tracker with scrollspy highlight */
.progress-item.active .progress-label {
    color: var(--starlight);
    font-weight: 600;
}

/* KaTeX override for better visibility */
.katex {
    color: var(--starlight);
    font-size: 1.1em;
}

/* Twistor explanation section */
.twistor-explanation {
    background: rgba(124, 116, 255, 0.05);
    border: 1px solid rgba(124, 116, 255, 0.2);
    border-radius: var(--card-radius);
    padding: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.twistor-explanation h2 {
    color: var(--scalaron-glow);
    text-align: center;
    margin-bottom: var(--space-md);
}

.explanation-intro {
    text-align: center;
    color: var(--distant-stars);
    margin-bottom: var(--space-lg);
}

.twistor-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.reason-card {
    background: rgba(7, 11, 20, 0.6);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
}

.reason-card h3 {
    color: var(--twistor-glow);
    margin-bottom: var(--space-md);
}

.reason-card p {
    color: var(--distant-stars);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.analogy {
    font-style: italic;
    color: var(--nebula-blue);
    background: rgba(125, 140, 196, 0.1);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    margin-top: var(--space-sm);
}

.technical-note {
    background: rgba(18, 29, 51, 0.8);
    border-left: 2px solid var(--scalaron-glow);
    padding: var(--space-sm);
    font-family: var(--heading-font);
    font-size: 0.9rem;
    color: var(--starlight);
    margin-top: var(--space-sm);
}

.connection-equation {
    background: rgba(7, 11, 20, 0.8);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    text-align: center;
    font-family: var(--heading-font);
    color: var(--starlight);
    margin: var(--space-sm) 0;
}

/* Why it matters boxes */
.why-it-matters {
    background: rgba(100, 255, 218, 0.05);
    border-left: 3px solid var(--cosmic-highlight);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius);
}

.why-it-matters h4 {
    color: var(--cosmic-highlight);
    margin-bottom: var(--space-xs);
}

.why-it-matters p {
    color: var(--distant-stars);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Galaxy rotation diagram */
.rotation-diagram {
    margin-bottom: var(--space-lg);
}

/* Enhanced summary table */
.summary-table {
    width: 100%;
    background: rgba(7, 11, 20, 0.6);
    border: 1px solid rgba(125, 140, 196, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    border-collapse: collapse;
}

.summary-table th {
    background: rgba(18, 29, 51, 0.8);
    color: var(--starlight);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(125, 140, 196, 0.2);
}

.summary-table td {
    padding: var(--space-md);
    color: var(--distant-stars);
    border-bottom: 1px solid rgba(125, 140, 196, 0.1);
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-table .error {
    color: var(--cosmic-highlight);
    font-weight: 500;
}

.summary-table .impact {
    color: var(--nebula-blue);
    font-size: 0.9rem;
}

.summary-note {
    text-align: center;
    margin-top: var(--space-lg);
}

/* All predictions CTA */
.all-predictions-cta {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.05), rgba(124, 116, 255, 0.05));
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: var(--card-radius);
    padding: var(--space-xxl);
    margin-top: var(--space-xl);
    text-align: center;
}

.all-predictions-cta h3 {
    color: var(--cosmic-highlight);
    margin-bottom: var(--space-sm);
}

.all-predictions-cta p {
    color: var(--distant-stars);
    margin-bottom: var(--space-lg);
}

.teaser-predictions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.teaser-card {
    background: rgba(7, 11, 20, 0.6);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.teaser-label {
    color: var(--distant-stars);
    font-size: 0.875rem;
}

.teaser-value {
    color: var(--starlight);
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
}

.teaser-error {
    color: var(--cosmic-highlight);
    font-size: 0.875rem;
}

.explore-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--cosmic-highlight);
    color: var(--space-black);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
}

.explore-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
}

.btn-arrow {
    transition: transform var(--transition-speed);
}

.explore-all-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Limitations section */
.limitations-section {
    background: rgba(126, 107, 158, 0.05);
    border: 1px solid rgba(126, 107, 158, 0.2);
    border-radius: var(--card-radius);
    padding: var(--space-xl);
    margin-top: var(--space-xxl);
}

.limitations-section h2 {
    color: var(--nebula-purple);
    text-align: center;
    margin-bottom: var(--space-md);
}

.limitations-intro {
    text-align: center;
    color: var(--distant-stars);
    margin-bottom: var(--space-lg);
}

.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.limitation-card {
    background: rgba(7, 11, 20, 0.6);
    border-radius: var(--border-radius);
    padding: var(--space-md);
}

.limitation-card h3 {
    color: var(--nebula-purple);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.limitation-card p {
    color: var(--distant-stars);
    font-size: 0.9rem;
    line-height: 1.6;
}

.limitations-footer {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--distant-stars);
}

/* Step notes for clarity */
.step-note {
    font-style: italic;
    color: var(--nebula-blue);
    font-size: 0.9rem;
    margin-top: var(--space-xs);
}

/* Copy button for equations */
.copy-equation {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(125, 140, 196, 0.2);
    border: 1px solid rgba(125, 140, 196, 0.3);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--distant-stars);
    transition: all 0.2s;
}

.copy-equation:hover {
    background: rgba(125, 140, 196, 0.3);
    color: var(--starlight);
}

.copy-equation.copied {
    background: var(--cosmic-highlight);
    color: var(--space-black);
}

.evidence-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.evidence-header h1 {
    color: var(--starlight);
    margin-bottom: var(--space-md);
}

.evidence-intro {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    color: var(--distant-stars);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Interactive calculation sections */
.calculation-section {
    background: rgba(18, 29, 51, 0.6);
    border-radius: var(--card-radius);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(125, 140, 196, 0.2);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: 1rem;
}

.calc-title {
    color: var(--cosmic-highlight);
    font-size: 1.5rem;
    margin: 0;
}

.calc-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cosmic-highlight);
}

.status-text {
    color: var(--distant-stars);
    font-size: 0.875rem;
}

/* Step-by-step calculation */
.calc-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.calc-step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.calc-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--cosmic-highlight);
    color: var(--space-black);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    cursor: pointer;
}

.step-description {
    color: var(--distant-stars);
    margin-bottom: var(--space-sm);
}

.step-equation {
    background: rgba(7, 11, 20, 0.6);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--starlight);
    text-align: center;
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
}

.step-result {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    text-align: center;
}

.result-value {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--cosmic-highlight);
    font-weight: 700;
}

.result-comparison {
    color: var(--distant-stars);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* Interactive controls */
.calc-controls {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.calc-button {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: rgba(125, 140, 196, 0.2);
    border: 1px solid rgba(125, 140, 196, 0.3);
    border-radius: var(--border-radius);
    color: var(--distant-stars);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.calc-button:hover {
    background: rgba(125, 140, 196, 0.3);
    color: var(--starlight);
}

.calc-button.primary {
    background: rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
    color: var(--cosmic-highlight);
}

.calc-button.primary:hover {
    background: rgba(100, 255, 218, 0.3);
}

/* Summary grid */
.evidence-summary {
    margin-top: var(--space-xxl);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.summary-card {
    background: rgba(7, 11, 20, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    text-align: center;
}

.summary-label {
    color: var(--distant-stars);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.summary-value {
    color: var(--starlight);
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.summary-error {
    color: var(--cosmic-highlight);
    font-size: 0.875rem;
}

/* LIGO Critical Test Styling */
.calculation-section.ligo-critical {
    border: 2px solid rgba(100, 255, 218, 0.3);
    background: linear-gradient(to bottom,
                rgba(100, 255, 218, 0.03),
                rgba(18, 29, 51, 0.6));
}

.critical-test-banner {
    background: rgba(100, 255, 218, 0.1);
    border-radius: var(--border-radius);
    padding: var(--space-sm) var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.banner-icon {
    font-size: 1.5rem;
}

.banner-text {
    color: var(--cosmic-highlight);
    font-weight: 600;
    font-size: 0.95rem;
}

.ligo-significance {
    background: rgba(7, 11, 20, 0.6);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    border-left: 3px solid var(--cosmic-highlight);
}

.ligo-significance h3 {
    color: var(--cosmic-highlight);
    margin-bottom: var(--space-md);
}

.ligo-significance p {
    color: var(--distant-stars);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.ligo-significance .timeline {
    color: var(--nebula-blue);
    font-weight: 500;
}

/* Progress indicator */
.evidence-progress {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(18, 29, 51, 0.95);
    border: 1px solid rgba(125, 140, 196, 0.3);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.evidence-progress.minimized {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
}

.evidence-progress.minimized .progress-title,
.evidence-progress.minimized .progress-items {
    display: none;
}

.progress-minimize-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 4px;
    color: var(--cosmic-highlight);
    font-size: 12px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.progress-minimize-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.5);
}

.evidence-progress.minimized .progress-minimize-btn {
    position: static;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-title {
    color: var(--starlight);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.progress-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    transition: all var(--transition-speed);
}

.progress-item:hover {
    transform: translateX(4px);
}

.progress-check {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(125, 140, 196, 0.4);
    border-radius: 4px;
    transition: all var(--transition-speed);
    background: rgba(7, 11, 20, 0.5);
}

.progress-item.active .progress-check {
    background: var(--cosmic-highlight);
    border-color: var(--cosmic-highlight);
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.5);
}

.progress-item.active .progress-check::after {
    content: "✓";
    color: var(--space-black);
    font-size: 14px;
    font-weight: bold;
    display: block;
    text-align: center;
    line-height: 14px;
}

.progress-label {
    color: rgba(178, 198, 239, 0.8);
    font-size: 0.875rem;
    transition: all var(--transition-speed);
}

.progress-item.active .progress-label {
    color: var(--starlight);
    font-weight: 500;
}

/* Glossary terms */
.glossary-term {
    border-bottom: 1px dotted var(--nebula-blue);
    cursor: help;
    position: relative;
}

.glossary-term:hover {
    color: var(--cosmic-highlight);
}

/* Mini derivation styles */
.mini-derivation {
    background: rgba(18, 29, 51, 0.6);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-top: var(--space-sm);
}

.derivation-toggle.mini {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin-top: var(--space-sm);
}

/* Responsive design */
@media (max-width: 992px) {
    .audience-toggle-container {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: var(--space-lg);
    }
    
    .evidence-progress {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: var(--space-lg);
    }
    
    .twistor-reasons {
        grid-template-columns: 1fr;
    }
    
    .summary-table {
        font-size: 0.875rem;
    }
    
    .summary-table th,
    .summary-table td {
        padding: var(--space-sm);
    }
}

@media (max-width: 768px) {
    .ligo-prediction-box {
        grid-template-columns: 1fr;
    }
    
    .limitations-grid {
        grid-template-columns: 1fr;
    }
    
    .proof-pipeline {
        flex-direction: column;
    }
    
    .pipeline-arrow {
        display: none;
    }
}

@media (max-height: 600px) {
    .evidence-progress {
        display: none;
    }
}

/* New styles for improved evidence page */

/* Story Opener */
.story-opener {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 197, 94, 0.1));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.story-opener h3 {
    color: var(--deep-space);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.story-opener p {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.story-opener p:first-of-type {
    font-style: italic;
    color: var(--distant-stars);
}

/* Visual Comparison */
.visual-comparison {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--dark-matter);
    border-radius: 12px;
}

.visual-comparison h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--deep-space);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.old-way, .rft-way {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.old-way:hover, .rft-way:hover {
    transform: translateY(-4px);
}

.comparison-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.old-way {
    border: 2px solid #ef4444;
}

.rft-way {
    border: 2px solid #22c55e;
}

/* Smoking Gun Technical Box */
.smoking-gun-technical {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid var(--cosmic-purple);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.smoking-gun-technical h3 {
    color: var(--cosmic-purple);
    margin-bottom: 1rem;
}

.math-highlight {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-family: 'KaTeX_Math', serif;
    font-size: 1.25rem;
    margin: 1rem 0;
    border: 1px solid var(--cosmic-purple);
}

/* Echo Analogy */
.echo-analogy {
    background: var(--quantum-foam);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.echo-analogy h4 {
    color: var(--deep-space);
    margin-bottom: 1rem;
}

.echo-analogy p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0.5rem 0;
    padding-left: 1rem;
}

/* Error Analysis */
.error-analysis {
    background: rgba(251, 207, 232, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.error-analysis h5 {
    color: #ec4899;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.error-analysis ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-analysis li {
    font-size: 0.85rem;
    padding: 0.25rem 0;
    color: var(--distant-stars);
}

.error-analysis li::before {
    content: "• ";
    color: #ec4899;
    font-weight: bold;
}

/* Paper Reference */
.paper-reference {
    background: var(--quantum-foam);
    border-left: 4px solid var(--cosmic-purple);
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.paper-reference a {
    color: var(--cosmic-purple);
    text-decoration: none;
    font-weight: 600;
}

.paper-reference a:hover {
    text-decoration: underline;
}

/* Confidence Indicators */
.confidence-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(18, 29, 51, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    font-size: 0.875rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
}

.confidence-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.confidence-indicator.high {
    border: 2px solid var(--cosmic-highlight);
    background: rgba(100, 255, 218, 0.1);
}

.confidence-indicator.medium {
    border: 2px solid #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.confidence-indicator.low {
    border: 2px solid #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.confidence-icon {
    font-size: 1.2rem;
    filter: saturate(1.5);
}

.confidence-text {
    color: var(--starlight);
    font-weight: 500;
}

/* Contact Form */
.contact-section {
    background: var(--dark-matter);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
}

.contact-section h3 {
    color: var(--deep-space);
    margin-bottom: 2rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--cosmic-purple);
}

#contact-form button {
    background: linear-gradient(135deg, var(--cosmic-purple), var(--deep-space));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Hide/show elements based on audience toggle */
.general-only {
    display: none;
}

.tech-only {
    display: block;
}

body.general-audience .general-only {
    display: block;
}

body.general-audience .tech-only {
    display: none;
}

/* Update calc-header for confidence indicators */
.calc-header {
    position: relative;
}

.calculation-section {
    position: relative;
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .confidence-indicator {
        position: static;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
}

/* Deep-Math Demos Styles */
.deep-math-demos {
    background: linear-gradient(135deg, rgba(7, 11, 20, 0.6), rgba(18, 29, 51, 0.4));
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 3rem 0;
}

.deep-math-demos h2 {
    color: var(--cosmic-highlight);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.demo-card {
    background: rgba(18, 29, 51, 0.6);
    border: 1px solid rgba(125, 140, 196, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-4px);
    border-color: var(--cosmic-highlight);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.15);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.demo-header h3 {
    color: var(--starlight);
    margin: 0;
    font-size: 1.2rem;
}

.demo-badge {
    background: rgba(100, 255, 218, 0.1);
    color: var(--cosmic-highlight);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.demo-description {
    color: var(--distant-stars);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.demo-preview {
    background: rgba(7, 11, 20, 0.8);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--cosmic-highlight);
}

.formula-preview {
    font-family: 'Courier New', monospace;
    color: var(--cosmic-highlight);
    font-size: 0.9rem;
    text-align: center;
}

.demo-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-button {
    background: linear-gradient(135deg, var(--cosmic-highlight), #4ecdc4);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
}

.demo-runtime {
    color: var(--distant-stars);
    font-size: 0.85rem;
    font-style: italic;
}

.demo-footer {
    background: rgba(7, 11, 20, 0.6);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.demo-footer h4 {
    color: var(--cosmic-highlight);
    margin-bottom: 1rem;
}

.demo-footer p {
    color: var(--distant-stars);
    margin-bottom: 1rem;
}

.ci-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ci-badge {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff7f;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Mobile responsiveness for demos */
@media (max-width: 768px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .demo-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .demo-button {
        text-align: center;
    }
    
    .ci-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
}