/* ===========================
   ARTICLE PAGE
   =========================== */

/* --- Hero --- */
.art-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background-color: var(--gray-900);
    background-size: cover;
    background-position: center top;
}

.art-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.88) 100%
    );
}

.art-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 40px 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.art-back {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    align-self: flex-start;
}

.art-back:hover { color: #fff; }

/* Badge — reuse blog badge colors */
.art-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 100px;
    align-self: flex-start;
}

.art-badge-tips        { background: var(--lime); color: #1C1C1C; }
.art-badge-community   { background: #3b82f6; color: #fff; }
.art-badge-events      { background: #f97316; color: #fff; }
.art-badge-educational { background: #8b5cf6; color: #fff; }
.art-badge-interview   { background: #ec4899; color: #fff; }
.art-badge-sponsored   { background: #6b7280; color: #fff; }

.art-hero-title {
    font-family: var(--font-title);
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1.5px;
}

.art-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.art-sep { opacity: 0.4; }

/* --- Layout --- */
.art-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}

/* --- Article body --- */
.art-body {
    min-width: 0;
}

.art-lead {
    font-size: 19px;
    color: #444;
    line-height: 1.7;
    font-weight: 500;
    margin: 0 0 36px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--lime);
}

.art-body p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin: 0 0 20px;
}

.art-body h2.art-heading {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 900;
    color: var(--gray-900);
    margin: 44px 0 16px;
    letter-spacing: -0.5px;
}

.art-body h3.art-section-head {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 36px 0 12px;
    padding-left: 16px;
    border-left: 3px solid var(--lime);
    line-height: 1.4;
}

.art-body h3.art-subhead {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: #555;
    margin: 28px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.art-body ul.art-list,
.art-body ol.art-list {
    margin: 0 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.art-body ul.art-list li {
    position: relative;
    padding: 10px 16px 10px 40px;
    margin-bottom: 8px;
    background: #f8f8f6;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.art-body ul.art-list li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
}

/* --- Sidebar --- */
.art-sidebar {
    position: sticky;
    top: calc(var(--nav-height, 64px) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.art-sidebar-card {
    background: #f5f5f0;
    border-radius: 16px;
    padding: 24px;
}

.art-sidebar-card h4 {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 10px;
}

.art-sidebar-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px;
}

.art-sidebar-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
    background: var(--lime);
    padding: 10px 18px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s;
}

.art-sidebar-btn:hover { background: #c8da2e; }

.art-sidebar-app {
    background: var(--gray-900);
}

.art-sidebar-app h4 { color: #fff; }
.art-sidebar-app p  { color: rgba(255,255,255,0.5); }

.art-sidebar-stores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.art-store-btn {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    background: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.art-store-btn:hover { background: var(--lime); }

/* --- Prev / Next --- */
.art-prev-next {
    background: #f0f0eb;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.art-prev-next-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.art-nav-prev,
.art-nav-next {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 32px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-radius: 4px;
}

.art-nav-prev:hover,
.art-nav-next:hover { background: rgba(0,0,0,0.04); }

.art-nav-next { text-align: right; }

.art-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
}

.art-nav-title {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
}

/* --- Footer fix on article pages --- */
.footer-logo-wrap {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-wrap .footer-logo,
.footer-logo {
    height: 32px !important;
    width: auto !important;
    display: block;
    filter: invert(1);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .art-layout {
        grid-template-columns: 1fr;
        padding: 40px 20px 60px;
        gap: 40px;
    }
    .art-sidebar { position: static; }
    .art-hero-inner { padding: 30px 20px 40px; }
    .art-prev-next-inner { padding: 0 20px; }
}

@media (max-width: 600px) {
    .art-prev-next-inner { grid-template-columns: 1fr; }
    .art-nav-next { text-align: left; }
}
