/* © 2024-2026 Mehdi TMIMI — Vivace Music (vivace-music.org) */
/* ═══════════════════════════════════════════════════════════════════════
   V-KIT — the page design system (loaded by vc:head on every content page)
   Tokens (--v-*) are defined in css/site-chrome.css. Everything here is
   opt-in: base styles apply to <body class="v">, components to .v-* classes,
   so the apps (player, Creator) that also load the chrome are untouched.

   Type: Instrument Serif for display headings (always weight 400 — it has
   no bold, and a faux bold looks smeared), Plus Jakarta Sans for text,
   Tajawal for Arabic.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────────────────── */
body.v {
  margin: 0;
  font-family: var(--v-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--v-ink);
  background: var(--v-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}
/* paper grain, behind the content */
body.v::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* dark: a light grain drawn as such — a filter: invert() on this full-screen
   fixed layer cost the compositor on every scrolled frame */
:root[data-theme="dark"] body.v::before {
  opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.93 0 0 0 0 0.9 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:where(.v) *, :where(.v) *::before, :where(.v) *::after { box-sizing: border-box; }
:where(.v) :where(h1, h2, h3, h4, h5, h6) { margin: 0; color: var(--v-ink); font-weight: 700; line-height: 1.2; text-wrap: balance; }
:where(.v) :where(p) { margin: 0; text-wrap: pretty; }
:where(.v) :where(img, video) { max-width: 100%; height: auto; }
:where(.v) :where(a) { color: inherit; }
:where(.v) :where(ul, ol) { margin: 0; padding: 0; }
:where(.v) :where(button) { font: inherit; }
:where(.v) :focus-visible { outline: 3px solid var(--v-focus); outline-offset: 3px; }
:where(.v) ::selection { background: rgba(255, 110, 199, 0.28); }
:where(.v) :where([lang="ar"]) { font-family: var(--v-arabic); }

.v-sr-only, .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.v-skip:focus {
  position: fixed; top: 10px; left: 10px; z-index: 10300; width: auto; height: auto; margin: 0; clip: auto;
  padding: 10px 16px; border-radius: 12px; background: var(--v-surface); color: var(--v-ink); box-shadow: var(--v-shadow); font-weight: 700;
}

.v-ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}
.v-ico--fill { fill: currentColor; stroke: none; }
.v-ico--flip:dir(rtl) { transform: scaleX(-1); }

/* ── Layout ───────────────────────────────────────────────────────────── */
.v-wrap { width: 100%; max-width: var(--v-max); margin-inline: auto; padding-inline: var(--v-gutter); }
.v-wrap--wide { max-width: 1400px; }
.v-wrap--narrow { max-width: 920px; }
.v-wrap--text { max-width: 760px; }
.v-sec { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.v-sec--tight { padding-block: clamp(40px, 6vw, 80px); }
.v-sec--flush-top { padding-top: 0; }
.v-sec--alt { background: var(--v-bg-2); }
.v-stack { display: grid; gap: var(--gap, 16px); }
.v-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.v-center { text-align: center; margin-inline: auto; }

.v-grid { display: grid; gap: var(--gap, clamp(14px, 2vw, 24px)); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr)); }
.v-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .v-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .v-grid--2, .v-grid--3, .v-grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ── Type ─────────────────────────────────────────────────────────────── */
.v-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 700 0.78rem/1.2 var(--v-font);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--v-eyebrow, var(--v-accent));
}
/* letter-spacing breaks Arabic joins */
.v-eyebrow:lang(ar) { font-family: var(--v-arabic); font-size: 0.92rem; letter-spacing: 0; text-transform: none; }
.v-eyebrow::before { content: ''; width: 28px; height: 1.5px; border-radius: 2px; background: var(--v-grad); flex: none; }
.v-eyebrow__n { font: italic 400 1.15rem/1 var(--v-serif); letter-spacing: 0; text-transform: none; color: var(--v-ink); }
.v-eyebrow--plain::before { display: none; }

