/* =========================================================
   أسرة البابا أثناسيوس — service pages and events
   (pages/index.html, events/index.html and their stubs; docs/EVENTS.md §17).
   Self-contained like comp.css: the site's tokens, fonts and themes,
   nothing from main.css. Mobile first, 280px → desktop. See DESIGN.md.
========================================================= */

/* ---------- fonts (the site's own files; same ranges as main.css) ---------- */

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0021-0040, U+0051-0052, U+005B-0060, U+007B-007E, U+00AB, U+00BB, U+00D7, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/cairo-latin-letters.woff2") format("woff2");
  unicode-range: U+0041-0050, U+0053-005A, U+0061-007A;
}

@font-face {
  font-family: "Aref Ruqaa";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/aref-ruqaa-arabic.woff2") format("woff2");
  unicode-range: U+0020-0021, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}


/* ---------- tokens (main.css) ---------- */


/* ---------- tokens (main.css) ---------- */

:root {
  /* gold tokens (site redesign W1): every gold in the site CSS is one of these
     triplets, used as rgb(var(--gold-…-rgb)) / rgba(var(--gold-…-rgb), a).
     assets/js/look.js swaps them for the member's colour before the first paint.
     Same block in main.css, page.css, comp.css, legal.css, xp-clip.css (tests/gold-tokens.test.mjs). */
  --gold-rgb: 215, 170, 80;
  --gold-1a1205-rgb: 26, 18, 5;
  --gold-1b1203-rgb: 27, 18, 3;
  --gold-3b2a0a-rgb: 59, 42, 10;
  --gold-4e3e1e-rgb: 78, 62, 30;
  --gold-6f4f1b-rgb: 111, 79, 27;
  --gold-8a6a2c-rgb: 138, 106, 44;
  --gold-8c6423-rgb: 140, 100, 35;
  --gold-a8792b-rgb: 168, 121, 43;
  --gold-a97b2c-rgb: 169, 123, 44;
  --gold-b8862f-rgb: 184, 134, 47;
  --gold-b8862f-shade-rgb: 184, 134, 47;
  --gold-b98a35-rgb: 185, 138, 53;
  --gold-c39340-rgb: 195, 147, 64;
  --gold-c89235-rgb: 200, 146, 53;
  --gold-c8973f-rgb: 200, 151, 63;
  --gold-c99135-rgb: 201, 145, 53;
  --gold-c99a45-rgb: 201, 154, 69;
  --gold-c9ad74-rgb: 201, 173, 116;
  --gold-d8ab51-rgb: 216, 171, 81;
  --gold-dcb45f-rgb: 220, 180, 95;
  --gold-deep-rgb: 107, 76, 23;
  --gold-e0b55c-rgb: 224, 181, 92;
  --gold-e3b862-rgb: 227, 184, 98;
  --gold-e3cf9f-rgb: 227, 207, 159;
  --gold-e6be64-rgb: 230, 190, 100;
  --gold-e7c27a-rgb: 231, 194, 122;
  --gold-e9d3a1-rgb: 233, 211, 161;
  --gold-f0d28c-rgb: 240, 210, 140;
  --gold-f0d296-rgb: 240, 210, 150;
  --gold-f0d8a0-rgb: 240, 216, 160;
  --gold-f2dcaa-rgb: 242, 220, 170;
  --gold-f2e4c4-rgb: 242, 228, 196;
  --gold-f3d48e-rgb: 243, 212, 142;
  --gold-f4dfae-rgb: 244, 223, 174;
  --gold-f6dda0-rgb: 246, 221, 160;
  --gold-f6dfa4-rgb: 246, 223, 164;
  --gold-f7d796-rgb: 247, 215, 150;
  --gold-f7dc9b-rgb: 247, 220, 155;
  --gold-f7dc9e-rgb: 247, 220, 158;
  --gold-f7e2ad-rgb: 247, 226, 173;
  --gold-fbf6ec-rgb: 251, 246, 236;
  --gold-ffe9ba-rgb: 255, 233, 186;
  --gold-fff1c9-rgb: 255, 241, 201;
  --gold-fff4d6-rgb: 255, 244, 214;
  --gold-fff6dc-rgb: 255, 246, 220;
  --gold-hi-rgb: 242, 210, 139;
  --gold-ink-rgb: 27, 19, 6;
  --gold-light-rgb: 255, 236, 190;
  --gold-soft-rgb: 231, 207, 156;
  /* end gold tokens */

  --ink: #020914;
  --navy-950: #041127;
  --navy-900: #061a31;
  --navy-850: #08213d;
  --navy-800: #0b2a4c;
  --navy-700: #12385f;

  --gold: rgb(var(--gold-rgb));
  --gold-hi: rgb(var(--gold-hi-rgb));
  --gold-ink: rgb(var(--gold-ink-rgb));
  --gold-line: rgba(var(--gold-hi-rgb), .14);
  --gold-line-strong: rgba(var(--gold-hi-rgb), .36);

  --text: #f5f7fb;
  --text-2: #b9c5d5;
  --text-3: #8d9db3;

  --carmine: #c8433a;
  --carmine-hi: #ff8a7d;
  --ok: #4fca8c;
  --ok-hi: #a6efc8;
  --wa: #4fdc7f;

  /* a partner's logo sits on this, never directly on navy (docs/EVENTS.md §12) */
  --partner-plate: #fffdf9;
  --partner-ring: rgba(var(--gold-rgb), .42);
  --partner-glow: rgba(var(--gold-fbf6ec-rgb), .12);

  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --pad: clamp(14px, 4.6vw, 24px);
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --page: 1120px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --font-ui: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Aref Ruqaa", "Cairo", serif;

  color-scheme: dark;
}

/* the page's theme: only the accent changes (SECTION_THEMES) */
:root,
[data-theme="gold"] {
  --accent: rgb(var(--gold-rgb));
  --accent-hi: rgb(var(--gold-hi-rgb));
  --accent-deep: rgb(var(--gold-deep-rgb));
  --accent-glow: rgba(var(--gold-rgb), .3);
  --accent-ink: rgb(var(--gold-ink-rgb));
}

[data-theme="ember"] {
  --accent: #ef8a4c;
  --accent-hi: #ffc39a;
  --accent-deep: #6e2a12;
  --accent-glow: rgba(239, 138, 76, .3);
  --accent-ink: #231006;
}

[data-theme="azure"] {
  --accent: #4cc3cb;
  --accent-hi: #9fe7ec;
  --accent-deep: #0b3f4f;
  --accent-glow: rgba(76, 195, 203, .28);
  --accent-ink: #04191d;
}

[data-theme="rose"] {
  --accent: #e8789f;
  --accent-hi: #f8b9cf;
  --accent-deep: #5d1a33;
  --accent-glow: rgba(232, 120, 159, .28);
  --accent-ink: #250913;
}

[data-theme="emerald"] {
  --accent: #4fca8c;
  --accent-hi: #a6efc8;
  --accent-deep: #0e4a30;
  --accent-glow: rgba(79, 202, 140, .26);
  --accent-ink: #04190f;
}

[data-theme="night"] {
  --accent: #9a95ee;
  --accent-hi: #cfccff;
  --accent-deep: #25226b;
  --accent-glow: rgba(154, 149, 238, .28);
  --accent-ink: #0d0b2b;
}


/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

html.has-vsheet {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(90% 50% at 85% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(70% 40% at 0% 0%, rgba(18, 56, 95, .55), transparent 70%),
    var(--ink);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, figure, ol, ul {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ol, ul {
  list-style: none;
}

a {
  color: var(--accent-hi);
}

button, output {
  font: inherit;
  color: inherit;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 30;
  inset-inline-start: 12px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--gold-ink);
  background: var(--gold);
  text-decoration: none;
}

.skip-link:focus {
  top: max(12px, env(safe-area-inset-top));
}

.muted {
  color: var(--text-2);
}

/* icons (view.js icon()): line icons; .ic__fill parts are solid */
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic .ic__fill {
  fill: currentColor;
  stroke: none;
}

/* the arrow points "forward" in RTL (to the left) */
.ic--arrow.is-prev {
  transform: scaleX(-1);
}

/* a whole card as one tap target: its title's link / button covers it */
.stretched {
  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: inherit;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.stretched:focus-visible {
  outline: none;
}

.stretched:focus-visible::after {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}


/* ---------- top bar (as the competition pages' .cbar) ---------- */

.pbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))) 8px;
  background: linear-gradient(180deg, rgba(2, 9, 20, .92) 55%, rgba(2, 9, 20, 0));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-line);
}

.pbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
}

/* the bar is one bar on every page (site redesign W1): the logo 36, the name in Ruqaa */
.pbar__brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-line-strong);
}

.pbar__home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  color: var(--gold-hi);
  text-decoration: none;
  background: rgba(6, 26, 49, .7);
}

/* the site's sound toggle (ui-sound.js): the home page's 🔊/🔇, next to «ارجع للموقع» */
.usound {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  background: rgba(6, 26, 49, .7);
  color: var(--gold-hi);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.usound:hover {
  background: var(--navy-800);
}

.usound:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.usound[aria-pressed="false"] {
  color: rgba(185, 197, 213, .8);
  border-color: rgba(185, 197, 213, .25);
}

.usound__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usound__body {
  fill: currentColor;
  fill-opacity: .18;
}


.pbar__home:hover {
  background: var(--navy-800);
}

/* one line each, next to the sound button: the name gives way first */
.pbar__brand {
  min-width: 0;
}

.pbar__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-hi);
}

.pbar__home {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .pbar {
    gap: 8px;
  }

  .pbar__home {
    padding-inline: 12px;
    font-size: .86rem;
  }

  .pbar__name {
    font-size: 1.02rem;
  }
}


/* ---------- page ---------- */

.pg {
  display: block;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) calc(40px + env(safe-area-inset-bottom));
}

.pg:focus {
  outline: none;
}

.pg-note {
  margin-top: 24px;
  text-align: center;
}

