/* generated from site/style.css by to_theme_css.py: edit the source, not this file */
/* WordPress adds margins between blocks (:root :where(.is-layout-flow) > *). Clear them first, at the same low
   weight, so every component rule below can set its own spacing. */
:root :where(.wp-block-post-content, .wp-block-post-content .wp-block-group) > * { margin-block: 0; }
:root :where(.wp-block-post-content .wp-block-buttons) { margin-block: 0; }
:root :where(.wp-block-image) { margin: 0; }
/* headings inherit the body's line-height as in the static design; components set their own sizes */
:root :where(h1, h2, h3, h4, h5, h6) { margin: 0; line-height: inherit; letter-spacing: normal; }

/* MNLogic — الموقع التعريفي. عرض التصميم 1440px.
   كل قياس = قيمة التصميم × --wp--custom--scale (درجات ثابتة عند نقاط التوقف المعتمدة فقط).
   الألوان من المتغيرات فقط، وهي نفسها ألوان التطبيق. */

/* ───────── المتغيرات ───────── */
:root, body {
	--wp--custom--scale: 1;
	--gutter: 30px;
	--container: calc(1180px * var(--wp--custom--scale) + 2 * var(--gutter));
	--canvas: #ffffff;
	--surface: #ffffff;
	--sunken: #f3f5f4;
	--ink: #121514;
	--muted: #5d6763;
	--line: #e1e5e3;
	--edge: #c9cfcc;
	--accent: #0b7a63;
	--accent-edge: #075a49;
	--accent-soft: #e2f3ee;
	--bad: #c2334f;
	--bad-soft: #fbe9ed;
	--on-accent: #ffffff;
	--video: #cc1f1a;
	--video-edge: #8f1512;
	--art-a: #4b6bfb;
	--art-b: #f5b83d;
	--art-c: #9b7bff;
	--font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--font-display: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
	--fs-body: max(16px, calc(18px * var(--wp--custom--scale)));
	--fs-small: max(14px, calc(15px * var(--wp--custom--scale)));
	--fs-lead: max(18px, calc(22px * var(--wp--custom--scale)));
	--fs-h3: max(20px, calc(24px * var(--wp--custom--scale)));
	--fs-h2: max(24px, calc(38px * var(--wp--custom--scale)));
	--fs-h1: max(30px, calc(60px * var(--wp--custom--scale)));
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root, body {
		--canvas: #111413;
		--surface: #171b1a;
		--sunken: #1e2423;
		--ink: #f1f4f2;
		--muted: #9aa5a0;
		--line: #2c3331;
		--edge: #3b4441;
		--accent: #3fd0a8;
		--accent-edge: #239678;
		--accent-soft: #12332b;
		--bad: #ff8fa5;
		--bad-soft: #3a1a22;
		--on-accent: #06231b;
		--video: #e0352e;
		--video-edge: #9e1d18;
		--art-a: #6f88ff;
		--art-b: #f7c555;
		--art-c: #b29bff;
		color-scheme: dark;
	}
}
@media (max-width: 1439px) { :root, body { --wp--custom--scale: calc(1280 / 1440); } }
@media (max-width: 1279px) { :root, body { --wp--custom--scale: calc(992 / 1440); --gutter: 24px; } }
@media (max-width: 991px)  { :root, body { --wp--custom--scale: calc(782 / 1440); } }
@media (max-width: 479px)  { :root, body { --wp--custom--scale: calc(690 / 1440); --gutter: 16px; } }

/* ───────── الأساس ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.8;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.35; }
h1 { font-size: var(--fs-h1); line-height: 1.25; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
a { color: var(--accent); }
main a:not(.btn) { font-weight: 600; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ───────── الأزرار ───────── */
.btn, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 999px;
	border: 2px solid var(--accent);
	border-bottom: 5px solid var(--accent-edge);
	background: var(--accent);
	color: var(--on-accent);
	padding: calc(10px * var(--wp--custom--scale)) calc(30px * var(--wp--custom--scale));
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	transition: transform 0.08s, filter 0.15s;
}
.btn:hover, .wp-block-button__link:hover {
	filter: brightness(1.08);
}
.btn:active, .wp-block-button__link:active {
	transform: translateY(3px);
	border-bottom-width: 2px;
}
.hero .wp-block-button__link, .cta-band .wp-block-button__link {
	font-size: var(--fs-lead);
	padding: calc(12px * var(--wp--custom--scale)) calc(44px * var(--wp--custom--scale));
}
.channel .wp-block-button__link {
	background: var(--video);
	border-color: var(--video);
	border-bottom-color: var(--video-edge);
	color: #ffffff;
	flex-shrink: 0;
}
.btn-sm { padding: calc(4px * var(--wp--custom--scale)) calc(20px * var(--wp--custom--scale)); font-size: var(--fs-small); border-bottom-width: 4px; }

/* رابط بسهم */
.link-p a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	gap: 0.4em;
	font-weight: 700;
	text-decoration: none;
}
.link-p a::after { content: "←"; transition: transform 0.15s; }
.link-p a:hover::after { transform: translateX(-4px); }
.link-p--after { margin-top: calc(24px * var(--wp--custom--scale)); }

