/* tour.css — the welcome tour's overlay (2026-10-27). See tour.js.
 * Its own .mbt classes so no other stylesheet reaches it. Colours from the
 * site's brand tokens (theme.css), with the same values as fallbacks.
 * Motion: transform and opacity only, 200 to 400ms, out faster than in;
 * prefers-reduced-motion removes it and changes nothing else. */

.mbt {
  --mbt-navy: var(--brand-navy, #0A2A3D);
  --mbt-teal: var(--brand-teal, #12525C);
  --mbt-teal-300: var(--brand-teal-300, #3D7580);
  --mbt-gold: var(--brand-gold, #C9A227);
  --mbt-grey: var(--brand-grey, #5A6B74);
  --mbt-tint: var(--brand-tint, #F4F6F7);
  --mbt-line: rgba(10, 42, 61, .12);
  --mbt-scrim: rgba(10, 42, 61, .62);
  --mbt-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: fixed; inset: 0; z-index: 100000; pointer-events: none;
  font-family: "Alexandria", "Noto Kufi Arabic", system-ui, sans-serif;
  color: var(--mbt-navy);
}
.mbt *, .mbt *::before, .mbt *::after { box-sizing: border-box; }

/* The dim layer. With a cut-out it goes clear and the cut-out's own shadow
   does the dimming, so the element stays bright and the rest is one layer. */
.mbt__scrim {
  position: fixed; inset: 0; background: var(--mbt-scrim); pointer-events: auto;
  opacity: 0; transition: opacity 320ms var(--mbt-ease);
}
.mbt.has-hole .mbt__scrim { background: transparent; }
.mbt__hole {
  position: fixed; top: 0; left: 0; width: 0; height: 0; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px var(--mbt-scrim), 0 0 0 3px var(--mbt-gold);
  opacity: 0;
  transition: transform 360ms var(--mbt-ease), width 360ms var(--mbt-ease), height 360ms var(--mbt-ease), opacity 240ms var(--mbt-ease);
}
.mbt.is-on .mbt__scrim { opacity: 1; }
.mbt.is-on.has-hole .mbt__hole { opacity: 1; }

.mbt__card {
  position: fixed; top: 16px; left: 16px; pointer-events: auto;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; color: var(--mbt-navy); border-radius: 18px; padding: 20px;
  box-shadow: 0 18px 50px rgba(10, 42, 61, .28);
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity 280ms var(--mbt-ease), transform 320ms var(--mbt-ease), top 360ms var(--mbt-ease), left 360ms var(--mbt-ease);
}
.mbt__card--center { width: min(420px, calc(100vw - 32px)); }
.mbt.is-on .mbt__card { opacity: 1; transform: none; }
.mbt.is-leaving .mbt__card { opacity: 0; transform: translateY(6px); transition-duration: 180ms; }
.mbt.is-leaving .mbt__scrim, .mbt.is-leaving .mbt__hole { opacity: 0; transition-duration: 200ms; }

/* The words enter from the reading direction. */
.mbt__body { animation: mbt-in 300ms var(--mbt-ease) both; }
@keyframes mbt-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.mbt[dir="ltr"] .mbt__body { animation-name: mbt-in-ltr; }
@keyframes mbt-in-ltr { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

.mbt-svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mbt__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-block-end: 10px;
  background: rgba(18, 82, 92, .10); color: var(--mbt-teal);
}
.mbt__eyebrow { margin: 0; font-size: 12.5px; color: var(--mbt-grey); }
.mbt__title { margin: 2px 0 6px; font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--mbt-navy); text-wrap: balance; }
.mbt__text { margin: 0; font-size: 14.5px; line-height: 1.75; color: #3E5260; }

.mbt__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.mbt__chips span { font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: var(--mbt-tint); border: 1px solid var(--mbt-line); }

.mbt__progress { display: flex; align-items: center; gap: 8px; margin-block-start: 14px; }
.mbt__dots { display: flex; gap: 6px; margin-inline-end: auto; }
.mbt__dots i { width: 8px; height: 8px; border-radius: 99px; background: #C7D1D5; transition: width 280ms var(--mbt-ease), background-color 280ms var(--mbt-ease); }
.mbt__dots i.is-on { width: 22px; background: var(--mbt-gold); }

.mbt__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 16px; }
.mbt__foot--end { justify-content: flex-end; margin-block-start: 8px; }
.mbt__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--mbt-line); background: #fff; color: var(--mbt-navy);
  font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.mbt__btn:hover { background: var(--mbt-tint); }
.mbt__btn--primary { background: var(--mbt-teal); border-color: var(--mbt-teal); color: #fff; }
.mbt__btn--primary:hover { background: var(--mbt-navy); border-color: var(--mbt-navy); }
/* Gold is for giving only, as everywhere on the site; navy text on it reads 7:1. */
.mbt__btn--gold { background: var(--mbt-gold); border-color: var(--mbt-gold); color: var(--mbt-navy); }
.mbt__btn--gold:hover { background: #DFBE55; }
.mbt__btn--quiet { border-color: transparent; color: var(--mbt-grey); }
.mbt__skip {
  min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer; border-radius: 10px;
  font: inherit; font-size: 13.5px; color: var(--mbt-grey); text-decoration: underline; text-underline-offset: 4px;
}
.mbt__skip:hover { color: var(--mbt-navy); }
.mbt__x {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--mbt-grey); cursor: pointer;
}
.mbt__x:hover { background: var(--mbt-tint); color: var(--mbt-navy); }
.mbt__x .mbt-svg { width: 20px; height: 20px; }
.mbt :focus-visible { outline: 3px solid var(--mbt-gold); outline-offset: 2px; }
.mbt__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .mbt__scrim, .mbt__hole, .mbt__card, .mbt__dots i { transition: none !important; }
  .mbt__card, .mbt.is-on .mbt__card, .mbt.is-leaving .mbt__card { transform: none; }
  .mbt__body { animation: none !important; }
}