.pg-section {
  margin-top: clamp(28px, 6vw, 48px);
}

.pg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pg-head__title {
  font-size: clamp(1.3rem, 4.8vw, 1.7rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.pg-section > .pg-head__title {
  margin-bottom: 14px;
}

.pg-head__count {
  font-size: .92rem;
  color: var(--text-3);
}

.pg-about {
  display: grid;
  gap: 12px;
  max-width: 68ch;
  font-size: 1.06rem;
  color: var(--text-2);
}

.pg-about__p {
  white-space: pre-line;
}


/* ---------- buttons, chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  touch-action: manipulation;
}

.btn:hover {
  border-color: var(--gold-line-strong);
  background: rgba(255, 255, 255, .08);
}

.btn--primary {
  color: var(--accent-ink);
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 10px 24px -12px var(--accent-glow);
}

.btn--primary:hover {
  border-color: transparent;
  background: var(--accent-hi);
}

.btn--wa {
  width: 100%;
  min-height: 46px;
  font-size: .95rem;
}

.btn--wa .ic {
  color: var(--wa);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 2px 12px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-2);
  background: rgba(6, 26, 49, .75);
}

.chip--kind {
  color: var(--accent-ink);
  border-color: transparent;
  background: var(--accent);
}

.chip--state {
  color: var(--accent-hi);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}


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

.phero {
  position: relative;
  margin-inline: calc(-1 * var(--gutter));
}

.phero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  max-height: 78svh;
  width: 100%;
  background:
    radial-gradient(80% 90% at 50% 110%, var(--accent-glow), transparent 70%),
    var(--navy-850);
}

.phero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 9, 20, .35) 0%, rgba(2, 9, 20, 0) 26%, rgba(2, 9, 20, 0) 42%, rgba(2, 9, 20, .78) 74%, var(--ink) 100%);
  pointer-events: none;
}

.phero__text {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 0 var(--gutter) clamp(18px, 5vw, 36px);
}

.phero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 11vw, 4.6rem);
  line-height: 1.25;
  color: var(--gold-hi);
  text-shadow: 0 2px 18px rgba(2, 9, 20, .8);
}

.phero__lead {
  max-width: 46ch;
  font-size: clamp(1.02rem, 3.8vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 1px 10px rgba(2, 9, 20, .9);
}

.phero__cta {
  margin-top: 6px;
}

.phero__toggle {
  position: absolute;
  z-index: 2;
  top: 12px;
  inset-inline-end: calc(var(--gutter) - 4px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 50%;
  color: var(--gold-hi);
  background: rgba(2, 9, 20, .6);
  cursor: pointer;
}

.phero__toggle .ic {
  width: 18px;
  height: 18px;
}

/* a service page's banner: visual only, whole at its own shape on every
   screen (no crop), capped in height, on a blurred copy of itself; the
   title, the lead and the co-brand line sit under it */
.phero--banner .phero__media {
  aspect-ratio: var(--ar, 16 / 9);
  max-height: min(72vh, 680px);
  max-height: min(72svh, 680px);
}

/* a tablet: a little lower */
@media (min-width: 640px) {
  .phero--banner .phero__media {
    max-height: min(62vh, 560px);
    max-height: min(62svh, 560px);
  }
}

.phero--banner .phero__img {
  position: relative;
  object-fit: contain;
}

/* the picture's box is the picture itself (its placeholder colour stays
   under it): what the banner's shape leaves over is the blurred copy */
.phero--banner .phero__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: var(--ar, 16 / 9);
  margin-inline: auto;
}

.phero--banner .phero__scrim {
  background: linear-gradient(180deg, rgba(2, 9, 20, 0) 78%, rgba(2, 9, 20, .55) 100%);
}

.phero--banner .phero__text {
  position: static;
  gap: 10px;
  padding-top: clamp(18px, 4vw, 30px);
  padding-bottom: 4px;
}

.phero--banner .phero__title {
  font-size: clamp(2.1rem, 9.5vw, 3.8rem);
  text-shadow: none;
}

.phero--banner .phero__lead {
  max-width: 52ch;
  color: var(--text-2);
  text-shadow: none;
}

/* an event's cover is often a poster with words: shown whole, at its own
   shape (height-capped), on a blurred copy of itself; the words go below */
.phero--poster .phero__media {
  aspect-ratio: var(--ar, 4 / 5);
  max-height: 70vh;
  max-height: 70svh;
}

.phero--poster .phero__img {
  position: relative;
  object-fit: contain;
}

.phero__ambient {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: blur(28px) saturate(1.2);
  opacity: .5;
}

.phero--poster .phero__scrim {
  background: linear-gradient(180deg, rgba(2, 9, 20, 0) 70%, var(--ink) 100%);
}

.phero--poster .phero__text {
  position: static;
  padding-top: 14px;
}

.phero--poster .phero__title {
  font-size: clamp(2rem, 9vw, 3.6rem);
}

@media (min-width: 640px) {

  .phero__media {
    aspect-ratio: 16 / 9;
    max-height: 72vh;
  }

}

@media (min-width: 1024px) {

  .phero {
    margin-inline: 0;
    margin-top: 8px;
  }

  .phero__media {
    aspect-ratio: 21 / 9;
    max-height: 620px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-xl);
  }

  .phero--poster .phero__media {
    aspect-ratio: auto;
    height: min(70vh, 640px);
  }

  /* a computer: never a wall of picture — at most half the screen's
     height; a banner wider than that sits whole in the middle, its blurred
     copy filling the sides */
  .phero--banner .phero__media {
    aspect-ratio: var(--ar, 16 / 9);
    max-height: min(50vh, 520px);
    max-height: min(50svh, 520px);
  }

  /* its side edges melt into the blurred copy (no hard seam) */
  .phero--banner .phero__img {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }

  .phero--banner .phero__text {
    padding-inline: 0;
  }

  .phero__text {
    padding-inline: 48px;
    padding-bottom: 44px;
  }

  .phero--poster .phero__text {
    padding-inline: 0;
  }

  .phero__toggle {
    top: 16px;
    inset-inline-end: 16px;
  }

}


/* built-in art: the theme's light and an icon (no picture) */
.art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 80% at 50% 115%, var(--accent-glow), transparent 70%),
    repeating-linear-gradient(45deg, rgba(var(--gold-hi-rgb), .045) 0 1px, transparent 1px 18px),
    var(--navy-850);
}

.art__icon {
  width: 30%;
  max-width: 96px;
  height: auto;
  aspect-ratio: 1;
  color: var(--accent-hi);
  opacity: .8;
  stroke-width: 1.2;
}


/* ---------- video cards (YouTube-style) ---------- */

.mgrid,
.egrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px 18px;
}

@media (min-width: 640px) {
  .mgrid,
  .egrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mgrid,
  .egrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mcard {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  border-radius: var(--radius-md);
}

.mcard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: var(--navy-800);
}

.mcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mcard__play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -29px;
  border: 1.5px solid rgba(var(--gold-hi-rgb), .7);
  border-radius: 50%;
  color: var(--gold-hi);
  background: rgba(2, 9, 20, .62);
  box-shadow: 0 8px 26px rgba(2, 9, 20, .6);
}

.mcard__play .ic {
  width: 24px;
  height: 24px;
}

/* the play triangle reads left-to-right everywhere (a media symbol) */
.mcard__play .ic--play {
  transform: translateX(1.5px);
}

.mcard--link .mcard__play {
  width: 46px;
  height: 46px;
  margin: -23px;
}

.mcard--link .mcard__play .ic {
  width: 20px;
  height: 20px;
}

.mcard__dur {
  position: absolute;
  bottom: 8px;
  inset-inline-end: 8px;
  padding: 1px 8px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: rgba(0, 0, 0, .78);
  direction: ltr;
  unicode-bidi: isolate;
}

.mcard__body {
  display: grid;
  gap: 2px;
  padding-inline: 2px;
}

.mcard__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--text);
}

.mcard__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-2);
}

.mcard:hover .mcard__media {
  border-color: var(--gold-line-strong);
}


/* ---------- people (team, servants) ---------- */

.team {
  padding: clamp(20px, 5vw, 36px) var(--pad);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 60% at 50% -10%, var(--accent-glow), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01) 60%),
    var(--navy-900);
}

.team__intro {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 52ch;
  margin: 0 auto 20px;
  text-align: center;
}

.team__icon {
  width: 36px;
  height: 36px;
  color: var(--accent-hi);
}

.team__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  line-height: 1.35;
  color: var(--gold-hi);
}

.team__text {
  color: var(--text-2);
}

/* one card a person: picture or initial · name, role · WhatsApp, in a row;
   side by side as space allows (one a row on a phone, two from ~560px,
   three on a computer), never stretched wider than a card should be */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
  gap: 12px;
}

.people:has(> li:only-child) {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 76px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 70%),
    rgba(2, 9, 20, .45);
  transition: border-color .2s ease;
}

.person:hover {
  border-color: var(--gold-line-strong);
}

/* the arch (the logo's door), smaller */
.person__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px 999px 10px 10px;
  background: var(--navy-800);
}

.person__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person__avatar--initial {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-hi);
}

.person__who {
  display: grid;
  gap: 2px;
  min-width: 0;
}

/* a long name takes two lines rather than losing its end */
.person__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.person__role {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .86rem;
  line-height: 1.45;
  color: var(--text-2);
}

.person__who .chips {
  margin-top: 4px;
}

/* WhatsApp: a compact pill at the card's end (its full words in aria-label) */
.person__wa {
  min-height: 40px;
  padding: 8px 14px;
  font-size: .9rem;
  white-space: nowrap;
}

/* phones: the pill keeps only its icon (a round 44 px target), the name gets the room */
@media (max-width: 479px) {
  .person__wa {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .person__wa-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}


/* ---------- event: facts, gallery, booking, terms ---------- */

.facts {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px var(--pad);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
}

.fact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-weight: 700;
}

.fact > .ic {
  color: var(--accent-hi);
}

