/* Loading veil (Components/LoadingVeil.razor, js/loading-veil.js). Uses the
   site's colour tokens with fallbacks, so it works in any host and both
   themes. Long-hand properties only (Safari 13). Motion: fade in, a progress
   bar that eases towards the end, a shimmer across the skeleton, the mark
   breathing, promo lines cross-fading; reduced motion keeps only the fade. */
.zunvi-veil{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;overflow:hidden;opacity:0;transition:opacity 180ms ease;
  background:radial-gradient(circle at 80% 0%,rgba(156,114,255,.18),transparent 40%),radial-gradient(circle at 0% 30%,rgba(67,229,233,.10),transparent 35%),var(--night,#07111f);color:var(--ink,#eef6ff)}
.zunvi-veil.is-open{opacity:1}
.zunvi-veil[hidden]{display:none}
html[data-theme="light"] .zunvi-veil{background:radial-gradient(circle at 80% 0%,rgba(246,199,122,.28),transparent 40%),radial-gradient(circle at 0% 30%,rgba(167,139,250,.16),transparent 35%),#f8f4ec;color:#1c1f3f}

/* Progress: grows quickly, then slows towards 92% until the page arrives. */
.zunvi-veil-bar{position:absolute;top:0;left:0;right:0;height:3px;overflow:hidden}
.zunvi-veil-bar span{display:block;height:100%;width:100%;transform-origin:left;transform:scaleX(0);background:linear-gradient(90deg,var(--cyan,#43e5e9),var(--violet,#9c72ff));box-shadow:0 0 12px var(--cyan,#43e5e9)}
.zunvi-veil.is-open .zunvi-veil-bar span{animation:veil-progress 9s cubic-bezier(.1,.7,.2,1) forwards}
@keyframes veil-progress{0%{transform:scaleX(0)}15%{transform:scaleX(.45)}100%{transform:scaleX(.92)}}

.zunvi-veil-inner{width:100%;max-width:1180px;margin:0 auto;padding:clamp(28px,7vh,72px) 24px 24px}

/* The card: what is opening, and a promo. */
.zunvi-veil-card{display:flex;align-items:center;margin:0 0 28px;padding:18px 20px;border:1px solid var(--line,rgba(180,220,255,.14));border-radius:22px;
  background:rgba(13,26,43,.72);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 18px 50px rgba(0,0,0,.28);
  transform:translateY(8px);transition:transform 420ms cubic-bezier(.2,.8,.2,1)}
.zunvi-veil.is-open .zunvi-veil-card{transform:none}
html[data-theme="light"] .zunvi-veil-card{background:rgba(255,255,255,.78);border-color:rgba(28,31,63,.12);box-shadow:0 18px 50px rgba(28,31,63,.12)}
.zunvi-veil-mark{position:relative;flex:none;width:52px;height:52px;margin-right:16px;display:grid;place-items:center;border-radius:15px;border:1px solid rgba(67,229,233,.55);color:var(--cyan,#43e5e9);font:700 1.3rem/1 'Manrope',sans-serif;box-shadow:inset 0 0 18px rgba(67,229,233,.12)}
.zunvi-veil-mark::after{content:"";position:absolute;top:-4px;right:-4px;width:10px;height:10px;border-radius:50%;background:var(--violet,#9c72ff);box-shadow:0 0 10px var(--violet,#9c72ff)}
.zunvi-veil.is-open .zunvi-veil-mark{animation:veil-breathe 1.8s ease-in-out infinite}
.zunvi-veil.is-open .zunvi-veil-mark::after{animation:veil-orbit 2.4s linear infinite;transform-origin:-21px 31px}
@keyframes veil-breathe{50%{box-shadow:inset 0 0 22px rgba(67,229,233,.25),0 0 22px rgba(67,229,233,.25)}}
@keyframes veil-orbit{to{transform:rotate(360deg)}}
.zunvi-veil-text{flex:1;min-width:0}
.zunvi-veil-eyebrow{margin:0;color:var(--cyan,#43e5e9);font:600 .7rem/1.2 'Manrope',sans-serif;letter-spacing:.18em;text-transform:uppercase}
.zunvi-veil-title{margin:.25rem 0 .35rem;font:600 clamp(1.15rem,3.6vw,1.6rem)/1.2 'Manrope',sans-serif;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zunvi-veil-title::after{content:"…";animation:veil-dots 1.2s steps(4,end) infinite}
@keyframes veil-dots{0%{opacity:.2}50%{opacity:1}}
.zunvi-veil-promos{display:grid}
.zunvi-veil-promo{grid-row:1;grid-column:1;margin:0;color:var(--muted,#93a5b8);font-size:.92rem;line-height:1.45;opacity:0;transform:translateY(6px);transition:opacity 420ms ease,transform 420ms ease}
.zunvi-veil-promo.is-shown{opacity:1;transform:none}
.zunvi-veil-promo strong{color:var(--ink,#eef6ff);font-weight:700;margin-right:.25rem}
html[data-theme="light"] .zunvi-veil-promo{color:#4d5375}
html[data-theme="light"] .zunvi-veil-promo strong{color:#1c1f3f}
.zunvi-veil-slow{margin:.4rem 0 0;color:#e2b45a;font-size:.82rem}
.zunvi-veil-stay{flex:none;margin-left:14px;min-height:40px;padding:.45rem .9rem;border:1px solid var(--line,rgba(180,220,255,.14));border-radius:999px;background:transparent;color:var(--muted,#93a5b8);font:600 .8rem/1 'DM Sans',sans-serif;cursor:pointer}
.zunvi-veil-stay:hover{color:var(--ink,#eef6ff)}

/* Skeleton bones: shapes of the page on its way, with a light sweeping across. */
.veil-bone{display:block;border-radius:12px;background:linear-gradient(100deg,rgba(255,255,255,.05) 30%,rgba(255,255,255,.13) 45%,rgba(255,255,255,.05) 60%);background-size:220% 100%;animation:veil-shimmer 1.4s linear infinite}
html[data-theme="light"] .veil-bone{background:linear-gradient(100deg,rgba(28,31,63,.06) 30%,rgba(28,31,63,.12) 45%,rgba(28,31,63,.06) 60%);background-size:220% 100%}
@keyframes veil-shimmer{from{background-position:120% 0}to{background-position:-120% 0}}
.veil-title{height:2.3rem;margin:0 0 1rem}
.veil-line{height:.85rem;margin:0 0 .7rem}
.veil-pill{height:3.2rem;border-radius:999px;margin:0 0 1.2rem;max-width:720px}
.veil-chip{display:inline-block;width:118px;height:2.2rem;margin:0 .6rem .6rem 0;border-radius:999px}
.veil-chips{margin:0 0 1.4rem;white-space:nowrap;overflow:hidden}
.veil-hero{padding:4vh 0 2vh;max-width:760px}
.veil-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.veil-card{padding:0 0 1rem;border:1px solid var(--line,rgba(180,220,255,.14));border-radius:18px;overflow:hidden}
.veil-card .veil-line{margin-left:1rem;margin-right:1rem}
.veil-panel .veil-card{padding-top:1rem}
.veil-image{height:150px;border-radius:0;margin:0 0 1rem}
.veil-rows{margin-top:1rem}
.veil-row{display:flex;align-items:center;padding:.8rem 0;border-top:1px solid var(--line,rgba(180,220,255,.14))}
.veil-row>div{flex:1}
.veil-thumb{flex:none;width:72px;height:72px;margin-right:1rem}
.veil-detail{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:1rem}
.veil-visual{min-height:340px;border-radius:22px}
.veil-fact{height:3rem;margin:1rem 0 0}
.veil-w30{width:30%}.veil-w35{width:35%}.veil-w40{width:40%}.veil-w50{width:50%}.veil-w60{width:60%}.veil-w70{width:70%}.veil-w80{width:80%}.veil-w90{width:90%}

/* Staged arrival of the skeleton, like the pages themselves (docs/design/motion.md). */
.zunvi-veil.is-open .zunvi-veil-skeleton{animation:veil-rise 520ms 80ms cubic-bezier(.2,.8,.2,1) both}
@keyframes veil-rise{from{opacity:0;transform:translateY(12px)}}

@media (max-width:760px){
  .veil-grid{grid-template-columns:1fr 1fr;gap:12px}
  .veil-detail{grid-template-columns:1fr}
  .veil-visual{min-height:220px}
  .veil-image{height:110px}
  .zunvi-veil-inner{padding-top:20px;padding-left:16px;padding-right:16px}
  /* Phone: mark and text side by side, the name may take two lines, and
     "Stay here" gets its own row under the text. */
  .zunvi-veil-card{flex-wrap:wrap;align-items:flex-start;padding:16px;margin-bottom:20px}
  .zunvi-veil-mark{width:44px;height:44px;margin-right:12px;border-radius:13px;font-size:1.1rem}
  .zunvi-veil.is-open .zunvi-veil-mark::after{transform-origin:-17px 27px}
  .zunvi-veil-text{flex:1 1 200px}
  .zunvi-veil-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .zunvi-veil-stay{margin:12px 0 0 56px;min-height:36px}
  .veil-chip{width:96px}
}
@media (prefers-reduced-motion:reduce){
  .veil-bone,.zunvi-veil.is-open .zunvi-veil-mark,.zunvi-veil.is-open .zunvi-veil-mark::after,.zunvi-veil-title::after,.zunvi-veil.is-open .zunvi-veil-skeleton{animation:none}
  .zunvi-veil.is-open .zunvi-veil-bar span{animation:none;transform:scaleX(.6)}
  .zunvi-veil-card,.zunvi-veil-promo{transition:none}
}
