/* ==========================================================
   Tiqani — main stylesheet (RTL-first)
   ========================================================== */

:root {
	--accent: #2563eb;
	--accent-ink: #fff;
	--bg: #f6f7fb;
	--surface: #ffffff;
	--surface-2: #eef1f7;
	--text: #0f172a;
	--muted: #5b6478;
	--border: #e2e6ef;
	--code-bg: #0d1117;
	--code-text: #e6edf3;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
	--font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
	--container: 1200px;
}

[data-theme="dark"] {
	--bg: #0b1020;
	--surface: #121a2e;
	--surface-2: #1a2440;
	--text: #e7ebf5;
	--muted: #98a2b8;
	--border: #24304d;
	--code-bg: #070b16;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.85;
	color: var(--text);
	background: var(--bg);
	transition: background .25s, color .25s;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.screen-reader-text, .skip-link {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 999;
	top: 10px; inset-inline-start: 10px; padding: 10px 16px;
	background: var(--accent); color: var(--accent-ink); border-radius: 8px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- progress bar ---------- */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--border);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.site-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.site-title:hover { text-decoration: none; }
.logo-mark {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
	background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: .8rem; direction: ltr;
}
.custom-logo { max-height: 48px; width: auto; }

.main-nav { margin-inline-start: auto; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 8px 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .95rem;
}
.main-nav .menu a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-cat > a { background: var(--surface-2); text-decoration: none; color: var(--accent); }
.main-nav .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; gap: 6px; }
.icon-btn {
	width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--border);
	border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; transition: .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.mode-toggle .i-sun { display: none; }
[data-theme="dark"] .mode-toggle .i-sun { display: block; }
[data-theme="dark"] .mode-toggle .i-moon { display: none; }
.menu-toggle { display: none; }

.header-search { border-top: 1px solid var(--border); padding: 14px 0; background: var(--surface); }

@media (max-width: 900px) {
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-inline-start: auto; }
	.main-nav {
		position: absolute; top: 100%; inset-inline: 0; margin: 0; background: var(--surface);
		border-bottom: 1px solid var(--border); padding: 10px 20px 16px; display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 0 0; }
}

/* ---------- search form ---------- */
.search-form { display: flex; gap: 8px; }
.search-field {
	flex: 1; min-width: 0; padding: 12px 16px; font: inherit; font-size: .95rem; color: var(--text);
	background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.search-submit, .btn, .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border: 0; border-radius: 12px;
	background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: .2s;
}
.search-submit:hover, .btn:hover, .comment-form .submit:hover { filter: brightness(1.1); text-decoration: none; transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
	padding: 64px 0 56px; text-align: center; border-bottom: 1px solid var(--border);
	background:
		radial-gradient(700px 300px at 80% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
		radial-gradient(600px 300px at 10% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
		var(--surface);
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .35em; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0 auto 28px; max-width: 620px; }
.hero-search { max-width: 560px; margin: 0 auto; }

/* ---------- layout ---------- */
.site-main { padding-block: 32px 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }

.section-title { font-size: 1.35rem; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 6px; height: 1.2em; border-radius: 3px; background: var(--accent); }

/* ---------- featured ---------- */
.featured {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 36px; overflow: hidden;
	background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow);
}
.featured-thumb { display: block; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.featured:hover .featured-thumb img { transform: scale(1.04); }
.featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.featured-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.featured-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 6px 0; }
.featured-title a { color: var(--text); }
.featured-body p { color: var(--muted); margin: 0 0 8px; }
.featured .btn { align-self: flex-start; margin-top: 10px; }
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } .featured-body { padding: 22px; } }

