/* MMB Quran door (Muslim.Blue program) 1.0.2. Loaded on /new-to-islam/ only. MMB's own look: the night-ocean
   navy of the header, amber for the one action, Potta One for display, Pragati Narrow for words. Light and dark
   follow the theme's [data-theme] switch; the theme forces dark headings with !important, which this file matches. */

.mmb-qd {
  --qd-ink: #1a1a2e;
  --qd-body: #374151;
  --qd-muted: #4b5563;
  --qd-paper: #fffdf6;
  --qd-line: #efe3bf;
  --qd-card: #ffffff;
  --qd-card-line: #e5e7eb;
  --qd-link: #0b6b75;
  --qd-icon-bg: #fff3c4;
  --qd-icon: #7a5200;
  --qd-focus: #0f3460;
  --qd-page: #ffffff;
  font-family: 'Pragati Narrow', sans-serif;
  color: var(--qd-body);
  /* above the theme's fixed starfield, ambient and cursor-glow layers (z-index 0 and 1), which otherwise paint
     their stars over unpositioned text in dark mode */
  position: relative;
  z-index: 2;
}
[data-theme="dark"] .mmb-qd {
  --qd-ink: #f1f5f9;
  --qd-body: #cbd5e1;
  --qd-muted: #a3b1c6;
  --qd-paper: #111a2e;
  --qd-line: rgba(255, 193, 7, 0.28);
  --qd-card: #111a2e;
  --qd-card-line: rgba(255, 255, 255, 0.12);
  --qd-link: #7ee8f0;
  --qd-icon-bg: rgba(255, 193, 7, 0.14);
  --qd-icon: #ffc107;
  --qd-focus: #ffc107;
  --qd-page: #0b1220;
}

.mmb-qd *, .mmb-qd *::before, .mmb-qd *::after { box-sizing: border-box; }
.mmb-qd a:focus-visible { outline: 3px solid var(--qd-focus); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- hero */

.mmb-qd .mmb-qd__hero {
  position: relative;
  background: linear-gradient(180deg, #0d1a33 0%, #1a1a2e 58%, #16213e 100%);
  color: #fff;
  padding: clamp(56px, 9vw, 112px) var(--site-pad, 20px) clamp(64px, 9vw, 104px);
  overflow: hidden;
  overflow: clip; /* clip, not a scroll box: a scrollIntoView inside can never shift the hero */
}
.mmb-qd .mmb-qd__hero::before {
  /* a low sun of amber light over the water, no shape, no symbol */
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 80%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(255, 193, 7, 0.16), transparent 70%);
  pointer-events: none;
}
.mmb-qd .mmb-qd__hero-in { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.mmb-qd .mmb-qd__season {
  margin: 0 0 12px;
  color: #ffc107 !important;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.mmb-qd .mmb-qd__title {
  margin: 0 0 16px;
  font-family: 'Potta One', cursive;
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.12;
  color: #ffffff !important;
}
.mmb-qd .mmb-qd__lede {
  margin: 0 auto;
  max-width: 640px;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88) !important;
}
.mmb-qd .mmb-qd__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 36px;
  fill: var(--qd-page);
}

/* ---------------------------------------------------------------- layout */

.mmb-qd .mmb-qd__wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px var(--site-pad, 20px) 72px;
  display: grid;
  gap: 56px;
}
.mmb-qd .mmb-qd__h2 {
  margin: 0;
  font-family: 'Potta One', cursive;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  color: var(--qd-ink) !important;
}
.mmb-qd .mmb-qd__eyebrow {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qd-icon) !important;
}

/* ---------------------------------------------------------------- the door */

.mmb-qd .mmb-qd__door {
  scroll-margin-top: 96px;
  position: relative;
  background: var(--qd-paper);
  border: 1px solid var(--qd-line);
  border-left: 6px solid #ffc107;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  gap: 26px;
  box-shadow: 0 10px 32px rgba(26, 26, 46, 0.08);
}
[data-theme="dark"] .mmb-qd .mmb-qd__door { box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45); }
.mmb-qd .mmb-qd__book {
  margin: 8px 0 0;
  font-size: 20px;
  font-style: italic;
  color: var(--qd-body) !important;
}

