/* ================================================
   OPEN UNIVERSITAS - MULTI-THEME CSS
   Light / Dark / Retro 80s Cyber Cosmic
   ================================================ */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ========== CSS CUSTOM PROPERTIES (THEME VARIABLES) ========== */

/* LIGHT THEME */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6a6a6a;
    --accent-primary: #2563eb;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #059669;
    --border-color: #d1d5db;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --glow-effect: none;
    --particle-display: none;
}

/* DARK THEME (Default) */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: #1a1a1a;
    --text-primary: #e5e4e2;
    --text-secondary: #c0c0c0;
    --text-tertiary: #a0a0a0;
    --accent-primary: #00ffff;
    --accent-secondary: #ff8c00;
    --accent-tertiary: #8b00ff;
    --border-color: #3a3a3a;
    --shadow-color: rgba(0, 255, 255, 0.1);
    --shadow-hover: rgba(0, 255, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #00ffff 0%, #8b00ff 100%);
    --glow-effect: 0 0 10px rgba(0, 255, 255, 0.3);
    --particle-display: none;
}

/* COSMIC THEME (Retro 80s Cyber) */
[data-theme="cosmic"] {
    --bg-primary: #000000;
    --bg-secondary: #1a0033;
    --bg-tertiary: #2a004d;
    --bg-card: rgba(138, 0, 255, 0.1);
    --text-primary: #e5e4e2;
    --text-secondary: #00ffff;
    --text-tertiary: #ffa500;
    --accent-primary: #00ff00;
    --accent-secondary: #ff00ff;
    --accent-tertiary: #ffd700;
    --border-color: #8b00ff;
    --shadow-color: rgba(138, 0, 255, 0.3);
    --shadow-hover: rgba(255, 0, 255, 0.5);
    --gradient-primary: linear-gradient(135deg, #00ff00 0%, #00ffff 50%, #ff00ff 100%);
    --glow-effect: 0 0 20px rgba(138, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.3);
    --particle-display: block;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ========== COSMIC BACKGROUND EFFECTS ========== */
.cosmic-bg {
    display: var(--particle-display);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at top, #1a0033 0%, #000000 100%);
    overflow: hidden;
}

[data-theme="cosmic"] .cosmic-bg::before,
[data-theme="cosmic"] .cosmic-bg::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

[data-theme="cosmic"] .cosmic-bg::before {
    top: 20%;
    left: 30%;
    animation-delay: 0.5s;
}

[data-theme="cosmic"] .cosmic-bg::after {
    top: 60%;
    left: 70%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ========== THEME SELECTOR ========== */
.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.theme-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-primary);
}

.theme-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="cosmic"] .theme-btn:hover {
    box-shadow: var(--glow-effect);
}

/* ========== NAVIGATION ========== */
.main-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

[data-theme="cosmic"] .main-nav {
    border-bottom: 2px solid var(--accent-tertiary);
    box-shadow: var(--glow-effect);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-secondary);
}

[data-theme="cosmic"] .logo-icon {
    animation: rotate-infinity 4s linear infinite;
    text-shadow: var(--glow-effect);
}

@keyframes rotate-infinity {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

[data-theme="cosmic"] .nav-menu a:hover {
    text-shadow: var(--glow-effect);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="cosmic"] .hero {
    background: radial-gradient(ellipse at center, rgba(138, 0, 255, 0.2) 0%, transparent 70%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="cosmic"] .hero-title {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.8)); }
}

.title-line {
    display: block;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-motto {
    margin: 2rem 0;
}

.motto-text {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--accent-secondary);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--accent-secondary);
    border-radius: 8px;
    display: inline-block;
}

