/* ============================================================
   Roohle Books — v4.6.0 — "الميقات" (The Appointed Time)
   Every Arabic page opens on a night band whose stars break into
   dawn at one horizon line; below it, a calm reading surface.
   Arabic-first, right-to-left. Horizontal spacing uses logical
   properties, so the same rules lay out in the English (LTR) pages.
   Type: Aref Ruqaa Ink for the big title lines only (used sparingly),
         Amiri bold for every other heading, Noto Naskh Arabic for
         reading, IBM Plex Sans Arabic for labels and controls.
   Contents
     1. Tokens (light, dark)   8. Plan, miqat, stakes   15. Prose + Ghost cards
     2. Base                   9. Library: covers, shelf 16. Arabic article
     3. Layout, sections      10. Booklets + mawaqit    17. About page
     4. Header / nav          11. Article lists         18. English section
     5. Buttons, labels       12. CTA band + sign-up    19. Error, utilities
     6. Night band            13. Footer                20. Small screens, motion, print
     7. Hero, problem, guide  14. Book page
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* reading surface (light: dawn) */
  /* Brand colours: #232323 ink · #FAFAFA paper · #AA4FFF purple ·
     #F33D04 red · #46BEFF blue. --rb-purple is a deeper shade of the
     brand purple, used where purple text must stay legible on paper. */
  --rb-paper: #FAFAFA;
  --rb-paper-2: #F2F1F5;
  --rb-card: #FFFFFF;
  --rb-ink: #232323;
  --rb-ink-2: #45434D;
  --rb-mute: #6A6773;
  --rb-rule: #E6E4EA;
  --rb-chip: #D4D1DA;
  --rb-purple: #7E2FCF;
  --rb-purple-deep: #6421AD;
  --rb-on-purple: #FFFFFF;
  --rb-purple-ink: #4A1B80;
  --rb-purple-tint: #F3E8FF;
  --rb-dawn-ink: #F33D04;
  --rb-brand-purple: #AA4FFF;
  --rb-brand-red: #F33D04;
  --rb-brand-blue: #46BEFF;
  --rb-brand-ink: #232323;

  /* the night band: identical in both themes */
  --rb-night: #0D0A16;
  --rb-night-2: #1D1532;
  --rb-night-3: #3A2141;
  --rb-on-dark: #F2EEF8;
  --rb-on-dark-2: #B5ACC8;
  --rb-dawn: #F33D04;
  --rb-dawn-hi: #FF9A6B;
  --rb-on-dawn: #FFFFFF;

  /* Aref Ruqaa Ink is a colour font: its red letters and blue dots are the
     intended look of the big titles, and they ignore the CSS colour. */
  --rb-display: "Aref Ruqaa Ink", "Aref Ruqaa", "Amiri", serif;
  /* Fixed on purpose: Ghost's Typography setting (--gh-font-*) is Latin-only
     and would replace the Arabic faces with system fallbacks. */
  --rb-heading: "Amiri", "Noto Naskh Arabic", serif;
  --rb-body: "Noto Naskh Arabic", "Amiri", "Noto Sans Arabic", serif;
  --rb-ui: "IBM Plex Sans Arabic", "Noto Sans Arabic", -apple-system, "Segoe UI", Tahoma, sans-serif;
  --rb-verse: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
  --rb-latin: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --rb-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --rb-max: 1160px;
  --rb-prose: 700px;
  --rb-gutter: 32px;
  --rb-radius: 14px;
  --rb-shadow-book: 0 30px 60px -22px rgba(13, 10, 22, 0.55);
}
/* Dark reading surface follows the reader's system setting, on the
   Arabic pages only (the English essay layout is light by design). */
@media (prefers-color-scheme: dark) {
  html[lang="ar"] {
    --rb-paper: #141318;
    --rb-paper-2: #141020;
    --rb-card: #17131F;
    --rb-ink: #EEEAF4;
    --rb-ink-2: #CFC8DD;
    --rb-mute: #A39CB3;
    --rb-rule: #2A2437;
    --rb-chip: #3A3348;
    --rb-purple: #B77CFF;
    --rb-purple-deep: #C899FF;
    --rb-on-purple: #130B22;
    --rb-purple-ink: #D4BFF7;
    --rb-purple-tint: #231A35;
    --rb-dawn-ink: #E9A55B;
    color-scheme: dark;
  }
  html[lang="ar"] .rb-mark { filter: invert(1); }
}

/* The English section keeps its original neutral palette */
html[lang="en"] {
  --rb-paper: #FAFAFA; --rb-paper-2: #F3F3F3; --rb-card: #FFFFFF; --rb-ink: #232323; --rb-ink-2: #5A5A5A;
  --rb-mute: #717171; --rb-rule: #E6E6E6; --rb-chip: #D4D4D4; --rb-purple: #7E2FCF; --rb-purple-deep: #5E1CA8;
  --rb-purple-tint: #EEDCFF; --rb-purple-ink: #3A1864;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--rb-paper);
  color: var(--rb-ink);
  font-family: var(--rb-body);
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { font-family: var(--rb-latin); font-size: 18px; line-height: 1.65; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--rb-purple); text-decoration: none; }
a:hover { color: var(--rb-purple-deep); }
:focus-visible { outline: 2px solid var(--rb-dawn); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--rb-purple-tint); color: var(--rb-purple-ink); }
h1, h2, h3, h4 { font-family: var(--rb-heading); font-weight: 700; line-height: 1.45; margin: 0; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--rb-latin); font-weight: 600; line-height: 1.25; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 3. Layout, sections ---------- */
.rb-main { display: block; overflow-x: clip; min-height: 60vh; }
.rb-wrap { width: 100%; max-width: var(--rb-max); margin-inline: auto; padding-inline: max(var(--rb-gutter), env(safe-area-inset-left, 0px)); }
.rb-narrow { max-width: 900px; }
.rb-section { padding-block: 88px; }
.rb-section + .rb-section { border-block-start: 1px solid var(--rb-rule); }
.rb-band { background: var(--rb-paper-2); }
.rb-sec-head { max-width: 760px; display: grid; gap: 10px; margin-block-end: 44px; }
.rb-sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.rb-sec-head-row > div { display: grid; gap: 10px; max-width: 760px; }
.rb-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-block-end: 32px; }
.rb-h1 { font-family: var(--rb-display); font-weight: 700; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.5; }
.rb-h2 { font-size: clamp(28px, 3.6vw, 40px); }
.rb-h3 { font-size: clamp(22px, 2.6vw, 28px); }
.rb-intro, .rb-sec-lede { color: var(--rb-mute); font-size: 19px; }
.rb-page-head { padding-block: 56px 24px; }
.rb-page-head .rb-intro { font-size: 18px; max-width: 40em; margin-block-start: 6px; }
.rb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.rb-center { text-align: center; }
.rb-mute-line { color: var(--rb-mute); margin-block-start: 28px; }
.rb-more-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-block-start: 28px; }

/* ---------- 4. Header / nav ---------- */
.rb-skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--rb-ink); color: var(--rb-paper); padding: 10px 16px; border-radius: 8px;
  font-family: var(--rb-ui);
}
.rb-skip:focus { top: 12px; color: var(--rb-paper); }
.rb-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--rb-paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--rb-rule);
  padding-block-start: env(safe-area-inset-top, 0px);
}
.rb-nav { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; position: relative; }
.rb-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--rb-ink); min-height: 44px; }
.rb-brand:hover { color: var(--rb-ink); }
.rb-mark { width: 34px; height: 34px; }
.rb-brand-name { font-family: var(--rb-display); font-size: 26px; font-weight: 700; line-height: 1; }
.rb-brand-name-en { font-family: var(--rb-latin); font-size: 24px; font-weight: 600; }
.rb-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-inline-start: auto; font-family: var(--rb-ui); }
.rb-menu { display: flex; flex-wrap: wrap; gap: 2px 6px; list-style: none; margin: 0; padding: 0; }
.rb-menu a {
  color: var(--rb-mute); font-weight: 500; font-size: 15px;
  display: inline-flex; align-items: center; min-height: 40px; padding-inline: 12px; border-radius: 8px;
}
.rb-menu a:hover { color: var(--rb-ink); background: var(--rb-purple-tint); }
.rb-menu .is-current a { color: var(--rb-ink); font-weight: 600; }
.rb-lang { color: var(--rb-mute); font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.rb-lang[lang="en"] { font-family: var(--rb-latin); }
.rb-lang[lang="ar"] { font-family: var(--rb-ui); }
.rb-menu-btn {
  display: none; margin-inline-start: auto; min-height: 40px; padding: 6px 14px;
  background: none; border: 1px solid var(--rb-rule); border-radius: 10px; color: var(--rb-ink);
  font-family: var(--rb-ui); font-size: 14px; cursor: pointer;
}
html[lang="en"] .rb-nav-links { font-family: var(--rb-latin); }
html[lang="en"] .rb-menu a { font-size: 16px; }

/* ---------- 5. Buttons, labels ---------- */
.rb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--rb-purple); color: var(--rb-on-purple);
  font-family: var(--rb-ui); font-weight: 600; font-size: 16px; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.rb-btn:hover { background: var(--rb-purple-deep); color: var(--rb-on-purple); transform: translateY(-1px); }
.rb-btn-lg { min-height: 56px; padding-inline: 32px; font-size: 17px; }
.rb-btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.rb-btn-dawn { background: var(--rb-brand-purple); color: #FFFFFF; }
.rb-btn-dawn:hover { background: #9333F0; color: #FFFFFF; }
.rb-btn-ghost { background: transparent; color: var(--rb-ink); border-color: currentColor; }
.rb-btn-ghost:hover { background: var(--rb-ink); color: var(--rb-paper); }
.rb-btn-ghost-light { background: transparent; color: var(--rb-on-dark); border-color: rgba(242, 238, 248, .55); }
.rb-btn-ghost-light:hover { background: rgba(242, 238, 248, .1); color: var(--rb-on-dark); }
.rb-btn-bright { background: var(--rb-dawn); color: var(--rb-on-dawn); }
.rb-btn .rb-icon { flex: none; }
.rb-link-under { color: var(--rb-ink); font-weight: 600; border-block-end: 1px solid currentColor; padding-block: 6px; font-family: var(--rb-ui); }
.rb-link-arrow { font-family: var(--rb-ui); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.rb-kicker, .rb-eyebrow {
  display: block; font-family: var(--rb-ui); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: var(--rb-purple); line-height: 1.6;
}
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 32px; }
.rb-chips[hidden] { display: none; }
.rb-chip {
  min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--rb-rule);
  background: var(--rb-card); color: var(--rb-mute); font-family: var(--rb-ui); font-size: 14px; cursor: pointer;
}
.rb-chip[aria-pressed="true"] { background: var(--rb-ink); border-color: var(--rb-ink); color: var(--rb-paper); }
.rb-note { font-family: var(--rb-ui); font-size: 13.5px; color: var(--rb-mute); }
.rb-note bdi { font-family: var(--rb-mono); font-size: 12px; letter-spacing: .04em; }

/* ---------- 6. Night band ---------- */
.rb-night {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--rb-night) 0%, var(--rb-night-2) 72%, var(--rb-night-3) 100%);
  color: var(--rb-on-dark);
}
.rb-night::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -160px; height: 320px; z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(243, 61, 4, .42) 0%, rgba(170, 79, 255, .16) 40%, transparent 66%);
  animation: rb-dawn 2.6s ease-out both;
}
.rb-night-page::after { opacity: .7; }
.rb-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.rb-horizon {
  position: absolute; inset-inline: 0; bottom: 0; height: 1px; opacity: .9;
  background: linear-gradient(90deg, transparent, var(--rb-dawn) 30%, var(--rb-dawn-hi) 50%, var(--rb-dawn) 70%, transparent);
}
@keyframes rb-dawn { from { opacity: .25; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.rb-night .rb-kicker, .rb-night .rb-eyebrow { color: var(--rb-brand-blue); }
.rb-night a:not(.rb-btn) { color: var(--rb-on-dark-2); }
.rb-night a:not(.rb-btn):hover { color: var(--rb-on-dark); }
.rb-night .rb-note { color: var(--rb-on-dark-2); }
.rb-page-hero { padding-block: 72px 80px; display: grid; gap: 12px; }
.rb-page-lede { font-size: 19px; color: var(--rb-on-dark-2); max-width: 40em; }
.rb-verse-inline { font-family: var(--rb-verse); }
.rb-night .rb-page-lede.rb-verse-inline { color: var(--rb-on-dark); font-size: clamp(24px, 3vw, 30px); }

/* ---------- 7. Hero, problem, guide ---------- */
.rb-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center;
  padding-block: 88px 104px;
}
.rb-hero-text { min-width: 0; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 2; }
.rb-hero-title { font-family: var(--rb-display); font-weight: 700; font-size: clamp(40px, 6.4vw, 74px); line-height: 1.45; }
.rb-lift { color: var(--rb-dawn); }
.rb-hero-lede { font-size: clamp(18px, 2vw, 21px); color: var(--rb-on-dark-2); max-width: 36em; }
.rb-hero-sub { font-family: var(--rb-heading); font-size: clamp(20px, 2.4vw, 26px); color: var(--rb-on-dark-2); }
.rb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block-start: 14px; }
.rb-hero-cover { position: relative; display: block; width: min(300px, 100%); margin-inline: auto; }
.rb-cover-tag {
  position: absolute; top: 16px; inset-inline-start: -14px; z-index: 2;
  background: var(--rb-dawn); color: var(--rb-on-dawn); font-family: var(--rb-ui); font-weight: 600; font-size: 13px;
  padding: 6px 14px; border-radius: 999px;
}

