/* =========================================================
   أسرة البابا أثناسيوس — public portal
   Widget hub structure, modern Coptic material, a touch of
   the Red Sea around the location. See DESIGN.md.
========================================================= */


/* ---------- fonts (self-hosted) ----------
   The space (U+0020, U+00A0) is in the Arabic files, so it is mapped
   there: an Arabic sentence never loads a Latin file for its spaces.
   Cairo's Latin is split (tools/subset-fonts.mjs): punctuation + digits
   (+ the "QR" of the share button) load when used; letters only when a
   text really contains English. Keep these ranges in sync with the script. */

@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;
}

@font-face {
  font-family: "Aref Ruqaa";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/aref-ruqaa-latin.woff2") format("woff2");
  unicode-range: U+0022-007E, U+00A1-00FF, U+2000-200B, U+200F, U+2012-206F;
}


/* ---------- tokens ---------- */

: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 */


  /* family navy + gold (shared with صوتك يهمنا) */
  --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-soft: rgb(var(--gold-soft-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;

  /* Red Sea, used around the location only */
  --sea: #4cc3cb;
  --sea-deep: #0b3f4f;

  /* from the robe in the icon; alerts, "live", "جديد" */
  --carmine: #c8433a;
  --carmine-hi: #ff8a7d;

  --whatsapp: #25d366;

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

  --gap: 14px;
  --pad: clamp(16px, 4.6vw, 24px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);

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

  /* z-index scale */
  --z-backdrop: 0;
  --z-content: 1;
  --z-raised: 2;
  --z-toast: 30;

  color-scheme: dark;

}


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

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

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


/* ---------- scrollbars: mouse screens only (touch keeps its own) ----------
   Same tokens as the admin. Chromium ignores ::-webkit-scrollbar once a
   standard scrollbar-* is set, so those are for Firefox only. */

:root {
  --sb-size: 10px;
  --sb-thumb: rgba(var(--gold-rgb), .42);
  --sb-thumb-hover: rgba(var(--gold-hi-rgb), .75);
  --sb-track: rgba(255, 255, 255, .035);
  --sb-firefox: rgba(var(--gold-rgb), .45);
}

@media (hover: hover) and (pointer: fine) {

  /* the page never jumps sideways when a sheet locks its scrolling */
  html {
    scrollbar-gutter: stable;
  }

  @supports not selector(::-webkit-scrollbar) {
    :root {
      scrollbar-color: var(--sb-firefox) transparent;
    }
    * {
      scrollbar-width: thin;
    }
  }

  ::-webkit-scrollbar {
    width: var(--sb-size);
    height: var(--sb-size);
  }

  ::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--sb-track);
  }

  /* the thumb sits inset (a transparent border) and grows a little under
     the mouse: easier to grab, never a bright default bar */
  ::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2.5px solid transparent;
    border-radius: 999px;
    background: var(--sb-thumb) padding-box;
  }

  ::-webkit-scrollbar-thumb:hover {
    border-width: 1.5px;
    background-color: var(--sb-thumb-hover);
  }

  ::-webkit-scrollbar-thumb:active {
    border-width: 1.5px;
    background-color: rgba(var(--gold-hi-rgb), .9);
  }

  ::-webkit-scrollbar-corner,
  ::-webkit-scrollbar-button {
    display: none;
    background: transparent;
  }

}

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: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p {
  margin: 0;
}

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

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

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

.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: var(--z-toast);
  inset-inline-start: 12px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--gold-ink);
  background: var(--gold);
  text-decoration: none;
  transition: top .2s var(--ease-out);
}

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

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}


/* ---------- backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -8%, #0e3560 0%, #061a31 46%, var(--ink) 100%);
}

.backdrop__glow {
  position: absolute;
  top: -28vmax;
  left: 50%;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .13) 0%, rgba(var(--gold-rgb), 0) 62%);
  transform: translateX(-50%);
  animation: glow-drift 38s ease-in-out infinite alternate;
  will-change: transform;
}

/* Coptic cross lattice, faded out down the page */
.backdrop__lattice {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M20.6 15h2.8l-.8 6.4 6.4-.8v2.8l-6.4-.8.8 6.4h-2.8l.8-6.4-6.4.8v-2.8l6.4.8Z' fill='none' stroke='%23f2d28b' stroke-opacity='.11' stroke-width='.8'/%3E%3Cg fill='%23f2d28b' fill-opacity='.12'%3E%3Ccircle cx='0' cy='0' r='1.1'/%3E%3Ccircle cx='44' cy='0' r='1.1'/%3E%3Ccircle cx='0' cy='44' r='1.1'/%3E%3Ccircle cx='44' cy='44' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 46% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 46% at 50% 0%, #000 10%, transparent 78%);
}


/* ---------- hub grid ---------- */

.hub {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  width: min(100%, 1120px);
  margin-inline: auto;
  padding:
    max(14px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}


/* ---------- widget surface ---------- */

.widget {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: var(--pad);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .012) 60%),
    var(--navy-900);
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-hi-rgb), .09),
    0 22px 44px -28px rgba(0, 0, 0, .8);
}

.widget__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-2);
}

.widget__title .icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
}


/* ---------- icons ---------- */

.icon {
  width: 24px;
  height: 24px;
}

.icon--line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--line .duo {
  fill: currentColor;
  fill-opacity: .16;
}

.icon--brand {
  fill: currentColor;
}


/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
  transition:
    transform .25s var(--ease-out),
    background-color .2s,
    border-color .2s,
    box-shadow .25s;
}

.btn .icon {
  width: 20px;
  height: 20px;
  flex: none;
}

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

.btn:active {
  transform: scale(.97);
}

.btn--primary {
  color: var(--gold-ink);
  border-color: transparent;
  background: var(--gold);
  box-shadow: 0 8px 22px -10px rgba(var(--gold-rgb), .7);
}

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

.btn--small {
  min-height: 44px;
  padding: 8px 14px;
  font-size: .88rem;
}

.btn--block {
  width: 100%;
}


/* ---------- badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 10px 2px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.6;
  color: #fff;
  background: var(--carmine);
  white-space: nowrap;
}


/* =========================================================
   SKELETON / STATES
========================================================= */

.skeleton {
  min-height: 176px;
  overflow: hidden;
}

.skeleton--tall {
  min-height: 150px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(var(--gold-hi-rgb), .06) 50%, transparent 80%);
  transform: translateX(100%);
  animation: sweep 1.4s ease-in-out infinite;
}

.state-message {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: var(--text-2);
}

.noscript {
  text-align: center;
  color: var(--text-2);
}


/* =========================================================
   MEETING
========================================================= */

.meeting {
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(var(--gold-rgb), .1), rgba(var(--gold-rgb), 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 60%),
    var(--navy-900);
}

.meeting__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.meeting__repeat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 11px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-soft);
  white-space: nowrap;
}

.meeting__headline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 11vw, 3.1rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--gold-hi);
}

.meeting__detail {
  margin-top: 2px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}

.meeting__note {
  margin-top: 6px;
  font-size: .9rem;
  color: var(--text-2);
}

.meeting__note--skip {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--carmine-hi);
}

.meeting__note--skip .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* live state */
.live-dot {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--carmine-hi);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--carmine-hi);
  border-radius: 50%;
  animation: live-ring 1.8s var(--ease-out) infinite;
}

.meeting--live {
  border-color: rgba(255, 138, 125, .45);
}

/* =========================================================
   MEETING JOURNEY
   Seven days ending on the meeting. --now and --goal are positions along
   the strip (0..1, from the start side), --energy (0..1) grows as the
   meeting gets closer, --live (0..1) is progress through a live meeting.
   Only opacity/transform change over time; glows are pseudo-elements.
========================================================= */

.journey {
  --now: 0;
  --goal: 1;
  --energy: 0;
  --live: 0;
  position: relative;
  margin-top: 18px;
  padding: 18px 10px 10px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(120% 140% at calc(100% - var(--goal) * 100%) 0%, rgba(var(--gold-rgb), calc(.04 + .14 * var(--energy))), transparent 60%),
    rgba(2, 9, 20, .38);
}

/* spans the 7 cells exactly: a position on the rail is a time in that day */
.journey__rail {
  position: relative;
  height: 14px;
}

.journey__track,
.journey__fill {
  position: absolute;
  top: 6px;
  height: 2px;
  border-radius: 2px;
}

/* the road ahead: faint, dashed up to the meeting */
.journey__track {
  inset-inline: 0;
  background: repeating-linear-gradient(to left, rgba(255, 255, 255, .16) 0 6px, transparent 6px 11px);
}

/* the road behind: gold, glowing more as the meeting nears */
.journey__fill {
  inset-inline-start: 0;
  width: calc(var(--now) * 100%);
  background: linear-gradient(to left, rgba(var(--gold-rgb), .35), var(--gold) 70%, var(--gold-hi));
  box-shadow: 0 0 calc(4px + 12px * var(--energy)) rgba(var(--gold-hi-rgb), calc(.25 + .5 * var(--energy)));
  transition: width 1.2s var(--ease-out, ease);
}

/* now: a small bright marker that breathes faster when close */
.journey__now {
  position: absolute;
  top: 7px;
  inset-inline-start: calc(var(--now) * 100%);
  width: 12px;
  height: 12px;
  margin-inline-start: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(6, 26, 49, .9), 0 0 calc(6px + 10px * var(--energy)) rgba(var(--gold-hi-rgb), .8);
  transition: inset-inline-start 1.2s var(--ease-out, ease);
}

.journey__pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-hi);
  opacity: 0;
  animation: journey-pulse calc(3.4s - 1.9s * var(--energy)) cubic-bezier(.2, .7, .3, 1) infinite;
}

/* the meeting: a gold ring that gains energy */
.journey__goal {
  position: absolute;
  top: 7px;
  inset-inline-start: calc(var(--goal) * 100%);
  width: 16px;
  height: 16px;
  margin-inline-start: -8px;
  margin-top: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-hi) 0 35%, var(--gold) 36% 60%, transparent 62%);
  box-shadow: 0 0 0 2px rgba(var(--gold-hi-rgb), calc(.25 + .5 * var(--energy)));
}

