/* Arabic font, self-hosted (Readex Pro, SIL OFL, Arabic subset). Shared rule: every Arabic text is .ar or [dir=rtl]. */
@font-face { font-family: "Sawa Arabic"; src: url("fonts/sawa-arabic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+0660-0669; }
/* Sawa Site · Visual Brain v1.1 (Default mode).
   Layout: full-bleed bands that alternate white / ink, one idea per band. English (LTR) by default,
   Arabic (RTL) when the student switches (html[dir] from Sawa_Lang), so use inline-start/end, not left/right,
   max 1160px content, generous empty space. One red element per band. Flat: no gradients or shadows. */
:root {
  --ink: var(--fg);
  --white: var(--panel);
  --red: var(--brand);
  --smoke: var(--muted);
  --graphite: var(--band-2);
  --line-dark: var(--band-2);
  --text-2: var(--ink);
  --display: 'Changa', 'Sawa Arabic','IBM Plex Sans Arabic', Tahoma, sans-serif;
  --body: 'Sawa Arabic','IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.sawa-page { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.7 var(--body); text-align: start; }
body.sawa-page img { max-width: 100%; height: auto; display: block; }
.sawa-page a { color: inherit; }
.sawa-page h1, .sawa-page h2, .sawa-page h3 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1.12; text-wrap: balance; color: inherit; letter-spacing: 0; }
.sawa-page p { margin: 0; }
.sawa-page :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: 820px; }
.center-text { text-align: center; }
.center-text .lead { margin-inline: auto; }

/* type */
.red { color: var(--red); }
.meta, .eyebrow { font-size: 15px; color: var(--smoke); font-weight: 600; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.75; max-width: 60ch; }
.fine { font-size: 14.5px; color: var(--smoke); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; direction: ltr; text-align: left; line-height: 1; font-size: clamp(34px, 4.6vw, 60px); }
[dir="rtl"] .serif { text-align: right; }
.center-text .serif { text-align: center; }
h1 { font-size: clamp(42px, 7.2vw, 92px); }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h2.xl { font-size: clamp(46px, 8.6vw, 112px); line-height: 1.05; }
h3 { font-size: 23px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 17px/1.2 var(--body); padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: opacity .15s, background-color .15s, color .15s; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn-red { background: var(--red); color: var(--on-brand) !important; }
.btn-ink { background: var(--ink); color: var(--white) !important; }
.btn-light { background: var(--white); color: var(--ink) !important; }
.btn-ghost-light { border-color: color-mix(in srgb, var(--on-band) 55%, transparent); color: var(--on-band) !important; background: transparent; }
.btn-ghost-light:hover { border-color: var(--on-band); opacity: 1; }
.btn-lg { padding: 17px 32px; font-size: 18.5px; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.text-link { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 0; } }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.head-lang { order: 3; }
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; flex: none; text-decoration: none; color: var(--ink); }
.wm-ar { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.wm-en { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--smoke); direction: ltr; }
.wordmark.big .wm-ar { font-size: 44px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
@media (min-width: 901px) and (max-width: 1320px) { .head-row { gap: 14px; } .site-nav, .site-nav ul { gap: 14px; } .site-nav a:not(.btn) { font-size: 15px; } }
@media (min-width: 901px) and (max-width: 1180px) { .head-row .wm-en { display: none; } }
.site-nav a:not(.btn) { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--text-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 11px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn i { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 900px) {
  .head-row { gap: 10px; }
  .head-lang { order: 0; margin-inline-start: auto; }
  .head-lang button { padding: 0 10px; font-size: 14px; }
  .menu-btn { display: flex; }
  .site-nav { display: none; position: absolute; inset: 68px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter-r) 24px var(--gutter); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a:not(.btn) { display: block; padding: 10px 0; font-size: 18px; border: 0; }
}
@media (max-width: 400px) { .head-row .wm-en { display: none; } }

/* bands */
.sec { padding-block: clamp(72px, 10vw, 128px); }
.light, .white { background: var(--white); color: var(--ink); }
.soft { background: var(--soft); color: var(--ink); }
.dark { background: var(--band); color: var(--on-band); }
.dark .lead { color: color-mix(in srgb, var(--on-band) 80%, transparent); }
.sec > .wrap > h2 + .serif, .sec h2 + .serif { margin-top: 10px; }
.sec h2 { margin-bottom: 0; }
.sec .eyebrow + h2 { margin-top: 10px; }
.sec h2 ~ .grid-2, .sec h2 ~ .grid-3, .sec h2 ~ .grid-4, .sec h2 ~ .steps, .sec h2 ~ .join-steps, .sec h2 ~ .lines, .sec h2 ~ .faq, .sec h2 ~ .price-card { margin-top: 44px; }
.sec h2.xl + .lead, .sec h2 + .lead { margin-top: 22px; }
.note { margin-top: 28px; color: var(--smoke); font-size: 16px; }

/* hero */
.hero { padding-block: clamp(64px, 9vw, 112px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero-text h1 { margin-top: 14px; }
.hero-text .lead { margin-top: 24px; }
.hero-text .fine { margin-top: 20px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-photo { max-width: 360px; } }
.photo { width: 100%; border-radius: 4px; }
.photo-ph { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 14px; color: var(--smoke); border: 1.5px dashed var(--smoke); background: var(--graphite); }
.light .photo-ph, .white .photo-ph { background: var(--soft); }
.join-hero h1 { margin-top: 14px; }
.join-hero .lead { margin-top: 22px; }
.join-hero .fine { margin-top: 16px; }
.free-hero { padding-bottom: 24px; }
.free-hero h1 { margin-top: 12px; }
.free-hero .serif { margin-top: 6px; }
.free-hero .lead { margin-top: 22px; }

/* numbers */
.stats-band { background: var(--band); color: var(--on-band); border-top: 1px solid var(--line-dark); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding-block: 36px; }
.stats > div { padding-inline: 20px; border-inline-start: 1px solid var(--line-dark); }
.stats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; direction: ltr; text-align: left; }
[dir="rtl"] .stats dt { text-align: right; }
.stats dd { margin: 6px 0 0; color: var(--smoke); font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } .stats > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } }

/* grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; min-width: 0; }
.soft .card { border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 17px; }
.card-ink { background: var(--band); color: var(--on-band); border-color: var(--band); }
.card-ink p { color: color-mix(in srgb, var(--on-band) 78%, transparent); }
.card .num { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--smoke); margin-bottom: 14px; }

/* method */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { border-top: 3px solid var(--ink); padding-top: 24px; }
.steps .num { display: block; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--text-2); }
.truth { margin-top: 48px; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* join steps */
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.join-steps li { background: var(--soft); border-radius: 14px; padding: 28px; }
.join-steps .meta { display: block; margin-bottom: 10px; }
.join-steps h3 { margin-bottom: 10px; }
.join-steps p { color: var(--text-2); font-size: 17px; }
@media (max-width: 760px) { .join-steps { grid-template-columns: minmax(0, 1fr); } }

/* the turn, story */
.turn .lead, .story .lead { margin-top: 24px; }
.story .meta { margin-bottom: 14px; }
.story .btn { margin-top: 32px; }

/* not for */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { font-size: clamp(19px, 2.2vw, 24px); padding: 18px 0; border-bottom: 1px solid var(--line); }
.lines li:first-child { border-top: 1px solid var(--line); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: clamp(19px, 2.2vw, 23px); padding-block: 20px; padding-inline: 0 40px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; inset-inline-end: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(135deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 62ch; }

/* close */
.close h2.xl { font-size: clamp(38px, 6.4vw, 80px); line-height: 1.12; }
.price-card { background: var(--graphite); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; }
.price { font-family: var(--display); }
.price b { font-weight: 800; font-size: clamp(48px, 7vw, 76px); line-height: 1; direction: ltr; display: inline-block; }
.price span { font-size: 20px; color: var(--smoke); font-weight: 500; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: color-mix(in srgb, var(--on-band) 82%, transparent); }
.price-card li { padding-inline-start: 26px; position: relative; }
.price-card li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 11px; width: 12px; height: 6px; border-left: 2px solid var(--smoke); border-bottom: 2px solid var(--smoke); transform: rotate(-45deg); }
.price-card .after { color: var(--smoke); font-size: 15px; }

/* about */
.chapter .meta { margin-bottom: 12px; }
.chapter h2 { margin-bottom: 22px; }
.chapter p + p { margin-top: 16px; }
.chapter p { font-size: 19px; }
.dark.chapter .lead { margin-top: 0; }
.beliefs { margin-top: 44px; }

/* join video */
.video-sec { padding-top: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--graphite); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* free hub */
.hub { padding-top: 32px; }
.start-here { margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 600 15px/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--text-2); cursor: pointer; }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .res-grid { grid-template-columns: minmax(0, 1fr); } }
.res { min-width: 0; }
.res[hidden] { display: none; }
.res-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); transition: border-color .15s; }
.res-link:hover { border-color: var(--ink); }
.res-thumb { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; }
.res-thumb-ph { display: grid; place-items: center; }
.res-thumb-ph svg { width: 48px; height: 48px; }
.res-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.res-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--smoke); font-weight: 600; align-items: center; }
.res-type { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.res svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.res-thumb-ph svg { width: 44px; height: 44px; color: var(--smoke); }
.res-level { border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; direction: ltr; }
.res-title { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.3; }
.res-text { color: var(--text-2); font-size: 16px; }
.res-big .res-link { flex-direction: row-reverse; border-color: var(--ink); }
.res-big .res-thumb { flex: 0 0 52%; aspect-ratio: 16 / 9; }
.res-big .res-body { justify-content: center; padding: clamp(22px, 3vw, 40px); }
.res-big .res-title { font-size: clamp(24px, 3vw, 34px); }
@media (max-width: 760px) { .res-big .res-link { flex-direction: column; } }
.empty { color: var(--smoke); padding: 32px 0; }
.sawa-page .yt-line { margin-top: 48px; text-align: center; }
.bridge h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.2; }
.bridge .lead { margin-top: 22px; }

