/*
 * Website extras shared by every template: ticker (top of page), popup notices (modal) and the
 * home-page featured slider. Colours follow the organization's --ws-primary; selectors carry
 * #ws-root because the base layout resets headings / lists / links at ID level.
 */

/* ───────────────────────────── language spans (wsText) ───────────────────────────── */
#ws-root .wstk .ws-np, #ws-root .wspop .ws-np, #ws-root .wsfs .ws-np { display: none; }
#ws-root .wstk[data-lang="np"] .ws-np, #ws-root .wspop[data-lang="np"] .ws-np, #ws-root .wsfs[data-lang="np"] .ws-np { display: inline; }
#ws-root .wstk[data-lang="np"] .ws-en, #ws-root .wspop[data-lang="np"] .ws-en, #ws-root .wsfs[data-lang="np"] .ws-en { display: none; }

/* ───────────────────────────── ticker ───────────────────────────── */
#ws-root .wstk {
    position: relative; z-index: 1;
    display: flex; align-items: stretch; min-height: 2.5rem;
    background: var(--wstk-bg); color: var(--wstk-ink);
    font-size: 0.9rem; line-height: 1.3;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.12));
    background-color: var(--wstk-bg);
}
/* Home page: attached right under the hero (featured slider), edge to edge at the hero's width */
#ws-root .wstk-wrap { position: relative; z-index: 2; margin: 0; padding: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
#ws-root .wstk--inline {
    border-radius: 0; min-height: 2.75rem;
    box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--wstk-bg) 70%, #000);
}
#ws-root .wstk--inline .wstk__label { padding-left: clamp(0.85rem, 3vw, 2rem); }
#ws-root .wstk--inline .wstk__pause { width: 2.75rem; }
#ws-root .wstk__label {
    flex: none; display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0 1rem 0 0.85rem; font-weight: 700; letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.2);
    clip-path: polygon(0 0, calc(100% - 0.7rem) 0, 100% 50%, calc(100% - 0.7rem) 100%, 0 100%);
    padding-right: 1.5rem;
}
#ws-root .wstk__label svg { width: 1.1rem; height: 1.1rem; animation: wstk-ring 2.4s ease-in-out infinite; transform-origin: 30% 50%; }
#ws-root .wstk__viewport {
    flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}
#ws-root .wstk__track {
    display: flex; width: max-content;
    animation: wstk-run var(--wstk-dur, 30s) linear infinite;
}
#ws-root .wstk--rtl .wstk__track { animation-direction: reverse; }
/* Hover pause only for a real mouse over the moving text: on phones a tap left the whole bar in a sticky
   :hover state, and over the Play button the bar stayed paused, so Play never seemed to resume it. */
@media (hover: hover) and (pointer: fine) {
    #ws-root .wstk--hover-pause .wstk__viewport:hover .wstk__track { animation-play-state: paused; }
}
#ws-root .wstk__track:has(:focus-visible),
#ws-root .wstk__track.is-paused { animation-play-state: paused; }
#ws-root .wstk__list { display: flex; align-items: center; flex: none; }
#ws-root .wstk__item { display: inline-flex; align-items: center; gap: 0.5rem; padding-left: 1.25rem; white-space: nowrap; }
#ws-root .wstk__item a, #ws-root .wstk__item a:visited { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
#ws-root .wstk__item a:hover { text-decoration-color: currentColor; }
#ws-root .wstk__sep { opacity: 0.6; padding-left: 0.75rem; font-size: 0.75em; }
#ws-root .wstk__new {
    display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px;
    background: #fde047; color: #713f12; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
    animation: wstk-blink 1.6s ease-in-out infinite;
}
#ws-root .wstk__pause {
    flex: none; display: grid; place-items: center; width: 2.5rem; padding: 0;
    border: 0; background: rgba(0, 0, 0, 0.14); color: inherit; cursor: pointer;
}
#ws-root .wstk__pause:hover { background: rgba(0, 0, 0, 0.24); }
#ws-root .wstk__pause:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
#ws-root .wstk__pause svg { width: 1rem; height: 1rem; }
#ws-root .wstk__sr, #ws-root .wspop__sr, #ws-root .wsfs__sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@keyframes wstk-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wstk-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes wstk-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 85% { transform: rotate(10deg); } }
@media (max-width: 640px) {
    #ws-root .wstk { font-size: 0.82rem; }
    #ws-root .wstk__label { padding-left: 0.65rem; padding-right: 1.1rem; }
    #ws-root .wstk__label .ws-en, #ws-root .wstk__label .ws-np { display: none !important; }
}
/* No motion wanted: the line becomes a plain scrollable strip */
@media (prefers-reduced-motion: reduce) {
    #ws-root .wstk__track { animation: none; }
    #ws-root .wstk__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    #ws-root .wstk__list[aria-hidden="true"], #ws-root .wstk__pause { display: none; }
    #ws-root .wstk__new, #ws-root .wstk__label svg { animation: none; }
}

