/*
Theme Name: SudanJEM News
Theme URI: https://sudanjem.net
Description: Complete RTL news theme for sudanjem.net — homepage, articles, video, sharing, SEO. Not a GeneratePress child.
Author: Sudan JEM
Version: 17.0
Text Domain: sudanjem
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@500;600;700&family=Tajawal:wght@400;500;600;700;800&display=swap");

:root {
	--bg: #f7f6f3;
	--paper: #fff;
	--ink: #16181d;
	--muted: #5c6370;
	--faint: #8b909a;
	--line: #e6e3dc;
	--primary: #00529c;
	--primary-dark: #003d75;
	--accent-soft: #e8f1f8;
	--danger: #b42318;
	--radius: 12px;
	--shadow: 0 0 0 1px rgba(22, 24, 29, 0.06), 0 1px 2px -1px rgba(22, 24, 29, 0.06), 0 2px 6px 0 rgba(22, 24, 29, 0.04);
	--shadow-hover: 0 0 0 1px rgba(0, 82, 156, 0.22), 0 8px 24px -12px rgba(0, 61, 117, 0.28);
	--article: 44rem;
	--rail: 19.5rem;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { direction: rtl; }
body {
	margin: 0;
	font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
	direction: rtl;
	text-align: right;
	background: var(--bg);
	color: var(--ink);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button:not(:disabled) { cursor: pointer; font-family: inherit; }
h1, h2, h3 {
	font-family: "Noto Naskh Arabic", "Amiri", serif;
	text-wrap: balance;
	line-height: 1.3;
}

/* ---- Hide WordPress / GeneratePress chrome we don't want ---- */
.menu-toggle,
.main-navigation,
#site-navigation,
.gen-sidebar-nav,
.mobile-menu-control-wrapper,
.gp-icon.icon-menu-bars,
.site-header,
#masthead,
.site-footer,
#generate-slideout-menu,
.footer-widgets { display: none !important; }

