:root {
--color-brand: #6d28d9;
--color-cta: #22c55e;
--text-muted: #666;
--border: #ddd;
}
html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, svg, canvas { max-width: 100%; height: auto; }
body { font-size: 16px; line-height: 1.6; color: #222; margin: 0; }
.hero { position: relative; padding: 72px 24px; text-align: center; color: #fff; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); }
.hero-content { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.hero-content h1 { color: #fff; font-size: 40px; font-weight: 700; line-height: 1.6; margin: 0 0 20px; }
.hero-content p, .hero-content h2, .hero-content h3, .hero-content span, .hero-content li { color: #fff; }
.hero-sub { font-size: 18px; line-height: 1.6; font-weight: 400; margin: 0 auto 28px; max-width: 720px; }
.btn { display: inline-block; background-color: var(--color-cta); color: #111; font-weight: 700; line-height: 1.6; text-transform: uppercase; text-decoration: none; padding: 13px 26px; border-radius: 6px; border: none; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s; }
.btn:hover, .btn:focus { background-color: #1db954; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.btn:focus { outline: 3px solid #fff; outline-offset: 3px; }
.article-body { max-width: 880px; width: 100%; margin: 0 auto; padding: 0 24px 56px; }
.intro-block { padding: 36px 0 8px; }
.intro-block p { font-size: 18px; line-height: 1.6; margin: 0 0 20px; }
.content-section { padding: 28px 0; border-top: 1px solid var(--border); }
.content-section-alt { background-color: #f3eefc; padding: 32px 24px; border-radius: 8px; margin: 12px 0; }
.content-section-alt h2, .content-section-alt h3 { color: var(--color-brand); }
.content-section-alt p, .content-section-alt li, .content-section-alt td, .content-section-alt th { color: #222; }
.content-section h2 { font-size: 30px; font-weight: 700; line-height: 1.6; color: var(--color-brand); margin: 8px 0 18px; }
.content-section h3 { font-size: 22px; font-weight: 700; line-height: 1.6; color: #222; margin: 26px 0 12px; }
.content-section p { font-size: 17px; line-height: 1.6; font-weight: 400; margin: 0 0 18px; overflow-wrap: break-word; }
.content-section img { display: block; border-radius: 8px; margin: 24px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0 26px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
th { background-color: var(--color-brand); color: #fff; font-weight: 700; text-transform: uppercase; text-align: left; padding: 12px; line-height: 1.6; }
th, td { border: 1px solid var(--border); }
td { padding: 11px 12px; color: #333; vertical-align: top; }
tr:hover td { background-color: #f3eefc; }
.heatmap td.heat-high { background-color: var(--color-brand); color: #fff; font-weight: 700; }
.heatmap td.heat-med { background-color: #ddd3f5; color: #222; }
.heatmap td.heat-low { background-color: #eee; color: #555; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 24px 0; }
.card { border: 1px solid var(--border); border-radius: 8px; padding: 22px; background-color: #fff; transition: box-shadow 0.2s, transform 0.2s; min-width: 0; overflow: hidden; }
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); transform: translateY(-2px); }
.card h3 { margin-top: 0; color: var(--color-brand); }
.card p { font-size: 16px; margin-bottom: 0; }
.card h3 a { color: var(--color-brand); text-decoration: none; }
.steps { line-height: 1.6; padding-left: 22px; margin: 0 0 22px; }
.steps li { margin-bottom: 14px; font-size: 17px; line-height: 1.6; }
ul, ol { line-height: 1.6; }
li { line-height: 1.6; }
strong { font-weight: 700; }
a { color: var(--color-brand); }
a:focus { outline: 2px solid var(--color-brand); outline-offset: 2px; }
@media (max-width: 768px) {
.hero { padding: 44px 16px; }
.hero-content h1 { font-size: 26px; }
.hero-sub { font-size: 16px; }
.article-body { padding: 0 16px 40px; }
.content-section h2 { font-size: 24px; }
.content-section h3 { font-size: 20px; }
.content-section { padding: 22px 0; }
.content-section-alt { padding: 22px 16px; }
.cards { grid-template-columns: 1fr; gap: 16px; }
.btn { width: 100%; text-align: center; }
table { font-size: 14px; }
th, td { padding: 9px; }
}
@media (max-width: 480px) {
.hero-content h1 { font-size: 24px; }
.content-section p, .steps li { font-size: 16px; }
.intro-block p { font-size: 16px; }
.article-body { padding: 0 15px 36px; }
}

/* ===== TYPOGRAPHY SPACING FIX (APS_ARTICLE_TYPO_REQUIRED_v2) ===== */
/* Defensive guard against universal * { margin: 0 } reset in global.css. */
/* body-scoped via :where() so specificity stays at 0,0,0,1 — beats * but
   loses to any component rule like .tip-box p / .faq-item p. */
body :where(p)              { margin-bottom: 1.1rem; }
body :where(h2)             { margin-top: 2.5rem; margin-bottom: 1rem; }
body :where(h3)             { margin-top: 1.75rem; margin-bottom: 0.75rem; }
body :where(h4)             { margin-top: 1.25rem; margin-bottom: 0.5rem; }
body :where(ul, ol)         { margin-bottom: 1.1rem; padding-left: 1.5rem; }
body :where(li)             { margin-bottom: 0.4rem; }
body :where(blockquote)     { margin: 1.5rem 0; }
