/* Shared article styles — extracted from hand-coded pages (migration) */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

:root {
            --primary: #00B4D8;
            --secondary: #F7B731;
            --accent: #FF3366;
            --dark: #1A1A2E;
            --light: #FFFFFF;
            --gray: #F5F5F5;
            --text: #333;
            --text-light: #666;
            --gradient-1: linear-gradient(135deg, #00B4D8 0%, #0096C7 100%);
            --gradient-2: linear-gradient(135deg, #F7B731 0%, #FFA500 100%);
            --gradient-3: linear-gradient(135deg, #00B4D8 0%, #F7B731 100%);
            --gradient-accent: linear-gradient(135deg, #FF3366 0%, #FF6B9D 100%);
        }

body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background: var(--light);
            overflow-x: hidden;
        }

/* Animated Background */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.05;
            background:
                radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, var(--secondary) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, var(--accent) 0%, transparent 50%);
            animation: bgMove 20s ease infinite;
        }

@keyframes bgMove {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(20px, 20px) scale(1.05); }
        }

/* Header */
        header {
            background: var(--light);
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 1rem 2rem;
        }

nav {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

.logo {
            font-size: 1.5rem;
            font-weight: 800;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            transition: transform 0.3s ease;
            text-decoration: none;
            cursor: pointer;
        }

.logo:hover {
            transform: scale(1.05);
        }

.nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

.nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            position: relative;
            padding: 0.5rem 0;
            transition: color 0.3s ease;
        }

.nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--gradient-1);
            transition: width 0.3s ease;
        }

.nav-links a:hover {
            color: var(--accent);
        }

.nav-links a:hover::after {
            width: 100%;
        }

.mobile-menu-toggle {
            display: none;
            background: var(--gradient-1);
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--light);
            padding: 0.75rem 1rem;
            border-radius: 10px;
            min-width: 50px;
            min-height: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
        }

/* Article Header */
        .article-header {
            background: var(--gradient-3);
            padding: 4rem 2rem;
            position: relative;
            overflow: hidden;
        }

.article-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: pulse 3s ease-in-out infinite;
        }

@keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }

.article-meta {
            display: flex;
            gap: 1rem;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

.article-category {
            background: var(--gradient-accent);
            color: var(--light);
            padding: 0.4rem 1rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

.article-date {
            color: var(--dark);
            opacity: 0.7;
            font-size: 0.95rem;
        }

.article-header h1 {
            font-size: 2.75rem;
            font-weight: 900;
            color: var(--dark);
            margin-bottom: 1rem;
            line-height: 1.2;
        }

.article-subtitle {
            font-size: 1.3rem;
            color: var(--dark);
            opacity: 0.85;
            line-height: 1.5;
        }

.article-content {
            font-size: 1.125rem;
            line-height: 1.8;
            color: var(--text);
        }

.article-content p {
            margin-bottom: 1.5rem;
        }

.article-content a {
            color: var(--primary);
            text-decoration: none;
            border-bottom: 2px solid transparent;
            transition: border-color 0.3s ease;
        }

.article-content a:hover {
            border-bottom-color: var(--primary);
        }

.article-content strong {
            color: var(--dark);
            font-weight: 700;
        }

.article-content ul, .article-content ol {
            margin: 1.5rem 0;
            padding-left: 1.5rem;
        }

.article-content li {
            margin-bottom: 0.75rem;
        }

/* Article Hero Image */
        .article-hero-image {
            margin: 0 0 2.5rem 0;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        }

.article-hero-image img {
            width: 100%;
            height: auto;
            display: block;
        }

/* Highlight Box */
        .highlight-box {
            background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(247, 183, 49, 0.1) 100%);
            border-left: 4px solid var(--primary);
            padding: 1.5rem 2rem;
            margin: 2rem 0;
            border-radius: 0 12px 12px 0;
        }

.stat-card:nth-child(2) {
            border-top-color: var(--secondary);
        }

.stat-card:nth-child(3) {
            border-top-color: var(--accent);
        }

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

/* Author Box */
        .author-box {
            display: flex;
            gap: 1.5rem;
            align-items: center;
            padding: 2rem;
            background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, rgba(247, 183, 49, 0.05) 100%);
            border-radius: 16px;
            margin-top: 3rem;
        }