/* ───────────────────────────── popup notices ───────────────────────────── */
html.wspop-locked { overflow: hidden; }
#ws-root .wspop__layer {
    position: fixed; inset: 0; z-index: 9000;
    display: grid; place-items: center; padding: 1rem;
}
/* no backdrop-filter: a full-screen blur is re-rendered on every animation frame and made the opening stutter */
#ws-root .wspop__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.7); }
#ws-root .wspop__box {
    position: relative; display: flex; flex-direction: column;
    width: min(46rem, 100%); max-height: calc(100dvh - 2rem);
    border-radius: 1.25rem; overflow: hidden;
    background: #ffffff; color: #0f172a;
    box-shadow: 0 30px 80px -20px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-family: 'Poppins', 'Noto Sans Devanagari', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
    text-align: left;
    --wspop-pad-l: 1rem; --wspop-pad-r: 0.8rem;
}
#ws-root .wspop__head {
    flex: none; display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem var(--wspop-pad-r) 0.8rem var(--wspop-pad-l);
    background: linear-gradient(120deg, var(--ws-primary, #0f766e), color-mix(in srgb, var(--ws-primary, #0f766e) 60%, #0f172a));
    color: #ffffff;
}
#ws-root .wspop__badge { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
#ws-root .wspop__badge svg { width: 1.15rem; height: 1.15rem; }
#ws-root .wspop__title { flex: 1 1 auto; min-width: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: inherit; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#ws-root .wspop__count { flex: none; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 0.78rem; font-weight: 600; }
#ws-root .wspop__close {
    flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
    border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: inherit; cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
#ws-root .wspop__close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }
#ws-root .wspop__close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
#ws-root .wspop__close svg { width: 1.15rem; height: 1.15rem; }
#ws-root .wspop__stage {
    position: relative; flex: 1 1 auto; min-height: 12rem;
    display: grid; background: #0b1220;
}
#ws-root .wspop__slide {
    grid-area: 1 / 1; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s;
}
#ws-root .wspop__slide.is-on { opacity: 1; visibility: visible; }
#ws-root .wspop__slide a { display: block; }
#ws-root .wspop__slide img {
    display: block; max-width: 100%; max-height: calc(100dvh - 10.5rem); width: auto; height: auto; margin: 0 auto;
    object-fit: contain;
}
#ws-root .wspop__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0;
    border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, 0.9); color: #0f172a;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, background-color 0.15s ease;
}
#ws-root .wspop__arrow:hover { background: #ffffff; transform: translateY(-50%) scale(1.07); }
#ws-root .wspop__arrow:focus-visible { outline: 3px solid var(--ws-primary, #0f766e); outline-offset: 2px; }
#ws-root .wspop__arrow svg { width: 1.2rem; height: 1.2rem; }
#ws-root .wspop__arrow--prev { left: 0.75rem; }
#ws-root .wspop__arrow--next { right: 0.75rem; }
/* popup description (rich text from the CMS) */
#ws-root .wspop__desc {
    flex: 0 1 auto; max-height: 30dvh; overflow-y: auto; padding: 0.9rem var(--wspop-pad-r) 0.9rem var(--wspop-pad-l);
    font-size: 0.95rem; line-height: 1.6; color: inherit; overflow-wrap: anywhere;
}
#ws-root .wspop__desc--only { flex: 1 1 auto; max-height: none; min-height: 6rem; }
/* pictures + description: the picture gives up the description's share of the height, so the footer never gets cut off */
#ws-root .wspop__box:has(.wspop__desc) .wspop__slide img { max-height: calc(70dvh - 10.5rem); }
#ws-root .wspop__box:has(.wspop__desc) .wspop__stage { min-height: 8rem; }
#ws-root .wspop__desc h1, #ws-root .wspop__desc h2, #ws-root .wspop__desc h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; }
#ws-root .wspop__desc p, #ws-root .wspop__desc div, #ws-root .wspop__desc blockquote, #ws-root .wspop__desc pre { margin: 0 0 0.35rem; }
#ws-root .wspop__desc ul { list-style: disc; padding-left: 1.4em; margin: 0 0 0.5rem; }
#ws-root .wspop__desc ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 0.5rem; }
#ws-root .wspop__desc blockquote { border-left: 3px solid var(--ws-primary, #0f766e); padding-left: 0.75rem; opacity: 0.9; }
#ws-root .wspop__desc pre { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 0.85rem; }
#ws-root .wspop__desc a { color: var(--ws-primary, #0f766e); text-decoration: underline; }
#ws-root.ws-dark .wspop__desc a { color: #5eead4; }
#ws-root .wspop__foot { flex: none; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem var(--wspop-pad-r) 0.7rem var(--wspop-pad-l); border-top: 1px solid rgba(15, 23, 42, 0.08); }
#ws-root .wspop__spacer { flex: 1 1 auto; }
#ws-root .wspop__dots { display: flex; flex-wrap: wrap; gap: 0.35rem; }
#ws-root .wspop__dots button, #ws-root .wsfs__dots button {
    width: 0.55rem; height: 0.55rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(15, 23, 42, 0.22); transition: width 0.25s ease, background-color 0.25s ease;
}
#ws-root .wspop__dots button.is-on, #ws-root .wsfs__dots button.is-on { width: 1.5rem; background: var(--ws-primary, #0f766e); }
#ws-root .wspop__link { border: 0; background: transparent; color: #475569; font-size: 0.85rem; cursor: pointer; padding: 0.4rem 0.5rem; border-radius: 0.5rem; }
#ws-root .wspop__link:hover { color: #0f172a; background: rgba(15, 23, 42, 0.06); }
#ws-root .wspop__btn {
    border: 0; border-radius: 999px; padding: 0.55rem 1.2rem; cursor: pointer;
    background: var(--ws-primary, #0f766e); color: #ffffff; font-weight: 600; font-size: 0.88rem;
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--ws-primary, #0f766e) 80%, transparent);
    transition: transform 0.15s ease, filter 0.15s ease;
}
#ws-root .wspop__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
#ws-root .wspop__btn:focus-visible, #ws-root .wspop__link:focus-visible { outline: 2px solid var(--ws-primary, #0f766e); outline-offset: 2px; }
#ws-root .wspop--in { transition: opacity 0.22s ease; }
#ws-root .wspop--in .wspop__box { transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.22s ease; }
#ws-root .wspop--from { opacity: 0; }
#ws-root .wspop--from .wspop__box { transform: translateY(18px) scale(0.96); opacity: 0; }
#ws-root .wspop--to { opacity: 1; }
#ws-root.ws-dark .wspop__box { background: #111827; color: #e5e7eb; }
#ws-root.ws-dark .wspop__foot { border-top-color: rgba(255, 255, 255, 0.08); }
#ws-root.ws-dark .wspop__link { color: #cbd5e1; }
#ws-root.ws-dark .wspop__link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
#ws-root.ws-dark .wspop__dots button { background: rgba(255, 255, 255, 0.25); }
@media (max-width: 640px) {
    #ws-root .wspop__layer { padding: 0.6rem; }
    #ws-root .wspop__box { --wspop-pad-l: 0.85rem; --wspop-pad-r: 0.7rem; max-height: calc(100dvh - 1.2rem); }
    #ws-root .wspop__arrow { width: 2.2rem; height: 2.2rem; }
    #ws-root .wspop__arrow--prev { left: 0.4rem; }
    #ws-root .wspop__arrow--next { right: 0.4rem; }
    #ws-root .wspop__link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #ws-root .wspop__slide, #ws-root .wspop--in, #ws-root .wspop--in .wspop__box { transition: none; }
}