.sj-header {
	background: rgba(255,255,255,0.95);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
	height: 56px;
	backdrop-filter: blur(12px);
}
.sj-header-inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 16px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.sj-logo, .sj-logo a, .custom-logo-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}
.sj-logo img, .custom-logo {
	max-height: 36px !important;
	width: auto !important;
	height: auto !important;
}
.sj-logo-mark {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.sj-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.sj-logo-en { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.sj-logo-ar { font-size: 10px; font-weight: 500; color: var(--primary); margin-top: 3px; }
.sj-header-actions { display: flex; align-items: center; gap: 4px; }
.sj-about-link {
	display: none;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
}
.sj-about-link:hover { background: var(--bg); color: var(--ink); }
@media (min-width: 640px) { .sj-about-link { display: inline-flex; } }
.sj-icon-btn {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--ink);
}
.sj-icon-btn:hover { background: var(--bg); }

.reading-progress {
	position: fixed;
	top: 0;
	right: 0;
	height: 3px;
	width: 0%;
	background: var(--primary);
	z-index: 100;
	pointer-events: none;
}

.sliding-categories {
	background: rgba(255,255,255,0.95);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 56px;
	z-index: 40;
	backdrop-filter: blur(12px);
}
.categories-track {
	display: flex;
	gap: 8px;
	padding: 10px 16px;
	max-width: 72rem;
	margin: 0 auto;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.categories-track::-webkit-scrollbar { display: none; }
.cat-pill {
	flex-shrink: 0;
	padding: 6px 14px;
	background: var(--bg);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.cat-pill:hover, .cat-pill.is-active {
	background: var(--primary);
	color: #fff;
}

/* Layout: article RIGHT, ads LEFT (RTL flex) */
.sj-shell { padding: 24px 16px 64px; }
.sj-layout {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 32px;
	max-width: 66.5rem;
	margin: 0 auto;
}
.sj-article {
	flex: 1 1 auto;
	min-width: 0;
	max-width: var(--article);
	width: 100%;
}
.sj-rail {
	width: var(--rail);
	flex-shrink: 0;
}
.sj-rail-inner { position: sticky; top: 128px; display: grid; gap: 16px; }

.yahoo-category a {
	display: inline-block;
	background: var(--primary);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	margin-bottom: 12px;
}
.yahoo-title {
	font-family: "Noto Naskh Arabic", serif !important;
	font-size: clamp(1.6rem, 4.6vw, 2.15rem) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 0 12px !important;
	color: var(--ink) !important;
}
.yahoo-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 16px;
}
.meta-author { font-weight: 600; color: var(--ink); }
.meta-updated { color: var(--primary); font-weight: 600; }

.yahoo-share-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.share-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #d0d5dd !important;
	background: #ffffff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #00529c !important;
	box-shadow: var(--shadow);
	transition: transform 0.15s var(--ease), background 0.15s, color 0.15s, border-color 0.15s;
}
.share-btn svg {
	stroke: #00529c !important;
	fill: none !important;
	color: #00529c !important;
}
.share-btn:hover {
	background: #00529c !important;
	color: #fff !important;
	border-color: #00529c !important;
}
.share-btn:hover svg { stroke: #fff !important; }
.share-btn:hover {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}
.share-btn:active { transform: scale(0.96); }
.share-more {
	background: none;
	border: 0;
	font-weight: 600;
	font-size: 14px;
	color: var(--muted);
}
.share-more:hover { color: var(--primary); text-decoration: underline; }

.yahoo-image, .sj-zoom {
	position: relative;
	margin: 0 0 20px;
	border-radius: 12px;
	overflow: hidden;
	cursor: zoom-in;
	box-shadow: var(--shadow);
}
.yahoo-image img, .sj-zoom img, .yahoo-content img {
	width: 100%;
	display: block;
	transition: transform 0.45s var(--ease);
}
.yahoo-image:hover img, .sj-zoom:hover img, .yahoo-content a.sj-zoom:hover img { transform: scale(1.04); }
.image-expand-hint {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(22,24,29,0.55);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.yahoo-content img {
	border-radius: 12px;
	margin: 1.4em 0;
	cursor: zoom-in;
	box-shadow: var(--shadow);
}

.yahoo-summary {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 24px;
	box-shadow: var(--shadow);
}
.summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.summary-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--primary);
}
.summary-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.summary-run {
	background: var(--primary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 600;
	font-size: 13px;
}
.summary-run:hover { background: var(--primary-dark); }
.yahoo-summary ul { margin: 12px 0 0; padding: 0; list-style: none; }
.yahoo-summary li {
	position: relative;
	padding-right: 16px;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.65;
}
.yahoo-summary li::before {
	content: "";
	position: absolute;
	right: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary);
}

.yahoo-content {
	font-size: 17.5px !important;
	line-height: 1.85 !important;
	color: var(--ink) !important;
}
.yahoo-content p { margin-bottom: 1.4em !important; text-wrap: pretty; }
.yahoo-content h2 {
	font-size: 1.35rem;
	margin: 2em 0 0.6em;
}

.dates-foot { margin-top: 32px; font-size: 12px; color: var(--faint); }

.related-posts {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}
.related-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.related-slider {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.related-card {
	background: var(--paper);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
	display: flex;
	flex-direction: column;
}
.related-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-hover);
}
.related-card.hidden { display: none; }
.related-img-wrap { position: relative; overflow: hidden; }
.related-card img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	transition: transform 0.45s var(--ease);
}
.related-card:hover img { transform: scale(1.07); }
.match-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0,82,156,0.92);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
}
.related-body { padding: 12px 14px 16px; }
.related-title-item {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.related-excerpt {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 8px;
}
.related-meta { font-size: 12px; color: var(--faint); }
.related-load-more {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	background: var(--bg);
	border: 0;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}
.related-load-more:hover { background: var(--primary); color: #fff; }

.sj-ad {
	border-radius: 16px;
	padding: 20px;
	background: var(--primary);
	color: #fff;
	box-shadow: var(--shadow);
}
.sj-ad small { opacity: 0.7; font-weight: 700; font-size: 11px; }
.sj-ad h3 { margin: 6px 0 8px; font-size: 20px; }
.sj-ad p { margin: 0 0 12px; font-size: 14px; opacity: 0.85; }
.sj-ad a {
	display: inline-block;
	background: #fff;
	color: var(--primary);
	border-radius: 999px;
	padding: 8px 14px;
	font-weight: 700;
	font-size: 13px;
}
.sj-most {
	background: var(--paper);
	border-radius: 16px;
	padding: 12px;
	box-shadow: var(--shadow);
}
.sj-most h3 { margin: 4px 8px 8px; font-size: 14px; }
.sj-most a {
	display: flex;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
}
.sj-most a:hover { background: var(--bg); }
.sj-most img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sj-most span { font-size: 13px; font-weight: 600; line-height: 1.4; }

.comments-toggle {
	margin-top: 48px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--paper);
	border: 0;
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: var(--shadow);
	font-weight: 700;
	font-size: 16px;
}
.comments-toggle small {
	background: var(--bg);
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 12px;
	color: var(--muted);
	font-weight: 600;
}
.comments-panel { display: none; margin-top: 16px; }
.comments-panel.open { display: block; }
.comment-list { list-style: none; padding: 0; margin: 16px 0; }
.comment-list .comment {
	background: var(--paper);
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: var(--shadow);
}
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"] {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 12px;
	background: var(--bg);
	font-family: inherit;
}
.comment-form .submit {
	background: var(--primary);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 700;
}