.fact__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery__item {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: var(--navy-800);
}

.gallery__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 5vw, 32px) var(--pad);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 60% at 50% -20%, var(--accent-glow), transparent 70%),
    var(--navy-900);
  scroll-margin-top: 70px;
}

.book__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.book__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 1.3;
  color: var(--gold-hi);
  scroll-margin-top: 70px;
}

.book__state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent);
}

.book.is-before .book__state {
  color: var(--accent-hi);
  background: rgba(6, 26, 49, .8);
  border: 1px solid var(--gold-line-strong);
}

.book.is-closed .book__state {
  color: var(--text-2);
  background: rgba(255, 255, 255, .06);
}

.book__window,
.book__pay,
.book__cap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-2);
}

.book__window .ic {
  margin-top: 4px;
  color: var(--accent-hi);
}

.book__line {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.prices {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: rgba(2, 9, 20, .45);
}

.prices__hint,
.prices__note {
  font-size: .9rem;
  color: var(--text-3);
}

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gold-line);
}

.price:last-child {
  border-bottom: 0;
}

.price__who {
  display: grid;
  min-width: 0;
}

.price__label {
  font-weight: 800;
}

.price__note {
  font-size: .85rem;
  color: var(--text-3);
}

.price__amount {
  font-weight: 800;
  color: var(--gold-hi);
  white-space: nowrap;
}

.price > .stepper {
  grid-column: 1 / -1;
  justify-self: end;
}

@media (min-width: 480px) {
  .price {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .price > .stepper {
    grid-column: auto;
  }
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  background: var(--navy-850);
}

.stepper--fixed {
  justify-content: center;
  border-color: transparent;
  background: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 800;
  color: var(--text-2);
}

.stepper__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--gold-hi);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  touch-action: manipulation;
}

.stepper__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .12);
}

.stepper__btn:disabled {
  color: var(--text-3);
  opacity: .45;
  cursor: default;
}

.stepper__n {
  min-width: 2ch;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
}

.prices__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--gold-line-strong);
  font-weight: 800;
}

.prices__total-n {
  font-size: 1.3rem;
  color: var(--gold-hi);
}

.people--servants .person {
  background: rgba(2, 9, 20, .5);
}

.terms {
  padding: 18px var(--pad);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  font-size: .95rem;
  color: var(--text-2);
}

.terms__p {
  white-space: pre-line;
}

.terms__p + .terms__p {
  margin-top: 10px;
}


/* ---------- the events list (/events/) ---------- */

.evlist__head {
  display: grid;
  gap: 4px;
  padding-block: 18px 22px;
}

.evlist__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  line-height: 1.3;
  color: var(--gold-hi);
}

.evlist__sub {
  color: var(--text-2);
}

.ecard {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012) 60%),
    var(--navy-900);
}

.ecard.is-over {
  opacity: .72;
}

.ecard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-800);
}

.ecard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecard__body {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px 16px;
}

.ecard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ecard__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.5;
}

.ecard__sub {
  color: var(--text-2);
}

.ecard__when {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--text-2);
}

.ecard__when .ic {
  width: 18px;
  height: 18px;
  color: var(--accent-hi);
}

.ecard__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: 800;
  color: var(--accent-hi);
}


/* ---------- empty / unavailable / loading ---------- */

.pg-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 460px;
  margin: 40px auto 0;
  padding: 32px var(--pad);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-xl);
  text-align: center;
  background: var(--navy-900);
}

.pg-empty--inline {
  margin-top: 0;
}

.pg-empty__icon {
  width: 48px;
  height: 48px;
  color: var(--accent-hi);
}

.pg-empty__title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.5;
}

.skeleton {
  display: grid;
  gap: 14px;
}

.skeleton > span {
  display: block;
  border-radius: var(--radius-md);
  background: var(--navy-850);
}

.skeleton__hero {
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  margin-inline: calc(-1 * var(--gutter));
  border-radius: 0 !important;
}

.skeleton__line {
  height: 18px;
  width: 70%;
}

.skeleton__line.is-short {
  width: 40%;
}

@media (min-width: 640px) {
  .skeleton__hero {
    aspect-ratio: 16 / 9;
  }
}


/* ---------- the video sheet (video.js) ---------- */

.vsheet {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: rgba(1, 5, 12, .97);
  overflow: auto;
  overscroll-behavior: contain;
}

.vsheet[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsheet::backdrop {
  background: rgba(1, 5, 12, .6);
}

.vsheet__panel {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 980px;
  max-height: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}

.vsheet__bar {
  display: flex;
  justify-content: flex-end;
  padding: max(6px, env(safe-area-inset-top)) var(--gutter) 6px;
}

.vsheet__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text);
  background: rgba(6, 26, 49, .85);
  cursor: pointer;
}

.vsheet__stage {
  display: grid;
  place-items: center;
  width: 100%;
}

/* at most ~2/3 of the screen's height: the title, the caption and the full-video button stay in view */
.vsheet__video {
  width: min(100%, calc(64vh * var(--arn, 1.7778)));
  width: min(100%, calc(64dvh * var(--arn, 1.7778)));
  height: auto;
  aspect-ratio: var(--ar, 16 / 9);
  max-height: 64vh;
  max-height: 64dvh;
  background: #000;
}

.vsheet__info {
  display: grid;
  gap: 8px;
  padding: 14px var(--gutter) 16px;
}

.vsheet__title {
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
  font-weight: 800;
  line-height: 1.5;
}

.vsheet__text {
  color: var(--text-2);
}

.vsheet__cta {
  justify-self: start;
  margin-top: 4px;
}

.vsheet__navs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.vsheet__nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  font-weight: 700;
  color: var(--gold-hi);
  background: rgba(6, 26, 49, .85);
  cursor: pointer;
}

.vsheet__count {
  font-size: .9rem;
  color: var(--text-3);
}

@media (min-width: 760px) {

  .vsheet__video {
    border-radius: var(--radius-md);
  }

  .vsheet__info,
  .vsheet__bar {
    padding-inline: 4px;
  }

}


/* =========================================================
   COLLAB: «بإشراف» a partner (docs/EVENTS.md §12)
   The quiet co-brand line under a page's title (view.js), the cards'
   chip, and the cinematic intro (collab.js). The partner's colours stay
   inside its own logo; the page keeps its navy and gold.
========================================================= */

/* ---------- the co-brand line: أسرة البابا أثناسيوس × Brave Under Grace ---------- */

.cobrand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  max-width: 100%;
  margin-top: 6px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), .07), rgba(255, 255, 255, .02));
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-2);
}

.cobrand__seal {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
}

.cobrand__name {
  white-space: nowrap;
}

.cobrand__name:first-of-type {
  color: var(--gold-hi);
}

.cobrand__x {
  color: var(--gold);
  font-weight: 400;
  opacity: .8;
}

.cobrand__name--partner,
.cobrand__link {
  color: var(--text);
  letter-spacing: .01em;
}

.cobrand__link {
  text-decoration: underline;
  text-decoration-color: var(--gold-line-strong);
  text-underline-offset: 3px;
}

.cobrand__mark {
  width: auto;
  height: 18px;
  flex: none;
}

/* narrow phones: their name is said by their letters (still read by screen readers), one line */
@media (max-width: 419px) {
  .cobrand {
    gap: 6px 7px;
    font-size: .82rem;
    padding-inline: 10px;
  }

  .cobrand__name--partner {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}


/* ---------- the cards' chip «بإشراف B.U.G.» (the /events/ list) ---------- */

.pchip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0;
  padding-block: 3px;
  padding-inline: 4px 11px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-2);
  background: rgba(var(--gold-hi-rgb), .06);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

.pchip__plate {
  display: inline-grid;
  place-items: center;
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--partner-plate);
  box-shadow: 0 0 0 1px var(--partner-ring), 0 0 12px var(--partner-glow);
}

.pchip__plate img {
  display: block;
  width: auto;
  height: 14px;
}


/* ---------- INTRO: the collaboration ident (collab.js; ≈ 2.35 s) ----------
   0.00–0.35 bars in, the dark stage · 0.20–0.70 our seal out of the depth
   (right) · 0.45–0.90 the partner's logo (left) · 0.90–1.20 both face the
   camera, draw in · 1.05–1.45 the mark: gold × spectrum strokes, a flare ·
   1.25–1.65 they part and rise, names under them · 1.55–1.95 one sweep, a
   few motes · 1.95–2.35 bars open, the stage lifts away onto the page.
   Everything waits for .is-go (both logos decoded) except the bars and the
   ambient light. One unit (--u) scales the whole 400-unit-wide composition
   to the screen; the partner's logo keeps its own colours, ours sits in
   gold and navy, the mark joins the two. */

.cintro {
  --u: min(calc((100vw - 20px) / 380), calc(100vh / 430), 3px);
  --u: min(calc((100vw - 20px) / 380), calc(100dvh / 430), 3px);
  --ours-x: 108;
  --gold-stroke: linear-gradient(90deg, transparent, rgba(var(--gold-hi-rgb), .2) 12%, rgb(var(--gold-hi-rgb)) 42%, rgb(var(--gold-fff4d6-rgb)) 50%, rgb(var(--gold-rgb)) 58%, rgba(var(--gold-rgb), .2) 88%, transparent);
  --spectrum-stroke: linear-gradient(90deg, transparent, rgba(255, 77, 77, .25) 10%, #ff5a4a 22%, #ffb020 36%, #fff6e0 50%, #3ddc84 62%, #38b6ff 76%, #a35cff 88%, transparent);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  direction: ltr;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(70% 50% at 50% 48%, rgba(18, 56, 95, .45), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(6, 26, 49, .9), transparent 60%),
    #01060e;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.cintro.is-go {
  animation: cintro-out .4s cubic-bezier(.4, 0, .2, 1) 1.95s both;
}

/* letterbox */
.cintro__bar {
  position: absolute;
  inset-inline: 0;
  z-index: 3;
  height: 10vh;
  height: 10dvh;
  background: #000;
  animation: cintro-bar .35s cubic-bezier(.22, 1, .36, 1) both;
}

.cintro__bar--top {
  top: 0;
  --from: -100%;
  box-shadow: 0 1px 0 rgba(var(--gold-hi-rgb), .08);
}

.cintro__bar--bottom {
  bottom: 0;
  --from: 100%;
  box-shadow: 0 -1px 0 rgba(var(--gold-hi-rgb), .08);
}

.cintro.is-go .cintro__bar {
  animation: cintro-bar .35s cubic-bezier(.22, 1, .36, 1) both, cintro-bar-open .4s cubic-bezier(.65, 0, .35, 1) 1.95s both;
}

/* the light of the room: a warm centre, a cold floor */
.cintro__ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(calc(240 * var(--u)) calc(150 * var(--u)) at 50% 46%, rgba(var(--gold-rgb), .14), transparent 70%),
    radial-gradient(calc(420 * var(--u)) calc(90 * var(--u)) at 50% 74%, rgba(56, 182, 255, .07), transparent 70%);
  opacity: 0;
  animation: cintro-fade .6s ease-out both;
}

