/* RabbiAllah brand skin: colours from the gold arch logo. Loaded after style.css.
   body.skin-mihrab: pointed arches, gold hairlines, sage page. Dark mode under html.dark. */
:root {
  --rb-brand: #23563b;
  --rb-brand-2: #2e6b4c;
  --rb-deep: #0e3022;
  --rb-gold: #d4af5a;
  --rb-gold-hi: #e9cf8c;
  --rb-gold-lo: #b8902f;
  --rb-gold-ink: #7d5f17;
  --rb-gold-soft: #f3e8cc;
  --rb-ivory: #faf6ec;
  --rb-sage: #f3f7f3;
  --rb-line: #eadfc6;
  --rb-radius: 14px;
  --rb-radius-lg: 22px;
  --rb-shadow: 0 1px 2px rgba(14, 48, 34, .06), 0 8px 24px -12px rgba(14, 48, 34, .18);
  --rb-shadow-hover: 0 2px 4px rgba(14, 48, 34, .08), 0 16px 32px -14px rgba(14, 48, 34, .28);
  --rb-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d4af5a' d='M4 23V11.5C4 6.6 7.4 3.6 12 1c4.6 2.6 8 5.6 8 10.5V23z'/%3E%3Cpath fill='%23fff' d='M12.9 7.2a2.4 2.4 0 1 0 2.2 3.4 2 2 0 1 1-2.2-3.4z'/%3E%3C/svg%3E");
}

/* ---------- global fixes (all skins) ---------- */
/* The sr-only H1 counted as a space-y item and pushed the hero down 48px. */
.rabbiallah-main > .space-y-12 > .sr-only + * { margin-top: 0 !important; }
.rabbiallah-main > .space-y-12 { padding-top: 0; }
.rabbiallah-hero { padding-top: 1rem !important; }
@media (min-width: 768px) { .rabbiallah-hero { padding-top: 1.5rem !important; } }
.rabbiallah-card-shadow:hover, .btn-islamic:hover, .btn-islamic:active { transform: none !important; }
a, button { -webkit-tap-highlight-color: transparent; }

/* shared brand pieces for the three skins */
body[class*="skin-mihrab"] .rabbiallah-section-title::before {
  width: 22px; height: 22px; opacity: 1; background-image: var(--rb-arch);
}
body.skin-mihrab .btn-islamic::before { display: none; }

/* C. MIHRAB: see the block at the end of this file. */



/* ============ C. MIHRAB (default): sage page, pointed arches, gold hairlines ============ */
:root {
  --rb-mask-arch: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 100V24C0 11 24 5 50 0c26 5 50 11 50 24v76z%22/%3E%3C/svg%3E");
  --rb-mask-card: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 100V30C0 14 25 6 50 0c25 6 50 14 50 30v70z%22/%3E%3C/svg%3E");
  --rb-icon-arch: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 36%22%3E%3Cpath fill=%22%230e3022%22 d=%22M2 36V16C2 8.5 8 4.4 16 0c8 4.4 14 8.5 14 16v20z%22/%3E%3Cpath fill=%22none%22 stroke=%22%23d4af5a%22 stroke-width=%221.6%22 d=%22M6.5 33V17.2c0-5 3.8-8 9.5-11.4 5.7 3.4 9.5 6.4 9.5 11.4V33z%22/%3E%3Cpath fill=%22%23e9cf8c%22 d=%22M17.6 12.2a4 4 0 1 0 3.4 5.8 3.3 3.3 0 1 1-3.4-5.8z%22/%3E%3C/svg%3E");
  --rb-arch-strip: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2228%22 height=%2210%22 viewBox=%220 0 28 10%22%3E%3Cpath fill=%22none%22 stroke=%22%23d4af5a%22 stroke-width=%221.2%22 d=%22M1 10V6.5C1 3.6 7 1.8 14 .8c7 1 13 2.8 13 5.7V10%22/%3E%3C/svg%3E");
  --rb-arch-water: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 150%22%3E%3Cg fill=%22none%22 stroke=%22%23d4af5a%22 stroke-opacity=%22.28%22 stroke-width=%221.5%22%3E%3Cpath d=%22M4 150V62C4 30 30 16 60 2c30 14 56 28 56 60v88%22/%3E%3Cpath d=%22M18 150V66c0-24 19-36 42-48 23 12 42 24 42 48v84%22/%3E%3C/g%3E%3C/svg%3E");
  --rb-arch-water-light: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 150%22%3E%3Cg fill=%22none%22 stroke=%22%23e9cf8c%22 stroke-opacity=%22.18%22 stroke-width=%221.5%22%3E%3Cpath d=%22M4 150V62C4 30 30 16 60 2c30 14 56 28 56 60v88%22/%3E%3Cpath d=%22M18 150V66c0-24 19-36 42-48 23 12 42 24 42 48v84%22/%3E%3C/g%3E%3C/svg%3E");
  --rb-arch-banner: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 220%22 preserveAspectRatio=%22xMidYMax meet%22%3E%3Cg fill=%22none%22 stroke=%22%23d4af5a%22 stroke-width=%221.4%22%3E%3Cpath stroke-opacity=%22.45%22 d=%22M60 220V100C60 50 130 22 200 2c70 20 140 48 140 98v120%22/%3E%3Cpath stroke-opacity=%22.25%22 d=%22M84 220V104c0-40 58-64 116-80 58 16 116 40 116 80v116%22/%3E%3C/g%3E%3C/svg%3E");
  --rb-m-page: var(--rb-sage);
  --rb-m-surface: #fff;
  --rb-m-tint: #e8f1ea;
  --rb-m-edge: #dfe8e0;
  --rb-m-title: var(--rb-deep);
}
html.dark .skin-mihrab {
  --rb-m-page: #0b1a14; --rb-m-surface: #11241b; --rb-m-tint: rgba(255,255,255,.05);
  --rb-m-edge: rgba(233,207,140,.14); --rb-m-title: #f3ead2;
}
body.skin-mihrab { background: var(--rb-m-page); --rabbi-bg: var(--rb-m-page); }