.rb-problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.rb-big-quote { font-family: var(--rb-heading); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.6; margin-block-start: 14px; }
.rb-big-quote em { font-style: normal; color: var(--rb-purple); }
.rb-villain { margin-block-start: 28px; padding: 22px 24px; border-radius: var(--rb-radius); background: var(--rb-purple-tint); display: grid; gap: 10px; }
.rb-villain strong { font-weight: 700; }
.rb-villain-end { color: var(--rb-mute); }
.rb-symptoms { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--rb-rule); }
.rb-symptoms li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-block-end: 1px solid var(--rb-rule); }
.rb-symptoms b { font-family: var(--rb-ui); font-size: 14px; font-weight: 600; color: var(--rb-mute); padding-block-start: 4px; }

.rb-guide-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: center; }
.rb-portrait { border-radius: var(--rb-radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--rb-card); }
.rb-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.rb-portrait-sm { max-width: 320px; }
.rb-guide-text { min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.rb-guide-quote { margin: 0; font-family: var(--rb-heading); font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.65; }
.rb-guide-sig { font-family: var(--rb-ui); font-size: 15px; color: var(--rb-mute); }
.rb-guide-body { max-width: 38em; margin-block-start: 6px; }
.rb-creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin-block-start: 18px; border-block-start: 1px solid var(--rb-rule); }
.rb-creds div { padding-block-start: 18px; padding-inline-end: 16px; min-width: 0; }
.rb-creds b { display: block; font-family: var(--rb-heading); font-size: 22px; font-weight: 700; color: var(--rb-purple); line-height: 1.5; }
.rb-creds span { font-family: var(--rb-ui); font-size: 14px; color: var(--rb-mute); line-height: 1.6; }

/* ---------- 8. Plan, miqat, stakes ---------- */
.rb-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rb-step { background: var(--rb-card); border: 1px solid var(--rb-rule); border-radius: var(--rb-radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.rb-step-n { font-family: var(--rb-heading); font-size: 44px; font-weight: 700; line-height: 1; color: var(--rb-purple); }
.rb-step h3 { font-size: 22px; }
.rb-step p { color: var(--rb-mute); font-size: 17px; }
.rb-miqat { margin-block-start: 56px; }
.rb-miqat-label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); margin-block-end: 10px; }
.rb-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rb-track span { height: 10px; border-radius: 2px; background: var(--rb-purple); }
.rb-track span:nth-child(2) { opacity: .62; }
.rb-track span:nth-child(3) { background: var(--rb-dawn-ink); }
.rb-phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block-start: 18px; }
.rb-phases h4 { font-family: var(--rb-heading); font-size: 21px; }
.rb-phases small { display: block; font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); }
.rb-phases p { font-size: 16px; color: var(--rb-mute); margin-block-start: 6px; line-height: 1.75; }
.rb-ayah {
  font-family: var(--rb-verse); font-size: clamp(23px, 2.6vw, 28px); line-height: 2.1; color: var(--rb-purple-ink);
  text-align: center; padding: 28px 12px; margin-block: 32px; border-block: 1px solid var(--rb-rule);
}
.rb-ayah cite { display: block; font-family: var(--rb-ui); font-style: normal; font-size: 13px; color: var(--rb-mute); margin-block-start: 6px; }
.rb-stakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rb-stake { border-radius: var(--rb-radius); padding: 32px; }
.rb-stake h3 { font-size: 23px; margin-block-end: 14px; }
.rb-stake ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rb-stake li { position: relative; padding-inline-start: 22px; }
.rb-stake li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 8px; height: 8px; border-radius: 50%; }
.rb-stake-lose { background: var(--rb-card); border: 1px solid var(--rb-rule); }
.rb-stake-lose li::before { background: var(--rb-mute); opacity: .5; }
.rb-stake-win { background: var(--rb-night); color: var(--rb-on-dark); }
.rb-stake-win h3 { color: var(--rb-dawn); }
.rb-stake-win li::before { background: var(--rb-dawn); }

/* ---------- 9. Library: covers, shelf, book cards ---------- */
.rb-cover {
  display: block; position: relative; aspect-ratio: 2 / 3; width: 100%;
  border-radius: 6px; overflow: hidden; background: var(--rb-night);
  box-shadow: var(--rb-shadow-book);
}
.rb-cover img { width: 100%; height: 100%; object-fit: cover; }
.rb-cover-type {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 18% 12%; text-align: center; background: linear-gradient(180deg, var(--rb-night), var(--rb-night-2));
  font-family: var(--rb-display); font-weight: 700; color: var(--rb-dawn); line-height: 1.5;
  font-size: clamp(18px, 2.2vw, 30px);
}
.rb-cover-lg .rb-cover-type { font-size: clamp(30px, 4.4vw, 48px); }
.rb-cover-lg { box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }

.rb-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 40px 28px; list-style: none; margin: 0; padding: 0; }
.rb-book { display: flex; flex-direction: column; gap: 14px; color: var(--rb-ink); min-width: 0; }
.rb-book:hover { color: var(--rb-ink); }
.rb-book .rb-cover { transition: transform .25s ease; }
.rb-book:hover .rb-cover { transform: translateY(-4px); }
.rb-book-text { display: flex; flex-direction: column; gap: 4px; }
.rb-book-meta { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--rb-purple); }
.rb-book-title { font-family: var(--rb-heading); font-weight: 700; font-size: 21px; line-height: 1.5; }
.rb-book:hover .rb-book-title { color: var(--rb-purple); }
.rb-book-dek { font-size: 16px; color: var(--rb-mute); line-height: 1.75; }
.rb-kind { font-family: var(--rb-ui); font-size: 12px; font-weight: 600; color: var(--rb-purple); margin-inline-end: 6px; }
.rb-book[hidden], .rb-guide[hidden], .rb-row[hidden] { display: none; }
.rb-upcoming {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px;
  border: 1px dashed var(--rb-chip); border-radius: 6px; aspect-ratio: 2 / 3; align-self: start;
}
.rb-empty { color: var(--rb-mute); padding-block: 24px; }

/* ---------- 10. Booklets + mawaqit ---------- */
.rb-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; }
.rb-guide {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: start;
  background: var(--rb-card); border: 1px solid var(--rb-rule); border-radius: 18px; padding: 24px; color: var(--rb-ink);
}
.rb-guide:hover { color: var(--rb-ink); border-color: var(--rb-chip); }
.rb-guide-cover { display: block; }
.rb-guide-cover .rb-cover { box-shadow: 0 16px 30px -14px rgba(13, 10, 22, .5); }
.rb-guide-cover .rb-cover-type { font-size: 16px; padding: 12%; }
.rb-guide-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.rb-guide-meta { font-family: var(--rb-ui); font-size: 13px; color: var(--rb-purple); font-weight: 600; }
.rb-guide-title { font-family: var(--rb-heading); font-weight: 700; font-size: 22px; line-height: 1.5; }
.rb-guide-hook { font-size: 16px; color: var(--rb-mute); line-height: 1.75; }
.rb-guide-btn { margin-block-start: 10px; }
.rb-row-card { padding-block: 16px; border-block-end: 1px solid var(--rb-rule); }

.rb-diagram { background: var(--rb-card); border: 1px solid var(--rb-rule); border-radius: var(--rb-radius); padding: 20px; overflow-x: auto; }
.rb-diagram svg { display: block; width: 100%; min-width: 560px; height: auto; }
.rb-diagram text { font-family: var(--rb-ui); }
.rb-diagram .d-night { fill: var(--rb-purple-tint); }
.rb-diagram .d-horizon { stroke: var(--rb-dawn-ink); stroke-width: 2; }
.rb-diagram .d-arc { fill: none; stroke: var(--rb-chip); stroke-width: 2; stroke-dasharray: 4 6; }
.rb-diagram .d-sun { fill: var(--rb-dawn-ink); }
.rb-diagram .d-moon { fill: var(--rb-purple); }
.rb-diagram .d-name { font-size: 15px; font-weight: 600; fill: var(--rb-ink); }
.rb-diagram .d-sub { font-size: 12px; fill: var(--rb-mute); }
.rb-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-start: 28px; }
.rb-level { border: 1px solid var(--rb-rule); border-radius: var(--rb-radius); padding: 22px; background: var(--rb-card); }
.rb-level small { font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); }
.rb-level h4 { font-size: 21px; margin-block: 4px 6px; }
.rb-level-num { font-family: var(--rb-heading); font-size: 32px; color: var(--rb-purple); font-weight: 700; line-height: 1.4; }
.rb-level p { font-size: 15px; color: var(--rb-mute); line-height: 1.7; }

.rb-faq details, .rb-prose details { border-block-end: 1px solid var(--rb-rule); padding-block: 18px; }
.rb-faq details:first-of-type { border-block-start: 1px solid var(--rb-rule); }
.rb-faq summary {
  font-family: var(--rb-heading); font-size: 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: "+"; font-family: var(--rb-ui); color: var(--rb-purple); font-size: 24px; line-height: 1; }
.rb-faq details[open] summary::after { content: "−"; }
.rb-faq details p { margin-block-start: 12px; color: var(--rb-mute); }

/* ---------- 11. Article lists ---------- */
.rb-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.rb-col { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rb-col-h { margin-block-end: 8px; font-size: 26px; }
.rb-rows { display: flex; flex-direction: column; border-block-start: 1px solid var(--rb-rule); }
.rb-row {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline;
  padding-block: 22px; border-block-end: 1px solid var(--rb-rule); color: var(--rb-ink);
}
.rb-col .rb-row { grid-template-columns: minmax(0, 1fr); }
.rb-row:hover { color: var(--rb-ink); }
.rb-row:hover .rb-row-title { color: var(--rb-purple); }
.rb-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rb-row-tag { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--rb-purple); }
.rb-row-tag:empty { display: none; }
.rb-row [dir="auto"] { text-align: start; }
[dir="rtl"] .rb-row [dir="auto"] { text-align: right; }
.rb-row-title { font-family: var(--rb-heading); font-size: 22px; line-height: 1.55; font-weight: 700; }
.rb-row-dek { color: var(--rb-mute); font-size: 16px; line-height: 1.75; }
.rb-row-meta { font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-row-en, .rb-row-en .rb-row-meta { font-family: var(--rb-latin); }
.rb-row-en .rb-row-title { font-family: var(--rb-latin); font-weight: 600; font-size: 21px; line-height: 1.4; }
.rb-row-en .rb-row-tag { font-family: var(--rb-latin); letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.rb-doors { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px 24px; }
.rb-doors a {
  border: 1px solid var(--rb-chip); color: var(--rb-ink); padding: 6px 16px; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.rb-doors a:hover { background: var(--rb-ink); color: var(--rb-paper); border-color: var(--rb-ink); }
.rb-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding-block: 40px 8px; }
.rb-pagination-info { color: var(--rb-mute); font-size: 14px; font-family: var(--rb-ui); }

/* ---------- 12. CTA band + sign-up ---------- */
.rb-cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  background: var(--rb-night); color: var(--rb-on-dark); border-radius: 22px; padding: 56px;
}
.rb-cta-band::after {
  content: ""; position: absolute; inset: auto -10% -140px; height: 260px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(170, 79, 255, .32), transparent 65%);
}
.rb-cta-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.rb-cta-band .rb-kicker { color: var(--rb-brand-blue); }
.rb-cta-title { font-family: var(--rb-heading); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.55; }
.rb-cta-note { color: var(--rb-on-dark-2); margin-block-end: 8px; }
.rb-cta-opt { border-inline-start: 1px solid rgba(255, 255, 255, .12); padding-inline-start: 40px; }
.rb-section.rb-cta-section { border-block-start: 0; padding-block: 24px 96px; }

.rb-notify { display: flex; flex-direction: column; gap: 10px; }
.rb-notify-label { font-family: var(--rb-heading); font-weight: 700; font-size: 20px; color: var(--rb-ink); }
.rb-notify-hint { font-family: var(--rb-ui); font-size: 13.5px; color: var(--rb-mute); }
.rb-notify-row { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 4px; }
.rb-input {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--rb-chip); background: var(--rb-card); color: var(--rb-ink); font-family: var(--rb-ui); font-size: 16px;
}
.rb-notify-msg { display: none; font-family: var(--rb-ui); font-size: 14px; }
.rb-notify.success .rb-notify-success, .rb-notify.error .rb-notify-error { display: block; }
.rb-notify.success .rb-notify-row { display: none; }
.rb-notify.loading button { opacity: .6; pointer-events: none; }
.rb-cta-band .rb-notify-label { color: var(--rb-on-dark); }
.rb-cta-band .rb-notify-hint, .rb-cta-band .rb-notify-msg { color: var(--rb-on-dark-2); }
.rb-cta-band .rb-notify-success { color: var(--rb-brand-blue); }
.rb-cta-band .rb-input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--rb-on-dark); }
.rb-cta-band .rb-input::placeholder { color: var(--rb-on-dark-2); }

/* ---------- 13. Footer ---------- */
.rb-footer { border-block-start: 1px solid var(--rb-rule); font-family: var(--rb-ui); }
.rb-footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 24px; padding-block: 56px 40px; font-size: 14px; color: var(--rb-mute);
}
.rb-footer-brand { display: flex; flex-direction: column; gap: 8px; }
.rb-footer-brand .rb-brand-name { font-size: 22px; }
.rb-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.rb-footer-links > a, .rb-footer .rb-menu a { color: var(--rb-mute); min-height: 36px; display: inline-flex; align-items: center; font-size: 14px; padding-inline: 0; background: none; }
.rb-footer .rb-menu { gap: 4px 18px; }
.rb-footer-links > a:hover, .rb-footer .rb-menu a:hover { color: var(--rb-ink); background: none; }
.rb-footer-copy { width: 100%; font-size: 13px; margin-block-start: 8px; }
html[lang="en"] .rb-footer { font-family: var(--rb-latin); }

/* ---------- 14. Book page ---------- */
.rb-crumbs { font-family: var(--rb-ui); font-size: 13px; padding-block-start: 24px; color: var(--rb-mute); }
.rb-night .rb-crumbs { color: var(--rb-on-dark-2); }
.rb-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rb-crumbs li + li::before { content: "‹"; margin-inline-end: 6px; }
[dir="ltr"] .rb-crumbs li + li::before { content: "›"; }

