/* TSO v10.3 — Shared Stylesheet — February 2026 */
:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #1a252f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--light);
}

/* Navigation */
nav {
    background: var(--dark);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a:hover { color: var(--accent); }
nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero .subtitle { font-size: 1.2rem; opacity: 0.9; font-style: italic; }
.hero .version { margin-top: 0.5rem; opacity: 0.7; font-size: 0.95rem; }

/* Motto Banner */
.motto-banner {
    background: linear-gradient(90deg, var(--accent) 0%, #2980b9 100%);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Cards */
.section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.section h2 {
    color: var(--primary);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.section h3 {
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
}

.section h4 {
    color: var(--accent);
    margin: 1rem 0 0.5rem 0;
}

/* Highlight Boxes */
.highlight-box {
    background: #eaf6ff;
    border-left: 4px solid var(--accent);
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.highlight-box.success {
    background: #eafaf1;
    border-left-color: var(--success);
}

.highlight-box.warning {
    background: #fef9e7;
    border-left-color: var(--warning);
}

.highlight-box.danger {
    background: #fdedec;
    border-left-color: var(--danger);
}

.highlight-box.retraction {
    background: #fef5e7;
    border-left-color: var(--warning);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

th, td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) { background: #f8f9fa; }
tr:hover { background: #eef2f7; }

/* Status Indicators */
.pass { color: var(--success); font-weight: bold; }
.fail { color: var(--danger); font-weight: bold; }
.pending { color: var(--warning); font-weight: bold; }
.retracted { color: #999; font-weight: bold; text-decoration: line-through; }

/* Stat Boxes */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stat-box .number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.stat-box .label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
}

/* Two-Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.col-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.col-box h4 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.12); }

.card h4 { color: var(--primary); margin-bottom: 0.5rem; }

.card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.card a:hover { text-decoration: underline; }

/* Code */
code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.9rem;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Equation Display */
.equation {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-align: center;
    margin: 1rem 0;
    line-height: 1.8;
}

/* Citation */
.citation {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #ddd;
}

.citation-list {
    list-style: none;
    padding: 0;
}

.citation-list li {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.citation-list li::before {
    content: "📄";
    position: absolute;
    left: 0;
}

/* Links */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Colab Links */
.colab-link {
    display: inline-block;
    background: var(--warning);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.colab-link:hover { background: #e67e22; text-decoration: none; }

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer a { color: var(--accent); }

footer .motto {
    font-style: italic;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav { padding: 0.8rem 1rem; }
    nav a { margin-right: 1rem; font-size: 0.85rem; }
    .hero h1 { font-size: 1.8rem; }
    .container { padding: 1rem; }
    .section { padding: 1.2rem; }
    .two-col { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    table { font-size: 0.85rem; }
    th, td { padding: 6px 8px; }
    .card-grid { grid-template-columns: 1fr; }
    div[style*="overflow-x"] { overflow-x: auto; }
}

@media print {
    body { background: white; }
    nav, .motto-banner { display: none; }
    .section { box-shadow: none; break-inside: avoid; }
    a { color: black; text-decoration: underline; }
}
