/* Shared styling for /alternatives/* pages.
   Color tokens match europe/index.html so the pages feel native. */

@font-face {
    font-family: 'Dazr';
    src: url('/assets/fonts/Dazr-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Dazr';
    src: url('/assets/fonts/Dazr-Italic.ttf') format('truetype');
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Dazr';
    src: url('/assets/fonts/Dazr-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Dazr';
    src: url('/assets/fonts/Dazr-BoldItalic.ttf') format('truetype');
    font-weight: 700; font-style: italic; font-display: swap;
}

/* Dazr is used for display only — H1 / H2. Body text stays on the
   system font for crisp small-size rendering. */
h1, h2 {
    font-family: 'Dazr', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

:root {
    --navy: #1b2a4a;
    --navy-light: #2a3f6a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --brand-blue: #2563eb;
    --brand-green: #18a957;
    --brand-orange: #e8863a;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-subtle: #f1f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --eu-blue: #003399;
    --eu-gold: #FFCC00;
    --check: #10b981;
    --cross: #ef4444;
    --partial: #f59e0b;
}

@media (prefers-color-scheme: dark) {
    :root {
        --navy: #8ab4f8;
        --navy-light: #a5c8ff;
        --accent: #60a5fa;
        --accent-hover: #93c5fd;
        --accent-light: rgba(96, 165, 250, 0.12);
        --bg: #0f172a;
        --bg-alt: #1e293b;
        --bg-subtle: #1e293b;
        --surface: #1e293b;
        --text: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
        --shadow-lg: 0 12px 40px rgba(0,0,0,0.3);
        --check: #34d399;
        --cross: #f87171;
        --partial: #fbbf24;
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── Header (canonical, matches homepage exactly) ── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--bg);
}
.header-inner {
    max-width: none;
    margin: 0;
    padding: 0 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
}
.logo img { width: 32px; height: 32px; }
.logo-text { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--bg-subtle); }

/* Dropdown nav item (Solutions). On desktop opens on hover or click,
   on mobile (.nav.open) it inlines as an accordion under the trigger. */
.nav-item.has-dropdown { position: relative; }
.nav-trigger {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer; font-family: inherit;
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
    padding: 8px 16px; border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.nav-trigger:hover { color: var(--text); background: var(--bg-subtle); }
.nav-trigger .caret { transition: transform 0.18s; }
.nav-item.has-dropdown.open .nav-trigger .caret { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-4px);
    background: var(--surface, #fff); border: 1px solid var(--border, rgba(15,23,42,0.08));
    border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,0.12);
    padding: 18px; display: none; min-width: 560px; max-width: 92vw;
    grid-template-columns: 1fr 1fr; gap: 22px; z-index: 200;
    opacity: 0; transition: opacity 0.16s ease, transform 0.16s ease;
}
.nav-item.has-dropdown.open .nav-dropdown {
    display: grid; opacity: 1; transform: translateX(-50%) translateY(0);
}
/* Hover bridge so moving the cursor down to the dropdown doesn't close it. */
.nav-item.has-dropdown::after {
    content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px;
}
/* Hover-open only on real pointer devices. Touch devices get a sticky
   :hover after a tap, which fights the click-toggle. */
@media (hover: hover) and (pointer: fine) {
    .nav-item.has-dropdown:hover .nav-trigger .caret { transform: rotate(180deg); }
    .nav-item.has-dropdown:hover .nav-dropdown,
    .nav-item.has-dropdown:focus-within .nav-dropdown {
        display: grid; opacity: 1; transform: translateX(-50%) translateY(0);
    }
}
.nav-dd-section h4 {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-muted, #64748b); font-weight: 700;
    margin: 0 0 8px; padding: 0 12px;
}
.nav-dropdown a {
    display: block; padding: 10px 12px; border-radius: 9px;
    font-size: 0.88rem; color: var(--text, #0f172a);
    text-decoration: none; line-height: 1.45;
}
.nav-dropdown a:hover { background: var(--bg-subtle, #f1f5f9); }
.nav-dropdown a strong { display: block; font-weight: 600; color: var(--text, #0f172a); }
.nav-dropdown a span { display: block; font-size: 0.78rem; color: var(--text-muted, #64748b); margin-top: 2px; }
.nav-dropdown a.featured {
    background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02));
    border: 1px solid rgba(37,99,235,0.18);
}
.nav-dropdown a.featured:hover { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.04)); }
.nav-dropdown a.featured strong { color: var(--accent, #2563eb); }
.nav-dropdown a.dd-all { color: var(--accent, #2563eb); font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
.nav-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    margin-left: 8px;
    cursor: pointer !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.nav-download svg { width: 14px; height: 14px; }
.nav-download:hover { background: var(--accent-hover) !important; }
.mobile-menu-btn {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--text); padding: 8px;
    border-radius: 8px;
}
.mobile-menu-btn:hover { background: var(--bg-subtle); }
.mobile-menu-btn svg { width: 24px; height: 24px; }
@media (max-width: 820px) {
    .header-inner { padding: 0 20px; }
    .nav { display: none; }
    .nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg); padding: 12px 20px 20px;
        gap: 4px;
        box-shadow: var(--shadow-md);
    }
    .nav a { width: 100%; padding: 12px; }
    .mobile-menu-btn { display: block; }
    /* Inline dropdown as accordion inside the mobile drawer */
    .nav-item.has-dropdown { width: 100%; }
    .nav-trigger { width: 100%; padding: 12px; justify-content: space-between; }
    .nav-dropdown,
    .nav-item.has-dropdown.open .nav-dropdown {
        position: static; transform: none; min-width: 0; width: 100%; max-width: none;
        grid-template-columns: 1fr; gap: 8px;
        background: transparent; box-shadow: none; border: none; padding: 4px 0 12px; margin-top: 0;
    }
    .nav-item.has-dropdown::after { display: none; }
    .nav-dd-section { background: var(--bg-subtle, #f1f5f9); border-radius: 10px; padding: 10px; }
    .nav-dd-section h4 { padding: 0 4px; margin-bottom: 4px; }
    .nav-dropdown a { padding: 10px; }
}

/* ── Layout ── */
main { padding-top: 88px; }
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}
/* Padding (not margin) so section spacing never collapses between siblings.
   With padding, adjacent sections have full top + bottom space stacked,
   giving the H2 of each section real breathing room from whatever was above. */
section {
    margin: 0;
    padding: 104px 0;
}
section:first-of-type { padding-top: 40px; }
@media (max-width: 600px) {
    main { padding-top: 76px; }
    .container { padding: 0 20px; }
    section { padding: 64px 0; }
    section:first-of-type { padding-top: 24px; }
}

/* ── Hero ── */
.alt-hero {
    text-align: center;
    padding: 96px 28px 80px;
    max-width: 880px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .alt-hero { padding: 64px 20px 48px; }
}
.alt-hero .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.alt-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 24px;
}
.alt-hero .lead {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.alt-hero .ctas {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text);
}
.btn-secondary:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }

/* ── Section headings ──
   margin-top is reserved for explicit spacing above the title. We use
   padding-top on the heading element itself so it can't collapse with
   surrounding margins on parents/siblings. */
h2.section-title {
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 28px;
    padding-top: 48px;
    text-align: center;
    line-height: 1.2;
}
@media (max-width: 600px) {
    h2.section-title { padding-top: 24px; }
}
.section-sub {
    font-size: 1.02rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
    line-height: 1.7;
}

/* ── Card grids ── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
}
.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.card .icon-wrap {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: 12px;
}
.card .icon-wrap svg { width: 18px; height: 18px; }

/* ── Comparison table ── */
.compare-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.94rem;
}
.compare-table thead th {
    background: var(--bg-subtle);
    color: var(--text);
    font-weight: 700;
    padding: 16px 20px;
    text-align: left;
    font-size: 0.95rem;
}
.compare-table thead th:not(:first-child) { text-align: center; }
.compare-table tbody td {
    padding: 16px 22px;
    border-top: 1px solid rgba(15,23,42,0.05);
    color: var(--text-secondary);
}
.compare-table thead th { padding: 18px 22px; }
@media (prefers-color-scheme: dark) {
    .compare-table tbody td { border-top-color: rgba(255,255,255,0.06); }
}
.compare-table tbody td:first-child {
    font-weight: 600;
    color: var(--text);
}
.compare-table tbody td:not(:first-child) { text-align: center; }
.compare-table .yes { color: var(--check); font-weight: 700; }
.compare-table .no { color: var(--cross); font-weight: 700; }
.compare-table .partial { color: var(--partial); font-weight: 600; }
.compare-table .dazr-col { background: rgba(37,99,235,0.04); }
@media (prefers-color-scheme: dark) {
    .compare-table .dazr-col { background: rgba(96,165,250,0.06); }
}
@media (max-width: 720px) {
    .compare-table { font-size: 0.85rem; }
    .compare-table thead th, .compare-table tbody td { padding: 10px 12px; }
}

/* ── Feature deep-dives ── */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin: 80px 0;
}
.feature:first-of-type { margin-top: 0; }
.feature:last-of-type { margin-bottom: 0; }
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
@media (max-width: 760px) {
    .feature { grid-template-columns: 1fr; gap: 20px; }
}
.feature h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.feature p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.feature ul {
    list-style: none;
    padding: 0;
}
.feature ul li {
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.feature ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 14px; height: 14px;
    background: var(--check);
    border-radius: 50%;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}
.feature .feature-visual {
    background: linear-gradient(135deg, var(--accent-light), transparent);
    border-radius: var(--radius-lg);
    padding: 40px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature .feature-visual svg {
    width: 100%; height: 100%;
    color: var(--accent);
    opacity: 0.85;
}

/* ── Honest section ── */
.honest {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
}
@media (max-width: 600px) { .honest { padding: 28px 24px; } }
.honest h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    padding-top: 8px;
    text-align: center;
    line-height: 1.3;
}
.honest > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
}
.honest ul {
    list-style: none;
    padding: 0;
}
.honest ul li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.94rem;
    border-top: 1px solid rgba(15,23,42,0.06);
}
.honest ul li:first-child { border-top: none; }
.honest ul li strong { color: var(--text); }

/* ── FAQ ── */
.faq {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border-top: 1px solid rgba(15,23,42,0.08);
    padding: 20px 0;
}
@media (prefers-color-scheme: dark) {
    .faq-item { border-top-color: rgba(255,255,255,0.08); }
}
.faq-item:first-child { border-top: none; }
.faq-item summary {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* ── Final CTA ── */
.final-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-lg);
    padding: 72px 32px;
    color: #fff;
    margin-top: 64px;
}
@media (max-width: 600px) {
    .final-cta { padding: 48px 24px; margin-top: 32px; }
}
.final-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.final-cta p {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.final-cta .btn-primary {
    background: #fff;
    color: var(--accent);
}
.final-cta .btn-primary:hover { background: #f8fafc; color: var(--accent-hover); }

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 32px 28px 0;
    max-width: 1080px;
    margin: 0 auto;
}
@media (max-width: 600px) { .breadcrumb { padding: 20px 20px 0; } }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── Footer (4-column) ── */
.footer {
    background: var(--bg-subtle);
    margin-top: 80px;
    padding: 64px 32px 32px;
    text-align: left;
}
.footer-cols {
    max-width: 1200px;
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px 32px;
}
.footer-col h4 {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text); margin: 0 0 16px;
}
.footer-col a {
    display: block; padding: 6px 0;
    font-size: 0.88rem; color: var(--text-secondary);
    text-decoration: none; transition: color .15s;
}
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(15,23,42,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
@media (prefers-color-scheme: dark) { .footer-inner { border-top-color: rgba(255,255,255,0.08); } }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); font-weight: 700; text-decoration: none;
}
.footer-logo img { width: 22px; height: 22px; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-eu { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.9rem; }
.footer-eu svg { display: block; }
@media (max-width: 600px) {
    .footer { padding: 48px 24px 24px; }
    .footer-cols { gap: 32px 24px; margin-bottom: 32px; }
}

/* ── Hub-only ── */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.hub-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text);
    transition: transform .15s, box-shadow .15s;
    display: block;
}
.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text);
}
.hub-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.hub-card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    margin-bottom: 14px;
}
.hub-card .read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Flat article list (used on /learn hub) ── */
.article-list {
    counter-reset: list;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}
