/*
Theme Name: Ibn Thani Royal
Theme URI: https://ibn-thani.com
Description: قالب ابن ثاني الملكي بإصدار معماري فاخر: Modules منظمة، REST أقوى، لوحة تحكم، Design Tokens، Schema، أداء محسّن، RTL متجاوب، وتجهيز للتطبيقات والبلوكات.
Version: 11.0.0
Author: محمد الحربي
Author URI: https://ibn-thani.com
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: ibn-thani-royal
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


:root {
	
	--royal-gold:        #d4af37;
	--royal-gold-dark:   #b88a1a;
	--royal-gold-deep:   #8f5d08;
	--royal-gold-soft:   #f3c65a;
	--royal-navy:        #001f3f;
	--royal-cream:       #fff9e8;
	--royal-paper:       #fcfbfa;
	--royal-paper-soft:  #fffaf0;
	--royal-paper-cool:  #f5f1e8;
	--royal-divider:     #eef0f2;

	
	--accent-gold:   #d4af37;
	--accent-blue:   #1565c0;
	--accent-purple: #6a1b9a;
	--accent-red:    #c62828;

	
	--color-text:        #1a1a1a;
	--color-text-soft:   #4a4a4a;
	--color-text-mute:   #6b6b6b;
	--color-bg:          var(--royal-paper);
	--color-bg-elevated: #ffffff;
	--color-link:        var(--royal-gold-deep);
	--color-link-hover:  var(--royal-gold);

	
	--shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 15px 40px rgba(212, 175, 55, 0.20), 0 5px 15px rgba(0, 0, 0, 0.10);

	
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--radius-xl: 50px;

	
	--space-xs: 4px;
	--space-sm: 8px;
	--space-md: 16px;
	--space-lg: 24px;
	--space-xl: 40px;

	
	--font-base: 'Tajawal', 'Cairo', 'Segoe UI', 'Tahoma', Arial, sans-serif;
	--font-size-base: 16px;
	--line-height: 1.7;

	
	--transition: 0.25s ease;
}


*, *::before, *::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	background-color: var(--color-bg);
	font-family: var(--font-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height);
	direction: rtl;
	text-align: right;
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-link);
	text-decoration: none;
	transition: color var(--transition), text-shadow var(--transition);
}

a:hover,
a:focus {
	color: var(--color-link-hover);
}


.royal-primary-menu a,
.royal-footer-menu a,
.widget ul li a,
.royal-breadcrumb a,
.royal-ticker-item {
	position: relative;
	padding-bottom: 2px;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.royal-primary-menu a::after,
.royal-footer-menu a::after,
.widget ul li a::after,
.royal-breadcrumb a::after,
.royal-ticker-item::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: -1px;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--royal-gold) 0%, var(--royal-gold-soft) 50%, var(--royal-gold) 100%);
	box-shadow: 0 0 8px rgba(212, 175, 55, 0.7), 0 0 16px rgba(212, 175, 55, 0.4);
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.royal-primary-menu a:hover,
.royal-primary-menu a:focus-visible,
.royal-footer-menu a:hover,
.royal-footer-menu a:focus-visible,
.widget ul li a:hover,
.widget ul li a:focus-visible,
.royal-breadcrumb a:hover,
.royal-breadcrumb a:focus-visible,
.royal-ticker-item:hover,
.royal-ticker-item:focus-visible {
	color: var(--royal-gold);
	text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

.royal-primary-menu a:hover::after,
.royal-primary-menu a:focus-visible::after,
.royal-footer-menu a:hover::after,
.royal-footer-menu a:focus-visible::after,
.widget ul li a:hover::after,
.widget ul li a:focus-visible::after,
.royal-breadcrumb a:hover::after,
.royal-breadcrumb a:focus-visible::after,
.royal-ticker-item:hover::after,
.royal-ticker-item:focus-visible::after {
	width: 100%;
}


.royal-primary-menu a:hover,
.royal-primary-menu a:focus-visible {
	background: var(--royal-gold);
	color: #fff;
	text-shadow: none;
}

.royal-primary-menu a:hover::after,
.royal-primary-menu a:focus-visible::after {
	display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--royal-gold);
	outline-offset: 2px;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.3;
	color: var(--royal-navy);
}


.skip-link {
	position: absolute;
	top: -40px;
	right: 6px;
	background: var(--royal-navy);
	color: #fff;
	padding: var(--space-sm) var(--space-md);
	z-index: 100000;
	border-radius: var(--radius-sm);
	transition: top var(--transition);
}

.skip-link:focus {
	top: 6px;
	color: #fff;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	clip: auto;
	-webkit-clip-path: none;
	clip-path: none;
	color: var(--royal-navy);
	display: block;
	font-size: 1rem;
	height: auto;
	right: 5px;
	top: 5px;
	padding: 15px 23px 14px;
	text-decoration: none;
	width: auto;
	z-index: 100000;
}


.site-royal-header-frame,
header.royal-header-container {
	--royal-header-face: #ffffff;
	--royal-header-face-soft: #fffaf0;
	position: relative;
	z-index: 99;
	width: 94%;
	max-width: 1280px;
	margin: 18px auto 28px;
	padding: 0;
	border-style: solid;
	border-color: transparent;
	border-width: 7px 18px;
	border-radius: 46px;
	background:
		linear-gradient(180deg, var(--royal-header-face) 0%, var(--royal-header-face-soft) 100%) padding-box,
		linear-gradient(
			90deg,
			#7e5209 0%,
			#b87912 7%,
			#f7d77a 15%,
			#d4af37 28%,
			#d4af37 72%,
			#f7d77a 85%,
			#b87912 93%,
			#7e5209 100%
		) border-box;
	box-shadow:
		inset 14px 0 18px rgba(255, 255, 255, .72),
		inset -14px 0 22px rgba(80, 48, 0, .24),
		0 12px 28px rgba(0, 0, 0, .10);
	overflow: hidden;
}


header.royal-header-full {
	width: 100%;
	max-width: none;
	margin-top: 0;
	border-radius: 0 0 34px 34px;
	border-width: 6px 14px;
}

header.royal-header-card {
	width: 94%;
	max-width: 1280px;
}

header.royal-header-float {
	position: sticky;
	top: 8px;
	width: min(94%, 1280px);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.royal-top-bar {
	background: linear-gradient(90deg, var(--royal-navy) 0%, #002b5e 100%);
	color: var(--royal-cream);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 18px;
	font-size: 0.9rem;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.royal-top-date {
	color: var(--royal-gold-soft);
	font-weight: 800;
	text-shadow: 0 0 10px rgba(212, 175, 55, .22);
}

.royal-top-social {
	color: var(--royal-cream);
	font-weight: 700;
}

.royal-brand-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 14px 18px 18px;
	position: relative;
	gap: 8px;
}

.royal-container-fluid {
	width: 100%;
	max-width: 1160px;
	margin-inline: auto;
}

.royal-custom-header-img {
	max-height: 92px;
	width: auto;
	max-width: min(86%, 680px);
	object-fit: contain;
	transition: transform var(--transition);
}

.royal-custom-header-img:hover {
	transform: scale(1.015);
}

.royal-site-title-link {
	font-size: clamp(1.35rem, 2.1vw, 1.9rem);
	font-weight: 900;
	color: var(--royal-navy);
	line-height: 1.3;
	text-shadow: 0 1px 0 rgba(212, 175, 55, 0.25);
}

.royal-site-title-link:hover,
.royal-site-title-link:focus {
	color: var(--royal-gold-deep);
}

.royal-site-description {
	color: var(--color-text-soft);
	font-size: clamp(.9rem, 1.25vw, 1rem);
	line-height: 1.7;
	font-weight: 700;
	max-width: 760px;
	margin: 0 auto;
}

.royal-header-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 4px;
}

.royal-header-action {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--royal-gold-soft) 0%, var(--royal-gold-dark) 100%);
	color: #fff;
	font-size: 1.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
	transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}

.royal-header-action:hover,
.royal-header-action:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(212, 175, 55, .26);
	color: #fff;
}

.royal-header-action[aria-pressed="true"] {
	background: linear-gradient(135deg, var(--royal-navy) 0%, #003366 100%);
	color: var(--royal-gold-soft);
}


.royal-header-panel {
	background: var(--color-bg-elevated);
	border-top: 1px solid var(--royal-divider);
	padding: var(--space-md) var(--space-lg);
	box-shadow: var(--shadow-md);
}

.royal-search-form {
	display: flex;
	gap: var(--space-sm);
	max-width: 680px;
	margin-inline: auto;
}

.royal-search-field {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid var(--royal-gold);
	border-radius: var(--radius-md);
	font-family: inherit;
	font-size: 1rem;
	background: var(--color-bg-elevated);
	color: var(--color-text);
}

.royal-search-submit {
	padding: 12px 24px;
	background: var(--royal-gold);
	color: #fff;
	border-radius: var(--radius-md);
	font-weight: 800;
	transition: background var(--transition), transform var(--transition);
}

.royal-search-submit:hover {
	background: var(--royal-gold-deep);
	transform: translateY(-1px);
}

.royal-primary-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	justify-content: center;
}

.royal-primary-menu a {
	padding: var(--space-sm) var(--space-md);
	color: var(--royal-navy);
	font-weight: 700;
	border-radius: var(--radius-sm);
	transition: background var(--transition), color var(--transition), text-shadow var(--transition);
}

.royal-primary-menu a:hover,
.royal-primary-menu a:focus {
	background: var(--royal-gold);
	color: #fff;
	text-shadow: 0 0 10px rgba(255,255,255,.35);
}


.royal-ticker-wrapper {
	width: min(96%, 1520px);
	max-width: 1520px;
	margin: 0 auto var(--space-lg);
	background: linear-gradient(90deg, var(--royal-navy) 0%, #002b5e 100%);
	color: #fff;
	display: flex;
	align-items: center;
	overflow: hidden;
	border: 2px solid var(--royal-gold);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(0, 28, 64, .16);
}

.royal-ticker-label {
	background: var(--royal-gold);
	color: var(--royal-navy);
	padding: 10px 20px;
	font-weight: 800;
	white-space: nowrap;
	flex-shrink: 0;
}

.royal-ticker-content {
	flex: 1;
	overflow: hidden;
	padding: 0 var(--space-md);
}

.royal-ticker-marquee {
	display: flex;
	gap: var(--space-md);
	white-space: nowrap;
	animation: royal-ticker-scroll 40s linear infinite;
}

.royal-ticker-marquee:hover {
	animation-play-state: paused;
}

.royal-ticker-item {
	color: #fff;
	padding: 10px 5px;
}

.royal-ticker-item:hover,
.royal-ticker-item:focus {
	color: var(--royal-gold);
}

.royal-ticker-separator {
	color: var(--royal-gold);
	margin: 0 var(--space-xs);
}

@keyframes royal-ticker-scroll {
	from { transform: translateX(100%); }
	to   { transform: translateX(-100%); }
}


@media (prefers-reduced-motion: reduce) {
	.royal-ticker-marquee {
		animation: none;
	}
}


.royal-main-layout {
	width: min(96%, 1520px);
	max-width: 1520px;
	margin: 0 auto;
	padding: 0 var(--space-md);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
	gap: 32px;
	align-items: start;
}

.royal-main {
	min-width: 0;
	width: 100%;
}

.royal-single-layout {
	grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.royal-sidebar,
#secondary {
	min-width: 0;
	width: 100%;
}


.single .royal-main-layout,
.page .royal-main-layout {
	width: min(97%, 1600px);
	max-width: 1600px;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
}

.single .royal-main,
.page .royal-main {
	width: 100%;
}

.single .royal-single-article,
.page .royal-single-article {
	width: 100%;
	max-width: none;
}


.royal-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-lg);
}

.royal-article-card {
	background: var(--color-bg-elevated);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
	display: flex;
	flex-direction: column;
	color: var(--color-text);
}

.royal-article-card:hover,
.royal-article-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	color: var(--color-text);
}


.royal-article-card:nth-child(4n+1) { border-top: 5px solid var(--accent-gold); }
.royal-article-card:nth-child(4n+2) { border-top: 5px solid var(--accent-blue); }
.royal-article-card:nth-child(4n+3) { border-top: 5px solid var(--accent-purple); }
.royal-article-card:nth-child(4n+4) { border-top: 5px solid var(--accent-red); }

.royal-card-image-wrapper {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--royal-paper-cool);
}

.royal-card-img,
.royal-card-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.royal-article-card:hover .royal-card-img,
.royal-article-card:hover .royal-card-image-wrapper img {
	transform: scale(1.05);
}

.royal-card-content {
	padding: var(--space-md);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.royal-card-title {
	font-size: 1.15rem;
	margin-bottom: var(--space-sm);
	color: var(--royal-navy);
	line-height: 1.4;
}

.royal-card-excerpt {
	color: var(--color-text-soft);
	font-size: 0.95rem;
	line-height: 1.6;
}

.royal-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: var(--space-xl);
}


.royal-pagination {
	margin: var(--space-xl) 0;
	text-align: center;
}

.royal-pagination .page-numbers {
	display: inline-block;
	padding: 10px 16px;
	margin: 0 4px;
	background: #fff;
	color: var(--royal-navy);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	font-weight: 600;
	transition: background var(--transition), color var(--transition);
}

.royal-pagination .page-numbers:hover,
.royal-pagination .page-numbers:focus {
	background: var(--royal-gold);
	color: #fff;
}

.royal-pagination .page-numbers.current {
	background: var(--royal-navy);
	color: var(--royal-gold);
}

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


.royal-single-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: var(--space-xl);
}

.royal-single-article {
	background: var(--color-bg-elevated);
	padding: clamp(20px, 3vw, 42px);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.royal-breadcrumb {
	font-size: 0.9rem;
	color: var(--color-text-mute);
	margin-bottom: var(--space-md);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.royal-breadcrumb a {
	color: var(--royal-gold-deep);
}

.royal-single-header {
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-md);
	border-bottom: 2px solid var(--royal-gold);
}

.royal-single-title {
	font-size: clamp(1.7rem, 2.3vw, 2.35rem);
	color: var(--royal-navy);
	margin-bottom: var(--space-sm);
	line-height: 1.3;
}

.royal-single-byline {
	display: flex;
	gap: var(--space-md);
	color: var(--color-text-mute);
	font-size: 0.9rem;
	flex-wrap: wrap;
}

.royal-single-featured-img {
	margin: var(--space-lg) 0;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.royal-single-featured-img img {
	width: 100%;
	height: auto;
}

.royal-single-content {
	font-size: clamp(1.05rem, 1.15vw, 1.18rem);
	line-height: 1.95;
	color: var(--color-text);
}

.royal-single-content > * + * {
	margin-top: var(--space-md);
}

.royal-single-content p {
	margin-bottom: var(--space-md);
	text-align: justify;
}

.royal-single-content h2,
.royal-single-content h3,
.royal-single-content h4 {
	margin: var(--space-xl) 0 var(--space-md);
	color: var(--royal-navy);
	scroll-margin-top: 80px;
}

.royal-single-content h2 {
	font-size: clamp(1.4rem, 1.8vw, 1.7rem);
	border-right: 4px solid var(--royal-gold);
	padding-right: var(--space-md);
	background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
	padding-top: var(--space-sm);
	padding-bottom: var(--space-sm);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.royal-single-content h3 {
	font-size: clamp(1.2rem, 1.5vw, 1.4rem);
	color: var(--royal-gold-deep);
	border-right: 3px solid var(--royal-gold);
	padding-right: var(--space-sm);
}

.royal-single-content h4 {
	font-size: 1.15rem;
	color: var(--royal-navy);
}

.royal-single-content blockquote {
	border-right: 4px solid var(--royal-gold);
	padding: var(--space-md) var(--space-lg);
	background: linear-gradient(135deg, var(--royal-paper-cool) 0%, var(--royal-paper-soft) 100%);
	margin: var(--space-lg) 0;
	font-style: italic;
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	box-shadow: var(--shadow-sm);
	position: relative;
}

.royal-single-content blockquote::before {
	content: '"';
	position: absolute;
	top: -10px;
	right: 12px;
	font-size: 3rem;
	color: var(--royal-gold);
	opacity: 0.4;
	font-family: Georgia, serif;
	line-height: 1;
}


.royal-single-content ul,
.royal-single-content ol {
	margin: var(--space-md) 0;
	padding-right: var(--space-xl);
	list-style: none;
}

.royal-single-content ul li,
.royal-single-content ol li {
	margin-bottom: 12px;
	padding-right: 28px;
	position: relative;
	line-height: 1.85;
}

.royal-single-content ul li::before {
	content: '';
	position: absolute;
	right: 0;
	top: 14px;
	width: 12px;
	height: 12px;
	background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-dark) 100%);
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(212, 175, 55, 0.35);
}

.royal-single-content ol {
	counter-reset: royal-counter;
}

.royal-single-content ol li {
	counter-increment: royal-counter;
}

.royal-single-content ol li::before {
	content: counter(royal-counter);
	position: absolute;
	right: 0;
	top: 4px;
	width: 24px;
	height: 24px;
	background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-dark) 100%);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 800;
	box-shadow: 0 2px 4px rgba(212, 175, 55, 0.35);
}

.royal-single-content ul ul li::before,
.royal-single-content ul ol li::before {
	background: var(--royal-gold-soft);
	width: 8px;
	height: 8px;
	top: 16px;
}


.royal-single-content a {
	color: var(--royal-gold-deep);
	text-decoration: none;
	position: relative;
	font-weight: 600;
	padding: 0 2px;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.royal-single-content a::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--royal-gold) 0%, var(--royal-gold-soft) 50%, var(--royal-gold) 100%);
	box-shadow: 0 0 8px rgba(212, 175, 55, 0.7), 0 0 16px rgba(212, 175, 55, 0.4);
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.royal-single-content a:hover,
.royal-single-content a:focus-visible {
	color: var(--royal-gold);
	text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.royal-single-content a:hover::after,
.royal-single-content a:focus-visible::after {
	width: 100%;
}

.royal-single-content img {
	border-radius: var(--radius-sm);
	margin: var(--space-md) auto;
	box-shadow: var(--shadow-md);
}

.royal-single-content pre,
.royal-single-content code {
	font-family: 'Courier New', monospace;
	background: var(--royal-paper-cool);
	border-radius: var(--radius-sm);
	direction: ltr;
	text-align: left;
}

.royal-single-content code {
	padding: 2px 6px;
	font-size: 0.9em;
	color: var(--royal-gold-deep);
	border: 1px solid rgba(212, 175, 55, 0.2);
}

.royal-single-content pre {
	padding: var(--space-md);
	overflow-x: auto;
	margin: var(--space-md) 0;
	border: 1px solid rgba(212, 175, 55, 0.2);
	box-shadow: var(--shadow-sm);
}

.royal-single-content pre code {
	background: transparent;
	padding: 0;
	border: none;
	color: inherit;
}

.royal-single-content table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--space-md) 0;
	box-shadow: var(--shadow-sm);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.royal-single-content table th {
	background: var(--royal-navy);
	color: var(--royal-cream);
	padding: 10px 12px;
	text-align: right;
}

.royal-single-content table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--royal-divider);
}

.royal-single-content table tr:nth-child(even) td {
	background: var(--royal-paper-soft);
}


.royal-video-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	margin: var(--space-lg) auto;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	background: #000;
}

.royal-video-wrapper iframe,
.royal-video-wrapper embed,
.royal-video-wrapper object,
.royal-video-wrapper video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}


@supports not (aspect-ratio: 16 / 9) {
	.royal-video-wrapper {
		padding-bottom: 56.25%;
		height: 0;
	}
}


.royal-single-content iframe:not(.royal-video-wrapper iframe) {
	max-width: 100%;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
}

.royal-single-meta {
	margin: var(--space-lg) 0;
	padding: var(--space-md);
	background: var(--royal-paper-cool);
	border-radius: var(--radius-sm);
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	font-size: 0.95rem;
}

.royal-single-categories,
.royal-single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: center;
}

.royal-single-categories span,
.royal-single-tags span {
	font-weight: 700;
	color: var(--royal-navy);
}

.royal-single-author-box {
	display: flex;
	gap: var(--space-md);
	padding: var(--space-md);
	background: linear-gradient(135deg, #fff 0%, var(--royal-paper-soft) 100%);
	border-radius: var(--radius-md);
	border: 1px solid var(--royal-gold);
	margin: var(--space-lg) 0;
	align-items: flex-start;
}

.royal-single-author-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid var(--royal-gold);
	flex-shrink: 0;
}

.royal-single-author-label {
	font-size: 0.85rem;
	color: var(--color-text-mute);
}

.royal-single-author-name {
	font-weight: 800;
	color: var(--royal-navy);
	font-size: 1.1rem;
}

.royal-single-author-desc {
	margin-top: var(--space-xs);
	color: var(--color-text-soft);
	font-size: 0.9rem;
}


.royal-related-posts-container {
	margin-top: var(--space-xl);
	padding: clamp(20px, 3vw, 34px) 0 0;
	border-top: 2px solid var(--royal-gold);
}

.royal-slider-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-md);
	gap: var(--space-md);
}

.royal-related-main-title {
	font-size: clamp(1.2rem, 1.6vw, 1.4rem);
	color: var(--royal-navy);
	margin: 0;
}

.royal-slider-controls {
	display: flex;
	gap: var(--space-sm);
}

.royal-slider-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-dark) 100%);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.royal-slider-btn:hover:not([aria-disabled="true"]):not(:disabled) {
	transform: translateY(-2px) scale(1.05);
	box-shadow: var(--shadow-md);
}

.royal-slider-btn[aria-disabled="true"],
.royal-slider-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.royal-slider-track {
	display: flex;
	gap: var(--space-md);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: var(--royal-gold) var(--royal-divider);
	padding-bottom: var(--space-sm);
	-webkit-overflow-scrolling: touch;
}

.royal-slider-track::-webkit-scrollbar {
	height: 8px;
}

.royal-slider-track::-webkit-scrollbar-track {
	background: var(--royal-divider);
	border-radius: 4px;
}

.royal-slider-track::-webkit-scrollbar-thumb {
	background: linear-gradient(90deg, var(--royal-gold) 0%, var(--royal-gold-dark) 100%);
	border-radius: 4px;
}

.royal-slider-track:focus {
	outline: 2px solid var(--royal-gold);
	outline-offset: 4px;
}

.royal-related-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
	border-top: 3px solid var(--royal-gold);
}

.royal-related-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.royal-related-link {
	color: var(--color-text);
	display: block;
	height: 100%;
}

.royal-related-thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--royal-paper-cool);
}

.royal-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.royal-related-card:hover .royal-related-thumb img {
	transform: scale(1.06);
}

.royal-related-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: var(--royal-gold);
	background: linear-gradient(135deg, var(--royal-paper-soft) 0%, var(--royal-paper-cool) 100%);
}

.royal-related-title {
	padding: var(--space-sm) var(--space-md) var(--space-md);
	font-size: 0.95rem;
	color: var(--royal-navy);
	line-height: 1.4;
}


.royal-share-box {
	background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
	border: 2px solid var(--royal-gold);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	margin: var(--space-xl) 0;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 51, 102, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
}

.royal-share-box::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.20) 0%, transparent 70%);
	pointer-events: none;
}

.royal-share-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--royal-gold-soft);
	margin-bottom: var(--space-md);
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	position: relative;
	z-index: 1;
}

.royal-share-icon {
	font-size: 1.3rem;
}

.royal-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.royal-share-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	color: var(--royal-gold-soft);
	border: 1.5px solid rgba(212, 175, 55, 0.35);
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
}

.royal-share-btn:hover,
.royal-share-btn:focus-visible {
	background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-dark) 100%);
	color: #003366;
	border-color: var(--royal-gold-soft);
	transform: translateY(-2px) scale(1.08);
	box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.royal-share-btn-icon {
	display: inline-block;
	line-height: 1;
}


.royal-share-twitter:hover    { background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%); color: #fff; border-color: #1da1f2; }
.royal-share-facebook:hover   { background: linear-gradient(135deg, #1877f2 0%, #0d5dd1 100%); color: #fff; border-color: #1877f2; }
.royal-share-whatsapp:hover   { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); color: #fff; border-color: #25d366; }
.royal-share-telegram:hover   { background: linear-gradient(135deg, #229ed9 0%, #1a7cb0 100%); color: #fff; border-color: #229ed9; }
.royal-share-linkedin:hover   { background: linear-gradient(135deg, #0a66c2 0%, #084d94 100%); color: #fff; border-color: #0a66c2; }
.royal-share-email:hover      { background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%); color: #fff; border-color: #ea4335; }
.royal-share-copy:hover       { background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-dark) 100%); color: #003366; }

.royal-share-feedback {
	margin-top: var(--space-sm);
	font-size: 0.9rem;
	color: var(--royal-gold-soft);
	opacity: 0;
	transition: opacity var(--transition);
	min-height: 1.2em;
	position: relative;
	z-index: 1;
}

.royal-share-feedback.is-visible {
	opacity: 1;
}


.royal-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	width: 100%;
	min-width: 0;
}

.widget {
	background: var(--color-bg-elevated);
	padding: 20px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	border-top: 4px solid var(--royal-gold);
	color: var(--color-text);
	width: 100%;
	box-sizing: border-box;
}

.widgettitle {
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--royal-navy);
	margin-bottom: var(--space-sm);
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--royal-divider);
}

.widget ul {
	list-style: none;
}

.widget ul li {
	padding: 9px 0;
	border-bottom: 1px dashed var(--royal-divider);
	font-size: 1.05rem;
	line-height: 1.7;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: var(--color-text);
	font-weight: 700;
	transition: color var(--transition), text-shadow var(--transition);
}

.widget ul li a:hover {
	color: var(--royal-gold);
	text-shadow: 0 0 10px rgba(212, 175, 55, .28);
}

.widget table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.widget caption {
	font-weight: 900;
	color: var(--royal-navy);
	margin-bottom: var(--space-sm);
}

.widget th,
.widget td {
	text-align: center;
	padding: 8px 5px;
	border: 1px solid var(--royal-divider);
}

.widget #wp-calendar {
	width: 100%;
}


.royal-footer {
	width: min(96%, 1520px);
	max-width: 1520px;
	margin: var(--space-xl) auto var(--space-md);
	background: linear-gradient(180deg, var(--royal-navy) 0%, #000d1f 100%);
	color: var(--royal-cream);
	padding: var(--space-xl) var(--space-md);
	border: 2px solid var(--royal-gold);
	border-top-width: 5px;
	border-radius: 22px 22px 0 0;
	box-shadow: 0 -12px 34px rgba(0, 28, 64, .14);
}

.royal-footer-content {
	max-width: 1400px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.royal-footer-rights {
	font-weight: 700;
	color: var(--royal-gold);
}

.royal-footer-credits {
	color: var(--royal-cream);
	font-size: 0.95rem;
	opacity: 0.85;
}

.royal-footer-nav {
	margin-top: var(--space-md);
}

.royal-footer-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	justify-content: center;
}

.royal-footer-menu a {
	color: var(--royal-cream);
}

.royal-footer-menu a:hover {
	color: var(--royal-gold);
}


.royal-comments-area {
	margin-top: var(--space-xl);
	padding-top: var(--space-lg);
	border-top: 2px solid var(--royal-gold);
}

.royal-comments-area .comment-list {
	list-style: none;
}

.royal-comments-area .comment-body {
	background: var(--royal-paper-soft);
	padding: var(--space-md);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-md);
}

.royal-comments-area .comment-author {
	font-weight: 700;
	color: var(--royal-navy);
}

.royal-comments-area textarea,
.royal-comments-area input[type="text"],
.royal-comments-area input[type="email"],
.royal-comments-area input[type="url"] {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--royal-divider);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 1rem;
	margin-bottom: var(--space-sm);
}

.royal-comments-area textarea:focus,
.royal-comments-area input:focus {
	border-color: var(--royal-gold);
}

.royal-comments-area .submit {
	background: var(--royal-gold);
	color: #fff;
	padding: 10px 24px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	cursor: pointer;
}

.royal-comments-area .submit:hover {
	background: var(--royal-gold-deep);
}


.royal-commander-panel {
	background: #fff;
	padding: var(--space-lg);
	border: 2px solid var(--royal-gold);
	border-radius: var(--radius-md);
	margin: var(--space-md) 0;
}

.royal-commander-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--royal-navy);
	margin-bottom: var(--space-md);
}

.royal-commander-panel input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--royal-divider);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-sm);
	font-family: inherit;
}

.royal-commander-panel button {
	background: var(--royal-gold);
	color: #fff;
	padding: 10px 24px;
	border-radius: var(--radius-sm);
	font-weight: 700;
}

.royal-commander-panel .royal-success {
	color: #1b5e20;
	background: #e8f5e9;
	padding: var(--space-sm);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-sm);
}

.royal-commander-panel .royal-error {
	color: #b71c1c;
	background: #ffebee;
	padding: var(--space-sm);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-sm);
}


.royal-night-mode {
	--color-text:        #e8e8ea;
	--color-text-soft:   #c8c8ce;
	--color-text-mute:   #a5a5ad;
	--color-bg:          #101014;
	--color-bg-elevated: #17171d;
	--royal-paper-soft:  #1b1b22;
	--royal-paper-cool:  #1f1f28;
	--royal-divider:     #2f2f39;
	--color-link:        var(--royal-gold-soft);
	--color-link-hover:  var(--royal-gold);
	--royal-header-face: #17171d;
	--royal-header-face-soft: #101014;
}

.royal-night-mode h1,
.royal-night-mode h2,
.royal-night-mode h3,
.royal-night-mode h4,
.royal-night-mode h5,
.royal-night-mode h6,
.royal-night-mode .royal-site-title-link,
.royal-night-mode .royal-card-title,
.royal-night-mode .royal-single-title,
.royal-night-mode .widgettitle,
.royal-night-mode .royal-related-title,
.royal-night-mode .royal-single-author-name {
	color: var(--royal-gold-soft);
}

.royal-night-mode .royal-header-container {
	background:
		linear-gradient(180deg, var(--royal-header-face) 0%, var(--royal-header-face-soft) 100%) padding-box,
		linear-gradient(
			90deg,
			#5d3c06 0%,
			#9a6a13 7%,
			#f3c65a 15%,
			#d4af37 50%,
			#f3c65a 85%,
			#6c4608 100%
		) border-box;
}

.royal-night-mode .royal-top-bar {
	background: linear-gradient(90deg, #070b12 0%, #0f1b2b 100%);
}

.royal-night-mode .royal-site-description,
.royal-night-mode .royal-top-social {
	color: var(--color-text-soft);
}

.royal-night-mode .royal-article-card,
.royal-night-mode .royal-single-article,
.royal-night-mode .widget,
.royal-night-mode .royal-related-card,
.royal-night-mode .royal-header-panel,
.royal-night-mode .royal-commander-panel {
	background: var(--color-bg-elevated);
	color: var(--color-text);
}

.royal-night-mode .royal-single-content blockquote,
.royal-night-mode .royal-single-meta,
.royal-night-mode .royal-comments-area .comment-body,
.royal-night-mode .royal-single-content pre,
.royal-night-mode .royal-single-content code {
	background: #1f1f28;
	color: var(--color-text);
}

.royal-night-mode .royal-single-content code {
	color: var(--royal-gold-soft);
	border-color: rgba(212, 175, 55, 0.15);
}

.royal-night-mode .royal-single-content table th {
	background: var(--royal-gold-deep);
	color: var(--royal-cream);
}

.royal-night-mode .royal-single-content table tr:nth-child(even) td {
	background: #1f1f28;
}

.royal-night-mode .royal-single-content h2 {
	background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
}

.royal-night-mode .royal-single-content h3 {
	color: var(--royal-gold-soft);
}

.royal-night-mode .royal-related-thumb-placeholder {
	background: linear-gradient(135deg, #1f1f28 0%, #17171d 100%);
}

.royal-night-mode .royal-slider-track::-webkit-scrollbar-track {
	background: #2a2a32;
}


.royal-night-mode .royal-share-box {
	background: linear-gradient(135deg, #002952 0%, #001428 100%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.2) inset;
}

.royal-night-mode .royal-single-author-box {
	background: linear-gradient(135deg, #17171d 0%, #1f1f28 100%);
}

.royal-night-mode .royal-pagination .page-numbers {
	background: #1f1f28;
	color: var(--royal-gold-soft);
}


@media (max-width: 1024px) {
	.royal-main-layout,
	.royal-single-layout {
		grid-template-columns: 1fr;
	}

	.royal-related-card {
		flex: 0 0 240px;
	}
}

@media (max-width: 768px) {
	:root {
		--font-size-base: 15px;
	}

	.royal-header-card {
		width: 100%;
		border-radius: 0;
	}

	.royal-articles-grid {
		grid-template-columns: 1fr;
	}

	.royal-related-card {
		flex: 0 0 220px;
	}

	.royal-site-title-link {
		font-size: 1.5rem;
	}

	.royal-single-title {
		font-size: 1.5rem;
	}

	.royal-single-article {
		padding: var(--space-md);
	}

	.royal-top-bar {
		flex-direction: column;
		text-align: center;
		font-size: 0.75rem;
	}

	.royal-ticker-label {
		padding: 8px 12px;
		font-size: 0.85rem;
	}

	.royal-single-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.royal-share-buttons {
		justify-content: center;
	}

	.royal-share-btn {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}

	.royal-slider-header {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-sm);
	}

	.royal-slider-controls {
		align-self: flex-end;
	}

	.royal-single-content h2 {
		font-size: 1.35rem;
	}

	.royal-single-content h3 {
		font-size: 1.15rem;
	}
}

@media (max-width: 480px) {
	.royal-header-action {
		width: 38px;
		height: 38px;
		font-size: 1rem;
	}

	.royal-header-actions {
		gap: 6px;
	}

	.royal-brand-section {
		padding: var(--space-md) var(--space-sm);
	}

	.royal-custom-header-img {
		max-height: 80px;
	}
}


@media (max-width: 768px) {
	.royal-ticker-wrapper,
	.royal-footer {
		width: min(94%, 1520px);
	}

	.royal-ticker-wrapper {
		border-radius: 14px;
	}

	.royal-footer {
		border-radius: 18px 18px 0 0;
	}
}


@media print {
	.royal-header-container,
	.royal-ticker-wrapper,
	.royal-sidebar,
	.royal-footer,
	.royal-related-posts-container,
	.royal-comments-area,
	.royal-header-actions,
	.royal-pagination {
		display: none;
	}

	.royal-main-layout,
	.royal-single-layout {
		grid-template-columns: 1fr;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 12pt;
	}

	a {
		color: #000;
		text-decoration: underline;
	}

	.royal-single-article {
		box-shadow: none;
		padding: 0;
	}
}





.royal-article-card .royal-card-title{
	transition: color var(--transition), text-shadow var(--transition);
}
.royal-article-card:hover .royal-card-title,
.royal-article-card:focus-visible .royal-card-title,
.royal-article-card:focus-within .royal-card-title{
	color: var(--royal-gold-dark);
	text-shadow: 0 0 10px rgba(212, 175, 55, .18);
}
.royal-night-mode .royal-article-card:hover .royal-card-title,
.royal-night-mode .royal-article-card:focus-visible .royal-card-title,
.royal-night-mode .royal-article-card:focus-within .royal-card-title{
	color: var(--royal-gold-soft);
}


.royal-related-main-title{
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.royal-related-main-title::before{
	content: '✦';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	font-size: .9rem;
	line-height: 1;
	color: var(--royal-gold-dark);
	background: rgba(212, 175, 55, .12);
	border: 1px solid rgba(212, 175, 55, .35);
	flex: 0 0 auto;
}


.royal-sidebar .widget{
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 20px;
	border-radius: var(--radius-md);
	border-top: 4px solid var(--royal-gold);
	box-shadow: var(--shadow-sm);
	background: var(--color-bg-elevated);
	color: var(--color-text);
	font-family: var(--font-base);
	font-size: 1rem;
	line-height: 1.7;
	overflow: hidden;
}
.royal-sidebar .widget *{
	max-width: 100%;
	box-sizing: border-box;
}
.royal-sidebar .widgettitle,
.royal-sidebar .widget-title{
	font-family: var(--font-base);
	font-size: 1.2rem;
	font-weight: 900;
	line-height: 1.5;
	color: var(--royal-navy);
	margin: 0 0 12px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--royal-divider);
}
.royal-sidebar .widget p,
.royal-sidebar .widget li,
.royal-sidebar .widget label,
.royal-sidebar .widget input,
.royal-sidebar .widget select,
.royal-sidebar .widget textarea,
.royal-sidebar .widget button{
	font-family: var(--font-base);
}
.royal-sidebar .widget input,
.royal-sidebar .widget select,
.royal-sidebar .widget textarea{
	width: 100%;
	border: 1px solid var(--royal-divider);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-text);
	padding: 9px 10px;
}
.royal-sidebar .widget button,
.royal-sidebar .widget input[type=submit],
.royal-sidebar .widget .button{
	border-radius: var(--radius-sm);
}


@media (max-width: 900px){
	.royal-main-layout,
	.royal-single-layout{
		display: grid;
		grid-template-columns: 1fr;
	}
	.royal-main{
		order: 1;
	}
	.royal-sidebar{
		order: 2;
	}
	body.single .royal-sidebar,
	body.page .royal-sidebar{
		display: none;
	}
}


.royal-night-mode .royal-sidebar .widget,
.royal-night-mode .royal-sidebar .widget div,
.royal-night-mode .royal-sidebar .widget section,
.royal-night-mode .royal-sidebar .widget article{
	background-color: var(--color-bg-elevated);
	color: var(--color-text);
}
.royal-night-mode .royal-sidebar .widget [style*="background:#fff"],
.royal-night-mode .royal-sidebar .widget [style*="background: #fff"],
.royal-night-mode .royal-sidebar .widget [style*="background-color:#fff"],
.royal-night-mode .royal-sidebar .widget [style*="background-color: #fff"],
.royal-night-mode .royal-sidebar .widget [style*="background:white"],
.royal-night-mode .royal-sidebar .widget [style*="background: white"],
.royal-night-mode .royal-sidebar .widget [style*="background-color:white"],
.royal-night-mode .royal-sidebar .widget [style*="background-color: white"],
.royal-night-mode .royal-sidebar .widget [style*="background:#ffffff"],
.royal-night-mode .royal-sidebar .widget [style*="background: #ffffff"],
.royal-night-mode .royal-sidebar .widget [style*="background-color:#ffffff"],
.royal-night-mode .royal-sidebar .widget [style*="background-color: #ffffff"]{
	background: var(--color-bg-elevated) !important;
	background-color: var(--color-bg-elevated) !important;
	color: var(--color-text) !important;
}
.royal-night-mode .royal-sidebar .widget input,
.royal-night-mode .royal-sidebar .widget select,
.royal-night-mode .royal-sidebar .widget textarea{
	background: #101014;
	color: var(--color-text);
	border-color: var(--royal-divider);
}


.royal-night-mode .royal-single-content [style*="background:#fff"],
.royal-night-mode .royal-single-content [style*="background: #fff"],
.royal-night-mode .royal-single-content [style*="background-color:#fff"],
.royal-night-mode .royal-single-content [style*="background-color: #fff"],
.royal-night-mode .royal-single-content [style*="background:white"],
.royal-night-mode .royal-single-content [style*="background: white"],
.royal-night-mode .royal-single-content [style*="background-color:white"],
.royal-night-mode .royal-single-content [style*="background-color: white"],
.royal-night-mode .royal-single-content [style*="background:#ffffff"],
.royal-night-mode .royal-single-content [style*="background: #ffffff"],
.royal-night-mode .royal-single-content [style*="background-color:#ffffff"],
.royal-night-mode .royal-single-content [style*="background-color: #ffffff"]{
	background: var(--color-bg-elevated) !important;
	background-color: var(--color-bg-elevated) !important;
	color: var(--color-text) !important;
}
.royal-night-mode .royal-single-content [style*="color:#000"],
.royal-night-mode .royal-single-content [style*="color: #000"],
.royal-night-mode .royal-single-content [style*="color:black"],
.royal-night-mode .royal-single-content [style*="color: black"]{
	color: var(--color-text) !important;
}


.royal-home-extra{
	width:100%;
	margin:34px 0 0;
	direction:rtl;
}

.royal-home-extra-section{
	background:rgba(255,255,255,.92);
	border:1px solid rgba(212,175,55,.24);
	border-radius:22px;
	box-shadow:0 12px 34px rgba(2,32,65,.08);
	padding:22px;
	margin:0 0 24px;
	overflow:hidden;
}

.royal-home-extra-head{
	display:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap:18px;
	border-bottom:1px solid rgba(212,175,55,.24);
	padding-bottom:14px;
	margin-bottom:16px;
}

.royal-home-extra-head h2{
	margin:0;
	font-size:clamp(1.2rem,2vw,1.55rem);
	font-weight:800;
	color:#072646;
	line-height:1.5;
}

.royal-home-extra-head p{
	margin:0;
	font-size:.95rem;
	font-weight:700;
	color:#8a6618;
	line-height:1.8;
}

.royal-home-extra-grid{
	display:grid;
	gap:14px;
}

.royal-home-extra-grid-4{
	grid-template-columns:repeat(4,minmax(0,1fr));
}

.royal-home-extra-grid-3{
	grid-template-columns:repeat(3,minmax(0,1fr));
}

.royal-home-extra-card{
	display:flex;
	flex-direction:column;
	gap:8px;
	min-height:104px;
	padding:15px 16px;
	border-radius:18px;
	border:1px solid rgba(212,175,55,.26);
	background:linear-gradient(145deg,rgba(255,249,232,.88),rgba(255,255,255,.96));
	text-decoration:none;
	color:#072646;
	box-shadow:0 8px 20px rgba(2,32,65,.06);
	transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.royal-home-extra-card:hover,
.royal-home-extra-card:focus-visible{
	transform:translateY(-3px);
	border-color:rgba(212,175,55,.7);
	box-shadow:0 14px 30px rgba(2,32,65,.12);
	outline:none;
}

.royal-home-extra-card h3,
.royal-home-extra-card strong{
	font-size:1.03rem;
	font-weight:800;
	line-height:1.7;
	color:#062845;
	margin:0;
}

.royal-home-extra-meta{
	align-self:flex-start;
	font-size:.78rem;
	font-weight:800;
	color:#9d7318;
	background:rgba(212,175,55,.12);
	border:1px solid rgba(212,175,55,.25);
	border-radius:999px;
	padding:3px 9px;
}

.royal-home-extra-excerpt{
	font-size:.9rem;
	font-weight:700;
	line-height:1.8;
	color:#4d5d70;
}

.royal-site-tools .royal-home-extra-card{
	background:linear-gradient(145deg,rgba(238,246,255,.86),rgba(255,255,255,.96));
	border-color:rgba(21,101,192,.18);
}

.royal-site-tools .royal-home-extra-meta{
	color:#1565c0;
	background:rgba(21,101,192,.09);
	border-color:rgba(21,101,192,.16);
}

.royal-mixed-picks .royal-home-extra-card{
	background:linear-gradient(145deg,rgba(247,239,255,.72),rgba(255,255,255,.96));
	border-color:rgba(106,27,154,.14);
}

.royal-mixed-picks .royal-home-extra-meta{
	color:#6a1b9a;
	background:rgba(106,27,154,.08);
	border-color:rgba(106,27,154,.15);
}

.royal-night-mode .royal-home-extra-section{
	background:rgba(6,18,35,.94);
	border-color:rgba(212,175,55,.22);
	box-shadow:0 12px 34px rgba(0,0,0,.26);
}

.royal-night-mode .royal-home-extra-head{
	border-bottom-color:rgba(212,175,55,.22);
}

.royal-night-mode .royal-home-extra-head h2,
.royal-night-mode .royal-home-extra-card h3,
.royal-night-mode .royal-home-extra-card strong{
	color:#f6f0dc;
}

.royal-night-mode .royal-home-extra-head p,
.royal-night-mode .royal-home-extra-excerpt{
	color:#d9c895;
}

.royal-night-mode .royal-home-extra-card,
.royal-night-mode .royal-site-tools .royal-home-extra-card,
.royal-night-mode .royal-mixed-picks .royal-home-extra-card{
	background:linear-gradient(145deg,rgba(10,30,54,.96),rgba(8,20,36,.96));
	border-color:rgba(212,175,55,.22);
	box-shadow:0 8px 20px rgba(0,0,0,.22);
}

@media (max-width: 1024px){
	.royal-home-extra-grid-4{
		grid-template-columns:repeat(2,minmax(0,1fr));
	}
}

@media (max-width: 760px){
	.royal-home-extra-section{
		padding:16px;
		border-radius:18px;
	}
	.royal-home-extra-head{
		align-items:flex-start;
		flex-direction:column;
		gap:6px;
	}
	.royal-home-extra-grid-4,
	.royal-home-extra-grid-3{
		grid-template-columns:1fr;
	}
	.royal-home-extra-card{
		min-height:auto;
	}
}


body.royal-tools-page .royal-main-layout,
body.royal-tools-page .royal-single-layout{
	grid-template-columns: minmax(0, 1fr);
	width: min(98%, 1600px);
	max-width: 1600px;
}

body.royal-tools-page .royal-sidebar,
body.royal-tools-page #secondary,
body.royal-tools-page .sidebar,
body.royal-tools-page .widget-area{
	display: none;
}

body.royal-tools-page .royal-main,
body.royal-tools-page #primary,
body.royal-tools-page .content-area,
body.royal-tools-page .site-main{
	width: 100%;
	max-width: 100%;
	float: none;
}



html,
body{
	max-width:100%;
	overflow-x:hidden;
}

*,
*::before,
*::after{
	box-sizing:border-box;
}

img,
svg,
video,
canvas,
iframe,
table{
	max-width:100%;
}

.royal-main-layout,
.royal-single-layout{
	width:96%;
	max-width:1520px;
}

.single .royal-main-layout,
.page .royal-main-layout{
	width:97%;
	max-width:1600px;
}

@supports (width: min(96%, 1520px)){
	.royal-main-layout,
	.royal-single-layout{
		width:min(96%, 1520px);
	}
	.single .royal-main-layout,
	.page .royal-main-layout{
		width:min(97%, 1600px);
	}
}

@supports not (display: grid){
	.royal-main-layout,
	.royal-single-layout,
	.royal-articles-grid,
	.royal-home-extra-grid-4,
	.royal-home-extra-grid-3{
		display:block;
	}
	.royal-sidebar{
		margin-top:28px;
	}
	.royal-article-card,
	.royal-home-extra-card{
		margin-bottom:18px;
	}
}

@media screen and (max-width: 900px), screen and (max-device-width: 900px){
	.royal-main-layout,
	.royal-single-layout,
	.single .royal-main-layout,
	.page .royal-main-layout,
	body.royal-tools-page .royal-main-layout,
	body.royal-tools-page .royal-single-layout{
		display:block;
		width:100%;
		max-width:100%;
		margin-left:auto;
		margin-right:auto;
		padding-left:12px;
		padding-right:12px;
	}

	.royal-main,
	.single .royal-main,
	.page .royal-main,
	.royal-single-article,
	.page .royal-single-article{
		width:100%;
		max-width:100%;
		min-width:0;
		float:none;
	}

	body.single .royal-sidebar,
	body.page .royal-sidebar,
	body.royal-tools-page .royal-sidebar,
	body.royal-tools-page #secondary,
	body.royal-tools-page .sidebar,
	body.royal-tools-page .widget-area{
		display:none;
	}

	.royal-articles-grid,
	.royal-home-extra-grid-4,
	.royal-home-extra-grid-3{
		display:grid;
		grid-template-columns:minmax(0,1fr);
		gap:16px;
	}

	.royal-article-card,
	.royal-home-extra-card,
	.royal-related-card,
	.royal-single-author-box,
	.royal-share-box,
	.royal-comments-area{
		max-width:100%;
		min-width:0;
	}

	.royal-header-container,
	.royal-brand-section,
	.royal-top-bar,
	.royal-ticker-wrapper,
	.royal-ticker-content,
	.royal-header-panel{
		max-width:100%;
		overflow-x:hidden;
	}

	.royal-single-content,
	.royal-single-content p,
	.royal-single-content li,
	.royal-card-title,
	.royal-card-excerpt,
	.royal-home-extra-title,
	.royal-home-extra-excerpt{
		overflow-wrap:anywhere;
		word-break:normal;
	}

	.royal-single-content table{
		display:block;
		width:100%;
		overflow-x:auto;
		-webkit-overflow-scrolling:touch;
	}
}

@media screen and (max-width: 480px), screen and (max-device-width: 480px){
	.royal-main-layout,
	.royal-single-layout,
	.single .royal-main-layout,
	.page .royal-main-layout{
		padding-left:10px;
		padding-right:10px;
	}

	.royal-single-article,
	.royal-home-extra-section{
		border-radius:16px;
	}

	.royal-single-title{
		font-size:clamp(1.35rem, 7vw, 1.7rem);
	}
}



.royal-share-card-open {
	overflow: hidden;
}

.royal-share-card-modal[hidden] {
	display: none !important;
}

.royal-share-card-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
	overflow-y: auto;
}


@media (min-width: 521px) and (max-height: 900px) {
	.royal-share-card-modal {
		align-items: flex-start;
		padding: 14px;
	}
	.royal-share-card-panel {
		max-height: calc(100vh - 28px);
	}
	.royal-share-card-preview {
		transform: scale(.74);
		transform-origin: top center;
		height: 590px;
		padding-top: 14px;
	}
}

@media (min-width: 521px) and (max-height: 760px) {
	.royal-share-card-preview {
		transform: scale(.62);
		height: 500px;
	}
}

@media (min-width: 521px) and (max-height: 640px) {
	.royal-share-card-modal {
		padding: 8px;
	}
	.royal-share-card-panel {
		padding: 14px 12px 12px;
	}
	.royal-share-card-preview {
		transform: scale(.52);
		height: 420px;
		padding-top: 10px;
	}
	.royal-share-card-actions {
		gap: 8px;
	}
	.royal-share-card-action {
		padding: 9px 10px;
		font-size: 13px;
	}
}

.royal-share-card-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 16, 38, 0.72);
	backdrop-filter: blur(9px);
}

.royal-share-card-panel {
	position: relative;
	z-index: 2;
	width: min(96vw, 460px);
	max-height: 96vh;
	overflow: auto;
	padding: 18px 14px 16px;
	border-radius: 24px;
	border: 1px solid rgba(212, 175, 55, 0.42);
	background: linear-gradient(160deg, rgba(2, 20, 48, 0.96), rgba(4, 37, 76, 0.96));
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
	animation: royalSharePanelIn .22s ease-out both;
}

@keyframes royalSharePanelIn {
	from { opacity: 0; transform: translateY(10px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.royal-share-card-close {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(212, 175, 55, 0.42);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 4;
}

.royal-share-card-preview {
	display: flex;
	justify-content: center;
	padding-top: 28px;
}

.royal-story-card,
.royal-story-card-export {
	width: 430px;
	height: 780px;
	border-radius: 24px;
	border: 2px solid #d4af37;
	background: linear-gradient(135deg, #021430 0%, #052659 100%);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
	direction: rtl;
	unicode-bidi: isolate;
	text-rendering: geometricPrecision;
	box-shadow: 0 20px 45px rgba(0,0,0,.34);
}

.royal-story-hero {
	position: relative;
	width: 100%;
	height: 305px;
	overflow: hidden;
	background: linear-gradient(135deg, #071d3f, #123b68);
	flex: 0 0 auto;
}

.royal-story-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 0;
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

.royal-story-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to bottom, rgba(2,20,48,0.06) 0%, rgba(2,20,48,0.26) 52%, #021430 100%);
}

.royal-story-brand {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 2;
	max-width: 320px;
	padding: 7px 18px 8px;
	border-radius: 999px;
	border: 1.5px solid #d4af37;
	background: rgba(2, 20, 48, 0.76);
	color: #d4af37;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	direction: rtl;
	unicode-bidi: plaintext;
	letter-spacing: 0 !important;
	word-spacing: 0 !important;
}

.royal-story-content {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 22px 32px 24px;
	box-sizing: border-box;
}

.royal-story-title {
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.52;
	text-align: right;
	margin: 0;
	max-height: 184px;
	overflow: hidden;
	direction: rtl;
	unicode-bidi: plaintext;
	letter-spacing: 0 !important;
	word-spacing: 0 !important;
}

.royal-story-excerpt {
	margin-top: 12px;
	color: rgba(255,255,255,.73);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.75;
	text-align: right;
	max-height: 92px;
	overflow: hidden;
	direction: rtl;
	unicode-bidi: plaintext;
	letter-spacing: 0 !important;
	word-spacing: 0 !important;
}

.royal-story-link-row {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 17px;
	border: 1px solid rgba(212,175,55,.28);
	background: rgba(255,255,255,.035);
}

.royal-story-link {
	color: #d4af37;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	direction: ltr;
	letter-spacing: .2px;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

.royal-story-qr-wrap {
	width: 156px;
	height: 156px;
	padding: 12px;
	box-sizing: border-box;
	border-radius: 12px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.royal-story-qr-img {
	width: 132px;
	height: 132px;
	display: block !important;
	image-rendering: pixelated;
}

.royal-share-card-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.royal-share-card-action {
	border: 1px solid rgba(212, 175, 55, .45);
	border-radius: 12px;
	padding: 11px 12px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.royal-share-save-image,
.royal-share-image-native {
	background: linear-gradient(135deg, #d4af37, #b88a1a);
	color: #061b35;
}

.royal-share-card-message {
	min-height: 24px;
	margin-top: 10px;
	color: rgba(255,255,255,.84);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	opacity: 0;
	transition: opacity .18s ease;
}

.royal-share-card-message.is-visible { opacity: 1; }
.royal-share-card-message.is-error { color: #ffcccc; }
.royal-share-card-modal.is-rendering .royal-share-card-action { pointer-events: none; opacity: .62; }



@media (max-width: 520px) {
	.royal-share-card-modal { padding: 8px; align-items: flex-start; overflow: auto; }
	.royal-share-card-panel { width: 98vw; max-height: none; min-height: 100%; padding: 14px 8px 16px; overflow: visible; }
	.royal-share-card-preview { transform: scale(.82); transform-origin: top center; height: 640px; margin-bottom: 12px; }
	.royal-share-card-actions { grid-template-columns: 1fr; position: relative; z-index: 5; }
}