/* the 3D stage */
.cintro__scene {
  position: absolute;
  inset: 0;
  perspective: calc(900 * var(--u));
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}

.cintro.is-go .cintro__scene {
  animation: cintro-scene-out .4s cubic-bezier(.4, 0, .2, 1) 1.95s both;
}

.cintro__side {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(12 * var(--u));
  width: calc(200 * var(--u));
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.cintro__emblem {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(138 * var(--u));
  width: 100%;
}

.cintro__seal,
.cintro__logo {
  position: relative;
  display: block;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 calc(14 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, .6));
}

.cintro__seal {
  width: calc(134 * var(--u));
}

.cintro__logo {
  width: calc(156 * var(--u));
}

/* a halo behind each logo: gold for ours, the partner's own spectrum for theirs */
.cintro__aura {
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(176 * var(--u));
  height: calc(176 * var(--u));
  border-radius: 50%;
  translate: -50% -50%;
  opacity: 0;
}

.cintro__side--ours .cintro__aura {
  background: radial-gradient(closest-side, rgba(var(--gold-hi-rgb), .38), rgba(var(--gold-rgb), .12) 55%, transparent);
}

.cintro__side--partner .cintro__aura {
  width: calc(214 * var(--u));
  height: calc(118 * var(--u));
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent 70%),
    conic-gradient(from 200deg, rgba(255, 90, 74, .3), rgba(255, 176, 32, .3), rgba(61, 220, 132, .26), rgba(56, 182, 255, .3), rgba(163, 92, 255, .3), rgba(255, 90, 74, .3));
  filter: blur(calc(18 * var(--u)));
}

.cintro__name {
  margin: 0;
  white-space: nowrap;
  line-height: 1.3;
  opacity: 0;
}

/* our name in the church's gold, in the hand of the logo */
.cintro__name--ours {
  font-family: var(--font-display);
  font-size: calc(22 * var(--u));
  font-weight: 700;
  color: rgb(var(--gold-e7c27a-rgb));
  background: linear-gradient(180deg, #fff1cc 0%, rgb(var(--gold-hi-rgb)) 45%, rgb(var(--gold-c8973f-rgb)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(var(--gold-rgb), .35));
}

/* theirs in their own spectrum */
.cintro__name--partner {
  font-family: var(--font-ui);
  font-size: calc(16.5 * var(--u));
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(90deg, #ff5a4a 0%, #ff9f1c 22%, #ffd23f 38%, #3ddc84 56%, #38b6ff 76%, #a35cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, .5));
}

/* the collaboration mark, centred on the logos' line */
.cintro__mark {
  position: absolute;
  top: calc(50% - 19 * var(--u));
  left: 50%;
  width: calc(70 * var(--u));
  height: calc(70 * var(--u));
  translate: -50% -50%;
}

.cintro__stroke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(72 * var(--u));
  height: calc(3 * var(--u));
  margin: calc(-1.5 * var(--u)) 0 0 calc(-36 * var(--u));
  border-radius: 99px;
  transform: rotate(var(--turn)) scaleX(0);
  opacity: 0;
}

.cintro__stroke--gold {
  --turn: 42deg;
  background: var(--gold-stroke);
  box-shadow: 0 0 calc(10 * var(--u)) rgba(var(--gold-hi-rgb), .55);
}

.cintro__stroke--spectrum {
  --turn: -42deg;
  background: var(--spectrum-stroke);
  box-shadow: 0 0 calc(10 * var(--u)) rgba(56, 182, 255, .35);
}

.cintro__flare {
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, #fff, rgba(255, 244, 214, .85) 18%, rgba(var(--gold-hi-rgb), .35) 45%, transparent);
  opacity: 0;
  transform: scale(0);
}

.cintro__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-hi-rgb), .55);
  box-shadow: 0 0 calc(14 * var(--u)) rgba(var(--gold-rgb), .25), inset 0 0 calc(14 * var(--u)) rgba(var(--gold-rgb), .18);
  -webkit-mask: conic-gradient(from 0deg, #000 var(--sweep, 0deg), transparent 0);
  mask: conic-gradient(from 0deg, #000 var(--sweep, 0deg), transparent 0);
  opacity: 0;
}

/* one band of light across everything */
.cintro__sweep {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(104deg, transparent 36%, rgba(255, 244, 214, .03) 44%, rgba(255, 244, 214, .12) 50%, rgba(255, 244, 214, .03) 56%, transparent 64%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-55%);
  pointer-events: none;
}

/* a few motes of light around the mark */
.cintro__mote {
  position: absolute;
  top: calc(50% - 18 * var(--u));
  left: 50%;
  width: calc(3 * var(--u));
  height: calc(3 * var(--u));
  border-radius: 50%;
  background: rgb(var(--gold-fff4d6-rgb));
  box-shadow: 0 0 calc(6 * var(--u)) rgba(var(--gold-hi-rgb), .9);
  opacity: 0;
}

.cintro__mote--1 { --mx: -64; --my: -14; }
.cintro__mote--2 { --mx: 58; --my: -30; }
.cintro__mote--3 { --mx: -26; --my: 30; background: #b8e6ff; box-shadow: 0 0 calc(6 * var(--u)) rgba(56, 182, 255, .8); }
.cintro__mote--4 { --mx: 34; --my: 22; }
.cintro__mote--5 { --mx: -96; --my: 10; background: #ffd0c8; box-shadow: 0 0 calc(6 * var(--u)) rgba(255, 90, 74, .7); }
.cintro__mote--6 { --mx: 92; --my: 4; }
.cintro__mote--7 { --mx: 6; --my: -44; background: #e3d2ff; box-shadow: 0 0 calc(6 * var(--u)) rgba(163, 92, 255, .7); }

/* «تخطي»: a quiet pill in the lower corner (any tap anywhere skips too) */
.cintro__skip {
  position: absolute;
  z-index: 4;
  bottom: calc(10vh + 16px);
  bottom: calc(10dvh + 16px + env(safe-area-inset-bottom));
  right: max(16px, env(safe-area-inset-right));
  min-height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(var(--gold-hi-rgb), .28);
  border-radius: 999px;
  background: rgba(1, 6, 14, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  direction: rtl;
  font: 600 13px/1 var(--font-ui);
  letter-spacing: .02em;
  color: rgba(var(--gold-f2e4c4-rgb), .9);
  cursor: pointer;
  opacity: 0;
  animation: cintro-fade .5s ease-out .5s both;
}

.cintro__skip:hover {
  border-color: rgba(var(--gold-hi-rgb), .55);
  color: rgb(var(--gold-fff4d6-rgb));
}

/* ---- the timeline (only once both logos can be drawn) ---- */

.cintro.is-go .cintro__side--ours {
  animation: cintro-ours 1.45s cubic-bezier(.33, 0, .2, 1) .2s both;
}

.cintro.is-go .cintro__side--partner {
  animation: cintro-partner 1.2s cubic-bezier(.33, 0, .2, 1) .45s both;
}

.cintro.is-go .cintro__aura {
  animation: cintro-aura 1.4s ease-out .3s both;
}

.cintro.is-go .cintro__side--partner .cintro__aura {
  animation-delay: .55s;
}

.cintro.is-go .cintro__name--ours {
  animation: cintro-name .4s cubic-bezier(.22, 1, .36, 1) 1.3s both;
}

.cintro.is-go .cintro__name--partner {
  animation: cintro-name .4s cubic-bezier(.22, 1, .36, 1) 1.38s both;
}

.cintro.is-go .cintro__mark {
  animation: cintro-mark .7s cubic-bezier(.22, 1, .36, 1) 1.02s both, cintro-rise .4s cubic-bezier(.33, 0, .2, 1) 1.25s both;
}

.cintro.is-go .cintro__stroke--gold {
  animation: cintro-stroke .4s cubic-bezier(.65, 0, .35, 1) 1.05s both;
}

.cintro.is-go .cintro__stroke--spectrum {
  animation: cintro-stroke .4s cubic-bezier(.65, 0, .35, 1) 1.12s both;
}

.cintro.is-go .cintro__flare {
  animation: cintro-flare .55s ease-out 1.18s both;
}

.cintro.is-go .cintro__ring {
  animation: cintro-ring .5s cubic-bezier(.65, 0, .35, 1) 1.2s both;
}

.cintro.is-go .cintro__sweep {
  animation: cintro-sweep .5s cubic-bezier(.45, 0, .25, 1) 1.5s both;
}

.cintro.is-go .cintro__mote {
  animation: cintro-mote .7s ease-out 1.55s both;
}

.cintro.is-go .cintro__mote--2,
.cintro.is-go .cintro__mote--5 { animation-delay: 1.62s; }

.cintro.is-go .cintro__mote--3,
.cintro.is-go .cintro__mote--7 { animation-delay: 1.7s; }

@keyframes cintro-ours {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(calc(150 * var(--u)), 0, calc(-240 * var(--u))) rotateY(-50deg) scale(.82);
    filter: blur(calc(12 * var(--u)));
  }
  34% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(calc(108 * var(--u)), 0, 0) rotateY(-16deg) scale(1);
    filter: blur(0);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(calc(102 * var(--u)), 0, 0) rotateY(-11deg) scale(1);
    filter: blur(0);
  }
  69%, 72% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(calc(88 * var(--u)), 0, calc(20 * var(--u))) rotateY(0) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(calc(112 * var(--u)), calc(-30 * var(--u)), 0) rotateY(-7deg) scale(.9);
    filter: blur(0);
  }
}

@keyframes cintro-partner {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(calc(-150 * var(--u)), 0, calc(-240 * var(--u))) rotateY(50deg) scale(.82);
    filter: blur(calc(12 * var(--u)));
  }
  37.5% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(calc(-106 * var(--u)), 0, 0) rotateY(14deg) scale(1);
    filter: blur(0);
  }
  62.5%, 66.7% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(calc(-88 * var(--u)), 0, calc(20 * var(--u))) rotateY(0) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(calc(-112 * var(--u)), calc(-30 * var(--u)), 0) rotateY(7deg) scale(.9);
    filter: blur(0);
  }
}

