
#primer-content { margin:0; padding:0; }

.primer-section {
    position:relative;
    padding:180px 24px 200px;
    max-width:700px;
    margin:0 auto;
}

.primer-section::before {
    content:"";
    position:absolute;
    inset:0;
    background:rgba(255,255,255,0.45);
    z-index:-1;
}

.heading-wrap {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.icon {
    width:120px;
    height:auto;
    opacity:0.9;
}

#primer-content h1,
#primer-content h2 {
    font-family:'Playfair Display',serif;
    font-weight:500;
    margin-bottom:24px;
}

#primer-content h1 { font-size:3rem; line-height:1.2; }
#primer-content h2 { font-size:2rem; }

#primer-content p { font-size:1.15rem; line-height:1.85; margin-bottom:18px; }

.bg-hero { background:url('images/bg-hero-grey.png') center/cover fixed; }
.bg-reliability { background:url('images/bg-reliability-cream.png') center/cover fixed; }
.bg-validity { background:url('images/bg-validity-blue.png') center/cover fixed; }
.bg-comparison { background:url('images/bg-comparison-mint.png') center/cover fixed; }
.bg-leadership { background:url('images/bg-leadership-gold.png') center/cover fixed; }

.fade { opacity:0; transform:translateY(25px); transition:all .8s ease-out; }
.fade.visible { opacity:1; transform:translateY(0); }

.primer-section + .primer-section::after {
    content:"";
    display:block;
    height:1px;
    margin:80px auto;
    max-width:300px;
    background:linear-gradient(to right, transparent, #bbb, transparent);
}

.citation {
    display: block;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

/* Footnotes styling */
.intro {
    background: #dbeafe;
    padding: 1.5em;
    border-left: 4px solid #2563eb;
    margin: 2em 0;
    font-size: 1.1em;
}

.footnote {
    margin: 2.5em 0;
    padding: 1.5em;
    background: white;
    border-left: 4px solid #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    scroll-margin-top: 2em;
}

.footnote-number {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 0.5em;
    font-size: 0.9em;
}

.footnote strong {
    display: block;
    font-size: 1.2em;
    margin: 0.5em 0;
    color: #0f172a;
}

.footnote p {
    margin: 0.8em 0;
}

.math-box {
    background: #f1f5f9;
    padding: 1em 1.5em;
    margin: 1em 0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.95em;
    white-space: pre-wrap;
    overflow-x: auto;
}

.footnote ul {
    margin-left: 2em;
    margin-top: 0.5em;
}

.footnote li {
    margin: 0.3em 0;
}

.summary {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5em;
    margin: 3em 0;
}

.summary strong {
    font-size: 1.3em;
    display: block;
    margin-bottom: 0.8em;
    color: #0f172a;
}

.summary ol {
    margin-left: 1.5em;
    margin-top: 0.5em;
}

.summary li {
    margin: 0.5em 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 2em;
    padding: 0.8em 1.5em;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.back-link:hover {
    background: #1d4ed8;
}

#footnotes-content {
    padding: 2em;
    max-width: 900px;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
}

#footnotes-content h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 2.5em !important;
    margin-bottom: 0.5em !important;
    color: #0f172a !important;
    border-bottom: 3px solid #2563eb !important;
    padding-bottom: 0.3em !important;
}

#footnotes-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}
