/* ==========================================================================
   Single News Page Styles
   ========================================================================== */

/* Layout */
.single-news-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1600px) {
    .single-news-content {
        max-width: 1320px;
    }
}

/* Breadcrumbs are rendered by the shared .w3-crumbs component (refresh.css) */

/* 2-column layout: article + sidebar */
.sn-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    align-items: start;
}

.sn-article-main {
    min-width: 0;
}

.sn-sidebar {
    position: sticky;
    top: calc(var(--header-height, 80px) + 20px);
}

/* Article Header */
.sn-header {
    padding: 24px 0 32px;
}

.sn-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sn-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color, #2550f0);
    background: rgba(37, 80, 240, 0.08);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.sn-tag:hover {
    background: rgba(37, 80, 240, 0.15);
    color: var(--primary-color, #2550f0);
}

.sn-title {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary, #111827);
}

.sn-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.sn-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary, #6b7280);
}

.sn-meta-updated {
    white-space: nowrap;
}

.sn-meta-dot {
    opacity: 0.4;
}

/* Hero Image */
.sn-hero-image {
    margin: 0 0 40px;
    border-radius: var(--radius, 16px);
    overflow: hidden;
}

.sn-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body */
.sn-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-primary, #111827);
}

.sn-body p {
    margin: 0 0 1.5em;
}

.sn-body h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
    color: var(--text-primary, #111827);
}

.sn-body h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--text-primary, #111827);
}

.sn-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.sn-body a {
    color: var(--primary-color, #2550f0);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.sn-body a:hover {
    text-decoration-thickness: 2px;
}

.sn-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--primary-color, #2550f0);
    background: var(--bg-secondary, #eef0f3);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.sn-body ul,
.sn-body ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.sn-body li {
    margin-bottom: 0.5em;
}

.sn-body pre {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-secondary, #eef0f3);
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.sn-body table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.sn-body th,
.sn-body td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
    text-align: left;
    font-size: 15px;
}

.sn-body th {
    font-weight: 600;
    background: var(--bg-secondary, #eef0f3);
}

/* Referral Block */
.sn-referral {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, #2550f0 0%, #1a3cd4 100%);
    border-radius: var(--radius, 16px);
    color: #fff;
}

/* Source Block */
.sn-source {
    margin: 28px 0 0;
    font-size: 14px;
    color: var(--text-muted, #999);
}

/* Helpful feedback widget */
.sn-helpful {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
}
.sn-helpful-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    flex-shrink: 0;
}
.sn-helpful-actions {
    display: flex;
    gap: 4px;
}
.sn-helpful-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, background 0.15s;
}
.sn-helpful-btn:hover {
    color: var(--text-primary);
    background: var(--border-color, rgba(0,0,0,0.04));
}
.sn-helpful-thanks {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Author bio */
.sn-author {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 28px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.08));
}
.sn-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.sn-author-body {
    flex: 1;
    min-width: 0;
}
.sn-author-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.sn-author-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}
.sn-author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}
.sn-author-name:hover {
    color: var(--primary-color, #2550f0);
}
.sn-author-badge { display: none; }
.sn-author-twitter {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    margin-left: 4px;
    transition: color 0.2s;
}
.sn-author-twitter:hover {
    color: var(--text-primary);
}
.sn-author-bio {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

.sn-source a {
    color: var(--text-primary, #111);
    font-weight: 600;
    text-decoration: none;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sn-source a:hover {
    color: var(--primary-color, #2550f0);
}
.sn-source-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ===== PROMO ARTICLE CONTENT STYLES ===== */

/* Hero section */
.sn-body .promo-hero {
    margin: 0 0 28px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(37, 80, 240, 0.04), rgba(99, 102, 241, 0.06));
    border-radius: 16px;
    border: 1px solid rgba(37, 80, 240, 0.1);
}

.sn-body .promo-hero:empty {
    display: none;
}

/* Lead paragraph */
.sn-body p.lead {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-primary, #111827);
    margin: 0 0 24px;
    font-weight: 400;
}

/* Referral code pill */
.sn-body .promo-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    background: var(--card-bg, #fff);
    border: 2px solid var(--primary-color, #2550f0);
    border-radius: 12px;
    margin: 0 0 24px;
}

.sn-body .pill-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sn-body .pill-code {
    font-size: 22px;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    color: var(--primary-color, #2550f0);
    letter-spacing: 0.05em;
}

/* CTA button row */
.sn-body .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0 0 20px;
}

.sn-body .cta-row br {
    display: none;
}

.sn-body .btn.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color, #2550f0), #6366f1);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37, 80, 240, 0.3);
}

.sn-body .btn.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 80, 240, 0.4);
}

.sn-body .btn.outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    background: transparent;
    color: var(--primary-color, #2550f0) !important;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--primary-color, #2550f0);
    border-radius: 12px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}

.sn-body .btn.outline:hover {
    background: rgba(37, 80, 240, 0.06);
}

/* Disclaimer */
.sn-body .disclaimer {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted, #999);
    margin: 0 0 32px;
}

/* Sections: claim-steps, bonus-breakdown, eligibility, troubleshoot */
.sn-body .claim-steps,
.sn-body .bonus-breakdown,
.sn-body .eligibility,
.sn-body .troubleshoot {
    margin: 32px 0 0;
    padding: 28px 32px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    border-radius: 14px;
}

.sn-body .claim-steps h2,
.sn-body .bonus-breakdown h2,
.sn-body .eligibility h2,
.sn-body .troubleshoot h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

/* Icon list */
.sn-body .icon-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.sn-body .icon-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
}

.sn-body .icon-list li:last-child {
    border-bottom: none;
}

.sn-body .icon-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--primary-color, #2550f0);
    font-weight: 700;
    font-size: 14px;
}

