/*
 * Islamic Portal design system and site shell (header, menus, search, footer).
 * Loaded on every page after style.css / dark.css / responsive.css, so the tokens below win.
 *
 * Visual direction: the original Islamic Portal design (design.apexss.com/IslamicPortal), refined. A soft cream
 * ground with a faint eight-point lattice, content in rounded white cards with gentle layered shadows, brand
 * green with gold, pastel accent cards (green, gold, blue, purple, red), Inter for text and headings and
 * Cinzel for the brand.
 *
 * Use the tokens in feature CSS rather than literal colours:
 *   colour   --ip-bg, --ip-surface, --ip-surface-2, --ip-line, --ip-ink, --ip-ink-2, --ip-muted,
 *            --ip-primary, --ip-primary-soft, --ip-accent, --ip-link and the palette
 *            (--ip-green-*, --ip-saffron-*/--ip-gold-*, --ip-sky-*, --ip-violet-*, --ip-coral-*, --ip-rose-*;
 *            the older --ip-lapis-* and --ip-turquoise-* names now resolve to the brand greens)
 *   area     --ip-area, --ip-area-strong, --ip-area-soft, --ip-area-on, --ip-area-fill: the brand green in every
 *            area; --ip-area-2 is an area's secondary glow. <body data-area> is set from the URL (AreaHue.ForPath).
 *   type     --ip-font-sans, --ip-font-display, --ip-font-brand, --ip-font-arabic, --ip-font-quran, --ip-font-urdu,
 *            --ip-text-*
 *   shape    --ip-radius-*, --ip-radius-btn, --ip-shadow-*, --ip-space-*
 * Dark mode: the site sets data-theme="dark" on <html> (and the legacy class "dark" on <body>); both
 * redefine the same tokens, so a component written with tokens needs no dark rules of its own.
 * Layout uses logical properties (inline-start/end) so Arabic and Urdu mirror correctly.
 */

/* Urdu is set in Jameel Noori Nastaleeq, the owner's choice (licence accepted 15 October 2026; source and
 * processing in docs/portal-2.0/LICENSING.md). The reader's installed copy is used first, then the bundled
 * wwwroot/fonts/jameel-noori-nastaleeq.woff2 (5.4 MB, Arabic-script subset). unicode-range limits it to
 * Arabic-script letters, so a page downloads it only when Urdu text is set in it; English, Spanish and
 * French pages never do. Noto Nastaliq Urdu (Google Fonts, loaded on the /ur/ pages) stays the fallback
 * for the few characters Jameel lacks (U+06D3, the Arabic-Indic digits U+0660-0669). */