/* ───────────────────────────── featured slider ───────────────────────────── */
#ws-root .wsfs { padding: 2.25rem 0 1rem; }
#ws-root .wsfs__wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
#ws-root .wsfs__title {
    display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
    font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: inherit;
}
#ws-root .wsfs__title::before {
    content: ""; width: 0.35rem; height: 1.35rem; border-radius: 999px;
    background: linear-gradient(180deg, var(--ws-primary, #0f766e), var(--ws-accent, #f59e0b));
}
#ws-root .wsfs__frame {
    position: relative; overflow: hidden; border-radius: 1.25rem;
    aspect-ratio: 21 / 9; background: #0b1220;
    box-shadow: 0 24px 50px -28px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(15, 23, 42, 0.06);
    isolation: isolate;
}
#ws-root .wsfs--standard .wsfs__frame { aspect-ratio: 16 / 9; }
#ws-root .wsfs--classic .wsfs__frame { aspect-ratio: 4 / 3; max-height: 80vh; margin: 0 auto; }
#ws-root .wsfs__track { position: absolute; inset: 0; }
#ws-root .wsfs--slide .wsfs__track {
    display: flex; transform: translateX(calc(var(--wsfs-i, 0) * -100%));
    transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}
#ws-root .wsfs__slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; margin: 0; }
#ws-root .wsfs--fade .wsfs__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
#ws-root .wsfs--fade .wsfs__slide.is-on { opacity: 1; z-index: 1; }
#ws-root .wsfs__slide a { display: block; width: 100%; height: 100%; }
#ws-root .wsfs__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
#ws-root .wsfs--fit-contain .wsfs__slide img { object-fit: contain; }
#ws-root .wsfs--slide .wsfs__slide.is-on img { animation: wsfs-zoom 9s ease-out both; }
#ws-root .wsfs__cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    padding: 2.5rem 1.4rem 1.1rem; color: #ffffff;
    font-size: 1.05rem; font-weight: 600; line-height: 1.35;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