.journey__goal::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-hi-rgb), .55), transparent 70%);
  opacity: calc(.15 + .85 * var(--energy));
  transform: scale(calc(.6 + .6 * var(--energy)));
}

/* sparks rise from the goal in the last two hours and while live */
.journey__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px;
  border-radius: 50%;
  background: var(--gold-hi);
  opacity: 0;
}

.journey[data-phase="soon"] .journey__spark,
.journey[data-phase="imminent"] .journey__spark,
.journey[data-phase="live"] .journey__spark {
  animation: journey-spark 2.4s ease-out infinite;
}

.journey__spark:nth-child(2) {
  animation-delay: .8s !important;
  --dx: -9px;
}

.journey__spark:nth-child(3) {
  animation-delay: 1.6s !important;
  --dx: 8px;
}

.journey[data-phase="imminent"] .journey__spark {
  animation-duration: 1.5s;
}

/* live: the ring fills with the meeting's progress */
.journey[data-phase="live"] .journey__goal {
  width: 22px;
  height: 22px;
  margin-inline-start: -11px;
  margin-top: -11px;
  background:
    radial-gradient(circle, var(--carmine-hi) 0 30%, transparent 32%),
    conic-gradient(var(--gold-hi) calc(var(--live) * 360deg), rgba(var(--gold-hi-rgb), .2) 0);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 31% 52%, #000 53%);
  mask: radial-gradient(circle, #000 0 30%, transparent 31% 52%, #000 53%);
  animation: journey-live 2.2s ease-in-out infinite;
}

.journey[data-phase="live"] .journey__now {
  opacity: 0;
}

/* a cancelled week: the strip is just the coming days, the meeting beyond */
.journey--far .journey__goal {
  opacity: .5;
}

.journey__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.journey__day {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 4px 0;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-3);
}

.journey__num {
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.journey__day.is-passed {
  opacity: .55;
}

/* today: white, with a quiet frame */
.journey__day.is-today {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  opacity: 1;
}

/* the meeting day: gold, its own marker */
.journey__day.is-meeting {
  color: var(--gold-hi);
  background: rgba(var(--gold-rgb), calc(.06 + .16 * var(--energy)));
  box-shadow: inset 0 0 0 1px rgba(var(--gold-hi-rgb), calc(.2 + .4 * var(--energy)));
}

.journey__day.is-meeting .journey__num::after {
  content: " ✦";
  font-size: .7em;
}

.journey__day.is-cancelled {
  color: var(--carmine-hi);
  text-decoration: line-through;
}

/* the widget itself warms up near the meeting */
.meeting[data-phase="soon"],
.meeting[data-phase="imminent"] {
  border-color: rgba(var(--gold-hi-rgb), .45);
}

@keyframes journey-pulse {
  0% { transform: scale(.6); opacity: .8; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes journey-spark {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--dx, 0), -22px) scale(.4); opacity: 0; }
}

@keyframes journey-live {
  50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .journey__pulse,
  .journey__spark,
  .journey[data-phase="live"] .journey__goal {
    animation: none;
  }
  .journey__fill,
  .journey__now {
    transition: none;
  }
}

.meeting__actions {
  margin-top: 16px;
}

.cal-menu {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cal-menu .btn {
  justify-content: flex-start;
}


/* =========================================================
   ANNOUNCEMENT
========================================================= */

.announcement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 12px;
  padding-block: 16px;
  border-color: var(--gold-line-strong);
  background:
    linear-gradient(135deg, rgba(var(--gold-rgb), .14), rgba(var(--gold-rgb), .03) 70%),
    var(--navy-900);
}

.announcement__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--gold-hi);
  background: rgba(var(--gold-rgb), .14);
}

.announcement__label {
  font-size: .78rem;
  font-weight: 800;
  color: var(--gold);
}

.announcement__text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-line;
}

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

.announcement .btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
}

.announcement--alert {
  border-color: rgba(255, 138, 125, .4);
  background:
    linear-gradient(135deg, rgba(200, 67, 58, .2), rgba(200, 67, 58, .04) 70%),
    var(--navy-900);
}

.announcement--alert .announcement__icon {
  color: var(--carmine-hi);
  background: rgba(200, 67, 58, .2);
}

.announcement--alert .announcement__label {
  color: var(--carmine-hi);
}


/* =========================================================
   FEATURED SERVICE (صوتك يهمنا)
========================================================= */

.featured {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border-color: var(--gold-line-strong);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(var(--gold-rgb), .2), rgba(var(--gold-rgb), 0) 55%),
    linear-gradient(160deg, #0d2f55, var(--navy-900) 70%);
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}

.featured:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--gold-hi-rgb), .6);
  box-shadow:
    inset 0 1px 0 rgba(var(--gold-hi-rgb), .12),
    0 26px 50px -26px rgba(0, 0, 0, .9),
    0 0 40px -12px rgba(var(--gold-rgb), .45);
}

.featured:active {
  transform: scale(.985);
}

.featured:has(.stretched:focus-visible) {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.featured__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 112px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 46px 46px 16px 16px;
  color: var(--gold-hi);
  background:
    radial-gradient(circle at 50% 55%, rgba(var(--gold-rgb), .3), rgba(var(--gold-rgb), 0) 65%),
    var(--navy-950);
}

.featured__art::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold-line);
  border-radius: 41px 41px 12px 12px;
}

.featured__art .icon {
  width: 50px;
  height: 50px;
  stroke-width: 1.4;
}

.featured__art .icon .beat {
  fill: var(--carmine-hi);
  fill-opacity: 1;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}

.featured:hover .featured__art .beat,
.featured.is-new .featured__art .beat {
  animation: heart-beat 1.3s var(--ease-out) .5s 1;
}

.featured__body {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 0;
}

.featured__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
}

.featured__text {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-2);
}

.featured__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 8px;
  padding: 8px 16px;
  overflow: hidden;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  color: var(--gold-ink);
  background: var(--gold);
}

.featured__cta .icon {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease-out);
}

.featured:hover .featured__cta .icon {
  transform: translateX(-4px);
}

/* gold sheen: once on arrival, again on hover */
.featured__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(120%);
}

.featured.is-new .featured__cta::after {
  animation: sheen 1.1s var(--ease-out) .9s 1;
}

.featured:hover .featured__cta::after {
  animation: sheen 1.1s var(--ease-out) 1;
}

/* the whole card is one tap target */
.stretched {
  color: inherit;
  text-decoration: none;
}

.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-raised);
  border-radius: inherit;
}

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


/* =========================================================
   «نقاطي / المتجر» (render.js pointsWidget; the whole card opens points/)
========================================================= */

.points {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  border-color: var(--gold-line-strong);
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), 0) 60%),
    var(--navy-900);
  transition: transform .3s var(--ease-out), border-color .3s;
}

.points:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--gold-hi-rgb), .6);
}

.points:active {
  transform: scale(.985);
}

.points:has(.stretched:focus-visible) {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.points__art {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 50%;
  color: var(--gold-hi);
  background: radial-gradient(circle at 50% 40%, rgba(var(--gold-rgb), .32), rgba(var(--gold-rgb), 0) 70%), var(--navy-950);
}

.points__art .icon {
  width: 28px;
  height: 28px;
}

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

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

/* the state line arrives with points.js: its line is kept meanwhile */
.points__headline {
  min-height: 1.6em;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
}

.points__detail,
.points__season {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text-2);
}

.points__season {
  font-weight: 700;
  color: var(--gold);
}

.points__go {
  color: var(--gold);
}

.points__go .icon {
  width: 20px;
  height: 20px;
}

.points[data-shop="open"] .points__art {
  color: var(--gold-ink);
  background: var(--gold);
}

.points[data-shop="closed"] .points__headline {
  color: var(--text-2);
}

.points.is-waking {
  box-shadow: 0 0 0 1px rgba(var(--gold-hi-rgb), .5), 0 0 42px -10px rgba(var(--gold-rgb), .6);
}

.topbar__nav {
  display: flex;
}

.topbar__nav:has(> [hidden]) {
  display: none;
}

.topbar__points {
  text-decoration: none;
}

.topbar__points[hidden] {
  display: none;
}


/* =========================================================
   LOCATION
========================================================= */

.location {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  padding: 0;
}

.location__map {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid rgba(76, 195, 203, .22);
  background: var(--navy-850);
  scroll-margin-top: 76px;
}

.location__map.is-live {
  height: 280px;
}

/* the map toggle: both labels in one cell, one shown (a steady width) */
.location__toggle-label {
  display: grid;
}

.location__toggle-label > span {
  grid-area: 1 / 1;
}

.location__toggle[aria-expanded="false"] .location__toggle-label > :last-child,
.location__toggle[aria-expanded="true"] .location__toggle-label > :first-child {
  visibility: hidden;
}

.mapart {
  width: 100%;
  height: 100%;
}

.mapart__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  fill: var(--sea);
  fill-opacity: .8;
}

.mapart__ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: map-ring 2.6s var(--ease-out) 3;
  opacity: 0;
}

.mapart__ring--late {
  animation-delay: 1.3s;
}

.location__body {
  display: grid;
  gap: 2px;
  padding: 0 var(--pad) var(--pad);
}

.location__name {
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.45;
}

.location__address,
.location__note {
  font-size: .92rem;
  color: var(--text-2);
}

.location__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.location__actions .btn--primary {
  grid-column: 1 / -1;
}

.location .icon--sea {
  color: var(--sea);
}

/* a narrow card (phones, a tablet's half): the buttons flow, never cut */
@container (max-width: 380px) {

  .location__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .location__actions .btn {
    flex: 1 1 auto;
    padding-inline: 12px;
  }

  .location__actions .btn--primary {
    flex-basis: 100%;
  }

  .location__map.is-live {
    height: auto;
    aspect-ratio: 5 / 4;
    max-height: 320px;
  }

}


/* =========================================================
   LINK SECTIONS (social + others)
========================================================= */

.links-section {
  display: grid;
  gap: 14px;
}