@keyframes cintro-aura {
  0% { opacity: 0; transform: scale(.6); }
  45% { opacity: 1; transform: scale(1.05); }
  100% { opacity: .55; transform: scale(1); }
}

@keyframes cintro-name {
  from { opacity: 0; transform: translateY(calc(10 * var(--u))); }
  to { opacity: 1; transform: none; }
}

@keyframes cintro-mark {
  from { transform: rotate(-24deg) scale(.7); }
  to { transform: none; }
}

@keyframes cintro-rise {
  from { margin-top: 0; }
  to { margin-top: calc(-27 * var(--u)); }
}

@keyframes cintro-stroke {
  from { opacity: 0; transform: rotate(var(--turn)) scaleX(0); }
  35% { opacity: 1; }
  to { opacity: 1; transform: rotate(var(--turn)) scaleX(1); }
}

/* the ring draws itself round (a conic mask; browsers that can't animate it simply show it) */
@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes cintro-ring {
  from { opacity: 0; --sweep: 0deg; transform: rotate(-90deg) scale(.86); }
  30% { opacity: 1; }
  to { opacity: 1; --sweep: 360deg; transform: rotate(-90deg) scale(1); }
}

@keyframes cintro-flare {
  0% { opacity: 0; transform: scale(0); }
  40% { opacity: 1; transform: scale(1.35); }
  100% { opacity: .75; transform: scale(.72); }
}

@keyframes cintro-sweep {
  0% { opacity: 0; transform: translateX(-55%); }
  25% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(55%); }
}

@keyframes cintro-mote {
  0% { opacity: 0; transform: translate(calc(var(--mx) * var(--u) * .4), calc(var(--my) * var(--u) * .4)) scale(.4); }
  35% { opacity: .9; }
  100% { opacity: 0; transform: translate(calc(var(--mx) * var(--u)), calc((var(--my) - 26) * var(--u))) scale(1); }
}

@keyframes cintro-bar {
  from { transform: translateY(var(--from)); }
  to { transform: none; }
}

@keyframes cintro-bar-open {
  from { transform: none; }
  to { transform: translateY(var(--from)); }
}

@keyframes cintro-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cintro-scene-out {
  from { opacity: 1; transform: none; filter: blur(0); }
  to { opacity: 0; transform: scale(1.06); filter: blur(calc(6 * var(--u))); }
}

@keyframes cintro-out {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

/* a weak phone: the same ident, without the depth blurs and the 3D (smooth over pretty) */
.cintro--lite .cintro__scene,
.cintro--lite .cintro__side,
.cintro--lite .cintro__seal,
.cintro--lite .cintro__logo,
.cintro--lite .cintro__name {
  filter: none !important;
  perspective: none;
}

.cintro--lite .cintro__aura,
.cintro--lite .cintro__sweep,
.cintro--lite .cintro__mote {
  display: none;
}

/* Phase 8 track P (owner, 2026-11-04): part of the page, not a scene. Under the page's own top bar and the
   phones' bottom bar (z-index), on the page's navy with a soft gold room, no letterbox, no «تخطي». At the end the
   stage opens from the centre (a widening window) onto the page, which settles in under it. */
@property --cintro-hole {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.cintro {
  z-index: 9;
  background:
    radial-gradient(60% 46% at 50% 46%, rgba(var(--gold-rgb), .12), transparent 70%),
    radial-gradient(80% 60% at 50% 46%, rgba(18, 56, 95, .6), transparent 75%),
    linear-gradient(180deg, var(--navy-900, #061a31), var(--ink, #020914) 70%);
}

.cintro__bar,
.cintro__skip {
  display: none;
}

.cintro.is-go,
.cintro.is-go .cintro__scene {
  animation: none;
}

.cintro.is-open {
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--cintro-hole), #000 calc(var(--cintro-hole) + 18%));
  mask: radial-gradient(circle at 50% 46%, transparent var(--cintro-hole), #000 calc(var(--cintro-hole) + 18%));
  animation: cintro-open .75s cubic-bezier(.65, 0, .35, 1) both;
}

.cintro.is-open .cintro__scene {
  animation: cintro-scene-out .5s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes cintro-open {
  0% { --cintro-hole: 0%; opacity: 1; }
  80% { opacity: 1; }
  100% { --cintro-hole: 140%; opacity: 0; }
}

/* the page settles in as the stage opens */
html[data-collab-reveal] .pg {
  animation: cintro-page .8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cintro-page {
  from { opacity: .4; transform: scale(.985); filter: blur(4px); }
}

/* reduced motion never gets here (collab.js), but just in case */
@media (prefers-reduced-motion: reduce) {
  .cintro {
    display: none;
  }
}


/* ---------- motion (only for people who are fine with it) ---------- */

@media (prefers-reduced-motion: no-preference) {

  .pg[data-state="ready"] > * {
    animation: rise-in .5s var(--ease-out) both;
  }

  .phero__title,
  .phero__lead {
    animation: rise-in .7s var(--ease-out) .08s both;
  }

  .mcard__img,
  .ecard__img {
    transition: transform .45s var(--ease-out);
  }

  .mcard:hover .mcard__img,
  .ecard:hover .ecard__img {
    transform: scale(1.035);
  }

  .mcard__play {
    transition: transform .25s var(--ease-out), background-color .2s;
  }

  .mcard:hover .mcard__play {
    transform: scale(1.08);
    background: rgba(2, 9, 20, .8);
  }

  .btn,
  .stepper__btn {
    transition: transform .2s var(--ease-out), background-color .2s, border-color .2s;
  }

  .btn:active,
  .stepper__btn:active:not(:disabled) {
    transform: scale(.97);
  }

  .vsheet[open] .vsheet__panel {
    animation: rise-in .35s var(--ease-out) both;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

}


/* =========================================================
   ONLINE BOOKING (booking.js, status.js; docs/EVENTS.md §7.1)
   Only when event.json says booking.online. The Phase 3 area stays
   underneath; while the live state says «open» the flow takes the place
   of the WhatsApp counter and the servants list (back on a fallback).
========================================================= */

.book.is-online[data-live="open"] > .prices > .prices__hint,
.book.is-online[data-live="open"] > .prices > .prices__total,
.book.is-online[data-live="open"] > .prices .stepper,
.book.is-online[data-live="open"] > .book__line,
.book.is-online[data-live="open"] > .people--servants {
  display: none;
}

.bk {
  display: grid;
  gap: 14px;
}

.bk__left {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-hi);
}

.bk__state {
  font-weight: 800;
  color: var(--text);
}

.bk__mine {
  display: grid;
  gap: 8px;
}

/* «حجزك B-XXXXX: قيد المراجعة» → the status view */
.bk-mine {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--gold-line-strong);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: rgba(2, 9, 20, .5);
}

.bk-mine:hover {
  border-color: var(--accent);
}

.bk-mine__status {
  color: var(--accent-hi);
}

/* the same colours as the status view (.bstat__chip): confirmed green, closed ones muted */
.bk-mine[data-status="confirmed"] .bk-mine__status {
  color: var(--ok);
}

.bk-mine[data-status="rejected"] .bk-mine__status,
.bk-mine[data-status="cancelled"] .bk-mine__status,
.bk-mine[data-status="withdrawn"] .bk-mine__status {
  color: var(--text-2);
}

.bk-mine__go {
  flex: none;
  width: 20px;
  height: 20px;
  margin-inline-start: auto;
  color: var(--accent-hi);
}

.bk-start {
  width: 100%;
}

.bk-note {
  font-size: .95rem;
  color: var(--text-2);
}

.bk-note--strong {
  font-weight: 800;
  color: var(--text);
}

.bk-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  cursor: pointer;
}

/* ---------- the steps ---------- */

.bk-flow {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--gold-line-strong);
  border-radius: var(--radius-lg);
  background: rgba(2, 9, 20, .55);
  scroll-margin-top: 70px;
}

.bk-flow__progress {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-3);
}

.bk-flow__title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--gold-hi);
}

.bk-alert {
  padding: 10px 14px;
  border: 1px solid rgba(255, 138, 125, .5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--carmine-hi);
  background: rgba(200, 67, 58, .12);
}

.bk-alert[data-tone="info"] {
  border-color: var(--gold-line-strong);
  color: var(--accent-hi);
  background: rgba(var(--gold-rgb), .08);
}

.bk-form {
  display: grid;
  gap: 18px;
}

.bk-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bk-field__label {
  padding: 0;
  font-weight: 800;
}

.bk-field__hint {
  font-size: .88rem;
  color: var(--text-3);
}

.bk-field__err {
  font-size: .9rem;
  font-weight: 700;
  color: var(--carmine-hi);
}

.bk-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--navy-850);
}

.bk-input:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 1px;
}