.rb-bk-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; padding-block: 40px 104px; }
.rb-bk-cover { display: flex; justify-content: center; }
.rb-bk-cover .rb-cover { width: min(320px, 80vw); }
.rb-bk-text { min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rb-bk-title { font-family: var(--rb-display); font-weight: 700; font-size: clamp(42px, 6vw, 74px); line-height: 1.45; }
.rb-bk-sub { font-family: var(--rb-heading); font-size: clamp(20px, 2.4vw, 26px); color: var(--rb-on-dark-2); line-height: 1.6; }

.rb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); width: 100%; margin: 6px 0 0; padding: 0; border-block: 1px solid rgba(255, 255, 255, .14); }
.rb-facts[hidden] { display: none; }
.rb-fact { padding-block: 14px 12px; padding-inline: 16px; margin: 0; border-inline-end: 1px solid rgba(255, 255, 255, .1); }
.rb-fact:first-child { padding-inline-start: 0; }
.rb-fact:last-child { border-inline-end: 0; }
.rb-fact dt { font-family: var(--rb-ui); font-size: 12px; font-weight: 600; color: var(--rb-on-dark-2); }
.rb-fact dd { margin: 0; font-family: var(--rb-heading); font-size: 21px; font-weight: 700; line-height: 1.4; color: var(--rb-on-dark); }
.rb-dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-block-start: 10px; }
.rb-licence { font-size: 15px; color: var(--rb-on-dark-2); }
.rb-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--rb-on-dark); font-family: var(--rb-ui); font-weight: 600; }
.rb-share:hover { color: var(--rb-dawn); }

.rb-verse { background: var(--rb-paper-2); border-block-end: 1px solid var(--rb-rule); }
.rb-verse[hidden] { display: none; }
.rb-verse-inner { max-width: 900px; margin-inline: auto; padding: 56px var(--rb-gutter); text-align: center; }
.rb-verse-text { font-family: var(--rb-verse); font-size: clamp(24px, 3.2vw, 36px); line-height: 2; color: var(--rb-purple-ink); }
.rb-verse-ref { margin-block-start: 10px; font-family: var(--rb-ui); font-size: 14px; color: var(--rb-mute); }

.rb-bk-body { padding-block: 80px 24px; }
.rb-book-page.has-dl .kg-file-card.is-promoted { display: none; }

/* Authoring helpers for book pages (see AUTHORING.md, section 3) */
.rb-prose .rb-checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.rb-prose .rb-checks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.rb-prose .rb-checks li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-block-start: 8px; border-radius: 50%;
  background: var(--rb-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.rb-prose .rb-checks.rb-no li::before {
  background: var(--rb-rule) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%23857e96' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.rb-prose .rb-toc { list-style: none; padding: 0; border-block-start: 1px solid var(--rb-rule); }
.rb-prose .rb-toc li { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; margin: 0; border-block-end: 1px solid var(--rb-rule); font-size: 17px; }
.rb-prose .rb-toc li > span:last-child { font-family: var(--rb-ui); font-size: 14px; color: var(--rb-mute); white-space: nowrap; }
.rb-prose .rb-note-box { border-radius: var(--rb-radius); background: var(--rb-purple-tint); padding: 22px 26px; font-size: 17px; }
.rb-prose .rb-miqat { margin-block: 32px; }
.rb-prose .rb-miqat h4 { margin: 0; font-family: var(--rb-heading); font-weight: 700; }
.rb-prose .rb-accent, .rb-accent-line { font-family: var(--rb-display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.6; color: var(--rb-purple); }

/* ---------- 15. Prose (Ghost content) + Ghost cards ---------- */
.rb-prose { max-width: var(--rb-prose); margin-inline: auto; font-size: 19px; line-height: 2; }
.rb-prose > * + * { margin-block-start: 1.2em; }
.rb-prose h2 { font-size: clamp(27px, 3.2vw, 34px); margin-block-start: 2.2em; line-height: 1.45; }
.rb-prose h3 { font-size: clamp(21px, 2.4vw, 25px); margin-block-start: 1.8em; color: var(--rb-purple); }
.rb-prose h4 { font-size: 19px; font-family: var(--rb-ui); font-weight: 600; margin-block-start: 1.4em; }
.rb-prose h2 + *, .rb-prose h3 + *, .rb-prose h4 + * { margin-block-start: .6em; }
.rb-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rb-prose strong { font-weight: 700; }
.rb-prose ul, .rb-prose ol { padding-inline-start: 1.4em; }
.rb-prose li + li { margin-block-start: .4em; }
.rb-prose hr { border: 0; height: 1px; background: var(--rb-rule); margin-block: 3em; }
/* A plain quote = a Qur'anic verse block */
.rb-prose blockquote:not([class]) {
  margin-inline: 0; padding: 28px 12px; text-align: center; border-block: 1px solid var(--rb-rule);
  font-family: var(--rb-verse); font-size: clamp(22px, 2.6vw, 27px); line-height: 2.1; color: var(--rb-purple-ink);
}
.rb-prose blockquote:not([class]) cite, .rb-prose blockquote:not([class]) small { display: block; font-family: var(--rb-ui); font-style: normal; font-size: 13px; color: var(--rb-mute); }
/* The alternative quote style = the pull line, in Ruq'a */
.rb-prose blockquote.kg-blockquote-alt {
  margin-inline: 0; text-align: center; padding-block: 28px; border: 0;
  font-family: var(--rb-display); font-weight: 700; font-style: normal;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.6; color: var(--rb-purple);
}
.rb-prose figure { margin-inline: 0; }
.rb-prose figcaption { font-family: var(--rb-ui); font-size: 14px; color: var(--rb-mute); text-align: center; margin-block-start: 10px; }
.rb-prose pre { direction: ltr; text-align: left; overflow-x: auto; background: var(--rb-night); color: #EEE; padding: 18px; border-radius: 10px; font-size: 14px; }
.rb-prose code { font-size: .9em; }
.rb-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.rb-prose th, .rb-prose td { border-block-end: 1px solid var(--rb-rule); padding: 8px 10px; text-align: start; }
.rb-prose .ayah, .rb-prose [lang="ar"].verse { font-family: var(--rb-verse); font-size: 1.4em; text-align: center; line-height: 2; color: var(--rb-purple-ink); }
/* Margin note for Arabic articles: <aside class="rb-sidenote"><b>أ م ر</b>…</aside> in an HTML card */
.rb-prose .rb-sidenote {
  font-family: var(--rb-ui); font-size: 14.5px; line-height: 1.85; color: var(--rb-mute);
  border-inline-start: 2px solid var(--rb-purple); padding-inline-start: 14px;
}
.rb-prose .rb-sidenote b { display: block; font-family: var(--rb-verse); font-size: 22px; color: var(--rb-purple-ink); letter-spacing: .2em; }
@media (min-width: 1240px) {
  .rb-article .rb-prose .rb-sidenote, .rb-article .rb-prose .kg-html-card .rb-sidenote {
    float: left; clear: left; width: 220px; margin-inline-end: -270px; margin-block: 6px 16px;
  }
  [dir="ltr"] .rb-article .rb-prose .rb-sidenote { float: right; clear: right; }
}

.rb-prose .kg-width-wide {
  width: min(1080px, 100vw - 2 * var(--rb-gutter));
  margin-inline: calc((100% - min(1080px, 100vw - 2 * var(--rb-gutter))) / 2);
}
.rb-prose .kg-width-full { width: 100vw; margin-inline: calc(50% - 50vw); }
.rb-prose .kg-width-full img { width: 100%; }
.rb-prose .kg-image-card img, .rb-prose .kg-gallery-image img { border-radius: 8px; margin-inline: auto; }
.rb-prose .kg-width-full.kg-image-card img { border-radius: 0; }
.rb-prose .kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.rb-prose .kg-gallery-row { display: flex; gap: 10px; }
.rb-prose .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.rb-prose .kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.rb-prose .kg-embed-card iframe { max-width: 100%; }

.rb-prose .kg-callout-card { border-radius: var(--rb-radius); padding: 22px 26px; gap: 12px; }
.rb-prose .kg-callout-card-grey, .rb-prose .kg-callout-card-white { background: var(--rb-card); border: 1px solid var(--rb-rule); }
.rb-prose .kg-callout-card-purple, .rb-prose .kg-callout-card-accent { background: var(--rb-purple-tint); color: var(--rb-ink); }
.rb-prose .kg-callout-text { font-size: 17px; line-height: 1.9; }

.rb-prose .kg-toggle-card { background: transparent; border: 0; border-block-end: 1px solid var(--rb-rule); border-radius: 0; padding: 18px 0; box-shadow: none; }
.rb-prose .kg-toggle-card:first-of-type, .rb-prose :not(.kg-toggle-card) + .kg-toggle-card { border-block-start: 1px solid var(--rb-rule); }
.rb-prose .kg-toggle-card + .kg-toggle-card { margin-block-start: 0; }
.rb-prose .kg-toggle-heading-text { font-family: var(--rb-heading); font-size: 20px; font-weight: 700; line-height: 1.6; }
.rb-prose .kg-toggle-content { font-size: 17px; line-height: 1.9; color: var(--rb-mute); }
.rb-prose .kg-toggle-card-icon { margin-inline-start: 16px; margin-inline-end: 0; color: var(--rb-purple); }

.rb-prose .kg-file-card { width: 100%; }
.rb-prose .kg-file-card-container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--rb-card); border: 1px solid var(--rb-rule); border-radius: var(--rb-radius);
  padding: 18px 22px; color: var(--rb-ink); text-decoration: none; min-height: 0;
}
.rb-prose .kg-file-card-container:hover { border-color: var(--rb-purple); color: var(--rb-ink); }
.rb-prose .kg-file-card-title { font-weight: 700; font-size: 18px; }
.rb-prose .kg-file-card-caption { font-size: 15px; color: var(--rb-mute); }
.rb-prose .kg-file-card-metadata { font-size: 13px; color: var(--rb-mute); direction: ltr; text-align: end; }
.rb-prose .kg-file-card-icon { flex: none; color: var(--rb-purple); }

.rb-prose .kg-bookmark-card a.kg-bookmark-container {
  display: flex; flex-wrap: wrap; border: 1px solid var(--rb-rule); border-radius: var(--rb-radius);
  background: var(--rb-card); color: var(--rb-ink); text-decoration: none; overflow: hidden;
}
.rb-prose .kg-bookmark-content { flex: 1 1 300px; padding: 18px 20px; }
.rb-prose .kg-bookmark-title { font-weight: 700; }
.rb-prose .kg-bookmark-description { font-size: 15px; color: var(--rb-mute); }
.rb-prose .kg-bookmark-metadata { font-size: 13px; color: var(--rb-mute); display: flex; gap: 6px; align-items: center; }
.rb-prose .kg-bookmark-icon { width: 18px; height: 18px; }
.rb-prose .kg-bookmark-thumbnail { flex: 0 1 220px; }
.rb-prose .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.rb-prose .kg-button-card { display: flex; }
.rb-prose .kg-button-card.kg-align-center { justify-content: center; }
.rb-prose .kg-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 28px; border-radius: 999px;
  background: var(--rb-purple); color: var(--rb-on-purple); font-family: var(--rb-ui); font-weight: 600; text-decoration: none;
}
.rb-prose .kg-btn:hover { background: var(--rb-purple-deep); color: var(--rb-on-purple); }
.rb-prose .kg-header-card { border-radius: var(--rb-radius); }

/* ---------- 16. Arabic article ---------- */
.rb-art-head { max-width: 900px; padding-block: 28px 80px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.rb-art-tag { color: var(--rb-dawn); }
.rb-night a.rb-art-tag { color: var(--rb-dawn); }
.rb-art-title { font-family: var(--rb-display); font-weight: 700; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.5; }
.rb-art-dek { font-family: var(--rb-body); font-size: clamp(19px, 2.2vw, 22px); color: var(--rb-on-dark-2); line-height: 1.8; max-width: 36em; }
.rb-art-byline { display: flex; align-items: center; gap: 12px; font-family: var(--rb-ui); font-size: 14px; color: var(--rb-on-dark-2); margin-block-start: 10px; }
.rb-art-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.rb-art-feature { max-width: 1080px; margin: 48px auto 0; padding-inline: var(--rb-gutter); }
.rb-art-feature img { width: 100%; border-radius: 12px; }
.rb-art-feature figcaption { font-family: var(--rb-ui); font-size: 14px; color: var(--rb-mute); text-align: center; margin-block-start: 10px; }
.rb-art-body { padding: 64px var(--rb-gutter) 24px; }
.rb-art-tags { max-width: var(--rb-prose); margin: 32px auto 0; display: flex; flex-wrap: wrap; gap: 8px; padding-inline: var(--rb-gutter); }
.rb-art-tags a { font-family: var(--rb-ui); font-size: 14px; border: 1px solid var(--rb-rule); background: var(--rb-card); color: var(--rb-mute); padding: 4px 14px; border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center; }
.rb-art-head-plain { margin-inline: auto; padding: 56px var(--rb-gutter) 8px; align-items: center; text-align: center; }
.rb-art-head-plain .rb-art-title { font-family: var(--rb-heading); }
.rb-art-head-plain .rb-art-dek { color: var(--rb-mute); }

/* ---------- 17. About page ---------- */
.rb-prose-plain { display: grid; gap: 18px; max-width: var(--rb-prose); }
.rb-about-name { margin-block-start: 22px; }
.rb-about-role { font-family: var(--rb-ui); font-size: 15px; color: var(--rb-mute); margin-block-start: 4px; }
.rb-about-bio { margin-block-start: 14px; }
.rb-principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-start: 1px solid var(--rb-rule); }
.rb-principles li { padding-block: 26px; padding-inline-end: 28px; border-block-end: 1px solid var(--rb-rule); min-width: 0; }
.rb-principles .rb-step-n { font-size: 30px; }
.rb-principles h3 { font-size: 20px; margin-block-start: 10px; }
.rb-principles p { font-size: 16px; color: var(--rb-mute); margin-block-start: 6px; line-height: 1.8; }
.rb-contact-body { margin-inline: 0; }

/* About page: built from the homepage components; only these additions */
.rb-hero-text-only { grid-template-columns: minmax(0, 1fr); }
.rb-hero-text-only .rb-hero-text { max-width: 760px; }
.rb-contact-form { display: grid; gap: 14px; }
.rb-contact-form label { display: grid; gap: 6px; font-family: var(--rb-ui); font-size: 14px; font-weight: 500; color: var(--rb-on-dark-2); }
.rb-contact-form .rb-input { width: 100%; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--rb-on-dark); }
.rb-contact-form textarea.rb-input { border-radius: 18px; padding: 14px 18px; min-height: 140px; resize: vertical; line-height: 1.8; }
.rb-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-block-start: 4px; }
.rb-contact-msg { font-family: var(--rb-ui); font-size: 14px; color: var(--rb-dawn); }
.rb-contact-form button[disabled] { opacity: .6; pointer-events: none; }
.rb-cta-band .rb-cta-text { align-self: start; }