.article-list > li {
    counter-increment: list;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}
.article-list > li:first-child { border-top: 1px solid rgba(15,23,42,0.06); }
@media (prefers-color-scheme: dark) {
    .article-list > li { border-bottom-color: rgba(255,255,255,0.08); }
    .article-list > li:first-child { border-top-color: rgba(255,255,255,0.08); }
}
.article-list > li > a {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 4px 16px;
    align-items: baseline;
    padding: 22px 8px;
    text-decoration: none;
    color: var(--text);
    transition: background .12s, padding-left .12s;
    position: relative;
}
.article-list > li > a::before {
    content: counter(list, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding-top: 4px;
}
.article-list > li > a:hover {
    background: var(--bg-subtle);
    padding-left: 16px;
    text-decoration: none;
    color: var(--text);
}
.article-list .article-list-title {
    grid-column: 2;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}
.article-list .article-list-desc {
    grid-column: 2;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.article-list > li > a:hover .article-list-title { color: var(--accent); }

/* ── Article body (used by /learn/* pages) ── */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}
.article-body p {
    margin: 0 0 20px;
    color: var(--text-secondary);
}
.article-body h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    margin: 80px 0 18px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 14px;
    line-height: 1.35;
}
@media (max-width: 600px) {
    .article-body h2 { margin-top: 56px; }
    .article-body h3 { margin-top: 36px; }
}
.article-body ul, .article-body ol {
    margin: 0 0 24px 24px;
    padding: 0;
}
.article-body li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.article-body strong { color: var(--text); }
.article-body code {
    background: var(--bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.article-body .tldr {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin: 0 0 32px;
}
.article-body .tldr p { margin-bottom: 0; color: var(--text); }
.article-body .tldr-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}
.article-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
}

/* Related-articles block */
.related-articles {
    max-width: 880px;
    margin: 0 auto;
    padding-bottom: 32px;
}
.related-articles h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.related-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: transform .15s, box-shadow .15s;
}
.related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text);
}
.related-card .related-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}
.related-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.4;
}
.related-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}
