/* ===== Blog Container ===== */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Wider Header Section ===== */
.blog-header-wide {
    max-width: min(1340px, 100%);
    margin: 0 auto 3rem;
    padding: clamp(3rem, 7vw, 5rem) clamp(10px, 3vw, 20px) 0;
}

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

/* ===== Centered Main Content ===== */
.blog-content-centered {
    max-width: min(948px, 100%);
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
}

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

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

/* ===== Subtitle ===== */
.blog-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    color: #555;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

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

/* ===== Meta Information ===== */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ===== Categories ===== */
.blog-categories {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #faf9f5;
    border-left: 3px solid #C6B069;
    border-radius: 0 8px 8px 0;
}

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

/* Authors row: name unit + types unit, each wraps cleanly */
.blog-categories__group--authors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.blog-byline__author-name {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.blog-byline__author-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.blog-categories__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    white-space: nowrap;
}

/* ===== Byline elements ===== */
.blog-byline__authors {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c2c25;
}

.blog-byline__reading-time {
    margin-left: auto;
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
    font-style: italic;
}

/* ===== Category tags ===== */
.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;
}

.blog-cat-tag--system {
    background-color: #fdf8ec;
    color: #7a6530;
}

.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-cat-tag--system-wellbeing {
    background-color: #eefaf3;
    color: #2a7a4f;
}

.blog-cat-tag--strain {
    background-color: #fef0ee;
    color: #a83a2a;
}

.blog-cat-tag--rdg {
    background-color: #eef7fb;
    color: #1a6a8a;
}

/* ===== Author Footer ===== */
.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;
}

/* ===== Blog Content ===== */
.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: justify;
}

/* ===== Headings within content ===== */
.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;
}

/* ===== at-a-glance block — neuro gold brand ===== */
.blog-content .at-a-glance {
    border-color: #C6B069;
}

.blog-content .at-a-glance__badge {
    background-image: linear-gradient(135deg, #C6B069 0%, #e6d08a 100%);
    color: #2c2c25;
}

/* ===== Responsive Design ===== */
@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;
    }
}

/* ===== Link Styles ===== */
.blog-content a {
    color: #C6B069;
    text-decoration: underline;
}

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

/* ===== Image Styles within content ===== */
.blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
}

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

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

.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;
}

/* ===== Blockquotes ===== */
.blog-content blockquote {
    border-left: 4px solid #C6B069;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #555;
}