/* header: white bar, a row of tiny gold arches as the bottom edge */
.skin-mihrab .rabbiallah-header { background: var(--rb-m-surface); box-shadow: 0 8px 22px -20px rgba(14,48,34,.6); }
.skin-mihrab .rabbiallah-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; pointer-events: none;
  background: var(--rb-arch-strip) repeat-x center / 28px 10px; opacity: .7;
}
.skin-mihrab .rabbiallah-header input[type="search"] { background: var(--rb-m-page); border-color: var(--rb-m-edge); border-radius: 999px 0 0 999px; padding-left: 1.25rem; color: inherit; }
.skin-mihrab .rabbiallah-header form button[type="submit"] { background: var(--rb-brand); border-radius: 0 999px 999px 0; padding: 0 1.1rem; }
.skin-mihrab .rabbiallah-header .btn-islamic { background: var(--rb-brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(14,48,34,.6); }
.skin-mihrab .rabbiallah-header .btn-islamic:hover { background: var(--rb-deep); }

/* nav: pill rail, current page is a green pill with a gold dot */
.skin-mihrab .rabbiallah-nav { background: var(--rb-m-tint) !important; box-shadow: none !important; border-radius: 999px; padding: 5px; border: 1px solid var(--rb-m-edge); }
.skin-mihrab .rabbiallah-nav a { color: var(--rb-brand) !important; }
html.dark .skin-mihrab .rabbiallah-nav a { color: #dfe9e2 !important; }
.skin-mihrab .rabbiallah-nav .rabbiallah-menu > li > a { border-radius: 999px; font-weight: 600; padding-top: .6rem; padding-bottom: .6rem; background: transparent !important; position: relative; transition: background-color .2s ease, color .2s ease; }
.skin-mihrab .rabbiallah-nav .rabbiallah-menu > li > a:hover { background: var(--rb-m-surface) !important; }
.skin-mihrab .rabbiallah-nav .rabbiallah-menu > li > a[aria-current] { background: var(--rb-brand) !important; color: #fff !important; }
.skin-mihrab .rabbiallah-nav .rabbiallah-menu > li > a[aria-current]::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--rb-gold-hi);
}
.skin-mihrab .rabbiallah-nav .sub-menu { background: var(--rb-m-surface) !important; border: 1px solid var(--rb-m-edge); border-radius: 16px; box-shadow: var(--rb-shadow-hover); overflow: hidden; padding: 6px; }
.skin-mihrab .rabbiallah-nav .sub-menu a { background: transparent !important; border-radius: 10px; }
.skin-mihrab .rabbiallah-nav .sub-menu a:hover { background: var(--rb-m-tint) !important; }
.skin-mihrab #rabbiallah-mobile-toggle { color: var(--rb-brand); }
html.dark .skin-mihrab #rabbiallah-mobile-toggle { color: var(--rb-gold-hi); }

/* hero: the big slide is a mihrab window with a gold frame */
.skin-mihrab .rabbiallah-hero-main {
  padding: 4px; background: linear-gradient(160deg, var(--rb-gold-hi), var(--rb-gold) 45%, var(--rb-gold-lo));
  -webkit-mask: var(--rb-mask-arch) center / 100% 100% no-repeat; mask: var(--rb-mask-arch) center / 100% 100% no-repeat;
}
.skin-mihrab .rabbiallah-slider {
  border-radius: 0 0 10px 10px !important; box-shadow: none !important;
  -webkit-mask: var(--rb-mask-arch) center / 100% 100% no-repeat; mask: var(--rb-mask-arch) center / 100% 100% no-repeat;
}
/* side stories: arch-topped pictures, white caption plate */

/* section titles: dark arch badge with a gold crescent */
.skin-mihrab .rabbiallah-section-title { color: var(--rb-m-title); }
.skin-mihrab .rabbiallah-section-title::before { width: 28px !important; height: 32px !important; background: var(--rb-icon-arch) center / contain no-repeat !important; opacity: 1; }
.skin-mihrab .rabbiallah-section-header { background-image: var(--rb-arch-strip); background-size: 28px 10px; background-repeat: repeat-x; background-position: left bottom; padding-bottom: 1.1rem; }

/* buttons: outline pills, fill on hover */
.skin-mihrab .btn-islamic { background: transparent; color: var(--rb-brand); border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rb-brand); }
.skin-mihrab .btn-islamic:hover { background: var(--rb-brand); color: #fff; }
html.dark .skin-mihrab .btn-islamic { color: var(--rb-gold-hi); box-shadow: inset 0 0 0 1.5px var(--rb-gold); }
html.dark .skin-mihrab .btn-islamic:hover { background: var(--rb-gold); color: var(--rb-deep); }
html.dark .skin-mihrab .rabbiallah-header .btn-islamic { background: var(--rb-gold); color: var(--rb-deep); box-shadow: none; }
.skin-mihrab .btn-islamic .btn-arrow { color: var(--rb-gold-lo); }
.skin-mihrab .btn-islamic:hover .btn-arrow { color: currentColor; }

/* cards and section boxes */
.skin-mihrab .rabbiallah-card-shadow { border-radius: 18px !important; box-shadow: var(--rb-shadow); }
.skin-mihrab .rabbiallah-card-shadow:hover { box-shadow: var(--rb-shadow-hover); }
.skin-mihrab [class*="bg-emerald-50"]:not([class*="aspect-"]) {
  background: var(--rb-m-surface) var(--rb-arch-water) no-repeat right 28px top -26px / 120px 150px !important;
  border-radius: 26px !important; border: 1px solid var(--rb-m-edge); box-shadow: 0 1px 2px rgba(14,48,34,.04);
}
.skin-mihrab .rabbiallah-content-card { border-radius: 26px 26px 16px 16px; overflow: hidden; }
.skin-mihrab .rabbiallah-content-card--dark { background: var(--rb-arch-water-light) no-repeat right 22px top -18px / 110px 138px, linear-gradient(170deg, var(--rb-brand-2), var(--rb-deep)); box-shadow: inset 0 3px 0 var(--rb-gold); }
.skin-mihrab .rabbiallah-content-card--dark .rabbiallah-content-card__header { background: transparent; border-bottom: 1px solid rgba(233,207,140,.2); }
.skin-mihrab .rabbiallah-content-card--dark .rabbiallah-content-card__label { color: var(--rb-gold-hi); }
.skin-mihrab .rabbiallah-content-card--light { background: var(--rb-m-surface); border: 1px solid var(--rb-m-edge); }
.skin-mihrab .rabbiallah-content-card--light .rabbiallah-content-card__header { background: var(--rb-m-tint); }
html:not(.dark) .skin-mihrab .rabbiallah-content-card--light .rabbiallah-content-card__label { color: var(--rb-gold-ink); }
html:not(.dark) .skin-mihrab .text-emerald-700, html:not(.dark) .skin-mihrab .hover\:text-emerald-700:hover { color: var(--rb-brand); }

/* inner pages: title banner under a gold mihrab outline */
.skin-mihrab .rabbiallah-page-title {
  background: var(--rb-arch-banner) no-repeat center bottom / auto 92%, radial-gradient(ellipse at 50% 120%, rgba(212,175,90,.16), transparent 60%), var(--rb-m-surface);
  border: 0; padding: 2rem 0 2.25rem; margin-bottom: 1.5rem; position: relative; overflow: visible;
}
.skin-mihrab .rabbiallah-page-title::before { display: none; }
.skin-mihrab .rabbiallah-page-title::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: var(--rb-arch-strip) repeat-x center / 28px 10px; opacity: .8;
}
.skin-mihrab .rabbiallah-page-title h1 { color: var(--rb-m-title); }
.skin-mihrab .rabbiallah-page-title .arabic-title-light { color: var(--rb-gold-lo); }
html.dark .skin-mihrab .rabbiallah-page-title .arabic-title-light { color: var(--rb-gold-hi); }

