/* Scroll navigation: Figma 64:946 (desktop) and 129:2541 (mobile). */
:root { --navigation-height: 96px; }
html { scroll-padding-top: calc(var(--navigation-height) + 24px); touch-action: pan-x pan-y; }
.site-navigation {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--navigation-height);
    padding: 20px 32px;
    background: #fff;
    color: #000;
    translate: 0 -100%;
    visibility: hidden;
    transition: translate 400ms cubic-bezier(.2,.7,.2,1), visibility 400ms;
}
.site-navigation.is-visible { translate: 0; visibility: visible; }
.navigation-logo { position: relative; width: 218px; height: 56px; overflow: hidden; flex-shrink: 0; }
.navigation-logo img { position: absolute; width: 100.09%; height: 218.75%; left: -.04%; top: -59.37%; }
.navigation-links { display: flex; gap: 48px; align-items: center; font: 16px/24px var(--body); }
.navigation-links a { text-decoration: none; white-space: nowrap; }
.navigation-links a:hover { color: var(--blue); }
.navigation-ticket { position: relative; display: block; width: 204px; height: 50.378px; flex-shrink: 0; text-decoration: none; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .15)); }
.navigation-ticket img { position: absolute; top: 0; left: 0; }
.navigation-ticket > span { position: absolute; inset: 14.93px 0 auto; text-align: center; z-index: 2; font: 700 31.098px/1 var(--condensed); color: var(--yellow); }
.navigation-ticket:hover { filter: drop-shadow(0 4px 8px rgb(0 0 0 / .15)) brightness(1.05); }
.navigation-shine { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mask: url('../images/nav-ticket-desktop.svg') 0 0 / 204px 50.378px no-repeat; -webkit-mask: url('../images/nav-ticket-desktop.svg') 0 0 / 204px 50.378px no-repeat; }
.navigation-shine::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 30%, rgb(255 255 255 / .2) 50%, transparent 70%); animation: ticket-shine 3s ease infinite; }
.site-navigation:not(.is-visible) .navigation-shine::before { animation-play-state: paused; }
.navigation-toggle { display: none; }
@media (max-width:1199px) {
    :root { --navigation-height: 85.0915px; }
    .site-navigation { padding: 20px 16px; gap: 16px; }
    .navigation-logo { width: 140px; height: calc(140px * 32 / 124); }
    .navigation-ticket { --navigation-ticket-width: 109px; margin-left: auto; width: var(--navigation-ticket-width); height: calc(var(--navigation-ticket-width) * 33.0915 / 134); }
    .navigation-ticket::after { content: ''; position: absolute; inset: 50% 0 auto; height: 44px; transform: translateY(-50%); }
    .navigation-ticket img { width: 100%; height: 100%; }
    .navigation-ticket > span { top: calc(var(--navigation-ticket-width) * 9.8 / 134); font-size: calc(var(--navigation-ticket-width) * 20.427 / 134); }
    .navigation-shine { mask-image: url('../images/nav-ticket-mobile.svg'); -webkit-mask-image: url('../images/nav-ticket-mobile.svg'); mask-size: 100% 100%; -webkit-mask-size: 100% 100%; }
    .navigation-toggle { display: grid; place-items: center; width: 24px; height: 44px; flex-shrink: 0; font-size: 24px; line-height: 32px; color: var(--blue); }
    .navigation-links { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; padding: 8px 16px 16px; background: #fff; border-top: 1px solid #e7edf3; max-height: calc(100dvh - var(--navigation-height)); overflow-y: auto; visibility: hidden; opacity: 0; translate: 0 -8px; transition: opacity 220ms ease, translate 220ms ease, visibility 220ms; }
    .navigation-links a { padding: 12px 8px; }
    .is-menu-open .navigation-links { visibility: visible; opacity: 1; translate: 0; }
}
@media (min-width:600px) and (max-width:1199px) {
    .navigation-ticket { --navigation-ticket-width: 160px; }
}
@media (max-width:389px) {
    .site-navigation { gap: 12px; padding-inline: 12px; }
    .navigation-logo { width: 128px; height: calc(128px * 32 / 124); }
}
@media (max-width:359px) {
    .site-navigation { gap: 4px; padding-inline: 12px; }
    .navigation-logo { width: 118px; height: calc(118px * 32 / 124); }
}
@media (prefers-reduced-motion:reduce) {
    .site-navigation, .navigation-links { transition: none; }
    .navigation-shine { display: none; }
}

/* TH / EN (Polylang, 2026-11-08): the current language in brand blue. */
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 2px solid var(--blue); border-radius: 999px; background: #fff; font: 700 14px/1 var(--body); letter-spacing: .04em; }
.language-switch a { display: grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--blue); transition: background-color .2s, color .2s; }
.language-switch a:hover { background: rgb(15 62 193 / .08); }
.language-switch a[aria-current="true"] { background: var(--blue); color: var(--yellow); pointer-events: none; }
.language-switch a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }

.language-switch.in-menu { display: none; }
@media (max-width:1199px) {
    .language-switch.in-bar { display: none; }
    .navigation-links .language-switch.in-menu { display: inline-flex; justify-self: start; align-self: start; width: max-content; margin: 16px 0 4px 6px; }
    .navigation-links .language-switch.in-menu a { min-width: 48px; height: 36px; }
}
/* Room for TH / EN on the narrowest desktop widths. */
@media (min-width:1200px) and (max-width:1399px) {
    .navigation-links { gap: 32px; }
}