/* ───────── الترويسة ───────── */
.site-header { border-bottom: 2px solid var(--line); background: var(--canvas); }
.site-header__in { display: flex; align-items: center; gap: calc(28px * var(--wp--custom--scale)); padding-block: calc(14px * var(--wp--custom--scale)); }
.logo {
	font-family: var(--font-display);
	font-size: max(22px, calc(28px * var(--wp--custom--scale)));
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-decoration: none;
	line-height: 1.4;
}
.logo span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: calc(6px * var(--wp--custom--scale)); margin-inline-end: auto; }
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 calc(14px * var(--wp--custom--scale));
	border-radius: 999px;
	color: var(--ink);
	font-size: max(15px, calc(17px * var(--wp--custom--scale)));
	font-weight: 600;
	text-decoration: none;
}
.site-nav a:hover { background: var(--sunken); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.menu-btn {
	display: none;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	place-items: center;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	padding: 0;
}
.menu-btn svg { width: 20px; height: 20px; }

/* ───────── الأقسام ───────── */
.section { padding-block: calc(88px * var(--wp--custom--scale)); }
.section--tight { padding-block: calc(40px * var(--wp--custom--scale)) calc(20px * var(--wp--custom--scale)); }
.section--first { padding-top: calc(48px * var(--wp--custom--scale)); }
.section--sunken { background: var(--sunken); }
.section__lead { color: var(--muted); font-size: var(--fs-lead); max-width: 46em; margin-top: calc(12px * var(--wp--custom--scale)); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: var(--fs-small); }
.lead { color: var(--muted); font-size: var(--fs-lead); }
.note { color: var(--muted); font-size: var(--fs-small); }
.hl { color: var(--accent); }

/* ───────── الواجهة ───────── */
.hero { padding-block: calc(88px * var(--wp--custom--scale)) calc(72px * var(--wp--custom--scale)); }
.hero__in { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: calc(56px * var(--wp--custom--scale)); }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: calc(20px * var(--wp--custom--scale)); }
.hero__text .lead { max-width: 34em; }
.hero__art {
	display: grid;
	place-items: center;
	background: var(--sunken);
	border: 2px solid var(--line);
	border-radius: calc(40px * var(--wp--custom--scale));
	padding: calc(56px * var(--wp--custom--scale));
}
.shapes { display: block; width: 100%; max-width: calc(380px * var(--wp--custom--scale)); height: auto; }
.art { display: block; height: auto; }
.art--hero { width: 100%; max-width: calc(470px * var(--wp--custom--scale)); }
.hero__art:has(.art--hero) { padding: calc(28px * var(--wp--custom--scale)); }
/* رسوم البطاقات */
.step__art { margin: calc(-6px * var(--wp--custom--scale)) 0 calc(4px * var(--wp--custom--scale)); }
.art--step { width: max(84px, calc(112px * var(--wp--custom--scale))); }
.who__art { margin-bottom: calc(8px * var(--wp--custom--scale)); }
.art--who { width: max(92px, calc(120px * var(--wp--custom--scale))); }
.track { position: relative; }
.track__icon { position: absolute; top: max(16px, calc(24px * var(--wp--custom--scale))); left: max(16px, calc(24px * var(--wp--custom--scale))); }
.art--track { width: max(52px, calc(68px * var(--wp--custom--scale))); }
.track:not(.track--live) .art--track { opacity: .9; }

/* عنوان الصفحات الداخلية */
.page-head { padding-block: calc(64px * var(--wp--custom--scale)) calc(40px * var(--wp--custom--scale)); border-bottom: 2px solid var(--line); background: var(--sunken); }
.page-head .wrap { display: flex; flex-direction: column; gap: calc(12px * var(--wp--custom--scale)); }
.page-head .lead { max-width: 40em; }

/* ───────── البطاقات ───────── */
.cards { display: grid; gap: calc(24px * var(--wp--custom--scale)); margin-top: calc(36px * var(--wp--custom--scale)); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
	background: var(--surface);
	border: 2px solid var(--line);
	border-radius: max(18px, calc(28px * var(--wp--custom--scale)));
	padding: max(20px, calc(30px * var(--wp--custom--scale)));
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: calc(10px * var(--wp--custom--scale));
}
.card > p { color: var(--muted); }
.num {
	display: grid;
	place-items: center;
	width: max(36px, calc(44px * var(--wp--custom--scale)));
	height: max(36px, calc(44px * var(--wp--custom--scale)));
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent) !important;
	font-weight: 700;
	line-height: 1;
}
.tag {
	display: inline-block;
	border-radius: 999px;
	background: var(--sunken);
	color: var(--muted);
	font-size: var(--fs-small);
	font-weight: 700;
	padding: 2px 12px;
}
.tag--accent { background: var(--accent-soft); color: var(--accent) !important; }
.track { border-style: dashed; }
.track--live { border-style: solid; border-color: var(--accent); border-bottom: 5px solid var(--accent-edge); }
.cards--2 > .track--live { grid-column: 1 / -1; }
.track-list { display: grid; gap: calc(24px * var(--wp--custom--scale)); }
.track-list .btn { margin-top: calc(8px * var(--wp--custom--scale)); }

/* المثال */
.example { display: grid; grid-template-columns: 1fr 1fr; gap: calc(24px * var(--wp--custom--scale)); margin-top: calc(36px * var(--wp--custom--scale)); }
.example__trap { border-inline-start: 4px solid var(--edge); padding-inline-start: 0.8em; }
.example__a { border-color: var(--accent); }