.author-info h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.25rem;
        }

.author-info p {
            color: var(--text-light);
            font-size: 0.95rem;
            margin-bottom: 0;
        }

/* Back Link */
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            margin-bottom: 2rem;
            transition: gap 0.3s ease;
        }

.back-link:hover {
            gap: 0.75rem;
        }

/* Footer */
        footer {
            background: var(--dark);
            color: var(--light);
            padding: 3rem 2rem;
            text-align: center;
        }

.footer-content {
            max-width: 1400px;
            margin: 0 auto;
        }

.footer-logo {
            font-size: 1.5rem;
            font-weight: 800;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

.footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 1.5rem 0;
            flex-wrap: wrap;
        }

.footer-links a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: color 0.3s ease;
        }

.footer-links a:hover {
            color: var(--primary);
        }

.footer-copyright {
            color: rgba(255,255,255,0.5);
            font-size: 0.9rem;
            margin-top: 1.5rem;
        }

/* Canonical component styles (for future articles; per-page styles may override) */
.article-header-content {
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

/* Article Content */
        .article-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 3rem 2rem 4rem;
        }

.article-content h2 {
            font-size: 1.85rem;
            font-weight: 800;
            color: var(--dark);
            margin: 2.5rem 0 1rem;
            padding-top: 1rem;
        }

.article-content h3 {
            font-size: 1.45rem;
            font-weight: 700;
            color: var(--dark);
            margin: 2rem 0 0.75rem;
        }

/* Inline SVG diagram support (matches hero image framing) */
        .article-hero-image svg {
            width: 100%;
            height: auto;
            display: block;
            background: var(--light);
        }

.highlight-box.key-finding {
            background: linear-gradient(135deg, rgba(247, 183, 49, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
            border-left-color: var(--secondary);
        }

.highlight-box.important {
            background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
            border-left-color: var(--accent);
        }

.highlight-box h4 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            color: var(--dark);
        }

.highlight-box p {
            margin-bottom: 0.5rem;
        }

.highlight-box p:last-child {
            margin-bottom: 0;
        }

.highlight-box ul {
            margin: 0.75rem 0 0 0;
        }

/* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2.5rem 0;
        }

.stat-card {
            background: var(--gray);
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-top: 4px solid var(--primary);
        }

.stat-card:nth-child(4) {
            border-top-color: #8B5CF6;
        }

.stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

.stat-card .number {
            font-size: 2.5rem;
            font-weight: 900;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
        }

.stat-card:nth-child(2) .number {
            background: var(--gradient-2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.stat-card:nth-child(3) .number {
            background: var(--gradient-accent);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.stat-card:nth-child(4) .number {
            background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.stat-card .label {
            font-weight: 600;
            color: var(--dark);
            font-size: 1rem;
        }

.stat-card .description {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-top: 0.5rem;
        }

/* CTA Box */
        .cta-box {
            background: var(--gradient-1);
            color: var(--light);
            padding: 2.5rem;
            border-radius: 16px;
            margin: 3rem 0;
            text-align: center;
        }

.cta-box h3 {
            color: var(--light);
            margin-bottom: 0.75rem;
            font-size: 1.6rem;
        }

.cta-box p {
            margin-bottom: 1.5rem;
            opacity: 0.95;
            line-height: 1.6;
            font-size: 1.05rem;
        }

.cta-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.85rem;
            justify-content: center;
        }

.btn {
            display: inline-block;
            padding: 0.85rem 1.6rem;
            border-radius: 50px;
            font-weight: 700;
            text-decoration: none;
            font-size: 1rem;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
        }

a.btn-primary {
            background: var(--light);
            color: var(--primary);
            border: 2px solid var(--light);
        }

a.btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(0,0,0,0.18);
        }

a.btn-secondary {
            background: transparent;
            color: var(--light);
            border: 2px solid var(--light);
        }

a.btn-secondary:hover {
            background: var(--light);
            color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(0,0,0,0.18);
        }

/* Collapsible Sources Section */
        .sources-wrapper {
            margin-top: 3rem;
        }

.sources-toggle {
            width: 100%;
            background: var(--gray);
            border: 2px solid #e0e0e0;
            padding: 1.25rem 2rem;
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--dark);
            transition: all 0.3s ease;
        }

