/**
 * Article Components - Runfish Apparel
 * In-article content elements
 */

/* Headings */
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #0F2E44;
    font-weight: 700;
    line-height: 1.3;
    scroll-margin-top: 110px;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8ecf0;
}

.article-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
}

.article-content h4 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Paragraphs & lists */
.article-content p {
    margin: 0 0 1.25rem;
}

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

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content li + li {
    margin-top: 0.35rem;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 46, 68, 0.08);
    margin: 1.75rem 0;
    font-size: 0.9375rem;
}

.article-content thead th {
    background: #0F2E44;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 0.875rem 1rem;
    border: none;
}

.article-content tbody td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e8ecf0;
    color: #333;
    vertical-align: top;
}

.article-content tbody tr:nth-child(even) td {
    background: #F5F7FA;
}

.article-content tbody tr:hover td {
    background: #eef3f7;
}

/* Blockquote */
.article-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #3A7B9E;
    background: #F5F7FA;
    color: #0F2E44;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.article-content code {
    background: #F5F7FA;
    color: #0F2E44;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.92em;
    border: 1px solid #e8ecf0;
}

.article-content pre {
    background: #0F2E44;
    color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

/* HR */
.article-content hr {
    border: none;
    border-top: 1px solid #e8ecf0;
    margin: 2.5rem 0;
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, #0F2E44 0%, #3A7B9E 100%);
    color: #fff;
    padding: 2.5rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    margin: 2.5rem 0;
    box-shadow: 0 6px 18px rgba(15, 46, 68, 0.18);
}

.cta-banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.cta-banner-body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.cta-banner-button {
    display: inline-block;
    background: #FFAA47;
    color: #0F2E44;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    min-height: 48px;
    line-height: 1.4;
}

.cta-banner-button:hover,
.cta-banner-button:focus {
    background: #fff;
    color: #0F2E44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.25rem; }
    .article-content h4 { font-size: 1.0625rem; }

    /* Table scroll */
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cta-banner {
        padding: 2rem 1.25rem;
    }
    .cta-banner-title {
        font-size: 1.25rem;
    }
}
