/* ── News Article Page (below-fold styles) ───────────────────── */

/* Article body typography */
.sp-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 26px;
    word-break: break-word;
}
.sp-content p { margin: 0 0 1.1em; }
.sp-content h2 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin: 1.6em 0 .6em; line-height: 1.35; }
.sp-content h3 { font-size: 1.18rem; font-weight: 700; color: #1e293b; margin: 1.4em 0 .5em; }
.sp-content h4 { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin: 1.2em 0 .4em; }
.sp-content a { color: var(--theme-secondary); text-decoration: underline; text-underline-offset: 2px; }
.sp-content ul, .sp-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.sp-content li { margin-bottom: .4em; }
.sp-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.sp-content blockquote {
    border-left: 4px solid var(--theme-secondary);
    background: #f8fafc;
    padding: 12px 18px;
    margin: 0 0 1.1em;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}
.sp-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .92rem; }
.sp-content table td, .sp-content table th { border: 1px solid #e2e8f0; padding: 8px 12px; }
.sp-content table tr:nth-child(even) { background: #f8fafc; }

/* Inline share buttons (in byline row) */
.sp-share-inline { display: flex; gap: 8px; margin-left: auto; }
.sp-share-btn {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: .8rem;
    transition: opacity .15s, transform .15s;
}
.sp-share-btn:hover { opacity: .85; transform: translateY(-1px); }
.sp-share-fb { background: #1877f2; }
.sp-share-wa { background: #25d366; }
.sp-share-tw { background: #0f172a; }
.sp-share-li { background: #0a66c2; }

/* Tags */
.sp-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.sp-tags-label { font-size: .8rem; font-weight: 700; color: #64748b; display: inline-flex; align-items: center; gap: 5px; }
.sp-tag {
    display: inline-block; font-size: .76rem; font-weight: 600;
    color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0;
    padding: 4px 12px; border-radius: 999px; text-decoration: none;
    transition: all .15s;
}
.sp-tag:hover { background: var(--theme-secondary); color: #fff; border-color: var(--theme-secondary); }

/* Author box (E-E-A-T) */
.sp-author-card {
    display: flex; gap: 16px; align-items: flex-start;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 18px; margin-bottom: 28px;
}
.sp-author-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--theme-secondary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
}
.sp-author-details { flex: 1; min-width: 0; }
.sp-author-heading { margin: 0 0 6px; font-size: 1rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sp-author-name { color: #0f172a; font-weight: 800; text-decoration: none; }
a.sp-author-name:hover { color: var(--theme-secondary); }
.sp-author-role { font-size: .74rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.sp-author-bio { margin: 0; font-size: .88rem; color: #475569; line-height: 1.6; }

/* Related news */
.sp-related { margin-bottom: 30px; }
.sp-related-title {
    font-size: 1.15rem; font-weight: 800; color: #0f172a;
    border-bottom: 2px solid #0f172a; padding-bottom: 8px; margin: 0 0 16px;
}
.sp-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 768px) { .sp-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 18px; } }
.sp-related-item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.sp-related-item h3 { font-size: .88rem; font-weight: 700; line-height: 1.35; color: #1e293b; margin: 8px 0 4px; transition: color .15s; }
.sp-related-item:hover h3 { color: var(--theme-secondary); }

/* Comments */
.sp-comments-title {
    font-size: 1.15rem; font-weight: 800; color: #0f172a;
    border-bottom: 2px solid #0f172a; padding-bottom: 8px; margin: 0 0 18px;
    display: flex; align-items: center; gap: 8px;
}
.sp-comment-thread { display: flex; flex-direction: column; }
.sp-comment-node { display: flex; gap: 12px; }
.sp-comment-avatar-wrap { flex-shrink: 0; }
.guest-letter-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .95rem;
}
.sp-comment-content { flex: 1; min-width: 0; }
.sp-comment-header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sp-comment-author-wrap { display: flex; align-items: center; gap: 7px; }
.sp-comment-author-name { font-size: .88rem; font-weight: 700; color: #1e293b; }
.sp-comment-badge-admin {
    font-size: .62rem; font-weight: 800; text-transform: uppercase;
    background: var(--theme-secondary); color: #fff;
    padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center;
}
.sp-comment-date { font-size: .7rem; color: #94a3b8; }
.sp-comment-text { font-size: .9rem; color: #334155; line-height: 1.6; margin-top: 4px; }
.sp-comment-actions { margin-top: 6px; }
.sp-comment-action-btn {
    background: none; border: none; padding: 0; cursor: pointer;
    font-size: .74rem; font-weight: 700; color: #64748b;
    display: inline-flex; align-items: center; gap: 4px;
}
.sp-comment-action-btn:hover { color: var(--theme-secondary); }
.sp-comment-replies-list {
    margin: 14px 0 0 24px; padding-left: 16px;
    border-left: 2px solid #e2e8f0;
    display: flex; flex-direction: column; gap: 14px;
}
.sp-reply-form-wrap {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 14px; margin-top: 10px;
}

/* Comment form */
.sp-form-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin: 26px 0 12px; }
.sp-form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.sp-field { display: flex; flex-direction: column; gap: 5px; }
.sp-field label { font-size: .74rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .03em; }
.sp-field input, .sp-field textarea {
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    padding: 10px 14px; font-size: .92rem; color: #1e293b;
    font-family: inherit; outline: none; background: #fff;
    transition: border-color .15s;
}
.sp-field input:focus, .sp-field textarea:focus { border-color: var(--theme-secondary); }
.sp-submit {
    margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
    background: var(--theme-secondary); color: #fff; border: none;
    padding: 10px 24px; border-radius: 8px; font-size: .9rem; font-weight: 700;
    cursor: pointer; transition: opacity .15s;
}
.sp-submit:hover { opacity: .9; }

/* Alerts */
.sp-alert {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 8px; font-size: .85rem; font-weight: 600;
    margin-bottom: 12px;
}
.sp-alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.sp-alert-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.sp-alert-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
