/* Qisatok Core 0.5.23 — CSS consolidation only.
   Visual cascade from 0.5.21 is preserved exactly; only exact duplicate rules were removed. */


/* ===== Consolidated from qisatok-core.css (v0.5.21 order preserved) ===== */


:root {
	--q-bg: #f8f5f0;
	--q-surface: #ffffff;
	--q-text: #2d2926;
	--q-muted: #6e665e;
	--q-gold: #c9a86a;
	--q-gold-dark: #a77f3e;
	--q-terra: #b86a4b;
	--q-border: #e6ded2;
	--q-radius: 18px;
	--q-shadow: 0 18px 50px rgba(45, 41, 38, .10);
}

.qisatok-container,
.qisatok-reader-shell {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.qisatok-story,
.qisatok-archive {
	background: var(--q-bg);
	color: var(--q-text);
	min-height: 100vh;
}

.qisatok-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 22px;
	font-size: 14px;
	color: var(--q-muted);
}

.qisatok-breadcrumbs a {
	color: var(--q-gold-dark);
	text-decoration: none;
}

.qisatok-story-hero {
	position: relative;
	overflow: hidden;
	padding: 46px 0 64px;
	isolation: isolate;
}

.qisatok-story-hero__background {
	position: absolute;
	inset: -40px;
	z-index: -3;
	background-position: center;
	background-size: cover;
	filter: blur(30px);
	transform: scale(1.12);
	opacity: .43;
}

.qisatok-story-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(105deg, rgba(248,245,240,.99) 10%, rgba(248,245,240,.90) 55%, rgba(201,168,106,.28)),
		linear-gradient(to bottom, transparent 70%, var(--q-bg));
}

.qisatok-story-hero__content {
	display: grid;
	grid-template-columns: minmax(220px, 300px) 1fr;
	gap: 54px;
	align-items: center;
}

.qisatok-story-cover {
	display: grid;
	place-items: center;
	aspect-ratio: 2 / 3;
	padding: 10px;
	border-radius: var(--q-radius);
	background:
		linear-gradient(145deg, rgba(255,255,255,.92), rgba(239,231,218,.88));
	box-shadow: var(--q-shadow);
}

.qisatok-story-cover__image,
.qisatok-story-cover__placeholder {
	width: 100%;
	height: 100%;
	aspect-ratio: 2 / 3;
	object-fit: contain;
	object-position: center;
	border-radius: calc(var(--q-radius) - 6px);
}

.qisatok-story-cover__placeholder,
.qisatok-story-card__placeholder {
	display: grid;
	place-items: center;
	background: #efe7da;
	font-weight: 700;
}

.qisatok-story-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.qisatok-badge {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--q-gold);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.qisatok-badge--light {
	background: rgba(255,255,255,.72);
	color: var(--q-text);
	border: 1px solid rgba(201,168,106,.45);
}

.qisatok-status--completed { background: #5f8a60 !important; color: #fff !important; }
.qisatok-status--ongoing { background: var(--q-gold) !important; color: #fff !important; }
.qisatok-status--hiatus { background: #8c7d70 !important; color: #fff !important; }

.qisatok-story-title,
.qisatok-section-heading h2,
.qisatok-reader-title,
.qisatok-archive-hero h1,
.qisatok-author-card h2,
.qisatok-comments-section h2 {
	font-family: Cairo, sans-serif;
	color: var(--q-text);
}

.qisatok-story-title {
	font-size: clamp(38px, 5vw, 58px);
	line-height: 1.2;
	margin: 0 0 10px;
}

.qisatok-story-tagline {
	margin: 0 0 14px;
	font-size: 19px;
	line-height: 1.75;
	color: var(--q-terra);
	font-weight: 700;
	max-width: 760px;
}

.qisatok-story-author {
	display: flex;
	gap: 8px;
	align-items: center;
	color: var(--q-muted);
	margin-bottom: 16px;
}

.qisatok-story-author a {
	color: var(--q-gold-dark);
	font-weight: 700;
	text-decoration: none;
}

.qisatok-story-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	color: var(--q-muted);
	margin-bottom: 20px;
}

.qisatok-story-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.qisatok-story-intro-wrap {
	position: relative;
	max-width: 800px;
	margin-bottom: 26px;
}

.qisatok-story-intro {
	font-family: Tajawal, sans-serif;
	font-size: 18px;
	line-height: 1.95;
	margin: 0;
}

.qisatok-story-intro-wrap[data-collapsed="true"] .qisatok-story-intro {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.qisatok-text-button {
	padding: 8px 0;
	background: transparent;
	border: 0;
	color: var(--q-gold-dark);
	font-weight: 700;
	cursor: pointer;
}

.qisatok-story-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.qisatok-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 14px;
	border: 1px solid transparent;
	font-family: Tajawal, sans-serif;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.qisatok-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(45,41,38,.12);
}

.qisatok-button--primary {
	background: var(--q-gold);
	color: #fff;
}

.qisatok-button--secondary {
	background: rgba(255,255,255,.78);
	color: var(--q-text);
	border-color: var(--q-border);
}

.qisatok-button--secondary.is-active {
	background: #efe4cf;
	border-color: var(--q-gold);
	color: var(--q-gold-dark);
}

.qisatok-button--disabled {
	background: #e9e2d8;
	color: #8a8178;
	cursor: not-allowed;
}

.qisatok-button--round {
	width: 48px;
	padding: 0;
	border-radius: 50%;
	background: var(--q-surface);
	color: var(--q-text);
	border-color: var(--q-border);
}

.qisatok-button.is-loading {
	opacity: .58;
	pointer-events: none;
}

.qisatok-rating-panel {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	color: var(--q-muted);
}

.qisatok-stars {
	display: flex;
	direction: ltr;
}

.qisatok-stars button {
	padding: 2px;
	border: 0;
	background: transparent;
	color: #c8bca9;
	font-size: 25px;
	cursor: pointer;
}

.qisatok-stars button:hover,
.qisatok-stars button.is-selected {
	color: var(--q-gold);
}

.qisatok-story-body {
	display: grid;
	gap: 34px;
	padding: 44px 0 80px;
}

.qisatok-panel,
.qisatok-author-card,
.qisatok-comments-section,
.qisatok-reader-comments {
	background: var(--q-surface);
	border: 1px solid var(--q-border);
	border-radius: var(--q-radius);
	padding: 28px;
	box-shadow: 0 10px 30px rgba(45,41,38,.06);
}

.qisatok-section-heading {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px;
	margin-bottom: 22px;
}

.qisatok-section-heading h2 {
	margin: 0 0 6px;
	font-size: 28px;
}

.qisatok-section-heading p {
	margin: 0;
	color: var(--q-muted);
}

.qisatok-chapter-controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.qisatok-chapter-search,
.qisatok-sort-chapters,
.qisatok-reader-toolbar select {
	min-height: 44px;
	border: 1px solid var(--q-border);
	border-radius: 12px;
	background: #fff;
	padding: 8px 12px;
	color: var(--q-text);
}

.qisatok-chapter-search { min-width: 220px; }
.qisatok-sort-chapters { cursor: pointer; font-weight: 700; }

.qisatok-chapter-list {
	display: grid;
	gap: 10px;
}

.qisatok-chapter-item {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--q-border);
	border-radius: 14px;
	text-decoration: none;
	color: var(--q-text);
	background: #fff;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.qisatok-chapter-item:hover {
	transform: translateY(-2px);
	border-color: rgba(201,168,106,.8);
	box-shadow: 0 8px 20px rgba(45,41,38,.07);
}

.qisatok-chapter-item__number {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #f1eadf;
	color: var(--q-gold-dark);
	font-weight: 800;
}

.qisatok-chapter-item__title { font-weight: 700; }
.qisatok-chapter-item__date { color: var(--q-muted); font-size: 14px; }

.qisatok-empty-state,
.qisatok-chapter-no-results {
	text-align: center;
	padding: 36px 16px;
	color: var(--q-muted);
	background: #fbf9f6;
	border-radius: 14px;
}

.qisatok-story-tags h2 {
	font-family: Cairo, sans-serif;
	font-size: 22px;
	margin: 0 0 14px;
}

.qisatok-story-tags > div {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.qisatok-story-tags a {
	padding: 8px 13px;
	background: #efe7da;
	border-radius: 999px;
	color: var(--q-text);
	text-decoration: none;
}

.qisatok-author-card {
	display: grid;
	grid-template-columns: 74px 1fr auto;
	gap: 20px;
	align-items: center;
}

.qisatok-author-card__avatar {
	width: 74px;
	height: 74px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--q-gold), var(--q-terra));
	color: #fff;
	font-size: 30px;
	font-weight: 800;
}

.qisatok-author-card__content > span {
	color: var(--q-muted);
	font-size: 14px;
}

.qisatok-author-card h2 {
	margin: 4px 0 8px;
	font-size: 24px;
}

.qisatok-author-card h2 a {
	color: var(--q-text);
	text-decoration: none;
}

.qisatok-author-card p {
	margin: 0 0 10px;
	color: var(--q-muted);
}

.qisatok-author-card__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Story cards and archives */
.qisatok-story-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.qisatok-story-card {
	min-width: 0;
	background: var(--q-surface);
	border: 1px solid var(--q-border);
	border-radius: var(--q-radius);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(45,41,38,.06);
	transition: transform .22s ease, box-shadow .22s ease;
}

.qisatok-story-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 36px rgba(45,41,38,.11);
}

.qisatok-story-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background:
		radial-gradient(circle at top, rgba(201,168,106,.18), transparent 55%),
		#efe7da;
}

.qisatok-story-card__cover {
	padding: 8px;
}

.qisatok-story-card__cover img,
.qisatok-story-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: 12px;
	background: #f3ede4;
}

.qisatok-story-card__status {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.qisatok-story-card__body {
	padding: 16px;
}

.qisatok-story-card h3 {
	font-family: Cairo, sans-serif;
	font-size: 20px;
	line-height: 1.45;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.qisatok-story-card h3 a,
.qisatok-story-card__author {
	color: var(--q-text);
	text-decoration: none;
}

.qisatok-story-card__author {
	display: block;
	color: var(--q-muted);
	font-size: 14px;
	margin-bottom: 12px;
}

.qisatok-story-card__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	color: var(--q-muted);
	font-size: 13px;
	margin-bottom: 12px;
}

.qisatok-story-card__category {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 999px;
	background: #f2ebdf;
	color: var(--q-gold-dark);
	text-decoration: none;
	font-size: 13px;
}

.qisatok-archive-hero {
	padding: 72px 0 54px;
	text-align: center;
	background:
		radial-gradient(circle at top right, rgba(201,168,106,.22), transparent 40%),
		linear-gradient(180deg, #fff, var(--q-bg));
}

.qisatok-archive-hero span { color: var(--q-gold-dark); font-weight: 700; }
.qisatok-archive-hero h1 { font-size: clamp(36px, 6vw, 56px); margin: 8px 0 10px; }
.qisatok-archive-hero p { margin: 0; color: var(--q-muted); font-size: 18px; }

.qisatok-archive-body { padding: 52px 0 80px; }

.qisatok-pagination { margin-top: 38px; }
.qisatok-pagination .nav-links,
.qisatok-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
}

.qisatok-pagination a,
.qisatok-pagination span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--q-border);
	color: var(--q-text);
	text-decoration: none;
}

.qisatok-pagination .current {
	background: var(--q-gold);
	color: #fff;
	border-color: var(--q-gold);
}

/* Reader */
body.qisatok-reading-mode { margin: 0; }
.qisatok-reading-mode #wpadminbar { position: fixed; }

.qisatok-reader {
	--reader-bg: #f8f5f0;
	--reader-surface: #fff;
	--reader-text: #2d2926;
	--reader-muted: #6e665e;
	background: var(--reader-bg);
	color: var(--reader-text);
	min-height: 100vh;
	padding-bottom: 72px;
	transition: background-color .2s ease, color .2s ease;
}

.qisatok-reader[data-theme="sepia"] {
	--reader-bg: #efe5d2;
	--reader-surface: #f8efdf;
	--reader-text: #3a3027;
	--reader-muted: #746554;
}