.sources-toggle:hover {
            background: #ebebeb;
            border-color: var(--primary);
        }

.sources-toggle .toggle-icon {
            font-size: 1.4rem;
            transition: transform 0.3s ease;
            color: var(--primary);
        }

.sources-toggle.active .toggle-icon {
            transform: rotate(180deg);
        }

.sources-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease;
        }

.sources-content.active {
            max-height: 8000px;
        }

.sources {
            background: var(--gray);
            padding: 2.5rem;
            border-radius: 0 0 12px 12px;
            border: 2px solid #e0e0e0;
            border-top: none;
        }

.sources h4 {
            font-size: 1.15rem;
            margin: 1.5rem 0 1rem;
            color: var(--dark);
            font-weight: 700;
        }

.sources h4:first-of-type {
            margin-top: 0;
        }

.sources ol {
            list-style: decimal;
            padding-left: 1.5rem;
        }

.sources li {
            padding: 0.75rem 0;
            border-bottom: 1px solid #ddd;
            font-size: 0.95rem;
            line-height: 1.6;
        }

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

.author-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--gradient-1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--light);
            flex-shrink: 0;
            font-weight: 700;
        }

/* Blockquote */
        .article-content blockquote {
            border-left: 4px solid var(--primary);
            padding: 1.25rem 1.5rem;
            margin: 2rem 0;
            background: rgba(0, 180, 216, 0.04);
            border-radius: 0 8px 8px 0;
            font-style: italic;
            color: var(--text);
        }

.article-content blockquote cite {
            display: block;
            margin-top: 0.75rem;
            font-style: normal;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--primary);
        }

/* Mobile Responsive */
        @media (max-width: 768px) {
            .mobile-menu-toggle {
                display: block;
            }

            .nav-links {
                display: none;
                width: 100%;
                flex-direction: column;
                gap: 0;
                margin-top: 1rem;
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links li {
                width: 100%;
                text-align: center;
                border-top: 1px solid #eee;
            }

            .nav-links a {
                display: block;
                padding: 1rem;
            }

            .article-header h1 {
                font-size: 2rem;
            }

            .article-subtitle {
                font-size: 1.1rem;
            }

            .article-content {
                font-size: 1rem;
            }

            .article-content h2 {
                font-size: 1.5rem;
            }

            .article-content h3 {
                font-size: 1.25rem;
            }

            .author-box {
                flex-direction: column;
                text-align: center;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

/* ===== New components (breadcrumbs, inline CTA, related, newsletter) ===== */
.breadcrumbs { max-width: 800px; margin: 0 auto; padding: 1rem 2rem 0; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.35rem; color: #94a3b8; }
.breadcrumbs a { color: var(--primary, #00B4D8); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current] { color: #64748b; max-width: 28ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.inline-cta { margin: 2.5rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--secondary, #F7B731); background: linear-gradient(135deg, rgba(247,183,49,0.08), rgba(0,180,216,0.08)); border-radius: 0 12px 12px 0; font-size: 1.05rem; }
.inline-cta p { margin: 0; }
.inline-cta a { color: var(--primary, #00B4D8); font-weight: 700; }

.related-articles { max-width: 800px; margin: 3rem auto 0; padding: 0 0 1rem; }
.related-articles h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.related-card { display: block; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); text-decoration: none; color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.related-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.related-card-body { padding: 1rem; }
.related-category { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary, #00B4D8); }
.related-card h3 { font-size: 1rem; font-weight: 700; margin-top: 0.4rem; line-height: 1.35; }

.newsletter-box { max-width: 800px; margin: 3rem auto; padding: 2rem; background: var(--dark, #1A1A2E); color: #fff; border-radius: 16px; text-align: center; }
.newsletter-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.newsletter-box p { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; }
.newsletter-form { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] { padding: 0.8rem 1.1rem; border-radius: 50px; border: none; min-width: 260px; font-size: 1rem; }
.newsletter-status { margin-top: 0.75rem; font-size: 0.9rem; color: var(--secondary, #F7B731); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 768px) {
  .breadcrumbs { padding: 0.75rem 1rem 0; }
  .breadcrumbs li[aria-current] { max-width: 18ch; }
  .newsletter-form input[type="email"] { min-width: 0; width: 100%; }
}

/* Logo mark in nav */
.logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo img { height: 36px; width: auto; }