.v-display, .v-h1, .v-h2 {
  font-family: var(--v-serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--v-ink);
  text-wrap: balance;
}
.v-display { font-size: clamp(3.1rem, 9vw, 7.6rem); line-height: 0.92; }
.v-h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: 0.98; }
.v-h2 { font-size: clamp(2.25rem, 4.8vw, 3.9rem); line-height: 1.02; }
.v-h3 { font: 700 clamp(1.12rem, 1.6vw, 1.3rem)/1.3 var(--v-font); letter-spacing: -0.015em; }
.v-h3--serif { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.08 var(--v-serif); letter-spacing: -0.01em; }
/* italic gradient emphasis in any heading */
.v-display em, .v-h1 em, .v-h2 em, .v-h3--serif em, .v-em {
  font-style: italic;
  padding-inline-end: 0.06em;
  background: var(--v-grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Arabic has no Instrument Serif: Tajawal, heavier and a little smaller
   (:lang() follows each element's own language, so an LTR block inside an
   Arabic page keeps the serif) */
.v-display:lang(ar), .v-h1:lang(ar), .v-h2:lang(ar), .v-h3--serif:lang(ar) {
  font-family: var(--v-arabic);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}
.v-h1:lang(ar) { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.v-h2:lang(ar) { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.v-display em:lang(ar), .v-h1 em:lang(ar), .v-h2 em:lang(ar) { font-style: normal; }

.v-lede { font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.65; color: var(--v-ink-2); max-width: 62ch; }
.v-sub { font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.65; color: var(--v-muted); max-width: 60ch; }
.v-muted { color: var(--v-muted); }
.v-small { font-size: 0.86rem; }
.v-num { font-variant-numeric: tabular-nums; }

.v-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4.5vw, 56px); }
.v-head > :first-child { max-width: 760px; }
.v-head .v-h2 + .v-sub, .v-head .v-h2 + .v-lede { margin-top: 16px; }
.v-head--center { flex-direction: column; align-items: center; text-align: center; }
.v-head--center .v-sub, .v-head--center .v-lede { margin-inline: auto; }

/* ── Links & buttons ──────────────────────────────────────────────────── */
.v-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-weight: 700;
  color: var(--v-accent);
  text-decoration: none;
}
.v-link .v-ico { transition: transform 0.3s var(--v-ease); }
.v-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.v-link:hover .v-ico { transform: translateX(4px); }
.v-link:dir(rtl):hover .v-ico { transform: scaleX(-1) translateX(4px); }

.v-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.96rem/1.15 var(--v-font);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--v-spring), box-shadow 0.3s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.v-btn .v-ico { width: 18px; height: 18px; }
.v-btn:hover { text-decoration: none; transform: translateY(-2px); }
.v-btn:active { transform: translateY(0) scale(0.98); }
.v-btn--primary { background: var(--v-ink); color: var(--v-bg); box-shadow: 0 14px 30px -16px rgba(21, 19, 26, 0.6); }
.v-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--v-grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.v-btn--primary:hover { color: #fff; box-shadow: 0 18px 40px -16px rgba(255, 61, 110, 0.75); }
.v-btn--primary:hover::before { opacity: 1; }
.v-btn--brand { background: var(--v-grad); background-size: 140% 100%; background-origin: border-box; color: #fff; box-shadow: 0 16px 36px -16px rgba(255, 61, 110, 0.8); }
.v-btn--brand:hover { background-position: 100% 0; box-shadow: 0 20px 44px -14px rgba(255, 61, 110, 0.9); }
.v-btn--ghost { background: transparent; color: var(--v-ink); border-color: var(--v-line-2); }
.v-btn--ghost:hover { background: var(--v-surface); border-color: var(--v-ink); }
.v-btn--soft { background: var(--v-surface); color: var(--v-ink); border-color: var(--v-line); box-shadow: var(--v-shadow-sm); }
.v-btn--soft:hover { box-shadow: var(--v-shadow); }
.v-btn--light { background: #fff; color: #15131a; }
.v-btn--light:hover { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5); }
.v-btn--glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.v-btn--glass:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.45); }
.v-btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.88rem; }
.v-btn--lg { min-height: 60px; padding: 0 32px; font-size: 1.02rem; }
.v-btn--block { width: 100%; }
.v-btn--icon { width: 48px; min-height: 48px; padding: 0; }
.v-btn[disabled], .v-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ── Chips, tags ──────────────────────────────────────────────────────── */
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--v-line-2);
  background: var(--v-surface);
  color: var(--v-ink-2);
  font: 600 0.86rem/1.2 var(--v-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.3s var(--v-spring);
}
a.v-chip:hover, button.v-chip:hover { border-color: var(--v-ink); color: var(--v-ink); text-decoration: none; transform: translateY(-1px); }
.v-chip.is-active, .v-chip[aria-pressed="true"], .v-chip[aria-current] { background: var(--v-ink); border-color: var(--v-ink); color: var(--v-bg); }
.v-chip .v-ico { width: 16px; height: 16px; }

