:root {
    --blue-950: #172554;
    --blue-900: #1e3a5f;
    --blue-800: #1e40af;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--white);
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 15px;
}

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

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

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--blue-950);
    z-index: 1001;
}

/* HEADER - Same as landing page */
header:first-of-type {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    padding: 0 24px;
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--blue-950);
    text-decoration: none !important;
}

.logo:hover {
    text-decoration: none !important;
    color: var(--blue-900);
}

header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

header nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none !important;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--blue-950);
    text-decoration: none !important;
}

header nav .nav-cta {
    background: var(--blue-950);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

header nav .nav-cta:hover {
    background: var(--blue-900);
}

/* ARTICLE HEADER - Blue gradient */
.article-header {
    background: linear-gradient(135deg, #172554 0%, #1e3a5f 50%, #172554 100%);
    padding: 5rem 0 2.5rem;
    margin-top: 64px;
    color: var(--white);
    position: relative;
}

.article-header .container {
    position: relative;
    max-width: 1140px;
}

.breadcrumb {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.article-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--blue-100);
    background: rgba(219, 234, 254, 0.15);
    border: 1px solid rgba(219, 234, 254, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.article-header h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.article-meta span + span::before {
    content: "\00b7";
    margin-right: 1.5rem;
    opacity: 0.5;
}

/* ARTICLE BODY */
main.container {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.article-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}

.article-body {
    font-size: 1rem;
    line-height: 1.75;
}

.article-body .lead {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.article-body p {
    margin-bottom: 1.25rem;
    color: var(--gray-600);
}

.article-body h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue-950);
    margin: 2.5rem 0 1rem;
    padding: 0;
}

.article-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 2rem 0 0.75rem;
    padding: 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    color: var(--gray-600);
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    color: var(--gray-900);
    font-weight: 600;
}

.article-body a {
    color: var(--blue-800);
}

.article-body a:hover {
    text-decoration: underline;
}

/* Highlight boxes */
.highlight-box {
    background: var(--blue-50);
    border-left: 3px solid var(--blue-950);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.highlight-box strong {
    display: block;
    color: var(--blue-950);
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
}

.highlight-box p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.highlight-box.info-box {
    background: var(--gray-50);
    border-left-color: var(--gray-400);
}

.highlight-box.warning-box {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

/* Timeline */
.timeline {
    margin: 2rem 0;
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item .date {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--blue-800);
    margin-bottom: 0.25rem;
}

.timeline-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.375rem;
}

.timeline-item p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    font-size: 0.9375rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--gray-200);
}

thead {
    background: var(--gray-50);
}

th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

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

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

/* Article CTA - Blue (Compact) */
.article-cta {
    background: linear-gradient(135deg, #172554 0%, #1e3a5f 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-content h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.875rem;
}

.cta-button {
    background: var(--white);
    color: var(--blue-950) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--blue-50);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.toc {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.toc h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc a {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-decoration: none;
    display: block;
    padding: 0.375rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
    transition: all 0.2s;
}

.toc a:hover {
    color: var(--blue-950);
}

.toc a.active {
    color: var(--blue-950);
    border-left-color: var(--blue-950);
    font-weight: 500;
}

.sidebar-box {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.875rem;
}

.sidebar-box strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.sidebar-box p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.cta-link {
    font-weight: 600;
    color: var(--blue-800);
    text-decoration: none;
}

.cta-link:hover {
    text-decoration: underline;
}

/* Related articles */
.related-articles {
    border-top: 1px solid var(--gray-200);
    padding-top: 3rem;
    margin-top: 2rem;
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-950);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--blue-950);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 37, 84, 0.1);
}

.related-card .card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--blue-800);
    background: var(--blue-50);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}

.related-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* Footer */
footer {
    background: var(--blue-950);
    padding: 1.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

footer a {
    color: var(--blue-100);
}

footer a:hover {
    color: var(--white);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    opacity: 0;
    visibility: hidden;
    z-index: 90;
    transition: all 0.2s;
    cursor: pointer;
}

.back-to-top:hover {
    color: var(--blue-950);
    border-color: var(--blue-950);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Sticky CTA - Blue (Compact) */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blue-950);
    padding: 0.625rem 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 95;
}

.sticky-cta-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
}

.sticky-cta-text strong {
    color: var(--blue-100);
}

.sticky-cta-button {
    background: var(--white);
    color: var(--blue-950);
    padding: 0.375rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.sticky-cta-button:hover {
    background: var(--blue-50);
}

.sticky-cta-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.sticky-cta-close:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .article-content {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        display: none;
    }
    header nav {
        gap: 1rem;
    }
    header nav a {
        font-size: 12px;
    }
    .article-cta {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }
    .cta-content h3 {
        font-size: 0.9375rem;
    }
    .cta-content p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* Nav: keep logo + CTA only */
    header nav a:not(.nav-cta) {
        display: none;
    }
    header nav {
        gap: 0;
    }

    .article-header {
        padding: 4.5rem 0 2rem;
    }
    .article-header h1 {
        font-size: 1.625rem;
        line-height: 1.3;
    }
    .article-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
    .article-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 0.75rem;
    }
    .cta-button {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.25rem;
    }
    .sticky-cta-text {
        display: none;
    }

    /* Tables: horizontal scroll on mobile */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    header:first-of-type { padding: 0 16px; }

    .article-header {
        padding: 4rem 0 1.5rem;
    }
    .article-header h1 {
        font-size: 1.375rem;
    }
    .breadcrumb {
        font-size: 0.75rem;
    }

    .article-body h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
    .article-body h3 { font-size: 1rem; }
    .article-body .lead { font-size: 1rem; }

    main.container {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .article-cta {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    .cta-content h3 { font-size: 0.875rem; }
    .cta-content p { font-size: 0.8125rem; }

    .highlight-box {
        padding: 0.875rem 1rem;
        margin: 1.25rem 0;
    }

    td, th {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .related-articles { padding-top: 2rem; }
    .related-articles h3 { font-size: 1.25rem; }
    .related-card { padding: 1.25rem; }

    .sticky-cta { padding: 0.5rem 16px; }

    .back-to-top {
        bottom: 60px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}