.share-modal, .image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s var(--ease), visibility 0.2s;
}
.share-modal { background: rgba(22,24,29,0.5); }
.image-lightbox { background: rgba(0,0,0,0.9); flex-direction: column; }
.share-modal.active, .image-lightbox.active { opacity: 1; visibility: visible; }
.share-modal-content {
	background: #fff !important;
	color: #16181d !important;
	width: 90%;
	max-width: 380px;
	border-radius: 16px;
	padding: 22px;
	position: relative;
}
.share-close, .lightbox-close {
	position: absolute;
	top: 8px;
	left: 12px;
	background: none;
	border: none;
	font-size: 28px;
	color: inherit;
	line-height: 1;
}
.lightbox-close { color: #fff; top: 16px; left: 16px; }
.share-shortlink { display: flex; gap: 8px; margin-bottom: 14px; }
.share-shortlink input {
	flex: 1;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 13px;
	direction: ltr;
}
.copy-short-btn {
	background: var(--primary);
	color: #fff;
	border: 0;
	padding: 0 14px;
	border-radius: 8px;
	font-weight: 600;
}
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-item {
	padding: 11px;
	background: var(--bg);
	border-radius: 10px;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
}
.share-item.wide { grid-column: 1 / -1; }
.image-lightbox img {
	max-width: 92%;
	max-height: 75vh;
	border-radius: 8px;
	outline: 1px solid rgba(255,255,255,0.2);
}

.site-content, .content-area, #primary, #main, .inside-article {
	background: transparent !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.separate-containers .inside-article,
.one-container .site-content { box-shadow: none !important; }
#right-sidebar, #left-sidebar { display: none !important; }

@media (max-width: 1024px) {
	.sj-rail { display: none; }
	.sj-article { max-width: 100%; }
	.sj-home-split { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.sj-header, .sj-header-inner { height: 54px; }
	.sliding-categories { top: 54px; }
	.sj-logo img, .custom-logo { max-height: 32px !important; }
	.related-slider {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 12px;
		scrollbar-width: none;
	}
	.related-card {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}
	.related-card.hidden { display: flex; }
	.yahoo-content { font-size: 17px !important; }
	.sj-four { grid-template-columns: 1fr 1fr; }
}

/* Header search */
.sj-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(22,24,29,0.45);
	padding: 12vh 16px 0;
	backdrop-filter: blur(2px);
}
.sj-search-overlay[hidden] { display: none; }
.sj-search-panel {
	max-width: 32rem;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 40px -16px rgba(10,24,48,0.45);
}
.sj-search-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
}
.sj-search-row input {
	flex: 1;
	height: 48px;
	border: 0;
	outline: none;
	font: inherit;
	font-size: 16px;
	background: transparent;
}
.sj-search-results { max-height: 50vh; overflow: auto; padding: 8px; }
.sj-search-hint { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 8px; }
.sj-search-item {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
}
.sj-search-item:hover { background: var(--bg); }
.sj-search-item .c { display: block; font-size: 12px; font-weight: 600; color: var(--primary); }
.sj-search-item .t { display: block; font-family: "Noto Naskh Arabic", serif; font-weight: 600; }

