/* iOS-inspired booking surfaces. Scoped because the persistent router retains CSS. */
body:is(.wn-event,.wn-institution,.wn-plans,.wn-ticket) {
  --bg: #fff;
  --experience-green: #087f63;
  --experience-muted: #717177;
  --experience-fill: #f3f3f6;
  --experience-width: 640px;
  --experience-font: -apple-system, BlinkMacSystemFont, 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
  font-family: var(--experience-font);
}
@media (prefers-color-scheme: dark) {
  body:is(.wn-event,.wn-institution,.wn-plans,.wn-ticket) {
    --bg: #0c0c0c;
    --experience-green: #56d6ad;
    --experience-muted: #aaaab2;
    --experience-fill: #202023;
  }
}
body:is(.wn-event,.wn-institution) #page { position: relative; max-width: var(--experience-width); width: 100%; padding: 0; margin: 0 auto; }
body:is(.wn-event,.wn-institution) .details { padding: 0; max-width: var(--experience-width); }
/* A transform/filter on an ancestor changes the containing block of fixed art. */
body:is(.wn-event,.wn-institution) .anim-2,
body:is(.wn-event,.wn-institution) .anim-3,
body:is(.wn-event,.wn-institution) .details.wn-soft-enter { animation: none; transform: none; filter: none; }
html.wn-shell-mounted:has(body:is(.wn-event,.wn-plans) .wn-ovl.on),
html.wn-shell-mounted body:is(.wn-event,.wn-plans):has(.wn-ovl.on) { overflow-y: hidden !important; }
html.wn-shell-mounted:has(.lightbox.open) { overflow-y: hidden !important; }
#wn-route-outlet:has(.lightbox.open) { z-index: 100; }
html.wn-shell-mounted { scroll-padding-top: calc(var(--wn-shell-header-height) + 16px); }
html.wn-shell-mounted:has(body.wn-event.has-cta) { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.wn-detail-hero {
  position: fixed !important;
  top: var(--wn-shell-header-height, 64px); left: 50%; transform: translateX(-50%);
  width: min(100%, var(--experience-width)) !important; max-width: none !important;
  height: clamp(320px, 58svh, 600px) !important;
  max-height: none !important; aspect-ratio: auto !important;
  margin: 0 !important; border-radius: 0 !important;
  overflow: hidden; background: var(--hero-bg, var(--experience-fill));
  z-index: -1;
}
.wn-detail-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.wn-event .wn-detail-hero { height: max(320px, min(100vw, var(--experience-width))) !important; }
.wn-detail-hero::after { display: none; }
.wn-detail-hero .inst-cover-overlay { display: none; }
.wn-detail-sheet {
  position: relative; margin-top: clamp(240px, calc(43svh - var(--wn-shell-header-height, 64px)), 400px);
  padding: 26px 24px 44px; min-height: 58svh;
  border-radius: 32px 32px 0 0; background: var(--bg);
}
body.wn-no-hero .wn-detail-sheet { margin-top: 72px; }
.wn-eyebrow {
  color: var(--experience-green); font-size: .78rem; line-height: 1.5; font-weight: 700;
  text-transform: uppercase; text-align: center; margin-bottom: 14px;
}
.wn-event .event-title, .wn-institution .inst-name {
  display: block; font-size: clamp(30px, 8.2vw, 46px); font-weight: 750;
  line-height: 1.15; letter-spacing: -.035em; text-align: center;
  overflow: visible; -webkit-line-clamp: unset; text-wrap: balance; margin: 0 0 20px;
}
[dir="rtl"] :is(.event-title,.inst-name) { letter-spacing: 0; line-height: 1.35; }
.wn-event .pill-row { justify-content: center; margin-bottom: 26px; }
.wn-event .pill-row .pill { background: none; border: 0; backdrop-filter: none; height: auto; min-height: 44px; font-size: 1rem; padding: 4px; white-space: normal; text-align: center; }
.wn-event .pill-row .pill-logo { display: none; }
.wn-event .pill-row .pill-name { overflow: visible; }
.wn-event .pill-row .pill-verified { color: var(--experience-green); }
.wn-event .pill-row a.pill::after { content: ''; flex: 0 0 8px; width: 8px; height: 8px; margin-inline-start: 6px; border-top: 2px solid var(--experience-muted); border-right: 2px solid var(--experience-muted); transform: rotate(45deg); }
[dir="rtl"] .wn-event .pill-row a.pill::after { transform: rotate(-135deg); }
.wn-facts { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0 32px; }
.wn-facts > * { min-width: 0; }
.wn-event .date-block { margin: 0; padding: 0; flex: 1 1 auto; }
.wn-event .fact-icon { display: none; }
.wn-event .fact-title { font-size: .92rem; line-height: 1.5; }
.wn-event .fact-sub { font-size: .78rem; line-height: 1.5; }
.wn-event #locationSlot { flex: 0 1 44%; margin: 0; }
.wn-location-link { display: flex; align-items: center; gap: 7px; min-height: 44px; color: var(--text); font-weight: 600; font-size: .94rem; text-decoration: none; }
.wn-location-link svg { flex: 0 0 18px; color: var(--experience-green); }
.wn-location-name { color: var(--experience-muted); font-size: .85rem; }
.wn-section-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.wn-event .event-desc, .wn-institution .inst-desc { color: var(--text); font-size: 1.06rem; line-height: 1.75; margin: 0; }
.wn-event #eventBody { gap: 28px; }
.wn-event .section, .wn-institution .section { margin-top: 28px; }
.wn-event .section-head, .wn-institution .section-head { font-size: 1.3rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
.wn-event .cta-float {
  position: fixed; z-index: 35; bottom: 0; inset-inline: auto; left: 50%; right: auto; transform: translateX(-50%);
  width: min(100%, var(--experience-width)); padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 25%); margin: 0;
}
.wn-event .book-cta { width: 100%; min-height: 56px; font: 700 1.05rem/1.4 var(--experience-font); border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 20px; box-shadow: none; }
.wn-event .book-cta:has(.wn-cta-price) { justify-content: space-between; }
.wn-cta-price { white-space: nowrap; }
.wn-event.has-cta #page { padding-bottom: 0; }
.wn-event.has-cta #wn-shell-footer { padding-bottom: max(114px, calc(100px + env(safe-area-inset-bottom))); }
/* Institution identity, actions, compact programme and horizontal photo strip. */
.wn-institution .inst-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 22px; padding: 0; }
.wn-institution .inst-logo { width: 48px; height: 48px; border-radius: 13px; object-fit: contain; background: var(--experience-fill); }
.wn-institution .inst-head-text { display: contents; }
.wn-institution .inst-name-row { order: 2; justify-content: center; gap: 8px; }
.wn-institution .inst-name { margin: 0; }
.wn-institution .inst-city { order: 1; margin: 0; text-align: center; color: var(--experience-green); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.wn-institution .inst-city svg { display: none; }
.wn-institution .verified-badge { color: var(--experience-green); }
.wn-institution .contact-list { gap: 8px; margin: 0 0 26px; }
.wn-institution .contact-item { min-height: 44px; border: 1px solid var(--border); border-radius: 999px; padding: 12px 16px; background: var(--experience-fill); color: var(--text); font-size: .92rem; font-weight: 600; }
.wn-institution .contact-item svg { width: 18px; height: 18px; }
.wn-institution #upcomingList { display: flex; flex-direction: column; gap: 20px; }
.wn-event-row { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; min-width: 0; }
.wn-event-row > img, .wn-event-row > .wn-row-placeholder { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--experience-fill); }
.wn-event-row > span { min-width: 0; }
.wn-event-row strong { display: block; font-size: 1rem; line-height: 1.45; }
.wn-event-row small { display: block; font-size: .85rem; line-height: 1.6; color: var(--experience-muted); }
.wn-institution .gallery-grid, .wn-event .gallery-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; }
.wn-institution .gallery-item, .wn-event .gallery-item { flex: 0 0 136px; width: 136px; height: 116px; border-radius: 16px; scroll-snap-align: start; }
/* Plans: one upcoming highlight, then a compact chronological agenda. */
.wn-plans .wrap { max-width: 680px; padding: 24px 18px 24px; }
.wn-plans .title { font-size: clamp(34px, 8vw, 44px); font-weight: 750; letter-spacing: -.035em; margin: 0 0 28px; }
.wn-plans .sec-head { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1.35rem; margin: 24px 0 12px; }
.wn-plans .tk-list { gap: 0; }
.wn-plans .tk-card { background: transparent; border: none; border-radius: 0; box-shadow: none; padding: 12px 0; gap: 12px; }
.wn-plans .tk-body { gap: 2px; }
.wn-plans .wn-plan-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; }
.wn-plans .tk-card + .tk-card { border-top: 1px solid var(--line); }
.wn-plans .tk-card:hover { transform: none; box-shadow: none; }
.wn-plans .tk-thumb { width: 64px; height: 64px; border-radius: 12px; flex-basis: 64px; }
.wn-plans .tk-title { font-size: 1rem; line-height: 1.4; }
.wn-plans .tk-meta { display: inline-flex; margin: 0; font-size: .83rem; color: var(--experience-muted); }
.wn-plans .tk-status, .wn-plans .tk-status:is(.ok,.warn,.off) { display: inline; background: transparent; padding: 0; font-size: .8rem; line-height: 1.5; white-space: normal; border: none; border-radius: 0; }
.wn-plans .tk-status.ok { color: #8545c5; }
@media (prefers-color-scheme: dark) { .wn-plans .tk-status.ok { color: #c495f5; } }
.wn-plan-institution { color: var(--experience-muted); font-size: .94rem; line-height: 1.4; margin: 0; }
.wn-plan-day { font-size: 1.22rem; margin: 24px 0 4px; font-weight: 700; }
.wn-plans .foot { margin-top: 24px; }
.wn-plans .foot button { min-height: 44px; }
.wn-plan-feature {
  position: relative; width: 100%; min-width: 0; min-height: 216px; aspect-ratio: 1.85; overflow: hidden; isolation: isolate;
  border-radius: 24px; color: #fff; background: #44365d; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none;
}
.wn-plan-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.wn-plan-feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.12) 80%); z-index: -1; }
.wn-plan-feature-top { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.wn-plan-feature-top span { background: rgba(0,0,0,.64); color: #fff; padding: 7px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.wn-plan-feature strong { display: block; font-size: clamp(22px, 6vw, 28px); line-height: 1.3; margin: 40px 0 6px; }
.wn-plan-feature small { font-size: 1rem; color: #f0f0f0; }
/* Entry credentials retain an opaque white QR surface in both appearances. */
/* Keep Safari's exposed canvas neutral; only the ticket content is purple. */
body.wn-ticket { background: var(--bg); }
.wn-ticket #wn-route-outlet { background: radial-gradient(ellipse at top left, #6b3277, transparent 70%), linear-gradient(150deg,#302044,#41477f 50%,#4f398c); color: #fff; }
.wn-ticket .ticket-wrap { max-width: 600px; padding: 24px 20px 48px; }
.wn-ticket .ticket-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; animation: none; }
.wn-ticket .ticket-poster { display: none; }
.wn-ticket .ticket-body { padding: 12px 4px 28px; text-align: center; }
.wn-ticket .ticket-title, .wn-ticket .ticket-title.ar { text-align: center; font-size: clamp(24px,6vw,32px); line-height: 1.4; color: #fff; }
.wn-ticket .ticket-institution { color: #e4dbf5; text-transform: none; letter-spacing: 0; font-size: 1rem; margin-bottom: 12px; }
.wn-ticket .ticket-meta { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; }
.wn-ticket .ticket-meta-row { color: #fff; font-size: .95rem; }
.wn-ticket .ticket-meta-row svg { opacity: 1; }
.wn-ticket .ticket-perf { display: none; }
.wn-ticket .ticket-footer { background: #fff; color: #252525; border-radius: 26px; padding: 20px 20px 24px; text-align: center; }
.wn-ticket .ticket-number, .wn-ticket .ticket-number.ar { text-align: center; color: #555; letter-spacing: 0; text-transform: none; font-size: 1rem; margin: 0 0 18px; }
.wn-ticket .qr-box { padding: 18px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: 100%; }
.wn-ticket .qr-box svg { width: min(220px, 49vw); height: auto; aspect-ratio: 1; }
.wn-ticket .qr-label { color: #666; margin-top: 8px; }
.wn-ticket .badge.valid, .wn-ticket .badge.used { justify-content: center; border: 0; border-top: 2px dashed #d7d7d7; border-radius: 0; padding: 18px 0 0; background: transparent; color: #444; }
.wn-ticket .badge.used { color: #a92e2e; }
.wn-ticket .badge-sub { opacity: 1; color: #666; }
.wn-ticket .ticket-wrap.multi { align-items: flex-start; }
.wn-ticket .ticket-card:focus-visible, .wn-plan-feature:focus-visible, .wn-event-row:focus-visible { outline: 3px solid var(--experience-green); outline-offset: 3px; }
.wn-ticket-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; padding-inline: 20px; }
.wn-ticket #notfound, .wn-ticket .nf-wordmark { color: #fff; }
.wn-ticket .nf-sub { color: #e4dbf5; }
.wn-ticket-nav[hidden] { display: none; }
.wn-ticket-nav button { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff; font: inherit; cursor: pointer; }
/* The same calm, monochrome controls across authentication and checkout. */
html.wn-shell-mounted body:is(.wn-event,.wn-plans) .wn-sheet { font-family: var(--experience-font); border-radius: 30px 30px 0 0 !important; }
html.wn-shell-mounted body:is(.wn-event,.wn-plans) .wn-sheet:has(#wn-ph),
html.wn-shell-mounted body:is(.wn-event,.wn-plans) .wn-sheet:has(#wn-otp) { background: var(--wn-bg,#fff) !important; overflow-y: auto; }
html.wn-shell-mounted body:is(.wn-event,.wn-plans) .wn-sheet .wn-btn { border-radius: 999px; box-shadow: none !important; }
@media (min-width: 560px) {
  html.wn-shell-mounted body:is(.wn-event,.wn-plans) .wn-sheet { border-radius: 30px !important; }
}
@media (max-width: 360px) {
  .wn-detail-sheet { padding-inline: 18px; }
  .wn-facts { gap: 12px; flex-wrap: wrap; }
  .wn-plan-feature { padding: 14px; }
  .wn-ticket .ticket-wrap { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.wn-event,.wn-institution,.wn-plans,.wn-ticket) *,
  body:is(.wn-event,.wn-institution,.wn-plans,.wn-ticket) *::before { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