[data-theme="cosmic"] .motto-text {
    box-shadow: var(--glow-effect);
    animation: border-pulse 2s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% { border-color: #ff8c00; }
    50% { border-color: #00ffff; }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
}

[data-theme="cosmic"] .stat-number {
    text-shadow: var(--glow-effect);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Rajdhani', sans-serif;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-hover);
}

[data-theme="cosmic"] .btn-primary:hover {
    box-shadow: var(--glow-effect);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ========== SECTIONS ========== */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

[data-theme="cosmic"] .section-title {
    background: linear-gradient(90deg, #00ff00, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
}

/* ========== PHILOSOPHY SECTION ========== */
.philosophy {
    background: var(--bg-secondary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-color: var(--accent-primary);
}

[data-theme="cosmic"] .philosophy-card:hover {
    box-shadow: var(--glow-effect);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.philosophy-card p {
    color: var(--text-tertiary);
    line-height: 1.7;
}

/* ========== RESEARCH SECTION ========== */
.research-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 3rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

[data-theme="cosmic"] .filter-btn.active {
    box-shadow: var(--glow-effect);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--shadow-hover);
    border-color: var(--accent-primary);
}

[data-theme="cosmic"] .research-card {
    border-color: var(--accent-tertiary);
}

[data-theme="cosmic"] .research-card:hover {
    box-shadow: var(--glow-effect);
    border-color: var(--accent-secondary);
}

.card-header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.confidence-badge,
.evidence-tier,
.consensus-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-badge.high {
    background: rgba(5, 150, 105, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.confidence-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.evidence-tier.primary {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.evidence-tier.reproducible {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
}

.evidence-tier.theoretical {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid #9ca3af;
}

.consensus-badge.challenging {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

[data-theme="cosmic"] .confidence-badge.high,
[data-theme="cosmic"] .evidence-tier,
[data-theme="cosmic"] .consensus-badge {
    box-shadow: 0 0 10px currentColor;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.card-abstract {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.375rem 0.875rem;
    background: var(--bg-tertiary);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.card-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--accent-secondary);
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* ========== CATEGORIES SECTION ========== */
.categories {
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
    border-color: var(--accent-primary);
}

[data-theme="cosmic"] .category-card:hover {
    box-shadow: var(--glow-effect);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-count {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========== SUBMIT SECTION ========== */
.submit-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.submit-info {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.submit-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.guidelines-list {
    list-style: none;
    padding-left: 0;
}

.guidelines-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.7;
}

.guidelines-list li strong {
    color: var(--accent-primary);
}

.info-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-secondary);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
}

.info-box h4 {
    color: var(--accent-secondary);
    margin-bottom: 0.75rem;
}

.info-box p {
    color: var(--text-tertiary);
    line-height: 1.7;
}

/* ========== FORM STYLES ========== */
.submit-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

[data-theme="cosmic"] .submit-form {
    box-shadow: var(--glow-effect);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

[data-theme="cosmic"] input:focus,
[data-theme="cosmic"] select:focus,
[data-theme="cosmic"] textarea:focus {
    box-shadow: var(--glow-effect);
}

small {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

input[type="file"] {
    padding: 0.5rem 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ========== ABOUT SECTION ========== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.about-text h3 {
    font-size: 1.75rem;
    color: var(--accent-primary);
    margin: 2rem 0 1rem;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.7;
}

.values-list strong {
    color: var(--accent-primary);
}

.about-stats-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.about-stats-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.contact-info {
    margin-top: 4rem;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-email a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.contact-email a:hover {
    color: var(--accent-secondary);
}

/* ========== FOOTER ========== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem;
}

[data-theme="cosmic"] .main-footer {
    border-top: 2px solid var(--accent-tertiary);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer-section p {
    color: var(--text-tertiary);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-tertiary);
}

.footer-motto {
    font-family: 'Fira Code', monospace;
    color: var(--accent-secondary);
    margin-top: 0.5rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .submit-content {
        grid-template-columns: 1fr;
    }
    
    .submit-info {
        position: static;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .theme-selector {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* ========================================================
   INNER PAGE COMPONENTS
   Added for: research.html, paper.html, guidelines.html,
   faq.html, contact.html, terms.html, privacy.html,
   licensing.html, 404.html, 500.html, network.html
   ======================================================== */

/* -------- MOBILE MENU (BUG FIX — was missing) -------- */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 2rem;
        gap: 1rem;
        z-index: 998;
        animation: ou-fadeIn .2s ease;
    }
    @keyframes ou-fadeIn {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .main-nav {
        position: relative;
    }
}

/* -------- ACTIVE NAV LINK -------- */
.nav-menu a.active {
    color: var(--accent-primary);
}
.nav-menu a.active::after {
    width: 100%;
}

/* -------- MISSING BADGE VARIANTS -------- */
.confidence-badge.low {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid #ef4444;
}
.evidence-tier.statistical {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}
.evidence-tier.speculative {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid #f97316;
}
.consensus-badge.aligned {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid #10b981;
}
.consensus-badge.revolutionary {
    background: rgba(139, 0, 255, 0.2);
    color: #a855f7;
    border: 1px solid #a855f7;
}

/* -------- PAGE HERO (inner pages) -------- */
.page-hero {
    padding: 4rem 2rem 3rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
[data-theme="cosmic"] .page-hero {
    background: radial-gradient(ellipse at center, rgba(138,0,255,.15) 0%, transparent 70%);
    border-bottom: 2px solid var(--accent-tertiary);
}
.page-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: .6rem;
}
[data-theme="cosmic"] .page-hero h1 {
    text-shadow: 0 0 20px rgba(0,255,0,.6), 0 0 40px rgba(255,0,255,.3);
}
.page-hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
}

/* -------- BREADCRUMB -------- */
.breadcrumb {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: .6rem 2rem;
    font-size: .88rem;
}
.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: .5rem;
    align-items: center;
    color: var(--text-tertiary);
}
.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .5; }

/* -------- MAIN CONTENT WRAPPER -------- */
.main-content {
    padding: 3rem 2rem;
}

/* -------- ANIMATE-IN (scroll reveal) -------- */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
}

/* -------- ACCORDION (FAQ) -------- */
.accordion { margin: 1.5rem 0; }
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: .75rem;
    overflow: hidden;
    transition: border-color .2s;
}
.accordion-item:has(.accordion-header.open) {
    border-color: var(--accent-primary);
}
[data-theme="cosmic"] .accordion-item:has(.accordion-header.open) {
    box-shadow: 0 0 12px rgba(0,255,255,.15);
}
.accordion-header {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    text-align: left;
    transition: background .2s, color .2s;
}
.accordion-header:hover,
.accordion-header.open {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}
.accordion-icon {
    font-size: 1.4rem;
    color: var(--accent-primary);
    transition: transform .3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.accordion-header.open .accordion-icon {
    transform: rotate(45deg);
}
.accordion-body {
    display: none;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    line-height: 1.85;
    border-top: 1px solid var(--border-color);
}
.accordion-body.open { display: block; }
.accordion-body ul {
    padding-left: 1.25rem;
    margin-top: .5rem;
}
.accordion-body li { margin-bottom: .4rem; }
.accordion-body a { color: var(--accent-primary); }

/* -------- PROSE (terms, privacy, about pages) -------- */
.prose-section {
    padding: 3rem 2rem 5rem;
}
.prose {
    max-width: 860px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.9;
}
.prose h2 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    font-size: 1.35rem;
    margin: 2.5rem 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-color);
}
.prose h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 1.5rem 0 .5rem;
    font-weight: 600;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent-primary); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text-primary); }
.prose code {
    font-family: 'Fira Code', monospace;
    background: var(--bg-tertiary);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .88em;
    color: var(--accent-secondary);
}
.prose blockquote {
    border-left: 4px solid var(--accent-primary);
    margin: 1.5rem 0;
    padding: .75rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}
.prose .highlight-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}
.prose .highlight-box h4 {
    color: var(--accent-secondary);
    margin-bottom: .5rem;
}
[data-theme="cosmic"] .prose h2 {
    text-shadow: 0 0 12px rgba(0,255,0,.4);
}

/* -------- CONTACT PAGE -------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
}
.contact-methods { margin-bottom: 2rem; }
.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: .85rem;
    transition: border-color .2s, box-shadow .2s;
}
.contact-method:hover {
    border-color: var(--accent-primary);
}
[data-theme="cosmic"] .contact-method:hover {
    box-shadow: 0 0 12px rgba(0,255,255,.15);
}
.contact-method-icon { font-size: 1.6rem; flex-shrink: 0; }
.contact-method-text h4 {
    color: var(--accent-primary);
    margin-bottom: .2rem;
    font-size: 1rem;
}
.contact-method-text p {
    color: var(--text-secondary);
    font-size: .95rem;
    margin: 0;
}
.contact-method-text a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}
[data-theme="cosmic"] .contact-form-card {
    box-shadow: var(--glow-effect);
}

/* -------- SEARCH (research page) -------- */
.search-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 65px;
    z-index: 100;
}
[data-theme="cosmic"] .search-section {
    border-bottom: 1px solid var(--accent-tertiary);
}
.search-inner { max-width: 1400px; margin: 0 auto; }
.search-bar-wrapper {
    position: relative;
    margin-bottom: .9rem;
}
.search-input-lg {
    width: 100%;
    padding: .9rem 1rem .9rem 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color .25s, box-shadow .25s;
}
.search-input-lg::placeholder { color: var(--text-tertiary); }
.search-input-lg:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0,255,255,.1);
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    color: var(--text-tertiary);
}
.search-clear-btn {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: .85rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.search-clear-btn:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
.search-clear-btn.visible { display: flex; }
.filter-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
}
.filter-select {
    padding: .45rem .8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: .95rem;
    cursor: pointer;
    transition: border-color .2s;
}
.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}
.filter-reset-btn {
    padding: .45rem .9rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-tertiary);
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
}
.filter-reset-btn:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}
.results-header {
    max-width: 1400px;
    margin: 1.25rem auto .25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.results-count {
    color: var(--text-secondary);
    font-size: .95rem;
}
.results-count strong { color: var(--accent-primary); }
.view-controls { display: flex; gap: .5rem; align-items: center; }
.sort-select {
    padding: .4rem .7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem;
    cursor: pointer;
}
.view-btn {
    padding: .4rem .65rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 1rem;
    transition: all .2s;
    line-height: 1;
}
.view-btn.active, .view-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.research-section {
    padding: 2rem 2rem 5rem;
}
.research-inner { max-width: 1400px; margin: 0 auto; }
.no-results {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-tertiary);
}
.no-results .no-results-icon { font-size: 4rem; margin-bottom: 1rem; }
.no-results h3 { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: .5rem; }
.research-grid.list-view {
    grid-template-columns: 1fr;
}
.research-grid.list-view .research-card {
    flex-direction: row;
    gap: 1.5rem;
}
.research-grid.list-view .card-abstract {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -------- PAPER VIEWER -------- */
.paper-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}
@media (max-width: 1024px) {
    .paper-layout { grid-template-columns: 1fr; }
}
.paper-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    position: sticky;
    top: 80px;
}
[data-theme="cosmic"] .paper-sidebar {
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 16px rgba(138,0,255,.15);
}
.paper-sidebar h3 {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-color);
}
.meta-item { margin-bottom: 1.25rem; }
.meta-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-tertiary);
    margin-bottom: .3rem;
    font-weight: 600;
}
.meta-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: .98rem;
}
.meta-value.muted { color: var(--text-secondary); font-weight: 400; }
.paper-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.paper-stat { text-align: center; }
.paper-stat-num {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 700;
}
.paper-stat-label {
    font-size: .7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}