/* ---------- v4: the library front door (Draft 3) ---------- */
/* header tagline, Telegram button */
.rb-brand-tag {
  font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); white-space: nowrap;
  border-inline-start: 1px solid var(--rb-rule); padding-inline-start: 10px; margin-inline-start: 2px;
}
.rb-btn-telegram .rb-icon { flex: none; }
.rb-nav-links .rb-btn-telegram { white-space: nowrap; }
@media (max-width: 1100px) { .rb-brand-tag { display: none; } }

/* hero: the author and his covers in the first screen */
.rb-home-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.rb-hero-visual { position: relative; justify-self: center; width: min(340px, 100%); padding-block-end: 40px; }
.rb-hero-portrait { border-radius: var(--rb-radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.rb-hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.rb-hero-covers { position: absolute; inset-inline-end: -48px; bottom: 0; display: flex; align-items: flex-end; }
.rb-hero-c { display: block; width: 104px; margin-inline-start: -34px; transform-origin: bottom center; }
.rb-hero-c:first-child { margin-inline-start: 0; }
.rb-hero-c .rb-cover { box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); }
.rb-hero-c1 { width: 128px; z-index: 3; transform: rotate(-4deg); }
.rb-hero-c2 { z-index: 2; transform: rotate(3deg) translateY(-6px); }
.rb-hero-c3 { z-index: 1; transform: rotate(8deg) translateY(-10px); }
[dir="rtl"] .rb-hero-c1 { transform: rotate(4deg); }
[dir="rtl"] .rb-hero-c2 { transform: rotate(-3deg) translateY(-6px); }
[dir="rtl"] .rb-hero-c3 { transform: rotate(-8deg) translateY(-10px); }

/* hero fan of covers: the library as the hero image (roohle-books.js tilts it) */
.rb-fan { position: relative; justify-self: center; width: min(460px, 100%); perspective: 1300px; }
.rb-fan::before {
  content: ""; position: absolute; inset: 10% 5% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 70%, rgba(170, 79, 255, .45), transparent 65%); filter: blur(10px);
}
.rb-fan-stage {
  position: relative; z-index: 1; height: 460px; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  animation: rb-float 7s ease-in-out infinite;
}
@keyframes rb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.rb-fan-item {
  --x: 0px; --y: 0px; --r: 0deg; --z: 0px; --s: 1;
  position: absolute; bottom: 30px; left: 50%; width: 190px; color: var(--rb-on-dark);
  transform: translateX(-50%) translateX(var(--x)) translateY(var(--y)) translateZ(var(--z)) rotate(var(--r)) scale(var(--s));
  transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}
.rb-fan-item:hover, .rb-fan-item:focus-visible { color: var(--rb-on-dark); }
.rb-fan-item .rb-cover { box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.rb-fan-a { width: 240px; z-index: 3; --z: 60px; }
.rb-fan-b { z-index: 2; --x: -120px; --r: -9deg; --y: -8px; --z: 20px; }
.rb-fan-c { z-index: 1; --x: 120px; --r: 9deg; --y: -8px; }
.rb-fan:hover .rb-fan-b { --x: -150px; --r: -13deg; }
.rb-fan:hover .rb-fan-c { --x: 140px; --r: 12deg; }
.rb-fan:hover .rb-fan-item { filter: brightness(.7); }
.rb-fan .rb-fan-item:hover, .rb-fan .rb-fan-item:focus-visible { --y: -26px; --s: 1.04; z-index: 5; filter: none; }
.rb-fan-label {
  position: absolute; inset-inline: 0; top: calc(100% + 12px); text-align: center;
  font-family: var(--rb-heading); font-weight: 700; font-size: 18px; line-height: 1.4;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.rb-fan-item:hover .rb-fan-label, .rb-fan-item:focus-visible .rb-fan-label { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .rb-fan { width: min(340px, 100%); order: -1; }
  .rb-fan-stage { height: 330px; }
  .rb-fan-item { width: 135px; bottom: 10px; }
  .rb-fan-a { width: 175px; }
  .rb-fan-b { --x: -85px; }
  .rb-fan-c { --x: 85px; }
  .rb-fan:hover .rb-fan-b { --x: -110px; }
  .rb-fan:hover .rb-fan-c { --x: 110px; }
  .rb-fan-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rb-fan-stage { animation: none; transform: none; } }

/* questions: click a question to open its answer */
.rb-qa-grid { display: grid; gap: 12px; max-width: 880px; }
.rb-qa { background: var(--rb-card); border: 1px solid var(--rb-rule); border-radius: var(--rb-radius); transition: border-color .2s ease, box-shadow .2s ease; }
.rb-qa:hover { border-color: var(--rb-chip); }
.rb-qa[open] { border-color: var(--rb-purple); box-shadow: 0 18px 40px -28px rgba(126, 47, 207, .45); }
.rb-qa summary {
  font-family: var(--rb-heading); font-weight: 700; font-size: 22px; line-height: 1.55; color: var(--rb-ink);
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px;
}
.rb-qa summary::-webkit-details-marker { display: none; }
.rb-qa summary::after {
  content: "+"; flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--rb-purple-tint); color: var(--rb-purple);
  font-family: var(--rb-ui); font-size: 22px; line-height: 1; transition: transform .35s ease, background .25s ease, color .25s ease;
}
.rb-qa[open] summary::after { transform: rotate(45deg); background: var(--rb-purple); color: var(--rb-on-purple); }
.rb-qa summary:hover { color: var(--rb-purple); }
.rb-qa-body { overflow: hidden; }
.rb-qa-inner { display: grid; gap: 12px; padding: 0 26px 24px; }
.rb-qa-body p { font-size: 18px; line-height: 1.95; color: var(--rb-ink-2); max-width: 46em; }
.rb-qa-body .rb-verse-inline { color: var(--rb-purple-ink); }
.rb-qa-close { font-family: var(--rb-heading); font-weight: 700; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.7; max-width: 760px; margin-block-start: 40px; }

/* library */
.rb-lib-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.rb-feature-book {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: center;
  background: var(--rb-card); border: 1px solid var(--rb-rule); border-radius: 18px; padding: 32px;
}
.rb-feature-cover .rb-cover { width: 100%; }
.rb-feature-text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.rb-feature-title { font-family: var(--rb-display); font-weight: 700; font-size: clamp(34px, 4vw, 46px); line-height: 1.4; }
.rb-feature-title a { color: inherit; }
.rb-feature-line { font-family: var(--rb-heading); font-weight: 700; font-size: 22px; line-height: 1.6; }
.rb-feature-dek { color: var(--rb-mute); }
.rb-feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 8px; }
.rb-upcoming-card {
  display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 18px;
  border: 1px dashed var(--rb-chip); background: transparent;
}
.rb-upcoming-cover {
  display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 3 / 2; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 120%, rgba(243, 61, 4, .35), transparent 60%), linear-gradient(180deg, var(--rb-night), var(--rb-night-2));
  padding: 18px; font-family: var(--rb-display); font-weight: 700; font-size: 30px; line-height: 1.5; color: var(--rb-on-dark);
}
.rb-upcoming-text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rb-upcoming-title { font-size: 24px; }
.rb-lib-sub { font-size: 24px; margin-block: 48px 20px; }
.rb-guides-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* method closing line */
.rb-method-close { font-family: var(--rb-display); font-weight: 700; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.5; text-align: center; margin-block-start: 48px; }

/* the horizon band */
.rb-horizon-band { background: var(--rb-brand-ink); color: #FAFAFA; padding-block: 64px; }
.rb-horizon-band .rb-kicker { color: var(--rb-brand-blue); }
.rb-horizon-text { font-family: var(--rb-heading); font-weight: 700; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.8; max-width: 880px; margin-block-start: 10px; }

/* start here: curated essays */
.rb-pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rb-pick { display: flex; flex-direction: column; gap: 14px; color: var(--rb-ink); min-width: 0; }
.rb-pick:hover { color: var(--rb-ink); }
.rb-pick-media {
  display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(170, 79, 255, .45), transparent 60%), linear-gradient(180deg, var(--rb-night), var(--rb-night-2));
}
.rb-pick-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rb-pick:hover .rb-pick-media img { transform: scale(1.03); }
.rb-pick-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rb-pick-tag { font-family: var(--rb-ui); font-size: 12px; font-weight: 600; color: var(--rb-purple); border: 1px solid var(--rb-purple-tint); background: var(--rb-purple-tint); border-radius: 999px; padding: 1px 10px; }
.rb-pick-title { font-family: var(--rb-heading); font-weight: 700; font-size: 20px; line-height: 1.6; }
.rb-pick:hover .rb-pick-title { color: var(--rb-purple); }

/* the few (Telegram) and email */
.rb-few { background: var(--rb-paper-2); }
.rb-section.rb-few + .rb-section { border-block-start: 0; }
.rb-few-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.rb-few-inner .rb-sec-lede { max-width: 40em; }
.rb-email-box { max-width: 640px; margin-inline: auto; background: var(--rb-card); border: 1px solid var(--rb-rule); border-radius: 18px; padding: 32px; }
.rb-section.rb-cta-section#rb-email { padding-block: 72px 96px; }

/* author block, book page hook, question line */
.rb-guide-name { font-family: var(--rb-heading); font-weight: 700; font-size: 26px; }
.rb-guide-ref { font-family: var(--rb-heading); font-weight: 700; color: var(--rb-purple); }
.rb-bk-hook { font-family: var(--rb-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.6; }
.rb-question-line { font-family: var(--rb-heading); font-weight: 700; font-size: clamp(20px, 2.4vw, 25px); line-height: 1.8; text-align: center; max-width: 820px; margin: 48px auto 0; }
.rb-step-btn { margin-block-start: 8px; justify-self: start; }

.rb-editor-facts { margin: 0; display: grid; border-block-start: 1px solid var(--rb-rule); align-self: start; }
.rb-editor-facts div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--rb-rule); }
.rb-editor-facts dt { font-family: var(--rb-ui); font-size: 14px; color: var(--rb-mute); }
.rb-editor-facts dd { margin: 0; font-weight: 700; text-align: end; }

/* English About */
.rb-en-about-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.rb-en-about-hero .rb-h1 { font-family: var(--rb-latin); font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1.1; }
.rb-en-about-portrait { max-width: 300px; justify-self: center; width: 100%; }
.rb-en-about-text { display: grid; gap: 16px; font-family: var(--rb-latin); font-size: 19px; line-height: 1.7; }
html[lang="en"] .rb-method-close { font-family: var(--rb-latin); font-style: italic; font-weight: 600; }
html[lang="en"] .rb-editor-facts dd { font-family: var(--rb-latin); }
html[lang="en"] .rb-step h3 { font-family: var(--rb-latin); }

@media (max-width: 960px) {
  .rb-home-hero, .rb-en-about-hero { grid-template-columns: minmax(0, 1fr); }
  .rb-hero-visual { width: min(260px, 72vw); order: -1; }
  .rb-hero-covers { inset-inline-end: -36px; }
  .rb-hero-c { width: 80px; }
  .rb-hero-c1 { width: 96px; }
  .rb-lib-row { grid-template-columns: minmax(0, 1fr); }
  .rb-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .rb-qa summary { font-size: 19px; padding: 18px 20px; }
  .rb-qa-inner { padding: 0 20px 20px; }
  .rb-feature-book { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 20px; }
  .rb-feature-cover { width: min(200px, 60vw); margin-inline: auto; }
  .rb-guides-home { grid-template-columns: minmax(0, 1fr); }
  .rb-email-box { padding: 22px; }
}
@media (max-width: 480px) {
  .rb-pick-grid { grid-template-columns: minmax(0, 1fr); }
  .rb-hero-covers { inset-inline-end: -20px; }
}

/* ---------- 18. English section (listings; essays have their own CSS) ---------- */
.rb-en-page .rb-h1, .rb-en-page .rb-h2, html[lang="en"] .rb-h1 { font-family: var(--rb-latin); font-weight: 600; line-height: 1.2; }
html[lang="en"] .rb-page-head .rb-h1 { font-size: clamp(38px, 5.6vw, 58px); }
html[lang="en"] .rb-btn, html[lang="en"] .rb-chip, html[lang="en"] .rb-row-meta { font-family: var(--rb-latin); }
html[lang="en"] .rb-prose { font-family: var(--rb-latin); }
html[lang="en"] .rb-prose h3 { color: var(--rb-ink); }