/* footer: gold arch row on top */
.skin-mihrab .rabbiallah-footer { background: var(--rb-m-surface); border-top: 0; box-shadow: none; }
.skin-mihrab .rabbiallah-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 10px; transform: scaleY(-1);
  background: var(--rb-arch-strip) repeat-x center / 28px 10px;
}
.skin-mihrab .rabbiallah-footer__heading { color: var(--rb-m-title); }

/* phones: rounder nav block, smaller watermarks */
@media (max-width: 767px) {
  .skin-mihrab .rabbiallah-nav { border-radius: 18px; }
  .skin-mihrab [class*="bg-emerald-50"]:not([class*="aspect-"]) { border-radius: 20px !important; background-size: 90px 112px !important; }
}
.skin-mihrab .rabbiallah-slider { border-radius: 0 !important; }
.skin-mihrab [class*="bg-emerald-50"]:not([class*="aspect-"]) { background-position: right 24px bottom -34px !important; }

/* dark mode: lighter arch badge, no nav separators */
html.dark .skin-mihrab .rabbiallah-section-title::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 36%22%3E%3Cpath fill=%22%232e6b4c%22 d=%22M2 36V16C2 8.5 8 4.4 16 0c8 4.4 14 8.5 14 16v20z%22/%3E%3Cpath fill=%22none%22 stroke=%22%23e9cf8c%22 stroke-width=%221.6%22 d=%22M6.5 33V17.2c0-5 3.8-8 9.5-11.4 5.7 3.4 9.5 6.4 9.5 11.4V33z%22/%3E%3Cpath fill=%22%23e9cf8c%22 d=%22M17.6 12.2a4 4 0 1 0 3.4 5.8 3.3 3.3 0 1 1-3.4-5.8z%22/%3E%3C/svg%3E") !important; }
.skin-mihrab .rabbiallah-nav .rabbiallah-menu > li, .skin-mihrab .rabbiallah-nav .rabbiallah-menu > li > a { border: 0 !important; }