/* home-screen style tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 136px;
  padding: 14px 6px 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, .028);
  transition: transform .28s var(--ease-out), border-color .2s, background-color .2s;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line-strong);
  background: rgba(255, 255, 255, .05);
}

.tile:active {
  transform: scale(.96);
}

.tile__title {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
}

.tile__sub {
  font-size: .76rem;
  line-height: 1.45;
  color: var(--text-2);
}

.tile .badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
}

/* phones: four app icons make a neat 2 × 2, not 3 + 1 */
@media (max-width: 639px) {
  .tiles:has(> li:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* app icons */
.app-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 16px;
  color: var(--gold-hi);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-850));
  box-shadow:
    inset 0 0 0 1px var(--gold-line-strong),
    0 10px 20px -10px rgba(0, 0, 0, .8);
  transition: transform .35s var(--ease-out);
}

.app-icon .icon {
  width: 28px;
  height: 28px;
}

.tile:hover .app-icon,
.row-link:hover .app-icon {
  transform: scale(1.06) rotate(-3deg);
}

.app-icon--facebook {
  color: #fff;
  background: #0866ff;
  box-shadow: 0 10px 22px -10px rgba(8, 102, 255, .8);
}

.app-icon--instagram {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 10px 22px -10px rgba(214, 36, 159, .8);
}

.app-icon--tiktok {
  color: #fff;
  background: #010101;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 10px 22px -10px rgba(37, 244, 238, .5);
}

.app-icon--tiktok .icon {
  filter: drop-shadow(1.4px 1.2px 0 #fe2c55) drop-shadow(-1.2px -1px 0 #25f4ee);
}

.app-icon--youtube {
  color: #fff;
  background: #ff0000;
}

.app-icon--whatsapp {
  color: #fff;
  background: var(--whatsapp);
}

.app-icon--telegram {
  color: #fff;
  background: #26a5e4;
}

.app-icon--spotify {
  color: #1ed760;
  background: #121212;
}

.app-icon--messenger {
  color: #fff;
  background: linear-gradient(200deg, #a033ff, #0866ff 60%, #00c6ff);
}

.app-icon--discord {
  color: #fff;
  background: #5865f2;
}

.app-icon--x,
.app-icon--threads {
  color: #fff;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 20px -10px rgba(0, 0, 0, .8);
}

.app-icon--snapchat {
  color: #000;
  background: #fffc00;
}

/* list rows for "card" style links */
.rows {
  display: grid;
  gap: 8px;
}

.row-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, .028);
  transition: transform .28s var(--ease-out), border-color .2s, background-color .2s;
}

.row-link:hover {
  border-color: var(--gold-line-strong);
  background: rgba(255, 255, 255, .05);
}

.row-link:active {
  transform: scale(.985);
}

.row-link .app-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.row-link .app-icon .icon {
  width: 24px;
  height: 24px;
}

.row-link__text {
  display: grid;
  min-width: 0;
}

.row-link__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  line-height: 1.4;
}

.row-link__sub {
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text-2);
}

.row-link__go {
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: transform .3s var(--ease-out);
}

.row-link:hover .row-link__go {
  transform: translateX(-4px);
}


/* =========================================================
   CONTACTS
========================================================= */

/* the service leader and the technical support: one matched pair
   head → stage (same height) → action at the bottom */
.person-card {
  --stage-h: 172px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.person__head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

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

.person__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 60px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--gold-line-strong);
  border-radius: 26px 26px 12px 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-hi);
  background: radial-gradient(circle at 50% 60%, rgba(var(--gold-rgb), .22), rgba(var(--gold-rgb), 0) 70%), var(--navy-950);
}

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

.person__name {
  overflow: hidden;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.person__role {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gold-soft);
}

/* the stage: a window of the same size in both cards */
.person__stage {
  position: relative;
  flex: 1 0 auto;
  min-height: var(--stage-h);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-md);
}

.person__actions {
  display: grid;
}

.person--more {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--gold-line);
}

/* ---- service: a phone ringing softly ---- */

.ring {
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background:
    radial-gradient(70% 120% at 100% 50%, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), 0) 70%),
    rgba(2, 9, 20, .38);
}

.ring__phone {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
}

.ring__glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 70%);
  box-shadow: 0 0 0 5px rgba(var(--gold-rgb), .12), 0 12px 26px -10px rgba(var(--gold-rgb), .7);
}

.ring__glyph .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}

/* resting: two quiet rings; on screen (full tier) they travel outwards */
.ring__wave {
  position: absolute;
  inset: 14px;
  border: 1.5px solid rgba(var(--gold-hi-rgb), .55);
  border-radius: 50%;
  opacity: .32;
  transform: scale(1.22);
}

.ring__wave:nth-child(2) {
  opacity: .16;
  transform: scale(1.48);
}

.ring__wave:nth-child(3) {
  opacity: 0;
}

.ring__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ring__intro {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5.4vw, 1.55rem);
  line-height: 1.45;
  color: var(--gold-hi);
}

.ring__desc {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--text-2);
}

:root[data-motion="full"] .ring.is-live .ring__wave {
  animation: ring-wave 3.2s cubic-bezier(.2, .6, .35, 1) infinite;
}

:root[data-motion="full"] .ring.is-live .ring__wave:nth-child(2) {
  animation-delay: 1.07s;
}

:root[data-motion="full"] .ring.is-live .ring__wave:nth-child(3) {
  animation-delay: 2.13s;
}

:root[data-motion="full"] .ring.is-live .ring__glyph {
  animation: ring-buzz 3.2s ease-in-out infinite;
}

/* lite: two rings go out once, then it rests */
:root[data-motion="lite"] .ring.is-live .ring__wave:nth-child(-n+2) {
  animation: ring-wave 2.4s cubic-bezier(.2, .6, .35, 1) 1 backwards;
}

:root[data-motion="lite"] .ring.is-live .ring__wave:nth-child(2) {
  animation-delay: .8s;
}

@keyframes ring-wave {
  from {
    opacity: .7;
    transform: scale(.9);
  }
  to {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes ring-buzz {
  0%, 18%, 100% { transform: none; }
  3% { transform: rotate(-11deg); }
  6% { transform: rotate(9deg); }
  9% { transform: rotate(-7deg); }
  12% { transform: rotate(5deg); }
  15% { transform: rotate(-2deg); }
}

/* ---- technical support: a short WhatsApp conversation ---- */

.chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 12px 16px;
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(37, 211, 102, .07), rgba(37, 211, 102, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M17 13h2v4h4v2h-4v4h-2v-4h-4v-2h4z' fill='%23f2d28b' fill-opacity='.05'/%3E%3C/svg%3E") 0 0 / 36px 36px,
    #071423;
}

.chat__chip {
  align-self: center;
  max-width: 92%;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  color: var(--text-2);
  background: rgba(255, 255, 255, .06);
}

.chat__log {
  display: grid;
  gap: 10px;
}

.chat__text {
  font-size: .9rem;
  line-height: 1.55;
}

/* the visitor's message: the end side, WhatsApp green */
.chat__msg--out {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  justify-self: end;
  max-width: 86%;
  margin-bottom: 6px;
  padding: 6px 12px 7px 9px;
  border-radius: 14px;
  border-end-end-radius: 4px;
  color: #effff6;
  background: linear-gradient(180deg, #1c6c4e, #135a40);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .8);
  transform-origin: left bottom;
}

.chat__meta {
  position: relative;
  flex: none;
  width: 17px;
  height: 12px;
  margin-bottom: 3px;
}

/* sent (grey), then seen (blue) laid over it */
.chat__ticks {
  position: absolute;
  inset: 0;
  width: 17px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(239, 255, 246, .55);
}

.chat__ticks--seen {
  color: #53bdeb;
}

.chat__reaction {
  position: absolute;
  bottom: -12px;
  inset-inline-end: 8px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: .68rem;
  line-height: 1.6;
  background: #10263c;
  box-shadow: 0 0 0 2px #071423;
}

/* the reply: avatar + bubble on the start side; typing dots in its place first */
.chat__msg--in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  justify-self: start;
  max-width: 94%;
}

.chat__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: .95rem;
  line-height: 1;
  color: var(--gold-hi);
  background: var(--navy-800);
  box-shadow: 0 0 0 1px var(--gold-line-strong);
}

.chat__bubble,
.chat__typing {
  grid-area: 1 / 2;
}

.chat__bubble {
  display: grid;
  padding: 6px 11px 8px;
  border-radius: 14px;
  border-end-start-radius: 4px;
  color: var(--text);
  background: #13304d;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .8);
  transform-origin: right bottom;
}

.chat__from {
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--gold);
}

.chat__typing {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  align-self: end;
  height: 34px;
  padding: 0 13px;
  border-radius: 14px;
  border-end-start-radius: 4px;
  background: #13304d;
  opacity: 0;
  transform-origin: right bottom;
}

.chat__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-2);
}

/* waiting for its turn: the first frame */
.chat.is-armed:not(.is-looping) :is(.chat__msg--out, .chat__avatar, .chat__bubble, .chat__ticks--seen, .chat__reaction) {
  opacity: 0;
}

/* Full tier: the chat loops on one shared 4.4 s cycle (0.1 s ≈ 2.3%):
   message → seen → typing → reply → reaction → pause → fade → again.
   render.js: .is-paused off screen / hidden tab, .is-once in lite. */
.chat {
  --cycle: 4.4s;
}

.chat.is-looping .chat__msg--out {
  animation: loop-out var(--cycle) linear infinite;
}

.chat.is-looping .chat__ticks--seen {
  animation: loop-seen var(--cycle) linear infinite;
}

.chat.is-looping .chat__avatar {
  animation: loop-avatar var(--cycle) linear infinite;
}

.chat.is-looping .chat__typing {
  animation: loop-typing var(--cycle) linear infinite;
}

.chat.is-looping .chat__typing i {
  animation: chat-dot .9s ease-in-out infinite;
}

.chat.is-looping .chat__typing i:nth-child(2) {
  animation-delay: .15s;
}

.chat.is-looping .chat__typing i:nth-child(3) {
  animation-delay: .3s;
}

.chat.is-looping .chat__bubble {
  animation: loop-bubble var(--cycle) linear infinite;
}