/* English listings: night hero, essay cards with feature images, door cards */
html[lang="en"] { --rb-ui: "Plus Jakarta Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
html[lang="en"] .rb-kicker, html[lang="en"] .rb-btn, html[lang="en"] .rb-chip, html[lang="en"] .rb-pagination-info,
html[lang="en"] .rb-nav-links, html[lang="en"] .rb-footer { font-family: var(--rb-ui); }
html[lang="en"] .rb-kicker { letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.rb-en-hero .rb-h1 { font-family: var(--rb-latin); font-weight: 600; font-size: clamp(40px, 6vw, 72px); line-height: 1.08; letter-spacing: -.01em; max-width: 14em; }
.rb-en-hero .rb-h1 em { font-style: italic; font-weight: 400; color: var(--rb-dawn); }
.rb-en-hero .rb-page-lede { font-size: 20px; line-height: 1.6; }
.rb-en-hero .rb-kicker a { color: var(--rb-dawn); }
.rb-night .rb-doors { margin-block: 18px 0; }
.rb-night .rb-doors a { color: var(--rb-on-dark); border-color: rgba(242, 238, 248, .3); font-family: var(--rb-ui); font-size: 15px; }
.rb-night .rb-doors a:hover { background: rgba(242, 238, 248, .1); color: var(--rb-on-dark); border-color: rgba(242, 238, 248, .6); }
.rb-night .rb-doors a[aria-current="page"] { background: var(--rb-dawn); border-color: var(--rb-dawn); color: var(--rb-on-dawn); }

.rb-egrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.rb-ecard { display: flex; flex-direction: column; gap: 18px; color: var(--rb-ink); min-width: 0; }
.rb-ecard:hover { color: var(--rb-ink); }
.rb-ecard-media { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--rb-night); }
.rb-ecard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rb-ecard:hover .rb-ecard-media img { transform: scale(1.03); }
.rb-ecard-blank {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px;
  background: radial-gradient(ellipse at 50% 120%, rgba(240, 168, 92, .45), transparent 60%), linear-gradient(180deg, var(--rb-night), var(--rb-night-2));
}
.rb-ecard-blank span { font-family: var(--rb-latin); font-style: italic; font-size: 28px; color: var(--rb-dawn); line-height: 1.1; }
.rb-ecard-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rb-ecard-tag { font-family: var(--rb-ui); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rb-purple); }
.rb-ecard-title { font-family: var(--rb-latin); font-weight: 600; font-size: 23px; line-height: 1.25; letter-spacing: -.005em; }
.rb-ecard:hover .rb-ecard-title { color: var(--rb-purple-deep); }
.rb-ecard-dek { font-family: var(--rb-latin); font-size: 17px; line-height: 1.55; color: var(--rb-ink-2); }
.rb-ecard-meta { font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); margin-block-start: 2px; }
.rb-ecard-lead {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding-block-end: 56px; margin-block-end: 56px; border-block-end: 1px solid var(--rb-rule);
}
.rb-ecard-lead .rb-ecard-media { aspect-ratio: 3 / 2; border-radius: 16px; }
.rb-ecard-lead .rb-ecard-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.rb-ecard-lead .rb-ecard-dek { font-size: 19px; }
.rb-ecard-lead .rb-ecard-text { gap: 14px; }

.rb-en-doors-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-block-end: 64px; }
.rb-door-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 14px;
  background: var(--rb-card); border: 1px solid var(--rb-rule); color: var(--rb-ink); min-width: 0;
}
.rb-door-card:hover { border-color: var(--rb-purple); color: var(--rb-ink); }
.rb-door-name { font-family: var(--rb-latin); font-weight: 600; font-size: 26px; line-height: 1.15; }
.rb-door-desc { font-family: var(--rb-latin); font-size: 16px; line-height: 1.55; color: var(--rb-ink-2); }
.rb-door-go { margin-block-start: auto; padding-block-start: 6px; font-family: var(--rb-ui); font-size: 14px; font-weight: 600; color: var(--rb-purple); }
html[lang="en"] .rb-cta-title { font-family: var(--rb-latin); font-weight: 600; line-height: 1.2; }
html[lang="en"] .rb-cta-note { font-family: var(--rb-latin); }
html[lang="en"] .rb-notify-label { font-family: var(--rb-latin); font-weight: 600; }
@media (max-width: 1000px) {
  .rb-egrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-en-doors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-ecard-lead { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .rb-egrid, .rb-en-doors-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 19. Error, utilities ---------- */
.rb-error { text-align: center; padding-block: 120px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.rb-error .rb-hero-actions { justify-content: center; }
.rb-error-code { font-family: var(--rb-heading); font-weight: 700; font-size: 96px; line-height: 1; color: var(--rb-dawn); }
.rb-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rb-num { font-variant-numeric: tabular-nums; }
.rb-latin { font-family: var(--rb-latin); }

/* ---------- 20. Small screens, motion, print ---------- */
@media (max-width: 960px) {
  .rb-hero, .rb-bk-hero, .rb-problem, .rb-guide-grid, .rb-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rb-hero { padding-block: 56px 80px; }
  .rb-hero-cover { width: min(230px, 70vw); }
  .rb-bk-cover { order: -1; }
  .rb-bk-cover .rb-cover { width: min(230px, 62vw); }
  .rb-portrait { max-width: 280px; }
  .rb-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .rb-plan, .rb-levels { grid-template-columns: minmax(0, 1fr); }
  .rb-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-cta-band { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; gap: 28px; }
  .rb-cta-opt { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid rgba(255, 255, 255, .12); padding-block-start: 24px; }
  .rb-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rb-row-meta { white-space: normal; }
  .rb-guides { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .rb-menu-btn { display: inline-block; }
  .rb-nav-links {
    display: none; position: absolute; inset-inline: calc(-1 * var(--rb-gutter)); top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--rb-paper); border-block-end: 1px solid var(--rb-rule);
    padding: 8px var(--rb-gutter) 16px;
  }
  .rb-header.is-open .rb-nav-links { display: flex; }
  .rb-header.is-open .rb-menu { flex-direction: column; }
  .rb-menu a { padding-inline: 4px; min-height: 48px; }
  .rb-nav-cta { margin-block-start: 8px; align-self: flex-start; }
  html[lang="en"] .rb-menu-btn { display: none; }
  html[lang="en"] .rb-nav-links { display: flex; position: static; flex-direction: row; flex-wrap: wrap; background: none; border: 0; padding: 0; inset-inline: auto; }
  html[lang="en"] .rb-nav { flex-wrap: wrap; padding-block: 12px; }
}
@media (max-width: 700px) {
  :root { --rb-gutter: 16px; }
  body { font-size: 17px; }
  .rb-section { padding-block: 64px; }
  .rb-page-hero { padding-block: 48px 64px; }
  .rb-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .rb-book-title { font-size: 18px; }
  .rb-book-dek { display: none; }
  .rb-stakes, .rb-phases, .rb-principles { grid-template-columns: minmax(0, 1fr); }
  .rb-symptoms li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rb-guide { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .rb-prose { font-size: 18px; }
  .rb-cover-tag { inset-inline-start: -8px; }
  .rb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-fact, .rb-fact:first-child { padding-inline: 0 12px; border-inline-end: 0; }
}
/* ---------- 14b. Book page v4.2: chapters, reading bar, motion ----------
   roohle-books.js turns the post body into chapters (see section 2a of
   the script). Without the script the body stays plain prose. */
.rb-sec-alt { background: var(--rb-paper-2); }
.rb-section.rb-sec-alt, .rb-section.rb-sec-alt + .rb-section { border-block-start: 0; }

/* Hero cover: floats, tilts toward the pointer */
.rb-bk-cover { perspective: 1100px; }
.rb-bk-cover .rb-cover {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 40px 80px -26px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.rb-bk-cover::before {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 420px; height: 420px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(170, 79, 255, .35), transparent 62%);
}
.rb-bk-cover { position: relative; isolation: isolate; animation: rb-float 7s ease-in-out infinite; }

/* Chapters */
.rb-ch { position: relative; padding-block: 96px; background: var(--rb-paper); }
.rb-ch.is-alt { background: var(--rb-paper-2); }
.rb-ch-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.rb-ch-head { position: sticky; top: 150px; display: grid; gap: 6px; justify-items: start; }
.rb-ch-n {
  font-family: var(--rb-heading); font-weight: 700; font-size: 96px; line-height: 1;
  background: linear-gradient(160deg, var(--rb-brand-purple), var(--rb-dawn)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rb-ch-body > p:first-child { font-size: 1.12em; color: var(--rb-ink); }
.rb-ch-title { font-family: var(--rb-heading); font-weight: 700; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.45; margin: 0; }
.rb-ch-count { font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); padding-block-start: 10px; border-block-start: 2px solid var(--rb-purple); }
.rb-ch-body { max-width: 720px; margin-inline: 0; }
.rb-ch-body > :first-child { margin-block-start: 0; }

/* Dark chapter (table of contents) */
.rb-ch.is-dark { background: linear-gradient(180deg, var(--rb-night) 0%, var(--rb-night-2) 100%); color: var(--rb-on-dark); }
.rb-ch.is-dark .rb-ch-n { background-image: linear-gradient(160deg, var(--rb-brand-blue), var(--rb-brand-purple)); }
.rb-ch.is-dark .rb-ch-count { color: var(--rb-on-dark-2); border-color: var(--rb-brand-blue); }

/* Verse card */
.rb-ch-ayah {
  margin: 2em 0; padding: 36px 32px 28px; border-radius: 18px; text-align: center; position: relative;
  background: var(--rb-card); border: 1px solid var(--rb-rule);
  font-family: var(--rb-verse); font-size: clamp(22px, 2.6vw, 28px); line-height: 2.1; color: var(--rb-purple-ink);
  box-shadow: 0 24px 50px -36px rgba(74, 27, 128, .45);
}
.rb-ch-ayah::before {
  content: ""; position: absolute; top: -1px; inset-inline: 30%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rb-brand-purple), var(--rb-dawn));
}
.rb-ch-ayah cite { display: block; margin-block-start: 8px; font-family: var(--rb-ui); font-style: normal; font-size: 13px; color: var(--rb-mute); }
.rb-ch-pull { margin: 2em 0; padding-inline-start: 24px; border-inline-start: 3px solid var(--rb-dawn); font-family: var(--rb-heading); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.7; }

/* Full-width pull band (a quote that ends a chapter) */
.rb-ch-band {
  position: relative; overflow: hidden; isolation: isolate; padding-block: 110px; text-align: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(243, 61, 4, .4), transparent 55%), linear-gradient(180deg, var(--rb-night), var(--rb-night-2));
  color: var(--rb-on-dark);
}
.rb-ch-band::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rb-dawn) 30%, var(--rb-dawn-hi) 50%, var(--rb-dawn) 70%, transparent);
}
.rb-ch-band-text { font-family: var(--rb-display); font-weight: 700; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.6; display: grid; gap: 4px; justify-items: center; }
.rb-ch-band-text span:last-child { font-size: .62em; font-family: var(--rb-heading); color: var(--rb-on-dark-2); margin-block-start: 14px; }

/* Stages on a track */
.rb-ch-stages { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: st; }
.rb-ch-stages li {
  position: relative; margin: 0; padding: 30px 24px 24px; border-radius: var(--rb-radius);
  background: var(--rb-card); border: 1px solid var(--rb-rule); display: grid; gap: 6px; align-content: start;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.rb-ch-stages li::before { content: ""; position: absolute; top: -1px; inset-inline: -1px; height: 6px; border-radius: var(--rb-radius) var(--rb-radius) 0 0; background: var(--rb-purple); }
.rb-ch-stages li:nth-child(2)::before { background: color-mix(in srgb, var(--rb-purple) 62%, var(--rb-dawn-ink)); }
.rb-ch-stages li:nth-child(3)::before { background: var(--rb-dawn-ink); }
.rb-ch-stages li:hover { transform: translateY(-4px); border-color: var(--rb-purple); box-shadow: 0 22px 40px -30px rgba(74, 27, 128, .5); }
.rb-st-n { font-family: var(--rb-heading); font-weight: 700; font-size: 40px; line-height: 1; color: var(--rb-purple); }
.rb-ch-stages h3 { margin: 6px 0 0; font-size: 24px; color: var(--rb-ink); }
.rb-st-when { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--rb-dawn-ink); }
.rb-ch-stages p { font-size: 16.5px; line-height: 1.85; color: var(--rb-ink-2); margin: 6px 0 0; }

/* Two cards side by side (what's in it / what isn't) */
.rb-ch-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rb-ch-col { border-radius: 18px; padding: 30px; background: var(--rb-night); color: var(--rb-on-dark); }
.rb-ch-col h3 { margin: 0 0 16px; font-size: 26px; color: var(--rb-brand-blue); }
.rb-ch-col.is-no { background: var(--rb-card); color: var(--rb-ink); border: 1px solid var(--rb-rule); }
.rb-ch-col.is-no h3 { color: var(--rb-mute); }
.rb-ch-col .rb-checks li { font-size: 17px; line-height: 1.8; }
.rb-ch-col:not(.is-no) .rb-checks li::before { background-color: var(--rb-brand-purple); }

/* Table of contents */
.rb-ch-toc { list-style: none; padding: 0; margin: 0; border-block-start: 1px solid rgba(255, 255, 255, .14); }
.rb-ch-toc li {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: baseline;
  margin: 0; padding: 16px 10px; border-block-end: 1px solid rgba(255, 255, 255, .1); border-radius: 8px;
  transition: background .25s ease, padding .25s ease;
}
.rb-ch-toc li:hover { background: rgba(255, 255, 255, .05); padding-inline-start: 18px; }
.rb-toc-lbl { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--rb-brand-blue); }
.rb-toc-ttl { font-family: var(--rb-heading); font-size: 21px; font-weight: 700; line-height: 1.55; }
.rb-toc-pg { font-family: var(--rb-ui); font-size: 13px; color: var(--rb-on-dark-2); white-space: nowrap; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; }
.rb-ch-toc li.is-extra .rb-toc-ttl { font-family: var(--rb-ui); font-size: 15px; font-weight: 500; color: var(--rb-on-dark-2); }