@font-face {
  font-family: "Jameel Noori Nastaleeq";
  src: local("Jameel Noori Nastaleeq"), local("JameelNooriNastaleeq"), url("../fonts/jameel-noori-nastaleeq.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
  /* Jameel draws small on its em; this matches the size the pages were designed at (Noto Nastaliq Urdu). */
  size-adjust: 125%;
}

/* Part 48: <img ip-picture> is wrapped in a <picture> for its AVIF/WebP sources; the wrapper takes no box of its own,
 * so the img lays out exactly as it did. */
picture {
  display: contents;
}

/* Part 48: a stand-in for Inter while the web font downloads, scaled to Inter's width and line metrics so text
 * does not reflow (a layout shift) when Inter arrives. Arial where it exists, Roboto on Android. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Roboto"), local("Helvetica Neue"), local("Helvetica");
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.06%;
}

:root {
  --ip-font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Headings are set in Inter, bold and slightly tight, as the original design does; Cinzel is the brand face. */
  --ip-font-display: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ip-font-brand: "Cinzel", "Trajan Pro", Georgia, serif;
  --ip-font-arabic: "Noto Naskh Arabic", "Amiri", "Geeza Pro", "Traditional Arabic", serif;
  --ip-font-quran: "Amiri Quran", "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
  --ip-font-urdu: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;

  /* Palette: the original Islamic Portal design. Green is the brand; gold, blue, purple and red are the
   * pastel accents of its cards. The older palette names (lapis, turquoise, saffron, violet, coral, sky,
   * rose) are kept so every feature stylesheet picks the restored colours up without being rewritten:
   * lapis and turquoise are now the brand greens, saffron and gold the design's gold. */
  --ip-green-950: #072a1d;
  --ip-green-900: #0d3b29;
  --ip-green-800: #10503a;
  --ip-green-700: #16624f;
  --ip-green-600: #1a6e58;
  --ip-green-500: #1f7a63;
  --ip-green-400: #2eb872;
  --ip-green-300: #7cc9a6;
  --ip-green-100: #d7f0e3;
  --ip-green-50: #eefaf0;

  --ip-lapis-900: var(--ip-green-900);
  --ip-lapis-800: var(--ip-green-800);
  --ip-lapis-700: var(--ip-green-700);
  --ip-lapis-600: var(--ip-green-600);
  --ip-lapis-500: var(--ip-green-500);
  --ip-lapis-300: var(--ip-green-300);
  --ip-lapis-100: var(--ip-green-100);
  --ip-lapis-50: var(--ip-green-50);
  --ip-turquoise-700: #13705a;
  --ip-turquoise-500: #2eb872;
  --ip-turquoise-100: #d3f2e2;
  --ip-turquoise-50: #ebf9f1;
  --ip-saffron-700: #8a6414;
  --ip-saffron-600: #a77a1f;
  --ip-saffron-500: #e6b85c;
  --ip-saffron-300: #f1d59a;
  --ip-saffron-100: #f8ecd0;
  --ip-saffron-50: #fff8e6;
  --ip-violet-700: #5b33a8;
  --ip-violet-600: #6f42c1;
  --ip-violet-500: #8b5cf6;
  --ip-violet-100: #e9e2f8;
  --ip-violet-50: #f5f0ff;
  --ip-coral-700: #b93a26;
  --ip-coral-500: #f2603f;
  --ip-coral-100: #ffe0d8;
  --ip-coral-50: #fff3f0;
  --ip-sky-700: #1d5fae;
  --ip-sky-600: #1e6fd9;
  --ip-sky-500: #2196f3;
  --ip-sky-100: #dbe8ff;
  --ip-sky-50: #eef4ff;
  --ip-rose-700: #9a4a35;
  --ip-rose-600: #b0573f;
  --ip-rose-500: #d98a70;
  --ip-rose-100: #f6dcd2;
  --ip-rose-50: #fcf1ec;
  --ip-emerald-950: var(--ip-green-950);
  --ip-emerald-900: var(--ip-green-900);
  --ip-emerald-800: var(--ip-green-800);
  --ip-emerald-700: var(--ip-green-700);
  --ip-emerald-600: var(--ip-green-600);
  --ip-emerald-500: var(--ip-green-400);
  --ip-emerald-300: var(--ip-green-300);
  --ip-emerald-100: var(--ip-green-100);
  --ip-emerald-50: var(--ip-green-50);
  --ip-gold-700: var(--ip-saffron-700);
  --ip-gold-600: var(--ip-saffron-600);
  --ip-gold-500: var(--ip-saffron-500);
  --ip-gold-400: var(--ip-saffron-300);
  --ip-gold-200: var(--ip-saffron-100);
  --ip-gold-50: var(--ip-saffron-50);
  --ip-ink-navy: #0d3b29;

  /* Semantic colours (light): a soft cream ground, white cards, near-black ink. */
  --ip-bg: #faf8f2;
  --ip-bg-elevated: #ffffff;
  --ip-surface: #ffffff;
  --ip-surface-2: #f6f4ee;
  --ip-surface-3: #ece8dd;
  --ip-line: #ebe8df;
  --ip-line-strong: #d9d5c9;
  --ip-ink: #1c1c1c;
  --ip-ink-2: #374151;
  /* Muted text passes 4.5:1 on every light ground the cards use (white, cream, the stone and pastel fills). */
  --ip-muted: #5f6673;
  --ip-primary: var(--ip-green-500);
  --ip-primary-hover: var(--ip-green-700);
  --ip-primary-ink: #ffffff;
  --ip-primary-soft: rgba(31, 122, 99, .09);
  --ip-accent: var(--ip-saffron-500);
  --ip-accent-strong: var(--ip-saffron-700);
  --ip-success: #15803d;
  --ip-success-soft: var(--ip-green-50);
  --ip-danger: #c22f2f;
  --ip-danger-soft: var(--ip-coral-50);
  --ip-link: var(--ip-green-600);
  --ip-focus: var(--ip-green-500);
  --ip-header-bg: rgba(255, 255, 255, .97);
  --ip-grad-brand: linear-gradient(90deg, #1f7a63 0%, #2eb872 55%, #e6b85c 100%);
  --ip-grad-accent: linear-gradient(135deg, #e6b85c 0%, #f2a83b 100%);
  /* Tile and pastel-card colours: the design's bg-green, bg-orange, bg-blue, bg-purple and bg-red. */
  --ip-tile-emerald-bg: #eefaf0;
  --ip-tile-emerald-fg: #1e7a44;
  --ip-tile-gold-bg: #fff8e6;
  --ip-tile-gold-fg: #9a5f00;
  --ip-tile-sky-bg: #eef4ff;
  --ip-tile-sky-fg: #1a63c4;
  --ip-tile-violet-bg: #f5f0ff;
  --ip-tile-violet-fg: #6f42c1;
  --ip-tile-rose-bg: #fff3f0;
  --ip-tile-rose-fg: #b8321d;
  --ip-tile-lapis-bg: #eefaf0;
  --ip-tile-lapis-fg: #1f7a63;
  /* The design's icon gradients (gradient-green, -blue, -purple, -orange, -red). */
  --ip-icon-green: linear-gradient(135deg, #4caf50, #8bc34a);
  --ip-icon-blue: linear-gradient(135deg, #2196f3, #3f51b5);
  --ip-icon-purple: linear-gradient(135deg, #9c27b0, #673ab7);
  --ip-icon-orange: linear-gradient(135deg, #ff9800, #ffc107);
  --ip-icon-red: linear-gradient(135deg, #f44336, #ff9800);

  /* Area tokens. The original design is green throughout, so every area shares the brand green for
   * text, fills and buttons; --ip-area-2 gives each area its own secondary glow (see [data-area]). */
  --ip-area: #1f7a63;
  --ip-area-strong: #1a6e58;
  --ip-area-soft: rgba(31, 122, 99, .08);
  --ip-area-tint: rgba(46, 184, 114, .16);
  --ip-area-on: #ffffff;
  --ip-area-2: #e6b85c;
  --ip-area-fill: #1f7a63;
  --ip-area-fill-ink: #ffffff;
  --ip-area-deep: #0d3b29;

  /* Shape */
  --ip-radius-xs: 6px;
  --ip-radius-sm: 8px;
  --ip-radius: 12px;
  --ip-radius-lg: 16px;
  --ip-radius-xl: 20px;
  --ip-radius-pill: 999px;
  --ip-radius-btn: 10px;
  /* Layered, gentle shadows: a crisp contact shadow under a soft ambient one. */
  --ip-shadow-sm: 0 1px 2px rgba(16, 24, 20, .04), 0 2px 8px -2px rgba(16, 24, 20, .06);
  --ip-shadow-md: 0 2px 4px rgba(16, 24, 20, .04), 0 10px 24px -6px rgba(16, 24, 20, .10);
  --ip-shadow-lg: 0 8px 24px rgba(0, 0, 0, .05), 0 20px 60px rgba(0, 0, 0, .08);
  --ip-shadow-glow: 0 10px 24px -10px rgba(31, 122, 99, .55);

  /* Spacing (4px grid) */
  --ip-space-1: .25rem;
  --ip-space-2: .5rem;
  --ip-space-3: .75rem;
  --ip-space-4: 1rem;
  --ip-space-5: 1.5rem;
  --ip-space-6: 2rem;
  --ip-space-7: 2.5rem;
  --ip-space-8: 3rem;
  --ip-space-9: 4rem;
  --ip-space-10: 5rem;

  /* Type scale: compact, as the original is. */
  --ip-text-xs: .75rem;
  --ip-text-sm: .875rem;
  --ip-text-base: 1rem;
  --ip-text-lg: 1.0625rem;
  --ip-text-xl: clamp(1.15rem, 1.08rem + .3vw, 1.3rem);
  --ip-text-2xl: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --ip-text-3xl: clamp(1.7rem, 1.35rem + 1.5vw, 2.4rem);
  --ip-text-4xl: clamp(2rem, 1.45rem + 2.4vw, 3.2rem);

  --ip-ease: cubic-bezier(.2, .7, .2, 1);
  --ip-spring: cubic-bezier(.34, 1.4, .64, 1);
  --ip-header-h: 76px;

  /* The design's background: an eight-point star lattice in faint green with a gold dot. */
  --ip-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%231f7a63' stroke-width='1' stroke-opacity='0.07'%3E%3Cpolygon points='60,33 65,48 80,41 72,56 87,60 72,65 80,80 65,72 60,87 56,72 41,80 48,65 33,60 48,56 41,41 56,48'/%3E%3Cline x1='60' y1='33' x2='60' y2='0'/%3E%3Cline x1='87' y1='60' x2='120' y2='60'/%3E%3Cline x1='60' y1='87' x2='60' y2='120'/%3E%3Cline x1='33' y1='60' x2='0' y2='60'/%3E%3Cline x1='80' y1='41' x2='120' y2='0'/%3E%3Cline x1='80' y1='80' x2='120' y2='120'/%3E%3Cline x1='41' y1='80' x2='0' y2='120'/%3E%3Cline x1='41' y1='41' x2='0' y2='0'/%3E%3C/g%3E%3Ccircle cx='60' cy='60' r='3' fill='%23e6b85c' fill-opacity='0.2'/%3E%3C/svg%3E");
  --ip-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.08'%3E%3Cpolygon points='60,33 65,48 80,41 72,56 87,60 72,65 80,80 65,72 60,87 56,72 41,80 48,65 33,60 48,56 41,41 56,48'/%3E%3Cline x1='60' y1='33' x2='60' y2='0'/%3E%3Cline x1='87' y1='60' x2='120' y2='60'/%3E%3Cline x1='60' y1='87' x2='60' y2='120'/%3E%3Cline x1='33' y1='60' x2='0' y2='60'/%3E%3Cline x1='80' y1='41' x2='120' y2='0'/%3E%3Cline x1='80' y1='80' x2='120' y2='120'/%3E%3Cline x1='41' y1='80' x2='0' y2='120'/%3E%3Cline x1='41' y1='41' x2='0' y2='0'/%3E%3C/g%3E%3Ccircle cx='60' cy='60' r='3' fill='%23e6b85c' fill-opacity='0.35'/%3E%3C/svg%3E");
  /* Eight-point star / girih line art for heroes and empty states. */
  --ip-girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231f7a63' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M60 18l12 30 30 12-30 12-12 30-12-30-30-12 30-12z'/%3E%3Cpath d='M30 30l30 12 30-12-12 30 12 30-30-12-30 12 12-30z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3Cpath d='M0 60h18M102 60h18M60 0v18M60 102v18'/%3E%3C/g%3E%3C/svg%3E");
  /* The design's "+" lattice used on its deep-green heroes. */
  --ip-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 10v8M10 14h8' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.2'/%3E%3C/svg%3E");
}

:root[data-theme="dark"],
body.dark {
  --ip-green-600: #34c07c;
  --ip-green-500: #2eb872;
  --ip-lapis-600: #4fcf8e;
  --ip-lapis-500: #2eb872;
  --ip-turquoise-500: #3ccf8a;
  --ip-saffron-500: #e6b85c;
  --ip-violet-500: #a98bff;
  --ip-coral-500: #ff8a73;
  --ip-sky-500: #6cb6ff;
  --ip-rose-500: #f0a994;
  --ip-emerald-500: #3ddc97;
  --ip-bg: #050b0e;
  --ip-bg-elevated: #0b1418;
  --ip-surface: #0b141a;
  --ip-surface-2: #111d24;
  --ip-surface-3: #182730;
  --ip-line: #1e2a30;
  --ip-line-strong: #2c3a42;
  --ip-ink: #eef2f0;
  --ip-ink-2: #c9d1cf;
  --ip-muted: #9ca3af;
  --ip-primary: #2eb872;
  --ip-primary-hover: #47c98a;
  --ip-primary-ink: #03140b;
  --ip-primary-soft: rgba(46, 184, 114, .12);
  --ip-accent: #e6b85c;
  --ip-accent-strong: #ecc879;
  --ip-success: #3ddc97;
  --ip-success-soft: rgba(61, 220, 151, .12);
  --ip-danger: #ff8c8c;
  --ip-danger-soft: rgba(255, 140, 140, .12);
  --ip-link: #5fd49a;
  --ip-focus: #e6b85c;
  --ip-header-bg: rgba(5, 11, 14, .94);
  --ip-tile-emerald-bg: rgba(46, 184, 114, .13);
  --ip-tile-emerald-fg: #5fd49a;
  --ip-tile-gold-bg: rgba(230, 184, 92, .13);
  --ip-tile-gold-fg: #ecc879;
  --ip-tile-sky-bg: rgba(108, 182, 255, .13);
  --ip-tile-sky-fg: #8cc6ff;
  --ip-tile-violet-bg: rgba(169, 139, 255, .14);
  --ip-tile-violet-fg: #bfa8ff;
  --ip-tile-rose-bg: rgba(255, 138, 115, .13);
  --ip-tile-rose-fg: #ffa38f;
  --ip-tile-lapis-bg: rgba(46, 184, 114, .13);
  --ip-tile-lapis-fg: #5fd49a;
  --ip-area: #2eb872;
  --ip-area-strong: #5fd49a;
  --ip-area-soft: rgba(46, 184, 114, .11);
  --ip-area-tint: rgba(46, 184, 114, .18);
  --ip-area-on: #03140b;
  --ip-area-fill: #1f7a63;
  --ip-area-deep: #0a2a1e;
  --ip-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px -2px rgba(0, 0, 0, .35);
  --ip-shadow-md: 0 2px 4px rgba(0, 0, 0, .35), 0 12px 28px -8px rgba(0, 0, 0, .6);
  --ip-shadow-lg: 0 8px 24px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .55);
  --ip-shadow-glow: 0 10px 24px -10px rgba(46, 184, 114, .45);
  --ip-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%232eb872' stroke-width='1' stroke-opacity='0.06'%3E%3Cpolygon points='60,33 65,48 80,41 72,56 87,60 72,65 80,80 65,72 60,87 56,72 41,80 48,65 33,60 48,56 41,41 56,48'/%3E%3Cline x1='60' y1='33' x2='60' y2='0'/%3E%3Cline x1='87' y1='60' x2='120' y2='60'/%3E%3Cline x1='60' y1='87' x2='60' y2='120'/%3E%3Cline x1='33' y1='60' x2='0' y2='60'/%3E%3Cline x1='80' y1='41' x2='120' y2='0'/%3E%3Cline x1='80' y1='80' x2='120' y2='120'/%3E%3Cline x1='41' y1='80' x2='0' y2='120'/%3E%3Cline x1='41' y1='41' x2='0' y2='0'/%3E%3C/g%3E%3Ccircle cx='60' cy='60' r='3' fill='%23e6b85c' fill-opacity='0.15'/%3E%3C/svg%3E");
  --ip-girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232eb872' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M60 18l12 30 30 12-30 12-12 30-12-30-30-12 30-12z'/%3E%3Cpath d='M30 30l30 12 30-12-12 30 12 30-30-12-30 12 12-30z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3Cpath d='M0 60h18M102 60h18M60 0v18M60 102v18'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Areas ----------
 * The original design is green everywhere; an area only changes its secondary glow, so the Quran is lit
 * with gold, prayer with sky blue, learning with purple, history with gold and the kids area with coral. */
[data-area="prayer"] { --ip-area-2: #2196f3; }
[data-area="learn"] { --ip-area-2: #8b5cf6; }
[data-area="kids"] { --ip-area-2: #f2603f; }
[data-area="duas"] { --ip-area-2: #2eb872; }

/* ---------- Base ---------- */

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--ip-header-h) + 1rem);
}

body.ip-body {
  font-family: var(--ip-font-sans);
  background-color: var(--ip-bg);
  background-image: var(--ip-pattern);
  background-size: 120px 120px;
  color: var(--ip-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* style.css gives Arabic passages ([lang="ar"] inside the page) Quran-sized text; the page and language names keep the normal size. */
html[lang="ar"],
html[lang="ur"] {
  font-size: 100%;
  line-height: normal;
  word-spacing: normal;
  font-weight: normal;
}
.ip-lang__item[lang],
.ip-lang-pill[lang],
.ip-footer__langs [lang] {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

/* Latin words and numbers on Arabic pages keep the site's Inter; Arabic letters fall through to Naskh. */
html[lang="ar"] body.ip-body {
  font-family: "Inter", var(--ip-font-arabic), system-ui, sans-serif;
  line-height: 1.75;
}
html[lang="ur"] body.ip-body {
  font-family: var(--ip-font-sans);
  line-height: 2.05;
}
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3,
html[lang="ur"] .ip-display {
  line-height: 1.9;
}
/* Urdu anywhere else (a passage or a language name marked lang="ur") gets the same Nastaliq stack and
 * enough line height that the deep descenders and tall ascenders of Nastaliq never clip. */
[lang="ur"]:not(html) {
  font-family: var(--ip-font-urdu);
}
:lang(ur):is(p, li, dd, blockquote, figcaption, td, label, summary, .ip-pagehero__lead) {
  line-height: 2.1;
}
:lang(ur):is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.95;
  padding-block: .08em;
}
html[lang="ur"] :is(.ip-btn, .btn, .ip-chip, .badge, .ip-nav__link, .ip-pagehero__eyebrow) {
  line-height: 1.9;
}

.ip-display,
.ip-h1, .ip-h2 {
  font-family: var(--ip-font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ip-ink);
}
html[lang="ar"] .ip-display, html[lang="ar"] .ip-h1, html[lang="ar"] .ip-h2 {
  font-family: var(--ip-font-arabic);
  letter-spacing: 0;
}
html[lang="ur"] .ip-display, html[lang="ur"] .ip-h1, html[lang="ur"] .ip-h2 {
  font-family: var(--ip-font-urdu);
  letter-spacing: 0;
}

/* On Urdu pages every interface face includes Nastaliq, so a feature stylesheet that sets its titles in
 * the display face, the sans face or (as many do for "ar, ur") the Arabic Naskh face still shows Urdu in
 * Jameel Noori Nastaleeq. The Latin web fonts come first and carry no Arabic-script glyphs, so English
 * words and numbers keep the site's faces while every Urdu letter falls through to Nastaliq (before any
 * system font that has Naskh Arabic). Arabic passages (marked lang="ar") and English, Spanish or French
 * passages get their own faces back. */
html[lang="ur"] {
  --ip-font-sans: "Inter", var(--ip-font-urdu), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ip-font-display: "Inter", var(--ip-font-urdu), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ip-font-arabic: "Inter", var(--ip-font-urdu), "Noto Naskh Arabic", serif;
}
html[lang="ur"] [lang="ar"] {
  --ip-font-arabic: "Noto Naskh Arabic", "Amiri", "Geeza Pro", "Traditional Arabic", serif;
}
html[lang="ur"] :is([lang="en"], [lang="es"], [lang="fr"]) {
  --ip-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ip-font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Nastaliq's tall ascenders and deep descenders need room; feature titles often set a tight line height. */
html[lang="ur"] body.ip-body :is(h1, h2, h3, h4):not(:lang(en), :lang(es), :lang(fr)) {
  line-height: 1.85;
  letter-spacing: 0;
  padding-block-start: .12em;
}
html[lang="ur"] body.ip-body h1:not(:lang(en), :lang(es), :lang(fr)) {
  padding-block-start: .3em;
}

/* Arabic script anywhere on an English page (Quran, duas, hadith) */
.ip-arabic {
  font-family: var(--ip-font-quran);
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 2;
}

a {
  color: var(--ip-link);
}

:focus-visible {
  outline: 3px solid var(--ip-focus);
  outline-offset: 2px;
}
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 3px solid var(--ip-focus);
  outline-offset: 2px;
  box-shadow: none;
}

main:focus {
  outline: none;
}

[dir="rtl"] .ip-flip {
  transform: scaleX(-1);
}

/* A left-to-right block inside a right-to-left page (the salah walkthrough in English on an Arabic page) keeps its
 * arrows as drawn. */
[dir="rtl"] [dir="ltr"] .ip-flip {
  transform: none;
}

/* Part 47: a transform does nothing on an inline box, so the mirroring rules of every feature (".x-flip",
 * "[dir=rtl] .card-go .bi-arrow-right", ...) only take effect when the icon is an inline-block. Arabic and Urdu
 * pages give every arrow, chevron and caret that box; the glyph inside is already an inline-block, so nothing
 * moves. */
[dir="rtl"] :is(i, span):is(.ip-flip,
  .bi-arrow-right, .bi-arrow-left, .bi-arrow-right-short, .bi-arrow-left-short,
  .bi-arrow-right-circle, .bi-arrow-left-circle, .bi-arrow-right-circle-fill, .bi-arrow-left-circle-fill,
  .bi-chevron-right, .bi-chevron-left, .bi-caret-right-fill, .bi-caret-left-fill,
  .fa-arrow-right, .fa-arrow-left, .fa-chevron-right, .fa-chevron-left, .fa-angle-right, .fa-angle-left) {
  display: inline-block;
}

.ip-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 2000;
  padding: .75rem 1.1rem;
  border-radius: var(--ip-radius-sm);
  background: var(--ip-primary);
  color: var(--ip-primary-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ip-ease);
}
.ip-skip:focus {
  top: .75rem;
  color: var(--ip-primary-ink);
}

/* Bootstrap's success / outline buttons, used across feature pages, follow the brand tokens. */
.btn-success {
  --bs-btn-bg: var(--ip-primary);
  --bs-btn-border-color: var(--ip-primary);
  --bs-btn-hover-bg: var(--ip-primary-hover);
  --bs-btn-hover-border-color: var(--ip-primary-hover);
  --bs-btn-active-bg: var(--ip-primary-hover);
  --bs-btn-color: var(--ip-primary-ink);
  --bs-btn-hover-color: var(--ip-primary-ink);
  background-color: var(--ip-primary);
  border-color: var(--ip-primary);
  color: var(--ip-primary-ink);
}
.btn-success:hover,
.btn-success:active,
.btn-success:focus {
  background-color: var(--ip-primary-hover);
  border-color: var(--ip-primary-hover);
  color: var(--ip-primary-ink);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 .25rem var(--ip-primary-soft);
}

/* ---------- Buttons ---------- */

.ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 42px;
  padding: .5rem 1.1rem;
  border-radius: var(--ip-radius-btn);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.2;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ip-ease), color .2s var(--ip-ease), border-color .2s var(--ip-ease), transform .2s var(--ip-ease), box-shadow .2s var(--ip-ease);
}
.ip-btn:hover {
  transform: translateY(-1px);
}
.ip-btn:active {
  transform: translateY(0) scale(.98);
  transition-duration: .08s;
}
.ip-btn i.bi-arrow-right,
.ip-btn i.fa-arrow-right {
  transition: transform .25s var(--ip-ease);
}
.ip-btn:hover i.bi-arrow-right:not(.ip-flip),
.ip-btn:hover i.fa-arrow-right:not(.ip-flip) {
  transform: translateX(3px);
}
.ip-btn--primary {
  background: linear-gradient(180deg, #23876d 0%, var(--ip-primary) 100%);
  color: var(--ip-primary-ink);
  box-shadow: 0 1px 2px rgba(13, 59, 41, .25), 0 6px 16px -8px rgba(31, 122, 99, .7), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.ip-btn--primary:hover {
  background: linear-gradient(180deg, #1c745d 0%, var(--ip-primary-hover) 100%);
  color: var(--ip-primary-ink);
  box-shadow: 0 1px 2px rgba(13, 59, 41, .25), 0 10px 22px -8px rgba(31, 122, 99, .75), inset 0 1px 0 rgba(255, 255, 255, .16);
}
[data-theme="dark"] .ip-btn--primary,
body.dark .ip-btn--primary {
  background: linear-gradient(180deg, #34c07c 0%, #2eb872 100%);
}
.ip-btn--area {
  background: var(--ip-area-strong);
  color: var(--ip-area-on);
  box-shadow: var(--ip-shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ip-btn--area:hover {
  color: var(--ip-area-on);
  filter: brightness(1.07);
}
.ip-btn--ghost {
  background: var(--ip-surface);
  border-color: #d1d5db;
  color: var(--ip-ink-2);
}
.ip-btn--ghost:hover {
  border-color: var(--ip-primary);
  color: var(--ip-primary);
  background: var(--ip-primary-soft);
}
[data-theme="dark"] .ip-btn--ghost,
body.dark .ip-btn--ghost {
  border-color: var(--ip-line-strong);
}
.ip-btn--gold {
  background: linear-gradient(135deg, #f1cf85 0%, #e6b85c 100%);
  color: #2b1d02;
  box-shadow: 0 1px 2px rgba(120, 80, 10, .2), 0 6px 16px -8px rgba(198, 145, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.ip-btn--gold:hover {
  color: #2b1d02;
  filter: brightness(1.04);
}
.ip-btn--light {
  background: #fff;
  color: var(--ip-green-800);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
.ip-btn--light:hover {
  color: var(--ip-green-900);
  background: #f2fbf5;
}
.ip-btn--glass {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(6px);
}
.ip-btn--glass:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.ip-btn--sm {
  min-height: 36px;
  padding: .4rem .9rem;
  font-size: .85rem;
}
.ip-btn--lg {
  min-height: 52px;
  padding: .7rem 1.5rem;
  font-size: 1rem;
}
.ip-btn--block {
  width: 100%;
}
.ip-btn i {
  font-size: 1.05em;
}

.ip-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 38px;
  height: 38px;
  padding: 0 .5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ip-ease), color .2s var(--ip-ease), border-color .2s var(--ip-ease);
}
[data-theme="dark"] .ip-icon-btn,
body.dark .ip-icon-btn {
  color: var(--ip-ink-2);
}
.ip-icon-btn:hover {
  background: var(--ip-surface-2);
  color: var(--ip-primary);
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border-radius: var(--ip-radius-pill);
  border: 1px solid var(--ip-line);
  background: var(--ip-surface);
  color: var(--ip-ink-2);
  font-size: .85rem;
  text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.ip-chip:hover {
  border-color: var(--ip-primary);
  color: var(--ip-primary);
}

/* Icon tiles used by menus and cards: the design's pastel squares, with a soft top light and a hairline. */
.ip-tile {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 1.15rem;
  background: var(--ip-tile-emerald-bg);
  color: var(--ip-tile-emerald-fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 10%, transparent), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.ip-tile--sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: .95rem;
}
.ip-tile--lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.4rem;
}
.ip-tile--gold { background: var(--ip-tile-gold-bg); color: var(--ip-tile-gold-fg); }
.ip-tile--sky { background: var(--ip-tile-sky-bg); color: var(--ip-tile-sky-fg); }
.ip-tile--violet { background: var(--ip-tile-violet-bg); color: var(--ip-tile-violet-fg); }
.ip-tile--rose { background: var(--ip-tile-rose-bg); color: var(--ip-tile-rose-fg); }
.ip-tile--lapis { background: var(--ip-tile-lapis-bg); color: var(--ip-tile-lapis-fg); }
.ip-tile--turquoise { background: var(--ip-tile-emerald-bg); color: var(--ip-tile-emerald-fg); }
.ip-tile--saffron { background: var(--ip-tile-gold-bg); color: var(--ip-tile-gold-fg); }
.ip-tile--coral { background: var(--ip-tile-rose-bg); color: var(--ip-tile-rose-fg); }
.ip-tile--area { background: var(--ip-area-soft); color: var(--ip-area-strong); }
[data-theme="dark"] .ip-tile,
body.dark .ip-tile {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent);
}

/* The design's gradient-filled icon glyphs (Quick Start, mega-menus, KPI boxes). */
.ip-gicon {
  display: inline-block;
  background-image: var(--ip-icon-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.ip-gicon--emerald, .ip-gicon--green { background-image: var(--ip-icon-green); }
.ip-gicon--sky, .ip-gicon--blue, .ip-gicon--lapis { background-image: var(--ip-icon-blue); }
.ip-gicon--violet, .ip-gicon--purple { background-image: var(--ip-icon-purple); }
.ip-gicon--gold, .ip-gicon--orange, .ip-gicon--saffron { background-image: var(--ip-icon-orange); }
.ip-gicon--rose, .ip-gicon--red, .ip-gicon--coral { background-image: var(--ip-icon-red); }

/* Cards: white, rounded, a hairline border and a gentle layered shadow. */
.ip-card {
  position: relative;
  background: var(--ip-surface);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius-lg);
  box-shadow: var(--ip-shadow-sm);
}
a.ip-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ip-ease), box-shadow .3s var(--ip-ease), border-color .3s var(--ip-ease);
}
a.ip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ip-shadow-md);
  border-color: color-mix(in srgb, var(--ip-primary) 22%, var(--ip-line));
  color: inherit;
}
a.ip-card:active {
  transform: translateY(-1px) scale(.995);
}

.ip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ip-primary);
}
html[lang="ar"] .ip-eyebrow,
html[lang="ur"] .ip-eyebrow {
  letter-spacing: 0;
  font-size: .9rem;
}
.ip-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ip-green-400), var(--ip-saffron-500));
}

/* ---------- Header: white, sticky, with the design's green-to-gold underline ---------- */

.ip-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--ip-header-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.9);
  backdrop-filter: blur(24px) saturate(1.9);
  border-bottom: 1.5px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .04);
  transition: box-shadow .3s var(--ip-ease), background-color .3s var(--ip-ease);
}
.ip-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 3px;
  background: var(--ip-grad-brand);
  opacity: .85;
  pointer-events: none;
}
[dir="rtl"] .ip-header::after {
  background: linear-gradient(-90deg, #1f7a63 0%, #2eb872 55%, #e6b85c 100%);
}
.ip-header.is-scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, .1), 0 1px 6px rgba(0, 0, 0, .05);
}
[data-theme="dark"] .ip-header,
body.dark .ip-header {
  border-bottom-color: rgba(255, 255, 255, .06);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

.ip-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--ip-header-h);
}
/* Scrolling never changes the bar's height (that would shift the whole page); the mark settles a little instead. */
.ip-header.is-scrolled .ip-brand__mark img {
  transform: scale(.9);
}