.sn-body .mini-note {
    font-size: 13px;
    color: var(--text-muted, #999);
    margin: 12px 0 0;
    line-height: 1.6;
}

/* Notes / tips box */
.sn-body .notes {
    padding: 16px 20px;
    background: rgba(37, 80, 240, 0.04);
    border-left: 3px solid var(--primary-color, #2550f0);
    border-radius: 0 10px 10px 0;
    margin: 16px 0 0;
}

.sn-body .notes p {
    margin: 0;
    font-size: 14px;
}

/* FAQ accordion */
.sn-body .faq-accordion {
    margin: 32px 0 0;
}

.sn-body .faq-accordion h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.sn-body .faq-accordion details {
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    border-radius: 10px;
    margin: 0 0 8px;
    overflow: hidden;
}

.sn-body .faq-accordion summary {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    background: var(--card-bg, #fff);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sn-body .faq-accordion summary::before {
    content: '▸';
    font-size: 12px;
    color: var(--primary-color, #2550f0);
    transition: transform 0.2s;
}

.sn-body .faq-accordion details[open] summary::before {
    transform: rotate(90deg);
}

.sn-body .faq-accordion summary::-webkit-details-marker {
    display: none;
}

.sn-body .faq-accordion .answer {
    padding: 0 20px 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary, #6b7280);
}

.sn-body .faq-note {
    font-size: 13px;
    color: var(--text-muted, #999);
    margin: 16px 0 0;
}

/* ===== END PROMO STYLES ===== */

.sn-referral h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.sn-referral p {
    margin: 0 0 16px;
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.sn-referral-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #2550f0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sn-referral-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #2550f0;
}

/* Related Services */
.sn-related {
    margin: 0;
    padding: 48px 0 60px;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.06));
}

.sn-related-title {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

.sn-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.sn-related-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sn-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.sn-related-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
}

.sn-related-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sn-related-info {
    min-width: 0;
}

.sn-related-cat {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color, #2550f0);
    margin-bottom: 2px;
}

.sn-related-info h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sn-related-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}
.sn-sidebar .sidebar-widget-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}
.sn-sidebar .sidebar-widget-period {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    line-height: 1;
}
.sn-sidebar .sidebar-widget-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-muted);
    background: transparent;
    border: 1.5px solid var(--border-color);
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: auto;
}
.sn-sidebar .sidebar-widget-more:hover {
    color: var(--primary-color, #2550f0);
    border-color: var(--primary-color, #2550f0);
    background: rgba(37, 80, 240, 0.04);
}
.sn-sidebar .sidebar-widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sn-sidebar .sidebar-widget-title svg {
    color: var(--primary-color, #2550f0);
    flex-shrink: 0;
}
.sn-sidebar .sidebar-widget-title::after {
    display: none;
}

/* Top Projects */
.top-project-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.top-project-item:first-of-type { padding-top: 10px; }
.top-project-item:last-child { border-bottom: none; padding-bottom: 0; }
.top-project-item:hover { transform: translateX(4px); }
.tp-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tp-logo img { width: 100%; height: 100%; object-fit: contain; }
.tp-logo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 16px; border-radius: 12px;
}
.tp-info h4 {
    font-size: 14px; font-weight: 700; line-height: 1.3;
    margin: 0 0 3px 0; color: var(--text-primary);
    letter-spacing: -0.01em;
}
.tp-info span { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* Events Widget */
.events-widget {
    margin-top: 32px;
}
.event-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.event-sidebar-item:first-of-type { padding-top: 10px; }
.event-sidebar-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.event-sidebar-item:hover { transform: translateX(4px); }
.event-sidebar-date {
    flex-shrink: 0;
    width: 44px;
    height: 48px;
    border-radius: 10px;
    background: var(--main-bg, #f5f6f8);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}
.event-sidebar-month {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    color: var(--primary-color, #2550f0); letter-spacing: 0.05em; line-height: 1;
}
.event-sidebar-day {
    font-size: 18px; font-weight: 600; color: var(--text-primary); line-height: 1;
}
.event-sidebar-info h4 {
    font-size: 14px; font-weight: 700; line-height: 1.3;
    margin: 0 0 4px 0; color: var(--text-primary); letter-spacing: -0.01em;
}
.event-sidebar-meta {
    font-size: 12px; color: var(--text-muted); font-weight: 500;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.event-badge-virtual {
    display: inline-block; font-size: 10px; font-weight: 700; color: #10b981;
    background: rgba(16, 185, 129, 0.1); padding: 2px 6px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.event-sidebar-type {
    display: inline-block; font-size: 10px; font-weight: 600;
    color: var(--primary-color, #2550f0); background: rgba(37, 80, 240, 0.08);
    padding: 2px 7px; border-radius: 4px; margin-top: 4px;
}
.events-see-all {
    display: block; text-align: center; font-size: 13px; font-weight: 600;
    color: var(--primary-color, #2550f0); text-decoration: none;
    padding: 12px 0 4px; transition: opacity 0.2s;
}
.events-see-all:hover { opacity: 0.75; }
.events-empty { color: var(--text-muted); font-size: 13px; margin: 0; }

/* Responsive: 2-column → 1-column */
@media (max-width: 1200px) {
    .sn-layout {
        grid-template-columns: 1fr 300px;
    }
}
@media (max-width: 1024px) {
    .sn-layout {
        grid-template-columns: 1fr;
    }
    .sn-sidebar {
        position: static;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .single-news-content {
        padding: 0 16px;
    }

    .sn-header {
        padding: 16px 0 24px;
    }

    .sn-title {
        font-size: 26px;
    }

    .sn-meta {
        flex-wrap: wrap;
    }

    .sn-body {
        font-size: 16px;
    }

    .sn-body h2 {
        font-size: 22px;
    }

    .sn-body h3 {
        font-size: 19px;
    }

    .sn-referral {
        padding: 24px 20px;
        margin: 36px 0;
    }

    .sn-related-grid {
        grid-template-columns: 1fr;
    }

    .sn-hero-image {
        border-radius: 12px;
        margin-bottom: 28px;
    }
}

/* ==========================================================================
   Read next (related + latest news under the article)
   ========================================================================== */
.sn-read-next {
    margin: 40px 0 8px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}
.sn-read-next-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.sn-read-next-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.sn-read-next-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #2450f1);
    text-decoration: none;
    white-space: nowrap;
}
.sn-read-next-all:hover { text-decoration: underline; }

.sn-read-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.sn-rn-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    background: var(--card-bg, #fff);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sn-rn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.sn-rn-card:focus-visible {
    outline: 2px solid var(--primary-color, #2450f1);
    outline-offset: 2px;
}
.sn-rn-img {
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary, #f1f5f9);
    overflow: hidden;
}
.sn-rn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sn-rn-img-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2450f1 0%, #6366f1 100%);
    opacity: .85;
}
.sn-rn-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
}
.sn-rn-tag {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(36, 80, 241, .08);
    color: var(--primary-color, #2450f1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sn-rn-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sn-rn-date {
    font-size: 13px;
    color: var(--text-muted, #64748b);
}

.sn-latest {
    margin-top: 24px;
}
.sn-latest-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.sn-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: sn-latest;
}
.sn-latest-list li {
    counter-increment: sn-latest;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.sn-latest-list a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    color: inherit;
    text-decoration: none;
}
.sn-latest-list a::before {
    content: counter(sn-latest);
    min-width: 18px;
    font-weight: 700;
    color: var(--primary-color, #2450f1);
}
.sn-latest-headline {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}
.sn-latest-list a:hover .sn-latest-headline { color: var(--primary-color, #2450f1); }
.sn-latest-list time {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .sn-read-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sn-read-next-grid .sn-rn-card:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
    .sn-read-next-grid { grid-template-columns: 1fr; }
    .sn-read-next-grid .sn-rn-card:nth-child(3) { display: flex; }
    .sn-rn-card { flex-direction: row; }
    .sn-rn-img { flex: 0 0 112px; aspect-ratio: auto; }
    .sn-rn-body { padding: 10px 12px; }
    .sn-rn-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .sn-rn-card { transition: none; }
    .sn-rn-card:hover { transform: none; }
}

body.theme-dark .sn-rn-card { background: var(--card-bg, #111827); border-color: rgba(255, 255, 255, .08); }
body.theme-dark .sn-rn-tag { background: rgba(96, 130, 255, .14); }
body.theme-dark .sn-latest-list li,
body.theme-dark .sn-read-next { border-color: rgba(255, 255, 255, .08); }

.sn-referral-disclosure {
    margin: 10px 0 0;
    font-size: 12px;
    opacity: .75;
}

/* ==========================================================================
   Share row (template-parts/news-share.php)
   ========================================================================== */
.sn-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.sn-share--footer {
    margin: 20px 0 0;
}
.sn-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
}
.sn-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sn-share-list li { margin: 0; }
.sn-share-list li[hidden] { display: none; }
.sn-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 999px;
    background: var(--card-bg, #fff);
    color: var(--text-secondary, #4b5563);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}
.sn-share-btn:hover {
    color: var(--primary-color, #2450f1);
    border-color: currentColor;
}
.sn-share-btn:focus-visible {
    outline: 2px solid var(--focus-ring, #2450f1);
    outline-offset: 2px;
}
.sn-share-btn svg { flex-shrink: 0; }
.sn-share-copy.is-copied {
    color: #047857;
    border-color: currentColor;
}
.sn-share-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.sn-share--header .sn-share-btn {
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-color: transparent;
    background: transparent;
}
.sn-share--header .sn-share-btn:hover { border-color: var(--border-color, #e5e7eb); }
.sn-share--header .sn-share-copy.is-copied { border-color: currentColor; }
@media (max-width: 768px) {
    /* The full row under the article (with the native share sheet) serves mobile */
    .sn-share--header { display: none; }
    .sn-share--footer .sn-share-label { width: 100%; }
}

/* ==========================================================================
   Mentioned projects (template-parts/news-mentions.php)
   ========================================================================== */
.sn-mentions {
    margin: 36px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}
.sn-mentions-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.sn-mentions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sn-mentions-grid li { margin: 0; min-width: 0; }
.sn-mention {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    background: var(--card-bg, #fff);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.sn-mention:hover {
    border-color: var(--primary-color, #2450f1);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}
.sn-mention:focus-visible {
    outline: 2px solid var(--focus-ring, #2450f1);
    outline-offset: 2px;
}
.sn-mention-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-secondary, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sn-mention-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.sn-mention-initial {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color, #2450f1);
}
.sn-mention-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.sn-mention-type {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary-color, #2450f1);
}
.sn-mention-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sn-mention-desc {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sn-mention-arrow {
    flex-shrink: 0;
    color: var(--text-muted, #6b7280);
    transition: transform .15s, color .15s;
}
.sn-mention:hover .sn-mention-arrow {
    color: var(--primary-color, #2450f1);
    transform: translateX(2px);
}
@media (max-width: 560px) {
    .sn-mentions-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .sn-mention, .sn-mention-arrow, .sn-share-btn { transition: none; }
}
body.theme-dark .sn-share-btn,
body.theme-dark .sn-mention { background: var(--card-bg, #111827); border-color: rgba(255, 255, 255, .1); }
body.theme-dark .sn-share--header .sn-share-btn { background: transparent; border-color: transparent; }
body.theme-dark .sn-share-btn:hover,
body.theme-dark .sn-mention:hover { border-color: #8aa4ff; }
body.theme-dark .sn-share-btn:hover,
body.theme-dark .sn-mention-type,
body.theme-dark .sn-mention-initial { color: #8aa4ff; }
body.theme-dark .sn-share-copy.is-copied { color: #34d399; border-color: currentColor; }
body.theme-dark .sn-mention-logo { background: rgba(255, 255, 255, .06); }
body.theme-dark .sn-mentions { border-color: rgba(255, 255, 255, .08); }