/* Download panel (the post's file card) */
.rb-book-page.has-dl .rb-chapters .kg-file-card.is-promoted, .rb-chapters .kg-file-card { display: block; margin-block-start: 40px; }
.rb-chapters .rb-ch-dl .kg-file-card-container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; text-decoration: none;
  padding: 26px 30px; border-radius: 18px; color: var(--rb-on-dark);
  background: linear-gradient(120deg, rgba(170, 79, 255, .32), rgba(243, 61, 4, .18));
  border: 1px solid rgba(170, 79, 255, .55); transition: transform .3s ease, box-shadow .3s ease;
}
.rb-chapters .rb-ch-dl .kg-file-card-container:hover { color: var(--rb-on-dark); transform: translateY(-3px); box-shadow: 0 26px 50px -26px rgba(170, 79, 255, .7); }
.rb-chapters .rb-ch-dl .kg-file-card-title { font-family: var(--rb-heading); font-size: 24px; font-weight: 700; }
.rb-chapters .rb-ch-dl .kg-file-card-caption, .rb-chapters .rb-ch-dl .kg-file-card-metadata { color: var(--rb-on-dark-2); }
.rb-chapters .rb-ch-dl .kg-file-card-metadata { text-align: start; margin-block-start: 4px; }
.rb-chapters .rb-ch-dl .kg-file-card-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--rb-brand-purple) !important; color: #fff !important; animation: rb-pulse 2.6s ease-in-out infinite;
}
.rb-chapters .rb-ch-dl .kg-file-card-icon svg { width: 26px; height: 26px; }
.rb-chapters .rb-ch-dl .kg-file-card-icon::before { display: none; }
.rb-chapters .rb-ch-dl .kg-file-card-icon svg { color: #fff; stroke: #fff; }
.rb-chapters .rb-ch-dl .kg-file-card-icon svg .a { stroke: #fff; }
.rb-chapters:not(.is-dark) .rb-ch:not(.is-dark) .rb-ch-dl .kg-file-card-container { background: var(--rb-night); }
@keyframes rb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(170, 79, 255, .55); } 50% { box-shadow: 0 0 0 12px rgba(170, 79, 255, 0); } }

/* Notice card */
.rb-chapters .rb-ch-note.kg-callout-card {
  position: relative; display: block; padding: 28px 30px 28px 30px; padding-inline-start: 74px; border-radius: 18px;
  background: color-mix(in srgb, var(--rb-dawn-ink) 7%, var(--rb-card)); border: 1px solid color-mix(in srgb, var(--rb-dawn-ink) 35%, transparent);
}
.rb-chapters .rb-ch-note::before {
  content: "!"; position: absolute; inset-inline-start: 24px; top: 28px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rb-dawn-ink); color: #fff; font-family: var(--rb-ui); font-weight: 700;
}
.rb-chapters .rb-ch-note .kg-callout-emoji { display: none; }
.rb-chapters .rb-ch-note .kg-callout-text { font-size: 17.5px; line-height: 2; }
.rb-chapters .rb-ch-note b, .rb-chapters .rb-ch-note strong { color: var(--rb-ink); }

/* Questions */
.rb-ch-faq { max-width: none; }