.paper-actions { display: flex; flex-direction: column; gap: .75rem; }
.paper-viewer-area { min-height: 600px; }
.paper-viewer-area h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: .75rem;
    line-height: 1.3;
}
.paper-viewer-area .paper-byline {
    color: var(--text-tertiary);
    font-size: .95rem;
    margin-bottom: 1.5rem;
}
.viewer-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.viewer-tab {
    padding: .5rem 1.1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all .2s;
}
.viewer-tab.active, .viewer-tab:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}
.pdf-embed,
.html-embed {
    width: 100%;
    height: 82vh;
    min-height: 580px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    display: block;
}
.html-embed { background: #fff; }
.embed-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    color: var(--text-secondary);
}
.related-papers { margin-top: 3rem; }
.related-papers h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-family: 'Orbitron', monospace;
}

/* -------- ERROR PAGES -------- */
.error-page {
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}
.error-code {
    font-family: 'Orbitron', monospace;
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: .75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="cosmic"] .error-code {
    filter: drop-shadow(0 0 20px rgba(0,255,255,.5));
}
.error-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: .75rem;
}
.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.error-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* -------- LOADING SPINNER -------- */
.loading-spinner {
    display: inline-block;
    width: 42px;
    height: 42px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: ou-spin .8s linear infinite;
}
@keyframes ou-spin { to { transform: rotate(360deg); } }
.loading-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