.mmb-qd .mmb-qd__ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
@media (min-width: 860px) {
  .mmb-qd .mmb-qd__ways { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.mmb-qd .mmb-qd__way { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.mmb-qd .mmb-qd__way .mmb-qd__ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--qd-icon-bg);
  color: var(--qd-icon);
}
.mmb-qd .mmb-qd__way h3 {
  margin: 4px 0 4px;
  font-family: 'Pragati Narrow', sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: var(--qd-ink) !important;
}
.mmb-qd .mmb-qd__way p,
[data-theme="dark"] .mmb-qd .mmb-qd__way p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--qd-body);
}

.mmb-qd .mmb-qd__act { display: grid; gap: 12px; justify-items: start; }
.mmb-qd a.mmb-qd__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 8px;
  min-height: 52px;
  padding: 12px 30px;
  border-radius: 999px;
  background: #ffc107;
  color: #1a1a2e !important;
  font-family: 'Pragati Narrow', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.32);
  transition: background 0.15s, transform 0.12s;
}
.mmb-qd a.mmb-qd__btn:hover { background: #ffca28; color: #000 !important; }
@media (prefers-reduced-motion: no-preference) {
  .mmb-qd a.mmb-qd__btn:hover { transform: translateY(-1px); }
}
.mmb-qd .mmb-qd__dot { opacity: 0.7; }
.mmb-qd .mmb-qd__price { font-variant-numeric: tabular-nums; }
.mmb-qd .mmb-qd__who,
[data-theme="dark"] .mmb-qd .mmb-qd__who {
  margin: 0;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--qd-muted);
}

.mmb-qd .mmb-qd__gift {
  border-top: 1px dashed var(--qd-line);
  padding-top: 20px;
  display: grid;
  gap: 8px;
}
.mmb-qd .mmb-qd__gift p,
[data-theme="dark"] .mmb-qd .mmb-qd__gift p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--qd-body);
}
.mmb-qd .mmb-qd__gift p.mmb-qd__qr08,
[data-theme="dark"] .mmb-qd .mmb-qd__gift p.mmb-qd__qr08 { font-size: 16px; color: var(--qd-ink); }
.mmb-qd .mmb-qd__gift a,
.mmb-qd .mmb-qd__gift a:hover {
  color: var(--qd-link) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- around the Grand Strand */

.mmb-qd .mmb-qd__around { display: grid; gap: 20px; }
.mmb-qd .mmb-qd__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 600px) { .mmb-qd .mmb-qd__cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mmb-qd .mmb-qd__cards { grid-template-columns: repeat(4, 1fr); } }
.mmb-qd .mmb-qd__cards li { margin: 0; display: flex; }
.mmb-qd a.mmb-qd__card {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 20px;
  border-radius: 18px;
  background: var(--qd-card);
  border: 1px solid var(--qd-card-line);
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s;
}
.mmb-qd a.mmb-qd__card:hover { border-color: #ffc107; }
@media (prefers-reduced-motion: no-preference) {
  .mmb-qd a.mmb-qd__card:hover { transform: translateY(-2px); }
}
.mmb-qd .mmb-qd__card .mmb-qd__ico { width: 26px; height: 26px; color: var(--qd-link); margin-bottom: 4px; }
.mmb-qd .mmb-qd__card-t { font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--qd-ink); }
.mmb-qd .mmb-qd__card-d { font-size: 17px; line-height: 1.4; color: var(--qd-muted); }

/* ---------------------------------------------------------------- print */

/* Review 2026-11-23: on small phones the door's words use more of the card (less side padding, a tighter icon gap). */
@media (max-width: 480px) {
  .mmb-qd .mmb-qd__door { padding-inline: 18px; }
  .mmb-qd .mmb-qd__way { gap: 10px; }
}
@media print {
  .mmb-qd .mmb-qd__hero { background: none; color: #000; padding: 0 0 12px; }
  .mmb-qd .mmb-qd__title, .mmb-qd .mmb-qd__lede, .mmb-qd .mmb-qd__season { color: #000 !important; }
  .mmb-qd .mmb-qd__wave, .mmb-qd .mmb-qd__hero::before { display: none; }
  .mmb-qd .mmb-qd__door { box-shadow: none; }
}