.v-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--v-surface-2);
  color: var(--v-accent);
  font: 700 0.75rem/1.1 var(--v-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.v-tag--new { background: var(--v-grad); color: #fff; }
.v-tag--ink { background: var(--v-ink); color: var(--v-bg); }
.v-tag--glass { background: rgba(255, 255, 255, 0.2); color: #fff; }
.v-tag--ok { background: rgba(29, 209, 161, 0.14); color: #0b7a5c; }
:root[data-theme="dark"] .v-tag--ok { color: #5eead4; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.v-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--v-r-lg);
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  box-shadow: var(--v-shadow-sm);
  color: var(--v-ink);
  text-decoration: none;
  transition: transform 0.45s var(--v-ease), box-shadow 0.45s var(--v-ease), border-color 0.3s ease;
}
/* a gradient hairline that appears on hover */
a.v-card::after, .v-card--link::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--v-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
a.v-card:hover, .v-card--link:hover { transform: translateY(-5px); box-shadow: var(--v-shadow); text-decoration: none; }
a.v-card:hover::after, .v-card--link:hover::after { opacity: 1; }
.v-card__ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(140deg, var(--c1, #ff6ec7), var(--c2, #ff9a3d));
  box-shadow: 0 12px 24px -12px var(--c2, #ff9a3d), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.5s var(--v-spring);
}
.v-card__ico .v-ico { width: 24px; height: 24px; }
a.v-card:hover .v-card__ico { transform: rotate(-8deg) scale(1.06); }
.v-card__title { font: 700 1.18rem/1.3 var(--v-font); letter-spacing: -0.015em; }
.v-card__title--serif { font: 400 clamp(1.55rem, 2.4vw, 1.95rem)/1.08 var(--v-serif); letter-spacing: -0.01em; }
.v-card__text { color: var(--v-muted); font-size: 0.95rem; line-height: 1.62; }
.v-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; color: var(--v-accent); text-decoration: none; min-height: 40px; }
a.v-card__more:hover { text-decoration: underline; text-underline-offset: 4px; }
.v-card__more .v-ico { transition: transform 0.3s var(--v-ease); }
a.v-card:hover .v-card__more .v-ico { transform: translateX(5px); }
a.v-card:dir(rtl):hover .v-card__more .v-ico { transform: scaleX(-1) translateX(5px); }
.v-card--flat { box-shadow: none; }
.v-card--tint { background: var(--v-surface-2); border-color: transparent; box-shadow: none; }

/* dark "stage" band, the footer's sibling, for spotlights */
.v-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--v-r-xl);
  padding: clamp(28px, 5vw, 72px);
  color: rgba(244, 242, 248, 0.78);
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(193, 60, 255, 0.35), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(255, 110, 199, 0.25), transparent 60%),
    var(--v-stage);
  box-shadow: var(--v-shadow-lg);
}
:root[data-theme="dark"] .v-band { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--v-shadow-lg); }
.v-band :where(h1, h2, h3, .v-h1, .v-h2, .v-display) { color: #fff; }
.v-band .v-eyebrow { color: #ffc4e8; }
.v-band .v-eyebrow__n { color: #fff; }
.v-band .v-h2 em, .v-band .v-h1 em, .v-band .v-display em { background: linear-gradient(100deg, #ffb347, #ff6ec7 45%, #b794ff 85%); -webkit-background-clip: text; background-clip: text; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.v-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 104px);
  overflow: hidden;
  overflow: clip;
}
.v-hero__in { position: relative; }
/* soft aurora */
.v-hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(900px, 90vw);
  height: min(700px, 80vw);
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(255, 110, 199, 0.32), transparent 70%) 0 0 / 60% 70% no-repeat,
    radial-gradient(closest-side, rgba(255, 179, 71, 0.30), transparent 70%) 100% 10% / 55% 60% no-repeat,
    radial-gradient(closest-side, rgba(84, 160, 255, 0.24), transparent 70%) 60% 100% / 60% 60% no-repeat;
  filter: blur(10px);
  pointer-events: none;
}
/* five staff lines */
.v-hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: clamp(20px, 4vw, 48px);
  height: 57px;
  z-index: -1;
  background: repeating-linear-gradient(180deg, var(--v-line-2) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  opacity: 0.6;
  pointer-events: none;
}
.v-hero--plain::after { display: none; }
@media (max-width: 639px) {
  .v-hero:not(.v-hero--plain) { padding-bottom: 92px; }
  .v-hero::after { bottom: 18px; }
}
.v-hero--center { text-align: center; }
.v-hero--center .v-lede, .v-hero--center .v-sub { margin-inline: auto; }
.v-hero--center .v-row, .v-hero--center .v-chips { justify-content: center; }
.v-hero .v-h1, .v-hero .v-display { margin: 0 0 22px; }
.v-hero .v-lede { margin-bottom: 30px; }

/* the staff as a divider */
.v-staff {
  display: block;
  height: 41px;
  margin-block: clamp(24px, 4vw, 48px);
  background: repeating-linear-gradient(180deg, var(--v-line-2) 0 1px, transparent 1px 10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  border: 0;
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */
.v-crumbs { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; gap: 4px 2px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 0.84rem; color: var(--v-muted); }
.v-crumbs li { display: inline-flex; align-items: center; gap: 2px; min-width: 0; list-style: none; }
.v-crumbs li:last-child { flex: 0 1 auto; overflow: hidden; }
.v-crumbs li + li::before { content: '/'; margin: 0 8px; opacity: 0.45; }
.v-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--v-muted); text-decoration: none; font-weight: 600; }
.v-crumbs a:hover { color: var(--v-ink); text-decoration: underline; text-underline-offset: 3px; }
.v-crumbs [aria-current] { display: block; min-width: 0; color: var(--v-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* ── Stats ────────────────────────────────────────────────────────────── */
.v-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--v-line-2); }
.v-stats li { display: grid; gap: 4px; padding: clamp(18px, 3vw, 30px) clamp(12px, 2vw, 24px); list-style: none; }
.v-stats li + li { border-inline-start: 1px solid var(--v-line-2); }
.v-stats strong { font: 400 clamp(2.3rem, 4.6vw, 3.8rem)/1 var(--v-serif); letter-spacing: -0.02em; color: var(--v-ink); }
.v-stats span { font-size: 0.88rem; color: var(--v-muted); line-height: 1.4; }
@media (max-width: 767px) {
  .v-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-stats li:nth-child(3) { border-inline-start: 0; }
  .v-stats li:nth-child(n + 3) { border-top: 1px solid var(--v-line-2); }
}

/* ── Marquee ──────────────────────────────────────────────────────────── */
.v-marquee {
  --gap: clamp(28px, 4vw, 56px);
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.v-marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gap);
  padding-inline-end: var(--gap);
  min-width: 100%;
  list-style: none;
  margin: 0;
  animation: v-marquee var(--dur, 60s) linear infinite;
  will-change: transform;
}
.v-marquee:hover .v-marquee__track { animation-play-state: paused; }
.v-marquee__track > * { list-style: none; flex: none; }
@keyframes v-marquee { to { transform: translateX(-100%); } }
.v-marquee__track:dir(rtl) { animation-name: v-marquee-rtl; }
@keyframes v-marquee-rtl { to { transform: translateX(100%); } }

/* ── Prose (articles, lessons, about pages) ───────────────────────────── */
.v-prose { font-size: clamp(1.02rem, 1.2vw, 1.1rem); line-height: 1.78; color: var(--v-ink-2); }
.v-prose > * + * { margin-top: 1.15em; }
.v-prose :where(h2) { margin-top: 2.2em; font: 400 clamp(1.9rem, 3.4vw, 2.6rem)/1.08 var(--v-serif); letter-spacing: -0.015em; color: var(--v-ink); }
.v-prose :where(h2):lang(ar) { font-family: var(--v-arabic); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.35; }
.v-prose :where(h3) { margin-top: 1.8em; font: 700 1.22rem/1.35 var(--v-font); letter-spacing: -0.012em; color: var(--v-ink); }
.v-prose :where(h2 + *, h3 + *) { margin-top: 0.7em; }
.v-prose :where(a) { color: var(--v-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.v-prose :where(a):hover { text-decoration-thickness: 2px; }
.v-prose :where(strong) { color: var(--v-ink); font-weight: 700; }
/* Arabic has no true italic: emphasis is weight, not a fake slant */
.v-prose :where(em, i):lang(ar) { font-style: normal; font-weight: 700; color: var(--v-ink); }
.v-prose :where(ul, ol) { padding-inline-start: 1.3em; }
.v-prose :where(li) { margin: 0.4em 0; padding-inline-start: 0.3em; }
.v-prose :where(ul > li)::marker { color: var(--v-pink); content: '♪  '; font-size: 0.85em; }
.v-prose :where(ol > li)::marker { color: var(--v-accent); font-weight: 800; }
.v-prose :where(blockquote) {
  margin-inline: 0;
  padding: 0.2em 0 0.2em 1.1em;
  border-inline-start: 3px solid;
  border-image: var(--v-grad) 1;
  font: italic 400 clamp(1.4rem, 2.4vw, 1.75rem)/1.35 var(--v-serif);
  color: var(--v-ink);
}
.v-prose :where(figure) { margin-inline: 0; }
.v-prose :where(figure img, > img) { display: block; border-radius: var(--v-r); }
.v-prose :where(figcaption) { margin-top: 10px; font-size: 0.86rem; color: var(--v-muted); }
.v-prose :where(hr) { height: 41px; border: 0; margin-block: 2.4em; background: repeating-linear-gradient(180deg, var(--v-line-2) 0 1px, transparent 1px 10px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.v-prose :where(code) { padding: 0.12em 0.4em; border-radius: 6px; background: var(--v-surface-2); font-size: 0.9em; }
.v-prose :where(table) { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.v-prose :where(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--v-line); text-align: start; }
.v-prose :where(th) { color: var(--v-ink); font-weight: 700; }

.v-note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--v-r);
  background: var(--v-surface-2);
  color: var(--v-ink-2);
  font-size: 0.97rem;
  line-height: 1.65;
}
.v-note > .v-ico { width: 22px; height: 22px; margin-top: 2px; color: var(--v-accent); }
.v-note strong { color: var(--v-ink); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.v-faq { display: grid; gap: 10px; }
.v-faq details {
  border-radius: var(--v-r);
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.v-faq details[open] { border-color: rgba(255, 110, 199, 0.45); box-shadow: var(--v-shadow-sm); }
.v-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 22px;
  list-style: none;
  cursor: pointer;
  font: 650 1.02rem/1.4 var(--v-font);
  color: var(--v-ink);
}
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.8px 12px no-repeat,
    var(--v-surface-2);
  color: var(--v-accent);
  transition: transform 0.35s var(--v-ease);
}
.v-faq details[open] summary::after { transform: rotate(135deg); }
.v-faq details > :not(summary) { padding: 0 22px 20px; color: var(--v-ink-2); line-height: 1.7; }
.v-faq details a { color: var(--v-accent); font-weight: 600; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.v-input, .v-select, .v-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--v-line-2);
  background: var(--v-surface);
  color: var(--v-ink);
  font: 500 1rem/1.3 var(--v-font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.v-textarea { min-height: 140px; padding: 14px 18px; resize: vertical; }
.v-input:focus, .v-select:focus, .v-textarea:focus { outline: 0; border-color: var(--v-pink); box-shadow: 0 0 0 4px rgba(255, 110, 199, 0.16); }
.v-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; color: var(--v-ink); }

/* the big search pill */
.v-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  min-height: 64px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1px solid var(--v-line-2);
  background: var(--v-surface);
  box-shadow: var(--v-shadow);
  transition: border-color 0.2s ease, box-shadow 0.3s ease;
}
.v-search:focus-within { border-color: var(--v-pink); box-shadow: 0 0 0 5px rgba(255, 110, 199, 0.14), var(--v-shadow); }
.v-search > .v-ico { width: 21px; height: 21px; color: var(--v-muted); }
.v-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--v-ink);
  font: 500 1.05rem/1.2 var(--v-font);
}
.v-search input::placeholder { color: var(--v-muted); opacity: 1; }
.v-search input:focus-visible { outline: 0; }
.v-search .v-btn { min-height: 52px; padding: 0 24px; }
@media (max-width: 479px) {
  .v-search { padding-inline-start: 16px; min-height: 58px; }
  .v-search .v-btn { width: 46px; min-height: 46px; padding: 0; }
  .v-search .v-btn span { display: none; }
}

/* segmented control */
.v-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--v-surface); border: 1px solid var(--v-line); }
.v-seg > * {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--v-muted); font: 650 0.86rem/1 var(--v-font); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.v-seg > *:hover { color: var(--v-ink); text-decoration: none; }
.v-seg > .is-active, .v-seg > [aria-current], .v-seg > [aria-pressed="true"], .v-seg > [aria-selected="true"] { background: var(--v-seg-on, var(--v-ink)); color: var(--v-seg-on-ink, var(--v-bg)); }

.v-kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 7px; border: 1px solid var(--v-line-2); border-bottom-width: 2px; background: var(--v-surface); font: 700 0.75em/1.3 var(--v-font); text-align: center; }

/* ── Reveal on scroll (site-chrome.js adds .v-reveal and .is-in) ──────── */
[data-reveal] { transition: opacity 0.9s var(--v-ease), transform 1s var(--v-ease); transition-delay: var(--d, 0ms); }
.v-reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }
.v-reveal [data-reveal="fade"]:not(.is-in) { transform: none; }
.v-reveal [data-reveal="zoom"]:not(.is-in) { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  .v *, .v *::before, .v *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .v-marquee__track { animation: none !important; }
}
@media print {
  body.v::before { display: none; }
  .v-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}