/* -------- CITATION NETWORK -------- */
.network-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.network-inner { max-width: 1400px; margin: 0 auto; }
#citationCanvas {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    cursor: grab;
    display: block;
}
#citationCanvas:active { cursor: grabbing; }
.network-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: .75rem 0;
    font-size: .9rem;
    color: var(--text-secondary);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* -------- GUIDELINES PAGE -------- */
.guidelines-section { padding: 3rem 2rem 5rem; }
.guidelines-inner { max-width: 1100px; margin: 0 auto; }
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.guideline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all .3s ease;
}
.guideline-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}
[data-theme="cosmic"] .guideline-card:hover {
    box-shadow: var(--glow-effect);
}
.guideline-icon { font-size: 2.25rem; margin-bottom: .75rem; }
.guideline-card h3 {
    color: var(--accent-primary);
    font-size: 1.15rem;
    margin-bottom: .6rem;
}
.guideline-card p {
    color: var(--text-secondary);
    font-size: .95rem;
    line-height: 1.7;
}
.tier-table-wrapper { overflow-x: auto; margin: 2rem 0; }
.tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.tier-table th {
    background: var(--bg-tertiary);
    padding: .8rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid var(--border-color);
}
.tier-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: top;
}
.tier-table tr:hover td { background: var(--bg-tertiary); }