/* السؤال التفاعلي: خيارات بنمط التطبيق، والفكرة مقفلة حتى يجيب الزائر (القفل يضيفه السكربت فقط) */
.quiz { border: 0; margin: calc(8px * var(--wp--custom--scale)) 0 0; padding: 0; min-width: 0; width: 100%; }
.quiz__legend { padding: 0; margin-bottom: calc(10px * var(--wp--custom--scale)); font-weight: 700; color: var(--ink); }
.quiz__choices { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12px * var(--wp--custom--scale)); }
.choice {
	font: inherit;
	font-weight: 700;
	color: var(--ink);
	min-height: max(52px, calc(60px * var(--wp--custom--scale)));
	border: 2px solid var(--line);
	border-bottom: 5px solid var(--edge);
	border-radius: max(14px, calc(16px * var(--wp--custom--scale)));
	background: var(--surface);
	padding: 8px 16px;
	text-align: start;
	cursor: pointer;
	transition: transform 0.08s, border-color 0.15s;
}
.choice:hover:not(:disabled) { border-color: var(--edge); }
.choice:active:not(:disabled) { transform: translateY(2px); }
.choice:disabled { cursor: default; }
.choice[data-wrong] { border-color: var(--bad); background: var(--bad-soft); color: var(--ink); }
.choice[data-right] { border-color: var(--accent); border-bottom-color: var(--accent-edge); background: var(--accent-soft); }
.quiz__msg { min-height: 1.8em; margin-top: calc(12px * var(--wp--custom--scale)); font-weight: 600; color: var(--ink); }
.quiz__msg[data-tone="bad"] { color: var(--bad); }
.quiz__msg[data-tone="good"] { color: var(--accent); }
.choice[data-wrong].is-shake { animation: quiz-shake 0.25s ease-in-out 2; }
.example__a.is-pop { animation: quiz-pop 0.5s ease-out; }
@keyframes quiz-shake { 25% { translate: 4px; } 75% { translate: -4px; } }
@keyframes quiz-pop { 0% { scale: 0.97; } 60% { scale: 1.015; } 100% { scale: 1; } }
.example.is-locked .example__a > :not(.example__lock) { display: none; }
.example__a .example__lock { display: none; }
.example.is-locked .example__a { border-style: dashed; border-color: var(--edge); justify-content: center; align-items: center; text-align: center; }
.example.is-locked .example__lock { display: flex; flex-direction: column; align-items: center; gap: calc(12px * var(--wp--custom--scale)); color: var(--muted); }
.example__lock-icon { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--sunken); color: var(--muted); font-size: 22px; line-height: 1; }
.example__skip { font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--muted); background: none; border: 0; padding: 4px; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.example__skip:hover { color: var(--accent); }

/* القناة والدعوة */
.channel { flex-direction: row; align-items: center; gap: calc(32px * var(--wp--custom--scale)); background: var(--sunken); padding: calc(40px * var(--wp--custom--scale)); }
.channel__text { display: flex; flex-direction: column; gap: calc(8px * var(--wp--custom--scale)); flex: 1; min-width: 0; }
.channel__text p { color: var(--muted); }
.cta-band {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(14px * var(--wp--custom--scale));
	text-align: center;
	background: var(--accent-soft);
	border: 2px solid var(--accent);
	border-radius: calc(40px * var(--wp--custom--scale));
	padding: calc(56px * var(--wp--custom--scale)) calc(32px * var(--wp--custom--scale));
}
.cta-band p { color: var(--muted); font-size: var(--fs-lead); }

/* الأسئلة الشائعة */
.faq { display: grid; gap: calc(16px * var(--wp--custom--scale)); margin-top: calc(28px * var(--wp--custom--scale)); }
.faq__item { gap: calc(6px * var(--wp--custom--scale)); }
.faq__item h3 { font-size: max(18px, calc(21px * var(--wp--custom--scale))); }

/* ───────── صفحات النص ───────── */
.prose > * { max-width: calc(820px * var(--wp--custom--scale)); }
.prose > * + * { margin-top: calc(16px * var(--wp--custom--scale)); }
.prose > h2 { margin-top: calc(48px * var(--wp--custom--scale)); font-size: max(22px, calc(30px * var(--wp--custom--scale))); }
.prose > h2:first-child { margin-top: 0; }
.prose > .cards, .prose > .faq { margin-top: calc(20px * var(--wp--custom--scale)); }
.prose > .btn { margin-top: calc(40px * var(--wp--custom--scale)); }
.prose ul { margin: calc(16px * var(--wp--custom--scale)) 0 0; padding-inline-start: 1.3em; display: grid; gap: calc(8px * var(--wp--custom--scale)); }
.prose .card h2 { font-size: var(--fs-h3); }