.ip-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
  color: var(--ip-ink);
  text-decoration: none;
  transition: opacity .2s;
}
.ip-brand:hover {
  color: var(--ip-ink);
  opacity: .88;
}
.ip-brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}
.ip-brand__mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform .5s var(--ip-spring);
}
.ip-brand:hover .ip-brand__mark img {
  transform: rotate(-6deg) scale(1.04);
}
.ip-brand__name {
  font-family: var(--ip-font-brand);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.15;
  color: #0d3b29;
  white-space: nowrap;
}
[data-theme="dark"] .ip-brand__name,
body.dark .ip-brand__name {
  color: #c9a050;
}
.ip-brand--small .ip-brand__mark,
.ip-brand--small .ip-brand__mark img {
  width: 38px;
  height: 38px;
}
.ip-brand--small .ip-brand__name {
  font-size: 1.15rem;
}

.ip-nav {
  display: none;
  flex: 1;
  min-width: 0;
}
.ip-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-nav__item--mega {
  position: static;
}
.ip-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: .895rem;
  font-weight: 600;
  letter-spacing: .008em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s var(--ip-ease), background-color .2s var(--ip-ease);
}
[data-theme="dark"] .ip-nav__link,
body.dark .ip-nav__link {
  color: #d1d8e0;
}
.ip-nav__link:hover,
.ip-nav__link[aria-expanded="true"] {
  color: var(--ip-primary);
  background: rgba(31, 122, 99, .09);
}
[data-theme="dark"] .ip-nav__link:hover,
[data-theme="dark"] .ip-nav__link[aria-expanded="true"],
body.dark .ip-nav__link:hover,
body.dark .ip-nav__link[aria-expanded="true"] {
  color: #2eb872;
  background: rgba(46, 184, 114, .1);
}
.ip-nav__link.is-active {
  color: var(--ip-primary);
  background: rgba(31, 122, 99, .13);
  font-weight: 700;
}
[data-theme="dark"] .ip-nav__link.is-active,
body.dark .ip-nav__link.is-active {
  color: #2eb872;
  background: rgba(46, 184, 114, .14);
}
.ip-nav__chevron {
  font-size: .62rem;
  -webkit-text-stroke: .6px currentColor;
  transition: transform .25s var(--ip-ease);
}
.ip-nav__link[aria-expanded="true"] .ip-nav__chevron {
  transform: rotate(180deg);
}
.ip-nav__link--kids {
  color: #d2412b;
}
.ip-nav__link--kids i {
  display: inline-block;
  animation: ip-bob 3.2s ease-in-out infinite;
}
.ip-nav__link--kids:hover {
  color: #c0392b;
  background: #fff3f0;
}
[data-theme="dark"] .ip-nav__link--kids,
body.dark .ip-nav__link--kids {
  color: #ffa38f;
}
[data-theme="dark"] .ip-nav__link--kids:hover,
body.dark .ip-nav__link--kids:hover {
  color: #ffb9aa;
  background: rgba(255, 138, 115, .12);
}
/* Teen Academy: its own front door, in the academy's midnight and emerald. */
.ip-nav__link--teens {
  color: #0f7c5a;
}
.ip-nav__link--teens i {
  display: inline-block;
  color: #1fae84;
}
.ip-nav__link--teens:hover {
  color: #0b1530;
  background: linear-gradient(135deg, rgba(47, 211, 155, .16), rgba(90, 107, 255, .12));
}
[data-theme="dark"] .ip-nav__link--teens,
body.dark .ip-nav__link--teens {
  color: #7cf3c8;
}
[data-theme="dark"] .ip-nav__link--teens:hover,
body.dark .ip-nav__link--teens:hover {
  color: #edf2fd;
  background: rgba(47, 211, 155, .14);
}
/* Store: part of the website's own menu, next to About (owner, 2026-10-26), on a soft gold background so it is easy
   to find without looking like another site. The brand gold of .ip-btn--gold, lighter. */
.ip-nav__link--store {
  color: #5a3d05;
  background: linear-gradient(135deg, #fbefd0 0%, #f4dca0 100%);
  box-shadow: inset 0 0 0 1px rgba(198, 145, 40, .35);
}
.ip-nav__link--store i {
  color: #a8740f;
}
.ip-nav__link--store:hover,
.ip-nav__link--store.is-active {
  color: #2b1d02;
  background: linear-gradient(135deg, #f6e1a8 0%, #ecc670 100%);
  box-shadow: inset 0 0 0 1px rgba(198, 145, 40, .55), 0 6px 14px -10px rgba(198, 145, 40, .9);
}
[data-theme="dark"] .ip-nav__link--store,
body.dark .ip-nav__link--store {
  color: #f6dc9c;
  background: rgba(230, 184, 92, .14);
  box-shadow: inset 0 0 0 1px rgba(230, 184, 92, .32);
}
[data-theme="dark"] .ip-nav__link--store i,
body.dark .ip-nav__link--store i {
  color: #e6b85c;
}
[data-theme="dark"] .ip-nav__link--store:hover,
[data-theme="dark"] .ip-nav__link--store.is-active,
body.dark .ip-nav__link--store:hover,
body.dark .ip-nav__link--store.is-active {
  color: #fff3d6;
  background: rgba(230, 184, 92, .24);
}
/* The "Soon" mark while the store is switched off. */
.ip-nav__soon {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .1rem .4rem;
  border-radius: 999px;
  color: #6b4a08;
  background: rgba(255, 255, 255, .7);
}
[data-theme="dark"] .ip-nav__soon,
body.dark .ip-nav__soon {
  color: #f6dc9c;
  background: rgba(0, 0, 0, .25);
}
/* The phone drawer: the same gold, as a full-width row. */
.ip-drawer__link--store {
  margin-top: .5rem;
  padding-inline: .85rem;
  border-radius: 12px;
  color: #5a3d05;
  background: linear-gradient(135deg, #fbefd0 0%, #f4dca0 100%);
}
.ip-drawer__link--store i {
  color: #a8740f;
}
.ip-drawer__store-name {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
[data-theme="dark"] .ip-drawer__link--store,
body.dark .ip-drawer__link--store {
  color: #f6dc9c;
  background: rgba(230, 184, 92, .14);
}
[data-theme="dark"] .ip-drawer__link--store i,
body.dark .ip-drawer__link--store i {
  color: #e6b85c;
}
@keyframes ip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px) rotate(-6deg); }
}

/* Mega-menu: a floating white card, as in the design, centred under the header. */
.ip-mega {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding-top: 10px;
  padding-bottom: 1.5rem;
}
.ip-mega[hidden] {
  display: none;
}
.ip-mega__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 1.75rem;
  max-width: 1180px;
  padding: 1.75rem 1.9rem;
  background: var(--ip-surface);
  border: 1px solid var(--ip-line);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .05);
  transform-origin: top center;
  animation: ip-drop .28s var(--ip-ease);
}
@keyframes ip-drop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ip-mega__groups {
  display: grid;
  grid-template-columns: repeat(var(--ip-mega-cols, 3), minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}
/* A column holds one group, or (from the third group on) several stacked: Start Here's Questions above History. */
.ip-mega__col {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}
.ip-mega__group {
  animation: ip-fade-up .35s var(--ip-ease) both;
}
.ip-mega__col:nth-child(2) .ip-mega__group { animation-delay: .04s; }
.ip-mega__col:nth-child(3) .ip-mega__group { animation-delay: .08s; }
.ip-mega__col:nth-child(3) .ip-mega__group + .ip-mega__group { animation-delay: .12s; }
@keyframes ip-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ip-mega__heading {
  position: relative;
  margin: 0 0 1.1rem;
  padding-inline-start: .75rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ip-muted);
}
.ip-mega__heading::after {
  content: "";
  position: absolute;
  inset-inline-start: .75rem;
  bottom: -8px;
  width: 30px;
  height: 2px;
  border-radius: 50px;
  background: var(--ip-primary);
}
html[lang="ar"] .ip-mega__heading,
html[lang="ur"] .ip-mega__heading {
  letter-spacing: 0;
  font-size: .85rem;
}
.ip-mega__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-mega__link {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 3px;
  padding: .55rem .75rem;
  border-radius: 10px;
  color: var(--ip-ink-2);
  text-decoration: none;
  transition: background-color .22s var(--ip-ease), color .22s var(--ip-ease), transform .2s var(--ip-ease);
}
.ip-mega__link:hover,
.ip-mega__link:focus-visible {
  background: rgba(31, 122, 99, .08);
  color: var(--ip-primary);
  transform: translateX(3px);
}
[dir="rtl"] .ip-mega__link:hover,
[dir="rtl"] .ip-mega__link:focus-visible {
  transform: translateX(-3px);
}
/* The menu tile becomes the design's gradient glyph. */
.ip-mega__link .ip-tile {
  width: 30px;
  height: auto;
  min-height: 30px;
  background: none !important;
  box-shadow: none;
  font-size: 1.55rem;
  line-height: 1;
  transition: transform .3s var(--ip-spring);
}
.ip-mega__link .ip-tile i {
  background-image: var(--ip-icon-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ip-mega__link .ip-tile--sky i,
.ip-mega__link .ip-tile--lapis i { background-image: var(--ip-icon-blue); }
.ip-mega__link .ip-tile--violet i { background-image: var(--ip-icon-purple); }
.ip-mega__link .ip-tile--gold i,
.ip-mega__link .ip-tile--saffron i { background-image: var(--ip-icon-orange); }
.ip-mega__link .ip-tile--rose i,
.ip-mega__link .ip-tile--coral i { background-image: var(--ip-icon-red); }
.ip-mega__link:hover .ip-tile {
  transform: scale(1.12) rotate(-4deg);
}
.ip-mega__text {
  min-width: 0;
}
.ip-mega__title {
  display: block;
  margin-bottom: .1rem;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ip-ink);
  transition: color .18s;
}
.ip-mega__link:hover .ip-mega__title {
  color: var(--ip-primary);
}
.ip-mega__desc {
  display: block;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--ip-muted);
}
.ip-mega__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(230, 184, 92, .38), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(46, 184, 114, .4), transparent 60%),
    linear-gradient(155deg, #10503a 0%, #0d3b29 100%);
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.ip-mega__promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ip-pattern-light);
  background-size: 90px 90px;
}
.ip-mega__promo::after {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-start: -60%;
  z-index: -1;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: rotate(18deg);
  animation: ip-sheen 5s var(--ip-ease) infinite;
}
@keyframes ip-sheen {
  0%, 55% { transform: translateX(0) rotate(18deg); }
  100% { transform: translateX(420%) rotate(18deg); }
}
.ip-mega__promo-badge {
  padding: .2rem .6rem;
  border-radius: var(--ip-radius-pill);
  background: rgba(230, 184, 92, .2);
  color: #f6d993;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ip-mega__promo-title {
  margin: .85rem 0 .35rem;
  font-family: var(--ip-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.ip-mega__promo-text {
  margin: 0 0 1.15rem;
  font-size: .84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .8);
}
.ip-mega__promo .ip-btn {
  margin-top: auto;
}

/* Header actions */
.ip-header__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-inline-start: auto;
}
.ip-search-trigger__label,
.ip-search-trigger__kbd {
  display: none;
}
.ip-search-trigger__kbd {
  padding: .05rem .4rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: 6px;
  background: var(--ip-surface-2);
  color: var(--ip-muted);
  font-family: var(--ip-font-sans);
  font-size: .7rem;
  line-height: 1.4;
  box-shadow: none;
}
.ip-lang__btn {
  height: 36px;
  min-width: 0;
  padding: 0 .6rem;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111827;
  font-size: .95rem;
}
.ip-lang__btn::after {
  content: "";
  border-top: .3em solid;
  border-inline: .3em solid transparent;
  margin-inline-start: .1rem;
}
[data-theme="dark"] .ip-lang__btn,
body.dark .ip-lang__btn {
  background: var(--ip-surface-2);
  color: var(--ip-ink);
}
.ip-lang__code {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
}
/* The theme toggle is the design's sun/moon pill switch. */
.ip-theme-btn {
  position: relative;
  width: 52px;
  min-width: 52px;
  height: 28px;
  padding: 0;
  border-radius: 50px;
  background: #e2e8f0;
  font-size: .78rem;
  overflow: hidden;
}
.ip-theme-btn::before {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .35s var(--ip-spring);
}
.ip-theme-btn:hover {
  background: #d8e0e9;
}
.ip-theme-btn .ip-theme-btn__sun,
.ip-theme-btn .ip-theme-btn__moon {
  position: absolute;
  top: 50%;
  display: block;
  transform: translateY(-50%);
  transition: opacity .25s, transform .35s var(--ip-spring);
}
.ip-theme-btn .ip-theme-btn__sun {
  inset-inline-start: 8px;
  color: #f59e0b;
}
.ip-theme-btn .ip-theme-btn__moon {
  inset-inline-end: 8px;
  color: #64748b;
  opacity: .7;
}
[data-theme="dark"] .ip-theme-btn,
body.dark .ip-theme-btn {
  background: #1e2a30;
}
[data-theme="dark"] .ip-theme-btn::before,
body.dark .ip-theme-btn::before {
  transform: translateX(24px);
  background: #0b141a;
  box-shadow: 0 0 0 1px rgba(230, 184, 92, .35), 0 0 10px rgba(230, 184, 92, .25);
}
[dir="rtl"][data-theme="dark"] .ip-theme-btn::before,
[dir="rtl"] body.dark .ip-theme-btn::before {
  transform: translateX(-24px);
}
[data-theme="dark"] .ip-theme-btn .ip-theme-btn__sun,
body.dark .ip-theme-btn .ip-theme-btn__sun {
  display: block;
  opacity: .5;
  color: #9ca3af;
}
[data-theme="dark"] .ip-theme-btn .ip-theme-btn__moon,
body.dark .ip-theme-btn .ip-theme-btn__moon {
  display: block;
  opacity: 1;
  color: #e6b85c;
}
.ip-cart-link {
  position: relative;
}
.ip-cart-count {
  position: absolute;
  top: 2px;
  inset-inline-end: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ip-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.ip-header__signin,
.ip-header__join {
  display: none;
}
.ip-header__signin,
.ip-header__join {
  min-height: 38px;
  padding: .45rem 1.1rem;
  font-size: .875rem;
}
.ip-header__join {
  font-weight: 700;
}
.ip-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 40px;
  padding-inline: .3rem .8rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: 10px;
  background: var(--ip-surface);
  color: var(--ip-ink);
  font-size: .875rem;
  font-weight: 600;
}
.ip-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f7a63, #2eb872);
  color: #fff;
  font-size: .85rem;
}
.ip-account__name {
  display: none;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ip-dropdown {
  min-width: 13rem;
  padding: .5rem;
  border: 0;
  border-radius: 12px;
  background: var(--ip-surface);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08), 0 0 0 1px var(--ip-line);
  animation: ip-drop .25s var(--ip-ease);
  --bs-dropdown-link-color: var(--ip-ink);
  --bs-dropdown-link-hover-color: var(--ip-primary);
  --bs-dropdown-link-hover-bg: rgba(31, 122, 99, .08);
  --bs-dropdown-link-active-bg: var(--ip-primary);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-divider-bg: var(--ip-line);
}
.ip-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--ip-ink-2);
}
.ip-dropdown .dropdown-item:hover,
.ip-dropdown .dropdown-item:focus {
  background: rgba(31, 122, 99, .08);
  color: var(--ip-primary);
}
.ip-dropdown .dropdown-item i {
  color: var(--ip-muted);
}
.ip-account .dropdown-item {
  justify-content: flex-start;
}
.ip-lang__item.is-current {
  font-weight: 700;
  background: var(--ip-primary);
  color: #fff;
}
.ip-lang__item.is-current i,
.ip-lang__item.is-current:hover i {
  color: #fff;
}
.ip-lang__item.is-current:hover {
  background: var(--ip-primary-hover);
  color: #fff;
}
.ip-lang__item[lang="ar"],
.ip-lang__item[lang="ur"] {
  font-family: var(--ip-font-arabic);
}
.ip-lang__item[lang="ur"],
.ip-lang-pill[lang="ur"],
.ip-footer__langs [lang="ur"] {
  font-family: var(--ip-font-urdu), var(--ip-font-arabic);
}
/* On the other languages' pages the language name "اردو" is often the only Urdu on screen; it is set in
 * Naskh there so those pages never download the Nastaliq file for one word. */