/* -------- LICENSING PAGE -------- */
.license-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}
.license-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all .3s;
}
.license-card.featured {
    border-color: var(--accent-primary);
}
[data-theme="cosmic"] .license-card.featured {
    box-shadow: var(--glow-effect);
}
.license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}
.license-icon { font-size: 3rem; margin-bottom: .75rem; }
.license-card h3 {
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: .75rem;
}
.license-card .price {
    font-family: 'Orbitron', monospace;
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: .5rem;
}
.license-card .price-sub {
    font-size: .85rem;
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
}
.license-features { list-style: none; padding: 0; text-align: left; }
.license-features li {
    padding: .4rem 0;
    color: var(--text-secondary);
    font-size: .95rem;
    border-bottom: 1px solid var(--border-color);
}
.license-features li:last-child { border-bottom: none; }
.license-features li::before { content: '✓ '; color: var(--accent-primary); font-weight: 700; }

/* -------- RESPONSIVE ADDENDA -------- */
@media (max-width: 1024px) {
    .paper-sidebar { position: static; }
}
@media (max-width: 768px) {
    .search-section { top: 0; position: relative; }
    .paper-layout { padding: 0 1rem; margin: 1rem auto; }
    .results-header { padding: 0 1rem; }
    .contact-form-card { padding: 1.5rem; }
    .network-controls { padding: 1rem; }
    .main-content { padding: 2rem 1.25rem; }
    .guidelines-section, .prose-section { padding: 2rem 1.25rem; }
    .research-grid.list-view .research-card { flex-direction: column; }
}
