/* =========================================
   BLOG ARTICLES — modern layout (2026)
========================================= */

.blog-article-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 28px) 72px;
    box-sizing: border-box;
}

/* body overflow-x:hidden breaks position:sticky — restore sticky on guide pages */
body:has(.blog-article-page) {
    overflow-x: visible;
}

/* ---- Hero zone (full width above columns) ---- */
.blog-article-hero {
    max-width: 920px;
    margin: 0 auto 36px;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    color: #8b95a5;
    margin-bottom: 18px;
}

.blog-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
    color: #2f7cff;
}

.blog-breadcrumb-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f3f6fb;
    color: #6b7280 !important;
}

.blog-breadcrumb-sep {
    color: #c5cdd8;
    font-size: 12px;
}

.blog-breadcrumb-current {
    color: #9aa3ad;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.blog-tag-pill {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e8ecf1;
    padding: 6px 12px;
    border-radius: 999px;
}

.blog-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

.blog-wrap img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ---- Three-column layout ---- */
.blog-page-three-col {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: stretch;
}

.blog-toc-sidebar {
    align-self: stretch;
}

.blog-toc-panel {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    scrollbar-width: thin;
}

.blog-toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.blog-toc-title i {
    color: #2f7cff;
    font-size: 12px;
}

.blog-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-toc-list li {
    margin: 0;
}

.blog-toc-list a {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-toc-list a:hover {
    background: #f3f6fb;
    color: #2f7cff;
}

.blog-toc-list a.is-active {
    background: #eef4ff;
    color: #2f7cff;
    border-left-color: #2f7cff;
    font-weight: 600;
}

.blog-toc-item--child a {
    font-size: 12px;
    padding-left: 18px;
    color: #9aa3ad;
}

.blog-page-main {
    min-width: 0;
}

.blog-rail-sidebar {
    align-self: stretch;
}

.blog-rail-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.blog-rail-card {
    background: linear-gradient(160deg, #f5f8ff 0%, #eef4ff 100%);
    border: 1px solid rgba(47, 124, 255, 0.15);
    border-radius: 16px;
    padding: 22px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.blog-rail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f7cff, #7b61ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.blog-rail-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.3;
}

.blog-rail-card p {
    font-size: 14px;
    color: #5b6472;
    line-height: 1.55;
    margin: 0 0 14px;
}

.blog-rail-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.blog-rail-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
}

.blog-rail-features i {
    color: #2f7cff;
    font-size: 12px;
}

.blog-rail-btn {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.blog-rail-btn--primary {
    background: linear-gradient(135deg, #2f7cff, #7b61ff);
    color: #fff;
    margin-bottom: 8px;
}

.blog-rail-btn--ghost {
    background: #fff;
    color: #2f7cff;
    border: 1px solid rgba(47, 124, 255, 0.25);
}

.blog-rail-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Promo banner above article body */
.article-promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f0f5ff 0%, #eef2ff 100%);
    border: 1px solid rgba(47, 124, 255, 0.12);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.article-promo-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f7cff;
    margin-bottom: 6px;
}

.article-promo-banner-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
    max-width: 520px;
}

.article-promo-btn {
    flex-shrink: 0;
    background: #2f7cff;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.article-promo-btn:hover {
    background: #1a6ae6;
}

/* Medium-style preview card */
.medium-preview {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: 32px 0;
    background: #fff;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
}

.medium-preview:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.medium-preview-text {
    flex: 1;
    padding: 18px 20px;
    min-width: 0;
}

.medium-preview-kicker {
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 6px;
}

.medium-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin-bottom: 6px;
}

.medium-preview-desc {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.medium-preview-image {
    width: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f4f8;
    align-self: stretch;
    min-height: 100px;
}

.medium-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 100px;
}

/* Article header */
.article-header {
    padding: 0 0 28px;
}

.article-kicker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #2f7cff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.article-header h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.18;
    color: #111827;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    overflow-wrap: break-word;
}

.article-deck {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.02rem, 2.2vw, 1.2rem);
    line-height: 1.65;
    color: #6b7280;
    margin-bottom: 22px;
    max-width: 780px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.article-meta-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f7cff, #7b61ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.article-meta-text strong {
    color: #111827;
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.article-meta-role {
    font-size: 12px;
    color: #9aa3ad;
}

.article-meta-divider {
    width: 1px;
    height: 28px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.article-meta-item i {
    color: #9aa3ad;
    font-size: 13px;
}

/* Cover image */
.article-cover {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background: #0f172a;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.article-cover--hero img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    object-position: center;
}

.article-cover figcaption {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    padding: 14px 16px 0;
    line-height: 1.5;
    background: transparent;
}

/* Body typography */
.article-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(16px, 2vw, 17.5px);
    line-height: 1.75;
    color: #374151;
    overflow-wrap: break-word;
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.3rem, 2.8vw, 1.55rem);
    font-weight: 700;
    color: #111827;
    margin: 2.4em 0 0.9em;
    line-height: 1.3;
    letter-spacing: -0.02em;
    scroll-margin-top: 100px;
}