/* app pages (tracker, review form) */
.app-sec { background: var(--soft); padding-block: 32px 64px; min-height: 60vh; }
.app-wrap { max-width: 1240px; }

/* footer */
.site-foot { background: var(--band); color: var(--on-band); padding-block: 56px 28px; border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.foot-brand .wordmark { color: var(--on-band); }
.foot-brand p { margin-top: 14px; color: var(--smoke); max-width: 44ch; font-size: 16px; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.foot-links a { text-decoration: none; color: color-mix(in srgb, var(--on-band) 80%, transparent); font-size: 16px; }
.foot-links a:hover { color: var(--on-band); }
.foot-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--smoke); font-size: 14px; }
.foot-meta a { color: var(--smoke); }
@media (max-width: 700px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

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

/* blog */
.blog-search { display: flex; gap: 8px; margin-top: 28px; max-width: 520px; }
.blog-search input { flex: 1; min-width: 0; font: 400 16px/1.4 var(--body); padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.blog-search input:focus { outline: none; border-color: var(--ink); }
.blog-list { padding-top: 32px; }
.pager { margin-top: 48px; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.post-hero { padding-block: clamp(56px, 8vw, 96px) 32px; }
.post-hero h1 { font-size: clamp(32px, 5vw, 54px); margin-top: 14px; }
.post-by { margin-top: 18px; }
.text-link { text-decoration: none; border-bottom: 1px solid var(--line); }
.text-link:hover { border-color: var(--ink); }
.post-cover { margin-bottom: 40px; }
.post-cover img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 19px; line-height: 1.9; color: var(--ink); padding-bottom: 24px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: clamp(21px, 2.4vw, 25px); margin-top: 1.6em; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 22px; border-inline-start: 3px solid var(--ink); font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--ink); }
.prose img, .prose figure { max-width: 100%; height: auto; border-radius: 12px; margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--smoke); margin-top: 8px; }
.prose iframe { max-width: 100%; border-radius: 12px; }
.prose pre { direction: ltr; text-align: left; background: var(--soft); padding: 16px; border-radius: 10px; overflow: auto; font-size: 15px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
.post-tags a { font-size: 14px; font-weight: 600; color: var(--smoke); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.post-nav a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav b { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.35; }
@media (max-width: 600px) { .post-nav { grid-template-columns: minmax(0, 1fr); } }

/* YouTube channel card: profile photo on ink */
.res-channel { background: var(--band); color: var(--on-band); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.res-channel img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.res-big .res-channel img { width: clamp(96px, 12vw, 140px); height: clamp(96px, 12vw, 140px); }
.ch-handle { font: 600 16px/1.2 var(--body); color: var(--on-band); }
.ch-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--on-brand); background: var(--red); border-radius: 999px; padding: 6px 14px; }
.res .ch-sub svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
/* Light / dark (S1) */
.head-theme { order: 2; }
@media (max-width: 760px) { .head-theme { order: 0; } .head-theme button span { display: none; } .head-theme button { min-width: 44px; padding: 0 10px; } }
.ar, [lang=ar] .ar { direction: rtl; unicode-bidi: plaintext; font-family: "Sawa Arabic", "IBM Plex Sans Arabic", "Noto Sans Arabic", var(--body, system-ui), sans-serif; font-size: max(16px, 1.1em); line-height: 1.7; letter-spacing: 0; font-variant-ligatures: normal; font-weight: 500; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3, html[lang=ar] h4, html[lang=ar] button, html[lang=ar] .btn { font-family: "Sawa Arabic", "IBM Plex Sans Arabic", "Noto Sans Arabic", var(--body, system-ui), sans-serif; line-height: 1.55; letter-spacing: 0; font-variant-ligatures: normal; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { font-weight: 700; }