.chat.is-looping .chat__reaction {
  animation: loop-reaction var(--cycle) linear infinite;
}

.chat.is-looping.is-paused :is(.chat__msg--out, .chat__ticks--seen, .chat__avatar, .chat__typing, .chat__typing i, .chat__bubble, .chat__reaction) {
  animation-play-state: paused;
}

/* in: a soft spring; out: a calm fade up */
@keyframes loop-out {
  0%, 2.3% { opacity: 0; transform: translateY(8px) scale(.86); animation-timing-function: cubic-bezier(.3, 1.35, .5, 1); }
  11.4%, 84.1% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  93.2%, 100% { opacity: 0; transform: translateY(-6px) scale(.98); }
}

@keyframes loop-seen {
  0%, 15.9% { opacity: 0; animation-timing-function: ease-out; }
  19.3%, 84.1% { opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  93.2%, 100% { opacity: 0; }
}

@keyframes loop-avatar {
  0%, 19.3% { opacity: 0; transform: translateY(6px) scale(.7); animation-timing-function: cubic-bezier(.3, 1.35, .5, 1); }
  27.3%, 84.1% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  93.2%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes loop-typing {
  0%, 19.3% { opacity: 0; transform: scale(.7); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  22.7%, 39.8% { opacity: 1; transform: none; animation-timing-function: ease-in; }
  43.2%, 100% { opacity: 0; transform: scale(.9); }
}

@keyframes loop-bubble {
  0%, 40.9% { opacity: 0; transform: translateY(8px) scale(.86); animation-timing-function: cubic-bezier(.3, 1.35, .5, 1); }
  51.1%, 84.1% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  93.2%, 100% { opacity: 0; transform: translateY(-6px) scale(.98); }
}

@keyframes loop-reaction {
  0%, 55.7% { opacity: 0; transform: scale(0); animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
  63.6%, 84.1% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  93.2%, 100% { opacity: 0; transform: scale(.8); }
}

/* lite: the same story once, resting on its full frame (84.1% of a cycle) */
.chat.is-once :is(.chat__msg--out, .chat__ticks--seen, .chat__avatar, .chat__typing, .chat__bubble, .chat__reaction) {
  animation-iteration-count: .841;
  animation-fill-mode: forwards;
}

.chat.is-once .chat__typing i {
  animation-iteration-count: 2;
}

@keyframes chat-dot {
  0%, 60%, 100% {
    transform: none;
    opacity: .55;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (min-width: 1024px) {

  .person-card {
    --stage-h: 184px;
  }

}

@media print {
  .chat.is-armed :is(.chat__msg--out, .chat__avatar, .chat__bubble, .chat__ticks--seen, .chat__reaction) {
    opacity: 1 !important;
  }
}

.btn--call {
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding-inline: 18px;
}

.btn--call .phone-number {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold-ink);
  opacity: .85;
}

.btn__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* technical support: the same card, a quieter (secondary) action */
.btn--whatsapp {
  min-height: 54px;
  color: var(--text);
  border-color: rgba(37, 211, 102, .38);
  background: rgba(37, 211, 102, .09);
}

.btn--whatsapp .icon {
  color: var(--whatsapp);
}

.btn--whatsapp:hover {
  border-color: rgba(37, 211, 102, .6);
  background: rgba(37, 211, 102, .14);
}


/* =========================================================
   SHARE + FOOTER
========================================================= */

.share {
  display: grid;
  gap: 14px;
  text-align: center;
  justify-items: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(var(--gold-rgb), .1), rgba(var(--gold-rgb), 0) 70%),
    var(--navy-900);
}

.share__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.share__text {
  font-size: .9rem;
  color: var(--text-2);
}

.share__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px 8px 6px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-3);
}

.footer__cross {
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  color: var(--gold);
  opacity: .8;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-soft);
}

.footer__links {
  margin-top: 0;
}

/* a 44px tap height each (touch-target rule), the lines stay close */
.footer__links a,
.footer__credit a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 4px;
  line-height: 20px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__credit {
  margin-top: -10px;
  font-size: .76rem;
  opacity: .85;
}

.footer__credit a {
  text-decoration-color: rgba(255, 255, 255, .25);
}


/* ---------- toast ---------- */

.toast {
  position: fixed;
  z-index: var(--z-toast);
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  background: var(--navy-800);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .9);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .45s var(--ease-out-expo), opacity .3s;
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}


/* =========================================================
   LAYOUT: TABLET
========================================================= */

@media (min-width: 640px) {

  :root {
    --gap: 16px;
  }

  .hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
  }

  [data-area] {
    grid-column: 1 / -1;
  }

  [data-area="featured"],
  [data-area="location"],
  [data-area="contacts"],
  [data-area="support"],
  [data-area="items"] {
    grid-column: span 1;
  }

  [data-area][data-wide] {
    grid-column: 1 / -1;
  }

  .featured {
    align-self: stretch;
  }

}


/* =========================================================
   LAYOUT: DESKTOP
========================================================= */

@media (min-width: 1024px) {

  :root {
    --gap: 18px;
  }

  .hub {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  /* the opening: row 1, placed so the lit stage can share the row */

  [data-area="meeting"] {
    grid-column: span 7;
  }

  [data-area="featured"] {
    grid-column: span 7;
  }

  [data-area="location"] {
    grid-column: span 5;
  }

  /* the two people: a matched pair, half and half (and two short lists of
     activities side by side) */
  [data-area="contacts"],
  [data-area="support"],
  [data-area="items"] {
    grid-column: span 6;
  }

  [data-area][data-wide] {
    grid-column: 1 / -1;
  }

  .featured {
    --pad: 28px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    padding: var(--pad);
  }

  .featured__art {
    width: 120px;
    height: 146px;
    border-radius: 60px 60px 20px 20px;
  }

  .featured__art::before {
    border-radius: 55px 55px 16px 16px;
  }

  .featured__art .icon {
    width: 62px;
    height: 62px;
  }

  .featured__title {
    font-size: 1.85rem;
  }

  /* app icons share the row; a last short row is centred, never a lone
     icon on the start side */
  .tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tiles > li {
    flex: 1 1 150px;
    max-width: 200px;
  }

  .rows {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .share {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    text-align: start;
  }

}


/* =========================================================
   MOTION
========================================================= */

@keyframes glow-drift {
  to {
    transform: translate(-44%, 7vmax) scale(1.1);
  }
}

@keyframes sweep {
  to {
    transform: translateX(-100%);
  }
}

@keyframes sheen {
  from {
    transform: translateX(120%);
  }
  to {
    transform: translateX(-120%);
  }
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.28); }
  40% { transform: scale(.94); }
  60% { transform: scale(1.12); }
}

@keyframes live-ring {
  from {
    opacity: .8;
    transform: scale(.6);
  }
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes map-ring {
  from {
    opacity: .7;
    transform: scale(.4);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .backdrop__glow,
  .skeleton::after,
  .live-dot::after,
  .mapart__ring {
    animation: none !important;
  }

}

@media (hover: none) {

  /* no sticky hover lift after a tap on touch screens */
  .tile:hover,
  .featured:hover {
    transform: none;
  }

}


/* =========================================================
   HUB (Phase A): top bar, topic, news, games, sheets, bell
========================================================= */

:root {
  /* real spring (k=170 c=20) where linear() is supported */
  --spring: cubic-bezier(.3, 1.3, .5, 1);
  --z-topbar: 20;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.058, 0.191, 0.351, 0.51, 0.652, 0.768, 0.858, 0.924, 0.969, 0.997, 1.014, 1.021, 1.023, 1.022, 1.019, 1.015, 1.012, 1.008, 1.005, 1.003, 1.002, 1.001, 1);
  }
}

html.has-sheet {
  overflow: hidden;
}


/* ---------- top bar ---------- */

/* One bar, never changing height, the logo and the name always in it (the
   big hero left the home, S2): its surface and hairline are there from the
   top; only the buttons' discs settle into it over the first 120px
   (scroll-driven where supported; else, and in reduced motion, still). */

.topbar {
  --p: 1;
  --bar-h: 60px;
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 1120px);
  height: var(--bar-h);
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-left));
}

/* the surface: the page's own navy and gold light, feathering out a little
   below the bar (no slab, no hard edge); a blur in the full tier */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 -22px;
  z-index: -1;
  background:
    radial-gradient(46% 120% at 50% 0%, rgba(var(--gold-rgb), .1), rgba(var(--gold-rgb), 0) 72%),
    linear-gradient(180deg, rgba(9, 35, 64, .97), rgba(5, 20, 42, .95) 64%, rgba(4, 17, 39, .9));
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 34px), rgba(0, 0, 0, .55) calc(100% - 20px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 34px), rgba(0, 0, 0, .55) calc(100% - 20px), transparent);
  pointer-events: none;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root[data-motion="full"] .topbar::before {
    background:
      radial-gradient(46% 120% at 50% 0%, rgba(var(--gold-rgb), .1), rgba(var(--gold-rgb), 0) 72%),
      linear-gradient(180deg, rgba(9, 35, 64, .8), rgba(5, 20, 42, .72) 64%, rgba(4, 17, 39, .6));
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    backdrop-filter: blur(18px) saturate(1.35);
  }
}

/* a soft line of light where the bar meets the page, drawn from the
   centre outwards (a glow, not a rule) */
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--gold-hi-rgb), 0), rgba(var(--gold-hi-rgb), .12) 22%, rgba(var(--gold-hi-rgb), .42) 50%, rgba(var(--gold-hi-rgb), .12) 78%, rgba(var(--gold-hi-rgb), 0));
  box-shadow: 0 0 12px 0 rgba(var(--gold-hi-rgb), .12);
  pointer-events: none;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  pointer-events: none;
}

.topbar__brand img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-line-strong), 0 4px 12px -4px rgba(0, 0, 0, .8);
}

.topbar__name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--gold-hi);
}

.topbar__actions {
  display: flex;
  flex: none;
  gap: 8px;
  margin-inline-start: auto;
}

.topbar__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--gold-hi);
  background: none;
  cursor: pointer;
  isolation: isolate;
  transition: transform .45s var(--spring);
}