.qisatok-reader[data-theme="dark"] {
	--reader-bg: #1e1a17;
	--reader-surface: #2a2521;
	--reader-text: #eee7dc;
	--reader-muted: #b9afa5;
	--q-border: #443b34;
}

.qisatok-reading-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 10001;
	background: rgba(201,168,106,.12);
}

.qisatok-reading-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--q-gold);
}

.qisatok-reader-topbar {
	position: sticky;
	top: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px max(18px, calc((100vw - 1180px) / 2));
	background: color-mix(in srgb, var(--reader-bg) 88%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--reader-text) 10%, transparent);
}

.qisatok-reader-topbar a,
.qisatok-reader-settings-toggle {
	color: var(--reader-text);
	text-decoration: none;
	font-weight: 700;
}

.qisatok-reader-settings-toggle {
	border: 1px solid color-mix(in srgb, var(--reader-text) 15%, transparent);
	background: var(--reader-surface);
	border-radius: 12px;
	padding: 9px 13px;
	cursor: pointer;
}

.qisatok-reader-shell { max-width: 760px; }
.qisatok-reader[data-width="narrow"] .qisatok-reader-shell { max-width: 640px; }
.qisatok-reader[data-width="wide"] .qisatok-reader-shell { max-width: 900px; }

.qisatok-reader-header {
	padding: 58px 0 32px;
	text-align: center;
}

.qisatok-reader-story {
	display: block;
	color: var(--q-gold-dark);
	text-decoration: none;
	font-weight: 700;
	margin-bottom: 10px;
}

.qisatok-reader-kicker {
	color: var(--reader-muted);
	font-size: 15px;
	margin-bottom: 12px;
}

.qisatok-reader-title {
	color: var(--reader-text);
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.35;
	margin: 0;
}

.qisatok-reader-content {
	background: var(--reader-surface);
	border: 1px solid color-mix(in srgb, var(--reader-text) 12%, transparent);
	border-radius: var(--q-radius);
	padding: clamp(24px, 5vw, 54px);
	box-shadow: 0 14px 40px rgba(45,41,38,.06);
	font-size: 22px;
	line-height: 2.05;
	color: var(--reader-text);
}

.qisatok-reader[data-font="amiri"] .qisatok-reader-content { font-family: Amiri, serif; }
.qisatok-reader[data-font="tajawal"] .qisatok-reader-content { font-family: Tajawal, sans-serif; }
.qisatok-reader[data-font="cairo"] .qisatok-reader-content { font-family: Cairo, sans-serif; }

.qisatok-reader[data-line-height="normal"] .qisatok-reader-content { line-height: 1.75; }
.qisatok-reader[data-line-height="comfortable"] .qisatok-reader-content { line-height: 2.05; }
.qisatok-reader[data-line-height="wide"] .qisatok-reader-content { line-height: 2.35; }

.qisatok-reader-content p { margin: 0 0 1.25em; }
.qisatok-reader-content img { max-width: 100%; height: auto; border-radius: 14px; }

.qisatok-reader-toolbar {
	position: fixed;
	z-index: 10002;
	top: 0;
	left: 0;
	width: min(390px, 92vw);
	height: 100dvh;
	padding: 28px;
	background: var(--reader-surface);
	color: var(--reader-text);
	box-shadow: 20px 0 60px rgba(0,0,0,.18);
	transform: translateX(-105%);
	transition: transform .25s ease;
	overflow-y: auto;
}

.qisatok-reader-toolbar.is-open { transform: translateX(0); }
.qisatok-reader-toolbar h2 { font-family: Cairo, sans-serif; margin: 0 0 24px; }

.qisatok-reader-setting {
	display: grid;
	gap: 10px;
	padding: 18px 0;
	border-bottom: 1px solid color-mix(in srgb, var(--reader-text) 12%, transparent);
}

.qisatok-reader-setting > span { font-weight: 700; }
.qisatok-segmented,
.qisatok-inline-actions { display: flex; gap: 8px; }

.qisatok-segmented button,
.qisatok-inline-actions button {
	flex: 1;
	min-height: 42px;
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, var(--reader-text) 15%, transparent);
	background: var(--reader-bg);
	color: var(--reader-text);
	cursor: pointer;
}

.qisatok-segmented button.is-active {
	background: var(--q-gold);
	color: #fff;
	border-color: var(--q-gold);
}

.qisatok-reader-toolbar select { width: 100%; }
.qisatok-reader-toolbar__close { width: 100%; margin-top: 18px; min-height: 44px; border: 0; border-radius: 12px; cursor: pointer; }

.qisatok-author-note {
	margin-top: 28px;
	padding: 24px;
	border-radius: var(--q-radius);
	background: color-mix(in srgb, var(--q-gold) 12%, var(--reader-surface));
	border: 1px solid color-mix(in srgb, var(--q-gold) 35%, transparent);
}

.qisatok-author-note h2 { font-family: Cairo, sans-serif; margin-top: 0; }

.qisatok-reader-footer {
	padding-top: 40px;
	text-align: center;
}

.qisatok-end-message {
	font-family: Cairo, sans-serif;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 12px;
}

.qisatok-last-chapter-message { color: var(--reader-muted); margin-bottom: 22px; }

.qisatok-reader-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 14px;
	align-items: center;
}

.qisatok-return-story {
	display: inline-block;
	margin-top: 22px;
	color: var(--q-gold-dark);
	font-weight: 700;
	text-decoration: none;
}

.qisatok-reader-comments { margin-top: 42px; color: var(--reader-text); }

/* Comments */
.qisatok-comments-section .comment-list,
.qisatok-reader-comments .comment-list {
	list-style: none;
	padding: 0;
	margin: 24px 0;
}

.qisatok-comments-section .comment,
.qisatok-reader-comments .comment {
	padding: 16px 0;
	border-bottom: 1px solid var(--q-border);
}

.qisatok-comments-section textarea,
.qisatok-reader-comments textarea,
.qisatok-comments-section input,
.qisatok-reader-comments input {
	width: 100%;
	border: 1px solid var(--q-border);
	border-radius: 12px;
	padding: 12px;
}

.qisatok-comments-section .submit,
.qisatok-reader-comments .submit {
	border: 0;
	border-radius: 12px;
	background: var(--q-gold);
	color: #fff;
	padding: 12px 22px;
	cursor: pointer;
}

.qisatok-toast {
	position: fixed;
	z-index: 11000;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 30px);
	padding: 12px 18px;
	border-radius: 999px;
	background: #2d2926;
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transition: .2s ease;
}