/* المقالات (قالب single.html) */
.article .page-head h1 { max-width: 22em; }
.article .page-head .lead p { margin: 0; }
.article__body > h3 { margin-top: calc(32px * var(--wp--custom--scale)); }
.article__body ol { margin: calc(16px * var(--wp--custom--scale)) 0 0; padding-inline-start: 1.3em; display: grid; gap: calc(8px * var(--wp--custom--scale)); }
.article__body figure { margin-inline: 0; width: max(260px, calc(440px * var(--wp--custom--scale))); max-width: 100%; }
.article__body figure img { display: block; width: 100%; height: auto; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.article__body figcaption { color: var(--muted); font-size: var(--fs-small); margin-top: 8px; text-align: start; }
.article__body .math { direction: ltr; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.article__body .tip { background: var(--sunken); border: 2px solid var(--line); border-radius: 16px; padding: calc(20px * var(--wp--custom--scale)) calc(24px * var(--wp--custom--scale)); }
.article__body .tip > * + * { margin-top: 8px; }
.grid3 { border-collapse: collapse; direction: ltr; margin-top: calc(16px * var(--wp--custom--scale)); }
.grid3 td { width: 52px; height: 52px; border: 2px solid var(--line); text-align: center; vertical-align: middle; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.grid3 td { color: var(--ink); }
.grid3 td.on { background: var(--accent); color: var(--canvas); }
.grid3 td.hl { background: var(--accent-soft); color: var(--accent); }
.grid3 td.x { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; background: var(--bad-soft); }
.grid3 td.q { color: var(--muted); }
.gridfig, .article__body .gridfig { margin: calc(16px * var(--wp--custom--scale)) 0 0; width: auto; }
.gridfig .grid3 { margin-top: 0; }
.gridfig figcaption { color: var(--muted); font-size: var(--fs-small); margin-top: 8px; max-width: 15em; }
.grids .gridfig { margin-top: 0; }
.grids { margin-top: calc(16px * var(--wp--custom--scale)); display: flex; flex-wrap: wrap; gap: calc(24px * var(--wp--custom--scale)) calc(32px * var(--wp--custom--scale)); }
.grids .grid3 td { width: 42px; height: 42px; font-size: 18px; }
.article__body details { border: 2px solid var(--line); border-radius: 16px; padding: calc(16px * var(--wp--custom--scale)) calc(20px * var(--wp--custom--scale)); }
.article__body details + details { margin-top: 12px; }
.article__body summary { cursor: pointer; font-weight: 600; }
.article__body details > p { margin-top: 10px; }
.article .cta-band { margin-top: 0; }
.mail a { font-size: var(--fs-lead); font-weight: 700; word-break: break-all; display: inline-flex; align-items: center; min-height: 44px; }

/* ───────── التذييل ───────── */
.site-footer { border-top: 2px solid var(--line); background: var(--sunken); padding-block: calc(56px * var(--wp--custom--scale)) calc(32px * var(--wp--custom--scale)); margin-top: calc(40px * var(--wp--custom--scale)); }
.site-footer__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: calc(48px * var(--wp--custom--scale)); }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: calc(10px * var(--wp--custom--scale)); }
.site-footer__tag { color: var(--muted); font-size: var(--fs-small); max-width: 26em; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(24px * var(--wp--custom--scale)); }
.site-footer__nav > div { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__title { font-weight: 700; margin-bottom: calc(6px * var(--wp--custom--scale)); }
.site-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
	font-size: max(15px, calc(16px * var(--wp--custom--scale)));
	text-decoration: none;
}
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__copy { grid-column: 1 / -1; border-top: 2px solid var(--line); padding-top: calc(24px * var(--wp--custom--scale)); color: var(--muted); font-size: var(--fs-small); }

/* ───────── أقل من 992: القائمة زر، والأعمدة تقلّ ───────── */
/* قائمة المقالات: الصفحة /blog/ وقسم الرئيسية وصفحات التصنيف */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: calc(32px * var(--wp--custom--scale)); }
.chip { font: inherit; font-weight: 600; font-size: var(--fs-small); color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip span { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--edge); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--canvas); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .8; }
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(24px * var(--wp--custom--scale)); }
.post-card { padding: 0; overflow: hidden; gap: 0; }
.post-card[hidden] { display: none; }
.post-card > :not(.post-card__img) { margin-inline: max(20px, calc(28px * var(--wp--custom--scale))); }
.post-card__img { display: block; align-self: stretch; aspect-ratio: 16 / 10; background: #fff; border-bottom: 2px solid var(--line); }
.post-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.post-card__img svg { width: 100%; height: 100%; display: block; }
.post-card { transition: transform .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--edge); }
.post-card:hover .post-card__img svg { transform: scale(1.03); }
.post-card__img { overflow: hidden; }
.post-card__img svg { transition: transform .3s ease; }
.art-fig { margin: calc(16px * var(--wp--custom--scale)) 0 0; max-width: calc(520px * var(--wp--custom--scale)); min-width: min(100%, 280px); }
.art-fig svg { display: block; width: 100%; height: auto; }
.art-fig figcaption { color: var(--muted); font-size: var(--fs-small); margin-top: 8px; }
.article .page-head .wrap { display: grid; grid-template-columns: 1fr auto; column-gap: calc(48px * var(--wp--custom--scale)); align-items: center; }
.article .page-head .wrap > :not(.article__art) { grid-column: 1; }
.article__art { grid-column: 2; grid-row: 1 / span 3; width: calc(320px * var(--wp--custom--scale)); border-radius: 20px; overflow: hidden; border: 2px solid var(--line); }
.article__art svg { display: block; width: 100%; height: auto; }
.post-card__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.post-card h3 { margin-top: 12px; font-size: var(--fs-h3); line-height: 1.4; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card > p:not(.post-card__cats):not(.link-p) { margin-top: 10px; color: var(--muted); }
.post-card .link-p { margin-top: auto; padding-top: 16px; padding-bottom: max(20px, calc(28px * var(--wp--custom--scale))); }
.post-list--home { margin-top: calc(36px * var(--wp--custom--scale)); }
.post-list__empty { color: var(--muted); }

@media (max-width: 991px) {
	.post-cards { grid-template-columns: repeat(2, 1fr); }
	.site-header__in { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
	.site-header .logo { margin-left: auto; }
	.menu-btn { display: grid; }
	.site-nav {
		display: none;
		order: 5;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		margin: 0;
		padding-block: 8px 4px;
		border-top: 2px solid var(--line);
	}
	.site-header.is-open .site-nav { display: flex; }
	.site-nav a { padding: 0 16px; font-size: 16px; }
	.btn-sm { padding: 4px 18px; }
	.cards--3 { grid-template-columns: repeat(2, 1fr); }
	.site-footer__in { grid-template-columns: 1fr; }
}

/* ───────── أقل من 782: عمود واحد ───────── */
@media (max-width: 781px) {
	.post-cards { grid-template-columns: 1fr; }
	.article .page-head .wrap { grid-template-columns: 1fr; }
	.article__art { grid-column: 1; grid-row: auto; width: 100%; max-width: 360px; margin-top: 16px; }
	.hero__in { grid-template-columns: 1fr; }
	.hero__art { padding: calc(40px * var(--wp--custom--scale)); }
	.shapes { max-width: 200px; }
	.art--hero { max-width: 340px; }
	.cards--3, .cards--2, .example { grid-template-columns: 1fr; }
	.example.is-locked .example__a { min-height: 180px; }
	.channel { flex-direction: column; align-items: flex-start; }
	.hero .wp-block-button__link, .cta-band .wp-block-button__link { padding-inline: 32px; }
}
@media (max-width: 479px) {
	.site-footer__nav { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   WordPress adapter: parts that exist only in block markup (buttons, captions, forms, templates)
   ========================================================================== */
/* the parent theme sets a background and letter-spacing on body; take the design's */
html body { margin: 0; letter-spacing: normal; }
.wp-block-image img { display: block; }
:root .wp-block-image .wp-element-caption { margin: 0; text-align: left; }
.wp-block-buttons { gap: 12px 16px; }
.wp-block-button__link { text-decoration: none; }
/* ووردبريس: القالب الأب يضيف هوامش وعرضاً للمحتوى؛ نلغيها ليتحكم التصميم */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
:root :where(.wp-site-blocks) > * { margin-block-start: 0; }
:root :where(.is-layout-flow) > *, :root :where(.is-layout-constrained) > * { margin-block-start: 0; }
main.wp-block-group, .wp-block-post-content { margin: 0; padding: 0; max-width: none; }
.wp-block-buttons .wp-block-button { margin: 0; }
.wp-block-button__link { box-shadow: none; }
.wp-block-buttons { display: flex; flex-wrap: wrap; }
.prose > .wp-block-buttons { margin-top: calc(40px * var(--wp--custom--scale)); }
.track-list .wp-block-buttons { margin-top: calc(8px * var(--wp--custom--scale)); }
.wp-block-list { margin: 0; }
footer.wp-block-template-part { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.post-card, .post-card__img svg { transition: none; }
	.post-card:hover { transform: none; }
	* { transition: none !important; }
	.choice.is-shake, .example__a.is-pop { animation: none; }
}

/* لوحة الألوان والخطوط للموقع الأساسي */
@font-face {
  font-family: MNLogic Article Text;
  src: url("fonts/noto-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: MNLogic Article Heading;
  src: url("fonts/alexandria-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}


html { color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

html body {
  color-scheme: inherit;
  --site-width: 1140px;
  --site-gutter: 30px;
  --font-body: "MNLogic Article Text", Tahoma, sans-serif;
  --font-display: "MNLogic Article Heading", "MNLogic Article Text", Tahoma, sans-serif;
  --canvas: #f6f5fa;
  --surface: #ffffff;
  --line: #dedbea;
  --edge: #b2a6ca;
  --ink: #201b30;
  --reading-text: #342f45;
  --muted: #5d566f;
  --reading-violet: #584087;
  --reading-selected: #e8e0fa;
  --reading-head: #efebf9;
  --reading-head-line: #c8bce0;
  --accent: #16634f;
  --on-accent: #ffffff;
  --accent-edge: #104c3e;
  --accent-soft: #e1f0ea;
  --bad: #9b2b4d;
  --bad-soft: #fbe9ee;
  --sunken: #edeaf6;
  --art-c: #a290db;
  --site-band: #f0edf7;
  --violet-edge: #a391c3;
  --violet-chip: #eae1f8;
  --violet-text: #503a78;
  --violet-lead: #554d68;
  --art-violet: #e6dcf5;
  --art-violet-dots: #b9a8d3;
  --art-cover-violet: #e5dbf4;
  --art-cover-dots: #bdacd4;
  --art-mint: #dceee9;
  --art-mint-dots: #94bdb2;
  --art-grid-line: #4f897d;
  --art-grid-base: #d3e7e2;
  --art-grid-row: #a7cfc5;
  --hero-tile: #f2ecfb;
  --hero-tile-em: #d9c8f2;
  --hero-tile-border: #a995c4;
  --hero-tile-shadow: #c7b5dd;
  --hero-tile-text: #4a3574;
  --mint-border: #7faea0;
  --mint-panel: #e8f4ef;
  --mint-tint: #dcf0e9;
  --mint-em: #b9dfd3;
  --mint-em-text: #184c3d;
  --violet-em: #d6c6ef;
  --violet-em-line: #947ab7;
  --violet-hover: #e9e2f5;
  background: var(--canvas);
  color: var(--reading-text);
}

@supports (color: light-dark(#000, #fff)) {
  html body {
    --canvas: light-dark(#f6f5fa, #13141b);
    --surface: light-dark(#ffffff, #1a1c25);
    --line: light-dark(#dedbea, #343747);
    --edge: light-dark(#b2a6ca, #514968);
    --ink: light-dark(#201b30, #f4f2ff);
    --reading-text: light-dark(#342f45, #d4d3e0);
    --muted: light-dark(#5d566f, #b1b1c6);
    --reading-violet: light-dark(#584087, #c9b9ff);
    --reading-selected: light-dark(#e8e0fa, #302746);
    --reading-head: light-dark(#efebf9, #211e32);
    --reading-head-line: light-dark(#c8bce0, #4b4267);
    --accent: light-dark(#16634f, #a7e7cb);
    --on-accent: light-dark(#ffffff, #172722);
    --accent-edge: light-dark(#104c3e, #79c6aa);
    --accent-soft: light-dark(#e1f0ea, #202d2c);
    --bad: light-dark(#9b2b4d, #ffafbc);
    --bad-soft: light-dark(#fbe9ee, #402735);
    --sunken: light-dark(#edeaf6, #222436);
    --art-c: light-dark(#a290db, #9c88de);
    --site-band: light-dark(#f0edf7, #171822);
    --violet-edge: light-dark(#a391c3, #6b5a99);
    --violet-chip: light-dark(#eae1f8, #2d2543);
    --violet-text: light-dark(#503a78, #e1d7ff);
    --violet-lead: light-dark(#554d68, #d6cde9);
    --art-violet: light-dark(#e6dcf5, #27233b);
    --art-violet-dots: light-dark(#b9a8d3, #4d4469);
    --art-cover-violet: light-dark(#e5dbf4, #272039);
    --art-cover-dots: light-dark(#bdacd4, #554872);
    --art-mint: light-dark(#dceee9, #1e2b31);
    --art-mint-dots: light-dark(#94bdb2, #426067);
    --art-grid-line: light-dark(#4f897d, #89b9b2);
    --art-grid-base: light-dark(#d3e7e2, #223e40);
    --art-grid-row: light-dark(#a7cfc5, #4d7775);
    --hero-tile: light-dark(#f2ecfb, #32294c);
    --hero-tile-em: light-dark(#d9c8f2, #443568);
    --hero-tile-border: light-dark(#a995c4, #766487);
    --hero-tile-shadow: light-dark(#c7b5dd, #1d172d);
    --hero-tile-text: light-dark(#4a3574, #e5d9ff);
    --mint-border: light-dark(#7faea0, #477669);
    --mint-panel: light-dark(#e8f4ef, #1c2b2d);
    --mint-tint: light-dark(#dcf0e9, #223938);
    --mint-em: light-dark(#b9dfd3, #33564f);
    --mint-em-text: light-dark(#184c3d, #bdf7dd);
    --violet-em: light-dark(#d6c6ef, #443764);
    --violet-em-line: light-dark(#947ab7, #8472b0);
    --violet-hover: light-dark(#e9e2f5, #252637);
  }
}

body .site-header,
body .site-footer {
  border-width: 1px;
}

body .logo span { color: var(--reading-violet); }


.mn-blog {
  width: min(calc(100% - 2 * var(--site-gutter)), var(--site-width));
  margin-inline: auto;
  padding-block: clamp(20px, 3vw, 42px) clamp(42px, 6vw, 86px);
  font-family: "MNLogic Article Text", Tahoma, sans-serif;
}

.mn-blog-head {
  padding: clamp(19px, 2.6vw, 33px) clamp(19px, 4vw, 48px);
  border: 1px solid var(--reading-head-line);
  border-radius: 13px;
  background: var(--reading-head);
}

.mn-blog h1, .mn-blog h2 {
  color: var(--ink);
  font-family: "MNLogic Article Heading", "MNLogic Article Text", Tahoma, sans-serif;
  line-height: 1.5;
}

.mn-blog h1 { margin: 0 0 4px; font-size: clamp(29px, 3.7vw, 49px); }
.mn-blog-head p { margin: 0; font-size: clamp(15px, 1.4vw, 18px); }
.mn-blog-list { padding-block-start: max(16px, calc(28px * var(--wp--custom--scale))); }
.mn-blog-list .filters { gap: 8px; margin-block-end: clamp(16px, 2.1vw, 25px); }

.mn-blog-list .chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 12px;
  background: var(--surface);
  color: var(--reading-text);
  font-size: 14px;
}

.mn-blog-list .chip:hover { border-color: var(--reading-violet); }
.mn-blog-list .chip[aria-pressed="true"] {
  border-color: var(--violet-edge);
  background: var(--reading-selected);
  color: var(--ink);
}

.mn-blog-list .chip span {
  min-width: 21px;
  padding-inline: 4px;
  border-radius: 4px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  opacity: 1;
}

.mn-blog-list .chip[aria-pressed="true"] span { color: var(--reading-violet); }

.mn-blog-list .post-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(13px, 2vw, 24px);
}

.mn-blog-list .post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.mn-blog-list .post-card[hidden] { display: none; }
.mn-blog-list .post-card:is(:hover, :focus-within) {
  transform: none;
  border-color: var(--reading-violet);
}

.mn-blog-list .post-card > * { margin-inline: 0; }

.mn-blog-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: clamp(152px, 16vw, 204px);
  border-block-end: 1px solid var(--line);
  background: var(--art-violet) radial-gradient(var(--art-violet-dots) 1px, transparent 1.7px) 0 0 / 18px 18px;
}

.mn-blog-art--games {
  --sunken: transparent;
  background-color: var(--art-cover-violet);
}

.mn-blog-art--games svg { display: block; width: min(75%, 252px); height: 100%; }
.mn-blog-art--grid { background-color: var(--art-mint); background-image: radial-gradient(var(--art-mint-dots) 1px, transparent 1.7px); }
.mn-blog-art--grid span {
  --cell: clamp(28px, 3.2vw, 41px);
  --grid: var(--art-grid-line);
  display: block;
  width: calc(3 * var(--cell) + 1px);
  aspect-ratio: 1;
  border: 1px solid var(--grid);
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--cell) - 1px), var(--grid) calc(var(--cell) - 1px) var(--cell)),
    repeating-linear-gradient(0deg, transparent 0 calc(var(--cell) - 1px), var(--grid) calc(var(--cell) - 1px) var(--cell)),
    linear-gradient(var(--art-grid-base) 0 33.3%, var(--art-grid-row) 33.3% 66.6%, var(--art-grid-base) 66.6%);
}

.mn-blog-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mn-blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(15px, 2vw, 23px);
}

.mn-blog-card-body .post-card__cats { margin: 0 0 8px; }
.mn-blog-card-body .post-card__cats span {
  display: inline-block;
  padding: 1px 8px 2px;
  border: 1px solid var(--violet-edge);
  border-radius: 5px;
  color: var(--violet-text);
  background: var(--violet-chip);
  font-size: 12px;
  line-height: 1.6;
}

.mn-blog-card-body :is(h2, h3) {
  margin: 0 0 5px;
  font-size: clamp(18px, 1.95vw, 24px);
  overflow-wrap: anywhere;
}

.mn-blog-card-body :is(h2, h3) a { color: inherit; text-decoration: none; }
.mn-blog-card-body :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.mn-blog-card-body p { margin: 0; color: var(--muted); font-size: 15px; }

.mn-blog-card-action {
  align-self: start;
  margin-block-start: auto;
  padding-block-start: 15px;
  color: var(--accent);
  font-size: 14px;
}
.mn-blog-card-action span { margin-inline-start: 5px; }

.mn-blog :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 620px) {
  .mn-blog-list .post-cards { grid-template-columns: minmax(0, 1fr); }
}

.mn-blog-art:is(.mn-blog-art--coins, .mn-blog-art--doors, .mn-blog-art--numbers, .mn-blog-art--notes, .mn-blog-art--signal, .mn-blog-art--data) span {
  direction: ltr;
  font: 650 clamp(35px, 5vw, 65px)/1.15 system-ui, sans-serif;
  color: var(--violet-text);
  font-variant-numeric: tabular-nums;
  white-space: pre;
}

.mn-blog-art--numbers, .mn-blog-art--data { background-color: var(--art-mint); }
.mn-blog-art--numbers span, .mn-blog-art--data span { color: var(--mint-em-text); }
.mn-blog-art--doors, .mn-blog-art--notes { background-color: var(--art-violet); }

/* Shared frames, navigation and section spacing. */
.wrap {
  width: min(calc(100% - 2 * var(--site-gutter)), var(--site-width));
  max-width: none;
  padding-inline: 0;
}

.logo {
  font: 750 max(21px, calc(25px * var(--wp--custom--scale)))/1.2 system-ui, sans-serif;
  white-space: nowrap;
}

.site-header__in { min-height: 70px; }
.site-nav a { border-radius: 7px; }
.site-nav a[aria-current="page"] {
  background: var(--reading-selected);
  color: var(--reading-violet);
}

.site-header__cta.btn { border-radius: 8px; }
.site-footer {
  margin-block-start: 0;
  background: var(--site-band);
}

.site-footer__copy { border-width: 1px; }
.section { padding-block: max(28px, calc(62px * var(--wp--custom--scale))); }
.section--first { padding-block-start: max(19px, calc(36px * var(--wp--custom--scale))); }
.section--tight { padding-block: max(26px, calc(38px * var(--wp--custom--scale))); }
.section--sunken {
  border-block: 1px solid var(--line);
  background: var(--site-band);
}

.section .wrap > .cards { margin-block-start: max(16px, calc(25px * var(--wp--custom--scale))); }
main :is(h1, h2, h3) { color: var(--ink); text-wrap: balance; }
main :is(h2, h3) { line-height: 1.55; }
.section__lead, .lead { font-size: max(16px, calc(19px * var(--wp--custom--scale))); }
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.card > p { max-width: 65ch; }
.card > h3 { font-size: max(18px, calc(22px * var(--wp--custom--scale))); }
main :is(.btn, .wp-block-button__link) { border-radius: 8px; }

.tag {
  border: 1px solid var(--reading-head-line);
  border-radius: 5px;
  background: var(--reading-selected);
  color: var(--reading-violet);
}

main .tag--accent { background: var(--accent-soft); border-color: var(--mint-border); }
.cta-band {
  border: 1px solid var(--reading-head-line);
  border-radius: 12px;
  background: var(--reading-head);
}

.hero {
  padding-block: max(20px, calc(41px * var(--wp--custom--scale))) 12px;
}

.hero__in {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--reading-head-line);
  border-radius: 14px;
  background: var(--reading-head);
}

.hero__text {
  justify-content: center;
  min-width: 0;
  gap: max(10px, calc(16px * var(--wp--custom--scale)));
  padding: max(22px, calc(45px * var(--wp--custom--scale)));
}

.hero__text .eyebrow { color: var(--reading-violet); }
.hero__text h1 { font-size: max(32px, calc(58px * var(--wp--custom--scale))); line-height: 1.36; }
.hero__text .lead { color: var(--reading-text); }
.hero__text .note { max-width: 35em; }
.hero__art {
  position: relative;
  min-height: max(200px, calc(370px * var(--wp--custom--scale)));
  padding: max(18px, calc(32px * var(--wp--custom--scale)));
  border: 0;
  border-inline-start: 1px solid var(--reading-head-line);
  border-radius: 0;
  background: var(--art-cover-violet) radial-gradient(var(--art-cover-dots) 1px, transparent 1.7px) 0 0 / 20px 20px;
}

.hero-puzzle {
  --tile-size: max(48px, calc(72px * var(--wp--custom--scale)));
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, var(--tile-size));
  gap: max(6px, calc(9px * var(--wp--custom--scale)));
  transform: rotate(-6deg);
}

.hero-puzzle span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--hero-tile-border);
  border-radius: 10px;
  background: var(--hero-tile);
  box-shadow: 0 4px 0 var(--hero-tile-shadow);
  color: var(--hero-tile-text);
  font: 700 max(22px, calc(33px * var(--wp--custom--scale)))/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.hero-puzzle span:nth-child(4n + 1) { background: var(--hero-tile-em); }
.hero-puzzle span:last-child {
  border-color: var(--mint-border);
  background: var(--mint-em);
  color: var(--mint-em-text);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-puzzle span:last-child { animation: show-puzzle-tile 650ms 150ms ease-out both; }
  @keyframes show-puzzle-tile {
    from { transform: translateY(5px); opacity: .5; }
    to { transform: translateY(0); opacity: 1; }
  }
}

.page-head {
  border: 0;
  padding-block: max(20px, calc(41px * var(--wp--custom--scale))) 0;
  background: none;
}

.page-head .wrap {
  border: 1px solid var(--reading-head-line);
  border-radius: 13px;
  padding: max(19px, calc(31px * var(--wp--custom--scale))) max(19px, calc(48px * var(--wp--custom--scale)));
  background: var(--reading-head);
}

.page-head h1 { font-size: max(29px, calc(49px * var(--wp--custom--scale))); line-height: 1.5; }
.page-head .lead { color: var(--reading-text); max-width: 48em; }
.page-head .note { color: var(--muted); }

.reading-page {
  padding: max(17px, calc(34px * var(--wp--custom--scale)));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.reading-page > :is(p, ol, ul, h2, .link-p) { max-width: 68ch; }
.reading-page > p + p { margin-block-start: .7em; }
.reading-page > h2:not(:first-child) {
  padding-block-start: max(16px, calc(24px * var(--wp--custom--scale)));
  border-block-start: 1px solid var(--line);
}

.legal-page :is(p, li) { color: var(--reading-text); }
.legal-page a { overflow-wrap: anywhere; }
.prose > .cards, .prose > .faq { max-width: none; }
.faq-page > h2:not(:first-child) { padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.faq-page .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section .contact-page > .cards { margin-block-start: 0; }

.track-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.track-list > .track--live { grid-column: 1 / -1; }
.track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  justify-items: start;
  border-style: solid;
}

.track > :not(.track__icon) { grid-column: 1; }
.track .track__icon {
  position: static;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

.track--live {
  grid-template-columns: minmax(0, 1fr) minmax(180px, .46fr);
  border: 1px solid var(--mint-border);
  background: var(--mint-panel);
}

.track--live .track__icon {
  grid-row: 1 / span 5;
  align-self: stretch;
  width: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--mint-border);
  border-radius: 10px;
  background: var(--mint-tint) radial-gradient(var(--art-mint-dots) 1px, transparent 1.6px) 0 0 / 19px 19px;
}

.track--live .art--track { width: max(75px, calc(114px * var(--wp--custom--scale))); }
.example:not(.is-locked) .example__a { border-color: var(--mint-border); }
.choice { border-width: 1px; border-radius: 8px; }
.channel { background: var(--surface); }
.error404 main { padding-block-end: max(25px, calc(42px * var(--wp--custom--scale))); }

#articles .post-list--home { margin-block-start: 0; }
#articles .mn-blog-list { padding-block-start: max(18px, calc(31px * var(--wp--custom--scale))); }

@media (max-width: 991px) {
  html body { --site-gutter: 24px; }
  .site-header__in { min-height: 66px; }
}

@media (max-width: 781px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__art { border-inline-start: 0; border-block-start: 1px solid var(--reading-head-line); }
  .track-list, .faq-page .faq, .mn-blog-list .post-cards { grid-template-columns: minmax(0, 1fr); }
  .track--live { grid-template-columns: minmax(0, 1fr) auto; }
  .track--live .track__icon { grid-row: 1 / span 2; width: auto; border: 0; background: transparent; }
  .track--live .art--track { width: 52px; }
}

@media (max-width: 479px) {
  html body { --site-gutter: 16px; }
  .site-header__in { min-height: 62px; }
  .hero-puzzle { --tile-size: 42px; }
  .hero__art { min-height: 174px; }
  .hero__text h1 { font-size: 31px; }
  .site-footer__nav { gap: 14px; }
}

.theme-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.theme-toggle.is-ready { display: inline-flex; }
.theme-toggle:hover { border-color: var(--violet-edge); color: var(--reading-violet); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle [data-theme-label], .theme-sun { display: none; }
html[data-theme="dark"] .theme-sun { display: initial; }
html[data-theme="dark"] .theme-moon { display: none; }

@media (max-width: 991px) {
  .theme-toggle.is-ready { align-self: flex-start; padding-inline: 13px; }
  .theme-toggle [data-theme-label] { display: inline; font-size: 14px; }
}