.bk-input[aria-invalid="true"] {
  border-color: var(--carmine-hi);
}

/* a phone number reads left to right, lined up with the words */
.bk-input--ltr {
  text-align: right;
}

.bk-textarea {
  min-height: 96px;
  line-height: 1.6;
  resize: vertical;
}

.bk-prices {
  padding: 12px;
}

.bk-names {
  display: grid;
  gap: 10px;
}

.bk-names__row {
  display: grid;
  gap: 4px;
}

/* the honeypot: never seen, never reached */
.bk-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* the Turnstile check (turnstile.js): its iframe fills the row; room kept so the send button doesn't jump */
.bk-turnstile {
  min-height: 65px;
  max-width: 100%;
  overflow: hidden;
}

.bk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bk-actions > .btn {
  flex: 1 1 140px;
}

.bk-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.bk-total strong {
  font-size: 1.25rem;
  color: var(--gold-hi);
}

/* a servant / a method: the whole card is the choice (the radio inside, out of sight) */
.bk-picks {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .bk-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bk-pick,
.bk-chip {
  position: relative;
  cursor: pointer;
}

.bk-pick input,
.bk-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.bk-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: rgba(2, 9, 20, .45);
}

.bk-pick:hover {
  border-color: var(--gold-line-strong);
}

.bk-pick:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--navy-900));
  box-shadow: inset 0 0 0 1px var(--accent);
}

.bk-pick:has(input:focus-visible),
.bk-chip:has(input:focus-visible) {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

.bk-pick__who {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bk-pick__name {
  font-weight: 800;
  line-height: 1.4;
}

.bk-pick__role,
.bk-pick__methods {
  font-size: .86rem;
  line-height: 1.45;
  color: var(--text-2);
}

.bk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 18px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  font-weight: 800;
  background: var(--navy-850);
}

.bk-chip:has(input:checked) {
  border-color: transparent;
  color: var(--accent-ink);
  background: var(--accent);
}

.bk-wa,
.bk-pay {
  display: grid;
  gap: 8px;
}

/* ---------- the payment card (InstaPay / wallet: the approved number) ---------- */

.bk-paycard {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--gold-line-strong);
  border-radius: var(--radius-md);
  background: rgba(2, 9, 20, .55);
}

.bk-paycard__amount {
  margin: 0;
}

.bk-paycard__amount strong {
  color: var(--gold-hi);
}

.bk-paycard__label,
.bk-paycard__name {
  margin: 0;
  font-size: .92rem;
  opacity: .85;
}

.bk-paycard__number {
  margin: 0;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-hi);
  user-select: all;
  -webkit-user-select: all;
}

.bk-copy {
  justify-self: center;
  min-height: 44px;
  min-width: 11rem;
}

.bk-copy.is-done {
  border-color: transparent;
  color: var(--gold-ink);
  background: var(--gold);
}

.bk-paycard__help:empty {
  display: none;
}

.bk-paycard__steps {
  margin: 0;
  padding-inline-start: 1.3rem;
  display: grid;
  gap: 4px;
  font-size: .92rem;
}

.bk-copy-field {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- cash with the servant (for information) ---------- */

.bk-cash {
  display: grid;
  gap: 8px;
  margin-block-start: 6px;
  padding: 12px 14px;
  border: 1px dashed var(--gold-line-strong);
  border-radius: var(--radius-md);
}

.bk-cash__title {
  margin: 0;
  font-weight: 700;
}

.bk-cash__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bk-cash__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.bk-cash__wa {
  min-height: 40px;
}

/* ---------- proof pictures ---------- */

.bk-proofs {
  display: grid;
  gap: 8px;
}

.bk-proofs:empty {
  display: none;
}

.bk-proof {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: rgba(2, 9, 20, .45);
}

.bk-proof[data-state="failed"] {
  border-color: rgba(255, 138, 125, .5);
}

.bk-proof__img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--navy-800);
}

.bk-proof__img--none {
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.bk-proof__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bk-proof__name {
  font-weight: 800;
}

.bk-proof__state {
  font-size: .86rem;
  color: var(--text-2);
}

.bk-proof[data-state="done"] .bk-proof__state,
.bk-proof[data-state="saved"] .bk-proof__state {
  color: var(--ok-hi);
}

.bk-proof[data-state="failed"] .bk-proof__state {
  color: var(--carmine-hi);
}

.bk-proof__bar {
  width: 100%;
  height: 6px;
  accent-color: var(--accent);
}

.bk-proof__acts {
  display: grid;
  gap: 6px;
}

.bk-proof__btn {
  min-height: 44px;
  padding: 6px 14px;
  font-size: .9rem;
}

.bk-add {
  justify-self: start;
}

.bk-add .ic {
  width: 20px;
  height: 20px;
}

.bk-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
}

.bk-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}

.bk-sum {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: rgba(2, 9, 20, .35);
}

.bk-sum > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
}

.bk-sum dt {
  color: var(--text-2);
}

.bk-sum dd {
  margin: 0;
  font-weight: 800;
}

/* ---------- done, and the status view ---------- */

.bk-done__ref {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.bk-done__code {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gold-hi);
}

.bk-done__status,
.bstat__chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  padding: 2px 14px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--accent-hi);
  background: rgba(6, 26, 49, .8);
}

.bstat__chip[data-status="confirmed"] {
  border-color: transparent;
  color: #04190f;
  background: var(--ok);
}

.bstat__chip[data-status="rejected"],
.bstat__chip[data-status="cancelled"],
.bstat__chip[data-status="withdrawn"] {
  color: var(--text-2);
  background: rgba(255, 255, 255, .06);
}

.bk-done__copy {
  display: flex;
  gap: 8px;
}

.bk-done__copy .bk-input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .85rem;
}

.bk-copy {
  flex: none;
}

.bstat {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 5vw, 28px) var(--pad);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 60% at 50% -20%, var(--accent-glow), transparent 70%),
    var(--navy-900);
  scroll-margin-top: 70px;
}

.bstat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.bstat__title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--gold-hi);
}

.bstat__reason > span {
  color: var(--text-2);
}

.bstat__cancel {
  border-color: rgba(255, 138, 125, .45);
  color: var(--carmine-hi);
}

.bstat__yes {
  border-color: transparent;
  color: #fff;
  background: var(--carmine);
}

.bstat__yes:hover {
  border-color: transparent;
  background: #b23a32;
}

.bstat__confirm {
  display: grid;
  gap: 10px;
  width: 100%;
}

.bstat__ask {
  font-weight: 800;
}

.bk-paycard__ask {
  justify-self: center;
  min-height: 40px;
  font-size: .9rem;
}

/* ---------- «إضافة فرد»: a card per person (name + age) ---------- */

.bk-people {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.bk-person {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: rgba(2, 9, 20, .45);
}

.bk-person__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
}

.bk-person__price {
  margin-inline-start: auto;
  color: var(--gold-hi);
  font-size: .9rem;
}

.bk-person__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  gap: 8px;
}

/* the booker's date of birth (age eligibility): day · month · year in one row */
.bk-dob {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 8px;
}

/* the browser's own arrow, and just enough room for «سبتمبر» / «٢٠٠١» at 360px */
.bk-dob__select {
  padding-inline: 8px;
  text-overflow: clip;
}

.bk-person__age[readonly] {
  opacity: .75;
}

.bk-people__room.is-full {
  color: var(--gold-hi);
  font-weight: 700;
}

/* «دفع كامل» / «دفع قسط» (installments): two big choices, then the amount and what's left */
.bk-plan-wrap:empty {
  display: none;
}

.bk-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bk-plan {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  background: rgba(2, 9, 20, .45);
  cursor: pointer;
}

.bk-plan input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.bk-plan:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--navy-900));
  box-shadow: inset 0 0 0 1px var(--accent);
}

.bk-plan:has(input:focus-visible) {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

.bk-plan__title {
  font-size: 1.08rem;
  font-weight: 800;
}

.bk-plan__sub {
  font-size: .95rem;
  color: var(--gold-hi);
}

.bk-plan__box {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
}

.bk-plan__input {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
  max-width: 220px;
}

.bk-plan__sum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.bk-plan__sum > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(2, 9, 20, .5);
}

.bk-plan__sum dt {
  font-size: .9rem;
  opacity: .85;
}

.bk-plan__sum dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.bk-plan__rest dd {
  color: var(--gold-hi);
}

.bk-plan__note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.bk-paycard__amount {
  font-size: 1.08rem;
}

.bk-paycard__rest {
  margin-inline-start: .5em;
  font-size: .95rem;
  opacity: .85;
}

@media (max-width: 420px) {
  .bk-plan__sum {
    grid-template-columns: 1fr;
  }
  .bk-plan__sum > div {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Phase 1 final polish: calmer rhythm in «احجز الآن» and the payment step (no redesign) */
.book__pay,
.book__cap {
  font-size: 1rem;
  line-height: 1.75;
}

.book__line {
  margin-top: 14px;
}

/* one servant: lined up with the text above (not floating in the middle) */
.people.people--servants:has(> li:only-child) {
  justify-content: start;
}

.bk-form {
  row-gap: 20px;
}

.bk-paycard {
  gap: 10px;
  padding: 18px 16px;
}

.bk-paycard__steps {
  gap: 6px;
  font-size: 1rem;
  line-height: 1.7;
}

.bk-paycard__label,
.bk-paycard__name {
  font-size: 1rem;
}

.bk-total {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(2, 9, 20, .45);
}

.bk-done__contact {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 6px;
}

/* the account's icon (assets/js/account/link.js): the control is the door, and the photo fills it */
.acct-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.acct-badge__face {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  overflow: hidden;
  border-radius: 20px 20px 7px 7px;
  font: 700 1.3rem / 1 var(--font-display);
  color: var(--gold-hi);
  background: rgba(6, 26, 49, .8);
  transition: filter .16s;
}

.acct-badge__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--gold-line-strong);
  pointer-events: none;
}

.acct-badge:hover .acct-badge__face {
  filter: brightness(1.14);
}

