/* ==========================================================================
   Article Page Styles
   ========================================================================== */

/* --- Hero Image --- */
.article-hero {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    margin-top: 56px; /* nav height */
}

.article-hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    pointer-events: none;
}

/* --- Article Body --- */
.article-section {
    padding-top: 48px;
    padding-bottom: 80px;
}

.article-inner {
    max-width: 680px;
    margin: 0 auto;
}

.article-title {
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.article-meta {
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #1a1a1a;
}

.article-inner p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-inner h2 {
    color: #ff6b6b;
    font-size: 1.4rem;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.article-inner ol {
    list-style: none;
    counter-reset: steps;
    padding: 0;
    margin: 20px 0 28px;
}

.article-inner ol li {
    counter-increment: steps;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 4px 0 4px 32px;
    position: relative;
}

.article-inner ol li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 0.85rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 6px;
}

.article-inner a {
    color: #ff6b6b;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #ff6b6b44;
    transition: text-decoration-color 0.2s;
}

.article-inner a:hover {
    text-decoration-color: #ff6b6b;
    color: #ff9b9b;
}

.article-inner em {
    color: #ccc;
    font-style: italic;
}

.article-inner code {
    background: #151515;
    border: 1px solid #222;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.9em;
    color: #ddd;
}

.article-closing {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #1a1a1a;
    color: #666 !important;
    font-style: italic;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .article-hero-img {
        height: 320px;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .article-inner {
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .article-hero-img {
        height: 240px;
    }

    .article-title {
        font-size: 1.4rem;
    }
}
