/* Opt-in only. No original navigation or page-content selectors are changed. */
html body > header#header[data-nav-style=liquid] {
  --lq-tone:#f5faf7; --lq-text:#123c36; --lq-muted:#31574f;
  --lq-rim:#ffffffc9; --lq-line:#66897b42; --lq-dropdown:#f3f8f5;
  --lq-pill:linear-gradient(145deg,#fff9e3c9,#edd7ab4a 60%,#ffbb534f);
  --lq-shadow:0 8px 32px #071b2324,0 1px 2px #ffffff8c inset,0 -1px 2px #eab56d80 inset;
  --lq-time:480ms;
  color:var(--lq-text); isolation:isolate; overflow:visible;
  margin:clamp(8px,1.1vw,18px) clamp(10px,2vw,36px) 0!important;
  border:1px solid var(--lq-line)!important; border-radius:999px!important;
  background:color-mix(in srgb,var(--lq-tone) var(--sq-nav-opacity,82%),transparent)!important;
  backdrop-filter:blur(20px) saturate(1.25)!important;
  -webkit-backdrop-filter:blur(20px) saturate(1.25)!important;
  box-shadow:var(--lq-shadow)!important;
  transition:background-color .25s,box-shadow .25s;
  max-height:none!important;
}
html.dark body > header#header[data-nav-style=liquid] {
  --lq-tone:#102d2b; --lq-text:#f5f7f4; --lq-muted:#dae7df;
  --lq-rim:#c3e5df8c; --lq-line:#b6d1c24d; --lq-dropdown:#112b2b;
  --lq-pill:linear-gradient(145deg,#e5eee333,#5d614322 55%,#ffc56c55);
  --lq-shadow:0 12px 36px #020e2338,0 1px 2px #e9fff08c inset,0 -1px 2px #eab56d70 inset;
}
html body > header#header[data-nav-style=liquid]::before {
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:linear-gradient(178deg,#fff6,transparent 18%,transparent 82%,#e9b56822);
  border:1px solid var(--lq-rim);opacity:.6;
}
html body > header#header[data-nav-style=liquid][data-nav-transparency="100"] {
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html body > header#header[data-nav-style=liquid] > nav {max-width:1680px;width:100%;padding:9px clamp(12px,1.5vw,28px);}
html body > header#header[data-nav-style=liquid][data-nav-density=compact] > nav{padding-block:5px}
html body > header#header[data-nav-style=liquid][data-nav-density=airy] > nav{padding-block:16px}
#header[data-nav-style=liquid] .navbar-shell {display:flex;align-items:center;justify-content:space-between;gap:clamp(10px,1.5vw,28px);min-width:0;}
#header[data-nav-style=liquid] .navbar-shell > a:first-child {flex:0 0 auto;}
#header[data-nav-style=liquid] .navbar-shell > a:first-child img {height:54px;width:auto;max-width:112px;object-fit:contain;}
#header[data-nav-style=liquid] .navbar-links {position:relative;isolation:isolate;align-items:center;gap:2px;flex-wrap:nowrap;min-width:0;}
html body #header[data-nav-style=liquid] .navbar-links > a.nav-link {
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;min-height:44px;
  padding:10px clamp(9px,.9vw,17px);border-radius:999px;font-size:14px;font-weight:600;
  color:var(--lq-text)!important;white-space:nowrap;text-decoration:none;line-height:1.4;
}
#header[data-nav-style=liquid] .nav-link::after{display:none!important}
html body #header[data-nav-style=liquid] .navbar-links > a[aria-current=page]{color:var(--lq-text)!important;}
#header[data-nav-style=liquid] .lq-indicator {
  position:absolute;left:0;top:0;z-index:0;pointer-events:none;border-radius:999px;
  background:var(--lq-pill);border:1px solid #e3b65f99;
  box-shadow:0 2px 7px #71491020,0 2px 3px #fff9 inset,0 -2px 3px #ffa425b3 inset;
  transition:transform var(--lq-time) cubic-bezier(.22,.8,.24,1),width var(--lq-time) cubic-bezier(.22,.8,.24,1),height var(--lq-time),opacity .2s;
}
#header[data-nav-style=liquid] .lq-indicator::before {
  content:"";position:absolute;inset:-4px -6px;border-radius:45% 45% 50% 50%;
  background:radial-gradient(ellipse at 50% 100%,#ffa82c40,transparent 70%);z-index:-1;
}
#header[data-nav-style=liquid] .navbar-actions {align-items:center;gap:14px;flex-shrink:0;}
html body #header[data-nav-style=liquid] nav :is(button,.nav-link){color:var(--lq-text)!important}
html body #header[data-nav-style=liquid] :is(.navbar-actions > a,.lq-mobile-book) {
  display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:44px;
  padding:10px 20px;border-radius:999px;background:linear-gradient(110deg,#ec7000,#ffa100)!important;
  box-shadow:0 2px 0 #ffd79688 inset,0 4px 12px #bd650022;color:#fff!important;font-size:14px;font-weight:750;line-height:1.25;
  text-decoration:none;white-space:nowrap;flex-shrink:0;
}
#header[data-nav-style=liquid] :is(.navbar-actions > a,.lq-mobile-book) svg{width:18px;height:18px;flex-shrink:0}
#header[data-nav-style=liquid] :is(.navbar-actions > a,.lq-mobile-book)::before{display:none!important}
html body #header[data-nav-style=liquid] #theme-toggle {background:#7a948b22!important;color:var(--lq-text)!important;min-width:40px;min-height:40px;}
#header[data-nav-style=liquid] #lang-switcher-desktop > button{min-height:44px;font-size:14px;}
#header[data-nav-style=liquid] #lang-dropdown-desktop {background:var(--lq-dropdown)!important;border:1px solid var(--lq-line);border-radius:16px;padding:6px;min-width:132px;box-shadow:0 12px 25px #001c2526;}
html body #header[data-nav-style=liquid] #lang-dropdown-desktop a {color:var(--lq-text)!important;border-radius:10px;padding:10px;}
#header[data-nav-style=liquid] #lang-dropdown-desktop a:hover{background:#b89a5930!important}
#header[data-nav-style=liquid] :is(a,button):focus-visible{outline:3px solid #ea9100!important;outline-offset:3px;}
html body #header[data-nav-style=liquid] .lq-mobile-book {display:none;}
html body #header[data-nav-style=liquid] #mobile-menu-button {color:var(--lq-text)!important;min-height:44px;min-width:44px;border-radius:50%;margin:0;align-items:center;justify-content:center;flex-shrink:0;}
html body #header[data-nav-style=liquid] #mobile-menu {
  position:absolute;inset-inline:0;top:calc(100% + 10px);padding:14px;border:1px solid var(--lq-line)!important;
  border-radius:28px;background:color-mix(in srgb,var(--lq-dropdown) 94%,transparent)!important;
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:var(--lq-shadow);
  max-height:calc(100dvh - 112px - env(safe-area-inset-bottom))!important;overflow-y:auto;overscroll-behavior:contain;
}
html body #header[data-nav-style=liquid] #mobile-menu > a {
  color:var(--lq-text)!important;border-radius:18px;padding:12px 18px;min-height:46px;font-size:16px;
  font-weight:550;line-height:1.4;margin:2px 0;text-decoration:none;
}
html body #header[data-nav-style=liquid] #mobile-menu > a[aria-current=page] {background:var(--lq-pill);box-shadow:0 1px 2px #fff7 inset,0 -2px 2px #ec9d46a1 inset;border:1px solid #e3b65f80;}
html body #header[data-nav-style=liquid] #mobile-menu :is(button,p,[data-lang]){color:var(--lq-text)!important}
#header[data-nav-style=liquid] #mobile-menu .mobile-theme-toggle {background:#8d9d8c14;border-color:var(--lq-line);min-height:44px;}
#header[data-nav-style=liquid] #mobile-menu > div{border-color:var(--lq-line);}
#header[data-nav-style=liquid] #mobile-menu [data-lang]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;}
#header[data-nav-style=liquid][data-nav-liquid_motion=none] .lq-indicator,
#header[data-nav-style=liquid][data-nav-motion=none] .lq-indicator{transition:none!important}
@media(min-width:1180px){
  html body #header[data-nav-style=liquid] :is(.navbar-links,.navbar-actions){display:flex!important}
  html body #header[data-nav-style=liquid] :is(#mobile-menu-button,#mobile-menu,.lq-mobile-book){display:none!important}
}
@media(max-width:1179px){
  html body #header[data-nav-style=liquid] :is(.navbar-links,.navbar-actions){display:none!important}
  html body #header[data-nav-style=liquid] #mobile-menu-button{display:flex!important}
  html body #header[data-nav-style=liquid] #mobile-menu:not(.hidden){display:block!important}
  html body #header[data-nav-style=liquid] #mobile-menu.hidden{display:none!important}
  html body #header[data-nav-style=liquid] .lq-mobile-book{display:inline-flex;margin-inline-start:auto;padding-inline:14px;}
  #header[data-nav-style=liquid] .navbar-shell{gap:8px}
  #header[data-nav-style=liquid] .navbar-shell>a:first-child img{height:46px;max-width:86px}
}
@media(max-width:359px){
  html body > header#header[data-nav-style=liquid]>nav{padding-inline:8px}
  #header[data-nav-style=liquid] .navbar-shell>a:first-child img{max-width:64px;height:42px}
  html body #header[data-nav-style=liquid] .lq-mobile-book{padding-inline:10px;font-size:13px;gap:5px}
}
@media(prefers-reduced-motion:reduce){
  html body #header[data-nav-style=liquid],html body #header[data-nav-style=liquid] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media(prefers-reduced-transparency:reduce){html body > header#header[data-nav-style=liquid]{background:var(--lq-tone)!important;backdrop-filter:none!important}}
@supports not (backdrop-filter:blur(1px)){html body > header#header[data-nav-style=liquid]{background:var(--lq-tone)!important}}
@media(forced-colors:active){#header[data-nav-style=liquid] .lq-indicator{border:2px solid Highlight}#header[data-nav-style=liquid] a[aria-current=page]{outline:2px solid Highlight}}

/* Approved revision: light page mode only. The original dark rules above stay intact. */
html:not(.dark) body > header#header[data-nav-style=liquid][data-nav-style=liquid] {
 --lq-tone:#10212d;--lq-text:#ffffff;--lq-muted:#edf4f1;
 --lq-dropdown:#152c36;--lq-line:#e5ede982;--lq-rim:#eaf7f199;
 --lq-pill:linear-gradient(145deg,#fff2c44d,#b9893226 65%,#ffb24766);
 --lq-shadow:0 7px 24px #071b231c,0 1px 2px #ffffff80 inset,0 -1px 2px #d8b66a66 inset;
 background:color-mix(in srgb,var(--lq-tone) var(--sq-nav-opacity,35%),transparent)!important;
 backdrop-filter:blur(7px) saturate(1.12)!important;
 -webkit-backdrop-filter:blur(7px) saturate(1.12)!important;
}
/* Automatic mode follows the approved glass; explicit Studio percentages still win. */
html:not(.dark) body > header#header[data-nav-style=liquid]:is([data-nav-transparency=auto],:not([data-nav-transparency])) {--sq-nav-opacity:35%}
html:not(.dark) body > header#header[data-nav-style=liquid][data-nav-transparency="100"] {
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html:not(.dark) body #header[data-nav-style=liquid] :is(.navbar-links,#lang-switcher-desktop > button,#theme-toggle,#mobile-menu-button) {
 background:transparent!important;
}
html:not(.dark) body #header[data-nav-style=liquid] :is(.nav-link,#lang-switcher-desktop > button,#theme-toggle,#mobile-menu-button) {
 color:#fff!important;text-shadow:0 1px 3px #05101ec9,0 0 8px #05101e66;
}
html:not(.dark) body #header[data-nav-style=liquid] .navbar-shell > a:first-child,
html:not(.dark) body #header[data-nav-style=liquid] .navbar-shell > a:first-child img {
 background:transparent!important;box-shadow:none!important;border:0!important;
}
html:not(.dark) body #header[data-nav-style=liquid] .navbar-shell > a:first-child img {
 filter:url(#sq-logo-approved-green);
}