html:not([lang="ur"]) :is(.ip-lang__item, .ip-lang-pill, .ip-footer__langs a)[lang="ur"] {
  font-family: var(--ip-font-arabic);
}
/* On the English, Spanish and French pages the names "العربية" and "اردو" are set from a 6 KB copy of Noto Naskh Arabic
 * holding only their letters (tools/fonts/subset-fonts.py), so those pages do not download the whole Arabic font
 * (90 KB) for two words. Same glyphs; any other letter falls through to the full font. */
@font-face {
  font-family: "Noto Naskh Arabic Names";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/files/notonaskharabic-language-names.woff2") format("woff2");
  unicode-range: U+627-629, U+62F, U+631, U+639, U+644, U+648, U+64A;
}
html:not([lang="ar"]):not([lang="ur"]) :is(.ip-lang__item, .ip-lang-pill, .ip-footer__langs a):is([lang="ar"], [lang="ur"]) {
  font-family: "Noto Naskh Arabic Names", var(--ip-font-arabic);
}

/* ---------- Mobile drawer ---------- */

.ip-drawer {
  --bs-offcanvas-width: min(90vw, 390px);
  background: var(--ip-bg-elevated);
  color: var(--ip-ink);
  border-inline-start: 1px solid var(--ip-line);
}
/* The closed drawer is hidden but would still be laid out with every page (about 550 elements). Its contents skip
 * style and layout until Bootstrap starts opening it (.showing), while it is still off-screen. */
.ip-drawer:not(.showing):not(.show):not(.hiding) > .ip-drawer__body {
  content-visibility: hidden;
}
.ip-drawer__header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--ip-line);
}
.ip-drawer__body {
  padding: 1rem 1.1rem 2rem;
}
.ip-drawer__search {
  position: relative;
  margin-bottom: 1rem;
}
.ip-drawer__search i {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ip-muted);
}
.ip-drawer__search input {
  width: 100%;
  height: 48px;
  padding-inline: 2.6rem 1rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius-pill);
  background: var(--ip-surface);
  color: var(--ip-ink);
  font-size: 1rem;
}
.ip-drawer__nav,
.ip-drawer__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-drawer__nav > li {
  border-bottom: 1px solid var(--ip-line);
}
.ip-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .9rem .25rem;
  color: var(--ip-ink);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.ip-drawer__link::-webkit-details-marker {
  display: none;
}
.ip-drawer__link.is-active {
  color: var(--ip-primary);
}
.ip-drawer__link i {
  color: var(--ip-muted);
  transition: transform .2s var(--ip-ease);
}
.ip-drawer__group[open] > .ip-drawer__link i {
  transform: rotate(180deg);
}
.ip-drawer__sub {
  padding: 0 0 .75rem;
}
.ip-drawer__sub a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .25rem;
  color: var(--ip-ink-2);
  font-size: .95rem;
  text-decoration: none;
  border-radius: var(--ip-radius-sm);
}
.ip-drawer__sub a:hover {
  color: var(--ip-primary);
  background: var(--ip-surface-2);
}
.ip-drawer__section {
  margin-top: 1.25rem;
}
.ip-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ip-drawer__label {
  margin-bottom: .6rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ip-muted);
}
.ip-drawer__actions {
  display: grid;
  gap: .6rem;
  margin-top: 1.5rem;
}
.ip-lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-lang-pill {
  display: inline-block;
  padding: .4rem .85rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius-pill);
  color: var(--ip-ink-2);
  font-size: .92rem;
  text-decoration: none;
}
.ip-lang-pill.is-current {
  border-color: var(--ip-primary);
  background: var(--ip-primary);
  color: var(--ip-primary-ink);
  font-weight: 600;
}

/* Theme switch in the drawer */
.ip-switch {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ip-ink-2);
  font-size: .9rem;
  font-weight: 600;
}
.ip-switch__track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: var(--ip-surface-3);
  transition: background-color .2s;
}
.ip-switch__thumb {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--ip-shadow-sm);
  transition: inset-inline-start .2s var(--ip-ease);
}
.ip-switch[aria-pressed="true"] .ip-switch__track {
  background: var(--ip-primary);
}
.ip-switch[aria-pressed="true"] .ip-switch__thumb {
  inset-inline-start: 23px;
}
.ip-switch__label--dark,
.ip-switch[aria-pressed="true"] .ip-switch__label--light {
  display: none;
}
.ip-switch[aria-pressed="true"] .ip-switch__label--dark {
  display: inline;
}

/* ---------- Search dialog ---------- */

.ip-search {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 1rem 1rem;
}
.ip-search[hidden] {
  display: none;
}
.ip-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 24, 18, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: ip-fade .2s var(--ip-ease);
}
.ip-search__panel {
  position: relative;
  width: min(720px, 100%);
  padding: 1rem;
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius-xl);
  background: var(--ip-bg-elevated);
  box-shadow: var(--ip-shadow-lg);
  animation: ip-rise .25s var(--ip-ease);
}
@keyframes ip-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ip-rise {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.ip-search__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ip-search__icon {
  position: absolute;
  inset-inline-start: 1.1rem;
  font-size: 1.2rem;
  color: var(--ip-primary);
}
.ip-search__input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding-inline: 3rem 1rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius-lg);
  background: var(--ip-surface);
  color: var(--ip-ink);
  font-size: 1.15rem;
}
.ip-search__input:focus {
  outline: none;
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 4px var(--ip-primary-soft);
}
.ip-search__examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  padding: .9rem .25rem .2rem;
  font-size: .85rem;
  color: var(--ip-muted);
}

/* ---------- Notice and breadcrumbs ---------- */

.ip-notice {
  background: var(--ip-gold-50);
  border-bottom: 1px solid var(--ip-gold-200);
  color: #6b4100;
  font-size: .92rem;
}
[data-theme="dark"] .ip-notice,
body.dark .ip-notice {
  background: rgba(255, 197, 107, .1);
  border-color: rgba(255, 197, 107, .25);
  color: #ffdca3;
}
.ip-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .75rem;
  padding-block: .7rem;
}
.ip-notice a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}

.ip-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  margin: 0 auto;
  padding-block: .85rem;
  list-style: none;
  font-size: .85rem;
  color: var(--ip-muted);
}
.ip-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.ip-crumbs li + li::before {
  content: "/";
  color: var(--ip-line-strong);
}
.ip-crumbs a {
  color: var(--ip-ink-2);
  text-decoration: none;
}
.ip-crumbs a:hover {
  color: var(--ip-primary);
  text-decoration: underline;
}
.ip-crumbs [aria-current="page"] {
  color: var(--ip-ink);
  font-weight: 600;
}

/* ---------- Footer: the design's white card with the lattice in its corner, copyright beneath ---------- */

.ip-footer {
  position: relative;
  margin-top: 1.5rem;
  padding: 0 0 .5rem;
  color: var(--ip-ink-2);
  font-size: .875rem;
}
.ip-footer__box {
  position: relative;
  padding: 1.6rem 1.6rem 1.25rem;
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius-lg);
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-sm);
  overflow: hidden;
  isolation: isolate;
}
/* The design's lattice tucked into the top corner, fading out towards the text. */
.ip-footer__box::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  inset-inline-end: 0;
  width: min(360px, 40%);
  height: 100%;
  background: url("../images/fot-bg.png") top right / contain no-repeat;
  /* AVIF/WebP copies from tools/images (Part 48); browsers without image-set() keep the PNG above. */
  background-image: image-set(url("../images/fot-bg-174w.avif") type("image/avif"), url("../images/fot-bg-174w.webp") type("image/webp"), url("../images/fot-bg.png") type("image/png"));
  opacity: .55;
  -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 75%);
  mask-image: linear-gradient(200deg, #000 20%, transparent 75%);
}
[dir="rtl"] .ip-footer__box::before {
  transform: scaleX(-1);
}
[data-theme="dark"] .ip-footer__box::before,
body.dark .ip-footer__box::before {
  background-image: url("../images/fot-bg-dark.png");
  background-image: image-set(url("../images/fot-bg-dark-174w.avif") type("image/avif"), url("../images/fot-bg-dark-174w.webp") type("image/webp"), url("../images/fot-bg-dark.png") type("image/png"));
  opacity: .4;
}
.ip-footer__ornament {
  display: none;
}
.ip-footer a {
  color: var(--ip-ink);
  text-decoration: none;
  transition: color .25s, padding .25s;
}
.ip-footer a:hover {
  color: var(--ip-primary);
}
.ip-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}
.ip-brand--footer {
  gap: 0;
}
.ip-brand--footer .ip-brand__mark,
.ip-brand--footer .ip-brand__mark img {
  width: 92px;
  height: 92px;
}
.ip-brand--footer .ip-brand__name {
  font-size: 1.5rem;
  line-height: 1.15;
  white-space: normal;
}
.ip-footer__about {
  max-width: 22rem;
  margin: .5rem 0 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ip-ink-2);
}
.ip-footer__social {
  display: flex;
  gap: .5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.ip-footer__social a {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #dde2e6;
  border-radius: 50%;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-sm);
  font-size: .9rem;
  transition: color .25s, transform .25s var(--ip-spring), border-color .25s;
}
.ip-footer__social a:hover {
  color: var(--ip-primary);
  border-color: var(--ip-primary);
  transform: translateY(-2px);
}
[data-theme="dark"] .ip-footer__social a,
body.dark .ip-footer__social a {
  border-color: var(--ip-line-strong);
}
.ip-footer__title {
  margin: 0 0 .65rem;
  font-family: var(--ip-font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ip-ink);
}
.ip-footer__col ul {
  display: grid;
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-footer__col a:hover {
  padding-inline-start: 5px;
}
.ip-footer__news p {
  margin-bottom: .6rem;
  line-height: 1.55;
  color: var(--ip-ink-2);
}
.ip-subscribe {
  display: flex;
  border: 1px solid var(--ip-line-strong);
  border-radius: 10px;
  background: var(--ip-surface);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ip-subscribe input {
  flex: 1;
  width: 0; /* otherwise the input's intrinsic width (wide in Arabic and Urdu fonts) widens the footer on phones */
  min-width: 0;
  padding-inline: .85rem;
  border: 0;
  background: transparent;
  color: var(--ip-ink);
  font-size: .875rem;
}
.ip-subscribe input::placeholder {
  color: var(--ip-muted);
}
.ip-subscribe input:focus {
  outline: none;
}
.ip-subscribe:focus-within {
  border-color: var(--ip-primary);
  box-shadow: 0 0 0 .2rem rgba(31, 122, 99, .18);
}
.ip-subscribe .ip-btn {
  min-height: 40px;
  border-radius: 0;
}
.ip-subscribe__note {
  margin-top: .5rem;
  font-size: .82rem !important;
  color: var(--ip-muted);
}
.ip-subscribe__note.text-success {
  color: var(--ip-success) !important;
}
.ip-subscribe__note.text-danger {
  color: var(--ip-danger) !important;
}
.ip-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1.25rem;
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--ip-muted);
  text-align: center;
}
.ip-footer__bottom p {
  color: var(--ip-muted);
}
.ip-footer__langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-footer__langs a {
  color: var(--ip-muted);
}
.ip-footer__langs a.is-current {
  color: var(--ip-primary);
  font-weight: 600;
}

/* Back to top */
#goTopBtn.ip-top-btn {
  position: fixed;
  inset-inline-end: 1.5rem;
  bottom: 1.5rem;
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ip-primary);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(31, 122, 99, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ip-ease), visibility .3s, background-color .2s;
}
#goTopBtn.ip-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#goTopBtn.ip-top-btn:hover {
  background: var(--ip-primary-hover);
  transform: translateY(-4px);
}

/* ---------- Breakpoints ---------- */

@media (min-width: 576px) {
  .ip-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ip-footer__brand,
  .ip-footer__news {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .ip-header__signin,
  .ip-header__join {
    display: inline-flex;
  }
  .ip-account__name {
    display: inline;
  }
  .ip-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .ip-nav {
    display: block;
  }
  .ip-menu-btn {
    display: none;
  }
  .ip-footer__grid {
    grid-template-columns: 1.35fr repeat(var(--ip-footer-cols, 3), minmax(0, .8fr)) 1.6fr;
    gap: 2rem;
  }
  .ip-footer__brand,
  .ip-footer__news {
    grid-column: auto;
  }
}

/* The menu areas, the language switcher, search, theme, Sign in and Join share one row: the bar is a little wider
 * than the page container, and wider still on large screens so the brand name keeps its single line there. */
@media (min-width: 1200px) {
  .ip-header__bar.container-xxl {
    max-width: 1460px;
    padding-inline: 1.5rem;
  }
  .ip-nav__list {
    gap: 0;
  }
  .ip-nav__link {
    padding-inline: .6rem;
    font-size: .86rem;
  }
}
/* The brand name never disappears. Where the menu leaves room (measured from 1200 to 1760: English from 1366,
 * Arabic and Urdu from 1280, Spanish from 1440 to 1599) it sits on one line; elsewhere, and whenever site.js marks
 * the bar .ip-header--tight because an administrator's labels still do not fit, it stacks on two short lines. */
.ip-header__join-short {
  display: none;
}
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .ip-brand:not(.ip-brand--footer) .ip-brand__name {
    font-size: 1.2rem;
    letter-spacing: .045em;
  }
  html:not([lang="en"]) .ip-brand:not(.ip-brand--footer) .ip-brand__name {
    white-space: normal;
    width: min-content;
    font-size: .96rem;
    letter-spacing: .08em;
    line-height: 1.04;
  }
}
@media (min-width: 1200px) and (max-width: 1279.98px) {
  .ip-nav__link {
    padding-inline: .5rem;
  }
}
@media (min-width: 1200px) and (max-width: 1365.98px) {
  .ip-brand:not(.ip-brand--footer) .ip-brand__name {
    white-space: normal;
    width: min-content;
    font-size: .96rem;
    letter-spacing: .08em;
    line-height: 1.04;
  }
}
@media (min-width: 1600px) and (max-width: 1759.98px) {
  html:is([lang="es"], [lang="fr"]) .ip-brand:not(.ip-brand--footer) .ip-brand__name {
    white-space: normal;
    width: min-content;
    font-size: .96rem;
    letter-spacing: .08em;
    line-height: 1.04;
  }
}
@media (min-width: 1366px) and (max-width: 1599.98px) {
  html:is([lang="ar"], [lang="ur"]) .ip-brand:not(.ip-brand--footer) .ip-brand__name {
    white-space: nowrap;
    width: auto;
    font-size: 1.2rem;
    letter-spacing: .045em;
    line-height: 1.15;
  }
}
@media (min-width: 1440px) and (max-width: 1599.98px) {
  html[lang="es"] .ip-brand:not(.ip-brand--footer) .ip-brand__name {
    white-space: nowrap;
    width: auto;
    font-size: 1.2rem;
    letter-spacing: .045em;
    line-height: 1.15;
  }
}
/* Below 1440px the long "Join free" translations ("S'inscrire gratuitement") use their short form. */
@media (min-width: 768px) and (max-width: 1439.98px) {
  html:not([lang="en"]) .ip-header__join-full {
    display: none;
  }
  html:not([lang="en"]) .ip-header__join-short {
    display: inline;
  }
}
@media (min-width: 1600px) {
  .ip-header__bar.container-xxl {
    max-width: 1760px;
  }
}
/* First step: search keeps only its icon (the shortcut still works), which frees the most room. */
.ip-header--compact .ip-search-trigger__label,
.ip-header--compact .ip-search-trigger__kbd {
  display: none !important;
}
.ip-header--tight .ip-brand:not(.ip-brand--footer) .ip-brand__name {
  white-space: normal !important;
  width: min-content !important;
  font-size: .96rem !important;
  letter-spacing: .08em !important;
  line-height: 1.04 !important;
}
.ip-header--tight .ip-header__join-full {
  display: none !important;
}
.ip-header--tight .ip-header__join-short {
  display: inline !important;
}
.ip-header--tight .ip-nav__link {
  padding-inline: .45rem;
}
.ip-header--tighter .ip-nav__link {
  padding-inline: .32rem;
  font-size: .8rem;
}
.ip-header--tighter .ip-nav__chevron {
  display: none;
}
.ip-header--tighter .ip-header__actions {
  gap: .25rem;
}
/* The last step, for the longest labels with the store's basket in the bar (Spanish and French at 1200-1320px):
 * the language button keeps only its globe and the menu tightens a little more. */