/* the button's own disc: full at the top of the page, then settles into
   the bar (smaller, quieter); only its opacity and scale change */
.topbar__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: rgba(6, 26, 49, .85);
  box-shadow: inset 0 0 0 1px var(--gold-line-strong), 0 8px 18px -10px rgba(0, 0, 0, .9);
  opacity: calc(1 - var(--p) * .45);
  transform: scale(calc(1 - var(--p) * .08));
  transition: background-color .2s;
}

.topbar__btn:hover::before {
  background: rgba(18, 56, 95, .9);
}

.topbar__btn:active {
  transform: scale(.9);
  transition-duration: .1s;
}

.topbar__btn[aria-pressed="true"]::before {
  background: rgba(var(--gold-4e3e1e-rgb), .9);
}

.topbar__btn:disabled {
  opacity: .5;
  cursor: default;
}

.topbar__btn .icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 640px) {

  .topbar__inner {
    padding-inline: max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-left));
  }

}

@media (min-width: 1024px) {

  .topbar {
    --bar-h: 64px;
  }

  .topbar__brand img {
    width: 42px;
    height: 42px;
  }

  .topbar__name {
    font-size: 1.32rem;
  }

}

/* the compositor runs it where the browser can (no script per frame) */
@supports (animation-timeline: scroll()) {

  .topbar__btn::before {
    animation: bar-settle linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 120px;
  }

}

@keyframes bar-settle {
  from { opacity: 1; transform: none; }
  to { opacity: .55; transform: scale(.92); }
}

/* reduced motion: no movement, the discs stay full */
:root[data-motion="reduced"] .topbar {
  --p: 0;
}

:root[data-motion="reduced"] .topbar__btn::before {
  animation: none !important;
}

.bell .icon {
  transform-origin: 50% 12%;
}

.bell__badge {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  color: #fff;
  background: var(--carmine);
}

.hub {
  padding-top: 4px;
}


/* the lattice drifts a little as you scroll (where supported) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .backdrop__lattice {
      animation: lattice-drift linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@keyframes lattice-drift {
  to {
    transform: translateY(-120px);
  }
}


/* ---------- entrance v2: depth, not just fade ---------- */

.widget.is-entering {
  animation: rise-depth .9s var(--ease-out-expo) both;
  animation-delay: calc(180ms + var(--i, 0) * 70ms);
}

@keyframes rise-depth {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.955);
  }
  60% {
    opacity: 1;
  }
}


/* ---------- meeting: topic ---------- */

.meeting__topic:empty {
  display: none;
}

/* (the hierarchy: "MEETING TOPIC v2" below) */
.topic {
  display: grid;
  align-items: center;
  width: 100%;
  border: 1px solid var(--gold-line-strong);
  border-radius: var(--radius-md);
  text-align: start;
  color: var(--text);
  background: linear-gradient(135deg, rgba(var(--gold-rgb), .14), rgba(var(--gold-rgb), .03));
  cursor: pointer;
  transition: transform .45s var(--spring), border-color .2s;
}

.topic:active {
  transform: scale(.98);
  transition-duration: .1s;
}

.topic:not(:has(.topic__poster)) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.topic__poster img {
  display: block;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--gold-line-strong);
}

.topic__text {
  min-width: 0;
}

.topic__go {
  width: 20px;
  height: 20px;
  color: var(--gold);
}


/* ---------- section heads ---------- */

.section-head {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.section-head__sub {
  font-size: .84rem;
  color: var(--text-3);
}

.announcement__sub {
  font-size: .9rem;
  color: var(--text-2);
}


/* ---------- news ---------- */

.news {
  overflow: hidden;
}

.news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.news__date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-3);
}

.news-lead {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--gold-line-strong);
  border-radius: var(--radius-md);
  background: var(--navy-950);
  transition: transform .45s var(--spring), border-color .2s;
}

.news-lead:active {
  transform: scale(.985);
  transition-duration: .1s;
}

.news-lead__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
}

.news-lead__body {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 14px 16px 16px;
}

.news-lead__title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.45;
}

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

.news__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--gold-hi);
}

.news__more .icon {
  width: 18px;
  height: 18px;
}

/* the swipeable row */
.news__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74%, 250px);
  gap: 12px;
  margin: 12px calc(var(--pad) * -1) 0;
  padding: 2px var(--pad) 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
}

.news__rail > li {
  scroll-snap-align: start;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .03);
  transition: transform .45s var(--spring), border-color .2s;
}

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

.news-card:active {
  transform: scale(.97);
  transition-duration: .1s;
}

.news-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.news-card__body {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
}

.news-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.news-card__summary {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--text-2);
}

.news-lead:has(.stretched:focus-visible),
.news-card:has(.stretched:focus-visible) {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}


/* ---------- games ---------- */

@property --rim {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.games__list {
  display: grid;
  gap: 10px;
}

.game {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .03);
}

.game__media img {
  display: grid;
  place-items: center;
  width: 84px;
  height: 104px;
  border-radius: 42px 42px 14px 14px;
  object-fit: cover;
  color: var(--gold-hi);
  background: radial-gradient(circle at 50% 60%, rgba(var(--gold-rgb), .25), transparent 70%), var(--navy-950);
  box-shadow: inset 0 0 0 1px var(--gold-line-strong);
}

.game__body {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
  min-width: 0;
}

.game__state {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  color: var(--gold-hi);
  background: rgba(var(--gold-rgb), .14);
}

.game__title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
}

.game__desc {
  font-size: .9rem;
  color: var(--text-2);
}

.game__time {
  font-size: .84rem;
  color: var(--text-2);
}

.game__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.game__play[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

.game--ended {
  opacity: .62;
}

.game--ended .game__state {
  color: var(--text-3);
  background: rgba(255, 255, 255, .06);
}

/* the live card: bigger, a moving rim of light, embers */
.live-game {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 150, 80, .45);
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(255, 120, 50, .18), transparent 70%),
    linear-gradient(170deg, #12345a, var(--navy-950));
}

.game--live {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border: 0;
  background: none;
}

.game--live::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.5px;
  border-radius: var(--radius-lg);
  background: conic-gradient(from var(--rim), transparent 0 52%, rgba(var(--gold-hi-rgb), .95) 66%, #ff8a4c 76%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rim 5.5s linear infinite;
  pointer-events: none;
}

@keyframes rim {
  to {
    --rim: 360deg;
  }
}

.game--live .game__media img {
  width: 100%;
  height: auto;
  max-height: 280px;
  border-radius: 0;
  box-shadow: none;
}

.game--live .game__body {
  padding: 16px var(--pad) var(--pad);
}

.game--live .game__state {
  font-size: .9rem;
  color: #fff;
  background: linear-gradient(90deg, #b8392f, #c8522a);
  box-shadow: 0 6px 18px -6px rgba(224, 115, 47, .8);
}

.game--live .game__title {
  font-size: 1.5rem;
}

.game--live .game__play {
  min-height: 52px;
  padding-inline: 26px;
  font-size: 1.05rem;
}

.game__embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.game--live .game__body,
.game--live .game__media {
  position: relative;
  z-index: 1;
}

/* it just went live: a one-time ignition */
.game.is-waking {
  animation: ignite 1.6s var(--ease-out-expo);
}

@keyframes ignite {
  0% {
    transform: scale(.94);
    filter: brightness(.7);
  }
  35% {
    transform: scale(1.02);
    filter: brightness(1.35) drop-shadow(0 0 24px rgba(255, 140, 60, .7));
  }
  100% {
    transform: none;
    filter: none;
  }
}

.meeting.is-waking {
  animation: meeting-glow 1.6s var(--ease-out-expo);
}

@keyframes meeting-glow {
  35% {
    box-shadow: 0 0 0 2px rgba(255, 138, 125, .6), 0 0 40px rgba(255, 138, 125, .35);
  }
}


/* ---------- desktop extras ---------- */

@media (min-width: 1024px) {

  .news-lead {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .news-lead__media img {
    height: 100%;
    max-height: 380px;
  }

  .news-lead__body {
    align-content: center;
    padding: 24px;
  }

  .games__list {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }

  .game--live {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .game--live .game__media img {
    height: 100%;
    max-height: 320px;
  }

  .game--live .game__body {
    align-content: center;
  }

}


/* ---------- reduced motion for the hub ---------- */

@media (prefers-reduced-motion: reduce) {

  .backdrop__lattice,
  .note-item,
  .game--live::before,
  .game.is-waking,
  .meeting.is-waking {
    animation: none !important;
  }

  .game__embers {
    display: none;
  }

}


/* a full-row location card on desktop: map beside the details */
@media (min-width: 1024px) {

  .location[data-wide] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
  }

  .location[data-wide] .location__map {
    height: 100%;
    min-height: 240px;
    border-bottom: 0;
    border-inline-end: 1px solid rgba(76, 195, 203, .22);
  }

  .location[data-wide] .location__body {
    align-content: center;
    padding: var(--pad);
  }

}


/* =========================================================
   MEETING TOPIC v2: clear hierarchy
   label (pill)  ->  topic (big, clear)  ->  speaker (under a hairline)
========================================================= */

.topic {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
}

.topic__poster img {
  width: 64px;
  height: 82px;
  border-radius: 32px 32px 12px 12px;
}

.topic__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.topic__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--gold-hi);
  background: rgba(var(--gold-rgb), .16);
}

.topic__label .icon {
  width: 15px;
  height: 15px;
}

/* the topic itself: the clearest thing in the card */
.topic__title {
  font-family: var(--font-ui);
  font-size: clamp(1.2rem, 5.2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
  text-wrap: balance;
}

.topic__speaker {
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: stretch;
  padding-top: 8px;
  border-top: 1px solid var(--gold-line);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-2);
}

.topic__speaker .icon {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--gold);
}

.topic__go {
  align-self: center;
}

/* small phones: a little tighter, poster smaller */
@media (max-width: 380px) {

  .topic {
    gap: 12px;
    padding: 14px 12px;
  }

  .topic__poster img {
    width: 54px;
    height: 70px;
  }

}


/* =========================================================
   GAMES CORNER LOGO
========================================================= */

