/* Editorial layer: guide articles + guide index.
   Theme-aware: every colour comes from the site's style.css variables, so the same file renders correctly on the
   light (freewebtoapp) and dark (freewebsitetoapk) themes. Never hard-code a hex here. */

.article-hero { background: var(--gradient-hero); padding: 120px 0 60px; position: relative; border-bottom: 1px solid var(--border-light); }
.article-container { max-width: 800px; margin: 0 auto; padding: 0 20px; position: relative; }
.article-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.article-category { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: .85rem; }
.article-date { color: var(--text-muted); font-size: .875rem; }
.article-title { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: var(--text-primary); }
.article-excerpt { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.7; }

.article-content { background: var(--bg-card); border: 1px solid var(--border-color); padding: 56px 44px; margin: -40px auto 60px; border-radius: var(--card-radius, 20px); max-width: 800px; position: relative; box-shadow: var(--shadow-md); }
.article-content h2 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; color: var(--text-primary); margin: 46px 0 18px; line-height: 1.25; }
.article-content h2:first-child, .article-content .toc + h2 { margin-top: 0; }
.article-content h3 { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); margin: 30px 0 12px; }
.article-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 22px 0 8px; }
.article-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px; font-size: 1.05rem; }
.article-content ul, .article-content ol { color: var(--text-secondary); line-height: 1.8; margin: 16px 0 22px; padding-left: 28px; font-size: 1.02rem; }
.article-content li { margin-bottom: 10px; }
.article-content li ul { margin: 8px 0 0; }
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content em { color: var(--text-secondary); }
.article-content a { color: var(--primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); text-underline-offset: 2px; }
.article-content a:hover { text-decoration-color: var(--primary); }

.highlight-box { background: color-mix(in srgb, var(--primary) 10%, transparent); border-left: 4px solid var(--primary); padding: 22px 24px; margin: 30px 0; border-radius: 8px; }
.highlight-box p { margin: 0; color: var(--text-primary); }
.step-box { background: color-mix(in srgb, var(--success) 8%, transparent); border-left: 4px solid var(--success); padding: 22px 24px; margin: 30px 0; border-radius: 8px; }
.tip-box { background: color-mix(in srgb, var(--warning) 8%, transparent); border-left: 4px solid var(--warning); padding: 22px 24px; margin: 30px 0; border-radius: 8px; }
.tip-box h4, .step-box h4 { margin-top: 0; }
.cta-box { background: var(--gradient-primary); padding: 36px; border-radius: 16px; text-align: center; margin: 46px 0; }
.cta-box h3, .cta-box p { color: #fff; }
.cta-box .btn { background: #fff; color: var(--primary-dark); padding: 14px 30px; border-radius: 10px; text-decoration: none; font-weight: 600; display: inline-block; }

.comparison-table { width: 100%; margin: 26px 0; border-collapse: collapse; }
.comparison-table th { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); padding: 12px; text-align: left; font-weight: 600; }
.comparison-table td { padding: 12px; border-top: 1px solid var(--border-color); color: var(--text-secondary); }

/* ---- guide index ---- */
.news-hero { background: var(--gradient-hero); padding: 120px 0 56px; text-align: center; border-bottom: 1px solid var(--border-light); }
.news-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; color: var(--text-primary); }
.news-hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto; line-height: 1.6; }
.news-container { max-width: 1200px; margin: 0 auto; padding: 60px 20px 80px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.news-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--card-radius, 20px); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card-image { width: 100%; height: 150px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; }
.news-card-content { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.news-card-meta { display: flex; gap: 14px; margin-bottom: 14px; font-size: .85rem; color: var(--text-muted); align-items: center; }
.news-card-category { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-weight: 600; }
.news-card h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 12px; line-height: 1.35; }
.news-card h2 a { color: var(--text-primary); text-decoration: none; }
.news-card h2 a:hover { color: var(--primary); }
.news-card-excerpt { color: var(--text-secondary); line-height: 1.6; flex: 1; margin-bottom: 18px; font-size: .97rem; }
.news-card-link { color: var(--primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.news-card-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .article-content { padding: 36px 22px; margin-top: -24px; }
    .article-content h2 { font-size: 1.5rem; }
    .comparison-table { font-size: .875rem; }
    .comparison-table th, .comparison-table td { padding: 10px; }
}
