.btn {
    box-sizing: border-box;
    text-transform: none;
    white-space: normal;
    line-height: 1.35;
}

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus {
    color: var(--clean);
}

.resource-article {
    max-width: 940px;
    margin: 0 auto;
}

.resource-article .article-header {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
    box-shadow: 0 8px 30px rgba(18, 38, 72, 0.08);
    backdrop-filter: blur(12px);
    margin-bottom: 2.75rem;
}

.article-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--royal);
    background: var(--brand-blue-100);
    border: 1px solid var(--brand-blue-200);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin: 0 0 1rem 0;
}

.resource-article .article-title {
    font-size: clamp(1.9rem, 4vw + 0.5rem, 3rem);
    line-height: 1.18;
    margin: 0 0 1rem 0;
    color: var(--abyss);
}

.article-subtitle {
    font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.3rem);
    line-height: 1.6;
    color: var(--slate);
    margin: 0 0 1.25rem 0;
}

.article-disclaimer {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--slate);
    background: var(--brand-blue-50);
    border-left: 3px solid var(--brand-blue-400);
    border-radius: 0 10px 10px 0;
    padding: 0.85rem 1.1rem;
    margin: 0 0 1.5rem 0;
}

.tldr-box {
    background: rgba(239, 245, 254, 0.78);
    border: 1px solid var(--brand-blue-200);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem 0;
}

.tldr-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--abyss);
    margin: 0 0 0.65rem 0;
}

.tldr-list {
    margin: 0;
    padding-left: 1.2rem;
}

.tldr-list li {
    font-size: 0.98rem;
    line-height: 1.58;
    color: var(--abyss);
    margin: 0.45rem 0;
}

.resource-article .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
    justify-content: flex-start;
}

.cta-microcopy {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--slate);
    margin: 0;
}

.resource-article > section {
    margin-top: 2.75rem;
    margin-bottom: 2.75rem;
    padding-top: 0.5rem;
    gap: 1rem;
}

.resource-article h2 {
    font-size: clamp(1.5rem, 2.6vw + 0.5rem, 2.2rem);
    line-height: 1.24;
    margin: 0 0 0.35rem 0;
}

.resource-article p {
    font-size: 1.06rem;
    line-height: 1.72;
    color: var(--abyss-80);
    margin: 0.4rem 0;
}

.trajectory-figure {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.55);
    margin: 1rem 0;
}

.trajectory-figure svg {
    display: block;
    width: 100%;
    height: auto;
}

.trajectory-caption {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--slate);
    margin-top: 0.9rem;
    text-align: center;
}

.phase-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0.75rem 0;
}

.phase-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.phase-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--royal);
    background: var(--brand-blue-50);
    border: 1px solid var(--brand-blue-200);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.55rem;
}

.phase-card h3 {
    font-size: 1.12rem;
    margin: 0 0 0.5rem 0;
    color: var(--abyss);
}

.phase-card p {
    font-size: 0.96rem;
    line-height: 1.6;
    margin: 0;
}

.science-callout {
    background: rgba(255, 255, 255, 0.88);
    border-left: 4px solid var(--royal);
    border-radius: 0 16px 16px 0;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.07);
    margin: 0.75rem 0;
}

.science-callout h3 {
    font-size: 1.15rem;
    margin: 0 0 0.45rem 0;
    color: var(--abyss);
}

.science-callout p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0;
}

.table-wrapper {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.55);
    margin: 0.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.diagnostic-table {
    min-width: 660px;
    background: transparent;
    border: none;
}

.diagnostic-table thead th {
    background: var(--brand-blue-100);
    color: var(--abyss);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--brand-blue-200);
}

.diagnostic-table td {
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.58;
    color: var(--abyss-80);
}

.diagnostic-table td:first-child {
    font-weight: 700;
    color: var(--abyss);
    width: 21%;
}

.diagnostic-table td:nth-child(2),
.diagnostic-table td:nth-child(3) {
    width: 39.5%;
}

.inline-cta-card,
.bottom-cta-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 245, 254, 0.94) 55%, rgba(255, 240, 248, 0.92) 100%);
    border: 1px solid var(--brand-blue-200);
    border-radius: 18px;
    padding: clamp(1.4rem, 3vw, 2.1rem);
    box-shadow: 0 6px 24px rgba(18, 38, 72, 0.09);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.bottom-cta-card {
    align-items: center;
    text-align: center;
    margin-top: 1.5rem;
}

.inline-cta-card h3,
.bottom-cta-card h2 {
    margin: 0;
    color: var(--abyss);
}

.inline-cta-card p,
.bottom-cta-card p {
    margin: 0;
    max-width: 720px;
}

.patterns-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    margin: 0.75rem 0;
}

.pattern-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pattern-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pattern-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue-500);
    color: var(--clean);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pattern-card h3 {
    font-size: 1.22rem;
    margin: 0;
    color: var(--abyss);
}

.pattern-signal {
    background: var(--brand-blue-50);
    border: 1px solid var(--brand-blue-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--abyss);
    margin: 0;
}

.pattern-driver {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--abyss-80);
    margin: 0;
}

.pattern-script {
    background: rgba(5, 183, 125, 0.07);
    border-left: 4px solid var(--mint);
    border-radius: 0 12px 12px 0;
    padding: 0.9rem 1.1rem;
    margin: 0;
}

.pattern-script-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--abyss);
    margin-bottom: 0.35rem;
}

.pattern-script p {
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--abyss);
    margin: 0;
}

.sources-section {
    background: rgba(255, 255, 255, 0.84);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.sources-section h2 {
    font-size: 1.45rem;
    margin: 0 0 0.5rem 0;
}

.sources-list {
    margin: 0;
    padding-left: 1.35rem;
}

.sources-list li {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--slate);
    margin: 0.6rem 0;
    overflow-wrap: anywhere;
}

.related-links {
    max-width: 940px;
    margin: 2.5rem auto;
}

.related-links .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.faq {
    max-width: 940px;
    margin: 2.5rem auto;
}

.faq .faq-list {
    max-width: 940px;
}

@media (max-width: 768px) {
    .phase-cards {
        grid-template-columns: 1fr;
    }

    .related-links .tools-grid {
        grid-template-columns: 1fr;
    }

    .trajectory-figure {
        padding: 1rem;
    }

    .pattern-card {
        padding: 1.2rem;
    }

    .sources-section {
        padding: 1.25rem;
    }

    .resource-article .header-actions {
        align-items: stretch;
    }

    .inline-cta-card .btn,
    .bottom-cta-card .btn {
        width: 100%;
        box-sizing: border-box;
    }
}
