/* ============================================================
   MODS GROUP — blog-content.css
   Blog article styling. Reuses main.css's Crimson Authority
   custom properties (--crimson, --anthracite, etc.) — no new
   palette. Loaded only on single.php (is_singular('post')),
   never on the front page (see functions.php comment).
   ============================================================ */

.blog-byline {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--grey-text);
    margin-bottom: 2rem;
}

.blog-featured-image {
    margin-bottom: 2.5rem;
}

.blog-featured-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.blog-content {
    max-width: 760px;
}

.blog-content > *:not(:first-child) {
    margin-top: 1.5rem;
}

.blog-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--anthracite);
    margin-top: 3rem;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--anthracite);
    margin-top: 2.25rem;
}

.blog-content p,
.blog-content li {
    line-height: 1.7;
    color: var(--anthracite);
}

.blog-content strong {
    font-weight: 700;
}

.blog-content a {
    color: var(--crimson);
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.35);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition);
}

.blog-content a:hover {
    text-decoration-color: var(--crimson);
}

/* Lists — main.css resets `ul { list-style: none; }` globally for nav-style
   UI lists; blog body copy needs real bullets/numbers back. */
.blog-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.blog-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.blog-content li + li {
    margin-top: 0.4rem;
}

/* Blockquote — the "Quick answer" / "Copy-and-adapt" callout style */
.blog-content blockquote {
    border-left: 4px solid var(--crimson);
    background: var(--light);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    font-style: italic;
    color: var(--anthracite);
}

.blog-content blockquote p {
    margin-top: 0;
}

.blog-content blockquote p + p {
    margin-top: 0.75rem;
}

/* Tables — WP's core "table" block already wraps output in a scrollable
   figure.wp-block-table, but plain <table> markup (as pasted here) has no
   such wrapper, so the table itself needs to be the scroll container. */
.blog-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
}

.blog-content thead th {
    background: var(--crimson);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
}

.blog-content tbody td,
.blog-content tbody th {
    border: 1px solid var(--light-border);
    padding: 0.75rem 1rem;
    vertical-align: top;
}

.blog-content tbody tr:nth-child(even) {
    background: var(--light);
}

/* Inline code + code blocks */
.blog-content code {
    background: var(--light);
    border: 1px solid var(--light-border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.875em;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.blog-content pre {
    background: var(--light);
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    padding: 1rem;
    overflow-x: auto;
}

.blog-content pre code {
    background: none;
    border: none;
    padding: 0;
}

/* In-body images (e.g. the comparison graphic) */
.blog-content img {
    border-radius: var(--radius);
    margin: 0.5rem 0;
}

@media (max-width: 640px) {
    .blog-content thead th,
    .blog-content tbody td,
    .blog-content tbody th {
        padding: 0.6rem 0.75rem;
        font-size: 0.875rem;
    }
}