.article-body h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.2rem);
    font-weight: 700;
    color: #1f2937;
    margin: 1.8em 0 0.6em;
    scroll-margin-top: 100px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5em;
    padding-left: 1.4em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body strong {
    font-weight: 700;
    color: #111;
}

.article-body a {
    color: #2f7cff;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

/* Inline figures */
.article-figure {
    margin: 2.5em 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #f0f4f8;
    border: 1px solid #e8ecf1;
}

.article-figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.article-figure figcaption {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #6b6b6b;
    text-align: center;
    margin-top: 12px;
    padding: 0 4px;
    line-height: 1.5;
}

.pull-quote {
    border-left: 3px solid #2f7cff;
    padding: 4px 0 4px 20px;
    margin: 2em 0;
    font-size: clamp(1.05em, 2.5vw, 1.25em);
    font-style: italic;
    color: #333;
    line-height: 1.6;
}

.tip-box {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7f9fc;
    border: 1px solid rgba(47, 124, 255, 0.15);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 2em 0;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.65;
    color: #444;
}

.tip-box strong {
    color: #2f7cff;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(13px, 2vw, 15px);
    margin: 1.5em 0 2em;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table thead,
.pricing-table tbody,
.pricing-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.pricing-table th,
.pricing-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
}

.pricing-table th {
    background: #f7f9fc;
    font-weight: 700;
    color: #111;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.article-cta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #2f7cff, #7b61ff);
    color: #fff;
    border-radius: 16px;
    padding: clamp(22px, 4vw, 32px) clamp(18px, 4vw, 28px);
    text-align: center;
    margin: 3em 0 2em;
}

.article-cta h2 {
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    margin: 0 0 10px;
    color: #fff;
}

.article-cta p {
    font-size: 15px;
    opacity: 0.92;
    margin-bottom: 18px;
    line-height: 1.6;
}

.article-cta a {
    display: inline-block;
    background: #fff;
    color: #2f7cff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.article-cta a:hover {
    transform: scale(1.03);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.article-tags span {
    font-size: 13px;
    color: #6b6b6b;
    background: #f2f2f2;
    padding: 6px 12px;
    border-radius: 999px;
}

.back-to-guides {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .blog-page-three-col {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .blog-rail-sidebar {
        display: none;
    }
}

@media (max-width: 860px) {
    .blog-page-three-col {
        grid-template-columns: 1fr;
    }

    .blog-toc-sidebar {
        display: none;
    }

    .blog-article-hero {
        margin-bottom: 24px;
    }

    .article-promo-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .article-promo-btn {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .medium-preview {
        flex-direction: column-reverse;
    }

    .medium-preview-image {
        width: 100%;
        min-height: unset;
        max-height: 200px;
        aspect-ratio: 16 / 9;
    }

    .medium-preview-image img {
        min-height: unset;
        aspect-ratio: 16 / 9;
        max-height: 200px;
    }

    .article-cover {
        border-radius: 6px;
    }

    .pull-quote {
        padding-left: 16px;
    }

    .article-cta a {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ---- Related guides (end of article) ---- */
.related-guides {
    margin: 40px 0 8px;
    padding-top: 8px;
}

.related-guides-head {
    margin-bottom: 20px;
}

.related-guides-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 6px;
}

.related-guides-head p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-guide-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.related-guide-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.related-guide-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.related-guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-guide-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.related-guide-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
}

.related-guide-body h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-guide-body p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-guide-more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
}

.related-guide-more i {
    font-size: 0.75em;
    margin-left: 2px;
}

@media (max-width: 900px) {
    .related-guides-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- German / niche channel directory cards ---- */
.channel-dir-disclaimer {
    margin-bottom: 28px;
}

.channel-dir-section {
    margin: 36px 0 28px;
}

.channel-dir-section > h2 {
    margin-bottom: 8px;
}

.channel-dir-section-intro {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0 0 18px;
}

.channel-dir-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.channel-dir-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.channel-dir-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.channel-dir-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-dir-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-dir-meta {
    min-width: 0;
}

.channel-dir-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.channel-dir-handle {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    color: #64748b;
}

.channel-dir-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.channel-dir-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.channel-dir-subs {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.channel-dir-subs i {
    margin-right: 4px;
    font-size: 0.75em;
}

.channel-dir-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 10px;
}

.channel-dir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.channel-dir-btn:hover {
    background: #1d4ed8;
}

.channel-dir-btn i {
    font-size: 0.78em;
}

@media (max-width: 720px) {
    .channel-dir-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .blog-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }
}