#ws-root .wsfs__arrow {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; cursor: pointer;
    background: rgba(15, 23, 42, 0.38); color: #ffffff;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
#ws-root .wsfs__arrow:hover { background: var(--ws-primary, #0f766e); transform: translateY(-50%) scale(1.06); }
#ws-root .wsfs__arrow:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
#ws-root .wsfs__arrow svg { width: 1.3rem; height: 1.3rem; }
#ws-root .wsfs__arrow--prev { left: 1rem; }
#ws-root .wsfs__arrow--next { right: 1rem; }
#ws-root .wsfs__count {
    position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
    padding: 0.2rem 0.65rem; border-radius: 999px;
    background: rgba(15, 23, 42, 0.5); color: #ffffff; font-size: 0.78rem; font-weight: 600;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
#ws-root .wsfs__dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.9rem; }
#ws-root.ws-dark .wsfs__dots button { background: rgba(255, 255, 255, 0.25); }
#ws-root.ws-dark .wsfs__frame { box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06); }
@keyframes wsfs-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (hover: hover) {
    #ws-root .wsfs__arrow { opacity: 0.75; }
    #ws-root .wsfs__frame:hover .wsfs__arrow, #ws-root .wsfs__arrow:focus-visible { opacity: 1; }
}
@media (max-width: 640px) {
    #ws-root .wsfs { padding-top: 1.5rem; }
    #ws-root .wsfs--wide .wsfs__frame { aspect-ratio: 16 / 9; }
    #ws-root .wsfs__frame { border-radius: 0.9rem; }
    #ws-root .wsfs__arrow { width: 2.3rem; height: 2.3rem; }
    #ws-root .wsfs__arrow--prev { left: 0.5rem; }
    #ws-root .wsfs__arrow--next { right: 0.5rem; }
    #ws-root .wsfs__cap { font-size: 0.9rem; padding: 2rem 1rem 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    #ws-root .wsfs--slide .wsfs__track, #ws-root .wsfs--fade .wsfs__slide { transition: none; }
    #ws-root .wsfs--slide .wsfs__slide.is-on img { animation: none; }
}