.ip-header--tightest .ip-lang__code,
.ip-header--tightest .ip-lang__btn::after {
  display: none;
}
.ip-header--tightest .ip-nav__link {
  padding-inline: .15rem;
  font-size: .74rem;
}
.ip-header--tightest .ip-header__actions .ip-btn {
  padding-inline: .6rem;
}
/* ...and, so the site's name never has to give way, the bar's gaps close up, the mark settles smaller, "Sign in"
 * becomes a person icon (its words stay for screen readers and as the tooltip) and the theme pill becomes a single
 * round button (the sun or moon it would slide to). */
.ip-header--tightest .ip-header__bar {
  gap: .5rem;
}
.ip-header--tightest .ip-header__actions .ip-header__signin {
  width: 38px;
  padding-inline: 0;
  justify-content: center;
}
.ip-header--tightest .ip-header__signin-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
.ip-header--tightest .ip-header__signin-icon {
  display: inline-block;
  font-size: 1.05rem;
}
.ip-header--tightest .ip-brand__mark,
.ip-header--tightest .ip-brand__mark img {
  width: 40px;
  height: 40px;
}
.ip-header__signin-icon {
  display: none;
}
.ip-header--tightest .ip-theme-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
}
.ip-header--tightest .ip-theme-btn::before {
  display: none;
}
.ip-header--tightest .ip-theme-btn .ip-theme-btn__sun,
.ip-header--tightest .ip-theme-btn .ip-theme-btn__moon {
  inset-inline: 0;
  text-align: center;
}
.ip-header--tightest .ip-theme-btn .ip-theme-btn__moon,
[data-theme="dark"] .ip-header--tightest .ip-theme-btn .ip-theme-btn__sun,
body.dark .ip-header--tightest .ip-theme-btn .ip-theme-btn__sun {
  opacity: 0;
}
[data-theme="dark"] .ip-header--tightest .ip-theme-btn .ip-theme-btn__moon,
body.dark .ip-header--tightest .ip-theme-btn .ip-theme-btn__moon {
  opacity: 1;
}
/* Arabic letters sit small on Inter's em; the menu is set a step larger so it reads at the same size. */
html[lang="ar"] .ip-nav__link {
  font-size: .95rem;
}
html[lang="ar"] .ip-header__actions .ip-btn {
  font-size: .92rem;
}
@media (min-width: 1600px) {
  .ip-nav__link {
    padding-inline: .8rem;
    font-size: .895rem;
  }
  html[lang="ar"] .ip-nav__link {
    font-size: .98rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --ip-header-h: 64px;
  }
  .ip-brand:not(.ip-brand--footer) .ip-brand__mark,
  .ip-brand:not(.ip-brand--footer) .ip-brand__mark img {
    width: 40px;
    height: 40px;
  }
  .ip-brand:not(.ip-brand--footer) .ip-brand__name {
    font-size: 1.12rem;
    letter-spacing: .04em;
  }
  .ip-header__bar {
    gap: .5rem;
  }
  .ip-header .ip-lang,
  .ip-header .ip-theme-btn {
    display: none;
  }
  .ip-body .container-xxl {
    padding-inline: 1rem;
  }
  .ip-footer__box {
    padding: 1.25rem 1.1rem 1rem;
    background-size: auto 40%, auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =====================================================================
 * Shared inner-page components (Lapis & Saffron)
 * ===================================================================== */

/* The design's deep-green hero (Duas library, Quran & Hadith band) for app-like heroes that carry white
 * text: deep green, a gold glow in the corner and the area's own glow below, under a faint "+" lattice. */
.ip-body {
  --ip-jewel:
    var(--ip-plus),
    radial-gradient(900px 420px at 92% -20%, rgba(230, 184, 92, .28), transparent 60%),
    radial-gradient(800px 460px at -10% 120%, color-mix(in srgb, var(--ip-area-2) 34%, transparent), transparent 55%),
    linear-gradient(120deg, #0b3324 0%, #10503a 52%, #1a6b55 100%);
}
.ip-body.dark,
[data-theme="dark"] .ip-body {
  --ip-jewel:
    var(--ip-plus),
    radial-gradient(900px 420px at 92% -20%, rgba(230, 184, 92, .14), transparent 60%),
    radial-gradient(800px 460px at -10% 120%, color-mix(in srgb, var(--ip-area-2) 20%, transparent), transparent 55%),
    linear-gradient(120deg, #04140d 0%, #0a2a1e 55%, #10402f 100%);
}

/* Bootstrap speaks the same language as the tokens. */
.ip-body {
  --bs-primary: #1f7a63;
  --bs-primary-rgb: 31, 122, 99;
  --bs-success: #1f7a63;
  --bs-success-rgb: 31, 122, 99;
  --bs-link-color: var(--ip-link);
  --bs-link-color-rgb: 26, 110, 88;
  --bs-link-hover-color: var(--ip-primary-hover);
  --bs-border-radius: 10px;
  --bs-border-radius-sm: 8px;
  --bs-border-radius-lg: 12px;
  --bs-border-radius-xl: 16px;
  --bs-border-radius-xxl: 20px;
  --bs-body-font-family: var(--ip-font-sans);
  --bs-border-color: var(--ip-line);
  --bs-body-color: var(--ip-ink);
  --bs-emphasis-color: var(--ip-ink);
  --bs-secondary-color: var(--ip-muted);
  --bs-tertiary-bg: var(--ip-surface-2);
  --bs-secondary-bg: var(--ip-surface-2);
}
/* Brand green used to be Bootstrap's "success"; decorative uses follow the area hue now. */
.ip-body .text-success:not(.alert *):not(.is-success) {
  color: var(--ip-area-strong) !important;
}
.ip-body .bg-success-subtle {
  background-color: var(--ip-area-soft) !important;
}
.ip-body .bg-success:not([class*="bg-opacity"]) {
  background-color: var(--ip-area-fill) !important;
}
.ip-body .bg-success[class*="bg-opacity"] {
  background-color: var(--ip-area-soft) !important;
}
/* Bootstrap's pale "subtle" fills are bright in the dark theme unless they are tinted down. */
body.ip-body.dark .bg-primary-subtle { background-color: rgba(109, 140, 255, .14) !important; }
body.ip-body.dark .bg-info-subtle { background-color: rgba(108, 194, 255, .13) !important; }
body.ip-body.dark .bg-warning-subtle { background-color: rgba(255, 197, 107, .13) !important; }
body.ip-body.dark .bg-danger-subtle { background-color: rgba(255, 140, 140, .13) !important; }
body.ip-body.dark .bg-secondary-subtle,
body.ip-body.dark .bg-light { background-color: var(--ip-surface-2) !important; }
/* The guides' pastel chips (style.css) take the same dark tints, so their light text stays readable. */
body.ip-body.dark .bg-blue { background: rgba(109, 140, 255, .14); }
body.ip-body.dark .bg-red { background: rgba(255, 140, 140, .13); }
body.ip-body.dark .bg-orange { background: rgba(255, 197, 107, .13); }
body.ip-body.dark .bg-purple { background: rgba(164, 139, 255, .15); }
body.ip-body.dark .bg-purple-level-2 { background: rgba(164, 139, 255, .22); }
body.ip-body.dark .text-purple { color: #c4b2ff; }
/* Bootstrap's grey secondary text is too faint on tinted cards; use the muted ink that passes AA. */
.ip-body .text-secondary:not(.ip-keep) { color: var(--ip-muted) !important; }
/* A badge that is both a warning fill and warning text, or white with primary text, keeps dark ink. */
.ip-body .bg-warning.text-warning:not([class*="bg-opacity"]) { color: #3d2300 !important; }
body.ip-body.dark .bg-white.text-primary,
body.ip-body.dark .bg-white .text-primary,
body.ip-body.dark .badge.bg-white.text-success { color: var(--ip-lapis-700) !important; }
/* Bootstrap's text colours, tuned to pass 4.5:1 on their own pale fills in both themes. */
.ip-body .text-primary:not(.ip-keep) { color: var(--ip-lapis-700) !important; }
.ip-body .text-danger:not(.ip-keep) { color: #b42318 !important; }
.ip-body .text-info:not(.ip-keep) { color: #0b6e86 !important; }
body.ip-body.dark .text-primary:not(.ip-keep) { color: #9cb1ff !important; }
body.ip-body.dark .text-danger:not(.ip-keep) { color: #ff9b9b !important; }
body.ip-body.dark .text-info:not(.ip-keep) { color: #8fd0ff !important; }
.ip-body .badge.bg-warning, .ip-body .bg-warning { color: #3d2300 !important; }
body.ip-body.dark .text-primary-theme { color: var(--ip-area-strong) !important; }
/* Guide topic tiles carry pale fills that the dark theme cannot keep under light text. */
body.ip-body.dark .overviewCard,
body.ip-body.dark .card-tab-whatIslam { background-color: var(--ip-surface-2) !important; border-color: var(--ip-line) !important; }
/* Bootstrap's warning yellow is unreadable as text on white; use the saffron that passes. */
.ip-body .text-warning:not(.ip-keep) { color: var(--ip-saffron-700) !important; }
body.ip-body.dark .text-warning:not(.ip-keep) { color: #ffcf85 !important; }
/* Category badges take an administrator's colour; the text is that colour deepened (lightened in the
 * dark theme) so it stays readable on its own tint. */
.ip-body .dua-badge { color: color-mix(in srgb, var(--dua-color, var(--ip-area-strong)) 62%, #1b1f2e); }
body.ip-body.dark .dua-badge { color: color-mix(in srgb, var(--dua-color, var(--ip-area-strong)) 45%, #ffffff); background: color-mix(in srgb, var(--dua-color, var(--ip-area)) 18%, transparent); }
.ip-body .border-success {
  border-color: var(--ip-area) !important;
}
.ip-body .btn-primary {
  --bs-btn-bg: var(--ip-primary);
  --bs-btn-border-color: var(--ip-primary);
  --bs-btn-hover-bg: var(--ip-primary-hover);
  --bs-btn-hover-border-color: var(--ip-primary-hover);
  --bs-btn-active-bg: var(--ip-primary-hover);
  --bs-btn-color: var(--ip-primary-ink);
  --bs-btn-hover-color: var(--ip-primary-ink);
}
.ip-body .btn-outline-success,
.ip-body .btn-outline-primary {
  --bs-btn-color: var(--ip-area-strong);
  --bs-btn-border-color: color-mix(in srgb, var(--ip-area) 55%, transparent);
  --bs-btn-hover-bg: var(--ip-area-fill);
  --bs-btn-hover-border-color: var(--ip-area-fill);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ip-area-fill);
  --bs-btn-active-border-color: var(--ip-area-fill);
  --bs-btn-active-color: #fff;
}
.ip-body .btn-success,
.ip-body .btn-primary,
.ip-body .btn-outline-success,
.ip-body .btn-outline-primary,
.ip-body .btn-outline-secondary,
.ip-body .btn-light {
  border-radius: var(--ip-radius-btn);
  font-weight: 600;
  transition: background-color .2s var(--ip-ease), color .2s var(--ip-ease), border-color .2s var(--ip-ease), transform .2s var(--ip-ease), box-shadow .2s var(--ip-ease);
}
.ip-body .btn-success:hover,
.ip-body .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(31, 122, 99, .7);
}
.ip-body .btn-outline-secondary {
  --bs-btn-color: var(--ip-ink-2);
  --bs-btn-border-color: var(--ip-line-strong);
  --bs-btn-hover-bg: var(--ip-surface-2);
  --bs-btn-hover-border-color: var(--ip-line-strong);
  --bs-btn-hover-color: var(--ip-ink);
  --bs-btn-active-bg: var(--ip-surface-3);
  --bs-btn-active-color: var(--ip-ink);
}
.ip-body .form-control,
.ip-body .form-select {
  border-color: var(--ip-line-strong);
  border-radius: 12px;
  background-color: var(--ip-surface);
  color: var(--ip-ink);
  transition: border-color .2s var(--ip-ease), box-shadow .2s var(--ip-ease);
}
.ip-body .form-control::placeholder {
  color: color-mix(in srgb, var(--ip-muted) 85%, transparent);
}
.ip-body .form-control:hover,
.ip-body .form-select:hover {
  border-color: color-mix(in srgb, var(--ip-area) 45%, var(--ip-line-strong));
}
.ip-body .form-control:focus,
.ip-body .form-select:focus {
  border-color: var(--ip-area);
  box-shadow: 0 0 0 4px var(--ip-area-soft);
}
.ip-body .form-check-input:checked {
  background-color: var(--ip-area-fill);
  border-color: var(--ip-area-fill);
}
.ip-body .form-check-input:focus {
  border-color: var(--ip-area);
  box-shadow: 0 0 0 4px var(--ip-area-soft);
}
.ip-body .form-label {
  font-weight: 600;
  color: var(--ip-ink-2);
}
.ip-body .nav-pills {
  --bs-nav-pills-link-active-bg: var(--ip-area-fill);
  --bs-nav-pills-border-radius: var(--ip-radius-pill);
  --bs-nav-link-color: var(--ip-ink-2);
  --bs-nav-link-hover-color: var(--ip-area-strong);
}
.ip-body .pagination {
  --bs-pagination-color: var(--ip-ink-2);
  --bs-pagination-bg: var(--ip-surface);
  --bs-pagination-border-color: var(--ip-line);
  --bs-pagination-hover-color: var(--ip-area-strong);
  --bs-pagination-hover-bg: var(--ip-area-soft);
  --bs-pagination-hover-border-color: var(--ip-line);
  --bs-pagination-focus-box-shadow: 0 0 0 4px var(--ip-area-soft);
  --bs-pagination-active-bg: var(--ip-area-fill);
  --bs-pagination-active-border-color: var(--ip-area-fill);
  --bs-pagination-disabled-bg: var(--ip-surface-2);
  --bs-pagination-disabled-color: var(--ip-muted);
  gap: .35rem;
}
.ip-body .pagination .page-link {
  min-width: 40px;
  border-radius: var(--ip-radius-pill) !important;
  text-align: center;
  font-weight: 600;
}
.ip-body .card {
  --bs-card-border-color: var(--ip-line);
  --bs-card-border-radius: var(--ip-radius-lg);
  --bs-card-bg: var(--ip-surface);
  --bs-card-color: var(--ip-ink);
}
.ip-body .breadcrumb {
  --bs-breadcrumb-divider-color: var(--ip-line-strong);
  --bs-breadcrumb-item-active-color: var(--ip-ink);
}
.ip-body .rounded-4 {
  border-radius: var(--ip-radius-lg) !important;
}
.ip-body .shadow-sm {
  box-shadow: var(--ip-shadow-sm) !important;
}
.ip-body .bg-white-ip {
  background-color: var(--ip-surface);
}
.ip-body .accordion {
  --bs-accordion-bg: var(--ip-surface);
  --bs-accordion-border-color: var(--ip-line);
  --bs-accordion-active-bg: var(--ip-area-soft);
  --bs-accordion-active-color: var(--ip-area-strong);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 4px var(--ip-area-soft);
  --bs-accordion-border-radius: var(--ip-radius-lg);
  --bs-accordion-inner-border-radius: calc(var(--ip-radius-lg) - 1px);
}

/* ---------- Page hero: light, airy, tinted with the area hue ---------- */
.ip-pagehero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
  color: var(--ip-ink);
  background:
    radial-gradient(55% 120% at 100% 0%, var(--ip-area-tint), transparent 62%),
    radial-gradient(45% 90% at 0% 100%, color-mix(in srgb, var(--ip-area-2) 13%, transparent), transparent 65%),
    linear-gradient(180deg, var(--ip-area-soft) 0%, var(--ip-bg) 100%);
  border-bottom: 1px solid var(--ip-line);
}
.ip-pagehero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ip-girih);
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  opacity: .9;
}
[dir="rtl"] .ip-pagehero::before {
  -webkit-mask-image: linear-gradient(-100deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(-100deg, transparent 30%, #000 85%);
}
/* A large eight-point star drawn in the area hue, quietly, at the end of the hero. */
.ip-pagehero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: clamp(-140px, -6vw, -40px);
  top: 50%;
  width: clamp(240px, 30vw, 420px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--ip-area), var(--ip-area-2));
  opacity: .16;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M100 8l26 66 66 26-66 26-26 66-26-66-66-26 66-26z'/%3E%3Cpath d='M35 35l65 27 65-27-27 65 27 65-65-27-65 27 27-65z'/%3E%3Ccircle cx='100' cy='100' r='22'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='92' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M100 8l26 66 66 26-66 26-26 66-26-66-66-26 66-26z'/%3E%3Cpath d='M35 35l65 27 65-27-27 65 27 65-65-27-65 27 27-65z'/%3E%3Ccircle cx='100' cy='100' r='22'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='92' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: ip-star-turn 160s linear infinite;
  pointer-events: none;
}
@keyframes ip-star-turn {
  to { transform: translateY(-50%) rotate(360deg); }
}
[data-theme="dark"] .ip-pagehero,
body.dark .ip-pagehero {
  background:
    radial-gradient(55% 120% at 100% 0%, var(--ip-area-tint), transparent 62%),
    radial-gradient(45% 90% at 0% 100%, color-mix(in srgb, var(--ip-area-2) 12%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--ip-area) 10%, var(--ip-bg)) 0%, var(--ip-bg) 100%);
}
[data-theme="dark"] .ip-pagehero::after,
body.dark .ip-pagehero::after {
  opacity: .22;
}
.ip-pagehero--compact {
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.85rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.ip-pagehero--compact .ip-pagehero__title {
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.7rem);
}
.ip-pagehero--compact::after {
  width: clamp(200px, 22vw, 320px);
}
.ip-pagehero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}
.ip-pagehero--center .ip-pagehero__inner {
  justify-items: center;
  text-align: center;
}
.ip-pagehero--center .ip-pagehero__inner > * {
  width: 100%;
  max-width: 54rem;
  min-width: 0;
}
.ip-pagehero--center .ip-pagehero__crumbs {
  justify-content: center;
}
.ip-pagehero--center .ip-pagehero__lead {
  margin-inline: auto;
}
.ip-pagehero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--ip-muted);
}
.ip-pagehero__crumbs li + li::before {
  content: "/";
  margin-inline-end: .5rem;
  color: var(--ip-line-strong);
}
.ip-pagehero__crumbs a {
  color: var(--ip-ink-2);
  text-decoration: none;
}
.ip-pagehero__crumbs a:hover {
  color: var(--ip-area-strong);
  text-decoration: underline;
}
.ip-pagehero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
}
.ip-pagehero__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--ip-area), var(--ip-area-fill));
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--ip-area-fill) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: rotate(-4deg);
}
.ip-pagehero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem;
  border: 1px solid color-mix(in srgb, var(--ip-area) 30%, transparent);
  border-radius: var(--ip-radius-pill);
  background: color-mix(in srgb, var(--ip-surface) 70%, transparent);
  color: var(--ip-area-strong);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html[lang="ar"] .ip-pagehero__eyebrow,
html[lang="ur"] .ip-pagehero__eyebrow {
  letter-spacing: 0;
  font-size: .9rem;
}
.ip-pagehero__title {
  margin: 0 0 .6rem;
  font-family: var(--ip-font-display);
  font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ip-ink);
  text-wrap: balance;
}
html[lang="ar"] .ip-pagehero__title { font-family: var(--ip-font-arabic); font-weight: 700; line-height: 1.45; letter-spacing: 0; }
html[lang="ur"] .ip-pagehero__title { font-family: var(--ip-font-urdu); line-height: 1.9; letter-spacing: 0; font-size: clamp(1.7rem, 1.25rem + 2vw, 2.6rem); }
.ip-pagehero__title-ar {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--ip-font-quran);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ip-area-strong);
  letter-spacing: 0;
}
.ip-pagehero__lead {
  max-width: 44rem;
  margin: 0;
  font-size: var(--ip-text-lg);
  line-height: 1.65;
  color: var(--ip-ink-2);
  text-wrap: pretty;
}
.ip-pagehero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.ip-pagehero--center .ip-pagehero__actions,
.ip-pagehero--center .ip-pagehero__chips {
  justify-content: center;
}
.ip-pagehero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.ip-pagehero__chips .ip-chip {
  background: color-mix(in srgb, var(--ip-surface) 75%, transparent);
}
.ip-pagehero__chips .ip-chip:hover,
.ip-chip--area:hover {
  border-color: var(--ip-area);
  color: var(--ip-area-strong);
}
/* Search field inside a hero */
.ip-hero-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(40rem, 100%);
  margin-top: 1.5rem;
  padding: .35rem;
  padding-inline-start: 3rem;
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius-pill);
  background: var(--ip-surface);
  box-shadow: 0 22px 40px -26px rgba(20, 30, 80, .45), 0 0 0 6px color-mix(in srgb, var(--ip-area) 8%, transparent);
  transition: box-shadow .25s var(--ip-ease), border-color .25s var(--ip-ease);
}
.ip-hero-search:focus-within {
  border-color: var(--ip-area);
  box-shadow: 0 22px 40px -26px rgba(20, 30, 80, .45), 0 0 0 6px color-mix(in srgb, var(--ip-area) 22%, transparent);
}
.ip-hero-search > i {
  position: absolute;
  inset-inline-start: 1.15rem;
  font-size: 1.15rem;
  color: var(--ip-area-strong);
}
.ip-hero-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--ip-ink);
  font-size: 1.02rem;
}
.ip-hero-search input:focus {
  outline: none;
}
.ip-hero-search input::placeholder {
  color: var(--ip-muted);
}
.ip-hero-search .ip-btn {
  min-height: 46px;
}
/* Glass stat tiles beside a hero */
.ip-pagehero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-pagehero__stat {
  display: grid;
  gap: .1rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--ip-surface) 60%, var(--ip-line));
  border-radius: var(--ip-radius-lg);
  background: color-mix(in srgb, var(--ip-surface) 72%, transparent);
  box-shadow: var(--ip-shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ip-pagehero__stat strong {
  font-family: var(--ip-font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ip-ink);
  font-variant-numeric: tabular-nums;
}
.ip-pagehero__stat span {
  font-size: .82rem;
  color: var(--ip-muted);
}
.ip-pagehero__stat i {
  color: var(--ip-area-strong);
  font-size: 1.1rem;
}
@media (min-width: 992px) {
  .ip-pagehero--split .ip-pagehero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    gap: 3rem;
  }
}
@media (max-width: 575.98px) {
  .ip-pagehero::after {
    width: 220px;
    inset-inline-end: -90px;
    top: 30%;
    opacity: .12;
  }
  .ip-hero-search {
    padding-inline-start: 2.6rem;
  }
  .ip-hero-search > i {
    inset-inline-start: .95rem;
  }
}


