﻿:root {
    --color-primary: #0ea5e9;
    --color-primary-dark: #0284c7;
    --color-secondary: #1e293b;
    --color-accent: #ef4444;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-border: #e5e7eb;
    --color-link: #0284c7;
    --max-width: 1280px;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    min-height: 100%;
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a { color: var(--color-link); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.article-container { max-width: var(--article-width, 820px); }

button { font-family: inherit; cursor: pointer; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    right: 16px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--color-primary, #0ea5e9);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--color-accent, #ef4444);
    outline-offset: 2px;
}

/* Header styles: see assets/css/header.css */

.breaking-bar {
    background: var(--color-accent);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}
.breaking-bar .container { display: flex; align-items: center; gap: 16px; }
.breaking-label {
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking-ticker {
    display: flex;
    gap: 24px;
    overflow: hidden;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
}
.breaking-ticker a { color: #fff; font-size: 14px; }
.breaking-ticker a:hover { text-decoration: underline; }
@keyframes ticker {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.main-content {
    flex: 1 0 auto;
    padding: 10px 0 0;
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-x: hidden;
}

.single-article {
    padding-top: 0;
    padding-bottom: 48px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 220px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.single-article .container,
.single-article .article-container {
    width: 100%;
    max-width: var(--article-width, 920px);
    min-width: 0;
}

/* ===== Article — readable width (wider) ===== */
.article-container {
    --article-width: 920px;
}

/* ===== Article head — 2026 card layout ===== */
.article-head {
    margin-bottom: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.article-head__crumb {
    margin: 0;
    padding: 11px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #334155;
}

.article-head__crumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 12px;
    color: #94a3b8;
}

.article-head__crumb .breadcrumb li:not(:last-child)::after {
    content: '›';
    opacity: 0.45;
    margin-inline: 8px;
    font-weight: 400;
    color: #64748b;
}

.article-head__crumb .breadcrumb a {
    color: #cbd5e1;
    font-weight: 600;
}

.article-head__crumb .breadcrumb a:hover {
    color: #7dd3fc;
}

.article-head__crumb .breadcrumb li:last-child span {
    color: #94a3b8;
    font-weight: 500;
}

.article-head__body {
    padding: 20px 22px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
    border-bottom: 1px solid #eef2f6;
}

.article-head__cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 5px 13px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.08);
}

.article-head__cat::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.article-head__cat:hover {
    color: #0c4a6e;
    border-color: #7dd3fc;
}

.article-head__title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 900;
    line-height: 1.34;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.article-head__lead {
    font-size: 17px;
    color: #64748b;
    line-height: 1.68;
    margin: 12px 0 0;
    font-weight: 400;
}

/* Meta bar — compact inline strip */
.meta-bar {
    margin: 0;
    padding: 9px 18px 10px;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
    border-top: 1px solid #e8edf2;
}

.meta-bar__track {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.meta-bar__author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: min(100%, 220px);
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.meta-bar__author:hover {
    color: var(--color-primary);
}

.meta-bar__author:hover .meta-bar__author-name {
    color: var(--color-primary);
}

.meta-bar__avatar.user-avatar--sm {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 1px #dbeafe;
    flex-shrink: 0;
}

.meta-bar__author-name {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.meta-bar__sep {
    width: 1px;
    height: 16px;
    background: linear-gradient(180deg, transparent, #cbd5e1, transparent);
    flex-shrink: 0;
}

.meta-bar__chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.meta-chip__icon {
    flex-shrink: 0;
    color: #0284c7;
    opacity: 0.9;
}

.meta-chip--date {
    color: #334155;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.meta-chip--date:hover {
    color: var(--color-primary);
    border-color: #bae6fd;
    background: #fff;
}

.meta-chip--date time {
    font-weight: inherit;
    color: inherit;
}

.meta-chip__full {
    display: inline;
}

.meta-chip__short {
    display: none;
}

.meta-chip--link {
    color: #334155;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.meta-chip--link:hover {
    color: var(--color-primary);
    border-color: #bae6fd;
    background: #fff;
}

.meta-chip--update {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fef9c3 100%);
    color: #92400e;
}

.meta-chip--update .meta-chip__icon {
    color: #b45309;
}

.meta-chip--update time {
    font-weight: 800;
    color: inherit;
}

/* Legacy meta item classes — keep for compatibility */
.meta-bar__items {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
}

.meta-bar__item {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
}

.meta-bar__item:not(:last-child)::after {
    display: none;
}

.meta-bar__item time {
    font-weight: 700;
    color: #334155;
}

.meta-bar__item--published,
.meta-bar__item--updated {
    padding: 0;
    overflow: hidden;
    max-width: 100%;
}

.meta-bar__item--published .meta-date,
.meta-bar__item--updated .meta-date {
    padding: 7px 12px;
    max-width: 100%;
}

.meta-bar__item--updated {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.meta-date--update .meta-date__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #92400e;
    background: rgba(255, 255, 255, 0.55);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #fcd34d;
}

.meta-bar__item--dim {
    color: #94a3b8;
    font-weight: 500;
    background: #f8fafc;
}

.meta-bar__item a {
    color: inherit;
    font-weight: inherit;
}

.meta-bar__item a:hover {
    color: var(--color-primary);
}

.article-head__excerpt {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.article-head__meta {
    display: none;
}

/* Legacy article classes — keep for compatibility */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    opacity: 0.5;
    margin-right: 2px;
}

.breadcrumb .sep { display: none; }

.article-category {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.article-title { font-size: 32px; font-weight: 900; line-height: 1.3; margin-bottom: 14px; }

.article-excerpt {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.article-meta a { color: inherit; }

.meta-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
}

.meta-author__avatar.user-avatar--sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
    margin: 0;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #6366f1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-left: 6px;
    overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar.lg { width: 60px; height: 60px; font-size: 22px; }
.author-avatar.xl { width: 100px; height: 100px; font-size: 36px; margin: 0 auto 16px; }

/* User avatar component */
.user-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, var(--color-primary), #6366f1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.user-avatar--md { width: 48px; height: 48px; font-size: 18px; }
.user-avatar--lg { width: 88px; height: 88px; font-size: 32px; border-radius: 22px; }
.user-avatar--lg img { border-radius: 22px; }
.user-avatar--xl { width: 110px; height: 110px; font-size: 40px; border-radius: 50%; }

/* Featured image + body — gutter frame */
.article-flow {
    --article-gutter: 10px;
    --article-gutter-tone: #e8eef5;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
    padding: var(--article-gutter);
    border: 1px solid #d7e0ea;
    border-radius: 16px;
    overflow: hidden;
    background: var(--article-gutter-tone);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.article-flow__split {
    flex-shrink: 0;
    height: var(--article-gutter);
    background: linear-gradient(
        90deg,
        var(--color-primary, #0ea5e9) 0%,
        #38bdf8 50%,
        var(--color-primary, #0ea5e9) 100%
    );
}

/* Mobile — text zoom toolbar (hidden on desktop) */
.article-text-zoom {
    display: none;
}

.article-content--text-sm { font-size: 15px; line-height: 1.82; }
.article-content--text-md { font-size: 17px; line-height: 1.88; }
.article-content--text-lg { font-size: 19px; line-height: 1.92; }
.article-content--text-xl { font-size: 21px; line-height: 1.96; }

.single-article .article-content.article-content--text-sm { font-size: 15px; line-height: 1.82; }
.single-article .article-content.article-content--text-md { font-size: 17px; line-height: 1.88; }
.single-article .article-content.article-content--text-lg { font-size: 19px; line-height: 1.92; }
.single-article .article-content.article-content--text-xl { font-size: 21px; line-height: 1.96; }

.article-body-card {
    border: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}

.article-body-card--solo {
    --article-gutter: 10px;
    --article-gutter-tone: #e8eef5;
    margin-bottom: 32px;
    padding: var(--article-gutter);
    border: 1px solid #d7e0ea;
    border-radius: 16px;
    background: var(--article-gutter-tone);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.article-body-card--solo .article-content {
    border-radius: 10px;
}

.article-body-card .article-content {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: var(--article-gutter);
}

.article-media {
    margin: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.article-media__shell {
    padding: 0;
    border-radius: 0;
    background: #fff;
    border: none;
    box-shadow: none;
}

.article-media__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.article-media__overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    max-height: 38%;
    padding: 20px 18px 14px;
    background: linear-gradient(
        to top,
        rgba(12, 74, 110, 0.82) 0%,
        rgba(15, 23, 42, 0.35) 70%,
        transparent 100%
    );
    pointer-events: none;
}

.article-media__overlay-caption {
    margin: 0;
    color: #e0f2fe;
    font-size: clamp(13px, 2.2vw, 15px);
    font-weight: 600;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.article-media__frame picture,
.article-media__frame img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
}

.article-media__frame img {
    object-fit: cover;
    object-position: center;
}

.article-media__badge {
    position: absolute;
    z-index: 3;
    inset-block-end: 10px;
    inset-inline-end: 10px;
    display: inline-flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    gap: 7px;
    max-width: min(82%, 340px);
    padding: 8px 12px 8px 10px;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.article-media__badge-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--color-primary, #0ea5e9), #0284c7);
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45);
}

.article-media__badge-text {
    direction: rtl;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
}

.article-media__caption {
    padding: 10px var(--article-gutter, 10px) 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    line-height: 1.65;
    font-style: italic;
    border-top: 1px dashed #dbe3ec;
    margin-top: 0;
}

.article-featured-image { margin: 0 0 28px; width: 100%; }
.article-featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f1f5f9; border-radius: 20px; border: 1px solid var(--color-border); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12); }
.article-featured-image figcaption { padding: 12px 4px 0; color: var(--color-text-muted); font-size: 13px; text-align: center; }

/* Share panel — below article */
.share-panel {
    margin: 28px 0 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    max-width: 100%;
    min-width: 0;
}

.share-panel__intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-panel__badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-panel__title {
    display: block;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 2px;
}

.share-panel__sub {
    font-size: 13px;
    color: #94a3b8;
}

.share-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.share-chip:hover {
    transform: translateY(-2px);
    color: #fff;
}

.share-chip--wa:hover { background: #25d366; border-color: #25d366; }
.share-chip--x:hover { background: #0f172a; border-color: #64748b; }
.share-chip--fb:hover { background: #1877f2; border-color: #1877f2; }
.share-chip--tg:hover { background: #0088cc; border-color: #0088cc; }
.share-chip--copy:hover { background: #0ea5e9; border-color: #0ea5e9; }

.share-chip.is-copied {
    background: #10b981;
    border-color: #10b981;
}

.share-buttons {
    display: none;
}

.article-content {
    font-size: 18px;
    line-height: 1.9;
    color: #1e293b;
    padding: 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    display: flow-root;
}

.single-article .article-content :is(h2, h3) {
    font-family: inherit;
    line-height: 1.45;
    scroll-margin-top: calc(var(--header-scroll-offset, 0px) + 72px);
}

.single-article .article-content h2 {
    font-size: clamp(1.28rem, 2.6vw, 1.55rem);
    font-weight: 800;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8edf2;
}

.single-article .article-content h2::after {
    display: none;
}

.single-article .article-content h3 {
    font-size: clamp(1.1rem, 2.1vw, 1.28rem);
    font-weight: 700;
    color: #1e293b;
    margin: 1.35rem 0 0.65rem;
    padding: 0;
    border: none;
    background: none;
    border-right: 3px solid var(--color-primary, #0ea5e9);
    padding-right: 0.55rem;
}

.single-article .article-content > :first-child:is(h2, h3),
.single-article .article-content h2:first-child,
.single-article .article-content h3:first-child {
    margin-top: 0;
}

.article-content p { margin: 0 0 1.1em; }

/* In-article images — always block flow, never overlap text */
.article-content :is(
    .content-media,
    .content-figure,
    figure,
    picture,
    .wp-caption,
    .wp-block-image,
    p:has(> img),
    p:has(> .content-image)
) {
    float: none !important;
    position: static !important;
    z-index: auto !important;
    clear: both !important;
}

.article-content img {
    float: none !important;
    position: static !important;
    z-index: auto !important;
    vertical-align: middle;
}

.article-content .content-media {
    display: flow-root;
    margin: 28px 0 16px;
    padding: 0;
    max-width: 100%;
    text-align: center;
    clear: both;
    line-height: normal;
}

.article-content .content-media::after {
    display: none;
}

.article-content .content-media .content-image,
.article-content .content-media img.content-image,
.article-content .content-media img {
    margin: 0 auto;
}

.article-content .content-media__caption,
.article-content .content-media figcaption,
.article-content .wp-caption-text {
    margin: 12px 0 0;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    color: #0c4a6e;
    text-align: center;
}

.article-content .content-media + p,
.article-content .content-media + ul,
.article-content .content-media + ol,
.article-content .content-media + h2,
.article-content .content-media + h3,
.article-content .content-media + h4,
.article-content .content-media + blockquote,
.article-content .content-media + .content-embed,
.article-content .content-media + .content-media {
    margin-top: 16px;
}

.article-content .content-image-link {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    text-decoration: none;
    cursor: zoom-in;
    line-height: 0;
}

.single-article .article-content .content-image-link:hover,
.single-article .article-content .content-image-link:focus-visible {
    background: none;
    border: none;
    box-shadow: none;
}

.single-article .article-content .content-image-link::after,
.single-article .article-content a:has(> img)::after,
.single-article .article-content a:has(> .content-image)::after {
    content: none;
    display: none;
}

.article-content .content-image,
.article-content img.content-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    cursor: zoom-in;
}

.article-content img.content-image:focus-visible {
    outline: 2px solid var(--color-primary, #0ea5e9);
    outline-offset: 3px;
}

.article-content figure.content-figure,
.article-content figure {
    display: flow-root;
    margin: 28px 0 16px;
    padding: 0;
    max-width: 100%;
    clear: both;
    line-height: normal;
}

.article-content figure:not(.content-media) img,
.article-content figure:not(.content-media) .content-image {
    margin: 0 auto;
}

.article-content figcaption:not(.content-media__caption) {
    margin: 10px 0 0;
    padding: 0 12px 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    text-align: center;
}

.article-content figure:not(.content-media) + p,
.article-content figure:not(.content-media) + ul,
.article-content figure:not(.content-media) + ol,
.article-content figure:not(.content-media) + h2,
.article-content figure:not(.content-media) + h3,
.article-content figure:not(.content-media) + h4 {
    margin-top: 16px;
}

.article-content p:has(> img:only-child),
.article-content p:has(> .content-image-link:only-child),
.article-content p:has(> a.content-image-link:only-child),
.article-content p:has(> img.content-image:only-child) {
    display: flow-root;
    margin: 28px 0 16px;
    padding: 0;
    line-height: normal;
    clear: both;
}

.article-content p:has(> img:only-child) + p,
.article-content p:has(> img:only-child) + ul,
.article-content p:has(> img:only-child) + ol,
.article-content p:has(> img:only-child) + h2,
.article-content p:has(> img:only-child) + h3,
.article-content p:has(> img.content-image:only-child) + p,
.article-content p:has(> img.content-image:only-child) + ul,
.article-content p:has(> img.content-image:only-child) + ol,
.article-content p:has(> img.content-image:only-child) + h2,
.article-content p:has(> img.content-image:only-child) + h3 {
    margin-top: 16px;
}

.article-content p:has(> img:only-child) img,
.article-content p:has(> .content-image-link:only-child) .content-image,
.article-content p:has(> a.content-image-link:only-child) img {
    margin: 0 auto;
}

.article-content img:not(.content-image) {
    display: block;
    border-radius: 12px;
    margin: 28px auto 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    clear: both;
}

.article-content img.js-smart-lazy:not(.is-smart-lazy-ready) {
    background: linear-gradient(110deg, #eef2f6 8%, #f8fafc 18%, #eef2f6 33%);
    background-size: 200% 100%;
    animation: smart-lazy-shimmer 1.4s ease-in-out infinite;
}

.article-content .content-media img.js-smart-lazy:not(.is-smart-lazy-ready) {
    display: block;
    width: 100%;
    min-height: clamp(140px, 42vw, 320px);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-content img.js-smart-lazy.is-smart-lazy-ready {
    animation: none;
    background: none;
}

@keyframes smart-lazy-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Responsive video / iframe embeds */
.article-content .content-embed {
    margin: 16px 0;
    max-width: 100%;
    clear: both;
}

.article-content .content-embed__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.article-content .content-embed__frame iframe,
.article-content .content-embed__frame embed,
.article-content .content-embed__frame object {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    display: block;
}

.article-content .content-embed--native .content-embed__frame {
    aspect-ratio: auto;
    background: #000;
}

.article-content .content-embed--native video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    vertical-align: top;
}

.article-content figure,
.article-content picture,
.article-content video,
.article-content embed,
.article-content object {
    max-width: 100%;
}
.single-article .article-content :is(p, li, td, th, blockquote, figcaption, dd) a {
    color: #0369a1;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(270deg, rgba(224, 242, 254, 0.9), rgba(186, 230, 253, 0.35));
    padding: 0.12em 0.5em 0.16em;
    border-radius: 6px;
    border-bottom: 2px solid #38bdf8;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    overflow-wrap: anywhere;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-article .article-content :is(p, li, td, th, blockquote, figcaption, dd) a:hover {
    color: #0c4a6e;
    background: linear-gradient(270deg, #e0f2fe, #bae6fd);
    border-bottom-color: #0ea5e9;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.18);
}

.single-article .article-content :is(p, li, td, th, blockquote, figcaption, dd) a:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.single-article .article-content a[target="_blank"]:not(:has(img)):not(.content-image-link)::after {
    content: '↗';
    display: inline-block;
    margin-inline-start: 0.2em;
    font-size: 0.82em;
    font-weight: 800;
    opacity: 0.72;
    vertical-align: baseline;
}

.single-article .article-content a.ext-link--official,
.static-prose a.ext-link--official {
    color: #15803d;
    border-bottom: 2px solid #22c55e;
    text-decoration: none;
    font-weight: 600;
}

.single-article .article-content a.ext-link--official::after,
.static-prose a.ext-link--official::after {
    content: 'رسمي';
    display: inline-block;
    margin-inline-start: 0.35em;
    padding: 0.05em 0.45em;
    font-size: 0.68em;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    background: #16a34a;
    border-radius: 4px;
    opacity: 1;
    vertical-align: middle;
}

html.site-dark .single-article .article-content a.ext-link--official,
html.site-dark .static-prose a.ext-link--official {
    color: #86efac;
    border-bottom-color: #22c55e;
}

.single-article .article-content a[href*="/storage/uploads/"]::after,
.single-article .article-content a[href*="/wp-content/uploads/"]::after,
.single-article .article-content a[href$=".jpg"]::after,
.single-article .article-content a[href$=".jpeg"]::after,
.single-article .article-content a[href$=".png"]::after,
.single-article .article-content a[href$=".webp"]::after,
.single-article .article-content a[href$=".gif"]::after {
    content: none;
    display: none;
}

.single-article .article-content :is(h2, h3) a {
    color: inherit;
    font-weight: inherit;
    background: none;
    padding: 0;
    border-bottom: none;
    box-shadow: none;
    text-decoration: underline;
    text-decoration-color: rgba(14, 165, 233, 0.55);
    text-underline-offset: 0.15em;
}

.single-article .article-content :is(h2, h3) a:hover {
    text-decoration-color: currentColor;
    box-shadow: none;
}

.single-article .article-content :is(h2, h3) a[target="_blank"]::after {
    content: none;
}
.article-content blockquote {
    border-right: 3px solid var(--color-primary, #0ea5e9);
    background: #f8fafc;
    padding: 1rem 1.15rem;
    margin: 1.35rem 0;
    border-radius: 0 10px 10px 0;
    color: #475569;
    font-style: normal;
}
.article-content ul, .article-content ol { margin: 1rem 0 1.2rem; padding-right: 1.35rem; padding-left: 0; }
.article-content li { margin-bottom: 0.45em; }
.article-content li::marker { color: var(--color-primary, #0ea5e9); }
.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    max-width: 100%;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.article-content pre code {
    white-space: pre-wrap;
    word-break: break-word;
}
.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--color-border); word-break: break-word; }

.article-content iframe:not(.content-embed__frame iframe) {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius);
    margin: 16px 0;
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
}

.article-content .wp-block-image,
.article-content .alignwide,
.article-content .alignfull,
.article-content .wp-caption,
.article-content div:has(> img),
.article-content span:has(> img),
.article-content figure,
.article-content picture {
    display: flow-root;
    max-width: 100%;
    clear: both;
    float: none !important;
    position: static !important;
}

.article-content [style*="width:"],
.article-content [style*="width :"],
.article-content [style*="float:"],
.article-content [style*="float :"],
.article-content [style*="position:"],
.article-content [style*="position :"] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
    position: static !important;
}

.article-content img[width] {
    max-width: 100% !important;
    height: auto !important;
}

.article-post-footer {
    padding-bottom: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.article-post-footer .container {
    max-width: 100%;
    min-width: 0;
}

/* ===== Article tags — news pill box ===== */
.article-tags {
    margin: 28px 0;
    padding: 18px 20px 20px;
    background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(12, 74, 110, 0.08);
    position: relative;
    overflow: hidden;
}

.article-tags::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0c4a6e, var(--color-primary), #38bdf8);
}

.article-tags__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(14, 165, 233, 0.25);
}

.article-tags__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c4a6e, var(--color-primary));
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.article-tags__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0c4a6e;
    flex: 1;
}

.article-tags__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
}

.article-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-admin-bar {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
}

.article-admin-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-admin-bar__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
    color: #fff;
}

html.site-dark .article-admin-bar {
    border-top-color: #334155;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tag-link__hash {
    color: var(--color-primary);
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
}

.tag-link__text {
    line-height: 1.2;
}

.tag-link:hover {
    background: linear-gradient(135deg, #0c4a6e, var(--color-primary));
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}

.tag-link:hover .tag-link__hash {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Article section strip head (shared) ===== */
.article-strip-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.article-strip-head__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, var(--color-primary));
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.35);
    animation: article-strip-pulse 2.4s ease-out infinite;
    flex-shrink: 0;
}

@keyframes article-strip-pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.35); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.article-strip-head__mark {
    width: 3px;
    height: 1.05em;
    min-height: 16px;
    border-radius: 3px;
    background: linear-gradient(180deg, #38bdf8, var(--color-primary));
    opacity: 0.85;
    flex-shrink: 0;
}

.article-strip-head__title {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.2;
}

.article-strip-head__title a {
    color: #0c4a6e;
    text-decoration: none;
}

.article-strip-head__title a:hover {
    color: var(--color-primary);
}

/* ===== Category latest — text list with micro icons ===== */
.cat-latest {
    margin: 36px 0 28px;
    padding: 16px 18px 10px;
    background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(12, 74, 110, 0.08);
    position: relative;
    overflow: hidden;
}

.cat-latest::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0c4a6e, var(--color-primary), #38bdf8);
}

.cat-latest__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-latest__item {
    margin: 0;
}

.cat-latest__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cat-latest__link:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(186, 230, 253, 0.8);
    transform: translateX(-3px);
}

.cat-latest__icon {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #0c4a6e, #0369a1);
    border: 2px solid #fff;
    box-shadow:
        0 0 0 1.5px rgba(14, 165, 233, 0.35),
        0 4px 12px rgba(12, 74, 110, 0.2);
}

.cat-latest__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-latest__icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    font-weight: 900;
    color: #e0f2fe;
}

.cat-latest__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cat-latest__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-latest__time {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.cat-latest__arrow {
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.18s ease, transform 0.18s ease;
}

.cat-latest__link:hover .cat-latest__arrow {
    color: var(--color-primary);
    transform: translateX(-3px);
}

/* ===== Related posts — 8 latest grid ===== */
.related-block {
    margin: 28px 0 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: #7dd3fc;
    box-shadow: 0 14px 32px rgba(12, 74, 110, 0.14);
    color: inherit;
}

.related-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0c4a6e, #0369a1);
}

.related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.related-card:hover .related-card__media img {
    transform: scale(1.06);
}

.related-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
}

.related-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 55%);
    pointer-events: none;
}

.related-card__cat {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, var(--color-primary));
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(12, 74, 110, 0.35);
}

.related-card__body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.related-card__title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.42;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover .related-card__title {
    color: #0c4a6e;
}

.related-card__time {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-top: auto;
}

.related-section { margin: 40px 0; }

/* Author card — below article */
.author-card {
    position: relative;
    margin: 0 0 28px;
    border-radius: 18px;
    overflow: hidden;
}

.author-card__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0c4a6e, var(--color-primary), #38bdf8);
    z-index: 2;
}

.author-card__inner {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 20px 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 55%, #f8fafc 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 18px;
    box-shadow: 0 10px 36px rgba(12, 74, 110, 0.1);
}

.author-card__icon-wrap {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.author-card__icon.user-avatar--sm {
    width: 52px;
    height: 52px;
    font-size: 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #0c4a6e, #0369a1);
    color: #e0f2fe;
    box-shadow: 0 6px 18px rgba(12, 74, 110, 0.28);
    position: relative;
    z-index: 1;
}

.author-card__icon.user-avatar--sm img {
    border-radius: 12px;
}

.author-card__icon-ring {
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 2px dashed rgba(14, 165, 233, 0.45);
    pointer-events: none;
    animation: author-icon-ring 8s linear infinite;
}

@keyframes author-icon-ring {
    to { transform: rotate(360deg); }
}

.author-card__body {
    flex: 1;
    min-width: 0;
}

.author-card__label {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #0c4a6e;
    background: rgba(14, 165, 233, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    border: 1px solid rgba(186, 230, 253, 0.8);
}

.author-card__name {
    display: block;
    font-size: 19px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
    text-decoration: none;
}

.author-card__name:hover {
    color: #0c4a6e;
}

.author-card__bio {
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 12px;
}

.author-card__email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 8px 14px 8px 10px;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    border: 1.5px solid rgba(186, 230, 253, 0.35);
    border-radius: 12px;
    color: #e0f2fe;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(12, 74, 110, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    word-break: break-all;
}

.author-card__email:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(12, 74, 110, 0.32);
    color: #fff;
}

.author-card__email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #bae6fd;
}