/* Quran reader CSS had no dark mode: surah cards stayed white with pale text (all skins) */
html.dark {
  --bg-card: var(--rabbi-surface); --bg-soft: var(--rabbi-bg); --bg-muted: var(--rabbi-surface-soft);
  --text-main: #e5e7eb; --text-muted: #a3aea8; --text-light: #8b9590;
  --border-soft: rgba(255,255,255,.08); --cream: #13261d; --cream-deep: #16332a;
}
html.dark .surah-back-btn:hover, html.dark .surah-actions button.is-toggle[aria-pressed="false"], html.dark .tafsir-modal-box { background: var(--rabbi-surface); }
html.dark .surah-arabic, html.dark .surah-arabic-title { color: #9fd1b4; }
html.dark .surah-rev.medinan { color: #7fc29c; }
html.dark .rabbiallah-main input[type="search"], html.dark .rabbiallah-main input[type="text"] { background: var(--rabbi-surface); color: var(--rabbi-text); border-color: var(--rabbi-border); }
html.dark #quran-bottom-player a, html.dark .ayah-end-marker, html.dark .bismillah-arabic, html.dark .surah-back-btn:hover, html.dark .tafsir-modal-box h3 { color: #9fd1b4; }
html.dark .surah-back-btn { background: rgba(255,255,255,.06); color: #cfd8d3; }
html.dark .surah-actions button.is-toggle[aria-pressed="false"] { color: #9fd1b4; border-color: rgba(159,209,180,.45); }
html.dark .bismillah-block { background: var(--rabbi-surface); }

/* header actions: one size, one shape. 44px tall like the search and the theme toggle */
.rabbiallah-header {
  --rb-hbtn-h: 44px;
}
.rabbiallah-header .rb-hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--rb-hbtn-h); padding: 0 18px; border-radius: 999px;
  font: 600 14px/1 'Fira Sans', system-ui, sans-serif; letter-spacing: .01em; white-space: nowrap;
  text-decoration: none; transform: none !important; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.rabbiallah-header .rb-hbtn::before { display: none !important; }
.rabbiallah-header .rb-hbtn__icon { width: 18px; height: 18px; flex: none; }
.rabbiallah-header .rb-hbtn--secondary { background: var(--rb-m-tint, #e8f1ea); color: var(--rb-brand); border: 1px solid var(--rb-m-edge, #dfe8e0); box-shadow: none; }
.rabbiallah-header .rb-hbtn--secondary:hover, .rabbiallah-header .rb-hbtn--secondary:focus { background: var(--rb-m-surface, #fff); color: var(--rb-deep); border-color: rgba(35,86,59,.35); }
.rabbiallah-header .rb-hbtn--primary { background: var(--rb-brand) !important; color: #fff !important; border: 1px solid var(--rb-brand); box-shadow: none !important; }
.rabbiallah-header .rb-hbtn--primary:hover { background: var(--rb-deep) !important; border-color: var(--rb-deep); }
html.dark .rabbiallah-header .rb-hbtn--secondary { background: rgba(255,255,255,.06); color: var(--rb-gold-hi); border-color: rgba(233,207,140,.25); }
html.dark .rabbiallah-header .rb-hbtn--secondary:hover { background: rgba(255,255,255,.1); }
html.dark .rabbiallah-header .rb-hbtn--primary { background: var(--rb-gold) !important; color: var(--rb-deep) !important; border-color: var(--rb-gold); }
html.dark .rabbiallah-header .rb-hbtn--primary:hover { background: var(--rb-gold-hi) !important; }
.rabbiallah-header .rb-hbtn:focus-visible, .rabbiallah-theme-toggle:focus-visible, .rabbiallah-header input[type="search"]:focus-visible { outline: 2px solid var(--rb-gold); outline-offset: 2px; }
.rabbiallah-header .rb-hbtn:focus:not(:focus-visible) { outline: none; }
.rabbiallah-header input[type="search"], .rabbiallah-header form button[type="submit"] { height: var(--rb-hbtn-h); }
.skin-mihrab .rabbiallah-theme-toggle { width: var(--rb-hbtn-h); height: var(--rb-hbtn-h); background: var(--rb-m-tint); border: 1px solid var(--rb-m-edge); }
@media (max-width: 639px) {
  .rabbiallah-header .rb-hbtn--secondary { width: var(--rb-hbtn-h); padding: 0; }
  .rabbiallah-header .rb-hbtn--secondary .rb-hbtn__label { display: none; }
}

/* tablets: icons only so the search keeps its room */
@media (min-width: 640px) and (max-width: 1023px) {
  .rabbiallah-header .rb-hbtn--secondary { width: var(--rb-hbtn-h); padding: 0; }
  .rabbiallah-header .rb-hbtn--secondary .rb-hbtn__label { display: none; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .rabbiallah-header .rb-hbtn--primary { width: var(--rb-hbtn-h); padding: 0; }
  .rabbiallah-header .rb-hbtn--primary .rb-hbtn__label { display: none; }
}

/* side stories: one card, arch top over picture and caption, shadow drawn by the column */
.skin-mihrab .rabbiallah-hero-side { filter: drop-shadow(0 8px 14px rgba(14,48,34,.13)); }
.skin-mihrab .rabbiallah-hero-side > a {
  background: var(--rb-m-surface) !important; box-shadow: none !important; border-radius: 0 0 16px 16px !important; overflow: hidden !important;
  -webkit-mask: var(--rb-mask-card) center / 100% 100% no-repeat; mask: var(--rb-mask-card) center / 100% 100% no-repeat;
}
.skin-mihrab .rabbiallah-hero-side > a > [class*="aspect-"] { border-radius: 0 !important; }
.skin-mihrab .rabbiallah-hero-side > a > :last-child { background: transparent; padding: 12px 16px 16px; position: relative; }
.skin-mihrab .rabbiallah-hero-side > a > :last-child::before {
  content: ''; display: block; width: 26px; height: 2px; border-radius: 2px; background: var(--rb-gold); margin-bottom: 8px;
}
.skin-mihrab .rabbiallah-hero-side > a h3 { color: var(--rb-m-title); }
.skin-mihrab .rabbiallah-hero-side > a:hover h3 { color: var(--rb-brand); }
html.dark .skin-mihrab .rabbiallah-hero-side > a:hover h3 { color: var(--rb-gold-hi); }

/* ---------- home sections: post grids, Q&A, videos, books, app banner, footer ---------- */
.rb-arrow { width: 15px; height: 15px; flex: none; display: inline-block; vertical-align: -3px; margin-left: 4px; transition: transform .2s ease; }
a:hover > .rb-arrow, a:focus-visible > .rb-arrow { transform: translateX(3px); }
.rb-more { display: inline-flex; align-items: center; margin-top: .6rem; font-size: .875rem; font-weight: 600; color: var(--rb-brand); text-decoration: none; }
.rb-more:hover { color: var(--rb-deep); }
html.dark .rb-more { color: var(--rb-gold-hi); }
html.dark .rb-more:hover { color: #f3ead2; }

/* post cards: mihrab-topped thumbnail, then title, excerpt, link */
.skin-mihrab .rb-post__thumb {
  border-radius: 0 0 12px 12px !important; box-shadow: none !important; background: var(--rb-m-tint);
  -webkit-mask: var(--rb-mask-card) center / 100% 100% no-repeat; mask: var(--rb-mask-card) center / 100% 100% no-repeat;
}
.skin-mihrab .rb-post__thumb img { transition: transform .35s ease; }
.skin-mihrab .rb-post:hover .rb-post__thumb img { transform: scale(1.04); }
.skin-mihrab .rb-post h3 { color: var(--rb-m-title); font-size: 1rem; }
.skin-mihrab .rb-post h3 a:hover { color: var(--rb-brand); }
html.dark .skin-mihrab .rb-post h3 a:hover { color: var(--rb-gold-hi); }
.skin-mihrab .rb-post p { color: var(--rabbi-text-muted); }
.skin-mihrab .rb-post .rb-more { margin-top: auto; padding-top: .6rem; }

/* Q&A: each question is a small card with a gold kicker */
.skin-mihrab .rb-qa {
  display: flex; flex-direction: column; height: 100%; padding: 18px 18px 16px;
  background: var(--rb-m-page); border: 1px solid var(--rb-m-edge); border-radius: 18px 18px 12px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.skin-mihrab .rb-qa::before { content: ''; display: block; width: 22px; height: 26px; margin-bottom: 10px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 28%22%3E%3Cpath fill=%22%230e3022%22 d=%22M2 28V12.5C2 6.6 6.4 3.4 12 0c5.6 3.4 10 6.6 10 12.5V28z%22/%3E%3Cpath fill=%22%23e9cf8c%22 d=%22M13.3 8.6a3.1 3.1 0 1 0 2.7 4.4 2.6 2.6 0 1 1-2.7-4.4z%22/%3E%3C/svg%3E") center / contain no-repeat; }
html.dark .skin-mihrab .rb-qa::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 28%22%3E%3Cpath fill=%22%232e6b4c%22 d=%22M2 28V12.5C2 6.6 6.4 3.4 12 0c5.6 3.4 10 6.6 10 12.5V28z%22/%3E%3Cpath fill=%22%23e9cf8c%22 d=%22M13.3 8.6a3.1 3.1 0 1 0 2.7 4.4 2.6 2.6 0 1 1-2.7-4.4z%22/%3E%3C/svg%3E"); }
.skin-mihrab .rb-qa:hover { border-color: rgba(212,175,90,.55); box-shadow: var(--rb-shadow); }
.skin-mihrab .rb-qa h3 { color: var(--rb-m-title); }
.skin-mihrab .rb-qa p { color: var(--rabbi-text-muted); }
.skin-mihrab .rb-qa .rb-more { margin-top: auto; padding-top: .75rem; }

/* videos: main player framed like the hero, thumbs rounded */
.skin-mihrab .rabbiallah-divider { height: 20px !important; max-width: 160px !important; margin-left: auto; margin-right: auto; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 160 20%22%3E%3Cg fill=%22none%22 stroke=%22%23d4af5a%22 stroke-width=%221.2%22%3E%3Cpath d=%22M0 14h62M98 14h62%22/%3E%3Cpath d=%22M70 20v-7c0-5 4.5-8.4 10-11 5.5 2.6 10 6 10 11v7%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat !important; opacity: 1 !important; border: 0 !important; }
.skin-mihrab .rabbiallah-divider::before, .skin-mihrab .rabbiallah-divider::after { display: none !important; }
.skin-mihrab .lg\:col-span-7 > .rabbiallah-card-shadow { border-radius: 22px !important; box-shadow: 0 0 0 3px var(--rb-gold), var(--rb-shadow) !important; }
.skin-mihrab .rabbiallah-video-grid__item .rabbiallah-card-shadow { border-radius: 14px !important; }
.skin-mihrab .rabbiallah-video-grid__item p, .skin-mihrab .lg\:col-span-7 h3 { color: var(--rb-m-title); }

/* books: cover with a gold foot, like a shelf edge */
.skin-mihrab [class*="aspect-[3/4]"].rabbiallah-card-shadow { border-radius: 14px 14px 6px 6px !important; box-shadow: 0 4px 0 -1px var(--rb-gold), var(--rb-shadow) !important; }

/* app banner: arches instead of the plain ring */
.skin-mihrab .rabbiallah-app-cta {
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 240 300%22%3E%3Cg fill=%22none%22 stroke=%22%23e9cf8c%22 stroke-opacity=%22.22%22 stroke-width=%222%22%3E%3Cpath d=%22M8 300V124C8 60 60 32 120 4c60 28 112 56 112 120v176%22/%3E%3Cpath d=%22M36 300V132c0-48 40-72 84-96 44 24 84 48 84 96v168%22/%3E%3Cpath d=%22M64 300V140c0-32 26-50 56-70 30 20 56 38 56 70v160%22/%3E%3C/g%3E%3C/svg%3E") no-repeat right 18% bottom -40px / 220px 275px, linear-gradient(160deg, var(--rb-brand-2), var(--rb-deep)) !important;
  border-radius: 28px !important; box-shadow: inset 0 3px 0 var(--rb-gold), var(--rb-shadow-hover) !important; overflow: hidden;
}
.skin-mihrab .rabbiallah-app-cta__icon-ring { display: none !important; }
.skin-mihrab .rabbiallah-app-cta__title { color: #f7f0e1; }

/* footer column headings: small arch badge instead of the old star */
.skin-mihrab .rabbiallah-footer__heading::before { width: 12px !important; height: 14px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 28%22%3E%3Cpath fill=%22%230e3022%22 d=%22M2 28V12.5C2 6.6 6.4 3.4 12 0c5.6 3.4 10 6.6 10 12.5V28z%22/%3E%3Cpath fill=%22%23e9cf8c%22 d=%22M13.3 8.6a3.1 3.1 0 1 0 2.7 4.4 2.6 2.6 0 1 1-2.7-4.4z%22/%3E%3C/svg%3E") !important; opacity: 1 !important; }
html.dark .skin-mihrab .rabbiallah-footer__heading::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 28%22%3E%3Cpath fill=%22%23d4af5a%22 d=%22M2 28V12.5C2 6.6 6.4 3.4 12 0c5.6 3.4 10 6.6 10 12.5V28z%22/%3E%3Cpath fill=%22%23e9cf8c%22 d=%22M13.3 8.6a3.1 3.1 0 1 0 2.7 4.4 2.6 2.6 0 1 1-2.7-4.4z%22/%3E%3C/svg%3E") !important; }
.skin-mihrab .rabbiallah-footer__list a:hover { color: var(--rb-brand); }

@media (max-width: 767px) {
  .skin-mihrab .rabbiallah-app-cta { background-position: right -40px bottom -60px, 0 0 !important; background-size: 180px 225px, auto !important; }
}
.skin-mihrab .rabbiallah-divider > * { display: none !important; }
.skin-mihrab [class*="bg-emerald-50"]:not([class*="aspect-"]) { background-image: none !important; }

/* archive / blog / search cards: fixed-height arch cap so tall cards keep the same arch */
.skin-mihrab :has(> .rb-archcard) { filter: drop-shadow(0 8px 14px rgba(14,48,34,.12)); }
.skin-mihrab .rb-archcard {
  box-shadow: none !important; border-radius: 0 0 18px 18px !important; background: var(--rb-m-surface) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 100V62C0 30 25 13 50 0c25 13 50 32 50 62v38z%22/%3E%3C/svg%3E") top / 100% 72px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 71px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 100V62C0 30 25 13 50 0c25 13 50 32 50 62v38z%22/%3E%3C/svg%3E") top / 100% 72px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 71px) no-repeat;
}
.skin-mihrab .rb-archcard h2 a { color: var(--rb-m-title); }
.skin-mihrab .rb-archcard h2 a:hover { color: var(--rb-brand); }
html.dark .skin-mihrab .rb-archcard h2 a:hover { color: var(--rb-gold-hi); }
.skin-mihrab .rb-archcard > div > a:last-child { display: inline-flex; align-items: center; color: var(--rb-brand); text-decoration: none; }
html.dark .skin-mihrab .rb-archcard > div > a:last-child { color: var(--rb-gold-hi); }

/* text-only cards (no picture): no arch, it only cut into the text. Plain rounded card with a gold top edge. */
.skin-mihrab .rb-archcard:not(:has(img)) {
  -webkit-mask: none !important; mask: none !important; border-radius: 18px !important;
  border: 1px solid var(--rb-m-edge); box-shadow: inset 0 3px 0 var(--rb-gold) !important;
}
@media (max-width: 1180px) { .skin-mihrab .rabbiallah-nav { border-radius: 22px; } }

/* inner pages: masjid line drawing on one side of the title banner (side set per page in PHP) */
:root {
  --rb-mosque: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 300 204%22 fill=%22none%22 stroke=%22%23d4af5a%22 stroke-opacity=%22.5%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 202h296%22/%3E%3Cpath d=%22M68 202V122h164v80%22/%3E%3Cpath d=%22M62 122h176%22/%3E%3Cpath d=%22M92 122c0-38 30-56 58-72 28 16 58 34 58 72%22/%3E%3Cpath d=%22M108 122c0-26 20-40 42-52 22 12 42 26 42 52%22/%3E%3Cpath d=%22M150 50V34%22/%3E%3Cpath d=%22M152.5 22.5a6 6 0 1 0 4.8 8.6 5 5 0 1 1-4.8-8.6z%22/%3E%3Cpath d=%22M131 202v-34c0-12 9-19 19-25 10 6 19 13 19 25v34z%22/%3E%3Cpath d=%22M86 186v-22c0-6 4-10 9-13 5 3 9 7 9 13v22zM196 186v-22c0-6 4-10 9-13 5 3 9 7 9 13v22z%22/%3E%3Cpath d=%22M26 200V78M42 200V78M22 78h24M22 118h24M26 78l8-34 8 34M34 44V32%22/%3E%3Ccircle cx=%2234%22 cy=%2227%22 r=%224%22/%3E%3Cpath d=%22M30 150v-10c0-3 2-5 4-6.5 2 1.5 4 3.5 4 6.5v10z%22/%3E%3Cpath d=%22M258 200V78M274 200V78M254 78h24M254 118h24M258 78l8-34 8 34M266 44V32%22/%3E%3Ccircle cx=%22266%22 cy=%2227%22 r=%224%22/%3E%3Cpath d=%22M262 150v-10c0-3 2-5 4-6.5 2 1.5 4 3.5 4 6.5v10z%22/%3E%3C/svg%3E");
}
.skin-mihrab .rabbiallah-page-title {
  background:
    var(--rb-mosque) no-repeat right 7% bottom 0 / auto 88%,
    radial-gradient(ellipse at 82% 120%, rgba(212,175,90,.14), transparent 55%),
    var(--rb-m-surface) !important;
}
.skin-mihrab.rb-side-left .rabbiallah-page-title {
  background:
    var(--rb-mosque) no-repeat left 7% bottom 0 / auto 88%,
    radial-gradient(ellipse at 18% 120%, rgba(212,175,90,.14), transparent 55%),
    var(--rb-m-surface) !important;
}
.skin-mihrab .rabbiallah-page-title__inner { position: relative; z-index: 1; }
/* no arch row under the header on inner pages; the banner's own bottom row stays */
.skin-mihrab .rabbiallah-header::after { display: none; }

@media (max-width: 767px) {
  .skin-mihrab .rabbiallah-page-title, .skin-mihrab.rb-side-left .rabbiallah-page-title {
    background-size: auto 62%, auto, auto !important;
  }
  .skin-mihrab .rabbiallah-page-title { background-position: right -18px bottom 0, 0 0, 0 0 !important; }
  .skin-mihrab.rb-side-left .rabbiallah-page-title { background-position: left -18px bottom 0, 0 0, 0 0 !important; }
}
@media (max-width: 767px) {
  .skin-mihrab .rabbiallah-page-title, .skin-mihrab.rb-side-left .rabbiallah-page-title { background-size: auto 44%, auto, auto !important; }
}

/* footer bottom line: tagline and developer credit */
.rabbiallah-footer__credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 14px; }
.rabbiallah-footer__credit .rb-credit a { color: var(--rb-brand); font-weight: 600; text-decoration: none; }
.rabbiallah-footer__credit .rb-credit a:hover { color: var(--rb-gold-lo); text-decoration: underline; text-underline-offset: 3px; }
html.dark .rabbiallah-footer__credit .rb-credit a { color: var(--rb-gold-hi); }
.rabbiallah-footer__credit .rb-credit::before { content: ''; display: inline-block; width: 4px; height: 4px; margin-right: 12px; border-radius: 50%; background: var(--rb-gold); vertical-align: middle; }
@media (max-width: 767px) { .rabbiallah-footer__credit { justify-content: center; } .rabbiallah-footer__credit .rb-credit::before { display: none; } }
.rabbiallah-page-title__h { color: var(--rb-m-title, var(--rabbi-accent)); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin: 0; line-height: 1.2; }

/* Card header with the entry's own title beside Share / Copy */
.rabbiallah-content-card__title{margin:0;flex:1;min-width:0;font-size:1.05rem;font-weight:700;line-height:1.3;text-transform:none;letter-spacing:0}
.rabbiallah-content-card__title a{color:inherit;text-decoration:none}.rabbiallah-content-card__title a:hover{text-decoration:underline}
.rabbiallah-content-card--light .rabbiallah-content-card__title{color:var(--rabbi-accent,#265740)}
.rabbiallah-content-card--dark .rabbiallah-content-card__title{color:#fff}
html:not(.dark) .skin-mihrab .rabbiallah-content-card--light .rabbiallah-content-card__title{color:var(--rb-gold-ink,#265740)}
.skin-mihrab .rabbiallah-content-card--dark .rabbiallah-content-card__title{color:var(--rb-gold-hi,#fff)}
html.dark .rabbiallah-content-card__title{color:#e6f2ea}
@media(max-width:480px){.rabbiallah-content-card__title{font-size:.95rem}}

/* Main menu: one line on laptops and tablets in landscape (1024 to 1279 px) */
@media (min-width:1024px) and (max-width:1279px){.rabbiallah-menu{flex-wrap:nowrap}.rabbiallah-menu>li{flex:none}.rabbiallah-menu>li>a,.rabbiallah-menu>li>button{padding:8px 9px!important;font-size:13.5px!important;white-space:nowrap}}

/* Tables in page text fit small phones (99 Names table was wider than 360px) */
.prose-rabbiallah table{width:100%;max-width:100%}
@media (max-width:480px){.prose-rabbiallah table{font-size:13.5px}.prose-rabbiallah th,.prose-rabbiallah td{padding:8px 5px!important;overflow-wrap:anywhere}.prose-rabbiallah th:first-child,.prose-rabbiallah td:first-child{padding-left:0!important}.prose-rabbiallah th:last-child,.prose-rabbiallah td:last-child{padding-right:0!important}}
