/* ============================================================
   BLOG POST — Mobile-first
   clamp() handles fluid sizing; breakpoints handle layout shifts
   ============================================================ */

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.blog-header-wide {
    max-width: min(1340px, 100%);
    margin: 0 auto 3rem;
    padding: clamp(1.5rem, 5vw, 4rem) clamp(10px, 3vw, 20px) 0;
}

.blog-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: left;
}

.blog-content-centered {
    max-width: min(948px, 100%);
    margin: 0 auto;
    padding: 0 clamp(10px, 3vw, 20px);
}

.blog-cover {
    width: 100%;
    height: clamp(200px, 40vw, 400px);
    aspect-ratio: 16/9;
    overflow: hidden;
    margin: 1rem 0;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.blog-intro {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.blog-byline__authors {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

.blog-byline__sep {
    color: #bbb;
    font-size: 0.9rem;
}

.blog-byline__reading-time {
    margin-left: auto;
    font-size: 0.88rem;
    color: #888;
    white-space: nowrap;
}

.blog-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-categories__group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-byline__reading-time {
    color: #aaa;
    font-size: 0.82rem;
}

@media (min-width: 768px) {
    .blog-categories__group--authors {
        flex-wrap: nowrap;
    }
}

.blog-categories__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-right: 0.25rem;
}

.blog-cat-tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

a.blog-cat-tag:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.blog-cat-tag--system   { background-color: #e6f7f6; color: #00837a; }
.blog-cat-tag--topic    { background-color: #eef3fb; color: #3a5fa8; }
.blog-cat-tag--wellbeing { background-color: #f3eefb; color: #6a3aa8; }
.blog-cat-tag--author   { background-color: #fef6e6; color: #a87b00; }

.blog-author-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 3rem;
    padding: 2rem 0 3rem;
}

.blog-author-footer__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 0.25rem;
}

.blog-author-footer__names {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.excerpt {
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
}

.blog-content {
    line-height: 1.7;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #333;
}

.blog-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.blog-content a {
    color: #00A499;
    text-decoration: underline;
}

.blog-content a:hover {
    text-decoration: none;
}

.blog-content blockquote {
    border-left: 4px solid #00A499;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #555;
}

.blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
}

.blog-content pre,
.blog-content code {
    background-color: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9em;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    display: block;
    overflow-x: auto; /* tables scroll horizontally on mobile */
}

.blog-content table th,
.blog-content table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.blog-content table th {
    background-color: #f0f0f0;
}

.blog-content .at-a-glance {
    border-color: #00A499;
}

.blog-content .at-a-glance__badge {
    background-image: linear-gradient(135deg, #00A499 0%, #9CDBD9 100%);
    color: #ffffff;
}

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

    .blog-content table {
        display: table;
    }

    .blog-content table th,
    .blog-content table td {
        white-space: normal;
    }
}