/* The older inner pages share .inner_hero (and .islamicBread breadcrumbs); they get the page-hero look. */
body.ip-body :is(.inner_hero, .hd-hero, .lp-hero) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ip-ink);
  background:
    radial-gradient(55% 120% at 100% 0%, var(--ip-area-tint), transparent 62%),
    radial-gradient(45% 90% at 0% 100%, color-mix(in srgb, var(--ip-area-2) 13%, transparent), transparent 65%),
    linear-gradient(180deg, var(--ip-area-soft) 0%, var(--ip-bg) 100%);
  border-bottom: 1px solid var(--ip-line);
}
body.ip-body.dark :is(.inner_hero, .hd-hero, .lp-hero),
[data-theme="dark"] body.ip-body :is(.inner_hero, .hd-hero, .lp-hero) {
  background:
    radial-gradient(55% 120% at 100% 0%, var(--ip-area-tint), transparent 62%),
    radial-gradient(45% 90% at 0% 100%, color-mix(in srgb, var(--ip-area-2) 12%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--ip-area) 10%, var(--ip-bg)) 0%, var(--ip-bg) 100%);
}
body.ip-body :is(.inner_hero, .hd-hero, .lp-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ip-girih);
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
body.ip-body :is(.inner_hero, .hd-hero, .lp-hero)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: clamp(-140px, -6vw, -40px);
  top: 50%;
  width: clamp(220px, 26vw, 360px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--ip-area), var(--ip-area-2));
  opacity: .15;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M100 8l26 66 66 26-66 26-26 66-26-66-66-26 66-26z'/%3E%3Cpath d='M35 35l65 27 65-27-27 65 27 65-65-27-65 27 27-65z'/%3E%3Ccircle cx='100' cy='100' r='22'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='92' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M100 8l26 66 66 26-66 26-26 66-26-66-66-26 66-26z'/%3E%3Cpath d='M35 35l65 27 65-27-27 65 27 65-65-27-65 27 27-65z'/%3E%3Ccircle cx='100' cy='100' r='22'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='92' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
body.ip-body :is(.inner_hero, .hd-hero, .lp-hero) h1 {
  font-family: var(--ip-font-display);
  font-weight: 600 !important;
  letter-spacing: -.02em;
  color: var(--ip-ink);
  text-wrap: balance;
}
html[lang="ar"] body.ip-body :is(.inner_hero, .hd-hero, .lp-hero) h1 { font-family: var(--ip-font-arabic); font-weight: 700 !important; letter-spacing: 0; }
html[lang="ur"] body.ip-body :is(.inner_hero, .hd-hero, .lp-hero) h1 { font-family: var(--ip-font-urdu); letter-spacing: 0; line-height: 1.9; }
body.ip-body :is(.inner_hero, .hd-hero, .lp-hero) p,
body.ip-body.dark :is(.inner_hero, .hd-hero, .lp-hero) p {
  color: var(--ip-ink-2);
}
body.ip-body .inner_hero .badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem !important;
  border: 1px solid color-mix(in srgb, var(--ip-area) 30%, transparent);
  border-radius: var(--ip-radius-pill);
  background: color-mix(in srgb, var(--ip-surface) 72%, transparent) !important;
  color: var(--ip-area-strong) !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[lang="ar"] body.ip-body .inner_hero .badge,
html[lang="ur"] body.ip-body .inner_hero .badge { letter-spacing: 0; font-size: .9rem !important; }
.islamicBread .breadcrumb-item a,
body.dark .islamicBread .breadcrumb-item a { color: var(--ip-ink-2); }
.islamicBread .breadcrumb-item a:hover { color: var(--ip-area-strong); text-decoration: underline; }
.islamicBread .breadcrumb-item.active { color: var(--ip-ink); font-weight: 600; }
.islamicBread .breadcrumb-item + .breadcrumb-item::before { color: var(--ip-line-strong); }
/* Breadcrumbs that sit on a jewel hero stay light. */
:is(.kit-hero, .ps-hero, .lf-hero-banner, .dua-hero, .dmd-hero, .ips-hero) .islamicBread .breadcrumb-item a,
:is(.kit-hero, .ps-hero, .lf-hero-banner, .dua-hero, .dmd-hero, .ips-hero) .islamicBread .breadcrumb-item { color: rgba(255, 255, 255, .85); }
:is(.kit-hero, .ps-hero, .lf-hero-banner, .dua-hero, .dmd-hero, .ips-hero) .islamicBread .breadcrumb-item a:hover { color: #fff; }
:is(.kit-hero, .ps-hero, .lf-hero-banner, .dua-hero, .dmd-hero, .ips-hero) .islamicBread .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }
/* ---------- Section heading used on inner pages ---------- */
.ip-sechead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.ip-sechead__title {
  margin: 0;
  font-family: var(--ip-font-display);
  font-size: var(--ip-text-2xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ip-ink);
}
html[lang="ar"] .ip-sechead__title { font-family: var(--ip-font-arabic); font-weight: 700; }
html[lang="ur"] .ip-sechead__title { font-family: var(--ip-font-urdu); line-height: 1.9; }
.ip-sechead__lead {
  margin: .35rem 0 0;
  color: var(--ip-muted);
}

/* ---------- Skeleton loader ---------- */
.ip-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--ip-radius);
  background: var(--ip-surface-2);
}
.ip-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ip-surface) 70%, transparent), transparent);
  animation: ip-shimmer 1.4s ease-in-out infinite;
}
@keyframes ip-shimmer {
  to { transform: translateX(100%); }
}

/* ---------- Empty state ---------- */
.ip-empty {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 1.5rem;
  border: 1px dashed var(--ip-line-strong);
  border-radius: var(--ip-radius-xl);
  background:
    radial-gradient(60% 70% at 50% 0%, var(--ip-area-soft), transparent 70%),
    var(--ip-surface);
  text-align: center;
  color: var(--ip-muted);
}
.ip-empty__art {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: .5rem;
  border-radius: 22px;
  background: var(--ip-area-soft);
  color: var(--ip-area-strong);
  font-size: 2rem;
  transform: rotate(-6deg);
}
.ip-empty__title {
  margin: 0;
  font-family: var(--ip-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ip-ink);
}
.ip-empty p {
  max-width: 30rem;
  margin: 0;
}

/* Interactive cards lift a little on hover (keyboard focus too). */
.ip-lift {
  transition: transform .25s var(--ip-ease), box-shadow .25s var(--ip-ease), border-color .25s var(--ip-ease);
}
.ip-lift:hover,
.ip-lift:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--ip-shadow-md);
  border-color: color-mix(in srgb, var(--ip-area) 40%, var(--ip-line)) !important;
}
/* ---------- Not found ---------- */

.ip-lost {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.ip-lost__card {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius-xl);
  background: radial-gradient(70% 50% at 50% 0%, var(--ip-primary-soft), transparent 70%), var(--ip-surface);
  box-shadow: var(--ip-shadow-md);
  text-align: center;
}
.ip-lost__art {
  width: 96px;
  height: 96px;
  color: var(--ip-accent);
  animation: hp-spin 40s linear infinite;
}
@keyframes hp-spin {
  to { transform: rotate(360deg); }
}
.ip-lost__code {
  margin: .75rem 0 0;
  font-family: var(--ip-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--ip-accent-strong);
}
.ip-lost__title {
  margin: .4rem 0 .6rem;
  font-family: var(--ip-font-display);
  font-size: var(--ip-text-3xl);
  font-weight: 600;
  color: var(--ip-ink);
}
html[lang="ar"] .ip-lost__title { font-family: var(--ip-font-arabic); }
html[lang="ur"] .ip-lost__title { font-family: var(--ip-font-urdu); line-height: 2; font-size: var(--ip-text-2xl); }
.ip-lost__text {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  color: var(--ip-muted);
  line-height: 1.6;
}
.ip-lost__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem;
  padding-inline-start: 2.6rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius-pill);
  background: var(--ip-bg-elevated);
}
.ip-lost__search i {
  position: absolute;
  inset-inline-start: 1rem;
  color: var(--ip-primary);
}
.ip-lost__search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ip-ink);
}
.ip-lost__search input:focus {
  outline: none;
}
.ip-lost__search:focus-within {
  border-color: var(--ip-primary);
}
.ip-lost__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
body.dark .ip-lost__text { color: var(--ip-muted); }
body.dark .ip-lost__code { color: var(--ip-accent-strong); }