/* ───────────────────────────── featured slider as hero background ───────────────────────────── */
#ws-root .wshb-host { position: relative; isolation: isolate; }
#ws-root .wshb { position: absolute; inset: 0; pointer-events: none; }
#ws-root .wshb__layer { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
#ws-root .wshb__track { position: absolute; inset: 0; }
#ws-root .wshb--slide .wshb__track { display: flex; transform: translateX(calc(var(--wshb-i, 0) * -100%)); transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
#ws-root .wshb__slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; }
#ws-root .wshb--fade .wshb__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
#ws-root .wshb--fade .wshb__slide.is-on { opacity: 1; }
#ws-root .wshb__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
#ws-root .wshb--fit-contain .wshb__slide img { object-fit: contain; }
#ws-root .wshb__slide.is-on img { animation: wsfs-zoom 12s ease-out both; }
/* The veil keeps the template's own text readable: light text gets a dark veil, dark text a light one */
/* --wshb-veil (0-1) is the CMS "Veil over the pictures" setting */
#ws-root .wshb__veil { position: absolute; inset: 0; opacity: var(--wshb-veil, 0.7); transition: background 0.3s ease, opacity 0.3s ease; }
#ws-root .wshb--light .wshb__veil {
    background:
        radial-gradient(120% 90% at 50% 45%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.72) 60%, rgba(255, 255, 255, 0.5)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.75));
}
#ws-root .wshb--dark .wshb__veil {
    background:
        radial-gradient(120% 90% at 50% 45%, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.72) 60%, rgba(2, 6, 23, 0.5)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.85));
}
#ws-root .wshb__arrow, #ws-root .wshb__foot, #ws-root .wshb__cap { pointer-events: auto; z-index: 3; }
#ws-root .wshb__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; cursor: pointer;
    background: rgba(15, 23, 42, 0.35); color: #ffffff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0.7; transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