/* ---------- cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .post-grid, .post-grid.grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 701px) and (max-width: 1000px) { .post-grid.grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card {
	display: flex; flex-direction: column; overflow: hidden; background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card-thumb { display: block; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder {
	display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--mono); font-size: 2rem; direction: ltr;
	color: color-mix(in srgb, var(--accent) 60%, var(--muted));
	background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--accent) 12%, var(--surface-2)));
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.08rem; margin: 4px 0 2px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-excerpt { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.75; flex: 1; }
.card-meta { display: flex; gap: 8px; color: var(--muted); font-size: .8rem; margin-top: 8px; }

.cat-badge {
	align-self: flex-start; display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
	color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.cat-badge:hover { text-decoration: none; background: var(--accent); color: var(--accent-ink); }

/* ---------- pagination ---------- */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500;
}
.page-numbers.current, .page-numbers:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); text-decoration: none; }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1000px) { .sidebar { position: static; } }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 1.02rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--text); }
.widget li a:hover { color: var(--accent); }
.mini-posts a { display: flex; gap: 12px; align-items: center; font-size: .92rem; line-height: 1.6; }
.mini-posts img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cat-list li { display: flex; justify-content: space-between; color: var(--muted); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- archive ---------- */
.archive-header {
	margin-bottom: 28px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.archive-title { font-size: 1.6rem; margin: 0; }
.archive-title span { color: var(--accent); }
.archive-desc { color: var(--muted); margin-top: 8px; }
.archive-search { margin-top: 16px; max-width: 520px; }

/* ---------- single ---------- */
.single-post {
	background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
	padding: clamp(20px, 4vw, 44px);
}
.entry-header { margin-bottom: 22px; }
.entry-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 12px 0 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .88rem; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { width: 16px; height: 16px; fill: currentColor; opacity: .8; }
.meta-item a { color: var(--muted); }
.entry-thumb { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { width: 100%; }

.entry-content { font-size: 1.07rem; overflow-wrap: anywhere; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { font-size: 1.55rem; margin-top: 1.8em; padding-bottom: .3em; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.5em; scroll-margin-top: 90px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { border-radius: 12px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content blockquote {
	margin-inline: 0; padding: 16px 22px; border-inline-start: 4px solid var(--accent);
	background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--text);
}
[dir="rtl"] .entry-content blockquote { border-radius: 12px 0 0 12px; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: start; }
.entry-content th { background: var(--surface-2); font-weight: 600; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* notice boxes: add class "note", "tip" or "warning" to a paragraph/group block */
.entry-content .note, .entry-content .tip, .entry-content .warning {
	padding: 14px 18px 14px 18px; border-radius: 12px; border: 1px solid; font-size: .98rem;
}
.entry-content .note { background: color-mix(in srgb, #3b82f6 10%, transparent); border-color: color-mix(in srgb, #3b82f6 35%, transparent); }
.entry-content .tip { background: color-mix(in srgb, #10b981 10%, transparent); border-color: color-mix(in srgb, #10b981 35%, transparent); }
.entry-content .warning { background: color-mix(in srgb, #f59e0b 12%, transparent); border-color: color-mix(in srgb, #f59e0b 40%, transparent); }

/* ---------- code ---------- */
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code {
	direction: ltr; unicode-bidi: isolate; padding: 2px 7px; border-radius: 6px; font-size: .88em;
	background: var(--surface-2); color: color-mix(in srgb, var(--accent) 70%, var(--text)); border: 1px solid var(--border);
}
kbd { padding: 2px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; font-size: .85em; background: var(--surface); }
.code-wrap { position: relative; margin-bottom: 1.4em; }
.entry-content pre, .wp-block-code {
	direction: ltr; text-align: left; margin: 0; padding: 44px 20px 18px; overflow-x: auto; border-radius: 12px;
	background: var(--code-bg); color: var(--code-text); font-size: .9rem; line-height: 1.7; border: 1px solid #1f2937;
}
.entry-content pre code, .wp-block-code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.code-wrap::before {
	content: ""; position: absolute; top: 16px; left: 18px; width: 10px; height: 10px; border-radius: 50%;
	background: #ff5f57; box-shadow: 16px 0 #febc2e, 32px 0 #28c840; z-index: 1;
}
.copy-btn {
	position: absolute; top: 8px; right: 10px; z-index: 2; padding: 4px 12px; font: 500 .78rem var(--font);
	color: #cbd5e1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.copy-btn.done { color: #4ade80; border-color: #4ade80; }

/* ---------- TOC ---------- */
.toc {
	margin: 0 0 28px; padding: 18px 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.toc-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; }
.toc-head button { background: none; border: 0; color: var(--accent); font: inherit; font-size: .85rem; cursor: pointer; }
.toc ol { margin: 12px 0 0; padding-inline-start: 1.3em; }
.toc li { margin: 4px 0; font-size: .95rem; }
.toc li.lvl-3 { margin-inline-start: 1.1em; list-style-type: circle; font-size: .9rem; }
.toc a { color: var(--text); }
.toc a:hover, .toc a.active { color: var(--accent); }
.toc.collapsed ol { display: none; }

/* ---------- entry footer ---------- */
.entry-footer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .84rem; border: 1px solid var(--border); }
.tags a::before { content: "#"; opacity: .6; }
.tags a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; }
.share a { padding: 7px 14px; border-radius: 10px; color: #fff; font-size: .85rem; font-weight: 500; }
.share a:hover { text-decoration: none; filter: brightness(1.1); }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; }
.share-x { background: #111; }
.share-facebook { background: #1877f2; }

.author-box {
	display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 20px; background: var(--surface-2); border-radius: var(--radius);
}
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box h3 { margin: 0 0 4px; font-size: 1.05rem; }
.author-box h3 a { color: var(--text); }
.author-box p { margin: 0; color: var(--muted); font-size: .92rem; }

.post-navigation { margin-top: 28px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); height: 100%; }
.post-navigation a:hover { border-color: var(--accent); text-decoration: none; }
.post-navigation .nav-next { text-align: end; }
.nav-label { display: block; font-size: .8rem; color: var(--muted); }
.nav-title { display: block; font-weight: 600; margin-top: 4px; line-height: 1.6; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } }

.related { margin-top: 40px; }

/* ---------- comments ---------- */
.comments-area { margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: var(--muted); }
.reply a { font-size: .85rem; font-weight: 600; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--accent); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* ---------- ads ---------- */
.ad-slot { margin: 20px auto; text-align: center; max-width: var(--container); padding-inline: 20px; overflow: hidden; }

/* ---------- 404 / none ---------- */
.error-404, .no-results { text-align: center; padding: 60px 20px; max-width: 560px; margin: 0 auto; }
.code-404 { font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 600; line-height: 1; color: var(--accent); direction: ltr; }
.error-404 .search-form { margin: 22px 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 40px; font-size: .92rem; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 28px; }
.footer-widgets .widget { background: none; border: 0; padding: 0; }
@media (max-width: 800px) { .footer-widgets { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.footer-menu a, .social a { color: var(--muted); }
.footer-menu a:hover, .social a:hover { color: var(--accent); }
.social { display: flex; gap: 14px; }

.to-top {
	position: fixed; bottom: 22px; left: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; z-index: 40;
	background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- WP core ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky .card { border-color: var(--accent); }
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .sidebar, .site-footer, .share, .related, .comments-area, .to-top, .progress, .ad-slot, .toc { display: none !important; }
	.layout { display: block; }
	.single-post { border: 0; padding: 0; }
}
