/* ============================================================================
   science.html — validity / transparency long-read (/science)
   Extracted from the inline <style> block (dissection refactor).
   base.css (loaded later via bars.html) wins all specificity ties.
   ========================================================================== */

:root {
    /* base.css :root already provides --accent/--accent-glow/--bg-body/
       --bg-surface/--bg-surface-2/--border/--text-primary/--text-secondary
       (it loads later and wins the tie), so this page's duplicates were
       dropped. --font is page-only. */
    --font: var(--global-font-main, 'Outfit', sans-serif);
}

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

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    padding-bottom: 120px;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 36px;
    animation: fadeUp 0.4s ease;
}

.page-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.page-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

/* base.css .card wins the ties for chrome (glass background, border, 24px
   radius, 20px padding, themed shadow); the page drift is spacing + the
   entrance animation. */
.card {
    margin-bottom: 24px;
    animation: fadeUp 0.5s ease both;
}

h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ─── GAME EVIDENCE CARDS ─── */
.evidence-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ev-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.ev-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-surface-2);
    cursor: pointer;
    user-select: none;
}

.ev-icon {
    font-size: 1.8rem;
}

.ev-name {
    font-weight: 800;
    font-size: 1rem;
}

.ev-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.ev-arrow {
    margin-left: auto;
    font-size: 1.1rem;
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.ev-card.open .ev-arrow {
    transform: rotate(180deg);
}

.ev-body {
    display: none;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.ev-card.open .ev-body {
    display: block;
}

.cite-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.cite-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: var(--bg-surface-2);
    border-radius: 12px;
    font-size: 0.85rem;
}

.cite-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

.cite-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

/* ─── IRT SECTION ─── */
.irt-formula {
    background: var(--bg-surface-2);
    border-radius: 14px;
    padding: 16px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    margin: 16px 0;
    overflow-x: auto;
}

.parameter-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin-top: 14px;
    align-items: baseline;
}

.param-sym {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent);
}

.param-def {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ─── PRIVACY / COMPLIANCE SECTION ─── */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.comp-item {
    background: var(--bg-surface-2);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.comp-badge {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.comp-label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.comp-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ─── NORMATIVE DATA ─── */
.norm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 14px;
}

.norm-table th {
    text-align: left;
    padding: 8px 12px;
    background: var(--bg-surface-2);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.norm-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.norm-table tr:last-child td {
    border-bottom: none;
}

.norm-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* ─── CTA ─── */
.cta-box {
    background: linear-gradient(135deg, oklch(from var(--accent) l c h / 0.08), var(--bg-surface-2));
    border: 1px solid oklch(from var(--accent) l c h / 0.2);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border-radius: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--accent-glow);
}