.acct-badge.is-in .acct-badge__face {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
}

.acct-badge.is-in .acct-badge__face::after {
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.acct-badge__face img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.acct-badge__face svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the name stays on a phone too (site redesign W1/S5: it used to hide); it gives way by ellipsis */

/* moving between the site's pages feels like one app: the browser keeps the bar still and fades the page
   (Phase 8 track P, assets/js/nav.js). Where unsupported, the page simply loads. */
@view-transition {
  navigation: auto;
  types: site-page;
}

/* only for a move between pages (the type), so a page's own transitions (the account's sign-in) stay as they were */
html:active-view-transition-type(site-page) :is(.topbar, .pbar, .cbar) {
  view-transition-name: site-topbar;
}

html:active-view-transition-type(site-page) .tabbar {
  view-transition-name: site-tabbar;
}

html:active-view-transition-type(site-page)::view-transition-old(root),
html:active-view-transition-type(site-page)::view-transition-new(root) {
  animation-duration: .22s;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* «ارجع للموقع» as the Home icon from the very first frame (Phase 8 track P; the link and its words stay for no-JS
   and the page builders' markup; nav.js names it). Here, in the page's own stylesheet, so it never shows as text. */
.pbar__home {
  position: relative;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 !important;
  border: 1px solid var(--gold-line-strong, rgba(var(--gold-hi-rgb), .36));
  border-radius: 50%;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  white-space: nowrap;
  text-decoration: none;
}

.pbar__home::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background: var(--gold-hi, rgb(var(--gold-hi-rgb)));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.6 12 4l8 6.6V19a1.5 1.5 0 0 1-1.5 1.5H15v-5.5h-6v5.5H5.5A1.5 1.5 0 0 1 4 19z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.6 12 4l8 6.6V19a1.5 1.5 0 0 1-1.5 1.5H15v-5.5h-6v5.5H5.5A1.5 1.5 0 0 1 4 19z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pbar__home:hover {
  background: var(--navy-800, #0b2a4c);
}

/* coming back from the account or «نقاطي» (Phase 8 track P, nav.js): what the page draws first rises into place */
html[data-arrive] main > * {
  animation: nav-arrive .55s cubic-bezier(.22, 1, .36, 1) backwards;
}

html[data-arrive] main > *:nth-child(2) { animation-delay: .06s; }
html[data-arrive] main > *:nth-child(n+3) { animation-delay: .12s; }

@keyframes nav-arrive {
  from { opacity: 0; transform: translateY(16px); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-arrive] main > * { animation: none; }
}

/* =========================================================
   «الكل ‹» PAGES (site redesign S2, approved 2026-11-13; assets/js/page/lists.js): back to the home, the filters,
   the months, and the home's own cards (the poster cards of the events, the news cards) in a grid.
   The cards are the home's (main.css «HOME»), the same rules here.
========================================================= */

.all-page .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.all-page .icon .duo { fill: currentColor; fill-opacity: .16; }
.all-page .icon--brand { fill: currentColor; stroke: none; }

.all-back { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 16px; margin: 14px 0 0; border-radius: 999px; border: 1px solid var(--gold-line-strong); color: var(--gold-soft); font-weight: 800; font-size: .86rem; text-decoration: none; }
.all-back .icon { width: 18px; height: 18px; transform: rotate(-90deg); }
.all-back:hover { background: rgba(var(--gold-rgb), .1); }
.s2-ev__art { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 22%; background: radial-gradient(70% 60% at 50% 30%, rgba(var(--gold-rgb), .16), transparent 70%), var(--navy-850); color: var(--gold-hi); }
.s2-ev__art .icon { width: 64px; height: 64px; stroke-width: 1.3; }

.all-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px calc(-1 * max(16px, env(safe-area-inset-left))) 6px; padding: 2px max(16px, env(safe-area-inset-left)); }
.all-filters::-webkit-scrollbar { display: none; }
.all-filters button { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--gold-line-strong); background: rgb(8 33 61 / .7); color: var(--text); font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.all-filters button[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); border-color: transparent; }

.all-group[hidden], .all-grid > [hidden] { display: none !important; }
.all-month { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-size: .84rem; font-weight: 800; color: var(--text-3); }
.all-month::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.all-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.all-grid--sv { margin-top: 18px; }
.all-grid--ev .s2-ev { aspect-ratio: 16 / 11; }
.all-sv .ecard__cta .icon { width: 18px; height: 18px; flex: none; }

/* the home's cards */
.s2-ev { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 1px solid var(--gold-line-strong); display: flex; align-items: flex-end; background: var(--navy-850); color: var(--text); text-decoration: none; transition: transform .35s var(--ease-out, ease), border-color .2s; }
.s2-ev:hover { transform: translateY(-3px); border-color: var(--gold-hi); }
.s2-ev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s2-ev::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(2 9 20 / .96), rgb(2 9 20 / .25) 58%, transparent); }
.s2-ev__body { position: relative; z-index: 1; padding: 14px; }
.s2-ev__date { display: inline-flex; flex-direction: column; align-items: center; padding: 5px 10px; margin-bottom: 8px; border-radius: 13px; background: rgba(var(--gold-rgb), .18); border: 1px solid var(--gold-line-strong); color: var(--gold-hi); font-weight: 800; line-height: 1.15; }
.s2-ev__date b { font-size: 1.2rem; } .s2-ev__date small { font-size: .7rem; }
.s2-ev h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.s2-ev p { margin: 2px 0 0; font-size: .8rem; color: var(--text-2); }
.s2-ev__tag { display: inline-flex; align-items: center; margin-top: 8px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--gold-hi); color: var(--gold-ink); font-size: .72rem; font-weight: 800; }
.s2-ev.is-over { filter: saturate(.55); }
.s2-ev__tag--over { background: rgb(255 255 255 / .14); color: var(--text-2); }

.s2-nw { position: relative; display: flex; gap: 12px; padding: 14px 14px 38px; border-radius: 18px; border: 1px solid var(--gold-line); background: rgb(8 33 61 / .55); color: var(--text); text-decoration: none; }
.s2-nw:hover { border-color: var(--gold-line-strong); }
.s2-nw__ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--gold-rgb), .14); color: var(--gold-hi); }
.s2-nw b { display: block; font-size: .95rem; line-height: 1.5; } .s2-nw small { display: block; margin-top: 2px; color: var(--text-3); font-size: .76rem; }
.s2-nw__new { position: absolute; top: 10px; inset-inline-end: 12px; height: 20px; padding: 0 8px; border-radius: 999px; background: #ff5c5c; color: #fff; font-size: .66rem; font-weight: 800; display: inline-flex; align-items: center; }

.all-back:focus-visible, .all-filters button:focus-visible, .s2-ev:focus-visible, .s2-nw:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

@media (min-width: 640px) {
  .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .all-filters { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

@media (min-width: 1024px) {
  .all-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .all-grid--ev .s2-ev { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  .s2-ev { transition: none; }
  .s2-ev:hover { transform: none; }
}
.s2-ev .pchip { margin: 4px 0 2px; }


/* =========================================================
   SERVICE PAGE — site redesign S5 (wave 4, W6): the actions under the banner,
   the section bar, the shows first (length, «أحدث عرض», «شاهد كاملة ↗»),
   «عن الخدمة» as a card with the partner, the team as cards, «خدمات تانية»
========================================================= */

/* ---------- hero actions ---------- */
.svc-acts { display: flex; gap: 10px; margin-top: 8px; width: 100%; }
.svc-acts .btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.svc-play { flex: 1; }
.svc-share { flex: none; padding-inline: 18px; }
.svc-ic { display: inline-grid; width: 18px; height: 18px; }
.svc-ic svg, svg.svc-ic { width: 18px; height: 18px; }
.svc-ic--round { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(var(--gold-ink-rgb), .18); }
.svc-ic--round svg { width: 16px; height: 16px; }

/* ---------- section bar ---------- */
.svc-tabs { position: sticky; top: var(--svc-top, 60px); z-index: 5; display: flex; gap: 6px; margin: 18px calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter); background: linear-gradient(180deg, rgba(2, 9, 20, .92), rgba(2, 9, 20, .75)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--gold-line); overflow-x: auto; scrollbar-width: none; }
.svc-tabs a { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; color: var(--text-2); font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s; }
.svc-tabs a.on { color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
/* what scrolls under the bar is frosted, and a soft blurred fade hangs below it so the tabs read clearly */
.svc-tabs { overflow: visible; background: rgba(2, 9, 20, .9); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.svc-tabs::after { content: ''; position: absolute; inset-inline: 0; top: 100%; height: 22px; pointer-events: none; background: linear-gradient(180deg, rgba(2, 9, 20, .7), rgba(2, 9, 20, 0)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
/* the tabs share the bar's width evenly (no empty run at one end) */
.svc-tabs a { flex: 1 0 auto; justify-content: center; }
/* wide screens: the bar's band runs edge to edge, so nothing scrolls past at its sides */
@media (min-width: 900px) { .svc-tabs { justify-content: center; background: none; border-image: linear-gradient(var(--gold-line) 0 1px, rgba(2, 9, 20, .97) 1px calc(100% - 1px), var(--gold-line) 0) fill 0 / 1px 0 / 0 100vmax; }
  .svc-tabs a { flex: 0 0 auto; min-width: 140px; } }
.svc .pg-section { scroll-margin-top: 130px; }
.svc-h { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 6.4vw, 2.2rem); color: var(--gold-hi); margin: 0 0 12px; }
.svc .pg-head__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 6.4vw, 2.2rem); color: var(--gold-hi); }

/* ---------- shows ---------- */
.svc .mcard__media { position: relative; }
.svc-len { position: absolute; z-index: 2; bottom: 10px; inset-inline-start: 10px; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; background: rgba(2, 9, 20, .78); color: var(--text); font-size: .76rem; font-weight: 800; direction: rtl; }
.svc-new { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; height: 26px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-size: .76rem; font-weight: 900; }
.svc .mcard__play { transform: scale(1.15); }
.svc-full { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gold-line-strong); color: var(--gold-hi); font-weight: 800; font-size: .86rem; text-decoration: none; background: rgba(2, 9, 20, .35); }
.svc-full:hover { background: rgba(var(--gold-rgb), .12); }
.svc-full .svc-ic, .svc-full svg.svc-ic { width: 16px; height: 16px; }

/* ---------- about ---------- */
.svc .pg-about { max-width: none; padding: 20px; border-radius: var(--radius-lg, 24px); border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); }
.svc .pg-about__p { line-height: 2; }
.svc-partner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gold-line); color: var(--text-3); font-size: .86rem; font-weight: 700; }
.svc-partner img { height: 40px; width: auto; padding: 4px 8px; border-radius: 10px; background: #fff; }

/* ---------- team ---------- */
.svc .team .team__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 6.4vw, 2.2rem); color: var(--gold-hi); }
.svc .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.svc .person { border-radius: var(--radius-md, 18px); }
/* the name gets the card's full width (never cut); WhatsApp sits on its own row under it */
@media (min-width: 480px) {
  .svc .person { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; }
  .svc .person__wa { grid-column: 1 / -1; justify-content: center; }
}
.svc .person__name, .svc .person__role { display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: break-word; }
.svc .person__avatar--initial { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-weight: 900; }