.qisatok-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 1024px) {
	.qisatok-story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.qisatok-story-hero { padding: 30px 0 44px; }

	.qisatok-story-hero__content {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.qisatok-story-cover {
		width: min(210px, 62vw);
		margin-inline: auto;
	}

	.qisatok-story-info { text-align: center; }

	.qisatok-story-badges,
	.qisatok-story-meta,
	.qisatok-story-actions,
	.qisatok-story-author,
	.qisatok-rating-panel {
		justify-content: center;
	}

	.qisatok-story-actions .qisatok-start-reading {
		flex-basis: 100%;
	}

	.qisatok-story-actions .qisatok-button {
		flex: 1 1 44%;
		padding-inline: 12px;
	}

	.qisatok-section-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.qisatok-chapter-controls {
		display: grid;
		grid-template-columns: 1fr;
	}

	.qisatok-chapter-search { min-width: 0; width: 100%; }

	.qisatok-panel { padding: 20px 16px; }

	.qisatok-chapter-item {
		grid-template-columns: 42px 1fr;
	}

	.qisatok-chapter-item__date { grid-column: 2; }

	.qisatok-author-card {
		grid-template-columns: 62px 1fr;
	}

	.qisatok-author-card__avatar {
		width: 62px;
		height: 62px;
	}

	.qisatok-author-card__actions {
		grid-column: 1 / -1;
	}

	.qisatok-author-card__actions .qisatok-button { flex: 1; }

	.qisatok-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

	.qisatok-story-card__body { padding: 12px; }
	.qisatok-story-card h3 { font-size: 16px; }
	.qisatok-story-card__stats { gap: 5px 8px; font-size: 12px; }

	.qisatok-reader-topbar {
		padding-inline: 16px;
	}

	.qisatok-reader-header { padding: 42px 0 24px; }

	.qisatok-reader-content {
		line-height: 1.95;
		padding: 24px 18px;
		border-radius: 14px;
	}

	.qisatok-reader-nav {
		grid-template-columns: 1fr 48px 1fr;
	}

	.qisatok-reader-nav .qisatok-button {
		padding-inline: 8px;
		font-size: 14px;
	}

	.qisatok-comments-section,
	.qisatok-reader-comments {
		padding: 20px 16px;
	}
}

@media (max-width: 420px) {
	.qisatok-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qisatok-story-card__stats span:nth-child(3) { display: none; }
}
.qisatok-badge--soft{background:#f4ead8;color:#6d4b1f;border:1px solid #ead8b9}.qisatok-home{background:#fbf8f3;color:#2d2722}.qisatok-home-hero{max-width:1380px;margin:auto;padding:70px 24px;display:grid;grid-template-columns:1fr 1.08fr;gap:42px;align-items:center}.qisatok-home-hero__text h1{font-size:clamp(40px,5vw,76px);line-height:1.15;margin:0 0 24px;color:#a96321;font-weight:800}.qisatok-home-hero__text p{font-size:20px;line-height:1.9;margin-bottom:28px}.qisatok-home-hero__text>div{display:flex;gap:16px;flex-wrap:wrap}.qisatok-home-hero__image{overflow:hidden;border-radius:34px 34px 34px 120px;box-shadow:0 24px 60px rgba(77,47,21,.18)}.qisatok-home-hero__image img{width:100%;height:560px;object-fit:cover;display:block;animation:qisatokFloat 7s ease-in-out infinite}.qisatok-home-inner{max-width:1320px;margin:auto;padding:10px 24px 80px}.qisatok-home-section{padding:48px 0}.qisatok-home-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.qisatok-home-heading h2{font-size:34px;margin:0 0 6px}.qisatok-home-heading p{margin:0;color:#766b62}.qisatok-home-scroll{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.qisatok-quote-banner{margin:42px 0;padding:44px;border-radius:28px;background:linear-gradient(135deg,#2c1e16,#b37635);color:#fff;text-align:center;position:relative;overflow:hidden}.qisatok-quote-banner:before{content:"✦";position:absolute;font-size:140px;opacity:.08;left:30px;top:-35px}.qisatok-quote-banner p{font-size:clamp(23px,3vw,38px);line-height:1.8;margin:0}.qisatok-term-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.qisatok-term-card,.qisatok-author-tile{background:#fff;border:1px solid #eadfce;border-radius:22px;padding:22px;text-align:center;text-decoration:none;color:inherit;box-shadow:0 10px 30px rgba(58,38,22,.06);transition:.25s}.qisatok-term-card:hover,.qisatok-author-tile:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(58,38,22,.12)}.qisatok-term-card__icon{display:block;font-size:34px;color:#b87936;margin-bottom:10px}.qisatok-term-card strong{display:block;font-size:18px}.qisatok-term-card small{color:#88796b}.qisatok-author-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.qisatok-author-tile__avatar{width:72px;height:72px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#d1a25f,#b96a32);color:#fff;font-size:30px}.qisatok-author-tile strong{font-size:20px}.qisatok-author-tile p{color:#7b7068;min-height:44px}.qisatok-author-tile div{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;font-size:12px;color:#8f6b45}@keyframes qisatokFloat{0%,100%{transform:scale(1.01) translateY(0)}50%{transform:scale(1.035) translateY(-7px)}}@media(max-width:1000px){.qisatok-home-scroll{grid-template-columns:repeat(3,1fr)}.qisatok-term-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:767px){.qisatok-home-hero{grid-template-columns:1fr;padding:28px 18px 44px}.qisatok-home-hero__image{order:-1;border-radius:28px}.qisatok-home-hero__image img{height:330px}.qisatok-home-hero__text{text-align:center}.qisatok-home-hero__text>div{justify-content:center}.qisatok-home-hero__text h1{font-size:39px}.qisatok-home-hero__text p{font-size:17px}.qisatok-home-inner{padding:0 16px 55px}.qisatok-home-scroll{display:flex;overflow-x:auto;gap:14px;scroll-snap-type:x mandatory;padding-bottom:12px}.qisatok-home-scroll .qisatok-story-card{min-width:210px;scroll-snap-align:start}.qisatok-term-grid{grid-template-columns:repeat(2,1fr)}.qisatok-author-grid{grid-template-columns:1fr 1fr}.qisatok-home-heading h2{font-size:27px}.qisatok-home-heading a{font-size:13px}.qisatok-quote-banner{padding:30px 20px}.qisatok-author-tile{padding:16px 10px}}

/* v0.3.1 corrections */
.qisatok-story-cover {
	aspect-ratio: auto;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 14px;
	overflow: hidden;
}
.qisatok-story-cover__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
	border-radius: 14px;
	box-shadow: 0 18px 45px rgba(45,41,38,.16);
}
.qisatok-author-card__stats,
.qisatok-author-tile > div {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.qisatok-author-card__stats span,
.qisatok-author-tile > div span {
	display: inline-flex;
	padding: 7px 11px;
	border: 1px solid var(--q-border);
	border-radius: 999px;
	background: #fbf8f3;
}
.qisatok-directory-hero {
	padding: 72px 0 44px;
	text-align: center;
	background: radial-gradient(circle at 75% 15%, rgba(201,168,106,.20), transparent 35%), var(--q-bg);
}
.qisatok-directory-hero h1 { margin:0 0 12px; font:700 clamp(34px,5vw,54px)/1.25 Cairo,sans-serif; }
.qisatok-directory-hero p { margin:0 auto; max-width:760px; color:var(--q-muted); font-size:18px; line-height:1.9; }
.qisatok-directory-body { padding: 38px 0 84px; }
.qisatok-author-profile { padding: 58px 0; background: radial-gradient(circle at 80% 10%, rgba(201,168,106,.24), transparent 42%), var(--q-bg); }
.qisatok-author-profile__inner { display:grid; grid-template-columns:130px 1fr; gap:28px; align-items:center; }
.qisatok-author-profile__avatar { width:120px; height:120px; border-radius:50%; display:grid; place-items:center; font:700 52px Cairo,sans-serif; color:#fff; background:linear-gradient(145deg,var(--q-gold),var(--q-terra)); }
.qisatok-author-profile__eyebrow { color:var(--q-gold-dark); font-weight:700; }
.qisatok-author-profile h1 { margin:4px 0 8px; font:700 clamp(36px,5vw,56px)/1.2 Cairo,sans-serif; }
.qisatok-author-profile p { max-width:760px; color:var(--q-muted); font-size:17px; line-height:1.9; }
.qisatok-author-profile__stats { display:flex; gap:12px; flex-wrap:wrap; margin:18px 0; }
.qisatok-author-profile__stats div { min-width:100px; padding:12px 18px; border:1px solid var(--q-border); border-radius:16px; background:rgba(255,255,255,.78); text-align:center; }
.qisatok-author-profile__stats strong,.qisatok-author-profile__stats span { display:block; }
.qisatok-author-profile__stats strong { font-size:22px; }
.qisatok-author-profile__stats span { color:var(--q-muted); font-size:14px; }
.qisatok-resume-marker { position:fixed; right:18px; bottom:18px; z-index:999; padding:10px 14px; border-radius:999px; color:#fff; background:var(--q-gold-dark); box-shadow:var(--q-shadow); font-weight:700; }
.qisatok-chapter-item__resume { grid-column:2/4; color:var(--q-gold-dark); font-size:13px; font-weight:700; }
@media (max-width: 720px) {
	.qisatok-author-profile__inner { grid-template-columns:1fr; text-align:center; }
	.qisatok-author-profile__avatar { margin-inline:auto; }
	.qisatok-author-profile p { margin-inline:auto; }
	.qisatok-author-profile__stats { justify-content:center; }
	.qisatok-story-hero__content { grid-template-columns:1fr; }
	.qisatok-story-cover { width:min(82vw,360px); margin-inline:auto; }
}

/* v0.3.4 refinements */
.qisatok-home-hero__text h1{font-family:"Cairo","Tajawal",sans-serif!important;letter-spacing:0!important;font-weight:800!important;font-style:normal!important}
.qisatok-quote-banner p{font-family:"Amiri","Noto Naskh Arabic",serif;font-weight:700}
.qisatok-story-card__chips{display:flex;gap:6px;flex-wrap:wrap;padding:0 14px 14px}.qisatok-story-card__chips span,.qisatok-story-card__chips a{font-size:11px;padding:5px 9px;border-radius:999px;background:#f7efe2;color:#805a2f;border:1px solid #ead8bb;text-decoration:none;line-height:1.2;transition:.2s}.qisatok-story-card__chips a:hover,.qisatok-story-card__chips a:focus{background:#ead8bb;color:#5f3d19;transform:translateY(-1px)}
.qisatok-archive-hero h1{font-size:clamp(38px,5vw,66px);margin:0 0 10px}
.qisatok-smart-search[hidden]{display:none}.qisatok-smart-search{position:fixed;inset:0;background:rgba(20,15,12,.72);z-index:999999;padding:8vh 20px}.qisatok-smart-search__panel{max-width:760px;margin:auto;background:#fff;border-radius:24px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.3)}.qisatok-smart-search__close{position:fixed;top:24px;left:28px;border:0;background:#fff;width:46px;height:46px;border-radius:50%;font-size:28px}.qisatok-smart-search__input{width:100%;padding:16px 18px;border:1px solid #dbcbb7;border-radius:14px;font-size:18px}.qisatok-smart-search__results{margin-top:12px;display:grid;gap:8px}.qisatok-search-result{display:flex;gap:12px;align-items:center;padding:10px;border-radius:12px;text-decoration:none;color:inherit;background:#faf7f2}.qisatok-search-result img{width:48px;height:58px;object-fit:cover;border-radius:7px}.qisatok-search-result small{display:block;color:#9a7650}


/* Qisatok Core 0.3.5 — official pages only */
.qisatok-official-page{--qo-ink:#28231f;--qo-muted:#6f655c;--qo-gold:#b67b3b;--qo-line:#eadfce;--qo-bg:#fbf8f3;background:var(--qo-bg);color:var(--qo-ink);font-family:"Tajawal","Cairo",sans-serif}
.qisatok-official-wrap{width:min(1100px,calc(100% - 36px));margin-inline:auto}
.qisatok-official-hero{padding:76px 0 62px;text-align:center;background:radial-gradient(circle at 78% 10%,rgba(201,168,106,.28),transparent 36%),linear-gradient(180deg,#fffaf3,#f6efe5);border-bottom:1px solid var(--qo-line)}
.qisatok-official-hero__icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 16px;border-radius:20px;background:#fff;color:var(--qo-gold);font-size:30px;box-shadow:0 14px 34px rgba(78,54,30,.10)}
.qisatok-official-hero h1{margin:0 0 12px;font:800 clamp(38px,6vw,62px)/1.2 "Cairo",sans-serif;color:#241e19}
.qisatok-official-hero p{max-width:760px;margin:0 auto;color:var(--qo-muted);font-size:19px;line-height:1.9}
.qisatok-official-hero small{display:inline-block;margin-top:14px;color:#8d7254;font-size:14px}
.qisatok-official-content{padding:52px 0 90px}
.qisatok-prose-section{padding:34px 0;border-bottom:1px solid var(--qo-line)}
.qisatok-prose-section--lead{padding-top:4px}
.qisatok-prose-section h2,.qisatok-contact-form-card h2{margin:0 0 17px;font:700 clamp(26px,3vw,32px)/1.35 "Cairo",sans-serif;color:#2b241e}
.qisatok-prose-section p,.qisatok-prose-section li{font-size:18px;line-height:2;color:#4f4842}
.qisatok-prose-section p{margin:0 0 13px}.qisatok-prose-section p:last-child{margin-bottom:0}
.qisatok-prose-section a,.qisatok-contact-email a,.qisatok-consent a{color:#996026;text-decoration-thickness:1px;text-underline-offset:4px}
.qisatok-dual-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:50px;border-bottom:1px solid var(--qo-line)}
.qisatok-dual-sections .qisatok-prose-section{border:0}
.qisatok-check-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.qisatok-check-list li{position:relative;padding-right:30px}.qisatok-check-list li:before{content:"✓";position:absolute;right:0;top:.05em;color:var(--qo-gold);font-weight:800}
.qisatok-closing-panel{margin-top:52px;padding:52px 42px;border-radius:22px;text-align:center;background:linear-gradient(135deg,#28211c,#4b3425);color:#fff;box-shadow:0 24px 54px rgba(47,33,24,.18)}
.qisatok-closing-panel h2{margin:0 0 15px;font:700 clamp(30px,4vw,42px)/1.3 "Cairo",sans-serif;color:#fff}
.qisatok-closing-panel p{max-width:790px;margin:0 auto 12px;font-size:18px;line-height:1.95;color:#fff}.qisatok-closing-panel>strong{display:block;margin-top:20px;color:#eed5b4;font-size:19px}
.qisatok-contact-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:54px;align-items:start}
.qisatok-contact-copy .qisatok-prose-section:first-child{padding-top:4px}
.qisatok-contact-email{margin-top:30px;padding:24px;border:1px solid var(--qo-line);border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(65,43,25,.06)}
.qisatok-contact-email span,.qisatok-contact-email small{display:block;color:var(--qo-muted)}.qisatok-contact-email a{display:inline-block;margin:8px 0;font:700 22px "Cairo",sans-serif;direction:ltr}
.qisatok-contact-form-card{position:sticky;top:28px;padding:30px;border:1px solid var(--qo-line);border-radius:22px;background:#fff;box-shadow:0 18px 50px rgba(65,43,25,.09)}
.qisatok-contact-form-card>p{margin:-7px 0 23px;color:var(--qo-muted);line-height:1.8}
.qisatok-contact-form{display:grid;gap:17px}.qisatok-contact-form label{display:grid;gap:8px;font-weight:700;color:#3c342d}.qisatok-contact-form label>span{color:#a05f2b}
.qisatok-contact-form input[type=text],.qisatok-contact-form input[type=email],.qisatok-contact-form textarea{width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid #d9cbbb;border-radius:12px;background:#fffdf9;color:#2d2722;font:500 16px/1.6 "Tajawal",sans-serif;transition:.2s}
.qisatok-contact-form input:focus,.qisatok-contact-form textarea:focus{outline:0;border-color:#b67b3b;box-shadow:0 0 0 3px rgba(182,123,59,.13)}
.qisatok-contact-form textarea{resize:vertical;min-height:160px}.qisatok-contact-form button{border:0;border-radius:12px;padding:14px 22px;background:#2c231d;color:#fff;font:700 17px "Cairo",sans-serif;cursor:pointer;transition:.2s}.qisatok-contact-form button:hover{transform:translateY(-1px);background:#9a642e}
.qisatok-consent{grid-template-columns:auto 1fr!important;align-items:start;font-weight:500!important;font-size:14px;line-height:1.7}.qisatok-consent input{margin-top:5px}.qisatok-consent span{color:#62584f!important}
.qisatok-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.qisatok-form-notice{padding:13px 15px;margin-bottom:18px;border-radius:12px;font-weight:700;line-height:1.7}.qisatok-form-notice--success{background:#edf8ef;color:#216331;border:1px solid #bcdcc3}.qisatok-form-notice--error{background:#fff1ef;color:#8f312a;border:1px solid #edc1bc}
@media(max-width:860px){.qisatok-contact-layout{grid-template-columns:1fr}.qisatok-contact-form-card{position:static}.qisatok-dual-sections{grid-template-columns:1fr;gap:0}}
@media(max-width:600px){.qisatok-official-wrap{width:min(100% - 28px,1100px)}.qisatok-official-hero{padding:48px 0 40px}.qisatok-official-hero p{font-size:17px}.qisatok-official-content{padding:34px 0 60px}.qisatok-prose-section{padding:27px 0}.qisatok-prose-section p,.qisatok-prose-section li{font-size:16.5px;line-height:1.95}.qisatok-closing-panel{padding:38px 22px;border-radius:18px}.qisatok-contact-form-card{padding:22px}}

/* Qisatok Core 0.4.0 — smart search only */
body.qisatok-search-open{overflow:hidden}
.qisatok-smart-search[hidden]{display:none!important}
.qisatok-smart-search{position:fixed;inset:0;z-index:999999;display:grid;place-items:start center;padding:5vh 18px 24px;font-family:"Tajawal","Cairo",sans-serif}
.qisatok-smart-search__backdrop{position:absolute;inset:0;background:rgba(24,18,14,.78);backdrop-filter:blur(7px)}
.qisatok-smart-search__panel{position:relative;width:min(920px,100%);max-height:90vh;overflow:auto;margin:0;background:#fffdf9;border:1px solid rgba(224,207,186,.9);border-radius:28px;padding:34px;box-shadow:0 36px 100px rgba(0,0,0,.36)}
.qisatok-smart-search__close{position:absolute;top:18px;left:18px;display:grid;place-items:center;width:44px;height:44px;border:1px solid #e7dac9;border-radius:50%;background:#fff;color:#332820;font:400 28px/1 Arial,sans-serif;cursor:pointer;transition:.2s}
.qisatok-smart-search__close:hover{background:#2c231d;color:#fff;border-color:#2c231d;transform:rotate(5deg)}
.qisatok-smart-search__heading{text-align:center;padding:2px 54px 22px}
.qisatok-smart-search__eyebrow{display:inline-block;margin-bottom:7px;color:#9d672f;font-weight:800;font-size:13px;letter-spacing:.04em}
.qisatok-smart-search__heading h2{margin:0 0 8px;color:#241e19;font:800 clamp(30px,4vw,44px)/1.25 "Cairo",sans-serif}
.qisatok-smart-search__heading p{margin:0;color:#72665c;font-size:17px;line-height:1.8}
.qisatok-smart-search__form{display:grid;gap:15px}
.qisatok-smart-search__field{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 8px 8px 14px;border:1px solid #dac9b5;border-radius:17px;background:#fff;box-shadow:0 10px 30px rgba(75,50,29,.06)}
.qisatok-smart-search__field svg{width:22px;height:22px;color:#9a6838}
.qisatok-smart-search__input{width:100%;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:10px 2px!important;color:#29231e;font:600 17px/1.5 "Tajawal",sans-serif}
.qisatok-smart-search__field button{border:0;border-radius:12px;padding:12px 23px;background:#2c231d;color:#fff;font:700 16px "Cairo",sans-serif;cursor:pointer;transition:.2s}
.qisatok-smart-search__field button:hover{background:#9b672f;transform:translateY(-1px)}
.qisatok-smart-search__filters,.qisatok-search-page__filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.qisatok-smart-filter{display:grid;gap:6px}
.qisatok-smart-filter>span{color:#6f6258;font-size:12px;font-weight:800}
.qisatok-smart-filter select{width:100%;min-width:0;padding:10px 11px;border:1px solid #e2d5c5;border-radius:11px;background:#fbf6ef;color:#352c25;font:600 14px "Tajawal",sans-serif;cursor:pointer}
.qisatok-smart-search__results{margin-top:20px;display:grid;gap:18px;min-height:92px}
.qisatok-smart-search__welcome,.qisatok-smart-search__empty{display:grid;gap:5px;place-items:center;padding:24px;text-align:center;border:1px dashed #ddcdb9;border-radius:16px;background:#faf5ed;color:#74675c}
.qisatok-smart-search__welcome strong,.qisatok-smart-search__empty strong{color:#342b24;font-size:17px}
.qisatok-smart-search__group h3{margin:0 0 9px;color:#40352d;font:700 15px "Cairo",sans-serif}
.qisatok-smart-search__story-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.qisatok-search-result{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid transparent;border-radius:14px;background:#faf6f0;color:#2c241e;text-decoration:none;transition:.2s}
.qisatok-search-result:hover{background:#fff;border-color:#dfcfba;transform:translateY(-1px)}
.qisatok-search-result img,.qisatok-search-result__placeholder{width:48px;height:58px;object-fit:cover;border-radius:8px}
.qisatok-search-result__placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#c69a63,#8a5a2d);color:#fff;font:800 20px "Cairo",sans-serif}
.qisatok-search-result__copy{min-width:0}.qisatok-search-result__copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 15px "Cairo",sans-serif}.qisatok-search-result__copy small{display:block;margin-top:4px;color:#8d7254;font-size:12px}.qisatok-search-result__arrow{color:#9d672f;font-size:19px}
.qisatok-smart-search__term-list{display:flex;flex-wrap:wrap;gap:8px}.qisatok-smart-search__term-list a{display:flex;gap:7px;align-items:center;padding:8px 11px;border:1px solid #e3d6c5;border-radius:999px;background:#fff;color:#392f28;text-decoration:none;font-size:13px}.qisatok-smart-search__term-list span{color:#a16d38}.qisatok-smart-search__term-list strong{font-weight:700}
.qisatok-smart-search__loading{display:flex;justify-content:center;align-items:center;gap:10px;padding:28px;color:#74665b}.qisatok-smart-search__loading span:first-child{width:18px;height:18px;border:2px solid #dfcfbb;border-top-color:#95612f;border-radius:50%;animation:qisatokSearchSpin .7s linear infinite}@keyframes qisatokSearchSpin{to{transform:rotate(360deg)}}
.qisatok-smart-search__all{display:block;margin-top:19px;text-align:center;color:#8c5a2b;font-weight:800;text-decoration:none}.qisatok-smart-search__all:hover{text-decoration:underline;text-underline-offset:4px}

.qisatok-search-page{background:#fbf8f3;color:#2b241e;font-family:"Tajawal","Cairo",sans-serif;min-height:70vh}
.qisatok-search-page__hero{padding:72px 0 45px;background:radial-gradient(circle at 78% 12%,rgba(201,168,106,.25),transparent 34%),linear-gradient(180deg,#fffaf3,#f5ede2);border-bottom:1px solid #e8dccb;text-align:center}
.qisatok-search-page__hero>div>span{color:#9a642e;font-weight:800;font-size:14px}.qisatok-search-page__hero h1{margin:7px 0 10px;font:800 clamp(36px,5vw,58px)/1.2 "Cairo",sans-serif}.qisatok-search-page__hero p{max-width:780px;margin:0 auto 28px;color:#6f6359;font-size:18px;line-height:1.9}
.qisatok-search-page__form{display:grid;gap:14px;max-width:980px;margin-inline:auto;padding:22px;border:1px solid #e3d6c5;border-radius:22px;background:rgba(255,255,255,.88);box-shadow:0 18px 45px rgba(67,44,26,.08)}
.qisatok-search-page__main-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.qisatok-search-page__main-field input{width:100%;padding:15px 16px;border:1px solid #d9c8b3;border-radius:13px;background:#fff;color:#2d261f;font:600 17px "Tajawal",sans-serif}.qisatok-search-page__main-field input:focus{outline:0;border-color:#9a642e;box-shadow:0 0 0 3px rgba(154,100,46,.12)}.qisatok-search-page__main-field button{border:0;border-radius:13px;padding:13px 26px;background:#2c231d;color:#fff;font:700 17px "Cairo",sans-serif;cursor:pointer}.qisatok-search-page__main-field button:hover{background:#99642f}
.qisatok-search-page__body{padding:42px 0 90px}.qisatok-search-page__summary{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:26px;padding-bottom:18px;border-bottom:1px solid #e7dac9}.qisatok-search-page__summary h2{margin:0 0 4px;font:700 clamp(24px,3vw,32px) "Cairo",sans-serif}.qisatok-search-page__summary p{margin:0;color:#776a5f}.qisatok-search-page__summary>a{color:#925d2b;font-weight:800;text-decoration:none}.qisatok-search-page__grid{margin-top:0}.qisatok-search-page__empty{display:grid;place-items:center;text-align:center;padding:70px 20px;border:1px dashed #dcccc0;border-radius:22px;background:#fff}.qisatok-search-page__empty>span{font-size:44px;color:#a36d37}.qisatok-search-page__empty h2{margin:10px 0 6px;font:700 28px "Cairo",sans-serif}.qisatok-search-page__empty p{margin:0 0 20px;color:#74675d}.qisatok-search-page__empty a{padding:11px 18px;border-radius:11px;background:#2d241e;color:#fff;text-decoration:none;font-weight:800}
.qisatok-pagination{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:38px}.qisatok-pagination .page-numbers{display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border:1px solid #dfd1bf;border-radius:10px;background:#fff;color:#3a3028;text-decoration:none;font-weight:700}.qisatok-pagination .current{background:#2d241e;color:#fff;border-color:#2d241e}

/* Keep Kadence/legacy search interface from appearing; the original header icon remains the trigger. */
body.qisatok-search-open .search-toggle-container:not(.qisatok-smart-search *),body.qisatok-search-open .search-modal:not(.qisatok-smart-search *),body.qisatok-search-open .kadence-search-modal:not(.qisatok-smart-search *){display:none!important}
@media(max-width:800px){.qisatok-smart-search{padding:12px}.qisatok-smart-search__panel{max-height:calc(100vh - 24px);border-radius:20px;padding:24px 18px}.qisatok-smart-search__heading{padding:8px 35px 18px}.qisatok-smart-search__filters,.qisatok-search-page__filters{grid-template-columns:repeat(2,minmax(0,1fr))}.qisatok-smart-search__story-list{grid-template-columns:1fr}.qisatok-search-page__hero{padding:48px 0 34px}.qisatok-search-page__form{padding:15px}.qisatok-search-page__summary{align-items:start;flex-direction:column}}
@media(max-width:520px){.qisatok-smart-search__field{grid-template-columns:22px minmax(0,1fr)}.qisatok-smart-search__field button{grid-column:1/-1;width:100%}.qisatok-smart-search__filters,.qisatok-search-page__filters{grid-template-columns:1fr}.qisatok-search-page__main-field{grid-template-columns:1fr}.qisatok-search-page__main-field button{width:100%}.qisatok-search-page__hero p{font-size:16px}.qisatok-search-page__body{padding-top:30px}}

/* v0.5.1 — homepage chapter updates, weekly trending and compact story cards */
.qisatok-story-card__stats {
	align-items: center;
	gap: 7px 11px;
}
.qisatok-story-card__stats span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}
.qisatok-story-card__stats svg,
.qisatok-chapter-update-card__meta svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}
.qisatok-story-card__stats span:first-child svg { fill: currentColor; stroke: currentColor; }

.qisatok-chapter-updates-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.qisatok-chapter-update-card {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--q-border, #eadfce);
	border-radius: 20px;
	box-shadow: 0 10px 28px rgba(58,38,22,.06);
	transition: transform .22s ease, box-shadow .22s ease;
}
.qisatok-chapter-update-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 17px 38px rgba(58,38,22,.11);
}
.qisatok-chapter-update-card__cover {
	position: relative;
	display: block;
	min-height: 168px;
	overflow: hidden;
	background: #eee5d8;
}
.qisatok-chapter-update-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.qisatok-chapter-update-card__cover .qisatok-story-card__status {
	top: 8px;
	right: 8px;
	padding: 5px 8px;
	font-size: 10px;
}
.qisatok-chapter-update-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: 15px;
}
.qisatok-chapter-update-card__eyebrow {
	display: inline-flex;
	margin-bottom: 7px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f4ead8;
	color: #7a4d20;
	font-size: 12px;
	font-weight: 800;
}
.qisatok-chapter-update-card h3 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.qisatok-chapter-update-card h3 a,
.qisatok-chapter-update-card__author,
.qisatok-chapter-update-card__link {
	text-decoration: none;
}
.qisatok-chapter-update-card h3 a { color: var(--q-text, #2d2722); }
.qisatok-chapter-update-card__author {
	color: var(--q-muted, #766b62);
	font-size: 13px;
	margin-bottom: 8px;
}
.qisatok-chapter-update-card__meta {
	color: var(--q-muted, #766b62);
	font-size: 12px;
	margin-top: auto;
}
.qisatok-chapter-update-card__meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.qisatok-chapter-update-card__link {
	margin-top: 10px;
	color: var(--q-gold-dark, #8a5725);
	font-size: 13px;
	font-weight: 800;
}

@media (max-width: 1000px) {
	.qisatok-chapter-updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.qisatok-chapter-updates-grid {
		display: flex;
		overflow-x: auto;
		gap: 14px;
		scroll-snap-type: x mandatory;
		padding-bottom: 12px;
	}
	.qisatok-chapter-update-card {
		grid-template-columns: 92px minmax(0, 1fr);
		min-width: 285px;
		scroll-snap-align: start;
	}
	.qisatok-chapter-update-card__cover { min-height: 150px; }
	.qisatok-chapter-update-card__body { padding: 12px; }
	.qisatok-chapter-update-card h3 { font-size: 16px; }
	.qisatok-story-card__stats { gap: 5px 8px; }
	.qisatok-story-card__stats svg { width: 14px; height: 14px; }
	.qisatok-story-card__chips { display: flex; gap: 4px; padding: 0 10px 10px; }
	.qisatok-story-card__chips span,.qisatok-story-card__chips a { font-size: 10px; padding: 4px 7px; }
	.qisatok-story-card__category { font-size: 12px; padding: 5px 8px; }
}
@media (max-width: 420px) {
	.qisatok-story-card__stats span:nth-child(3) { display: inline-flex; }
	.qisatok-story-card__stats { justify-content: space-between; }
}

/* 0.5.4 — Native story tag archives */
.qisatok-tag-archive .qisatok-archive-count {
	display: inline-flex;
	margin-top: 14px;
	padding: 7px 12px;
	border: 1px solid var(--q-border);
	border-radius: 999px;
	background: rgba(255,255,255,.75);
	color: var(--q-muted);
	font-size: 13px;
	font-weight: 700;
}

/* 0.5.6 — Curated authors, chapter update archive, alphabetical directory */
.qisatok-home-authors .qisatok-author-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.qisatok-home-authors .qisatok-author-tile{padding:17px 10px;border-radius:18px}
.qisatok-home-authors .qisatok-author-tile__avatar{width:58px;height:58px;font-size:25px;margin-bottom:9px}
.qisatok-home-authors .qisatok-author-tile strong{font-size:16px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qisatok-home-authors .qisatok-author-tile p{display:none}
.qisatok-home-authors .qisatok-author-tile>div{margin-top:8px;gap:5px 8px;font-size:10px}
.qisatok-authors-index{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:4px 2px 18px;margin:0 0 28px;scrollbar-width:thin}
.qisatok-authors-index a{flex:0 0 auto;min-width:39px;height:39px;display:grid;place-items:center;padding:0 10px;border:1px solid var(--q-border,#eadfce);border-radius:11px;background:#fff;color:var(--q-text,#2d2722);text-decoration:none;font-weight:800;transition:.2s}
.qisatok-authors-index a:hover,.qisatok-authors-index a.is-active{background:var(--q-text,#2d2722);border-color:var(--q-text,#2d2722);color:#fff;transform:translateY(-2px)}
.qisatok-chapter-updates-page .qisatok-chapter-updates-grid{margin-top:8px}
.qisatok-pagination{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:34px}
.qisatok-pagination .page-numbers{display:grid;place-items:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--q-border,#eadfce);border-radius:10px;background:#fff;color:var(--q-text,#2d2722);text-decoration:none}
.qisatok-pagination .current{background:var(--q-text,#2d2722);color:#fff;border-color:var(--q-text,#2d2722)}
@media(max-width:1000px){.qisatok-home-authors .qisatok-author-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.qisatok-home-authors .qisatok-author-grid{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;padding-bottom:10px}.qisatok-home-authors .qisatok-author-tile{min-width:145px;scroll-snap-align:start}.qisatok-authors-index{margin-inline:-4px}.qisatok-chapter-updates-page .qisatok-chapter-updates-grid{display:grid;grid-template-columns:1fr;overflow:visible}.qisatok-chapter-updates-page .qisatok-chapter-update-card{min-width:0}}

/* Qisatok 0.5.20 — author card remains a navigable card. */
.qisatok-author-card[data-author-url] { cursor: pointer; }
.qisatok-author-card[data-author-url]:focus-visible { outline: 3px solid rgba(205,174,112,.72); outline-offset: 4px; }
.qisatok-author-card[data-author-url] :is(a,button) { cursor: pointer; }


/* ===== Consolidated from qisatok-experience.css (v0.5.21 order preserved) ===== */

/* Qisatok 0.5.7 — header account, global night mode, member avatar only. */
.qisatok-header-tools{display:flex;align-items:center;gap:9px;margin-inline:8px;z-index:20}.qisatok-header-tools[hidden]{display:none!important}.qisatok-header-account,.qisatok-theme-toggle{height:42px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;transition:.2s ease}.qisatok-header-account{gap:8px;padding:0 17px;text-decoration:none!important;background:linear-gradient(135deg,#b74c5d,#d59a3e);color:#fff!important;font-weight:800;font-family:Cairo,Tajawal,sans-serif;box-shadow:0 7px 18px rgba(152,79,63,.2)}.qisatok-header-account:hover{transform:translateY(-1px);color:#fff!important;box-shadow:0 9px 22px rgba(152,79,63,.27)}.qisatok-header-account svg{width:19px;height:19px;fill:currentColor}.qisatok-header-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.72);display:grid;place-items:center;background:#f4e7d1;color:#38281e;font-weight:800;overflow:hidden}.qisatok-theme-toggle{width:42px;padding:0;border:1px solid #ddd4c8;background:#fff;color:#302b26;cursor:pointer}.qisatok-theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.qisatok-theme-toggle .qisatok-theme-icon-moon{fill:currentColor;stroke:none}.qisatok-theme-icon-sun{display:none}.qisatok-theme-toggle:hover{border-color:#b59159;background:#f7f2eb}.qisatok-member-menu-item{display:none!important}
.qisatok-member-avatar{overflow:hidden}.qisatok-member-avatar-photo,.qisatok-account-avatar-preview{width:100%;height:100%;object-fit:cover;display:block}.qisatok-member-avatar-fallback{width:100%;height:100%;display:grid;place-items:center}.qisatok-avatar-card{grid-column:1/-1}.qisatok-avatar-editor{display:grid;grid-template-columns:150px minmax(0,1fr);gap:28px;align-items:center}.qisatok-avatar-preview{width:150px;height:150px;border-radius:50%;overflow:hidden;background:#eee5d7;border:5px solid #fff;box-shadow:0 0 0 1px #ddd3c5,0 12px 30px rgba(35,32,28,.12);display:grid;place-items:center;font-size:52px;font-weight:800;color:#5b4630}.qisatok-avatar-editor p{color:#71675f;line-height:1.8}.qisatok-file-field{border:1px dashed #bba98f;border-radius:13px;padding:14px 16px;background:#faf7f2}.qisatok-file-field input{border:0!important;padding:8px 0 0!important;background:transparent!important}.qisatok-avatar-actions{display:flex;gap:10px;flex-wrap:wrap}.qisatok-custom-avatar{object-fit:cover}
html[data-qisatok-theme="dark"]{color-scheme:dark;background:#171513}html[data-qisatok-theme="dark"] body{background:#171513!important;color:#eee8df!important}html[data-qisatok-theme="dark"] .site,html[data-qisatok-theme="dark"] #page,html[data-qisatok-theme="dark"] .site-main,html[data-qisatok-theme="dark"] .content-area,html[data-qisatok-theme="dark"] .entry-content,html[data-qisatok-theme="dark"] main{background-color:#171513;color:#eee8df}html[data-qisatok-theme="dark"] .site-header,html[data-qisatok-theme="dark"] .site-header-row-container-inner,html[data-qisatok-theme="dark"] .site-footer,html[data-qisatok-theme="dark"] .site-footer-wrap{background:#201d1a!important;color:#f5efe7!important}html[data-qisatok-theme="dark"] .site-header a,html[data-qisatok-theme="dark"] .site-footer a{color:#f0e9df}html[data-qisatok-theme="dark"] h1,html[data-qisatok-theme="dark"] h2,html[data-qisatok-theme="dark"] h3,html[data-qisatok-theme="dark"] h4,html[data-qisatok-theme="dark"] h5,html[data-qisatok-theme="dark"] h6{color:#f7f1e9!important}html[data-qisatok-theme="dark"] p,html[data-qisatok-theme="dark"] li,html[data-qisatok-theme="dark"] label,html[data-qisatok-theme="dark"] .entry-summary{color:#d7cfc5}html[data-qisatok-theme="dark"] .qisatok-story-card,html[data-qisatok-theme="dark"] .qisatok-member-card,html[data-qisatok-theme="dark"] .qisatok-library-section,html[data-qisatok-theme="dark"] .qisatok-auth-layout,html[data-qisatok-theme="dark"] .qisatok-official-card,html[data-qisatok-theme="dark"] .qisatok-search-panel,html[data-qisatok-theme="dark"] .qisatok-smart-search__panel,html[data-qisatok-theme="dark"] .qisatok-author-card,html[data-qisatok-theme="dark"] article{background:#24211e!important;border-color:#3a342e!important;color:#eee8df}html[data-qisatok-theme="dark"] input,html[data-qisatok-theme="dark"] textarea,html[data-qisatok-theme="dark"] select{background:#1b1917!important;border-color:#4b433b!important;color:#f3ede5!important}html[data-qisatok-theme="dark"] .qisatok-members,html[data-qisatok-theme="dark"] .qisatok-official-page,html[data-qisatok-theme="dark"] .qisatok-archive,html[data-qisatok-theme="dark"] .qisatok-home{background:#171513!important}html[data-qisatok-theme="dark"] .qisatok-member-tabs,html[data-qisatok-theme="dark"] .qisatok-empty-state{background:#24211e!important;border-color:#3a342e!important;color:#ddd4ca}html[data-qisatok-theme="dark"] .qisatok-theme-toggle{background:#302b26;border-color:#51483f;color:#f4c66e}html[data-qisatok-theme="dark"] .qisatok-theme-icon-moon{display:none}html[data-qisatok-theme="dark"] .qisatok-theme-icon-sun{display:block}html[data-qisatok-theme="dark"] a{color:#e3b66f}html[data-qisatok-theme="dark"] hr{border-color:#3c3630}html[data-qisatok-theme="dark"] img{opacity:.96}
@media(max-width:767px){.qisatok-header-tools{gap:6px;margin-inline:4px}.qisatok-header-account{width:42px;padding:0}.qisatok-header-account span{display:none}.qisatok-header-avatar{width:31px;height:31px}.qisatok-theme-toggle{width:40px;height:40px}.qisatok-avatar-editor{grid-template-columns:1fr;text-align:center}.qisatok-avatar-preview{margin:auto}.qisatok-avatar-actions{justify-content:center}}

/* Qisatok 0.5.8 — reliable desktop/mobile placement beside every Kadence search control. */
.qisatok-header-user-zone{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  direction:ltr!important;
  flex-wrap:nowrap!important;
  width:auto!important;
  max-width:100%!important;
}
.qisatok-header-user-zone>.qisatok-header-tools{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0!important;
  direction:ltr!important;
  flex:0 0 auto!important;
  order:1!important;
}
.qisatok-header-user-zone>.qisatok-header-tools .qisatok-header-account{
  direction:rtl!important;
  order:1!important;
}
.qisatok-header-user-zone>.qisatok-header-tools .qisatok-theme-toggle{
  order:2!important;
}
.qisatok-header-user-zone>.site-header-item,
.qisatok-header-user-zone>.header-search-wrap,
.qisatok-header-user-zone>.search-toggle-container,
.qisatok-header-user-zone>.site-header-section,
.qisatok-header-user-zone>[class*="search"]{
  order:3!important;
  flex:0 0 auto!important;
  margin:0!important;
}
@media(max-width:767px){
  .qisatok-header-user-zone{gap:5px!important;min-width:126px!important;justify-content:flex-start!important}
  .qisatok-header-user-zone>.qisatok-header-tools{gap:5px!important}
  .qisatok-header-account,.qisatok-theme-toggle{width:36px!important;height:36px!important;min-width:36px!important}
  .qisatok-header-account{padding:0!important}
  .qisatok-header-account span{display:none!important}
  .qisatok-header-account svg{width:17px!important;height:17px!important}
  .qisatok-theme-toggle svg{width:18px!important;height:18px!important}
  .qisatok-header-avatar{width:27px!important;height:27px!important}
}
@media(min-width:768px){
  .qisatok-header-user-zone{gap:10px!important}
}

/* Qisatok 0.5.13 — focused hero typography and install UI correction. */
.qisatok-home-hero__text h1{
  font-family:"Aref Ruqaa","Amiri","Cairo",serif!important;
  font-size:clamp(46px,4.35vw,64px)!important;
  line-height:1.42!important;
  font-weight:700!important;
  letter-spacing:0!important;
  margin:0 auto 24px!important;
  max-width:760px!important;
  text-align:center;
}
.qisatok-home-hero__text h1 span{
  display:block;
  white-space:normal;
  word-spacing:.02em;
}
.qisatok-home-hero__text h1 span+span{margin-top:.08em}
.qisatok-home-hero__image img{
  animation:qisatokHeroMotion0512 4.8s cubic-bezier(.45,0,.55,1) infinite alternate!important;
  will-change:transform,filter;
}
@keyframes qisatokHeroMotion0512{
  0%{transform:scale(1.01) translate3d(0,0,0);filter:saturate(1)}
  100%{transform:scale(1.07) translate3d(-1%,-1%,0);filter:saturate(1.05)}
}
@media(max-width:767px){
  .qisatok-home-hero__text h1{
    font-size:clamp(40px,11vw,49px)!important;
    line-height:1.48!important;
    max-width:620px!important;
    padding-inline:8px;
  }
  .qisatok-home-hero__text h1 span+span{margin-top:.18em}
  .qisatok-home-hero__image img{animation-duration:4.2s!important}
}
@media(max-width:390px){.qisatok-home-hero__text h1{font-size:39px!important}}
@media(prefers-reduced-motion:reduce){.qisatok-home-hero__image img{animation:none!important}}

.qisatok-install-banner{position:fixed;z-index:999999;right:18px;bottom:20px;max-width:min(430px,calc(100vw - 36px));display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;background:#fffaf3;color:#29231e;border:1px solid #eadbc8;border-radius:20px;box-shadow:0 18px 55px rgba(35,32,28,.22);font-family:Cairo,sans-serif}
.qisatok-install-banner[hidden]{display:none!important}.qisatok-install-banner img{border-radius:14px;box-shadow:0 5px 16px rgba(35,32,28,.14)}.qisatok-install-banner__copy{display:flex;flex-direction:column;gap:3px}.qisatok-install-banner__copy strong{font-size:16px}.qisatok-install-banner__copy span{font-size:12px;color:#71665d;line-height:1.55}.qisatok-install-banner__action{border:0;border-radius:999px;padding:10px 16px;background:linear-gradient(135deg,#b75e52,#d49a42);color:#fff;font:700 14px Cairo,sans-serif;cursor:pointer}.qisatok-install-banner__action[disabled]{opacity:.6;cursor:wait}.qisatok-install-banner__close{position:absolute;top:-9px;left:-8px;width:28px;height:28px;border:1px solid #e6d8c7;border-radius:50%;background:#fff;color:#51463d;font-size:21px;line-height:1;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.1)}
html[data-qisatok-theme="dark"] .qisatok-install-banner{background:#27231f;color:#f5eee6;border-color:#493f36}.qisatok-install-banner.is-ios .qisatok-install-banner__action{min-width:112px}
@media(max-width:600px){.qisatok-install-banner{right:12px;bottom:14px;max-width:calc(100vw - 24px);grid-template-columns:46px minmax(0,1fr) auto;padding:12px;gap:9px;border-radius:17px}.qisatok-install-banner img{width:46px;height:46px}.qisatok-install-banner__copy strong{font-size:14px}.qisatok-install-banner__copy span{font-size:11px}.qisatok-install-banner__action{padding:9px 12px;font-size:12px}}

/* Deterrence only inside published chapter title/content; forms and controls remain usable. */
.qisatok-reading-mode .qisatok-reader-title,
.qisatok-reading-mode .qisatok-reader-content,
.qisatok-reading-mode .qisatok-reader-content *:not(input):not(textarea):not(select):not(button){-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}


/* Qisatok 0.5.13 — mobile night-mode reliability and visible state. */
.qisatok-theme-toggle:active{transform:scale(.94)}
html[data-qisatok-theme="dark"] .qisatok-home-hero,
html[data-qisatok-theme="dark"] .qisatok-home-section,
html[data-qisatok-theme="dark"] .site-content,
html[data-qisatok-theme="dark"] .content-bg,
html[data-qisatok-theme="dark"] .entry,
html[data-qisatok-theme="dark"] .wp-site-blocks{background:#171513!important;color:#eee8df!important}
html[data-qisatok-theme="dark"] .qisatok-home-hero__text,
html[data-qisatok-theme="dark"] .qisatok-home-hero__media{background:#1d1a18!important}
html[data-qisatok-theme="dark"] .qisatok-home-hero__text p{color:#d7cfc5!important}
@media(max-width:767px){
  .qisatok-theme-toggle{touch-action:manipulation;pointer-events:auto!important;position:relative;z-index:30}
}


/* Qisatok 0.5.15 — restore the original warm, luminous night identity while keeping text readable. */
html[data-qisatok-theme="dark"]{
  --q-bg:#100e0c;
  --q-surface:#1e1915;
  --q-surface-soft:#282018;
  --q-text:#f8f0e6;
  --q-muted:#d4c6b8;
  --q-gold:#e2b963;
  --q-gold-soft:#f0cf87;
  --q-border:rgba(226,185,99,.24);
  --q-shadow:0 20px 55px rgba(0,0,0,.38),0 0 35px rgba(187,124,45,.08);
}
html[data-qisatok-theme="dark"] body,
html[data-qisatok-theme="dark"] .qisatok-home,
html[data-qisatok-theme="dark"] .qisatok-story,
html[data-qisatok-theme="dark"] .qisatok-archive,
html[data-qisatok-theme="dark"] .qisatok-story-body,
html[data-qisatok-theme="dark"] .qisatok-home-inner{
  background:
    radial-gradient(circle at 88% 4%,rgba(204,139,57,.13),transparent 28%),
    radial-gradient(circle at 10% 45%,rgba(124,62,35,.09),transparent 35%),
    linear-gradient(180deg,#17130f 0%,#100e0c 58%,#0d0c0b 100%)!important;
  color:var(--q-text)!important;
}
html[data-qisatok-theme="dark"] .qisatok-home-section,
html[data-qisatok-theme="dark"] .qisatok-story-main,
html[data-qisatok-theme="dark"] .qisatok-story-content{
  background:transparent!important;
}
html[data-qisatok-theme="dark"] .qisatok-home-hero{
  background:radial-gradient(circle at 80% 20%,rgba(219,158,65,.14),transparent 35%),linear-gradient(145deg,#1d1712,#100e0c)!important;
  box-shadow:inset 0 0 70px rgba(219,158,65,.045);
}
html[data-qisatok-theme="dark"] .qisatok-home-hero__text h1{
  color:var(--q-gold)!important;
  text-shadow:0 2px 18px rgba(223,168,83,.17),0 1px 2px rgba(0,0,0,.4)!important;
}
html[data-qisatok-theme="dark"] .qisatok-home-hero__text p,
html[data-qisatok-theme="dark"] .qisatok-home-heading p,
html[data-qisatok-theme="dark"] .qisatok-section-heading p{color:var(--q-muted)!important}
html[data-qisatok-theme="dark"] .qisatok-home-heading h2,
html[data-qisatok-theme="dark"] .qisatok-section-heading h2,
html[data-qisatok-theme="dark"] .qisatok-story-title{color:#fff7ee!important}
html[data-qisatok-theme="dark"] .qisatok-text-button{color:var(--q-gold-soft)!important}
html[data-qisatok-theme="dark"] .qisatok-story-card,
html[data-qisatok-theme="dark"] .qisatok-chapter-update-card,
html[data-qisatok-theme="dark"] .qisatok-term-card,
html[data-qisatok-theme="dark"] .qisatok-author-tile,
html[data-qisatok-theme="dark"] .qisatok-author-card,
html[data-qisatok-theme="dark"] .qisatok-panel,
html[data-qisatok-theme="dark"] .qisatok-chapters-panel,
html[data-qisatok-theme="dark"] .qisatok-rating-panel,
html[data-qisatok-theme="dark"] .qisatok-author-profile__inner,
html[data-qisatok-theme="dark"] .qisatok-comments-section{
  background:linear-gradient(155deg,rgba(39,31,25,.97),rgba(27,23,20,.98))!important;
  border-color:var(--q-border)!important;
  color:var(--q-text)!important;
  box-shadow:var(--q-shadow)!important;
}
html[data-qisatok-theme="dark"] .qisatok-story-card:hover,
html[data-qisatok-theme="dark"] .qisatok-chapter-update-card:hover{
  box-shadow:0 24px 62px rgba(0,0,0,.43),0 0 38px rgba(208,149,65,.12)!important;
}
html[data-qisatok-theme="dark"] .qisatok-story-card h3,
html[data-qisatok-theme="dark"] .qisatok-story-card h3 a,
html[data-qisatok-theme="dark"] .qisatok-chapter-update-card h3,
html[data-qisatok-theme="dark"] .qisatok-chapter-update-card h3 a,
html[data-qisatok-theme="dark"] .qisatok-author-profile h1{color:#fff7ee!important}
html[data-qisatok-theme="dark"] .qisatok-story-card__author,
html[data-qisatok-theme="dark"] .qisatok-chapter-update-card__author,
html[data-qisatok-theme="dark"] .qisatok-story-card__stats,
html[data-qisatok-theme="dark"] .qisatok-chapter-update-card__meta,
html[data-qisatok-theme="dark"] .qisatok-story-meta,
html[data-qisatok-theme="dark"] .qisatok-story-intro,
html[data-qisatok-theme="dark"] .qisatok-author-profile p{color:var(--q-muted)!important}
html[data-qisatok-theme="dark"] .qisatok-story-card__chips a,
html[data-qisatok-theme="dark"] .qisatok-story-card__chips span,
html[data-qisatok-theme="dark"] .qisatok-story-card__category,
html[data-qisatok-theme="dark"] .qisatok-badge--light,
html[data-qisatok-theme="dark"] .qisatok-badge--soft,
html[data-qisatok-theme="dark"] .qisatok-story-tags a{
  background:linear-gradient(145deg,rgba(71,55,41,.96),rgba(45,37,31,.96))!important;
  color:var(--q-gold-soft)!important;
  border-color:rgba(226,185,99,.34)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
html[data-qisatok-theme="dark"] .qisatok-story-hero__overlay{
  background:linear-gradient(105deg,rgba(15,13,11,.98) 7%,rgba(22,18,15,.89) 57%,rgba(181,119,44,.26)),linear-gradient(to bottom,transparent 65%,#100e0c)!important;
}
html[data-qisatok-theme="dark"] .qisatok-story-cover{
  background:linear-gradient(145deg,#2c241d,#17130f)!important;
  border:1px solid rgba(226,185,99,.25)!important;
  box-shadow:0 20px 55px rgba(0,0,0,.45),0 0 32px rgba(204,139,57,.08)!important;
}
html[data-qisatok-theme="dark"] .qisatok-button--primary{
  background:linear-gradient(135deg,#d0a84f,#e2bd70)!important;
  color:#21180e!important;border-color:#e2bd70!important;
  box-shadow:0 10px 28px rgba(205,150,67,.20)!important;
}
html[data-qisatok-theme="dark"] .qisatok-button--secondary,
html[data-qisatok-theme="dark"] .qisatok-button:not(.qisatok-button--primary){
  background:linear-gradient(145deg,#fbf6ef,#e9e0d5)!important;
  color:#211c18!important;border-color:#d8cbbb!important;
}
html[data-qisatok-theme="dark"] .qisatok-button--disabled,
html[data-qisatok-theme="dark"] .qisatok-button[disabled]{opacity:.62!important}
html[data-qisatok-theme="dark"] .qisatok-chapter-item{
  background:linear-gradient(145deg,#29221c,#1c1815)!important;
  border-color:rgba(226,185,99,.24)!important;color:var(--q-text)!important;
}
html[data-qisatok-theme="dark"] .qisatok-chapter-item__date,
html[data-qisatok-theme="dark"] .qisatok-chapter-item__resume{color:#c9bcaf!important}
html[data-qisatok-theme="dark"] .qisatok-author-profile{
  background:radial-gradient(circle at 80% 10%,rgba(224,175,93,.16),transparent 40%),linear-gradient(180deg,#17130f,#100e0c)!important;
}
html[data-qisatok-theme="dark"] .qisatok-author-profile__stats div{background:linear-gradient(145deg,#332a22,#241f1a)!important;border-color:rgba(226,185,99,.25)!important}
html[data-qisatok-theme="dark"] .qisatok-author-profile__stats strong{color:#fff4e7!important}
html[data-qisatok-theme="dark"] .qisatok-author-profile__stats span{color:#cdbfb1!important}
html[data-qisatok-theme="dark"] .qisatok-breadcrumbs{background:#16120f!important;color:#c8baac!important}
html[data-qisatok-theme="dark"] .qisatok-breadcrumbs a{color:var(--q-gold-soft)!important}
html[data-qisatok-theme="dark"] .qisatok-install-banner__copy span{color:#c9bcaf!important}

/* Keep the desktop account control exactly as originally designed; no letter fallback bubble. */
@media(min-width:768px){
  .qisatok-header-account .qisatok-member-avatar-fallback{display:none!important}
}


/* ===== Consolidated from qisatok-night-luminous.css (v0.5.21 order preserved) ===== */

/* Qisatok 0.5.19 — focused warm luminous night palette.
 * Visual corrections only: colors, contrast, glow, shadows and hero title balance.
 */
html[data-qisatok-theme="dark"]{
  --q-night-deep:#0f0b09;
  --q-night-bg:#17100c;
  --q-night-surface:#24170f;
  --q-night-surface-2:#312015;
  --q-night-surface-3:#3c281a;
  --q-night-text:#fff8ef;
  --q-night-muted:#d8c9bb;
  --q-night-gold:#d8ad5d;
  --q-night-gold-soft:#f0cf89;
  --q-night-terra:#b86a4b;
  --q-night-line:rgba(216,173,93,.30);
  --q-night-glow:rgba(216,155,61,.18);
  color-scheme:dark;
  background:var(--q-night-deep)!important;
}

html[data-qisatok-theme="dark"] body{
  color:var(--q-night-text)!important;
  background:
    radial-gradient(760px 420px at 88% 3%,rgba(201,145,62,.16),transparent 68%),
    radial-gradient(650px 460px at 7% 48%,rgba(184,106,75,.11),transparent 70%),
    linear-gradient(180deg,#1a120e 0%,#120e0b 52%,#0d0b09 100%)!important;
}

html[data-qisatok-theme="dark"] body :is(
  #page,.site,.site-content,.site-main,.content-area,.entry-content,main,
  .qisatok-home,.qisatok-home-inner,.qisatok-home-section,
  .qisatok-story,.qisatok-story-body,.qisatok-story-main,.qisatok-story-content,
  .qisatok-archive,.qisatok-archive-body,.qisatok-chapter-updates-page,
  .qisatok-directory-body,.qisatok-search-page,.qisatok-members,.qisatok-official-page
){background-color:transparent!important;color:var(--q-night-text)!important}

/* Header and footer share the exact same palette. */
html[data-qisatok-theme="dark"] body :is(
  .site-header,.site-header-row-container-inner,
  .site-footer,.site-footer-wrap,#colophon,
  .site-top-footer-wrap,.site-middle-footer-wrap,.site-bottom-footer-wrap,
  .site-footer-row-container-inner
){
  background:
    radial-gradient(560px 160px at 86% 0%,rgba(216,173,93,.08),transparent 72%),
    linear-gradient(110deg,#241810 0%,#1a120e 48%,#120e0b 100%)!important;
  color:var(--q-night-text)!important;
  border-color:rgba(216,173,93,.19)!important;
  box-shadow:0 10px 34px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,245,225,.035)!important;
}
html[data-qisatok-theme="dark"] body .site-footer{
  border-top:1px solid rgba(216,173,93,.26)!important;
}
html[data-qisatok-theme="dark"] body .site-bottom-footer-wrap{
  background:linear-gradient(110deg,#1f150f,#150f0c)!important;
}
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) :is(p,span,li,h1,h2,h3,h4,h5,h6,.widget-title,.site-info-inner){
  color:#f7ede2!important;opacity:1!important;
}
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) a,
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) a:visited{
  color:var(--q-night-gold-soft)!important;opacity:1!important;text-decoration-color:rgba(240,207,137,.48)!important;
}
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) svg{
  color:var(--q-night-gold-soft)!important;fill:currentColor!important;background:transparent!important;
}
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) :is(.social-button,.social-link,.kadence-svg-iconset,.footer-social-inner-wrap a){
  color:var(--q-night-gold-soft)!important;background:rgba(216,173,93,.08)!important;border-color:rgba(216,173,93,.24)!important;
}

/* Main hero: keep the decorative first line, stabilize the second line. */
.qisatok-home-hero__text h1{
  direction:rtl!important;
  unicode-bidi:plaintext;
  text-wrap:balance;
}
.qisatok-home-hero__text h1 span:first-child{
  font-family:"Aref Ruqaa","Amiri",serif!important;
  font-weight:700!important;
  line-height:1.34!important;
}
.qisatok-home-hero__text h1 span:last-child{
  font-family:"Cairo","Tajawal",sans-serif!important;
  font-size:.72em!important;
  font-weight:700!important;
  line-height:1.55!important;
  word-spacing:.08em!important;
  letter-spacing:0!important;
  margin-top:.18em!important;
}
html[data-qisatok-theme="dark"] body .qisatok-home-hero{
  background:
    radial-gradient(620px 330px at 82% 16%,rgba(216,173,93,.16),transparent 66%),
    linear-gradient(145deg,rgba(44,29,19,.97),rgba(18,14,11,.99))!important;
  box-shadow:inset 0 0 78px rgba(216,155,61,.05),0 26px 64px rgba(0,0,0,.30),0 0 34px rgba(216,155,61,.07)!important;
}

html[data-qisatok-theme="dark"] body .qisatok-home-hero__text h1{
  color:var(--q-night-gold)!important;
  text-shadow:0 2px 18px rgba(216,173,93,.21),0 1px 2px rgba(0,0,0,.62)!important;
}

/* Major headings and supporting copy. */
html[data-qisatok-theme="dark"] body :is(
  h1,h2,h3,h4,h5,h6,
  .qisatok-home-heading h2,.qisatok-section-heading h2,.qisatok-story-title,
  .qisatok-archive-hero h1,.qisatok-directory-hero h1,
  .qisatok-story-card h3,.qisatok-story-card h3 a,
  .qisatok-chapter-update-card h3,.qisatok-chapter-update-card h3 a,
  .qisatok-author-card h2,.qisatok-author-card h2 a
){color:var(--q-night-text)!important}
html[data-qisatok-theme="dark"] body :is(
  p,li,label,.entry-summary,.qisatok-home-heading p,.qisatok-section-heading p,
  .qisatok-home-hero__text p,.qisatok-story-intro,.qisatok-story-meta,
  .qisatok-story-card__author,.qisatok-story-card__stats,
  .qisatok-chapter-update-card__author,.qisatok-chapter-update-card__meta,
  .qisatok-author-card__content>span,.qisatok-author-card__content p
){color:var(--q-night-muted)!important}
html[data-qisatok-theme="dark"] body a{color:var(--q-night-gold-soft)}
html[data-qisatok-theme="dark"] body .qisatok-text-button{color:var(--q-night-gold-soft)!important}

/* Warm depth for cards, panels and directories. */
html[data-qisatok-theme="dark"] body :is(
  .qisatok-story-card,.qisatok-chapter-update-card,.qisatok-term-card,
  .qisatok-author-tile,.qisatok-author-card,.qisatok-panel,
  .qisatok-chapters-panel,.qisatok-rating-panel,.qisatok-comments-section,
  .qisatok-author-profile__inner,.qisatok-member-card,.qisatok-library-section,
  .qisatok-auth-layout,.qisatok-official-card,.qisatok-search-panel,
  .qisatok-smart-search__panel,.qisatok-contact-email,.qisatok-contact-form-card
){
  background:
    radial-gradient(420px 190px at 100% 0%,rgba(216,155,61,.105),transparent 70%),
    linear-gradient(155deg,rgba(49,32,21,.98),rgba(27,21,17,.99))!important;
  border-color:var(--q-night-line)!important;
  color:var(--q-night-text)!important;
  box-shadow:0 20px 48px rgba(0,0,0,.34),0 0 28px rgba(216,155,61,.07),inset 0 1px 0 rgba(255,244,224,.035)!important;
}
html[data-qisatok-theme="dark"] body :is(.qisatok-story-card,.qisatok-chapter-update-card,.qisatok-author-tile,.qisatok-term-card):hover{
  box-shadow:0 24px 58px rgba(0,0,0,.40),0 0 34px rgba(216,155,61,.13),inset 0 1px 0 rgba(255,244,224,.05)!important;
}

/* Fix every light pill whose text had disappeared. */
html[data-qisatok-theme="dark"] body :is(
  .qisatok-author-card__stats span,
  .qisatok-author-profile__stats div,
  .qisatok-author-tile div span,
  .qisatok-library-section .qisatok-section-heading span,
  .qisatok-story-card__chips a,.qisatok-story-card__chips span,
  .qisatok-story-card__category,.qisatok-badge--light,.qisatok-badge--soft,
  .qisatok-story-tags a,.qisatok-chapter-range button
){
  background:linear-gradient(145deg,rgba(63,43,29,.98),rgba(39,30,24,.98))!important;
  color:var(--q-night-gold-soft)!important;
  border-color:rgba(216,173,93,.34)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 6px 16px rgba(0,0,0,.12)!important;
  opacity:1!important;
}
html[data-qisatok-theme="dark"] body .qisatok-author-card__stats span,
html[data-qisatok-theme="dark"] body .qisatok-author-profile__stats :is(strong,span){
  color:var(--q-night-gold-soft)!important;
}

html[data-qisatok-theme="dark"] body .qisatok-chapter-item{
  background:radial-gradient(260px 100px at 100% 0%,rgba(216,155,61,.08),transparent 72%),linear-gradient(145deg,#302116,#1d1713)!important;
  border-color:var(--q-night-line)!important;color:var(--q-night-text)!important;
  box-shadow:0 11px 28px rgba(0,0,0,.22)!important;
}
html[data-qisatok-theme="dark"] body .qisatok-story-hero__overlay{
  background:linear-gradient(105deg,rgba(15,12,10,.98) 8%,rgba(31,21,15,.90) 58%,rgba(184,106,75,.22)),linear-gradient(to bottom,transparent 61%,#100d0b 100%)!important;
}
html[data-qisatok-theme="dark"] body .qisatok-story-cover{
  background:linear-gradient(145deg,#342319,#18120f)!important;
  border-color:rgba(216,173,93,.29)!important;
  box-shadow:0 22px 58px rgba(0,0,0,.46),0 0 34px rgba(216,155,61,.11)!important;
}

/* Buttons remain readable. */
html[data-qisatok-theme="dark"] body .qisatok-button--primary{
  background:linear-gradient(135deg,#c99d48,#e1bd6a)!important;
  color:#21160d!important;border-color:#e1bd6a!important;
  box-shadow:0 10px 28px rgba(209,151,62,.24),0 0 18px rgba(216,173,93,.08)!important;
}
html[data-qisatok-theme="dark"] body .qisatok-button--secondary,
html[data-qisatok-theme="dark"] body .qisatok-button:not(.qisatok-button--primary){
  background:linear-gradient(145deg,#fffaf3,#eadfd2)!important;
  color:#211a16!important;border-color:#d9c9b7!important;
  box-shadow:0 9px 22px rgba(0,0,0,.17)!important;
}
html[data-qisatok-theme="dark"] body :is(input,textarea,select){
  background:#1d1713!important;border-color:rgba(216,173,93,.28)!important;color:var(--q-night-text)!important;
}

html[data-qisatok-theme="dark"] body .qisatok-theme-toggle{
  background:linear-gradient(145deg,#332219,#211814)!important;
  border-color:rgba(216,173,93,.34)!important;color:var(--q-night-gold-soft)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.24),0 0 16px rgba(216,155,61,.08)!important;
}

/* Performance-conscious mobile rendering: keep the identity, reduce expensive blur layers. */
@media(max-width:767px){
  .qisatok-home-hero__text h1 span:first-child{font-size:1em!important;line-height:1.42!important}
  .qisatok-home-hero__text h1 span:last-child{font-size:.62em!important;line-height:1.65!important;margin-top:.22em!important}
  html[data-qisatok-theme="dark"] body{
    background:radial-gradient(520px 300px at 95% 0%,rgba(201,145,62,.13),transparent 68%),linear-gradient(180deg,#18110d 0%,#100d0b 58%,#0d0b09 100%)!important;
  }
  html[data-qisatok-theme="dark"] body :is(.qisatok-story-card,.qisatok-chapter-update-card,.qisatok-term-card,.qisatok-author-tile){
    box-shadow:0 14px 31px rgba(0,0,0,.29),0 0 18px rgba(216,155,61,.05)!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .qisatok-home-hero__image img{animation:none!important;will-change:auto!important}
}


/* ===== Consolidated from qisatok-stability.css (v0.5.21 order preserved) ===== */

/* Qisatok Core 0.5.21 — visual stability and performance polish only.
 * No route, template, taxonomy, query or link changes.
 */

/* ---------- Hero title: elegant, stable and readable on every width ---------- */
.qisatok-home-hero__text h1{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start;
  gap:.08em;
  max-width:760px;
  margin-inline:auto;
  direction:rtl!important;
  unicode-bidi:isolate!important;
  text-align:right;
  letter-spacing:0!important;
  word-spacing:0!important;
  text-wrap:balance;
}
.qisatok-home-hero__text h1 span{
  display:block!important;
  width:100%;
  font-family:"Cairo","Tajawal",sans-serif!important;
  font-style:normal!important;
  font-weight:800!important;
  letter-spacing:0!important;
  word-spacing:0!important;
  line-height:1.35!important;
}
.qisatok-home-hero__text h1 span:first-child{font-size:1em!important}
.qisatok-home-hero__text h1 span:last-child{
  font-size:.73em!important;
  line-height:1.55!important;
  margin-top:.08em!important;
}

/* ---------- Luminous Qisatok night identity ---------- */
html[data-qisatok-theme="dark"]{
  --qs-deep:#0d0907;
  --qs-bg:#130d0a;
  --qs-surface:#21150f;
  --qs-surface-2:#2c1c13;
  --qs-surface-3:#382419;
  --qs-text:#fff9f0;
  --qs-muted:#ddcfc1;
  --qs-gold:#d7aa55;
  --qs-gold-hi:#f2cf81;
  --qs-terra:#a85f42;
  --qs-line:rgba(215,170,85,.34);
  --qs-glow:rgba(222,166,72,.17);
}
html[data-qisatok-theme="dark"] body{
  color:var(--qs-text)!important;
  background:
    radial-gradient(900px 520px at 92% 2%,rgba(211,152,63,.17),transparent 67%),
    radial-gradient(700px 520px at 3% 42%,rgba(168,95,66,.11),transparent 70%),
    linear-gradient(180deg,#1a110d 0%,#120d0a 48%,#0c0907 100%)!important;
}

/* Header + footer use the same exact palette. */
html[data-qisatok-theme="dark"] body :is(
  .site-header,.site-header-row-container-inner,
  .site-footer,.site-footer-wrap,#colophon,
  .site-top-footer-wrap,.site-middle-footer-wrap,.site-bottom-footer-wrap,
  .site-footer-row-container-inner
){
  background:
    radial-gradient(540px 160px at 88% 0%,rgba(215,170,85,.09),transparent 72%),
    linear-gradient(112deg,#251810 0%,#19110d 52%,#110c09 100%)!important;
  color:var(--qs-text)!important;
  border-color:rgba(215,170,85,.20)!important;
  box-shadow:0 11px 34px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,247,230,.04)!important;
}
html[data-qisatok-theme="dark"] body .site-footer{border-top:1px solid rgba(215,170,85,.29)!important}
html[data-qisatok-theme="dark"] body .site-bottom-footer-wrap{
  background:linear-gradient(112deg,#21150f,#130d0a)!important;
}
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) :is(p,span,li,h1,h2,h3,h4,h5,h6,.widget-title,.site-info-inner){
  color:#f9efe3!important;opacity:1!important;
}
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) a,
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) a:visited{
  color:var(--qs-gold-hi)!important;opacity:1!important;
}
html[data-qisatok-theme="dark"] body :is(.site-footer,.site-footer-wrap,#colophon) svg{
  color:var(--qs-gold-hi)!important;fill:currentColor!important;background:transparent!important;
}

/* Hero glow and warm depth. */
html[data-qisatok-theme="dark"] body .qisatok-home-hero{
  background:
    radial-gradient(660px 360px at 83% 15%,rgba(215,170,85,.16),transparent 67%),
    radial-gradient(420px 260px at 16% 86%,rgba(168,95,66,.10),transparent 72%),
    linear-gradient(145deg,rgba(46,29,19,.98),rgba(17,12,9,.99))!important;
  box-shadow:
    inset 0 0 82px rgba(216,155,61,.055),
    0 25px 64px rgba(0,0,0,.32),
    0 0 36px rgba(216,155,61,.08)!important;
}
html[data-qisatok-theme="dark"] body .qisatok-home-hero__text,
html[data-qisatok-theme="dark"] body .qisatok-home-hero__media{background:transparent!important}
html[data-qisatok-theme="dark"] body .qisatok-home-hero__text h1{
  color:var(--qs-gold-hi)!important;
  text-shadow:0 2px 19px rgba(215,170,85,.22),0 1px 2px rgba(0,0,0,.68)!important;
}

/* All important cards/panels: warm gradients and reliable contrast. */
html[data-qisatok-theme="dark"] body :is(
  .qisatok-story-card,.qisatok-chapter-update-card,.qisatok-term-card,
  .qisatok-author-tile,.qisatok-author-card,.qisatok-panel,
  .qisatok-chapters-panel,.qisatok-rating-panel,.qisatok-comments-section,
  .qisatok-author-profile__inner,.qisatok-member-card,.qisatok-library-section,
  .qisatok-auth-layout,.qisatok-official-card,.qisatok-search-panel,
  .qisatok-smart-search__panel,.qisatok-contact-email,.qisatok-contact-form-card
){
  background:
    radial-gradient(430px 200px at 100% 0%,rgba(215,170,85,.11),transparent 70%),
    linear-gradient(154deg,rgba(51,32,21,.99),rgba(25,18,14,.99))!important;
  border-color:var(--qs-line)!important;
  color:var(--qs-text)!important;
  box-shadow:0 20px 48px rgba(0,0,0,.35),0 0 27px rgba(215,170,85,.075),inset 0 1px 0 rgba(255,245,225,.04)!important;
}
html[data-qisatok-theme="dark"] body :is(
  h1,h2,h3,h4,h5,h6,.qisatok-story-title,
  .qisatok-story-card h3,.qisatok-story-card h3 a,
  .qisatok-chapter-update-card h3,.qisatok-chapter-update-card h3 a,
  .qisatok-author-card h2,.qisatok-author-card h2 a,
  .qisatok-author-tile strong
){color:var(--qs-text)!important}
html[data-qisatok-theme="dark"] body :is(
  p,li,label,.entry-summary,.qisatok-home-heading p,.qisatok-section-heading p,
  .qisatok-home-hero__text p,.qisatok-story-intro,.qisatok-story-meta,
  .qisatok-story-card__author,.qisatok-story-card__stats,
  .qisatok-chapter-update-card__author,.qisatok-chapter-update-card__meta,
  .qisatok-author-card__content>span,.qisatok-author-card__content p,
  .qisatok-author-tile p,.qisatok-term-card small
){color:var(--qs-muted)!important;opacity:1!important}
html[data-qisatok-theme="dark"] body a{color:var(--qs-gold-hi)}

/* Light pills must never contain white/invisible text. */
html[data-qisatok-theme="dark"] body :is(
  .qisatok-author-card__stats span,.qisatok-author-profile__stats div,
  .qisatok-author-profile__stats span,.qisatok-author-profile__stats strong,
  .qisatok-author-tile div span,.qisatok-library-section .qisatok-section-heading span,
  .qisatok-story-card__chips a,.qisatok-story-card__chips span,
  .qisatok-story-card__category,.qisatok-badge--light,.qisatok-badge--soft,
  .qisatok-story-tags a,.qisatok-chapter-range button
){
  background:linear-gradient(145deg,rgba(65,43,29,.99),rgba(38,28,22,.99))!important;
  color:var(--qs-gold-hi)!important;
  border-color:rgba(215,170,85,.36)!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Buttons and controls retain readable contrast. */
html[data-qisatok-theme="dark"] body .qisatok-button--primary{
  background:linear-gradient(135deg,#c99c47,#e3bd67)!important;
  color:#21150d!important;border-color:#e3bd67!important;
  box-shadow:0 10px 28px rgba(209,151,62,.25),0 0 18px rgba(215,170,85,.09)!important;
}
html[data-qisatok-theme="dark"] body .qisatok-button--secondary,
html[data-qisatok-theme="dark"] body .qisatok-button:not(.qisatok-button--primary){
  background:linear-gradient(145deg,#fffaf3,#eadfd2)!important;
  color:#211a16!important;border-color:#d9c9b7!important;
}
html[data-qisatok-theme="dark"] body :is(input,textarea,select){
  background:#1d1612!important;border-color:rgba(215,170,85,.30)!important;color:var(--qs-text)!important;
}

/* ---------- Performance: preserve character, reduce GPU cost on small screens ---------- */
@media(max-width:767px){
  .qisatok-home-hero__text h1{
    align-items:center;
    text-align:center;
    max-width:100%;
    gap:.12em;
  }
  .qisatok-home-hero__text h1 span:first-child{
    font-size:clamp(34px,10.4vw,46px)!important;
    line-height:1.32!important;
  }
  .qisatok-home-hero__text h1 span:last-child{
    font-size:clamp(25px,7.5vw,34px)!important;
    line-height:1.55!important;
    max-width:96%;
    margin-inline:auto;
  }
  html[data-qisatok-theme="dark"] body{
    background:radial-gradient(520px 300px at 95% 0%,rgba(201,145,62,.13),transparent 68%),linear-gradient(180deg,#18100c 0%,#100c09 58%,#0c0907 100%)!important;
  }
  html[data-qisatok-theme="dark"] body :is(.qisatok-story-card,.qisatok-chapter-update-card,.qisatok-term-card,.qisatok-author-tile){
    box-shadow:0 14px 30px rgba(0,0,0,.29),0 0 15px rgba(215,170,85,.045)!important;
  }
  /* Avoid permanent GPU layers and expensive continuous animation on phones. */
  .qisatok-home-hero__image img{will-change:auto!important;animation-duration:6s!important}
}

@media(prefers-reduced-motion:reduce){
  .qisatok-home-hero__image img{animation:none!important;transform:none!important;will-change:auto!important}
}