/* The legacy dark theme colours every p, h1, h5 and h6 (dark.css); the shell's own text keeps its tokens. */
body.dark .ip-mega__heading { color: var(--ip-muted); }
body.dark .ip-mega__promo-title { color: #fff; }
body.dark .ip-mega__promo-text { color: rgba(255, 255, 255, .82); }
body.dark .ip-drawer__label { color: var(--ip-muted); }
body.dark .ip-footer__about,
body.dark .ip-footer__news p { color: var(--ip-ink-2); }
body.dark .ip-footer__bottom p { color: var(--ip-muted); }

@media print {
  .ip-header,
  .ip-footer,
  .ip-drawer,
  .ip-search,
  #goTopBtn {
    display: none !important;
  }
}

/* ---------- Page-to-page transitions (View Transitions API, where supported) ----------
 * The header stays put while the page content cross-fades and rises a little. Browsers without the API,
 * and visitors who prefer reduced motion, simply navigate. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  .ip-header {
    view-transition-name: ip-header;
  }
  main#main {
    view-transition-name: ip-main;
  }
  ::view-transition-old(ip-main) {
    animation: ip-vt-out .18s var(--ip-ease) both;
  }
  ::view-transition-new(ip-main) {
    animation: ip-vt-in .32s var(--ip-ease) both;
  }
  ::view-transition-group(ip-header) {
    animation: none;
  }
}
@keyframes ip-vt-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes ip-vt-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* =====================================================================
 * Shell polish: a page that fills the window, reading progress in the header's brand line, the back-to-top
 * ring, live previews in the mega-menus, the search palette, the theme reveal, footer details and print.
 * ===================================================================== */

/* The page always fills the window, so content a page draws after loading (a quiz, a saved list) grows into
 * room that is already there instead of pushing a visible footer down. */
main#main {
  min-height: calc(100vh - var(--ip-header-h));
  min-height: calc(100svh - var(--ip-header-h));
}
main#main:focus {
  outline: none;
}
/* Fold-out headings are full-height tap targets (WCAG 2.2, 24px). */
main details > summary {
  min-height: 24px;
}

/* ---------- Reading progress: on long pages the header's green-to-gold line fills as you read ---------- */
.ip-progress {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  z-index: 1;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ip-ease);
}
.ip-header.has-progress .ip-progress {
  opacity: 1;
}
.ip-header.has-progress::after {
  opacity: .22;
}
.ip-progress__bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #16624f 0%, #2eb872 60%, #e6b85c 100%);
  transform: translateX(calc((var(--ip-read, 0) - 1) * 100%));
  will-change: transform;
}
[dir="rtl"] .ip-progress__bar {
  background: linear-gradient(-90deg, #16624f 0%, #2eb872 60%, #e6b85c 100%);
  transform: translateX(calc((1 - var(--ip-read, 0)) * 100%));
}
.ip-progress__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 0;
  width: 18px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff3cf, rgba(230, 184, 92, .9) 45%, transparent);
  transform: translateY(-50%);
}

/* ---------- Back to top: a ring that fills with the page ---------- */
#goTopBtn.ip-top-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--ip-accent) calc(var(--ip-read, 0) * 1turn), color-mix(in srgb, var(--ip-primary) 18%, transparent) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  pointer-events: none;
}
#goTopBtn.ip-top-btn i {
  transition: transform .3s var(--ip-spring);
}
#goTopBtn.ip-top-btn:hover i {
  transform: translateY(-2px);
}
#goTopBtn.ip-top-btn:focus-visible {
  outline: 3px solid var(--ip-focus);
  outline-offset: 5px;
}
@media (max-width: 575.98px) {
  #goTopBtn.ip-top-btn {
    inset-inline-end: 1rem;
    bottom: 1rem;
  }
}

/* ---------- Mega-menu previews: the link under the pointer or the keyboard is shown large beside the list ---------- */
.ip-mega__side {
  position: relative;
  display: grid;
  min-width: 0;
}
.ip-mega__side > * {
  grid-area: 1 / 1;
  transition: opacity .25s var(--ip-ease), transform .35s var(--ip-ease);
}
.ip-mega__side.is-previewing > .ip-mega__promo {
  opacity: 0;
  transform: scale(.97);
  pointer-events: none;
}
.ip-mega__preview {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--ip-line);
  border-radius: 16px;
  background: var(--ip-surface-2);
  color: var(--ip-ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(6px) scale(.985);
  pointer-events: none;
}
.ip-mega__side.is-previewing > .ip-mega__preview,
.ip-mega__side:not(:has(.ip-mega__promo)) > .ip-mega__preview {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ip-mega__preview:hover {
  color: var(--ip-ink);
  border-color: color-mix(in srgb, var(--ip-primary) 35%, var(--ip-line));
}
.ip-mega__preview-art {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 118px;
  max-height: 260px;
  margin-bottom: .9rem;
  border-radius: 12px;
  background:
    radial-gradient(70% 90% at 50% 100%, var(--ip-preview-glow, rgba(46, 184, 114, .28)), transparent 70%),
    var(--ip-pattern) center / 64px 64px,
    var(--ip-surface);
  box-shadow: inset 0 0 0 1px var(--ip-line);
  overflow: hidden;
}
.ip-mega__preview-art::before,
.ip-mega__preview-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ip-primary) 18%, transparent);
}
.ip-mega__preview-art::before {
  width: 112px;
  height: 112px;
}
.ip-mega__preview-art::after {
  width: 170px;
  height: 170px;
  border-style: dashed;
  animation: ip-spin 40s linear infinite;
}
@keyframes ip-spin {
  to { transform: rotate(360deg); }
}
.ip-mega__preview-art i {
  position: relative;
  z-index: 1;
  font-size: 3.1rem;
  line-height: 1;
  background-image: var(--ip-preview-icon, var(--ip-icon-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .12));
  animation: ip-preview-pop .4s var(--ip-spring) both;
}
@keyframes ip-preview-pop {
  from { opacity: 0; transform: scale(.7) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
.ip-mega__preview[data-tone="sky"] { --ip-preview-icon: var(--ip-icon-blue); --ip-preview-glow: rgba(33, 150, 243, .24); }
.ip-mega__preview[data-tone="violet"] { --ip-preview-icon: var(--ip-icon-purple); --ip-preview-glow: rgba(139, 92, 246, .22); }
.ip-mega__preview[data-tone="gold"] { --ip-preview-icon: var(--ip-icon-orange); --ip-preview-glow: rgba(230, 184, 92, .34); }
.ip-mega__preview[data-tone="rose"] { --ip-preview-icon: var(--ip-icon-red); --ip-preview-glow: rgba(242, 96, 63, .22); }
.ip-mega__preview-eyebrow {
  margin: 0 0 .25rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ip-muted);
}
html:is([lang="ar"], [lang="ur"]) .ip-mega__preview-eyebrow {
  font-size: .82rem;
  letter-spacing: 0;
}
.ip-mega__preview-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ip-ink);
}
.ip-mega__preview-text {
  display: -webkit-box;
  margin: 0 0 .8rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ip-ink-2);
}
.ip-mega__preview-go {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ip-primary);
}
.ip-mega__preview-go i {
  transition: transform .25s var(--ip-ease);
}
.ip-mega__preview:hover .ip-mega__preview-go i {
  transform: translateX(3px);
}
[dir="rtl"] .ip-mega__preview:hover .ip-mega__preview-go i {
  transform: translateX(-3px) scaleX(-1);
}
.ip-mega__link.is-previewed {
  background: color-mix(in srgb, var(--ip-primary) 8%, transparent);
}
.ip-mega__link.is-previewed .ip-mega__title {
  color: var(--ip-primary);
}
.ip-mega__link:focus-visible {
  outline: 2px solid var(--ip-focus);
  outline-offset: 1px;
}
/* Keyboard hint along the bottom of an open menu. */
.ip-mega__keys {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  margin: -.5rem 0 0;
  padding-top: .75rem;
  border-top: 1px dashed var(--ip-line);
  font-size: .74rem;
  color: var(--ip-muted);
}
.ip-mega__keys kbd,
.ip-search__keys kbd {
  display: inline-block;
  min-width: 1.5em;
  margin-inline-end: .3rem;
  padding: .05rem .35rem;
  border: 1px solid var(--ip-line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--ip-surface);
  color: var(--ip-ink-2);
  font: 600 .7rem/1.4 var(--ip-font-sans);
  text-align: center;
  box-shadow: none;
}

/* ---------- Search palette ---------- */
.ip-search-trigger__kbd {
  white-space: nowrap;
}
.ip-search__form {
  flex-wrap: wrap;
}
/* Inside the palette the suggestions are part of the panel, not a list hanging below it. */
.ip-search .ip-suggest {
  position: static;
  flex: 1 0 100%;
  max-height: min(56vh, 480px);
  margin-top: .65rem;
  border-radius: 14px;
  box-shadow: none;
  animation: none;
}
.ip-search__panel:has(.ip-suggest:not([hidden])) .ip-search__body {
  display: none;
}
.ip-search__body {
  display: grid;
  gap: .9rem;
  padding: .9rem .25rem .1rem;
}
.ip-search__label {
  margin: 0 0 .45rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ip-muted);
}
html:is([lang="ar"], [lang="ur"]) .ip-search__label {
  font-size: .82rem;
  letter-spacing: 0;
}
.ip-search__popular {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-search__go {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .65rem;
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  background: var(--ip-surface);
  color: var(--ip-ink);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, transform .25s var(--ip-ease), box-shadow .25s;
}
.ip-search__go:hover,
.ip-search__go:focus-visible {
  border-color: color-mix(in srgb, var(--ip-primary) 40%, var(--ip-line));
  box-shadow: var(--ip-shadow-sm);
  color: var(--ip-primary);
  transform: translateY(-2px);
}
.ip-search__go .ip-gicon {
  font-size: 1.15rem;
}
.ip-search__keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1rem;
  margin: .8rem .25rem 0;
  padding-top: .7rem;
  border-top: 1px solid var(--ip-line);
  font-size: .75rem;
  color: var(--ip-muted);
}
.ip-search__keys span {
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .ip-search {
    padding: .75rem .5rem;
  }
  .ip-search__popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ip-search__keys {
    display: none;
  }
  .ip-search__input {
    height: 50px;
    font-size: 1rem;
  }
}

/* ---------- Theme switch: the new theme spreads out from the toggle (View Transitions) ---------- */
html.ip-theme-anim .ip-header,
html.ip-theme-anim main#main {
  view-transition-name: none;
}
html.ip-theme-anim::view-transition-old(root),
html.ip-theme-anim::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
html.ip-theme-anim::view-transition-new(root) {
  animation: ip-theme-reveal .6s var(--ip-ease) both;
}
@keyframes ip-theme-reveal {
  from { clip-path: circle(0 at var(--ip-tx, 50%) var(--ip-ty, 0)); }
  to { clip-path: circle(var(--ip-tr, 150vmax) at var(--ip-tx, 50%) var(--ip-ty, 0)); }
}

/* ---------- Footer details ---------- */
.ip-footer__box::after {
  content: "";
  position: absolute;
  inset-inline: 1.6rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ip-grad-brand);
  opacity: .8;
}
[dir="rtl"] .ip-footer__box::after {
  background: linear-gradient(-90deg, #1f7a63 0%, #2eb872 55%, #e6b85c 100%);
}
.ip-footer__title {
  position: relative;
  padding-bottom: .45rem;
}
.ip-footer__title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ip-primary);
  transition: width .35s var(--ip-ease);
}
.ip-footer__col:hover .ip-footer__title::after,
.ip-footer__news:hover .ip-footer__title::after {
  width: 40px;
}
.ip-footer__col a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding-block: .1rem;
}
.ip-footer__col a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline-end: -.6rem;
  border-radius: 50%;
  background: var(--ip-accent);
  opacity: 0;
  transform: scale(0);
  transition: opacity .2s, transform .25s var(--ip-spring), margin .25s var(--ip-ease);
}
.ip-footer__col a:hover::before,
.ip-footer__col a:focus-visible::before {
  margin-inline-end: 0;
  opacity: 1;
  transform: none;
}
.ip-footer__col a:hover {
  padding-inline-start: 0;
}
.ip-footer__tagline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  padding: .3rem .7rem;
  border: 1px solid color-mix(in srgb, var(--ip-primary) 22%, transparent);
  border-radius: var(--ip-radius-pill);
  background: var(--ip-primary-soft);
  color: var(--ip-primary);
  font-size: .76rem;
  font-weight: 600;
}
.ip-footer__social a:hover {
  background: var(--ip-primary);
  border-color: var(--ip-primary);
  color: #fff;
}
.ip-subscribe {
  position: relative;
}
.ip-subscribe__icon {
  align-self: center;
  margin-inline-start: .8rem;
  color: var(--ip-muted);
}
.ip-subscribe input {
  padding-inline-start: .55rem;
}
.ip-subscribe.is-done {
  border-color: var(--ip-success);
}
.ip-subscribe.is-done .ip-subscribe__icon {
  color: var(--ip-success);
}
.ip-footer__bottom {
  justify-content: space-between;
  padding-inline: .25rem;
}
.ip-footer__langs .bi-globe2 {
  color: var(--ip-muted);
}
.ip-footer__top {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 0;
  background: none;
  color: var(--ip-muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.ip-footer__top:hover {
  color: var(--ip-primary);
}
/* The credit, last in the bar (the bottom right): who designed and developed the site. */
.ip-footer__bottom .ip-madeby a {
  color: var(--ip-muted);
  font-weight: 600;
  text-decoration: none;
}
.ip-footer__bottom .ip-madeby a:hover {
  color: var(--ip-primary);
  text-decoration: underline;
}
@media (max-width: 767.98px) {
  .ip-footer__bottom {
    justify-content: center;
    padding-bottom: 3.75rem;
  }
}
/* Room for the floating back-to-top button beside the footer's own link. */
@media (min-width: 768px) {
  .ip-footer__bottom {
    padding-inline-end: 3.75rem;
  }
}

/* ---------- Print: a clean, branded page for guides, timetables and anything else ---------- */
.ip-print-head {
  display: none;
}
@media print {
  @page {
    margin: 14mm 12mm 16mm;
  }
  :root,
  :root[data-theme="dark"],
  body.dark {
    --ip-bg: #ffffff;
    --ip-bg-elevated: #ffffff;
    --ip-surface: #ffffff;
    --ip-surface-2: #f7f6f1;
    --ip-surface-3: #efece3;
    --ip-line: #dcd8cc;
    --ip-line-strong: #c8c3b4;
    --ip-ink: #111111;
    --ip-ink-2: #2b2f36;
    --ip-muted: #4b5260;
    --ip-primary: #1f7a63;
    --ip-link: #1a6e58;
    color-scheme: light;
  }
  html,
  body,
  body.ip-body {
    background: #fff !important;
    color: #111 !important;
  }
  body {
    font-size: 10.5pt;
  }
  .ip-header,
  .ip-footer,
  .ip-drawer,
  .ip-search,
  .ip-skip,
  .ip-crumbs,
  .ip-notice,
  #goTopBtn,
  .ip-progress,
  .ip-related,
  .hp-hero__controls,
  [data-no-print],
  .no-print,
  .d-print-none,
  video,
  audio,
  iframe,
  .ip-btn,
  .btn {
    display: none !important;
  }
  .ip-print-head {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1f7a63;
    font-size: 9pt;
    color: #4b5260;
  }
  .ip-print-head img {
    width: 30px;
    height: 30px;
  }
  .ip-print-head strong {
    font-family: var(--ip-font-brand);
    font-size: 12pt;
    letter-spacing: .05em;
    color: #0d3b29;
  }
  .ip-print-head span {
    margin-inline-start: auto;
  }
  main#main {
    min-height: 0;
  }
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
  /* Content that waits to be scrolled into view is simply shown. */
  [class*="reveal"],
  [data-reveal],
  .is-hidden-until-seen {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
    page-break-after: avoid;
  }
  table,
  figure,
  blockquote,
  li,
  .card,
  .ip-card,
  .ip-verse,
  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  table {
    border-collapse: collapse !important;
    width: 100%;
  }
  th,
  td {
    border: 1px solid #c8c3b4 !important;
  }
  thead {
    display: table-header-group;
  }
  a {
    color: #1a6e58 !important;
    text-decoration: none !important;
  }
  img,
  svg {
    max-width: 100% !important;
  }
  /* Deep-green heroes print as a light band with dark text, saving ink and staying readable. */
  [class*="hero"] {
    background: #fff !important;
    color: #111 !important;
    border-bottom: 1px solid #dcd8cc;
  }
  [class*="hero"] * {
    color: #111 !important;
  }
  .container-xxl,
  .container {
    max-width: none !important;
    padding-inline: 0 !important;
  }
}

/* ---------- Findability (owner, 2026-10-17): fuller mega-menus, "Explore everything" everywhere ----------
 * The mega-menus hold four or five clear columns (FindabilityMenuSeeder); their links get tighter and their
 * descriptions keep to one line so every column fits on a laptop screen. Every menu, the mobile drawer and the
 * search palette end with a link to the "Explore everything" page; the footer takes five link columns. */
.ip-mega__inner[data-cols="4"],
.ip-mega__inner[data-cols="5"] {
  max-width: 1320px;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem 1.1rem;
}
.ip-mega__inner[data-cols="4"] {
  grid-template-columns: minmax(0, 1fr) 236px;
}
.ip-mega__inner[data-cols="5"] {
  grid-template-columns: minmax(0, 1fr) 210px;
}
.ip-mega__inner[data-cols="4"] .ip-mega__groups,
.ip-mega__inner[data-cols="5"] .ip-mega__groups {
  gap: .5rem 1rem;
}
.ip-mega__inner[data-cols="4"] .ip-mega__heading,
.ip-mega__inner[data-cols="5"] .ip-mega__heading {
  margin-bottom: .85rem;
}
.ip-mega__inner[data-cols="4"] .ip-mega__link,
.ip-mega__inner[data-cols="5"] .ip-mega__link {
  gap: .55rem;
  margin-bottom: 1px;
  padding: .42rem .55rem;
}
.ip-mega__inner[data-cols="4"] .ip-mega__link .ip-tile,
.ip-mega__inner[data-cols="5"] .ip-mega__link .ip-tile {
  width: 24px;
  min-height: 24px;
  font-size: 1.25rem;
}
.ip-mega__inner[data-cols="4"] .ip-mega__title,
.ip-mega__inner[data-cols="5"] .ip-mega__title {
  font-size: .84rem;
}
.ip-mega__inner[data-cols="4"] .ip-mega__desc,
.ip-mega__inner[data-cols="5"] .ip-mega__desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: .74rem;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.ip-mega__inner[data-cols="4"] .ip-mega__promo,
.ip-mega__inner[data-cols="5"] .ip-mega__promo {
  padding: 1.2rem;
}
.ip-mega__inner[data-cols="4"] .ip-mega__promo-title,
.ip-mega__inner[data-cols="5"] .ip-mega__promo-title {
  font-size: 1.05rem;
}
/* Five columns and a promo need a wide screen; below that the columns take the room. */
@media (max-width: 1399.98px) {
  .ip-mega__inner[data-cols="5"] {
    grid-template-columns: minmax(0, 1fr);
  }
  .ip-mega__inner[data-cols="5"] .ip-mega__promo,
  .ip-mega__inner[data-cols="5"] .ip-mega__side {
    display: none;
  }
}

.ip-mega__all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: .35rem;
  padding: .55rem .75rem;
  border-radius: 12px;
  background:
    linear-gradient(90deg, var(--ip-primary-soft), transparent 70%),
    var(--ip-surface-2);
  box-shadow: inset 0 0 0 1px var(--ip-line);
  color: var(--ip-ink);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s var(--ip-ease);
}
.ip-mega__all:hover,
.ip-mega__all:focus-visible {
  color: var(--ip-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ip-primary) 45%, var(--ip-line));
}
.ip-mega__all-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ip-icon-orange);
  color: #fff;
  font-size: .95rem;
  transition: transform .35s var(--ip-spring);
}
.ip-mega__all:hover .ip-mega__all-icon {
  transform: rotate(90deg);
}
.ip-mega__all-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .6rem;
  min-width: 0;
  font-size: .78rem;
  color: var(--ip-muted);
}
.ip-mega__all-text strong {
  font-size: .86rem;
  color: var(--ip-ink);
}
.ip-mega__all:hover .ip-mega__all-text strong {
  color: var(--ip-primary);
}
.ip-mega__all-go {
  margin-inline-start: auto;
  transition: transform .25s var(--ip-ease);
}
.ip-mega__all:hover .ip-mega__all-go {
  transform: translateX(4px);
}
[dir="rtl"] .ip-mega__all:hover .ip-mega__all-go {
  transform: scaleX(-1) translateX(4px);
}