.games__head {
  display: flex;
  justify-content: center;
  margin: -2px 0 16px;
}

.games__logo {
  display: block;
  width: min(240px, 72%);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55));
}

.live-game {
  position: relative;
}

/* the logo as a badge on the live card's corner */
.live-game__brand {
  position: absolute;
  z-index: 3;
  top: 10px;
  inset-inline-start: 10px;
  pointer-events: none;
}

.live-game__logo {
  display: block;
  width: 118px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
}

@media (min-width: 1024px) {

  .games__logo {
    width: 300px;
  }

  .live-game__logo {
    width: 150px;
  }

}


/* =========================================================
   SECTION THEMES, BANNERS, BUILT-IN ART
   A section's theme only changes its accent (the gold by default):
   --accent / --accent-hi / --accent-deep / --accent-glow.
========================================================= */

: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), .35);
}

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

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

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

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

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

/* a themed section: a soft light of its colour, its title icon tinted */
.widget[data-theme] {
  background:
    radial-gradient(120% 70% at 100% 0%, var(--accent-glow), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .012) 60%),
    var(--navy-900);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.widget[data-theme] .widget__title .icon,
.widget[data-theme] .section-head__sub {
  color: var(--accent-hi);
}

/* a section's own banner, above its content */
/* any section kind (render.js dressSection): the first thing in its first
   widget, edge to edge, whatever the widget's own layout */
/* the slot takes the banner's shape (--banner-ar) within a height range;
   hub.js: cover for a near match, else contain on a surround */
.section-banner {
  --tint: var(--navy-700);
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  align-self: stretch;
  justify-self: stretch;
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 14px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  aspect-ratio: var(--banner-ar, 16 / 6);
  min-height: 30vw;
  max-height: 58vw;
  background:
    radial-gradient(70% 90% at 50% 50%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 80%),
    linear-gradient(160deg, color-mix(in srgb, var(--tint) 35%, var(--navy-900)), var(--navy-950));
}

/* a quiet line where the banner meets the card */
.section-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line-strong), transparent);
  pointer-events: none;
}

/* widgets that space their children with a gap */
:is(.person-card, .links-section, .featured, .share, .location) > .section-banner {
  margin-bottom: 0;
}

/* the location card has no padding of its own (its map is edge to edge) */
.location > .section-banner {
  margin: 0;
  border-bottom: 1px solid var(--gold-line);
}

.location.has-banner .location__map {
  margin-top: -16px;
}

.announcement > .section-banner {
  margin-top: -16px;
}

/* side by side: render.js gives both partners one shared slot shape
   (--pair-ar-*), so a pair's banners are the same height */
@media (min-width: 640px) {

  .section-banner {
    min-height: 120px;
    max-height: 340px;
  }

  [data-area]:not([data-wide]) > .section-banner {
    aspect-ratio: var(--pair-ar-t, var(--banner-ar, 16 / 6));
    max-height: 260px;
  }

}

@media (min-width: 1024px) {

  [data-area]:not([data-wide]) > .section-banner {
    aspect-ratio: var(--pair-ar-d, var(--banner-ar, 16 / 6));
    max-height: 280px;
  }

  /* a full-row banner: a generous band, not a wall */
  [data-area][data-wide] > .section-banner {
    min-height: 160px;
    max-height: min(380px, 46vh);
  }

}

.section-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-banner[data-fit="contain"] .section-banner__img {
  position: relative;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
}

/* the surround: the banner itself, blurred and dimmed (full tier only;
   lite and reduced keep the light in its colour) */
.section-banner__ambient {
  position: absolute;
  inset: -10%;
  z-index: -1;
  display: none;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: .62;
  filter: blur(26px) saturate(1.3) brightness(.7);
}

:root[data-motion="full"] .section-banner[data-fit="contain"] .section-banner__ambient {
  display: block;
}

/* built-in art when there is no poster and no banner */
.art {
  position: relative;
  display: grid;
  place-items: center;
  /* centred even when the height comes from an aspect ratio */
  place-content: center;
  grid-template: 100% / 100%;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  color: var(--accent-hi);
  background:
    radial-gradient(90% 70% at 70% 20%, var(--accent-glow), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent-deep) 85%, #061a31), #041127 85%);
}

/* a quiet lattice of small crosses */
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background: var(--accent-hi);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M13 9h2v4h4v2h-4v4h-2v-4H9v-2h4z'/%3E%3C/svg%3E") 0 0 / 28px 28px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M13 9h2v4h4v2h-4v4h-2v-4H9v-2h4z'/%3E%3C/svg%3E") 0 0 / 28px 28px;
}

.art__glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
}

.art__icon {
  position: relative;
  width: 38%;
  max-width: 64px;
  height: auto;
  aspect-ratio: 1;
  opacity: .9;
  filter: drop-shadow(0 6px 18px var(--accent-glow));
}

/* an icon the admin chose instead of a poster (Phase 8, §22.1 item 11): the branded tile — the site's navy, the
   gold glyph larger and alone (no section icon), the arch's hairline inside */
.art--chosen::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 999px 999px 14px 14px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-hi) 30%, transparent);
  pointer-events: none;
}

.art--chosen .art__icon {
  width: 34%;
  max-width: 88px;
  opacity: 1;
}

.media-hero--icon {
  aspect-ratio: 16 / 9;
  max-height: 46vh;
  overflow: hidden;
  border-radius: 18px;
}

/* each slot keeps its own shape */
.news-card__media .art {
  aspect-ratio: 4 / 5;
}

.news-lead__media .art {
  aspect-ratio: 16 / 9;
  max-height: 340px;
}

.game__media .art {
  width: 84px;
  height: 104px;
  border-radius: 42px 42px 14px 14px;
  box-shadow: inset 0 0 0 1px var(--gold-line-strong);
}

.game--live .game__media .art {
  width: 100%;
  height: 120px;
  border-radius: 0;
  box-shadow: none;
}

/* pictures show their own colour while loading */
img[style*="background-color"] {
  background-clip: padding-box;
}


/* =========================================================
   ITEMS: competitions, trips, plays... (items.js)
========================================================= */

.items__list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .items__list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* its layout: .lay (SHARED CARD LAYOUT, end of file); this base is «stack» */
.item-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  padding: 0 0 14px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(140% 90% at 100% 0%, var(--accent-glow), transparent 60%),
    rgba(2, 9, 20, .42);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform .45s var(--spring), box-shadow .3s;
}

@media (hover: hover) and (pointer: fine) {
  .item-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent), 0 20px 40px -24px var(--accent-glow);
  }
}

.item-card:active {
  transform: scale(.985);
}

.item-card__body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 0 14px;
}

.item-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: .76rem;
  font-weight: 800;
}

.item-card__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-hi);
}

.item-card__type .icon {
  width: 15px;
  height: 15px;
}

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

.item-card--open .item-card__state {
  color: var(--accent-hi);
}

.item-card--ended {
  opacity: .72;
}

.item-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
}

.item-card__title a {
  color: inherit;
  text-decoration: none;
}

.item-card__sub {
  margin: 0;
  font-size: .86rem;
  color: var(--text-2);
}

/* «بإشراف B.U.G.» (docs/EVENTS.md §12): quiet; the partner's colours stay
   inside its mark, on a small warm plate (never directly on navy) */
.item-card__partner {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 1px 0 2px;
  padding-block: 3px;
  padding-inline: 4px 11px;
  border-radius: 999px;
  font-size: .72rem;
  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);
}

.partner-plate {
  display: inline-grid;
  place-items: center;
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fffdf9;     /* the partner plate (page.css --partner-plate): warm, and seamless with the mark's white */
  box-shadow: 0 0 0 1px rgba(var(--gold-hi-rgb), .35), 0 0 12px rgba(var(--gold-fbf6ec-rgb), .12);
}

.partner-plate img {
  display: block;
  width: auto;
  height: 14px;
}

.item-card__when {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  font-size: .78rem;
  color: var(--text-3);
}

.item-card__when span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.item-card__when .icon {
  width: 14px;
  height: 14px;
}

/* the button sits above the card's whole-card link */
.item-card__actions {
  position: relative;
  z-index: 2;
  margin-top: 6px;
}

.item-card__cta.is-waiting {
  opacity: .7;
  cursor: default;
}

/* =========================================================
   FEEL (Phase 7): pointer light, press ripples, scroll reveals.
   html[data-motion] = full | lite | reduced, set by feel.js:
   lite = a weak phone / data saver / slow frames, reduced = the
   visitor asked for less motion. Content never depends on any of it.
========================================================= */

.topic,
.row-link {
  position: relative;
}

/* the decorative layer feel.js puts in a card: clipped to its shape,
   never catches a tap */
.fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

/* mouse: a soft light that follows the pointer */
.fx::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--gold-light-rgb), .12), rgba(var(--gold-light-rgb), 0) 70%);
  mix-blend-mode: screen;
  transition: opacity .4s var(--ease-out);
}

.is-lit > .fx::before {
  opacity: 1;
}

/* mouse: posters drift a few pixels against the pointer (depth) */
@media (hover: hover) and (pointer: fine) {

  :root[data-motion="full"] :is(.news-lead__media, .news-card__media, .item-card__media) :is(img, .art) {
    transition: translate .6s var(--ease-out), scale .6s var(--ease-out);
  }

  :root[data-motion="full"] .is-lit :is(.news-lead__media, .news-card__media, .item-card__media) :is(img, .art) {
    translate: var(--px, 0) var(--py, 0);
    scale: 1.045;
  }

  /* icons answer the pointer too */
  .widget__title .icon {
    transition: transform .5s var(--spring);
  }

  .widget:hover > .widget__title .icon,
  .widget:hover > * > .widget__title .icon {
    transform: rotate(-8deg) scale(1.12);
  }

  .item-card:hover .item-card__media :is(img, .art),
  .news-card:hover .news-card__media img {
    filter: saturate(1.08) brightness(1.04);
  }

}

/* touch (and click): a ripple from the exact point. Visual only. */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-ffe9ba-rgb), .24), rgba(var(--gold-ffe9ba-rgb), .08) 52%, rgba(var(--gold-ffe9ba-rgb), 0) 70%);
  transform: scale(0);
  animation: ripple .65s cubic-bezier(.2, .8, .3, 1) forwards;
}

