/* ============================================================
   article.css — shared article layout (REDESIGN, NEW FILE)
   Replaces the per-page inline <style> blocks in public/articles/*.html
   and docs/article-template.html. Link it after alabama-rankings.css:
     <link rel="stylesheet" href="../article.css">
   Selectors match the inline blocks 1:1, so removing an article's
   inline <style> and linking this file is a lossless swap.
   ============================================================ */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-header {
    margin-bottom: 2.75rem;
}

.article-category {
    display: inline-block;
    background: none;
    border: 1px solid #d7222d;
    color: #b81b25;
    padding: 0.25rem 0.65rem;
    border-radius: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
}

.article-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
    color: #16264c;
    margin: 0 0 1.25rem 0;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #5c6a8a;
    padding-bottom: 1.4rem;
    border-bottom: 3px solid #16264c;
}

.article-read-time,
.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta a {
    color: #16264c;
    font-weight: 600;
}

.article-meta a:hover {
    color: #b81b25;
}

.article-content {
    font-size: 1.06rem;
    line-height: 1.8;
    color: #2d3853;
}

.article-content h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #16264c;
    border-bottom: 2px solid #e4e9f1;
    padding-bottom: 0.5rem;
    margin: 3rem 0 1rem 0;
}

.article-content h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2d3853;
    margin: 2rem 0 0.75rem 0;
}

.article-content p {
    margin: 1.5rem 0;
}

.article-content a {
    color: #16264c;
    text-decoration: underline;
    font-weight: 600;
}

.article-content a:hover {
    color: #b81b25;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin: 0.75rem 0;
}

.article-content blockquote {
    border-left: 4px solid #d7222d;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #ffffff;
    border-top: 1px solid #d5dce8;
    border-right: 1px solid #d5dce8;
    border-bottom: 1px solid #d5dce8;
    font-style: italic;
    color: #46516b;
}

/* Callouts: navy panel with red kicker heading */
.callout-box {
    background: #16264c;
    border-left: none;
    padding: 1.75rem 2rem;
    border-radius: 6px;
    margin: 2rem 0;
    color: #c9d3e8;
}

.callout-box h3 {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0;
    color: #f2545c;
}

.callout-box p {
    color: #c9d3e8;
}

.callout-box a {
    color: #ffffff;
    font-weight: 600;
}

.stat-highlight {
    background: #ffffff;
    border: 1px solid #d5dce8;
    border-top: 4px solid #d7222d;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    margin: 2rem 0;
}

.stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #16264c;
    margin: 0;
}

.stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #5c6a8a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border: 1px solid #d5dce8;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.data-table th {
    background: #16264c;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    text-align: left;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef1f6;
    font-variant-numeric: tabular-nums;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
    background: #f8fafd;
}

.data-table tr:hover {
    background: #eef3fb;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e4e9f1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b81b25;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #16264c;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.3rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-container {
        padding: 2rem 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================================
   Ported from the per-page inline blocks during the Sep 2026
   restyle. These selectors were not in the design bundle but are
   used by shipped articles and docs/article-template.html, so
   they live here rather than in duplicated inline blocks.
   ============================================================ */

.article-dek {
    font-size: 1.18rem;
    line-height: 1.65;
    color: #46516b;
    margin: 0 0 1.5rem;
}

.article-content strong {
    color: #16264c;
    font-weight: 700;
}

.callout-box p:last-child {
    margin-bottom: 0;
}

.article-figure {
    margin: 2rem 0;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #d5dce8;
    border-radius: 6px;
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    color: #46516b;
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.related-links {
    border-top: 2px solid #e4e9f1;
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.related-links a {
    color: #b81b25;
    font-weight: 700;
}

.related-links a:hover {
    color: #16264c;
}

.article-content code {
    background: #eef1f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95rem;
    color: #b81b25;
}

.article-content pre {
    background: #16264c;
    color: #c9d3e8;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
}