#ws-root .wshb-host:hover .wshb__arrow, #ws-root .wshb__arrow:focus-visible { opacity: 1; }
#ws-root .wshb__arrow:hover { background: var(--ws-primary, #0f766e); transform: translateY(-50%) scale(1.06); }
#ws-root .wshb__arrow:focus-visible { outline: 3px solid var(--ws-primary, #0f766e); outline-offset: 2px; }
#ws-root .wshb__arrow svg { width: 1.25rem; height: 1.25rem; }
#ws-root .wshb__arrow--prev { left: clamp(0.5rem, 1.5vw, 1.25rem); }
#ws-root .wshb__arrow--next { right: clamp(0.5rem, 1.5vw, 1.25rem); }
#ws-root .wshb__foot {
    position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%);
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.3rem 0.45rem; border-radius: 999px;
    background: rgba(15, 23, 42, 0.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#ws-root .wshb__dots { display: flex; gap: 0.35rem; padding-left: 0.3rem; }
#ws-root .wshb__dots button { width: 0.5rem; height: 0.5rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, 0.5); transition: width 0.25s ease, background-color 0.25s ease; }
#ws-root .wshb__dots button.is-on { width: 1.4rem; background: #ffffff; }
#ws-root .wshb__pause { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #ffffff; cursor: pointer; }
#ws-root .wshb__pause svg { width: 0.85rem; height: 0.85rem; }
#ws-root .wshb__cap {
    position: absolute; right: clamp(0.75rem, 2vw, 1.5rem); bottom: 0.9rem; max-width: min(22rem, 40%);
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 0.8rem; border-radius: 999px;
    background: rgba(15, 23, 42, 0.45); color: #ffffff; font-size: 0.8rem; line-height: 1.3;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#ws-root .wshb__cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ws-root .wshb__cap a, #ws-root .wshb__cap a:visited { flex: none; color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#ws-root .wshb .ws-np { display: none; }
#ws-root .wshb[data-lang="np"] .ws-np { display: inline; }
#ws-root .wshb[data-lang="np"] .ws-en { display: none; }
@media (max-width: 640px) {
    #ws-root .wshb__arrow { width: 2.2rem; height: 2.2rem; top: auto; bottom: 0.7rem; transform: none; }
    #ws-root .wshb__arrow:hover { transform: none; }
    #ws-root .wshb__foot { bottom: 0.75rem; }
    #ws-root .wshb__cap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #ws-root .wshb--slide .wshb__track, #ws-root .wshb--fade .wshb__slide { transition: none; }
    #ws-root .wshb__slide.is-on img { animation: none; }
}

/* ───────────────────────────── search hint (Ctrl /) ───────────────────────────── */
/* The floating search button grows a key chip on hover / focus; a one-time bubble introduces the shortcut. */
#ws-root .wsp-fab--search { position: relative; }
#ws-root .wsp-hint {
    position: absolute; left: calc(100% + 0.6rem); top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
    padding: 0.35rem 0.65rem; border-radius: 999px;
    background: var(--wsp-surface, #ffffff); color: var(--wsp-ink, #111827);
    border: 1px solid var(--wsp-line, rgba(17, 24, 39, 0.1));
    box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.45);
    font-size: 0.78rem; font-weight: 500; line-height: 1;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
#ws-root .wsp-hint kbd {
    display: inline-block; min-width: 1.3rem; padding: 0.18rem 0.35rem; border-radius: 0.35rem;
    background: color-mix(in srgb, var(--wsp-accent, var(--ws-primary, #0f766e)) 12%, transparent);
    color: inherit; font: 600 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center;
    border: 1px solid color-mix(in srgb, var(--wsp-accent, var(--ws-primary, #0f766e)) 30%, transparent);
}
#ws-root .wsp-fab--search:hover .wsp-hint,
#ws-root .wsp-fab--search:focus-visible .wsp-hint,
#ws-root .wsp-hint.is-intro { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
#ws-root .wsp-hint.is-intro { pointer-events: auto; }
#ws-root .wsp-hint__x {
    border: 0; background: transparent; color: inherit; opacity: 0.55; cursor: pointer; padding: 0 0 0 0.2rem; font-size: 0.95rem; line-height: 1;
}
#ws-root .wsp-hint__x:hover { opacity: 1; }
/* Keyboard chip on the search button itself, so the shortcut is always discoverable */
#ws-root .wsp-fab__key {
    position: absolute; top: -0.4rem; right: -0.55rem;
    padding: 0.12rem 0.3rem; border-radius: 0.4rem;
    background: var(--wsp-surface, #ffffff); color: var(--wsp-ink, #111827);
    border: 1px solid var(--wsp-line, rgba(17, 24, 39, 0.12));
    box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.5);
    font: 700 0.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; pointer-events: none;
}
/* Touch screens have no keyboard shortcut to advertise */
@media (hover: none), (pointer: coarse) {
    #ws-root .wsp-hint, #ws-root .wsp-fab__key { display: none; }
}

/* ───────────────────────────── themed scrollbars (whole public site) ───────────────────────────── */
/* extras.js copies the organization's --ws-primary from #ws-root onto <html> as --ws-sb. */
html:has(#ws-root) {
    --ws-sb-thumb: color-mix(in srgb, var(--ws-sb, #0f766e) 75%, #ffffff);
    --ws-sb-thumb-hover: var(--ws-sb, #0f766e);
    --ws-sb-track: color-mix(in srgb, var(--ws-sb, #0f766e) 6%, #f8fafc);
    scrollbar-color: var(--ws-sb-thumb) var(--ws-sb-track);
}
html:has(#ws-root.ws-dark) {
    --ws-sb-thumb: color-mix(in srgb, var(--ws-sb, #0f766e) 65%, #0f172a);
    --ws-sb-thumb-hover: color-mix(in srgb, var(--ws-sb, #0f766e) 85%, #ffffff);
    --ws-sb-track: #0b1220;
}
#ws-root * { scrollbar-width: thin; scrollbar-color: var(--ws-sb-thumb) transparent; }
/* WebKit/Blink fallbacks (older Chrome, Safari) */
html:has(#ws-root)::-webkit-scrollbar { width: 12px; height: 12px; }
html:has(#ws-root)::-webkit-scrollbar-track { background: var(--ws-sb-track); }
html:has(#ws-root)::-webkit-scrollbar-thumb {
    background: var(--ws-sb-thumb); border-radius: 999px;
    border: 3px solid var(--ws-sb-track); background-clip: padding-box;
}
html:has(#ws-root)::-webkit-scrollbar-thumb:hover { background-color: var(--ws-sb-thumb-hover); }
#ws-root ::-webkit-scrollbar { width: 8px; height: 8px; }
#ws-root ::-webkit-scrollbar-track { background: transparent; }
#ws-root ::-webkit-scrollbar-thumb { background: var(--ws-sb-thumb); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
#ws-root ::-webkit-scrollbar-thumb:hover { background-color: var(--ws-sb-thumb-hover); }

/* ───────────────────────────── popup sizes (CMS → Popup Notices → Popup size) ───────────────────────────── */
#ws-root .wspop__box--normal { width: min(46rem, 100%); }
#ws-root .wspop__box--medium { width: min(64rem, 100%); }
#ws-root .wspop__box--large { width: min(84rem, 100%); max-height: calc(100dvh - 1.5rem); }
#ws-root .wspop__box--medium .wspop__slide img { max-height: calc(100dvh - 9.5rem); }
#ws-root .wspop__box--large .wspop__slide img { max-height: calc(100dvh - 8.5rem); }
/* bigger sizes fill their width: the picture grows with the box instead of staying at its natural size */
#ws-root .wspop__box--medium .wspop__slide img,
#ws-root .wspop__box--large .wspop__slide img { width: 100%; height: auto; }
@media (min-width: 900px) {
    #ws-root .wspop__layer:has(.wspop__box--large) { padding: 0.75rem; }
}

/* ───────────────────────────── popup opening animation (CMS → Popup Notices → Opening animation) ───────────────────────────── */
/* .wspop--from is the hidden state Alpine transitions from (open) and to (close); ZOOM is the base rule above. */
#ws-root .wspop__layer.wspop--in.wspop--a-flip { perspective: 1400px; }
#ws-root .wspop--a-fade.wspop--from .wspop__box { transform: none; }
#ws-root .wspop--a-slide_up.wspop--from .wspop__box { transform: translateY(70px); }
#ws-root .wspop--a-slide_down.wspop--from .wspop__box { transform: translateY(-70px); }
#ws-root .wspop--a-flip.wspop--from .wspop__box { transform: rotateX(-65deg) translateY(-20px); transform-origin: 50% 0; }
#ws-root .wspop--a-bounce.wspop--from .wspop__box { transform: scale(0.5); }
#ws-root .wspop--a-fade.wspop--in .wspop__box { transition: opacity 0.35s ease; }
#ws-root .wspop--a-slide_up.wspop--in .wspop__box,
#ws-root .wspop--a-slide_down.wspop--in .wspop__box { transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; }
#ws-root .wspop--a-flip.wspop--in .wspop__box { transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease; }
#ws-root .wspop--a-bounce.wspop--in .wspop__box { transition: transform 0.55s cubic-bezier(0.34, 1.7, 0.5, 1), opacity 0.25s ease; }
#ws-root .wspop--a-fade.wspop--in, #ws-root .wspop--a-flip.wspop--in,
#ws-root .wspop--a-slide_up.wspop--in, #ws-root .wspop--a-slide_down.wspop--in,
#ws-root .wspop--a-bounce.wspop--in { transition: opacity 0.3s ease; }
@media (prefers-reduced-motion: reduce) {
    #ws-root .wspop__layer[class*="wspop--a-"].wspop--from .wspop__box { transform: none; }
}

/* ───────────────────────────── popup performance ───────────────────────────── */
/* The box animates on its own GPU layer, and nothing inside it can force a page-wide relayout. */
#ws-root .wspop__layer { contain: layout style; }
#ws-root .wspop--in .wspop__box { will-change: transform, opacity; backface-visibility: hidden; }
#ws-root .wspop__box { contain: layout paint; transform: translateZ(0); }
/* the slider pictures cross-fade on the compositor only */
#ws-root .wspop__slide { will-change: opacity; }
#ws-root .wspop__arrow, #ws-root .wspop__close { backdrop-filter: none; }
/* everything moving behind the popup holds still while it is open */
html.wspop-locked #ws-root .wshb__slide img,
html.wspop-locked #ws-root .wstk__track,
html.wspop-locked #ws-root .wstk__new,
html.wspop-locked #ws-root .wstk__label svg { animation-play-state: paused; }
html.wspop-locked #ws-root .wshb--slide .wshb__track { transition: none; }

/* A template's opaque full-hero fill, found by extras.js clearCovers(): let the featured pictures through */
#ws-root .wshb-host > .wshb-cleared { background: transparent !important; }