.ip-drawer__all {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #10503a, #0d3b29);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px -14px rgba(13, 59, 41, .9);
}
.ip-drawer__all:hover {
  color: #f6d993;
}
.ip-drawer__all i:first-child {
  color: #f6d993;
}
.ip-drawer__all i:last-child {
  margin-inline-start: auto;
  font-size: 1.3rem;
}

@media (min-width: 576px) {
  .ip-search__popular {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ip-search__all {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .55rem;
  padding: .6rem .75rem;
  border-radius: 12px;
  background: var(--ip-surface-2);
  box-shadow: inset 0 0 0 1px var(--ip-line);
  color: var(--ip-muted);
  font-size: .82rem;
  text-decoration: none;
}
.ip-search__all strong {
  color: var(--ip-ink);
}
.ip-search__all > i:first-child {
  color: var(--ip-accent-strong);
  font-size: 1.05rem;
}
.ip-search__all > i:last-child {
  margin-inline-start: auto;
}
.ip-search__all:hover,
.ip-search__all:focus-visible {
  color: var(--ip-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ip-primary) 45%, var(--ip-line));
}

/* Five footer columns: the newsletter moves to a slim row of its own under the links. */
@media (min-width: 1200px) {
  .ip-footer__grid[data-cols="4"],
  .ip-footer__grid[data-cols="5"] {
    grid-template-columns: 1.3fr repeat(var(--ip-footer-cols), minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }
  .ip-footer__grid[data-cols="4"] .ip-footer__news,
  .ip-footer__grid[data-cols="5"] .ip-footer__news {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(340px, 440px);
    align-items: center;
    gap: .35rem 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--ip-line-strong);
  }
  .ip-footer__grid[data-cols="4"] .ip-footer__news > *,
  .ip-footer__grid[data-cols="5"] .ip-footer__news > * {
    margin: 0;
  }
  .ip-footer__grid[data-cols="4"] .ip-footer__news .ip-subscribe,
  .ip-footer__grid[data-cols="5"] .ip-footer__news .ip-subscribe {
    grid-column: 3;
    grid-row: 1;
  }
  .ip-footer__grid[data-cols="4"] .ip-footer__news .ip-subscribe__note,
  .ip-footer__grid[data-cols="5"] .ip-footer__news .ip-subscribe__note {
    grid-column: 3;
    grid-row: 2;
    font-size: .78rem;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .ip-footer__grid[data-cols="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ip-footer__grid[data-cols="5"] .ip-footer__brand,
  .ip-footer__grid[data-cols="5"] .ip-footer__news {
    grid-column: 1 / -1;
  }
}

/* "What next" under a page (Views/Shared/_FeatureNext.cshtml): four compact feature cards and a way to everything. */
.ip-fnext {
  padding: var(--ip-space-6) 0 var(--ip-space-5);
}
.ip-fnext__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: .85rem;
}
.ip-fnext__kicker {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ip-accent-strong);
}
html:is([lang="ar"], [lang="ur"]) .ip-fnext__kicker {
  font-size: .85rem;
  letter-spacing: 0;
}
.ip-fnext__title {
  margin: .15rem 0 0;
  font-size: var(--ip-text-xl);
  font-weight: 800;
}
.ip-fnext__all {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ip-link);
  text-decoration: none;
}
.ip-fnext__all:hover {
  color: var(--ip-primary-hover);
}
.ip-fnext__all i:first-child {
  color: var(--ip-accent-strong);
}
.ip-fnext__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-fnext__card {
  --fn-tone: var(--ip-icon-green);
  --fn-soft: var(--ip-tile-emerald-bg);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  height: 100%;
  padding-block: .8rem .8rem; padding-inline: .85rem 2rem;
  padding-inline: .85rem 2rem;
  border-radius: 14px;
  background: var(--ip-surface);
  box-shadow: inset 0 0 0 1px var(--ip-line), var(--ip-shadow-sm);
  color: var(--ip-ink);
  text-decoration: none;
  transition: transform .25s var(--ip-ease), box-shadow .25s var(--ip-ease);
}
.ip-fnext--gold { --fn-tone: var(--ip-icon-orange); --fn-soft: var(--ip-tile-gold-bg); }
.ip-fnext--sky { --fn-tone: var(--ip-icon-blue); --fn-soft: var(--ip-tile-sky-bg); }
.ip-fnext--violet { --fn-tone: var(--ip-icon-purple); --fn-soft: var(--ip-tile-violet-bg); }
.ip-fnext--rose { --fn-tone: var(--ip-icon-red); --fn-soft: var(--ip-tile-rose-bg); }
.ip-fnext__card:hover,
.ip-fnext__card:focus-visible {
  color: var(--ip-ink);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ip-primary) 35%, var(--ip-line)), var(--ip-shadow-md);
}
.ip-fnext__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  background: var(--fn-soft);
  font-size: 1.15rem;
  transition: transform .35s var(--ip-spring);
}
.ip-fnext__icon i {
  background-image: var(--fn-tone);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ip-fnext__card:hover .ip-fnext__icon {
  transform: rotate(-8deg) scale(1.08);
}
.ip-fnext__text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.ip-fnext__text strong {
  font-size: .9rem;
  line-height: 1.3;
}
.ip-fnext__text small {
  font-size: .78rem;
  line-height: 1.4;
  color: var(--ip-muted);
}
.ip-fnext__go {
  position: absolute;
  inset-block-start: .85rem;
  inset-inline-end: .7rem;
  color: var(--ip-line-strong);
  transition: transform .25s var(--ip-ease), color .2s;
}
.ip-fnext__card:hover .ip-fnext__go {
  color: var(--ip-primary);
  transform: translateX(3px);
}
[dir="rtl"] .ip-fnext__card:hover .ip-fnext__go {
  transform: scaleX(-1) translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .ip-fnext__card,
  .ip-fnext__icon {
    transition: none;
  }
}
@media print {
  .ip-fnext {
    display: none;
  }
}

/* ---------- Wayfinding (owner, 2026-10-17; IA-PLAN.md section 2) ----------
 * Six menus (Start Here, Quran, Prayer, Learn, Daily Life, Family), each with its glyph in the design's gradient, so
 * the main row reads at a glance; "My Learning" sits by the account controls; on phones every menu opens to its groups
 * with headings and one-line descriptions, every link a 48px tap target. */
.ip-nav__icon {
  font-size: .95rem;
  line-height: 1;
  background-image: var(--ip-icon-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .3s var(--ip-spring);
}
[data-menu="quran"] > .ip-nav__icon,
[data-menu="daily"] > .ip-nav__icon { background-image: var(--ip-icon-orange); }
[data-menu="prayer"] > .ip-nav__icon { background-image: var(--ip-icon-blue); }
[data-menu="learn"] > .ip-nav__icon { background-image: var(--ip-icon-purple); }
[data-menu="family"] > .ip-nav__icon { background-image: var(--ip-icon-red); }
.ip-nav__link:hover > .ip-nav__icon,
.ip-nav__link[aria-expanded="true"] > .ip-nav__icon {
  transform: translateY(-1px) scale(1.12);
}
.ip-nav__link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: .85rem;
  inset-block-end: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ip-primary), var(--ip-accent, #e6b85c));
}
.ip-header--tight .ip-nav__icon {
  display: none;
}

/* My Learning: a quiet pill beside the avatar (icon only when the bar is tight, in the drawer on phones). */
.ip-header__learning {
  display: none;
  align-items: center;
  gap: .4rem;
  height: 40px;
  padding-inline: .75rem;
  font-size: .85rem;
  white-space: nowrap;
}
.ip-header__learning i {
  color: var(--ip-primary);
}
@media (min-width: 768px) {
  .ip-header__learning {
    display: inline-flex;
  }
}
.ip-header--tighter .ip-header__learning {
  width: 40px;
  padding-inline: 0;
  justify-content: center;
}
.ip-header--tighter .ip-header__learning-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* Phones: the drawer's menus. */
.ip-drawer__nav > li {
  border-bottom: 0;
}
.ip-drawer__nav > li + li {
  margin-top: .35rem;
}
.ip-drawer__group > .ip-drawer__link,
.ip-drawer__nav > li > .ip-drawer__link {
  min-height: 52px;
  padding: .45rem .6rem;
  border-radius: 14px;
  background: var(--ip-surface);
  box-shadow: inset 0 0 0 1px var(--ip-line);
  transition: background-color .2s var(--ip-ease), box-shadow .2s var(--ip-ease);
}
.ip-drawer__group[open] > .ip-drawer__link {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  background: var(--ip-surface-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ip-primary) 30%, var(--ip-line));
}
.ip-drawer__link.is-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ip-primary) 45%, var(--ip-line));
}
.ip-drawer__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--ip-icon-green);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px -8px rgba(13, 59, 41, .7);
}
[data-menu="quran"] .ip-drawer__icon,
[data-menu="daily"] .ip-drawer__icon { background: var(--ip-icon-orange); }
[data-menu="prayer"] .ip-drawer__icon { background: var(--ip-icon-blue); }
[data-menu="learn"] .ip-drawer__icon { background: var(--ip-icon-purple); }
[data-menu="family"] .ip-drawer__icon { background: var(--ip-icon-red); }
.ip-drawer__icon i {
  color: #fff;
  transform: none;
}
.ip-drawer__title {
  flex: 1 1 auto;
  min-width: 0;
}
.ip-drawer__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.35rem;
  padding-inline: .4rem;
  border-radius: var(--ip-radius-pill);
  background: var(--ip-surface-3);
  color: var(--ip-muted);
  font-size: .72rem;
  font-weight: 700;
}
.ip-drawer__group > .ip-drawer__link .ip-drawer__chevron {
  flex: 0 0 auto;
}
.ip-drawer__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .2rem;
  padding: .4rem .45rem .6rem;
  border-radius: 0 0 14px 14px;
  background: var(--ip-surface-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ip-primary) 30%, var(--ip-line));
  animation: ip-fade-up .25s var(--ip-ease) both;
}
.ip-drawer__heading {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .55rem .4rem .25rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ip-muted);
}
.ip-drawer__heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--ip-line-strong), transparent);
}
[dir="rtl"] .ip-drawer__heading::after {
  background: linear-gradient(270deg, var(--ip-line-strong), transparent);
}
html:is([lang="ar"], [lang="ur"]) .ip-drawer__heading {
  font-size: .85rem;
  letter-spacing: 0;
}
.ip-drawer__sub {
  padding: 0;
}
.ip-drawer__sub a {
  min-height: 48px;
  padding: .4rem .45rem;
  border-radius: 11px;
}
.ip-drawer__sub a:hover,
.ip-drawer__sub a:focus-visible {
  background: var(--ip-surface);
}
.ip-drawer__block,
.ip-drawer__sub li {
  min-width: 0;
}
.ip-drawer__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.ip-drawer__name {
  color: var(--ip-ink);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.25;
}
.ip-drawer__desc {
  overflow: hidden;
  color: var(--ip-muted);
  font-size: .78rem;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .ip-drawer__panel,
  .ip-nav__icon {
    animation: none;
    transition: none;
  }
}

/* Two- and three-column menus (the wayfinding menus) take the wide card too, so each description stays on one line. */
.ip-mega__inner[data-cols="2"],
.ip-mega__inner[data-cols="3"] {
  gap: 1.5rem;
  padding: 1.45rem 1.6rem 1.15rem;
}
.ip-mega__inner[data-cols="3"] {
  max-width: 1340px;
  grid-template-columns: minmax(0, 1fr) 250px;
}
.ip-mega__inner[data-cols="2"] {
  max-width: 1080px;
  grid-template-columns: minmax(0, 1fr) 260px;
}
.ip-mega__inner[data-cols="2"] .ip-mega__groups,
.ip-mega__inner[data-cols="3"] .ip-mega__groups {
  gap: .5rem 1.1rem;
}
.ip-mega__inner[data-cols="2"] .ip-mega__desc,
.ip-mega__inner[data-cols="3"] .ip-mega__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ip-mega__inner[data-cols="3"] .ip-mega__link {
  gap: .55rem;
  padding: .42rem .5rem;
}
.ip-mega__inner[data-cols="3"] .ip-mega__link .ip-tile {
  width: 24px;
  min-height: 24px;
  font-size: 1.25rem;
}
.ip-mega__inner[data-cols="3"] .ip-mega__title {
  font-size: .86rem;
}
.ip-mega__inner[data-cols="3"] .ip-mega__desc {
  font-size: .75rem;
  line-height: 1.35;
}