/* Reading bar: under the header on wide screens, at the bottom on phones */
.rb-bkbar {
  position: fixed; inset-inline: 0; top: 68px; z-index: 40;
  background: color-mix(in srgb, var(--rb-paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid var(--rb-rule);
  transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, visibility 0s linear .4s;
}
.rb-bkbar.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.rb-bkbar-in { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.rb-bkbar-title { flex: none; font-family: var(--rb-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--rb-ink); text-decoration: none; }
.rb-bkbar-ch { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rb-bkbar-ch::-webkit-scrollbar { display: none; }
.rb-bkbar-ch a {
  flex: none; padding: 6px 12px; border-radius: 999px; font-family: var(--rb-ui); font-size: 13.5px; font-weight: 500;
  color: var(--rb-mute); text-decoration: none; transition: background .2s ease, color .2s ease;
}
.rb-bkbar-ch a:hover { color: var(--rb-ink); background: var(--rb-paper-2); }
.rb-bkbar-ch a[aria-current] { background: var(--rb-purple); color: var(--rb-on-purple); }
.rb-bkbar-dl { flex: none; }
.rb-bkbar-prog {
  position: absolute; inset-inline: 0; bottom: -1px; height: 3px; transform: scaleX(0); transform-origin: right;
  background: linear-gradient(270deg, var(--rb-brand-purple), var(--rb-dawn));
}
[dir="ltr"] .rb-bkbar-prog { transform-origin: left; }
html.rb-has-chapters { scroll-padding-top: 140px; }

/* Reveal on scroll (only when the script runs and motion is allowed) */
.rb-rv-on .rb-rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--rv, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--rv, 0ms); }
.rb-rv-on .rb-rv.is-in { opacity: 1; transform: none; }
.rb-rv-on .rb-ch-band-text.rb-rv { transform: none; opacity: 1; }
.rb-rv-on .rb-ch-band-text.rb-rv span { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity .9s ease var(--d), transform .9s ease var(--d), filter .9s ease var(--d); }
.rb-rv-on .rb-ch-band-text.rb-rv.is-in span { opacity: 1; transform: none; filter: none; }

@media (max-width: 960px) {
  .rb-ch { padding-block: 64px; }
  .rb-ch-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rb-ch-head { position: static; }
  .rb-ch-n { font-size: 60px; }
  .rb-ch-cols { grid-template-columns: minmax(0, 1fr); }
  .rb-ch-band { padding-block: 80px; }
  .rb-bkbar { top: auto; bottom: 0; border-block-end: 0; border-block-start: 1px solid var(--rb-rule); transform: translateY(110%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .rb-bkbar-ch { display: none; }
  .rb-bkbar-in { justify-content: space-between; min-height: 60px; }
  .rb-bkbar-prog { top: -1px; bottom: auto; }
  .rb-bk-cover::before { width: 300px; height: 300px; }
}
@media (max-width: 640px) {
  .rb-ch-toc li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-inline: 4px; }
  .rb-toc-lbl { grid-column: 1 / -1; }
  .rb-toc-ttl { font-size: 19px; }
  .rb-chapters .rb-ch-dl .kg-file-card-container { padding: 22px; }
  .rb-chapters .rb-ch-dl .kg-file-card-title { font-size: 20px; }
  .rb-ch-ayah { padding: 28px 18px 22px; }
  .rb-chapters .rb-ch-note.kg-callout-card { padding: 64px 22px 24px; }
  .rb-chapters .rb-ch-note::before { top: 22px; }
}
/* ---------- 14c. «سُبل ربّك» (partials/subul-story.hbs) ----------
   The book's own palette joins the site's: night navy, cream, honey. */
.rb-subul {
  --sb-honey: #E8B65A; --sb-honey-deep: #A86B2A; --sb-navy: #151933; --sb-navy-2: #1E2346; --sb-cream: #F7F1E6;
  --sb-comb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
}
.rb-sb-ruqaa { font-family: var(--rb-display); font-weight: 700; font-size: clamp(36px, 5vw, 60px); line-height: 1.55; }
.rb-center { text-align: center; }
.rb-center.rb-sec-head { margin-inline: auto; max-width: 860px; }
.rb-center .rb-sec-lede { margin-inline: auto; }
.rb-sb-line { font-family: var(--rb-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.6; text-align: center; margin-block-start: 56px; }

/* problem: the reader's objections as an accordion */
.rb-sb-objections { min-width: 0; }
.rb-sb-tap { font-family: var(--rb-ui); font-size: 14px; font-weight: 600; color: var(--rb-mute); margin-block-end: 12px; }
.rb-sb-objections .rb-qa summary { font-family: var(--rb-heading); font-size: 21px; }

/* guide band */
.rb-sb-guide { background: var(--sb-cream); color: #2A2418; padding-block: 64px; border-block: 1px solid #EADFCB; }
.rb-sb-guide-in { max-width: 900px; }
.rb-sb-guide-quote { margin: 0; padding-inline-start: 26px; border-inline-start: 4px solid var(--sb-honey); font-family: var(--rb-heading); font-weight: 700; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.8; }
.rb-sb-guide-sig { margin-block-start: 14px; padding-inline-start: 30px; font-family: var(--rb-ui); font-size: 14px; color: var(--sb-honey-deep); font-weight: 600; }
@media (prefers-color-scheme: dark) { html[lang="ar"] .rb-sb-guide { background: #1D1A14; color: #F1E7D3; border-color: #2F291D; } }

/* the hive (dark, honeycomb) */
.rb-sb-hive, .rb-sb-day {
  position: relative; isolation: isolate; padding-block: 104px; color: var(--rb-on-dark);
  background: var(--sb-comb), radial-gradient(ellipse at 50% 115%, rgba(232, 182, 90, .22), transparent 60%), linear-gradient(180deg, var(--sb-navy), var(--sb-navy-2));
}
.rb-sb-hive .rb-kicker, .rb-sb-day .rb-kicker { color: var(--sb-honey); }
.rb-sb-hive .rb-sec-lede, .rb-sb-day .rb-sec-lede { color: var(--rb-on-dark-2); }
.rb-sb-hive .rb-verse-inline { color: var(--sb-honey); }
.rb-sb-ayah-lg { font-family: var(--rb-verse); font-size: clamp(22px, 2.8vw, 30px); line-height: 2.1; margin-block: 8px 18px; }
.rb-sb-ayah-lg cite { display: block; font-family: var(--rb-ui); font-style: normal; font-size: 13px; color: var(--sb-honey); }
.rb-sb-hex { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rb-sb-hex li {
  position: relative; display: grid; gap: 6px; align-content: start; margin: 0; padding: 26px 26px 24px; padding-inline-start: 78px;
  border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.rb-sb-hex li::before {
  content: ""; position: absolute; inset-inline-start: 24px; top: 26px; width: 36px; height: 40px; background: var(--sb-honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: transform .5s ease, filter .35s ease;
}
.rb-sb-hex li:hover { transform: translateY(-4px); border-color: rgba(232, 182, 90, .55); background: rgba(232, 182, 90, .07); }
.rb-sb-hex li:hover::before { transform: rotate(60deg); filter: drop-shadow(0 0 12px rgba(232, 182, 90, .8)); }
.rb-sb-hex b { font-family: var(--rb-heading); font-size: 22px; font-weight: 700; }
.rb-sb-hex span { font-size: 16px; line-height: 1.85; color: var(--rb-on-dark-2); }

/* the four pillars */
.rb-sb-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rb-sb-pillar {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 24px; border-radius: 18px;
  background: var(--rb-card); border: 1px solid var(--rb-rule); border-block-start: 5px solid var(--c); outline: none;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease;
}
.rb-sb-p-tag { font-family: var(--rb-ui); font-size: 12.5px; font-weight: 600; color: var(--c); }
.rb-sb-sym { margin-inline-end: 4px; }
.rb-sb-pillar h3 { font-size: 26px; }
.rb-sb-p-say { font-family: var(--rb-verse); font-size: 21px; line-height: 1.7; color: var(--c); }
.rb-sb-p-role { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--rb-mute); }
.rb-sb-p-text { font-size: 16px; line-height: 1.85; color: var(--rb-ink-2); }
.rb-sb-p-when { margin-block-start: auto; padding-block-start: 12px; border-block-start: 1px dashed var(--rb-rule); font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); }
.rb-sb-pillar:hover, .rb-sb-pillar:focus-visible { transform: translateY(-6px); background: var(--c); color: #fff; box-shadow: 0 30px 50px -30px var(--c); }
.rb-sb-pillar:hover :is(.rb-sb-p-tag, .rb-sb-p-say, .rb-sb-p-role, .rb-sb-p-text, .rb-sb-p-when),
.rb-sb-pillar:focus-visible :is(.rb-sb-p-tag, .rb-sb-p-say, .rb-sb-p-role, .rb-sb-p-text, .rb-sb-p-when) { color: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .3); }
.rb-sb-line-paper { color: var(--rb-ink); }

/* try it now */
.rb-sb-try { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.rb-sb-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; counter-reset: s; }
.rb-sb-steps li {
  counter-increment: s; position: relative; display: grid; gap: 2px; margin: 0; padding: 12px 16px; padding-inline-start: 58px;
  border-radius: 12px; background: var(--rb-card); border: 1px solid var(--rb-rule); transition: border-color .3s ease, opacity .3s ease, background .3s ease;
}
.rb-sb-steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sb-honey-deep); color: #fff; font-family: var(--rb-ui); font-size: 14px; font-weight: 600;
}
.rb-sb-steps b { font-family: var(--rb-heading); font-size: 19px; }
.rb-sb-steps span { font-size: 15px; color: var(--rb-mute); line-height: 1.75; }
.rb-sb-steps li[data-n]::after { content: "×33"; position: absolute; inset-inline-end: 16px; top: 14px; font-family: var(--rb-ui); font-weight: 700; color: var(--sb-honey-deep); }
.has-counter .rb-sb-steps li.is-done { opacity: .5; }
.has-counter .rb-sb-steps li.is-done::before { content: "✓"; background: #2E7A57; }
.has-counter .rb-sb-steps li[aria-current] { border-color: var(--sb-honey-deep); background: color-mix(in srgb, var(--sb-honey) 12%, var(--rb-card)); }
.rb-sb-counter[hidden] { display: none; }
.rb-sb-counter { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rb-sb-c-step { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--rb-mute); }
.rb-sb-c-btn {
  position: relative; width: min(300px, 76vw); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; padding: 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--rb-on-dark);
  background: radial-gradient(circle at 50% 30%, var(--sb-navy-2), var(--sb-navy)); box-shadow: 0 30px 60px -30px rgba(21, 25, 51, .9);
  -webkit-tap-highlight-color: transparent; transition: transform .15s ease;
}
.rb-sb-c-btn:active { transform: scale(.97); }
.rb-sb-c-btn:focus-visible { outline: 3px solid var(--sb-honey); outline-offset: 4px; }
.rb-sb-c-ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); transform: rotate(-90deg); }
.rb-sb-c-ring circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 4; }
.rb-sb-c-ring .rb-sb-c-fill { stroke: var(--sb-honey); stroke-linecap: round; transition: stroke-dashoffset .3s ease; }
.rb-sb-c-say { position: relative; font-family: var(--rb-heading); font-weight: 700; font-size: 26px; line-height: 1.5; }
.rb-sb-c-num { position: relative; font-family: var(--rb-ui); font-size: 30px; font-weight: 600; color: var(--sb-honey); min-height: 1em; }
.rb-sb-c-btn.is-pulse .rb-sb-c-num { animation: rb-tick .35s ease; }
@keyframes rb-tick { 0% { transform: scale(1.25); } 100% { transform: none; } }
.rb-sb-c-hint { font-size: 15px; color: var(--rb-mute); max-width: 320px; line-height: 1.8; }
.rb-sb-c-done { display: grid; gap: 10px; justify-items: center; padding: 28px; border-radius: 18px; background: var(--sb-navy); color: var(--rb-on-dark); max-width: 420px; }
.rb-sb-c-done[hidden] { display: none; }
.rb-sb-c-done-title { font-family: var(--rb-heading); font-weight: 700; font-size: 24px; color: var(--sb-honey); }
.rb-sb-c-done p { color: var(--rb-on-dark-2); font-size: 16px; line-height: 1.85; }
.rb-sb-c-felt b { color: var(--rb-on-dark); }
.rb-sb-c-done .rb-btn-ghost { color: var(--rb-on-dark); border-color: rgba(255, 255, 255, .3); }

/* the day: a wheel of ten times */
.rb-sb-wheel { position: relative; width: min(640px, 100%); aspect-ratio: 1; margin: 40px auto 0; }
.rb-sb-times { list-style: none; padding: 0; margin: 0; }
.rb-sb-wheel.is-live .rb-sb-times li {
  position: absolute; top: 50%; left: 50%; width: 104px; margin: -52px 0 0 -52px;
  transform: rotate(calc(var(--i) * 36deg)) translateY(-262px) rotate(calc(var(--i) * -36deg));
}
.rb-sb-times button {
  width: 104px; height: 104px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); cursor: pointer; padding: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--rb-on-dark);
  background: rgba(255, 255, 255, .05); transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.rb-sb-t-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--t); color: #151933; font-family: var(--rb-ui); font-size: 13px; font-weight: 700; }
.rb-sb-t-name { font-family: var(--rb-heading); font-weight: 700; font-size: 16px; line-height: 1.35; text-align: center; }
.rb-sb-times button:hover { background: rgba(255, 255, 255, .1); transform: scale(1.06); }
.rb-sb-times button:focus-visible { outline: 2px solid var(--sb-honey); outline-offset: 3px; }
.rb-sb-times li.is-on button { background: var(--sb-honey); color: #151933; border-color: var(--sb-honey); transform: scale(1.12); box-shadow: 0 0 0 8px rgba(232, 182, 90, .15), 0 0 40px rgba(232, 182, 90, .45); }
.rb-sb-times li.is-on .rb-sb-t-n { background: #151933; color: var(--sb-honey); }
.rb-sb-wheel.is-live .rb-sb-t-info { display: none; }
.rb-sb-wheel:not(.is-live) .rb-sb-times { display: grid; gap: 10px; }
.rb-sb-wheel:not(.is-live) { aspect-ratio: auto; }
.rb-sb-wheel:not(.is-live) .rb-sb-hub { display: none; }
.rb-sb-hub {
  position: absolute; top: 50%; left: 50%; width: 404px; height: 404px; margin: -202px 0 0 -202px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 40px 44px;
  background: radial-gradient(circle at 50% 35%, #262C58, #12152C 70%); border: 1px solid rgba(232, 182, 90, .35);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .02), 0 0 80px -20px var(--t, rgba(232, 182, 90, .5));
  transition: box-shadow .5s ease;
}
.rb-sb-hub-k { font-family: var(--rb-ui); font-size: 12.5px; font-weight: 600; color: var(--sb-honey); }
.rb-sb-hub-t { font-family: var(--rb-display); font-weight: 700; font-size: 38px; line-height: 1.4; }
.rb-sb-hub-s { font-size: 14px; color: var(--rb-on-dark-2); }
.rb-sb-hub > p:not([class]) { font-size: 15px; line-height: 1.85; color: var(--rb-on-dark); }
.rb-sb-hub small, .rb-sb-t-info small { display: block; font-family: var(--rb-verse); font-size: 14.5px; color: var(--sb-honey); line-height: 1.8; }
.rb-sb-hub > * { animation: rb-fadeup .45s ease both; }
.rb-sb-hub small.rb-sb-t-min, .rb-sb-t-info small.rb-sb-t-min { font-family: var(--rb-ui); font-size: 12.5px; color: var(--rb-on-dark-2); }
.rb-sb-stakes-ayah { margin-block: 0 32px; }
@keyframes rb-fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rb-sb-note { text-align: center; font-family: var(--rb-ui); font-size: 14px; color: var(--rb-on-dark-2); margin-block-start: 36px; }
.rb-sb-note-paper { color: var(--rb-mute); }

/* the plan, the ascent, the stages */
.rb-sb-plan { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-sb-plan .rb-step-n { color: var(--sb-honey-deep); }
.rb-sb-climb { margin: 48px 0 0; padding: 30px 32px 24px; border-radius: 18px; background: var(--rb-card); border: 1px solid var(--rb-rule); }
.rb-sb-climb figcaption { font-size: 15px; color: var(--rb-mute); margin-block-end: 18px; }
.rb-sb-climb figcaption b { font-family: var(--rb-heading); font-size: 22px; color: var(--rb-ink); margin-inline-end: 8px; }
.rb-sb-climb ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: end; }
.rb-sb-climb li { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: center; gap: 6px; }
.rb-sb-climb i {
  display: block; height: calc(var(--v) / 4000 * 170px + 6px); border-radius: 8px 8px 3px 3px; transform-origin: bottom;
  background: color-mix(in srgb, var(--sb-honey-deep) calc(var(--v) / 40 * 1%), var(--sb-honey));
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.rb-sb-climb li:last-child i { background: var(--sb-navy); }
.rb-sb-climb.is-armed i { transform: scaleY(0); }
.rb-sb-climb.is-armed.is-in i { transform: none; }
.rb-sb-climb li:nth-child(2) i { transition-delay: .1s; } .rb-sb-climb li:nth-child(3) i { transition-delay: .2s; }
.rb-sb-climb li:nth-child(4) i { transition-delay: .3s; } .rb-sb-climb li:nth-child(5) i { transition-delay: .4s; }
.rb-sb-climb li:nth-child(6) i { transition-delay: .5s; } .rb-sb-climb li:nth-child(7) i { transition-delay: .6s; }
.rb-sb-c-v { font-family: var(--rb-ui); font-weight: 700; font-size: 15px; }
.rb-sb-c-l { font-family: var(--rb-ui); font-size: 12.5px; line-height: 1.4; color: var(--rb-mute); min-height: 2.8em; }
.rb-sb-climb-note { margin-block-start: 16px; font-size: 15px; color: var(--rb-mute); }
.rb-sb-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-start: 20px; }
.rb-sb-stage { padding: 26px; border-radius: 18px; background: var(--rb-card); border: 1px solid var(--rb-rule); display: grid; gap: 4px; align-content: start; }
.rb-sb-s-n { font-family: var(--rb-ui); font-size: 13px; color: var(--rb-mute); font-weight: 600; }
.rb-sb-stage h3 { font-size: 28px; }
.rb-sb-s-big { font-family: var(--rb-ui); font-weight: 700; font-size: 26px; color: var(--sb-honey-deep); }
.rb-sb-stage p:last-child { font-size: 15.5px; color: var(--rb-ink-2); line-height: 1.8; }
.rb-sb-stage.is-honey { background: var(--sb-navy); border-color: var(--sb-navy); color: var(--rb-on-dark); }
.rb-sb-stage.is-honey .rb-sb-s-big, .rb-sb-stage.is-honey h3 { color: var(--sb-honey); }
.rb-sb-stage.is-honey p { color: var(--rb-on-dark-2); }

/* what's inside */
.rb-sb-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rb-sb-part { padding: 28px; border-radius: 18px; background: var(--rb-card); border: 1px solid var(--rb-rule); display: flex; flex-direction: column; gap: 8px; }
.rb-sb-part-n { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--sb-honey-deep); }
.rb-sb-part h3 { font-family: var(--rb-display); font-size: 32px; line-height: 1.4; }
.rb-sb-part p { font-size: 16px; line-height: 1.85; color: var(--rb-ink-2); }
.rb-sb-part .rb-sb-part-line { margin-block-start: auto; padding-block-start: 12px; border-block-start: 1px dashed var(--rb-rule); font-family: var(--rb-heading); font-weight: 700; color: var(--rb-ink); }
.rb-sb-also { margin-block-start: 16px; font-size: 15px; color: var(--rb-mute); }
.rb-sb-companion {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 28px; align-items: center; margin-block-start: 48px; padding: 28px 32px;
  border-radius: 20px; background: var(--rb-night); color: var(--rb-on-dark); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.rb-sb-companion:hover { color: var(--rb-on-dark); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(13, 10, 22, .8); }
.rb-sb-comp-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rb-sb-companion .rb-kicker { color: var(--rb-brand-blue); }
.rb-sb-comp-title { font-family: var(--rb-display); font-weight: 700; font-size: clamp(30px, 4vw, 42px); line-height: 1.4; }
.rb-sb-comp-dek { color: var(--rb-on-dark-2); font-size: 17px; line-height: 1.8; }
.rb-sb-companion .rb-link-arrow { color: var(--rb-on-dark); }
.rb-cta-ruqaa { font-family: var(--rb-display); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.5; }

@media (max-width: 1000px) {
  .rb-sb-pillars, .rb-sb-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-sb-hex { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rb-sb-hive, .rb-sb-day { padding-block: 72px; }
  .rb-sb-hex, .rb-sb-pillars, .rb-sb-plan, .rb-sb-stages, .rb-sb-parts, .rb-sb-try { grid-template-columns: minmax(0, 1fr); }
  .rb-sb-try { gap: 32px; }
  /* the wheel becomes a list; the chosen time opens in place */
  .rb-sb-wheel, .rb-sb-wheel.is-live { aspect-ratio: auto; width: 100%; }
  .rb-sb-wheel.is-live .rb-sb-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .rb-sb-wheel.is-live .rb-sb-times li { position: static; width: auto; margin: 0; transform: none; }
  .rb-sb-times button { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; }
  .rb-sb-t-name { font-size: 12.5px; }
  .rb-sb-times li.is-on button { transform: none; }
  .rb-sb-hub { position: static; width: auto; height: auto; margin: 16px 0 0; border-radius: 18px; padding: 26px 22px; }
  .rb-sb-hub-t { font-size: 32px; }
  .rb-sb-climb { padding: 22px 16px; }
  .rb-sb-climb ol { gap: 5px; }
  .rb-sb-c-v { font-size: 12px; }
  .rb-sb-c-l { font-size: 10.5px; min-height: 4.2em; }
  .rb-sb-companion { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 22px; }
}

/* the homepage library: every book as a feature card */
.rb-lib-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; margin-block-end: 20px; }
.rb-lib-books .rb-feature-book { grid-template-columns: 170px minmax(0, 1fr); }
.rb-lib-books .rb-feature-title { font-size: clamp(32px, 3.4vw, 40px); }
.rb-lib-row:not(:has(> *)) { display: none; }
.rb-lib-row:has(> .rb-upcoming-card:only-child) { grid-template-columns: minmax(0, 1fr); }
.rb-lib-row > .rb-upcoming-card:only-child { flex-direction: row; align-items: center; }
.rb-lib-row > .rb-upcoming-card:only-child .rb-upcoming-cover { width: 220px; flex: none; font-size: 24px; }
@media (max-width: 640px) {
  .rb-lib-books .rb-feature-book { grid-template-columns: minmax(0, 1fr); }
  .rb-lib-row > .rb-upcoming-card:only-child { flex-direction: column; align-items: stretch; }
  .rb-lib-row > .rb-upcoming-card:only-child .rb-upcoming-cover { width: auto; }
}
/* the hero fan with two covers instead of three */

/* v4.4: the shorter «سُبُل ربّك» page */
.rb-bk-lede { font-size: 18px; line-height: 1.9; color: var(--rb-on-dark-2); max-width: 34em; }
.rb-sb-narrow { max-width: 820px; }
.rb-sb-short { padding-block: 80px; }
.rb-sb-q { font-family: var(--rb-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.55; margin-block-end: 18px; }
.rb-sb-narrow p { font-size: 19px; line-height: 2; color: var(--rb-ink-2); }
.rb-sb-narrow p + p { margin-block-start: 14px; }
.rb-sb-voice { font-family: var(--rb-heading); font-weight: 700; color: var(--rb-ink) !important; padding-inline-start: 20px; border-inline-start: 3px solid var(--sb-honey); }
.rb-sb-day .rb-sec-lede + .rb-sec-lede { margin-block-start: 12px; }
.rb-sb-wheel-sm { width: min(560px, 100%); }
.rb-sb-wheel-sm.is-live .rb-sb-times li { width: 92px; margin: -46px 0 0 -46px; transform: rotate(calc(var(--i) * 36deg)) translateY(-230px) rotate(calc(var(--i) * -36deg)); }
.rb-sb-wheel-sm .rb-sb-times button { width: 92px; height: 92px; }
.rb-sb-wheel-sm .rb-sb-t-name { font-size: 14.5px; }
.rb-sb-wheel-sm .rb-sb-hub { width: 350px; height: 350px; margin: -175px 0 0 -175px; padding: 30px 34px; gap: 4px; }
.rb-sb-wheel-sm .rb-sb-hub-t { font-size: 32px; }
.rb-sb-wheel-sm .rb-sb-hub > p:not([class]) { font-size: 14px; line-height: 1.75; }
.rb-sb-wheel-sm .rb-sb-hub small { font-size: 13px; line-height: 1.7; }
.rb-sb-pillars-sm .rb-sb-pillar { gap: 8px; padding: 24px 22px; }
.rb-sb-pillars-sm .rb-sb-p-tag { font-family: var(--rb-heading); font-size: 21px; font-weight: 700; }
.rb-sb-hard .rb-qa-grid { max-width: 820px; }
.rb-sb-hard .rb-qa summary { font-family: var(--rb-heading); font-size: 21px; }
.rb-sb-name { margin-block-start: 40px; padding: 30px 32px; border-radius: 18px; text-align: center; color: var(--rb-on-dark);
  background: var(--sb-comb), linear-gradient(180deg, var(--sb-navy), var(--sb-navy-2)); }
.rb-sb-name h3 { font-family: var(--rb-display); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.5; }
.rb-sb-name p { color: var(--rb-on-dark-2); }
.rb-sb-name-ayah { font-family: var(--rb-verse); font-size: clamp(21px, 2.4vw, 26px); line-height: 2.1; color: var(--rb-on-dark) !important; margin-block: 8px; }
.rb-sb-name-ayah cite { display: block; font-family: var(--rb-ui); font-style: normal; font-size: 13px; color: var(--sb-honey); }
.rb-sb-meta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-block-start: 16px; align-items: stretch; }
.rb-sb-meta .rb-sb-companion { margin: 0; }
.rb-sb-author { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: 20px; background: var(--rb-card); border: 1px solid var(--rb-rule); }
.rb-sb-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.rb-sb-author-name { font-family: var(--rb-heading); font-weight: 700; font-size: 21px; }
.rb-sb-author p { font-size: 16px; line-height: 1.85; color: var(--rb-ink-2); }
.rb-sb-author .rb-link-arrow { display: inline-block; margin-block-start: 8px; }
@media (max-width: 860px) { .rb-sb-meta { grid-template-columns: minmax(0, 1fr); } }
/* the compact wheel on phones: a 5 × 2 grid of times, the chosen one opens below */
@media (max-width: 760px) {
  .rb-sb-wheel-sm, .rb-sb-wheel-sm.is-live { width: 100%; aspect-ratio: auto; margin-block-start: 28px; }
  .rb-sb-wheel-sm.is-live .rb-sb-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .rb-sb-wheel-sm.is-live .rb-sb-times li { position: static; width: auto; margin: 0; transform: none; }
  .rb-sb-wheel-sm .rb-sb-times button { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; padding: 4px; }
  .rb-sb-wheel-sm .rb-sb-t-name { font-size: 12.5px; line-height: 1.3; }
  .rb-sb-wheel-sm .rb-sb-t-n { width: 22px; height: 22px; font-size: 12px; }
  .rb-sb-wheel-sm .rb-sb-times li.is-on button { transform: none; box-shadow: 0 0 0 4px rgba(232, 182, 90, .2); }
  .rb-sb-wheel-sm .rb-sb-hub { position: static; width: auto; height: auto; margin: 14px 0 0; border-radius: 18px; padding: 24px 20px; }
  .rb-sb-wheel-sm .rb-sb-hub-t { font-size: 30px; }
  .rb-sb-wheel-sm .rb-sb-hub > p:not([class]) { font-size: 15.5px; line-height: 1.85; }
  .rb-sb-wheel-sm .rb-sb-hub small { font-size: 14.5px; line-height: 1.85; }
  .rb-sb-day .rb-sec-lede { font-size: 17px; }
}

/* homepage hero with two covers: equal weight; the one under the pointer comes forward */
.rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-item { width: 220px; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s ease; }
.rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-a { --x: 92px; --r: 5deg; --y: 0px; --z: 0px; z-index: 2; }
.rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-b { --x: -92px; --r: -5deg; --y: 0px; --z: 0px; z-index: 2; }
.rb-fan:hover .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-a { --x: 92px; --r: 5deg; }
.rb-fan:hover .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-b { --x: -92px; --r: -5deg; }
.rb-fan .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-item.is-front { --s: 1.1; --z: 90px; --y: -14px; --r: 0deg; z-index: 4; filter: none; }
.rb-fan .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-item.is-back { --s: .88; --z: -60px; --y: 10px; z-index: 1; filter: brightness(.55) saturate(.8); }
.rb-fan .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-a.is-back { --x: 128px; --r: 9deg; }
.rb-fan .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-b.is-back { --x: -128px; --r: -9deg; }
.rb-fan .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-item.is-front .rb-fan-label { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-item { width: 160px; }
  .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-a { --x: 66px; }
  .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-b { --x: -66px; }
  .rb-fan .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-a.is-back { --x: 88px; }
  .rb-fan .rb-fan-stage:not(:has(.rb-fan-c)) .rb-fan-b.is-back { --x: -88px; }
}

/* v4.5: four parts, pillar roles */
.rb-sb-pillars-lede { max-width: 50em; margin-block: -12px 28px; }
.rb-sb-pillars-lede b { font-weight: 700; }
.rb-sb-parts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-sb-part-q { font-family: var(--rb-heading); font-weight: 700; font-size: 19px !important; color: var(--rb-ink) !important; }
.rb-sb-part.is-new { background: var(--sb-navy); border-color: var(--sb-navy); color: var(--rb-on-dark); position: relative; }
.rb-sb-part.is-new p, .rb-sb-part.is-new .rb-sb-part-q { color: var(--rb-on-dark-2) !important; }
.rb-sb-part.is-new .rb-sb-part-q, .rb-sb-part.is-new .rb-sb-part-line { color: var(--rb-on-dark) !important; border-color: rgba(255, 255, 255, .15); }
.rb-sb-part.is-new .rb-sb-part-n { color: var(--sb-honey); }
.rb-sb-author-hope { margin-block-start: 10px; font-family: var(--rb-heading); font-weight: 700; color: var(--rb-ink) !important; }
@media (max-width: 1100px) { .rb-sb-parts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rb-sb-parts-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 17b. About page (v4.6) ---------- */
.rb-ab-hero { padding-block: 72px 104px; align-items: center; }
.rb-ab-portrait { width: min(320px, 70vw); justify-self: center; }
.rb-ab-col { max-width: 760px; }
.rb-ab-col > p { font-size: 19px; line-height: 2; color: var(--rb-ink-2); margin-block-start: 18px; }
.rb-ab-col > .rb-h2 { margin-block-end: 8px; }
.rb-ab-col strong { color: var(--rb-ink); }
.rb-ab-year { display: flex; gap: 22px; align-items: flex-start; margin-block: 28px; padding: 24px 26px; border-radius: var(--rb-radius); background: var(--rb-purple-tint); }
.rb-ab-year-n { flex: none; font-family: var(--rb-heading); font-weight: 700; font-size: 40px; line-height: 1.15; color: var(--rb-purple); }
.rb-ab-year p { font-size: 18px; line-height: 1.95; color: var(--rb-ink); }
.rb-ab-col .rb-ayah { margin-block: 28px; }
.rb-ab-turn { font-family: var(--rb-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px) !important; line-height: 1.6 !important; color: var(--rb-ink) !important; margin-block-start: 36px !important; }
.rb-ab-ruh { margin: 32px 0 8px; padding: 32px 24px; border-radius: 18px; background: var(--rb-card); border: 1px solid var(--rb-rule); display: flex; flex-direction: column; align-items: center; }
.rb-ab-ruh-top { padding: 14px 30px; border-radius: 999px; background: var(--rb-night); color: var(--rb-on-dark); font-family: var(--rb-heading); font-weight: 700; font-size: 24px; line-height: 1.4; box-shadow: 0 0 0 6px var(--rb-purple-tint); }
.rb-ab-ruh-fork, .rb-ab-ruh-join { width: 50%; height: 36px; position: relative; }
.rb-ab-ruh-fork { border: 1.5px solid var(--rb-chip); border-bottom: 0; border-radius: 12px 12px 0 0; margin-block-start: 18px; }
.rb-ab-ruh-fork::before { content: ""; position: absolute; left: 50%; top: -19px; width: 1.5px; height: 18px; background: var(--rb-chip); }
.rb-ab-ruh-join { border: 1.5px solid var(--rb-chip); border-top: 0; border-radius: 0 0 12px 12px; margin-block-end: 18px; }
.rb-ab-ruh-join::after { content: ""; position: absolute; left: 50%; bottom: -19px; width: 1.5px; height: 18px; background: var(--rb-chip); }
.rb-ab-ruh-two { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rb-ab-ruh-two > div { padding: 20px 22px; border-radius: 14px; background: var(--rb-purple-tint); display: flex; flex-direction: column; gap: 6px; }
.rb-ab-ruh-k { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--rb-purple); }
.rb-ab-ruh-two b { font-family: var(--rb-heading); font-size: 22px; line-height: 1.5; color: var(--rb-ink); }
.rb-ab-ruh-two span:last-child { font-size: 16px; line-height: 1.8; color: var(--rb-ink-2); }
.rb-ab-ruh-two small { font-family: var(--rb-ui); font-size: 12.5px; color: var(--rb-mute); }
.rb-ab-ruh-end { width: 100%; box-sizing: border-box; padding: 24px; border-radius: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--rb-on-dark);
  background: radial-gradient(ellipse at 50% 130%, rgba(243, 61, 4, .35), transparent 60%), linear-gradient(180deg, var(--rb-night), var(--rb-night-2)); }
.rb-ab-ruh-end b { font-family: var(--rb-display); font-size: 30px; line-height: 1.5; }
.rb-ab-ruh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rb-ab-ruh-chips span { padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(70, 190, 255, .45); font-family: var(--rb-ui); font-size: 15px; font-weight: 500; color: var(--rb-on-dark); }
.rb-ab-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .rb-ab-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rb-ab-book { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rb-ab-book-cover { display: block; margin-block-end: 8px; transition: transform .3s ease; }
.rb-ab-book-cover:hover { transform: translateY(-4px); }
.rb-ab-book-cover .rb-cover { box-shadow: var(--rb-shadow-book); }
.rb-ab-book-k { font-family: var(--rb-ui); font-size: 13px; font-weight: 600; color: var(--rb-purple); }
.rb-ab-book.is-soon .rb-ab-book-k { color: var(--rb-dawn-ink); }
.rb-ab-book h3 { font-size: 22px; line-height: 1.5; }
.rb-ab-book h3 a { color: inherit; }
.rb-ab-book p:not(.rb-ab-book-k) { font-size: 16px; line-height: 1.8; color: var(--rb-ink-2); }
.rb-ab-book .rb-link-arrow { margin-block-start: auto; padding-block-start: 4px; }
.rb-ab-book-ph { aspect-ratio: 2 / 3; margin-block-end: 8px; border-radius: 6px; border: 1.5px dashed var(--rb-chip); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-family: var(--rb-display); font-weight: 700; font-size: 28px; line-height: 1.5; color: var(--rb-mute); background: var(--rb-paper); }
.rb-ab-book-ph-en { font-family: var(--rb-latin); font-size: 24px; font-weight: 600; }
.rb-ab-step { font-family: var(--rb-heading); font-weight: 700; font-size: 22px !important; line-height: 1.65; color: var(--rb-ink) !important; }
.rb-ab-more { margin-block-start: 18px; }
.rb-ab-stand { margin-block-start: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: baseline; padding: 28px 32px; border-radius: 18px; background: var(--rb-purple-tint); }
.rb-ab-stand h3 { font-size: 26px; }
.rb-ab-stand p { font-size: 18px; line-height: 1.95; color: var(--rb-ink); }
.rb-ab-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.rb-ab-out-text p:not(.rb-kicker) { font-size: 19px; line-height: 2; color: var(--rb-ink-2); margin-block-start: 14px; }
.rb-ab-bio { padding: 28px; border-radius: 18px; background: var(--rb-card); border: 1px solid var(--rb-rule); display: flex; flex-direction: column; gap: 14px; }
.rb-ab-bio h3 { font-size: 22px; }
.rb-ab-bio p { font-size: 17px; line-height: 1.9; color: var(--rb-ink-2); }
.rb-ab-bio-en { font-family: var(--rb-latin); font-size: 16px !important; line-height: 1.7 !important; text-align: left; color: var(--rb-mute) !important; }
.rb-ab-bio-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-ab-contact-title { font-size: 26px; color: var(--rb-on-dark); margin-block-end: 6px; }
.rb-ab-close { padding-block: 24px 104px; text-align: center; }
.rb-ab-close-line { font-family: var(--rb-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.7; }
.rb-ab-close-sig { margin-block-start: 10px; font-family: var(--rb-ui); font-size: 14px; color: var(--rb-mute); }
@media (max-width: 860px) {
  .rb-ab-out { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rb-ab-stand { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}
@media (max-width: 640px) {
  .rb-ab-ruh { padding: 22px 14px; }
  .rb-ab-ruh-two { grid-template-columns: minmax(0, 1fr); }
  .rb-ab-ruh-fork, .rb-ab-ruh-join { width: 1.5px; height: 24px; border: 0; border-radius: 0; background: var(--rb-chip); margin-block: 10px; }
  .rb-ab-ruh-fork::before, .rb-ab-ruh-join::after { display: none; }
  .rb-ab-year { flex-direction: column; gap: 8px; }
  .rb-ab-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .rb-ab-book-ph { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .rb-header, .rb-footer, .rb-notify, .rb-skip, .rb-cta-section, .rb-stars, .rb-horizon, .rb-bkbar { display: none !important; }
  body { background: #fff; color: #000; }
  .rb-night { background: #fff; color: #000; }
}