/* Only the selected label changes; keep the approved glass indicator intact. */
html:not(.dark) body #header[data-nav-style=liquid] .navbar-links > a.nav-link:is([aria-current=page],.active),
html:not(.dark) body #header[data-nav-style=liquid] #mobile-menu > a:is([aria-current=page],.active) {
 color:#fff!important;
}

/* Legacy page script adds brand-gradient-text, whose text fill overrides color.
   Correct only light Liquid labels; leave the glass indicator and dark mode intact. */
html:not(.dark) body #header[data-nav-style=liquid] :is(.navbar-links,#mobile-menu) > a.nav-link:is([aria-current=page],.active,.brand-gradient-text),
html:not(.dark) body #header[data-nav-style=liquid] #mobile-menu > a[aria-current=page] {
 color:#ffbd70!important;-webkit-text-fill-color:#ffbd70!important;
}
/* The legacy mobile enhancement supplies pale cards: harmonize its variables
   with the light Liquid panel, without changing other navigation styles/dark. */
html:not(.dark) body #header[data-nav-style=liquid] #mobile-menu.sq-mobile-menu {
 --sq-menu-ink:#fff;--sq-menu-muted:#edf4f1;
 --sq-menu-line:#ffffff40;--sq-menu-card:#ffffff0d;
}
html:not(.dark) body #header[data-nav-style=liquid] #mobile-menu > a.sq-mobile-book {
 color:#183c35!important;-webkit-text-fill-color:#183c35!important;text-shadow:none;
}

/* Requested dark-mode selected label only; preserve every glass surface. */
html.dark body #header[data-nav-style=liquid] :is(.navbar-links,#mobile-menu) > a.nav-link:is([aria-current=page],.active,.brand-gradient-text),
html.dark body #header[data-nav-style=liquid] #mobile-menu > a[aria-current=page] {
 color:#ffbd70!important;-webkit-text-fill-color:#ffbd70!important;
}
