/* ==========================================================================
   Doctor Article / Editorial Directory Template
   Loaded only on singular "doctors" CPT pages with directory_template=article.
   ========================================================================== */

/* ── Outer wrapper ── */
.doctor-article {
    max-width: 980px;
    margin: 0 auto;
    line-height: 1.75;
    color: #1e293b;
    font-size: 1rem;
}

.doctor-article h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #e2e8f0;
}

.doctor-article h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 0.5rem;
}

/* ── Intro ── */
.doctor-article-intro {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.25rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1.5rem;
}

.doctor-article-intro p {
    margin: 0;
    font-size: 1.05rem;
}

/* ── Quick stats box ── */
.doctor-summary-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 1.5rem 0;
}

.summary-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.summary-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.summary-stat .stat-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── How-to-choose & methodology ── */
.doctor-how-to-choose ul,
.doctor-preparation ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}

.doctor-how-to-choose li,
.doctor-preparation li {
    margin-bottom: 0.4rem;
}

.doctor-methodology {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.doctor-methodology p {
    margin: 0;
}

/* ── Comparison table ── */
.doctor-comparison-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.doctor-comparison {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.doctor-comparison th {
    background: #1e40af;
    color: #fff;
    padding: 12px 14px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.doctor-comparison td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 0.92rem;
}

.doctor-comparison tr:last-child td {
    border-bottom: none;
}

.doctor-comparison tr:hover td {
    background: #f8fafc;
}

.doctor-comparison small {
    color: #64748b;
    font-size: 0.8em;
}

.doctor-comparison a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
}

.doctor-comparison a:hover {
    text-decoration: underline;
}

/* ── Editorial blocks ── */
.doctor-editorial-block {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin: 1.5rem 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.doctor-editorial-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doctor-editorial-block > p {
    color: #475569;
    margin-bottom: 0;
}

/* ── Doctor facts panel ── */
.doctor-facts {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.doctor-facts p {
    margin: 0.35rem 0;
    font-size: 0.93rem;
    color: #374151;
}

.doctor-facts strong {
    color: #1e293b;
}

/* ── Review insight ── */
.doctor-review-insight {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid #cbd5e1;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
}

.doctor-review-insight strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #1e293b;
}

.doctor-review-insight p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

/* ── Medical context & preparation ── */
.doctor-medical-context,
.doctor-preparation {
    margin: 1.5rem 0;
}

/* ── FAQ ── */
.doctor-faq {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.faq-list {
    margin: 0.75rem 0 0;
}

.faq-list dt {
    font-weight: 600;
    color: #0f172a;
    margin-top: 1rem;
}

.faq-list dt:first-child {
    margin-top: 0;
}

.faq-list dd {
    margin: 0.3rem 0 0 0;
    color: #475569;
    font-size: 0.95rem;
}

/* ── Disclaimer ── */
.doctor-disclaimer {
    margin-top: 2rem;
    padding: 0.75rem 1rem;
    background: #fef9c3;
    border-radius: 8px;
    border: 1px solid #fde68a;
}

.doctor-disclaimer p {
    margin: 0;
    color: #713f12;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .doctor-summary-box {
        grid-template-columns: 1fr 1fr;
    }

    .doctor-comparison th,
    .doctor-comparison td {
        font-size: 0.82rem;
        padding: 9px 10px;
    }

    .doctor-editorial-block {
        padding: 1rem;
    }

    .doctor-article h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .doctor-summary-box {
        grid-template-columns: 1fr;
    }
}
