:root {
    --color-brand: #166534;
    --color-cta: #FF6B00;
    --text-muted: #666;
    --border: #ddd;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.article-hero {
    background: var(--color-brand);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}

.article-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    max-width: 820px;
    margin: 0 auto 16px;
}

.article-hero p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 660px;
    margin: 0 auto 28px;
}

.article-hero h1 + p,
.article-hero p {
    color: rgba(255,255,255,0.85);
}

.btn-cta {
    display: inline-block;
    background: var(--color-cta);
    color: #1a1a1a;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--color-cta);
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-cta:hover {
    background: #cc5600;
    border-color: #cc5600;
}

.btn-cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-meta {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 28px;
}

.article-intro {
    margin-bottom: 48px;
}

.article-intro p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.timeline-section,
.comparison-section,
.price-section,
.faq-section {
    margin-bottom: 56px;
    scroll-margin-top: 20px;
}

.timeline-section h2,
.comparison-section h2,
.price-section h2,
.faq-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1.6;
    margin: 0 0 32px;
}

.comparison-section > p,
.price-section > p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 20px;
}

.timeline {
    position: relative;
    padding-left: 64px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ccc;
}

.timeline-step {
    position: relative;
    margin-bottom: 32px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -64px;
    top: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-marker span {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.timeline-card {
    background: #f7f7f7;
    padding: 24px 28px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.timeline-card:hover {
    background: #efefef;
}

.timeline-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.6;
}

.timeline-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 12px;
}

.timeline-card p:last-child {
    margin-bottom: 0;
}

.timeline-card ul {
    padding-left: 20px;
    margin: 0 0 12px;
}

.timeline-card li {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 6px;
}

.timeline-card li:last-child {
    margin-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 20px;
}

.comparison-table,
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th,
.price-table th {
    background: var(--color-brand);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    line-height: 1.6;
}

.comparison-table td,
.price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    color: #333;
    line-height: 1.6;
}

.comparison-table td:first-child {
    font-weight: 700;
    color: var(--color-brand);
}

.comparison-table tbody tr:nth-child(even),
.price-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.price-table tfoot tr {
    background: var(--color-brand);
}

.price-table tfoot td {
    color: #fff;
    font-weight: 700;
    border-bottom: none;
    padding: 14px 16px;
}

.faq-section {
    margin-bottom: 56px;
}

.faq-list {
    margin: 0;
    padding: 0;
}

.faq-list dt {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.6;
}

.faq-list dd {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 28px;
    padding: 0;
}

.faq-list dd:last-child {
    margin-bottom: 0;
}

.disclaimer-section {
    margin-top: 0;
    padding: 20px 24px;
    background: #f7f7f7;
    border-radius: 6px;
}

.disclaimer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .article-hero {
        padding: 48px 16px;
    }

    .article-hero h1 {
        font-size: 1.6rem;
    }

    .article-hero p {
        font-size: 1rem;
    }

    .article-body {
        padding: 24px 16px 40px;
    }

    .article-meta {
        margin-bottom: 20px;
    }

    .article-intro {
        margin-bottom: 36px;
    }

    .article-intro p {
        font-size: 1rem;
    }

    .timeline-section,
    .comparison-section,
    .price-section,
    .faq-section {
        margin-bottom: 40px;
    }

    .timeline-section h2,
    .comparison-section h2,
    .price-section h2,
    .faq-section h2 {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .timeline {
        padding-left: 52px;
    }

    .timeline::before {
        left: 17px;
    }

    .timeline-marker {
        left: -52px;
        width: 36px;
        height: 36px;
    }

    .timeline-marker span {
        font-size: 15px;
    }

    .timeline-card {
        padding: 18px 20px;
    }

    .timeline-card h3 {
        font-size: 1.1rem;
    }

    .timeline-card p,
    .timeline-card li {
        font-size: 15px;
    }

    .comparison-table,
    .price-table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td,
    .price-table th,
    .price-table td {
        padding: 10px 12px;
    }

    .comparison-table th {
        white-space: normal;
    }

    .faq-list dt {
        font-size: 1rem;
    }

    .faq-list dd {
        font-size: 15px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 36px 12px;
    }

    .article-hero h1 {
        font-size: 1.35rem;
    }

    .article-body {
        padding: 20px 12px 32px;
    }

    .timeline-section h2,
    .comparison-section h2,
    .price-section h2,
    .faq-section h2 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .timeline {
        padding-left: 44px;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-marker {
        left: -44px;
        width: 30px;
        height: 30px;
    }

    .timeline-marker span {
        font-size: 13px;
    }

    .timeline-card {
        padding: 14px 16px;
    }

    .timeline-card h3 {
        font-size: 1rem;
    }

    .timeline-card p,
    .timeline-card li {
        font-size: 14px;
    }

    .timeline-step {
        margin-bottom: 24px;
    }

    .comparison-table,
    .price-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td,
    .price-table th,
    .price-table td {
        padding: 8px 10px;
    }

    .btn-cta {
        padding: 12px 24px;
        font-size: 15px;
        display: block;
        text-align: center;
    }

    .faq-list dd {
        font-size: 14px;
    }

    .disclaimer-section {
        padding: 16px;
    }

    .disclaimer-section p {
        font-size: 13px;
    }
}

/* ===== 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; }