.btn--primary .ripple {
  background: radial-gradient(circle, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 68%);
}

@keyframes ripple {
  55% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(1);
  }
}

/* scroll reveals (full tier only): wait below the fold, then rise in;
   the title icon pops and the cards follow one after another */
:root[data-motion="full"] .widget.will-reveal {
  opacity: 0;
  transform: translateY(30px);
}

:root[data-motion="full"] .widget.is-revealed {
  animation: reveal-rise .8s var(--ease-out-expo) both;
}

/* movement only, no scale: buttons keep their real size while it plays */
@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

:root[data-motion="full"] .widget.is-revealed .widget__title .icon {
  animation: icon-pop .7s var(--spring) .15s backwards;
}

:root[data-motion="full"] .widget.is-revealed :is(li:not(.chat__msg), .item-card, .game) {
  animation: child-in .6s var(--ease-out-expo) backwards;
  animation-delay: calc(160ms + var(--j, 0) * 55ms);
}

@keyframes icon-pop {
  from {
    opacity: 0;
    transform: scale(.4) rotate(-25deg);
  }
}

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

/* lite: the same page, lighter */
:root[data-motion="lite"] .widget.is-entering {
  animation-duration: .5s;
  animation-delay: calc(var(--i, 0) * 40ms);
}

:root[data-motion="lite"] .game__embers,
:root[data-motion="lite"] .fx::before {
  display: none;
}

:root[data-motion="lite"] .backdrop__lattice {
  animation: none;
}

/* never hide anything on paper or for "find in page" fallbacks */
@media print {
  .widget.will-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .fx {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx,
  .ripple {
    display: none;
  }
  .widget.will-reveal {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   DESKTOP COMPOSITION: one composed opening (a lit, full-bleed stage
   under the top bar; the identity under a great arch; the meeting in
   the same light), then pairs, and a few sections in the open.
   The order still comes from content.json (layout).
========================================================= */

@media (min-width: 1024px) {

  :root {
    --gap: 20px;
  }

  .hub {
    row-gap: 24px;
  }

  /* the stage: row 1, out to the viewport's edges and the page top */
  .hub::before {
    content: "";
    grid-row: 1;
    grid-column: 1 / -1;
    margin: calc(-68px - env(safe-area-inset-top)) calc(50% - 50vw) -150px;
    background:
      radial-gradient(34% 58% at calc(50% + min(29vw, 312px)) 38%, rgba(var(--gold-rgb), .13), transparent 72%),
      radial-gradient(46% 64% at calc(50% - min(14vw, 150px)) 48%, rgba(18, 56, 95, .42), transparent 74%),
      linear-gradient(rgba(13, 48, 88, .5), rgba(6, 26, 49, .26) 58%, transparent);
    -webkit-mask-image: linear-gradient(#000 calc(100% - 260px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 260px), transparent);
    pointer-events: none;
  }

  .meeting__headline {
    font-size: 3.5rem;
  }

  .widget__title {
    font-size: 1rem;
  }

  /* app icons only: no box, the icons stand in the open under a title */
  .links-section--icons[data-wide]:not(.has-banner) {
    justify-items: center;
    gap: 18px;
    padding-block: 30px 14px;
  }

  /* (any other surface keeps its box) */
  .links-section--icons[data-wide]:not(.has-banner):not([data-surface]:not([data-surface="none"])) {
    padding-inline: 0;
    border-color: transparent;
    background: none;
    box-shadow: none;
  }

  .links-section--icons[data-wide]:not(.has-banner) > .widget__title {
    gap: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold-soft);
  }

  .links-section--icons[data-wide]:not(.has-banner) > .widget__title::before,
  .links-section--icons[data-wide]:not(.has-banner) > .widget__title::after {
    content: "";
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line-strong));
  }

  .links-section--icons[data-wide]:not(.has-banner) > .widget__title::after {
    transform: scaleX(-1);
  }

  .links-section--icons[data-wide]:not(.has-banner) .tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }

  .links-section--icons[data-wide]:not(.has-banner) .tiles > li {
    flex: 0 1 184px;
  }

  .links-section--icons[data-wide]:not(.has-banner) .tile {
    min-height: 150px;
    padding-top: 20px;
    border-color: rgba(var(--gold-hi-rgb), .1);
    background: linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  }

  /* the closing: share in the open under a line of light, then the footer */
  .share[data-wide]:not(.has-banner) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
    margin-top: 18px;
    text-align: center;
  }

  .share[data-wide]:not(.has-banner):not([data-surface]:not([data-surface="none"])) {
    padding: 46px 0 6px;
    border-color: transparent;
    background: radial-gradient(40% 70% at 50% 0%, rgba(var(--gold-rgb), .08), transparent 70%) no-repeat;
    box-shadow: none;
  }

  .share[data-wide]:not(.has-banner):not([data-surface]:not([data-surface="none"]))::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(620px, 70%);
    height: 1px;
    translate: -50% 0;
    background: linear-gradient(90deg, transparent, var(--gold-line-strong), transparent);
  }

  .share[data-wide]:not(.has-banner) .share__title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--gold-hi);
  }

  /* news: one row (176-232px cards), more scroll sideways; no lone card */
  .news__rail {
    display: flex;
    gap: 14px;
    margin-inline: 0;
    padding: 2px 0 10px;
    overflow-x: auto;
  }

  .news__rail > li {
    flex: 1 1 176px;
    min-width: 176px;
    max-width: 232px;
  }

  /* a lone featured link on a full row: art, words, and the call to
     action at the far end (no empty half) */
  .featured[data-wide] {
    padding-inline: 34px;
  }

  .featured[data-wide] .featured__body {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 28px;
  }

  .featured[data-wide] .featured__body > :not(.featured__cta) {
    grid-column: 1;
  }

  .featured[data-wide] .featured__cta {
    grid-column: 2;
    grid-row: 1 / span 3;
    min-height: 52px;
    margin: 0;
    padding-inline: 26px;
    font-size: 1rem;
  }

  /* a single activity in a full row: the picture beside the words */
  [data-wide] .items__list:has(> li:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }


}


/* =========================================================
   SURFACES («شكل الخلفية», render.js dressSection): glass (see-through,
   frosted in the full tier), dark, filled, none (no box); none = default
========================================================= */

.hub > .widget[data-surface="glass"] {
  border-color: rgba(var(--gold-hi-rgb), .14);
  background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .014));
  box-shadow: inset 0 1px 0 rgba(var(--gold-hi-rgb), .1), 0 24px 48px -32px rgba(0, 0, 0, .8);
}

:root[data-motion="full"] .hub > .widget[data-surface="glass"] {
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.hub > .widget[data-surface="dark"] {
  border-color: var(--gold-line);
  background: var(--navy-950);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .85);
}

