/* ═══════════════════════════════════════════
   TankSchwabe Blog Styles
   Inherits design tokens from style.css
   ═══════════════════════════════════════════ */

/* ═══ BLOG INDEX ═══ */
.blog-hero {
    padding: 140px 0 60px;
    text-align: center;
}
.blog-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.blog-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding-bottom: 96px;
}

.blog-card {
    background: rgba(var(--ink-rgb), 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    background: rgba(var(--ink-rgb), 0.04);
    border-color: var(--gold-border);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}
.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
}
.blog-card-body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--gold-glow);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    align-self: flex-start;
}
.blog-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--heading);
}
.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-faint);
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.blog-card-date {
    font-weight: 600;
}
.blog-card-read {
    color: var(--gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-card-read svg {
    transition: transform 0.2s;
}
.blog-card:hover .blog-card-read svg {
    transform: translateX(3px);
}

/* ═══ ARTICLE PAGE ═══ */
.article-hero {
    padding: 140px 0 48px;
    text-align: center;
    position: relative;
}
.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-bottom: 20px;
}
.article-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.article-breadcrumb a:hover {
    color: var(--gold);
}
.article-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    background: var(--gold-glow);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.article-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--text-faint);
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article content */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}
.article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 48px 0 16px;
    line-height: 1.2;
    color: var(--heading);
}
.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--heading);
}
.article-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}
.article-content strong {
    color: var(--heading);
    font-weight: 700;
}
.article-content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content a:hover {
    color: var(--gold-light);
}
.article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.article-content li {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Key findings box */
.key-finding {
    background: linear-gradient(135deg, rgba(229, 42, 18, 0.08), rgba(229, 42, 18, 0.02));
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 28px;
    margin: 32px 0;
}
.key-finding-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.key-finding p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Data callout box */
.data-box {
    background: rgba(var(--ink-rgb), 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin: 32px 0;
}
.data-box-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
}
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}
.data-item {
    text-align: center;
}
.data-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.2;
}
.data-value.green { color: var(--green); }
.data-value.red { color: var(--red); }
.data-label {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Info box */
.info-box {
    background: rgba(46, 204, 113, 0.06);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
}
.info-box p {
    color: var(--text);
    margin-bottom: 0;
}

/* Table */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}
/* Wide tables scroll inside the column instead of widening the page. */
.table-scroll {
    overflow-x: auto;
    margin: 24px 0;
}
.table-scroll .article-table {
    margin: 0;
}
.table-scroll .article-table td {
    white-space: nowrap;
}
.article-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
}
.article-table td {
    padding: 12px 16px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}
.article-table tr:hover td {
    background: rgba(var(--ink-rgb), 0.02);
}
.article-table .rank {
    font-weight: 800;
    color: var(--text-faint);
    font-size: 0.82rem;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    margin: 48px 0 0;
}
.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--heading);
}
.article-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}
.article-cta .btn {
    display: inline-flex;
}

/* Share bar */
.article-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}
.article-share-label {
    font-size: 0.78rem;
    color: var(--text-faint);
    font-weight: 600;
}
.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--ink-rgb), 0.04);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.share-icon:hover {
    background: rgba(var(--ink-rgb), 0.08);
    border-color: var(--gold-border);
    color: var(--gold);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .article-content {
        padding: 40px 20px 80px;
    }
    .article-content h2 {
        font-size: 1.35rem;
    }
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    .article-cta {
        padding: 36px 24px;
    }
    .article-table th, .article-table td {
        padding-left: 8px;
        padding-right: 8px;
    }
}
