/* ============================================
   SUPERLAC DOC — ARTICLE DETAIL STYLES
   Design System Aligned
   ============================================ */

/* Article Prose */
.doc-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}

.doc-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    letter-spacing: -0.01em;
    color: var(--text);
}

.doc-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: var(--text);
}

.doc-content p {
    margin-bottom: 1.25em;
    color: var(--text-soft);
}

.doc-content ul, .doc-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.doc-content li {
    margin-bottom: 0.5em;
    color: var(--text-soft);
}

.doc-content ul li {
    list-style-type: disc;
}

.doc-content ol li {
    list-style-type: decimal;
}

.doc-content strong {
    font-weight: 700;
    color: var(--text);
}

.doc-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.doc-content a:hover {
    opacity: 0.8;
}

.doc-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: rgba(111,143,122,0.04);
    border-radius: 0 12px 12px 0;
    color: var(--text-soft);
    font-style: italic;
}

.doc-content blockquote p {
    margin-bottom: 0;
}

.doc-content img {
    border-radius: 16px;
    margin: 2em 0;
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-medium);
}

.doc-content hr {
    border: none;
    border-top: 1px solid rgba(111,143,122,0.1);
    margin: 2.5em 0;
}

/* Checklist style */
.doc-content ul.checklist {
    padding-left: 0;
    list-style: none;
}

.doc-content ul.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(111,143,122,0.04);
    border-radius: 10px;
    margin-bottom: 8px;
}

.doc-content ul.checklist li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Two column layout for tips */
.doc-content .tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 1.5em 0;
}

.doc-content .tips-grid .tip-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(111,143,122,0.1);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.doc-content .tips-grid .tip-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.doc-content .tips-grid .tip-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .doc-content .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Scroll Reveal */
.doc-cta-reveal {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.doc-cta-reveal.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Loading state override */
#doc-loading.hidden {
    display: none;
}

#doc-content.hidden {
    display: none;
}

/* Related posts card reuse */
#doc-related .blog-panel {
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .doc-content {
        font-size: 1rem;
    }
    .doc-content h2 {
        font-size: 1.5rem;
    }
}
