/* ==========================================
   CONTENT PAGES (Guide, FAQ, Policy, Articles)
   ========================================== */
.page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    flex: 1;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.page-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.7rem;
}

.page-header h1 {
    font-size: 2rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.page-meta {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Body headings inside content pages */
.page .content-block h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.8rem;
}

.page .content-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.2rem 0 0.5rem;
}

.page .content-block p,
.page .content-block ul,
.page .content-block ol {
    font-size: 1rem;
    line-height: 1.8;
}

.page .content-block a {
    color: var(--accent);
}

.page .highlight-card h2 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.page .example-box h3 {
    margin-top: 0;
    font-size: 1rem;
}

/* Unverified fact marker */
.verify {
    display: inline;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b45309;
    background: rgba(217, 119, 6, 0.12);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* FAQ (always expanded) */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-entry {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: var(--card-bg);
    padding: 1.2rem 1.3rem;
}

.faq-entry h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.faq-entry p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.faq-entry p + p {
    margin-top: 0.5rem;
}

.faq-entry a {
    color: var(--accent);
}

/* Policy text */
.legal-text h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.8rem 0 0.5rem;
}

.legal-text p,
.legal-text ul {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.6rem;
}

.legal-text ul {
    padding-left: 1.4rem;
}

/* Article list */
.article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.article-card {
    display: block;
    padding: 1.2rem 1.3rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.article-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.article-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

.article-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Related articles */
.related {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.related h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.related ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.related a:hover {
    text-decoration: underline;
}

/* Call to action (go to search tool) */
.cta-box {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--accent-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
}

.cta-box p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: var(--accent-hover);
}

/* Formula / code box in articles */
.code-box {
    margin: 0.4rem 0 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: var(--table-header);
    border: 1px solid var(--table-border);
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.code-box code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
}

/* Ad slot wrapper (only used inside content pages) */
.ad-slot {
    margin: 2rem 0;
    min-height: 100px;
}

@media (max-width: 768px) {
    .page {
        padding: 1rem 1.1rem 2.5rem;
    }

    .page-header h1 {
        font-size: 1.55rem;
    }

    .page .content-block p,
    .page .content-block ul,
    .page .content-block ol {
        font-size: 0.97rem;
    }

    .info-table {
        font-size: 0.85rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.65rem 0.75rem;
    }
}

[data-theme="dark"] .verify {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}
