/* Global Styles */
:root {
    --color-brand: #000000;
    --color-cta: #FF5722;
    --text-muted: #777;
    --border: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
}

body {
    background: #fff;
}

a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-cta);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Article Specific Styles */
.article-hero {
    background-color: var(--color-brand);
    color: #fff;
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.article-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    max-width: 800px;
}

.article-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin-bottom: 32px;
    font-weight: 400;
}

.article-hero .hero-cta {
    display: inline-block;
    background-color: var(--color-cta);
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.article-hero .hero-cta:hover {
    background-color: #e64a19;
    color: #fff;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

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

.article-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-brand);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.article-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--color-brand);
}

.article-section p {
    font-weight: 400;
    color: #333;
    line-height: 1.7;
    margin-bottom: 1.4em;
}

.article-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.article-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 400;
}

.article-image {
    width: 100%;
    border-radius: 8px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.specs-table th, 
.specs-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-weight: 400;
}

.specs-table th {
    background: var(--color-brand);
    color: #fff;
    font-weight: 700;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.pros, 
.cons {
    padding: 24px;
    border-radius: 8px;
}

.pros {
    background: #f0f8f0;
    border: 1px solid #c8e6c9;
}

.cons {
    background: #fef0f0;
    border: 1px solid #ffcdd2;
}

.pros h4, 
.cons h4 {
    margin-bottom: 16px;
    color: var(--color-brand);
    font-weight: 700;
}

.verdict-box {
    background: var(--color-brand);
    color: #fff;
    padding: 32px;
    border-radius: 8px;
    margin: 40px 0;
}

.verdict-box h3 {
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.verdict-box p {
    color: #ddd;
}

.cta-section {
    text-align: center;
    padding: 48px 24px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 40px 0;
}

.cta-section h3 {
    color: var(--color-brand);
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-section p {
    color: #555;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-cta);
    color: #fff;
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.2s;
    margin-top: 16px;
}

.cta-button:hover {
    background-color: #e64a19;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .article-hero {
        padding: 60px 20px 40px;
        min-height: 300px;
    }
    
    .article-hero h1 {
        font-size: 1.8rem;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
    }
    
    .article-section h3 {
        font-size: 1.3rem;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .specs-table {
        font-size: 14px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 12px;
    }
    
    .article-container {
        padding: 30px 16px;
    }
}

@media (max-width: 480px) {
    .article-hero h1 {
        font-size: 1.5rem;
    }
    
    .article-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .article-section {
        margin-bottom: 36px;
    }
    
    .verdict-box,
    .cta-section {
        padding: 24px 16px;
    }
}

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