.hub > .widget[data-surface="filled"] {
  border-color: var(--gold-line-strong);
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
    linear-gradient(160deg, #0d2f55, var(--navy-900) 70%);
  box-shadow: inset 0 1px 0 rgba(var(--gold-hi-rgb), .14), 0 22px 44px -26px rgba(0, 0, 0, .85);
}

.hub > .widget[data-surface="none"] {
  padding-inline: 0;
  border-color: transparent;
  background: none;
  box-shadow: none;
}

[data-surface="glass"] :where(.tile, .row-link) {
  border-color: rgba(var(--gold-hi-rgb), .1);
  background: linear-gradient(rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}

[data-surface="filled"] :where(.tile, .row-link) {
  border-color: rgba(var(--gold-hi-rgb), .14);
  background: rgba(255, 255, 255, .05);
}

[data-surface="none"] > .section-banner {
  margin-inline: 0;
  border-radius: var(--radius-lg);
}

.location[data-surface="none"] .location__map {
  border: 1px solid rgba(76, 195, 203, .22);
  border-radius: var(--radius-lg);
}

.location[data-surface="none"] .location__body {
  padding-inline: 0;
}


/* =========================================================
   SHARED CARD LAYOUT «شكل العرض» (hub.js layCard): every picture card —
   news lead, games, competitions / activities — as .lay + is-compact |
   is-side | is-banner | is-stack; each card keeps its own look. The
   picture is whole (its shape --r, its colour --fill around it).
========================================================= */

:has(> .lay),
.items__list > li {
  container-type: inline-size;
}

.lay.lay {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 14px;
}

/* the box is the picture's own shape: never taller than --h, narrower instead */
.lay .lay__media {
  justify-self: center;
  width: min(100%, calc(var(--h, 280px) * var(--r, 1.6)));
  overflow: hidden;
  aspect-ratio: var(--r, 1.6);
  background: var(--fill, var(--navy-950));
}

.lay .lay__media :is(img, .art) {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
}

.lay .lay__body {
  padding: 0 14px;
}

.lay.is-banner .lay__media {
  --h: 320px;
}

.lay.is-compact {
  grid-template-columns: clamp(96px, 30%, 150px) minmax(0, 1fr);
  align-items: center;
  padding: 10px;
}

.lay.is-compact .lay__media {
  width: 100%;
  aspect-ratio: max(.75, min(var(--r, .8), 1.34));
  border-radius: 13px;
}

/* a game keeps its arched poster */
.game.is-compact .lay__media {
  border-radius: 42px 42px 14px 14px;
}

.lay.is-compact .lay__body {
  padding: 0;
}

/* the big picture beside the words: only where the card is wide (else «stack») */
@container (min-width: 560px) {
  .lay.is-side {
    grid-template-columns: min(44%, 420px) minmax(0, 1fr);
    align-items: center;
    padding: 0;
  }

  .lay.is-side .lay__media {
    --h: 300px;
  }

  .lay.is-side .lay__body {
    padding: 20px 24px;
  }
}

/* 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 home's round button behind it gives way to the door */
.topbar__btn.acct-badge::before {
  display: none;
}

/* 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;
  }
}

/* phones: the account icon lives in the bottom bar (nav.js), and the page keeps the bar's room, from the first frame
   (Phase 8 track P; the bar's own look is nav.css, loaded by nav.js) */
@media (max-width: 767px) {
  .topbar .acct-badge {
    display: none;
  }

  body:has(> main.hub) {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   INTRO COVER (site redesign W3): intro.js chose an opening before the first paint; until its module mounts
   (intro-card.js / intro-member.js, assets/css/intro.css), the page stays under the night it opens from.
   Never longer than a few seconds, in case the module cannot load.
========================================================= */
html[data-intro="card"]::after,
html[data-intro="member"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 199;
  background: radial-gradient(50% 46% at 50% 48%, #0b2343, #01050d 80%);
  animation: intro-cover-off .4s 5s forwards;
}
html[data-intro="member"]::after { background: #020914; }
html[data-intro="card"] { overflow: hidden; }
html[data-intro="card"] body > :not(.ic):not(dialog.st) { visibility: hidden; }
@keyframes intro-cover-off { to { opacity: 0; visibility: hidden; } }

/* =========================================================
   HOME (site redesign S2, W4; assets/js/home.js): Suggestions + the quick links on top, the greeting and the
   meeting beside them (desktop) or under them (phone), the rails, «الكل ‹», the people as a pair.
   The approved layer (docs/site-redesign/final.css) moved in as it was; golds are the W1 tokens.
========================================================= */

.hub {
  padding-top: max(10px, env(safe-area-inset-top));
}

/* every block full width on the phone; the desktop places them below */
.hub[data-state="ready"] > * {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

.hub[data-state="ready"]::before {
  display: none;
}

/* ---------- Suggestions ---------- */
.s2-sugg { position: relative; min-width: 0; }
.s2-sugg__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--radius-lg, 24px); }
.s2-sugg__track::-webkit-scrollbar { display: none; }
.s2-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; margin: 0 !important; min-width: 0; }
/* the track makes every slide as tall as the tallest one; the extra height must not stretch a slide's banner
   (a stretched slot no longer has the banner's shape, so the picture shrank to "contain" with bands) */
.s2-slide > .section-banner { align-self: start; }
.s2-slide__tag { position: absolute; z-index: 3; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgb(2 9 20 / .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--gold-line-strong); color: var(--gold-hi); font-size: 12.5px; font-weight: 800; pointer-events: none; }
.s2-slide__tag .icon { width: 15px; height: 15px; }
.s2-sugg__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.s2-sugg__dots[hidden] { display: none; }
.s2-sugg__dots button { position: relative; width: 22px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .3s; }
.s2-sugg__dots button i { position: absolute; inset: 7px 0; border-radius: 4px; background: rgba(var(--gold-hi-rgb), .22); overflow: hidden; }
.s2-sugg__dots button.on { width: 44px; }
.s2-sugg__dots button.on i::after { content: ""; position: absolute; inset: 0; background: var(--gold-hi); transform-origin: right; animation: s2-fill 5s linear forwards; }
@keyframes s2-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
:root[data-motion="reduced"] .s2-sugg__dots button.on i::after { animation: none; }
.s2-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px calc(-1 * max(16px, env(safe-area-inset-left))) 0; padding: 2px max(16px, env(safe-area-inset-left)); }
.s2-chips::-webkit-scrollbar { display: none; }
.s2-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold-line-strong); background: rgb(8 33 61 / .72); color: var(--text); font-weight: 700; font-size: .9rem; text-decoration: none; transition: border-color .2s, background .2s; }
.s2-chip:hover { border-color: var(--gold-hi); background: rgba(var(--gold-rgb), .1); }
.s2-chip .icon { width: 18px; height: 18px; color: var(--gold-hi); }

/* ---------- side column: account nudge / greeting + the live meeting ---------- */
.s2-side { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.s2-join { display: flex; align-items: center; gap: 14px; padding: 14px 16px !important; background: linear-gradient(90deg, rgba(var(--gold-rgb), .14), rgb(8 33 61 / .5) 65%) !important; border-color: var(--gold-line-strong) !important; }
.s2-join > div { flex: 1; min-width: 0; }
.s2-join b { display: block; font-size: 1rem; } .s2-join small { display: block; color: var(--text-2); font-size: .8rem; line-height: 1.6; }
.s2-join__ic, .s2-join__av { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); font-weight: 900; font-size: 20px; }
.s2-join__ic .icon, .s2-join__av .icon { width: 22px; height: 22px; }
.s2-join__av { overflow: hidden; }
.s2-join__av img { width: 100%; height: 100%; object-fit: cover; }
.s2-join .btn { flex: none; }
.s2-join__x { flex: none; width: 30px; height: 30px; margin-inline-start: -6px; border: 0; border-radius: 50%; background: none; color: var(--text-3); font-size: 20px; cursor: pointer; }
/* the member's entry to «لون الموقع» (the sheet: tint.js + tint.css, loaded on the press) */
.s2-join__tint { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gold-line-strong); background: rgb(2 9 20 / .35); color: var(--gold-hi); font: 800 .8rem var(--font-body, Cairo), sans-serif; cursor: pointer; }
.s2-join__tint i { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(rgb(var(--gold-d8ab51-rgb)), #4cc3cb, #4fca8c, #e8789f, #ef8a4c, #9a95ee, rgb(var(--gold-d8ab51-rgb))); }

/* ---------- section heads: the live title + «الكل ‹» (+ arrows on the desktop) ---------- */
.s2-head { display: flex; align-items: center; gap: 10px; }
.s2-head .widget__title { margin: 0; display: flex; align-items: center; gap: 8px; }
.s2-head .widget__title .icon { color: var(--gold-hi); }
.s2-all { margin-inline-start: auto; display: inline-flex; align-items: center; height: 34px; 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; white-space: nowrap; }
.s2-all:hover { background: rgba(var(--gold-rgb), .1); }
.s2-arrows { display: none; gap: 6px; }
.s2-arrows button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold-line-strong); background: rgb(8 33 61 / .7); color: var(--gold-soft); display: grid; place-items: center; cursor: pointer; }
.s2-arrows button .icon { width: 18px; height: 18px; }
.s2-arrows [data-dir="1"] .icon { transform: rotate(-90deg); } .s2-arrows [data-dir="-1"] .icon { transform: rotate(90deg); }
.items--services .s2-head .widget__title { margin: 0; }

/* ---------- rails ---------- */
.s2-rail { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 14px -4px 0 !important; padding: 2px 4px 6px !important; }
.s2-rail::-webkit-scrollbar { display: none; }
.s2-rail > * { flex: none; scroll-snap-align: start; }
.s2-rail--sv > li { width: 86%; }

.s2-ev { position: relative; width: min(72vw, 270px); 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-nw { position: relative; width: min(78vw, 320px); 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; }

/* ---------- the two people cards: stacked on the phone, a pair on wider screens ---------- */
.s2-people { display: grid; gap: var(--gap); min-width: 0; }

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .s2-people { grid-template-columns: 1fr 1fr; align-items: start; }
  .s2-rail--sv > li { width: calc((100% - 12px) / 2); }
  .s2-chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

/* ---------- desktop: Suggestions + the meeting on top, rails fill the width ---------- */
@media (min-width: 1024px) {
  .hub[data-state="ready"] > .s2-sugg { grid-column: 1 / span 7 !important; grid-row: 1 !important; }
  .hub[data-state="ready"] > .s2-side { grid-column: 8 / -1 !important; grid-row: 1 !important; }
  .s2-arrows { display: flex; }
  .s2-rail { display: grid !important; grid-auto-flow: column; }
  .s2-rail--nw { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
  .s2-rail > *, .s2-rail--sv > li { width: auto; }
  .s2-nw { width: auto; }
  .s2-chips { flex-wrap: nowrap; }
  .s2-chip { justify-content: center; }
}

/* fixes after the first look */
@media (max-width: 639px) {
  .s2-join { flex-wrap: wrap; row-gap: 12px; }
  .s2-join > div { flex: 1 1 calc(100% - 100px); }
  .s2-join .btn { flex: 1 1 auto; order: 3; }
  .s2-join__x { position: absolute; top: 8px; inset-inline-end: 8px; margin: 0; }
  .s2-join { position: relative; padding-inline-end: 40px !important; }
}
.s2-chip { white-space: nowrap; }
@media (min-width: 1024px) {
  .s2-chip { flex: 1 1 auto; font-size: .84rem; padding: 0 12px; gap: 6px; }
  .s2-chip .icon { width: 16px; height: 16px; }
  .s2-rail--ev { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
}
/* desktop review: the pair side by side, posters shown whole, services fill the row */
.s2-people > * { grid-column: auto !important; margin: 0 !important; }
/* desktop: the two people stay a matched pair of equal height (polish A) */
@media (min-width: 1024px) { .s2-people { align-items: stretch; } }
.s2-rail--sv > li { max-width: none; } .s2-rail--sv > li > .item-card { height: 100%; }
@media (min-width: 1024px) {
  .s2-ev { width: auto; aspect-ratio: 4 / 5; }
  .s2-rail.s2-rail--sv { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-flow: row; overflow: visible; }
}
@media (max-width: 1023px) { .s2-rail.s2-rail--sv { grid-template-columns: none !important; } }
/* S9 audit: the slide dots are real tap targets (32 px tall), the bar stays thin */
.s2-sugg__dots { gap: 2px; margin-top: 4px; }
.s2-sugg__dots button { height: 32px; min-width: 32px; }
.s2-sugg__dots button i { inset: 14px 5px; }
.s2-sugg__dots button.on { width: 54px; }
.s2-all:focus-visible, .s2-arrows button:focus-visible, .s2-sugg__dots button:focus-visible, .s2-join__x:focus-visible, .s2-join__tint:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
/* inside a scrolling track the ring is drawn inside the card (the track would clip it outside) */
.s2-chip:focus-visible, .s2-ev:focus-visible, .s2-nw:focus-visible, .s2-slide:has(.stretched:focus-visible), .s2-rail--sv .item-card:has(.stretched:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: -2px; }
/* the cover fill above is the card's own picture only (> img): the partner's mark keeps its plate size */
.s2-ev .item-card__partner { position: relative; margin: 4px 0 2px; font-size: .72rem; color: var(--text-2); }
