/* === Whitepaper page styles ===
   Reading-first, print-friendly. The HTML page IS the PDF source —
   browser print-to-PDF produces clean output via the @media print rules.
*/

.wp-page {
    background: var(--bg-page);
    padding-top: var(--nav-height);
}

/* === Hero === */
.wp-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wp-hero::before {
    content: '';
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.wp-hero__inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wp-hero__type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-300);
    padding: 6px 14px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 999px;
    margin-bottom: var(--space-xl);
}

.wp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--white);
    margin: 0 0 var(--space-md) 0;
}

.wp-hero__subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--warm-200);
    line-height: 1.5;
    margin: 0 0 var(--space-xl) 0;
}

.wp-hero__author {
    font-size: 0.9375rem;
    color: var(--warm-300);
    line-height: 1.6;
    margin: 0 0 var(--space-xl) 0;
}

.wp-hero__author strong {
    color: var(--white);
    font-weight: 600;
}

.wp-hero__author a {
    color: var(--teal-300);
    text-decoration: none;
}

.wp-hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.wp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 200ms var(--ease-out);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.wp-btn--primary {
    background: var(--teal-400);
    color: var(--navy-900);
}

.wp-btn--primary:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.wp-btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.wp-btn--ghost:hover {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* === Reading column === */
.wp-doc {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--warm-700);
}

.wp-doc p {
    margin: 0 0 var(--space-md) 0;
}

.wp-doc p strong,
.wp-doc li strong {
    color: var(--navy-900);
    font-weight: 600;
}

.wp-doc em {
    font-style: italic;
}

/* Section structure */
.wp-section {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.wp-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: var(--space-2xl);
}

.wp-section__num {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.wp-section__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.6vw, 1.875rem);
    line-height: 1.25;
    color: var(--navy-900);
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-lg) 0;
}

.wp-doc h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--navy-900);
    margin: var(--space-xl) 0 var(--space-sm) 0;
    line-height: 1.3;
}

/* Abstract */
.wp-abstract {
    background: var(--bg-subtle);
    border-left: 3px solid var(--accent);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    margin: var(--space-2xl) 0;
}

.wp-abstract__label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.wp-abstract p {
    font-size: 1rem;
    line-height: 1.7;
}

.wp-abstract p:last-child {
    margin-bottom: 0;
}

/* Pull-quote */
.wp-pullquote {
    margin: var(--space-xl) 0 !important;
    padding: var(--space-md) var(--space-xl);
    border-left: 3px solid var(--accent);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1875rem !important;
    line-height: 1.5 !important;
    color: var(--navy-900) !important;
}

/* Tables */
.wp-table-wrap {
    margin: var(--space-xl) 0;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.wp-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background: var(--white);
}

.wp-table thead {
    background: var(--bg-subtle);
}

.wp-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy-900);
    border-bottom: 1px solid var(--border-subtle);
}

.wp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--warm-700);
    line-height: 1.5;
    vertical-align: top;
}

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

.wp-table td:first-child {
    font-weight: 600;
    color: var(--navy-900);
    white-space: nowrap;
}

/* Pattern blocks */
.wp-patterns {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0 var(--space-xl);
}

.wp-pattern {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

.wp-pattern h4 {
    margin: 0 0 4px 0;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--navy-900);
    font-weight: 700;
    letter-spacing: -0.005em;
}

.wp-pattern p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* References */
.wp-references {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.wp-references__title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-900);
    margin-bottom: var(--space-md);
}

.wp-references ol {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--warm-600);
    counter-reset: ref-counter;
}

.wp-references li {
    position: relative;
    padding: 8px 0 8px 28px;
    counter-increment: ref-counter;
    border-bottom: 1px solid var(--border-subtle);
}

.wp-references li:last-child {
    border-bottom: none;
}

.wp-references li::before {
    content: counter(ref-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--navy-900);
}

.wp-references a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-word;
}

.wp-references a:hover {
    text-decoration: underline;
}

/* About box */
.wp-about {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-lg);
}

.wp-about__label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: var(--space-sm);
}

.wp-about p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 var(--space-md) 0;
}

.wp-about p:last-child {
    margin-bottom: 0;
}

.wp-about a {
    color: var(--teal-300);
    text-decoration: none;
}

.wp-about__tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--teal-300) !important;
    text-align: center;
    margin-top: var(--space-lg) !important;
}

/* Citation block */
.wp-cite {
    margin: var(--space-2xl) 0 0 0;
    padding: var(--space-lg);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
}

.wp-cite__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.wp-cite__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--warm-700);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    margin: 0;
    word-break: break-word;
}

/* === Print styles — clean PDF output via browser print === */
@media print {
    @page {
        margin: 0.75in;
        size: letter;
    }

    body {
        background: white;
        color: black;
    }

    .v2-nav,
    .v2-scroll-progress,
    .v2-scroll-top,
    .v2-cookie,
    .v2-footer,
    .wp-hero__actions,
    .wp-cite {
        display: none !important;
    }

    .wp-page {
        padding-top: 0;
    }

    .wp-hero {
        background: white !important;
        color: black !important;
        padding: 0 0 0.5in 0;
        text-align: left;
        page-break-after: avoid;
    }

    .wp-hero::before {
        display: none;
    }

    .wp-hero__type {
        color: #555 !important;
        border-color: #999 !important;
    }

    .wp-hero__title,
    .wp-hero__subtitle,
    .wp-hero__author,
    .wp-hero__author strong,
    .wp-hero__author a {
        color: black !important;
    }

    .wp-hero__title {
        font-size: 22pt;
    }

    .wp-hero__subtitle {
        font-size: 14pt;
    }

    .wp-doc {
        max-width: none;
        padding: 0;
        font-size: 11pt;
        color: black;
    }

    .wp-section {
        page-break-inside: avoid;
    }

    .wp-section__title {
        font-size: 14pt;
        color: black;
        page-break-after: avoid;
    }

    .wp-doc h3 {
        font-size: 12pt;
        color: black;
        page-break-after: avoid;
    }

    .wp-abstract,
    .wp-pullquote,
    .wp-pattern,
    .wp-cite {
        background: #f5f5f5 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        page-break-inside: avoid;
    }

    .wp-table-wrap {
        page-break-inside: avoid;
    }

    .wp-about {
        background: #f5f5f5 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .wp-about p,
    .wp-about a,
    .wp-about__label,
    .wp-about__tagline {
        color: black !important;
    }

    a {
        color: black;
        text-decoration: none;
    }
}