/* Homepage */
.sj-ticker { background: var(--paper); border-bottom: 1px solid var(--line); }
.sj-ticker-inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	overflow: hidden;
}
.sj-live {
	flex-shrink: 0;
	background: var(--danger);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
}
.sj-ticker-track { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.sj-ticker-track::-webkit-scrollbar { display: none; }
.sj-home { max-width: 72rem; margin: 0 auto; padding: 24px 16px 64px; display: block !important; min-height: 50vh; color: var(--ink); visibility: visible !important; }
.sj-hero {
	display: grid;
	border-radius: 16px;
	overflow: hidden;
	background: var(--paper);
	box-shadow: var(--shadow);
}
@media (min-width: 800px) {
	.sj-hero { grid-template-columns: 1.2fr 1fr; min-height: 320px; }
}
.sj-hero-img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.sj-hero-body { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.sj-kicker { font-size: 11px; font-weight: 700; color: var(--primary); }
.sj-hero-title {
	font-family: "Noto Naskh Arabic", serif;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.3;
	margin-top: 6px;
}
.sj-hero-ex { margin-top: 10px; color: var(--muted); font-size: 15px; }
.sj-four {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
@media (max-width: 1024px) { .sj-four { grid-template-columns: 1fr 1fr; } }
.sj-card {
	background: var(--paper);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.sj-card-img { overflow: hidden; }
.sj-card-img img { width: 100%; height: 140px; object-fit: cover; }
.sj-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.sj-card-title {
	font-family: "Noto Naskh Arabic", serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
}
.sj-card-meta { font-size: 12px; color: var(--faint); }
.sj-block-title { font-family: "Noto Naskh Arabic", serif; font-size: 24px; margin: 0 0 16px; }
.sj-home-split {
	margin-top: 48px;
	display: grid;
	grid-template-columns: minmax(0,1fr) 19.5rem;
	gap: 32px;
}
.sj-latest {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--paper);
	border-radius: 16px;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.sj-latest a {
	display: flex;
	gap: 16px;
	padding: 16px;
}
.sj-latest a:hover { background: var(--bg); }
.sj-latest img { width: 112px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sj-latest b { display: block; font-size: 11px; color: var(--primary); }
.sj-latest .t { display: block; font-family: "Noto Naskh Arabic", serif; font-weight: 700; margin-top: 2px; }
.sj-latest .m { display: block; font-size: 12px; color: var(--faint); margin-top: 4px; }
.sj-most h3 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	margin: 4px 8px 8px;
}
.sj-most h3 a { font-size: 12px; font-weight: 600; color: var(--primary); }

/* Footer */
.sj-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--paper); }
.sj-footer-grid {
	max-width: 72rem;
	margin: 0 auto;
	padding: 48px 16px;
	display: grid;
	gap: 40px;
}
@media (min-width: 800px) { .sj-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.sj-footer h2 { font-size: 14px; margin: 0 0 12px; }
.sj-footer ul { list-style: none; margin: 0; padding: 0; }
.sj-footer li { margin: 0 0 8px; }
.sj-footer a { color: var(--muted); font-size: 14px; }
.sj-footer a:hover { color: var(--primary); }
.sj-footer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sj-footer-tag { max-width: 20rem; font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.sj-footer-copy { border-top: 1px solid var(--line); padding: 16px; text-align: center; font-size: 12px; color: var(--faint); }

.sj-comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.sj-empty-comments {
	background: var(--paper);
	border-radius: 16px;
	padding: 32px 16px;
	text-align: center;
	color: var(--muted);
	box-shadow: var(--shadow);
}
.sj-pager { margin-top: 24px; }

@keyframes sj-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(50%); }
}
@keyframes sj-pulse {
	0% { box-shadow: 0 0 0 0 rgba(180,35,24,.55); }
	70% { box-shadow: 0 0 0 8px rgba(180,35,24,0); }
	100% { box-shadow: 0 0 0 0 rgba(180,35,24,0); }
}
.sj-live-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #b42318;
	flex-shrink: 0;
	animation: sj-pulse 1.6s ease-out infinite;
}
.sj-ticker-mask { overflow: hidden; flex: 1; min-width: 0; }
.sj-marquee {
	display: flex;
	gap: 2.2rem;
	width: max-content;
	animation: sj-marquee 40s linear infinite;
}
.sj-marquee:hover { animation-play-state: paused; }
.sj-ticker-track a { white-space: nowrap; font-size: 14px; }
.sj-ticker-track span { color: var(--faint); font-size: 12px; margin-right: 6px; }

.sj-home-wrap {
	max-width: 72rem;
	margin: 0 auto;
	padding: 24px 16px 64px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
@media (min-width: 1024px) {
	.sj-home-wrap { flex-direction: row; align-items: flex-start; }
	.sj-home-main { flex: 1; min-width: 0; max-width: 44rem; }
	.sj-home-rail { width: 19.5rem; flex-shrink: 0; position: sticky; top: 120px; display: grid; gap: 16px; }
}
.sj-home-main { min-width: 0; width: 100%; }
.sj-home-rail { display: grid; gap: 16px; }
@media (max-width: 1023px) {
	.sj-home-rail { order: 2; }
}

.sj-hero-stage { position: relative; }
.sj-hero-stage > .sj-hero { display: none; margin: 0; }
.sj-hero-stage > .sj-hero.is-on { display: block; }
.sj-hero-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; background: var(--paper); border-radius: 0 0 16px 16px; box-shadow: var(--shadow); }
.sj-hero-tab {
	border: 0;
	background: transparent;
	text-align: right;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	padding: 8px;
	border-radius: 8px;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sj-hero-tab.is-on, .sj-hero-tab:hover { background: var(--accent-soft); color: var(--primary); }

.sj-docs { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.sj-docs a { display: flex; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: baseline; }
.sj-docs li:last-child a { border-bottom: 0; }
.sj-docs time { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.sj-docs span { font-family: "Noto Naskh Arabic", serif; font-weight: 700; }

.sj-round-row img { width: 48px !important; height: 48px !important; border-radius: 50%; object-fit: cover; }
.sj-round-row span { display: flex; flex-direction: column; gap: 2px; }
.sj-round-row small { color: var(--faint); font-size: 11px; }

.sj-poll p { font-size: 13px; font-weight: 600; padding: 0 8px; }
.sj-poll-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
.sj-poll-btns button { border: 0; background: var(--bg); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; }
.sj-poll-btns button:hover { background: var(--accent-soft); color: var(--primary); }
.sj-poll-out { color: var(--primary); font-weight: 700; font-size: 12px; padding: 0 8px 8px; }
.sj-ad-soft { background: var(--paper) !important; color: var(--ink) !important; border: 1px dashed var(--line); }
.sj-ad-soft h3 { color: inherit; }
.sj-num { width: 20px; color: var(--faint); font-weight: 700; }

.sj-cat-hero { border-radius: 16px; padding: 36px 28px; color: #fff; margin-bottom: 24px; background: linear-gradient(to left, #00529c, #003d75); }
.sj-cat-hero .sj-block-title { color: #fff; margin: 4px 0 8px; }
.sj-cat-hero p { color: rgba(255,255,255,.8); max-width: 36rem; }
.sj-cat-hero--opinion { background: linear-gradient(to left, #1a2744, #071525); }
.sj-cat-hero--statements { background: linear-gradient(to left, #003d75, #00529c); }
.sj-cat-hero--video { background: linear-gradient(to left, #16181d, #2a3038); }

.sj-opinion { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sj-opinion a { display: flex; gap: 14px; background: var(--paper); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.sj-opinion img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sj-opinion small { color: var(--primary); font-weight: 700; font-size: 11px; }
.sj-opinion strong { display: block; font-family: "Noto Naskh Arabic", serif; }
.sj-opinion em { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 4px; }

.sj-inline-related { margin: 28px 0; padding: 12px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); }
.sj-inline-related .related-card { box-shadow: none; }
.sj-inline-related .related-slider, .sj-inline-related { max-width: 100%; }

.comment-reply-title { font-size: 16px; }
.comment-list .children { margin: 12px 0 0 0; padding-right: 16px; list-style: none; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.sj-topbar {
	background: var(--primary);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}
.sj-topbar-inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 6px 16px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.sj-mail-bar {
	border-top: 1px solid var(--line);
	background: var(--bg);
	padding: 10px 16px;
}
.sj-mail-form {
	display: flex;
	gap: 8px;
	max-width: 28rem;
	margin: 0 auto;
}
.sj-mail-form input {
	flex: 1;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--line);
	padding: 0 14px;
	font: inherit;
}
.sj-mail-form button {
	border: 0;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	padding: 0 16px;
	font-weight: 700;
}
.sj-mail-form-dark input {
	background: rgba(255,255,255,0.08);
	border-color: rgba(255,255,255,0.2);
	color: #fff;
}
.sj-mail-form-dark button { background: #fff; color: var(--primary); }
.sj-mail-ok { color: #7dcea0; font-weight: 600; }
.sj-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--shadow);
}
.sj-play::after {
	content: "";
	position: absolute;
	top: 14px;
	right: 16px;
	border-style: solid;
	border-width: 8px 0 8px 12px;
	border-color: transparent transparent transparent var(--primary);
}
.sj-card-img { position: relative; }
.sj-card-ex {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sj-read-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(22,24,29,0.72);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	z-index: 2;
}
.sj-card { position: relative; }
.sj-greet { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.sj-block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 36px 0 12px;
}
.sj-block-head .sj-block-title { margin: 0; }
.sj-more { font-size: 13px; font-weight: 700; color: var(--primary); }
.sj-faint { font-size: 12px; color: var(--faint); }
.sj-readnext {
	margin-top: 40px;
	padding: 16px;
	background: var(--paper);
	border-radius: 16px;
	box-shadow: var(--shadow);
}
.sj-footer {
	margin-top: 64px;
	background: #0b1f38;
	color: #fff;
	border-top: 0;
}
.sj-footer-grid {
	max-width: 72rem;
	margin: 0 auto;
	padding: 56px 16px 40px;
	display: grid;
	gap: 40px;
}
@media (min-width: 800px) { .sj-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.sj-footer h2 { font-size: 14px; margin: 0 0 12px; color: #fff; }
.sj-footer ul { list-style: none; margin: 0; padding: 0; }
.sj-footer li { margin: 0 0 8px; }
.sj-footer a { color: rgba(255,255,255,0.7); font-size: 14px; }
.sj-footer a:hover { color: #fff; }
.sj-footer-tag { max-width: 22rem; font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.7; margin: 12px 0 16px; }
.sj-footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.45); }
.sj-logo-on-dark { filter: brightness(0) invert(1); }
.is-read { opacity: 0.92; }
