/* «نور» (nour), look 7 of 10. Owner: d4 design, then p5.
   Calm and full of light: centred, symmetric, generous space, one light ornament (the eight-point star of Islamic
   geometry, never text, never a verse), arched frames, a faint lattice behind the hero. Default font «رسمي وقرآن»
   (Amiri + Noto Naskh Arabic), default palette «بحر». Objects only in the art: an open book on a rahl, no faces.
   Colours: --site-* only (8 palettes + night mode, d4/tools/contrast_d4.py); --site-link never as text on
   --site-band. Markup: d2's sections.css. Decoration: hero.svg in the hero's .a-sec__deco. No animation. */

.a-site.a-look-nour {
  --site-radius: 16px;
  --site-radius-btn: 999px;
  --site-radius-img: 16px;
  --nour-arch: 50% 50% 12px 12px / 38% 38% 12px 12px;
}

/* Centred heads with the ornament under the title. */
.a-look-nour :is(.a-sec__head, .a-sec-faq__head) { justify-items: center; margin-inline: auto; text-align: center; }
.a-look-nour :is(.a-sec__title, .a-sec-cta__title)::after {
  content: "";
  display: block;
  inline-size: 168px;
  max-inline-size: 100%;
  block-size: 16px;
  margin: var(--a-space-3) auto 0;
  background: var(--site-link);
  -webkit-mask: url("/images/academy/templates/nour/ornament.svg") center / contain no-repeat;
  mask: url("/images/academy/templates/nour/ornament.svg") center / contain no-repeat;
}
.a-look-nour .a-sec-faq__list { margin-inline: auto; }

/* Hero (center): a faint lattice, the star and the book; the teacher's photo sits in the heart of the star. */
.a-look-nour .a-sec-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--site-line);
  -webkit-mask: url("/images/academy/templates/nour/lattice.svg") 0 0 / 48px 48px repeat;
  mask: url("/images/academy/templates/nour/lattice.svg") 0 0 / 48px 48px repeat;
  pointer-events: none;
}
.a-look-nour .a-sec-hero > .a-sec__inner { position: relative; }
.a-look-nour .a-sec__deco { pointer-events: none; }
.a-look-nour .a-sec__deco svg { display: block; inline-size: 100%; block-size: auto; }
.a-look-nour .a-sec-hero--center .a-sec-hero__body > .a-sec__deco { grid-row: 1; grid-column: 1; inline-size: 280px; max-inline-size: 100%; }
.a-look-nour .a-sec-hero--center .a-sec-hero__media {
  grid-row: 1;
  grid-column: 1;
  z-index: 1;
  align-self: start;
  width: 84px;
  margin-block-start: 42px;
  box-shadow: 0 0 0 4px var(--site-surface);
  --a-sec-avatar: 84px;
}
.a-look-nour .a-sec-hero--split .a-sec-hero__media,
.a-look-nour .a-sec-about__media { border-radius: var(--nour-arch); }

/* Courses: arched covers with a small star; the list reads like a calm index. */
.a-look-nour .a-sec-course__cover { border-radius: var(--nour-arch); }
.a-look-nour .a-sec-courses--list .a-sec-course__cover { margin: 10px; margin-inline-end: 0; }
.a-look-nour .a-sec-course__cover[data-tone] { position: relative; background: var(--site-primary-tint); }
.a-look-nour .a-sec-course__cover[data-tone="2"] { background: var(--site-link-tint); }
.a-look-nour .a-sec-course__cover[data-tone="3"] { background: var(--site-band); }
.a-look-nour .a-sec-course__cover[data-tone]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--site-link);
  -webkit-mask: url("/images/academy/templates/nour/star.svg") center / 40px no-repeat;
  mask: url("/images/academy/templates/nour/star.svg") center / 40px no-repeat;
}
.a-look-nour .a-sec--band .a-sec-course__go { color: var(--site-ink); }

/* Numbers under a star; quotes open with the star instead of a quotation mark. */
.a-look-nour .a-sec-stat { border-color: transparent; background: none; }
.a-look-nour .a-sec-stat::before,
.a-look-nour .a-sec-quote__text::before {
  content: "";
  display: block;
  inline-size: 28px;
  block-size: 28px;
  margin-inline: auto;
  background: var(--site-link);
  -webkit-mask: url("/images/academy/templates/nour/star.svg") center / contain no-repeat;
  mask: url("/images/academy/templates/nour/star.svg") center / contain no-repeat;
}
.a-look-nour .a-sec-stats__value::after { background: var(--site-line); }
.a-look-nour .a-sec-quote { justify-items: center; text-align: center; }
.a-look-nour .a-sec-quote__text { font-family: var(--site-font-head); font-size: 1.125rem; line-height: 1.9; }
.a-look-nour .a-sec-quote__text::before { block-size: 28px; margin-block-end: var(--a-space-2); font-size: 0; }
.a-look-nour .a-sec-quote__who { justify-content: center; }

/* Questions: a quiet bookmark on the starting side. */
.a-look-nour .a-sec-faq__item { border-inline-start: 3px solid var(--site-primary); }

/* Live: today is a soft light tint. */
.a-look-nour .a-sec-day--today { background: var(--site-primary-tint); }

/* «عني» card and the closing card: a double rule at the top instead of the accent bar. */
.a-look-nour :is(.a-sec-about--card .a-sec-about__grid, .a-sec-cta--card .a-sec-cta__row) {
  border-block-start: 4px double var(--site-line);
}
.a-look-nour .a-sec-cta--card .a-sec-cta__title::after { margin-block-start: var(--a-space-2); }

/* The strip in nour is quiet: surface with the ornament, not a loud colour band. */
.a-look-nour .a-sec-cta--strip { background: var(--site-surface); color: var(--site-ink); border-block: 1px solid var(--site-line); }
.a-look-nour .a-sec-cta--strip .a-sec-cta__line { color: var(--site-muted); opacity: 1; }
.a-look-nour .a-sec-cta--strip .a-site-btn--primary { background: var(--site-primary); border-color: var(--site-primary); color: var(--site-on-primary); }
.a-look-nour .a-sec-cta--strip :focus-visible { outline-color: var(--site-focus); }

/* Inlined illustrations follow the palette. */
.a-look-nour svg .f-surface { fill: var(--site-surface); }
.a-look-nour svg .f-band { fill: var(--site-band); }
.a-look-nour svg .f-link { fill: var(--site-link); }
.a-look-nour svg .f-primary { fill: var(--site-primary); }
.a-look-nour svg .f-primary-tint { fill: var(--site-primary-tint); }
.a-look-nour svg .f-accent { fill: var(--site-accent); }
.a-look-nour svg .s-ink { stroke: var(--site-ink); }
.a-look-nour svg .s-link { stroke: var(--site-link); }
.a-look-nour svg .s-muted { stroke: var(--site-muted); }
.a-look-nour svg .s-primary { stroke: var(--site-primary); }
.a-look-nour svg .s-primary-tint { stroke: var(--site-primary-tint); }

@media (min-width: 768px) {
  .a-look-nour .a-sec-hero--center .a-sec-hero__body > .a-sec__deco { inline-size: 320px; }
  .a-look-nour .a-sec-hero--center .a-sec-hero__media { width: 96px; margin-block-start: 48px; --a-sec-avatar: 96px; }
}