.author-card__email-text {
    flex: 1;
    min-width: 0;
}

.author-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.author-card__link:hover {
    color: #0c4a6e;
}

.author-card__link svg {
    transition: transform 0.18s ease;
}

.author-card__link:hover svg {
    transform: translateX(-3px);
}

/* ===== Google Follow cards (single post) ===== */
.google-follow {
    display: grid;
    gap: 10px;
    margin: 10px 0 20px;
    width: 100%;
    clear: both;
}

.google-follow--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.google-follow--single {
    grid-template-columns: 1fr;
}

.google-follow__card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    height: 60px;
    padding: 0 12px 0 10px;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(12, 74, 110, 0.14);
    border-inline-start: 4px solid transparent;
    box-shadow: 0 4px 16px rgba(12, 74, 110, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.google-follow__card--search {
    background: linear-gradient(90deg, #ffffff 0%, #f4f8ff 100%);
    border-inline-start-color: #4285f4;
}

.google-follow__card--news {
    background: linear-gradient(90deg, #ffffff 0%, #f0f9ff 100%);
    border-inline-start-color: var(--color-primary, #0ea5e9);
}

.google-follow__card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(12, 74, 110, 0.12);
    color: inherit;
}

.google-follow__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.google-follow__icon svg {
    display: block;
    width: 36px;
    height: 36px;
}

.google-follow__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    text-align: right;
}

.google-follow__label {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-follow__sub {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-follow__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #1a56db 0%, #4285f4 100%);
    box-shadow: 0 3px 10px rgba(26, 86, 219, 0.28);
}

.google-follow__card--news .google-follow__cta {
    background: linear-gradient(135deg, #0c4a6e 0%, var(--color-primary, #0ea5e9) 100%);
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.28);
}

html.site-dark .google-follow__card {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(148, 163, 184, 0.28);
}

html.site-dark .google-follow__card--search {
    border-inline-start-color: #60a5fa;
}

html.site-dark .google-follow__card--news {
    border-inline-start-color: var(--color-primary, #38bdf8);
}

html.site-dark .google-follow__icon {
    background: rgba(15, 23, 42, 0.85);
}

html.site-dark .google-follow__label {
    color: #f1f5f9;
}

html.site-dark .google-follow__sub {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .google-follow--duo {
        grid-template-columns: 1fr;
    }

    .google-follow__card {
        padding: 0 10px 0 8px;
        gap: 8px;
    }

    .google-follow__label {
        font-size: 0.88rem;
    }

    .google-follow__sub {
        font-size: 0.66rem;
    }

    .google-follow__cta {
        min-width: 62px;
        height: 34px;
        padding: 0 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 420px) {
    .google-follow__sub {
        display: none;
    }

    .google-follow__cta {
        min-width: 56px;
        padding: 0 10px;
    }
}

/* ===== Comments ===== */
.comments-section {
    margin: 44px 0 24px;
    padding: 28px 24px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 38%, #ffffff 100%);
    border: 2px solid #bae6fd;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 10px 32px rgba(3, 105, 161, 0.08);
}

.comments-section__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #bae6fd;
}

.comments-section__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
    flex-shrink: 0;
}

.comments-section__title {
    margin: 0;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 900;
    color: #0c4a6e;
    line-height: 1.2;
}

.comments-section__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.comments-alert { margin-bottom: 16px; }

.comments-empty {
    text-align: center;
    padding: 36px 20px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.comments-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0284c7;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment { list-style: none; }

.comment-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 18px 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-card:hover {
    border-color: #bae6fd;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
}

.comment--depth-0 > .comment-card {
    border-right: 4px solid #0ea5e9;
}

.comment--depth-1 > .comment-card {
    border-right: 4px solid #38bdf8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.comment--depth-2 > .comment-card,
.comment--depth-3 > .comment-card {
    border-right: 4px solid #7dd3fc;
    background: #f8fafc;
}

.comments-replies {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 18px;
    border-right: 2px solid #e0f2fe;
}

.comment-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.comment--depth-1 .comment-avatar { width: 38px; height: 38px; font-size: 15px; border-radius: 12px; }
.comment--depth-2 .comment-avatar,
.comment--depth-3 .comment-avatar { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }

.comment-meta { flex: 1; min-width: 0; font-size: 13px; }

.comment-author {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.comment-meta time {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
    font-weight: 600;
}

.comment-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.comment-badge--reply {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.comment-body {
    color: #334155;
    line-height: 1.8;
    font-size: 15px;
    padding-right: 4px;
}

.comment-foot {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: #f0f9ff;
    color: #0369a1;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-reply-btn:hover {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.comment-form {
    background: #fff;
    padding: 22px 20px 20px;
    border-radius: 20px;
    border: 2px solid #bae6fd;
    box-shadow: 0 8px 28px rgba(3, 105, 161, 0.08);
}

.comment-form__head { margin-bottom: 14px; }

.comment-form__head h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
    color: #0c4a6e;
}

.comment-form__hint {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.comment-reply-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0c4a6e;
    font-size: 14px;
    font-weight: 600;
}

.comment-reply-notice strong { color: #0369a1; }

.comment-reply-cancel {
    border: none;
    background: #fff;
    color: #0369a1;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid #bae6fd;
}

.comment-reply-cancel:hover { background: #f0f9ff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.comment-form textarea {
    min-height: 120px;
    margin-bottom: 12px;
    resize: vertical;
    line-height: 1.7;
}

.captcha-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.captcha-row label { font-size: 14px; font-weight: 600; color: #334155; }
.captcha-row input { max-width: 100px; }

.comment-captcha {
    margin: 4px 0 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1.5px solid #bae6fd;
    background: linear-gradient(165deg, #f0f9ff 0%, #ffffff 100%);
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.08);
}

.comment-captcha__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: #0c4a6e;
}

.comment-captcha__expr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-variant-numeric: tabular-nums;
}

.comment-captcha__word-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed #7dd3fc;
}

.comment-captcha__word {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #0c4a6e;
    user-select: none;
}

.comment-captcha__word.is-loading {
    font-size: 18px;
    color: #64748b;
    letter-spacing: 0;
}

.comment-captcha__num {
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #0c4a6e;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.comment-captcha__op,
.comment-captcha__eq,
.comment-captcha__q {
    font-size: 30px;
    font-weight: 900;
    color: #0369a1;
    line-height: 1;
}

.comment-captcha__hint {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-align: center;
}

.comment-captcha__field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.comment-captcha__input {
    width: 100%;
    max-width: 220px;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.04em;
    background: #fff;
    color: #0f172a;
}

.comment-captcha__input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.comment-form__link-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

html.site-dark .comment-captcha {
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
    border-color: #334155;
}

html.site-dark .comment-captcha__title { color: #bae6fd; }
html.site-dark .comment-captcha__expr {
    background: #0f172a;
    border-color: #334155;
}
html.site-dark .comment-captcha__word-box {
    background: #0f172a;
    border-color: #334155;
}
html.site-dark .comment-captcha__word { color: #7dd3fc; }
html.site-dark .comment-captcha__word.is-loading { color: #94a3b8; }
html.site-dark .comment-captcha__num {
    background: #0369a1;
}
html.site-dark .comment-captcha__op,
html.site-dark .comment-captcha__eq,
html.site-dark .comment-captcha__q { color: #7dd3fc; }
html.site-dark .comment-captcha__hint,
html.site-dark .comment-captcha__field-label { color: #cbd5e1; }
html.site-dark .comment-captcha__input {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}
html.site-dark .comment-form__link-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.comment-form__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.btn-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.34);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.alert.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.archive-header {
    text-align: center;
    padding: 28px 24px;
    margin-bottom: 22px;
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 55%, #ffffff 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(3, 105, 161, 0.06);
}

.archive-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    margin-bottom: 8px;
    color: #0c4a6e;
}

.archive-description {
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75;
    font-size: 15px;
}

/* ===== Dark mode ===== */
html.site-dark {
    color-scheme: dark;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-border: #334155;
    --color-link: #38bdf8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
}


html.site-dark .widget {
    background: #1e293b;
    border: 1px solid #334155;
}

html.site-dark .single-article {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 220px);
}

html.site-dark .article-head {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

html.site-dark .article-head__body {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 55%);
    border-bottom-color: #334155;
}

html.site-dark .article-head__title {
    color: #f1f5f9;
}

html.site-dark .article-head__lead {
    color: #94a3b8;
}

html.site-dark .article-head__cat {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #0369a1;
    color: #7dd3fc;
}

html.site-dark .meta-bar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-top-color: #334155;
}

html.site-dark .meta-bar__author-name {
    color: #e2e8f0;
}

html.site-dark .meta-bar__sep {
    background: linear-gradient(180deg, transparent, #475569, transparent);
}

html.site-dark .meta-chip {
    background: rgba(15, 23, 42, 0.72);
    border-color: #334155;
    color: #cbd5e1;
}

html.site-dark .meta-chip__icon {
    color: #7dd3fc;
}

html.site-dark .meta-chip--date,
html.site-dark .meta-chip--link {
    color: #e2e8f0;
}

html.site-dark .meta-chip--date:hover,
html.site-dark .meta-chip--link:hover {
    background: #1e293b;
    border-color: #0284c7;
    color: #7dd3fc;
}

html.site-dark .meta-chip--update {
    background: linear-gradient(180deg, #422006 0%, #1e293b 100%);
    border-color: #92400e;
    color: #fcd34d;
}

html.site-dark .meta-bar__item {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

html.site-dark .article-flow {
    --article-gutter-tone: #1a2332;
    background: var(--article-gutter-tone);
    border-color: #334155;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

html.site-dark .article-flow__split {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #0284c7 100%);
}

html.site-dark .article-text-zoom {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-block-color: #334155;
}

html.site-dark .article-text-zoom__label {
    color: #94a3b8;
}

html.site-dark .article-text-zoom__controls {
    background: rgba(255, 255, 255, 0.06);
    border-color: #475569;
}

html.site-dark .article-text-zoom__btn {
    color: #bae6fd;
}

html.site-dark .article-text-zoom__btn.is-active {
    color: #fff;
}

html.site-dark .article-body-card {
    background: #1e293b;
}

html.site-dark .article-body-card--solo {
    --article-gutter-tone: #1a2332;
    background: var(--article-gutter-tone);
    border-color: #334155;
}

html.site-dark body.has-ads .single-article-ad .ad-slot {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-block-color: #334155;
}

html.site-dark .single-article .article-flow,
html.site-dark .single-article .article-body-card--solo {
    --article-frame-line: #334155;
    background: #1e293b;
}

html.site-dark .article-text-zoom {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-block-color: #334155;
}

html.site-dark .article-media,
html.site-dark .article-media__shell {
    background: #1e293b;
}

html.site-dark .article-media__frame {
    background: #334155;
}

html.site-dark .article-media__badge {
    background: rgba(2, 6, 23, 0.9);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f1f5f9;
}

html.site-dark .article-media__badge-icon {
    background: linear-gradient(145deg, #0284c7, #0369a1);
}

html.site-dark .article-content {
    background: #1e293b;
    border-color: transparent;
    color: #e2e8f0;
    box-shadow: none;
}

html.site-dark .article-content__lead {
    display: none;
}

html.site-dark .single-article .article-content h2 {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

html.site-dark .single-article .article-content h2::after {
    display: none;
}

html.site-dark .single-article .article-content h3 {
    color: #e2e8f0;
    border-right-color: #38bdf8;
    background: none;
}

html.site-dark .single-article .article-content :is(p, li, td, th, blockquote, figcaption, dd) a {
    color: #7dd3fc;
    background: linear-gradient(270deg, rgba(14, 165, 233, 0.22), rgba(2, 132, 199, 0.1));
    border-bottom-color: #38bdf8;
}

html.site-dark .single-article .article-content :is(p, li, td, th, blockquote, figcaption, dd) a:hover {
    color: #e0f2fe;
    background: linear-gradient(270deg, rgba(14, 165, 233, 0.32), rgba(2, 132, 199, 0.18));
    border-bottom-color: #7dd3fc;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.22);
}

html.site-dark .single-article .article-content :is(h2, h3) a {
    text-decoration-color: rgba(125, 211, 252, 0.45);
}

html.site-dark .article-content img {
    border-color: #475569;
}

html.site-dark .article-strip-head__title a {
    color: #7dd3fc;
}

html.site-dark .cat-latest {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

html.site-dark .cat-latest__link:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #334155;
}

html.site-dark .cat-latest__title {
    color: #e2e8f0;
}

html.site-dark .cat-latest__icon {
    border-color: #1e293b;
}

html.site-dark .related-card {
    background: #1e293b;
    border-color: #334155;
}

html.site-dark .related-card__body {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

html.site-dark .related-card__title {
    color: #e2e8f0;
}

html.site-dark .related-card:hover .related-card__title {
    color: #7dd3fc;
}

html.site-dark .author-card__inner {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
}

html.site-dark .author-card__label {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.15);
    border-color: #334155;
}

html.site-dark .author-card__name {
    color: #f1f5f9;
}

html.site-dark .author-card__name:hover {
    color: #7dd3fc;
}

html.site-dark .author-card__bio {
    color: #94a3b8;
}

html.site-dark .author-card__email {
    background: linear-gradient(135deg, #0a3d5c 0%, #0c4a6e 100%);
    border-color: rgba(56, 189, 248, 0.25);
}

html.site-dark .comments-section {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: #334155;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

html.site-dark .comments-section__title { color: #e2e8f0; }
html.site-dark .comments-section__sub { color: #94a3b8; }
html.site-dark .comments-section__head { border-bottom-color: #334155; }

html.site-dark .comments-empty {
    background: rgba(15, 23, 42, 0.65);
    border-color: #334155;
    color: #94a3b8;
}

html.site-dark .comment-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}

html.site-dark .comment-card:hover {
    border-color: #475569;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html.site-dark .comment--depth-1 > .comment-card,
html.site-dark .comment--depth-2 > .comment-card,
html.site-dark .comment--depth-3 > .comment-card {
    background: #172033;
}

html.site-dark .comments-replies { border-right-color: #334155; }
html.site-dark .comment-author { color: #f1f5f9; }
html.site-dark .comment-meta time { color: #94a3b8; }
html.site-dark .comment-body { color: #cbd5e1; }
html.site-dark .comment-foot { border-top-color: #334155; }
html.site-dark .comment-reply-btn {
    background: #0f172a;
    border-color: #334155;
    color: #7dd3fc;
}

html.site-dark .comment-reply-btn:hover {
    background: #0ea5e9;
    color: #fff;
}

html.site-dark .comment-form {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}

html.site-dark .comment-form__head h3 { color: #e2e8f0; }
html.site-dark .comment-form__hint { color: #94a3b8; }

html.site-dark .comment-reply-notice {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(56, 189, 248, 0.25);
    color: #e2e8f0;
}

html.site-dark .comment-reply-cancel {
    background: #0f172a;
    border-color: #334155;
    color: #7dd3fc;
}

html.site-dark .comment-form input,
html.site-dark .comment-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html.site-dark .comment-form input:focus,
html.site-dark .comment-form textarea:focus {
    background: #111827;
    border-color: #0ea5e9;
}

html.site-dark .archive-header,
html.site-dark .author-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

html.site-dark .archive-title {
    color: #7dd3fc;
}

html.site-dark .cat-siblings {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html.site-dark .cat-siblings__head {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-bottom-color: #334155;
}

html.site-dark .cat-siblings__title {
    color: #f1f5f9;
}

html.site-dark .cat-siblings__item {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

html.site-dark a.cat-siblings__item:hover {
    background: #1e3a5f;
    border-color: #0284c7;
    color: #7dd3fc;
}

html.site-dark .cat-siblings__item.is-active {
    border-color: #0284c7;
    background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
    color: #fff;
}

html.site-dark .archive-load-more {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

html.site-dark .archive-load-more__count {
    color: #94a3b8;
}

html.site-dark .archive-load-more__progress {
    background: rgba(51, 65, 85, 0.8);
}

html.site-dark .section-title {
    border-bottom-color: var(--color-primary);
}

html.site-dark .article-tags {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

html.site-dark .article-tags__title {
    color: #7dd3fc;
}

html.site-dark .article-tags__count {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
}

html.site-dark .tag-link {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html.site-dark .tag-link:hover {
    background: linear-gradient(135deg, #0c4a6e, var(--color-primary));
    border-color: transparent;
    color: #fff;
}


html.site-dark .author-archive__title {
    color: #bae6fd;
}

html.site-dark .btn-secondary {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}


@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .posts-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .post-card-compact { grid-template-columns: 1fr; }
    .post-card-compact .post-card-image { aspect-ratio: 16/9; }

    /* Single article — prevent horizontal overflow on mobile */
    .single-article .container,
    .single-article .article-container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .single-article .article-head,
    .single-article .article-body-card,
    .single-article .article-content,
    .single-article .share-panel,
    .single-article .author-card,
    .single-article .google-follow,
    .single-article .article-tags,
    .single-article .cat-latest,
    .single-article .related-block {
        max-width: 100%;
        min-width: 0;
    }
    .article-head { margin-bottom: 10px; border-radius: 16px; }
    .article-head__body { padding: 16px 14px 14px; }
    .article-head__crumb { padding: 10px 14px; }
    .article-head__crumb .breadcrumb { overflow-wrap: anywhere; }
    .article-head__title { font-size: clamp(20px, 5.5vw, 28px); overflow-wrap: anywhere; }
    .article-head__lead { font-size: 16px; }
    .meta-bar {
        padding: 8px 12px 9px;
    }
    .meta-bar__track {
        gap: 6px 8px;
    }
    .meta-bar__author {
        max-width: min(100%, 140px);
    }
    .meta-bar__author-name {
        font-size: 11px;
    }
    .meta-bar__avatar.user-avatar--sm {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .meta-bar__sep {
        display: none;
    }
    .meta-bar__chips {
        gap: 5px;
        flex: 1 1 100%;
    }
    .meta-chip {
        padding: 3px 8px;
        font-size: 10px;
        gap: 4px;
    }
    .meta-chip__icon {
        width: 12px;
        height: 12px;
    }
    .meta-chip__full {
        display: none;
    }
    .meta-chip__short {
        display: inline;
    }
    .article-media__badge {
        inset-block-end: 8px;
        inset-inline-end: 8px;
        max-width: min(88%, 280px);
        padding: 6px 10px 6px 8px;
        font-size: 11px;
        border-radius: 9px;
    }
    .article-media__badge-icon {
        width: 22px;
        height: 22px;
        border-radius: 6px;
    }
    .article-media__badge-icon svg {
        width: 13px;
        height: 13px;
    }
    .article-media__shell { padding: 0; }
    .article-media__frame { border-radius: 0; box-shadow: none; }

    /* Mobile frame — thin side borders + 5px inner padding */
    .single-article .article-flow,
    .single-article .article-body-card--solo {
        --article-edge-pad: 5px;
        --article-frame-line: #d7e0ea;
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        padding: 0;
        border: none;
        border-inline: 1px solid var(--article-frame-line);
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    .single-article .article-flow__split {
        height: 2px;
        margin: 0;
        border-radius: 0;
    }

    .single-article .article-media {
        border-radius: 0;
        padding-inline: var(--article-edge-pad);
        box-sizing: border-box;
    }

    .single-article .article-media__frame {
        border-radius: 8px;
        overflow: hidden;
    }

    .single-article .article-body-card {
        border-radius: 0;
    }

    .article-text-zoom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-inline: var(--article-edge-pad);
        padding: 9px 8px;
        background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
        border-block: 1px solid #e2e8f0;
        box-sizing: border-box;
    }

    .article-text-zoom__label {
        font-size: 11px;
        font-weight: 800;
        color: #64748b;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .article-text-zoom__controls {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px;
        border-radius: 999px;
        background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
        border: 1px solid #bae6fd;
        box-shadow: 0 2px 8px rgba(14, 165, 233, 0.12);
    }

    .article-text-zoom__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 32px;
        padding: 0 10px;
        border: none;
        border-radius: 999px;
        background: transparent;
        color: #0369a1;
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .article-text-zoom__btn.is-active {
        background: linear-gradient(135deg, var(--color-primary, #0ea5e9) 0%, #0284c7 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
    }

    .article-text-zoom__btn:active {
        transform: scale(0.96);
    }

    .article-body-card .article-content { padding: 12px var(--article-edge-pad, 5px); }
    body.has-ads .single-article-ad .ad-slot { padding-inline: var(--article-edge-pad, 5px); }
    .single-article .article-content {
        padding: 12px var(--article-edge-pad, 5px);
        font-size: 17px;
        line-height: 1.88;
        border-radius: 0;
    }
    .single-article .article-content.article-content--text-sm { font-size: 15px; line-height: 1.82; }
    .single-article .article-content.article-content--text-md { font-size: 17px; line-height: 1.88; }
    .single-article .article-content.article-content--text-lg { font-size: 19px; line-height: 1.92; }
    .single-article .article-content.article-content--text-xl { font-size: 21px; line-height: 1.96; }
    .article-body-card--solo .article-content { border-radius: 0; }
    .article-content table th,
    .article-content table td { font-size: 14px; padding: 8px 10px; }
    .share-panel { padding: 14px 12px; margin-left: 0; margin-right: 0; }
    .share-panel__actions {
        gap: 6px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .share-chip {
        justify-content: center;
        min-width: 0;
    }
    .share-chip span { display: none; }
    .share-chip { padding: 12px; border-radius: 14px; font-size: 12px; }
    .comments-section { padding: 18px 14px 16px; border-radius: 18px; margin-top: 28px; }
    .comments-section__icon { width: 44px; height: 44px; border-radius: 12px; }
    .comments-replies { padding-right: 12px; }
    .comment-card { padding: 14px 14px 12px; border-radius: 14px; }
    .comment-reply-notice { flex-direction: column; align-items: stretch; }
    .comment-form { padding: 16px 14px; border-radius: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .btn-comment { width: 100%; }
    .google-follow { margin-left: 0; margin-right: 0; }
    .author-card__inner { flex-direction: column; align-items: center; text-align: center; padding: 18px 14px 16px; }
    .author-card__email { width: 100%; justify-content: center; }
    .author-card__link { display: inline-flex; justify-content: center; }
    .related-grid { grid-template-columns: 1fr; }
    .cat-latest { padding: 14px 12px 8px; }
    .cat-latest__link {
        padding: 8px 10px;
        gap: 10px;
        min-width: 0;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .cat-latest__body {
        min-width: 0;
    }
    .cat-latest__title {
        font-size: 15px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .cat-latest__time {
        font-size: 12px;
    }
    .article-strip-head__title {
        font-size: 1.12rem;
    }
    .related-card__title {
        font-size: 15px;
        line-height: 1.48;
    }
    .related-card__time {
        font-size: 11px;
    }
    .author-profile__shell {
        padding: 20px 16px 18px;
    }
    .author-profile__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
    .author-profile__actions {
        justify-content: center;
    }
    .author-profile__chip {
        width: 100%;
        justify-content: center;
    }
    .article-tags {
        padding: 14px 14px 16px;
    }
    .article-tags__list {
        gap: 8px;
    }
    .tag-link {
        font-size: 12px;
        padding: 7px 12px 7px 10px;
    }
}

/* ── Ad slots (AdSense) — stable display, hide only when unfilled ── */
body.has-ads .ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 12px 0;
    text-align: center;
}

body.has-ads .ad-slot__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

body.has-ads .ad-slot .adsbygoogle {
    display: block;
    min-height: 250px;
    width: 100%;
    max-width: 100%;
}

body.has-ads .ad-slot--collapsed {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.has-ads .ad-slot--below_header {
    padding: 14px 12px 10px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.65) 0%, transparent 100%);
}

body.has-ads .ad-slot--mobile-only {
    display: none;
}

@media (max-width: 768px) {
    body.has-ads .ad-slot--mobile-only {
        display: flex;
    }
}

body.has-ads .ad-slot--content_start,
body.has-ads .ad-slot--content_end,
body.has-ads .ad-slot--below_tags {
    margin: 0;
    border-radius: 0;
}

body.has-ads .single-article-ad {
    margin: 12px 0 14px;
}

body.has-ads .single-article-ad .ad-slot {
    padding: 12px 5px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-block: 1px solid #e2e8f0;
}

body.has-ads .ad-slot--content_end {
    margin-top: 24px;
    margin-bottom: 8px;
}

body.has-ads .ad-slot--below_tags {
    margin-top: 8px;
}

html.site-dark body.has-ads .ad-slot--below_header,
html.site-dark body.has-ads .single-article-ad .ad-slot {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, transparent 100%);
    border-block-color: #334155;
}

/* ===== Content image lightbox ===== */
body.content-lightbox-open {
    overflow: hidden;
}

.content-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.content-lightbox[hidden] {
    display: none !important;
}

.content-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}

.content-lightbox__stage {
    position: relative;
    z-index: 2;
    max-width: min(96vw, 1100px);
    max-height: 90vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.content-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.content-lightbox__caption {
    margin: 0;
    padding: 8px 14px;
    max-width: 100%;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.content-lightbox__close,
.content-lightbox__nav {
    position: absolute;
    z-index: 3;
    border: 0;
    margin: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    transition: background 0.15s ease, transform 0.15s ease;
}

.content-lightbox__close:hover,
.content-lightbox__nav:hover {
    background: rgba(30, 41, 59, 0.92);
}

.content-lightbox__close {
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content-lightbox__nav--prev {
    right: 14px;
}

.content-lightbox__nav--next {
    left: 14px;
}

.content-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.04);
}

html.site-dark .article-content .content-image,
html.site-dark .article-content img.content-image,
html.site-dark .article-content img:not(.content-image) {
    border-color: #334155;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html.site-dark .article-content figcaption,
html.site-dark .article-content .content-media__caption,
html.site-dark .article-content .wp-caption-text {
    color: #bae6fd;
}

html.site-dark .article-content .content-media::after {
    opacity: 0.7;
}

html.site-dark .article-content .content-embed__frame {
    border-color: #334155;
    background: #0f172a;
}

@media (max-width: 640px) {
    .content-lightbox {
        padding: 10px;
    }

    .content-lightbox__close {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .content-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .content-lightbox__nav--prev {
        right: 8px;
    }

    .content-lightbox__nav--next {
        left: 8px;
    }
}