/* ---------- other services ---------- */
.svc-more__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-more__card { display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 14px; padding: 10px; border-radius: var(--radius-lg, 24px); border: 1px solid var(--gold-line); background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: var(--text); text-decoration: none; transition: transform .25s, border-color .2s; }
.svc-more__card:hover { transform: translateY(-2px); border-color: var(--gold-line-strong); }
.svc-more__card img { width: 132px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.svc-more__body b { display: block; font-size: 1.05rem; }
.svc-more__body small { display: block; color: var(--text-2); font-size: .82rem; line-height: 1.6; }
.svc-more__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-weight: 900; font-size: 1.2rem; }

@media (min-width: 900px) {
  .svc-acts { width: auto; }
  .svc-play { flex: none; padding-inline: 28px; }
  .svc .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc .mgrid:has(> li:only-child) { grid-template-columns: minmax(0, 760px); }
  .svc-more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .svc-tabs a, .svc-more__card { transition: none; }
  .svc-more__card:hover { transform: none; }
}


/* =========================================================
   EVENT + BOOKING — site redesign S6 (wave 4, W7): no poster → the date is
   the picture; «فاضل ٤ أيام», «من ٧٥ جنيه للفرد»; the facts as two tiles; the
   phone's booking bar; the steps as a stepper; the pay card and the done
   screen as tickets; on a wide screen the booking beside the details.
   The event's theme colour is --accent.
========================================================= */

/* hero without a poster: the date is the picture */
.evt .evt-media { display: grid; place-items: center; max-height: 46vh; aspect-ratio: 4 / 3.2; background: radial-gradient(70% 80% at 50% 110%, var(--accent-glow), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 16px), var(--navy-850); }
.evt .evt-media > *:not(.evt-date) { display: none !important; }
.evt-date { position: relative; z-index: 1; display: grid; justify-items: center; width: min(62vw, 240px); padding: 0 0 18px; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 60px -30px #000, 0 0 60px -10px var(--accent-glow); }
.evt-date__wd { width: 100%; padding: 10px; text-align: center; font-weight: 800; color: var(--ink, #020914); background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }
.evt-date__d { font-size: clamp(4.4rem, 22vw, 6.4rem); line-height: 1.1; font-weight: 900; color: var(--text); margin-top: 8px; }
.evt-date__m { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent-hi); }
.evt-left { order: -1; height: 30px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent-hi); font-weight: 800; font-size: .86rem; }
.evt-from { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 0; color: var(--text-2); font-size: .9rem; }
.evt-from b { font-size: 1.5rem; font-weight: 900; color: var(--text); }

/* the facts as two tiles */
.evt .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; border: 0; background: none; }
.evt .facts > * { padding: 14px; border-radius: var(--radius-md, 18px); border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); margin: 0; }

/* the phone's booking bar */
.evt-dock { position: fixed; z-index: 40; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px; padding-inline-start: 16px; border-radius: 22px; border: 1px solid var(--gold-line-strong); background: rgba(6, 26, 49, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 40px -16px #000; transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s; }
.evt-dock.is-off { transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s, visibility 0s .35s; }
.evt-dock__info { flex: 1; min-width: 0; }
.evt-dock__info b { display: block; font-size: .95rem; }
.evt-dock__info small { display: block; color: var(--text-2); font-size: .78rem; }
.evt-dock .btn { flex: none; min-height: 48px; padding-inline: 22px; }
@media (min-width: 900px) { .evt-dock { display: none; } }

/* the stepper */
.bk-steps { list-style: none; display: flex; margin: 4px 0 18px; padding: 0; }
.bk-steps li { position: relative; flex: 1; display: grid; justify-items: center; gap: 6px; color: var(--text-3); font-size: .8rem; font-weight: 700; }
.bk-steps li + li::before { content: ""; position: absolute; top: 17px; inset-inline-end: 50%; width: 100%; height: 2px; background: rgba(255, 255, 255, .12); z-index: 0; }
.bk-steps li.is-done + li::before, .bk-steps li.is-on::before { background: linear-gradient(90deg, var(--accent), var(--accent-hi)); }
.bk-steps__n { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-850); border: 2px solid rgba(255, 255, 255, .16); font-weight: 900; }
.bk-steps li.is-on { color: var(--text); }
.bk-steps li.is-on .bk-steps__n { border-color: var(--accent-hi); color: var(--accent-hi); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.bk-steps li.is-done .bk-steps__n { background: var(--accent); border-color: var(--accent); color: var(--ink, #020914); }

/* choices: bigger, clearer selected */
.evt .bk-pick { border-radius: var(--radius-md, 18px); }
.evt .bk-choices label, .evt .bk-chip { min-height: 48px; }

/* the pay card as a ticket */
.evt .bk-paycard { position: relative; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--navy-900); }
.evt .bk-paycard__number { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: .04em; padding: 10px; border-radius: 14px; background: rgba(2, 9, 20, .5); }
.evt .bk-paycard__steps { counter-reset: p; list-style: none; padding: 0; display: grid; gap: 8px; }
.evt .bk-paycard__steps li { counter-increment: p; display: flex; gap: 10px; align-items: flex-start; }
.evt .bk-paycard__steps li::before { content: counter(p, arabic-indic); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-hi); font-weight: 900; font-size: .8rem; }

/* done: a ticket with a track */
.evt .bk-ticket { position: relative; padding-top: 22px; border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%), var(--navy-900); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.evt .bk-done__code { font-size: clamp(2.2rem, 10vw, 3rem); letter-spacing: .06em; }
.bk-ticket__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; padding: 14px 0; border-block: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); }
.bk-ticket__row { display: block; }
.bk-ticket__meta small { display: block; color: var(--text-3); font-size: .74rem; }
.bk-ticket__meta b { display: block; font-size: .9rem; }
.bk-track { list-style: none; display: flex; margin: 14px 0; padding: 0; }
.bk-track li { position: relative; flex: 1; display: grid; justify-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--text-3); text-align: center; }
.bk-track li + li::before { content: ""; position: absolute; top: 9px; inset-inline-end: 50%; width: 100%; height: 2px; background: rgba(255, 255, 255, .14); }
.bk-track li.is-on::before { background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, .14)); }
.bk-track i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-850); border: 2px solid rgba(255, 255, 255, .2); }
.bk-track li.is-done { color: var(--text); }
.bk-track li.is-done i { background: var(--accent); border-color: var(--accent); }
.bk-track li.is-on { color: var(--accent-hi); }
.bk-track li.is-on i { border-color: var(--accent-hi); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); animation: bk-pulse 1.6s ease-in-out infinite; }
@keyframes bk-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 8%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .bk-track li.is-on i { animation: none; }
  .evt-dock, .evt-dock.is-off { transition: none; }
}

/* a wide screen: the booking beside the details */
@media (min-width: 1100px) {
  .evt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .evt > * { grid-column: 1; }
  .evt > #book { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 84px; margin-top: 0; }
}

/* ---------- 404 — site redesign S8 (404.html): the logo in an arch, the message in Ruqaa, the usual places ---------- */
.nf { display: grid; justify-items: center; text-align: center; gap: 10px; max-width: 520px; margin: clamp(24px, 6vh, 64px) auto 40px; padding: 28px 20px 24px; border-radius: 28px; border: 1px solid var(--gold-line); background: radial-gradient(80% 60% at 50% 0%, rgba(var(--gold-rgb), .14), transparent 70%), linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.nf__arch { width: 132px; height: 156px; padding: 14px; border-radius: 66px 66px 22px 22px; border: 1px solid var(--gold-line-strong); background: var(--navy-850); display: grid; place-items: center; box-shadow: 0 0 50px -10px rgba(var(--gold-rgb), .35); }
.nf__arch img { width: 100%; height: auto; border-radius: 50%; }
.nf__code { margin: 6px 0 0; font-size: 2.6rem; line-height: 1; font-weight: 900; color: rgba(var(--gold-hi-rgb), .35); letter-spacing: .1em; }
.nf__t { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 7vw, 2.4rem); color: var(--gold-hi); line-height: 1.4; }
.nf__s { margin: 0; color: var(--text-2); line-height: 1.8; }
.nf__go { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 10px 0 0; padding: 0; list-style: none; }
.nf__a { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--gold-line); background: rgba(255, 255, 255, .03); color: var(--text); text-decoration: none; font-weight: 700; font-size: .84rem; }
.nf__a svg { width: 24px; height: 24px; color: var(--gold-hi); }
.nf__a:hover { border-color: var(--gold-line-strong); }
.nf__a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.nf__home { width: 100%; margin-top: 8px; min-height: 50px; }
