html body .app-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 16px;
  padding-inline: 10px;
  background: #e5ebe3;
  color: #283735;
}
html body .app-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-underline-offset: 3px;
  text-decoration: underline;
}
html body header nav > a[href],
html body header .language a,
html body header .languages a {
  font-size: 12px !important;
}
html body nav.quick-text-links > a {
  font-size: 13px !important;
  white-space: normal;
}
.sitewide-primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(12px, 4vw, 42px);
  padding-inline: 10px;
  border-bottom: 1px solid #dedfd9;
}
html body .sitewide-primary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px !important;
  color: #283735;
  text-decoration: none;
}
html body .sitewide-primary a:last-child,
html body .sitewide-primary a:hover,
html body .sitewide-primary a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Keep the primary actions legible across home and detail headers. */
html body header nav > a[href],
html body header .language a,
html body header .languages a,
html body nav.quick-text-links > a,
html body nav.sitewide-primary > a,
html body nav.class-nav > a {
  font-size: 14px !important;
  color: #233b35;
  line-height: 1.3 !important;
}
html body header nav > a[href] { white-space: nowrap; }
html body nav.quick-text-links,
html body nav.sitewide-primary { background: #f4f6f1; }
html[lang] body :is(header nav, nav.quick-text-links) > a.main-booking,
html[lang] body nav.sitewide-primary > a:last-child {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--club-button-color, #28384f) !important;
  border-radius: 0;
  box-shadow: none;
  font-weight: 600;
  text-decoration: none;
}
html[lang] body :is(header nav, nav.quick-text-links) > a.main-booking:is(:hover, :focus-visible),
html[lang] body nav.sitewide-primary > a:last-child:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 650px) {
  html body nav.quick-text-links { padding-inline: 8px; }
  html body nav.quick-text-links > a { white-space: normal; }
  html body nav.quick-text-links > a.main-booking::before { display: none; }
  html body nav.sitewide-primary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:8px; }
  html body nav.sitewide-primary > a { justify-content:center; text-align:center; padding-inline:2px; }
  html body nav.class-nav > a { font-size: 12px !important; }
}

html body header .language,
html body .club-global-header .club-language,
html body header .languages {
  height: 38px;
  align-items: stretch;
  padding: 2px;
}
html body header :is(.language, .languages) a,
html body .club-global-header .club-language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 8px;
  font-size: 12px !important;
}
html body :is(.language, .languages, .club-language) a[lang="ko"][aria-current="page"] {
  background: #28384f !important;
  color: #fff !important;
  border-color: #68788c;
}
html body :is(.language, .languages, .club-language) a[lang="en"][aria-current="page"] {
  background: #71394d !important;
  color: #fff !important;
  border-color: #71394d;
}

html body :is(header, .club-global-header) .wix-chat-trigger {
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 8px;
  border-color: #77818c !important;
  color: #505d6c !important;
}
html body :is(header, .club-global-header) .wix-chat-trigger svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 760px) {
  html body .club-global-header[role="banner"],
  html body:has(main.pack-page:not(.pack-inline)) header:has(.language) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 8px 4px;
    height: auto;
    padding: 10px 3%;
  }
  html body :is(.club-global-header[role="banner"], body:has(main.pack-page:not(.pack-inline)) header:has(.language)) > nav { display: contents; }
  html body :is(.club-global-header[role="banner"], body:has(main.pack-page:not(.pack-inline)) header:has(.language)) :is(.club-language, .language) {
    grid-area: 1 / 2 / 2 / 4;
    justify-self: center;
    margin: 0;
  }
  html body :is(.club-global-header[role="banner"], body:has(main.pack-page:not(.pack-inline)) header:has(.language)) .wix-chat-trigger {
    grid-area: 1 / 4;
    justify-self: end;
  }
  html body :is(.club-global-header[role="banner"], body:has(main.pack-page:not(.pack-inline)) header:has(.language)) nav > a,
  html body nav.quick-text-links > a,
  html body nav.sitewide-primary > a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7px 2px;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(10px, 3vw, 13px) !important;
  }
  html body :is(.club-global-header[role="banner"], body:has(main.pack-page:not(.pack-inline)) header:has(.language)) nav > a { grid-row: 2; }
  html body nav.quick-text-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
}

html[lang] body nav.quick-text-links > a {
  font-size: calc(14px + 1pt) !important;
  font-weight: 600;
  color: var(--club-button-color, #28384f) !important;
}
html[lang] body nav.quick-text-links > a.main-booking::before {
  display: block;
}
@media (max-width: 650px) {
  html[lang] body nav.quick-text-links > a {
    font-size: calc(clamp(10px, 3vw, 13px) + 1pt) !important;
    white-space: normal;
  }
}

html body :is(header .logo, header .club-wordmark, .detail-header .logo) {
  font-family: system-ui, Arial, sans-serif !important;
  font-size: clamp(1.125rem, 3.1vw, 1.625rem) !important;
  font-weight: 750;
  letter-spacing: .09em !important;
  white-space: nowrap;
}
html body :is(header, .club-global-header) :is(.language, .languages, .club-language) a {
  font-family: system-ui, "Noto Sans KR", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .075em !important;
}
html body :is(header, .club-global-header) :is(.language, .languages, .club-language) a[lang="en"] {
  text-transform: uppercase;
}
html[lang] body:has(.site-contact-footer) :is(header, .club-global-header) button.wix-chat-trigger {
  background: transparent !important;
  border-color: #77818c !important;
  color: #505d6c !important;
}
@media (max-width: 760px) {
  html body :is(.club-global-header[role="banner"], body:has(main.pack-page:not(.pack-inline)) header:has(.language)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html body :is(.club-global-header[role="banner"], body:has(main.pack-page:not(.pack-inline)) header:has(.language)) :is(.club-language, .language) {
    justify-self: end;
  }
}

html body :is(header, .club-global-header):has(.wix-chat-trigger) {
  height: auto;
  min-height: 0;
  padding-block: 7px;
}
html body :is(header, .club-global-header) :is(.language, .languages, .club-language) {
  height: 34px;
}
html[lang] body :is(header, .club-global-header) button.wix-chat-trigger {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 7px;
}

html body :is(header, .club-global-header):has(> .subpage-actions) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}
html body :is(header, .club-global-header) > nav.subpage-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

html body :is(header, .club-global-header):has(.wix-chat-trigger) {
  box-sizing: border-box;
  min-height: 50px;
  height: auto;
  padding: 8px clamp(12px, 3vw, 40px);
  background: #faf9f6;
}
html body :is(header, .club-global-header) > nav.subpage-actions {
  gap: 10px;
  padding-inline-end: 34px;
}
html[lang] body :is(header, .club-global-header) > .subpage-actions > button.wix-chat-trigger {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 5px;
}

html[lang] body :is(header, .club-global-header):has(> .subpage-actions) {
  background: #192637;
  color: #fff;
}
html[lang="en"] body :is(header, .club-global-header):has(> .subpage-actions) {
  background: #482332;
}
html[lang] body :is(header, .club-global-header):has(> .subpage-actions) > :is(.logo, .club-wordmark) {
  color: #fff !important;
}
html[lang] body :is(header, .club-global-header) > nav.subpage-actions > button.wix-chat-trigger {
  border-color: #fff !important;
  color: #fff !important;
}

html[lang] body :is(header, .club-global-header):has(> .subpage-actions) {
  block-size: 52px;
  min-block-size: 52px;
  padding-block: 0;
}
html[lang] body :is(header, .club-global-header):has(> .subpage-actions) > :is(.logo, .club-wordmark) {
  font-size: clamp(1.125rem, 3.1vw, 1.625rem) !important;
  line-height: 1 !important;
}

html body .app-bar button.app-invite-copy {
  appearance: none;
  min-height: 36px;
  padding: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.app-invite-status:empty { display: none; }
.app-invite-status {
  flex-basis: 100%;
  padding-bottom: 4px;
  text-align: center;
  font-size: 12px;
}

html body div.app-bar > button.app-invite-copy,
html body div.app-bar > button.app-invite-copy:is(:hover, :active, :focus-visible) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-weight: 700;
}
html body div.app-bar > button.app-invite-copy strong { font: inherit !important; }
html body div.app-bar > button.app-invite-copy:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

html[lang] body div.app-bar:not(.app-setup-copy) { position: relative; }
html[lang] body div.app-bar:not(.app-setup-copy) > :is(a, button.app-invite-copy) {
  font-size: 12px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}
html[lang] body div.app-bar:not(.app-setup-copy) > .app-invite-status {
  position: absolute;
  z-index: 20;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: #e5ebe3;
  color: #283735;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 570px) {
  html[lang] body div.app-bar:not(.app-setup-copy) > .app-invite-status {
    top: 100%;
    transform: none;
  }
}

html[lang="en"] body div.app-bar {
  flex-wrap: nowrap;
  column-gap: 12px;
}
html[lang="en"] body div.app-bar > :is(a, .app-invite-copy) { white-space: nowrap; }
.app-invite-code-value { display: none; }

@media (max-width: 760px) {
  html[lang] body main.home-content > nav.quick-text-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    gap: 0;
  }
  html[lang] body main.home-content > nav.quick-text-links > a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding-inline: 3px;
  }
}

html[lang] body :is(header nav, nav.quick-text-links, nav.sitewide-primary) > a[href]:is(:active, [aria-current]:not([aria-current="false"])),
html[lang] body:has(#visit:target) :is(header nav, nav.quick-text-links) > a[href="#visit"],
html[lang] body:has(#classes:target) :is(header nav, nav.quick-text-links) > a[href="#classes"] {
  background-color: #dce9e6 !important;
  color: #192637 !important;
}

html[lang] body :is(header nav, nav.quick-text-links, nav.sitewide-primary) > a[href]:is(:active, [aria-current]:not([aria-current="false"])),
html[lang] body:has(#visit:target) :is(header nav, nav.quick-text-links) > a[href="#visit"],
html[lang] body:has(#classes:target) :is(header nav, nav.quick-text-links) > a[href="#classes"] {
  background-color: #dce9e6 !important;
  color: #192637 !important;
}

html[lang] body a.club-back-top {
  position: fixed;
  inset-inline-end: max(12px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 15;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 42px;
  padding: 7px 15px;
  border: 1px solid #29394b;
  border-radius: 24px;
  background: #29394b;
  color: #fff;
  font: 600 .8125rem/1.3 system-ui;
  text-decoration: none;
  box-shadow: 0 3px 12px #29394b24;
}
html[lang="en"] body:has(.site-contact-footer) a.club-back-top {
  background: #71394d;
  border-color: #71394d;
}
html[lang] body:has(.class-quick-book) a.club-back-top {
  bottom: calc(76px + env(safe-area-inset-bottom));
}

@layer club-page-top {
  html[lang] body :is(a.club-back-top, a.class-quick-book) {
    font-family: var(--club-font) !important;
    font-size: var(--club-type-small) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }
}

html body nav.club-desktop-nav,
.club-desktop-only { display: none; }

@media (min-width: 761px) {
  html body nav.club-desktop-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
    text-align: center;
  }
  html body nav.club-desktop-nav > a { padding-block: 14px; }
  html body .club-desktop-hide { display: none !important; }
  .club-desktop-only { display: block; }
  .club-waitlist-contact { margin-block: 24px; }
}

@media (max-width: 760px) {
  html[lang] body :is(a.club-back-top, a.class-quick-book) {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  html[lang] body:has(a.class-quick-book) a.club-back-top {
    bottom: calc(58px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  html[data-page-kind="interior"][lang] body :is(header, .club-global-header) .wix-chat-trigger {
    margin-inline-end: 8px;
  }
}

@media (max-width: 760px) {
  html[lang] body:not(.home-page) > :is(header, .club-global-header[role="banner"]):has(button.wix-chat-trigger) {
    --club-chat-inset: clamp(42px, 15vw, 60px);
    position: relative;
    padding-inline-end: calc(var(--club-chat-inset) + 42px) !important;
  }

  html[lang] body:not(.home-page) > :is(header, .club-global-header[role="banner"]) > nav.subpage-actions {
    padding-inline-end: 0;
  }

  html[lang] body:not(.home-page) > :is(header, .club-global-header[role="banner"]) button.wix-chat-trigger {
    position: absolute !important;
    inset-block-start: 50%;
    inset-inline-end: var(--club-chat-inset);
    transform: translateY(-50%);
    margin: 0 !important;
  }
}

.inline-wix-form { display:block; width:100%; min-width:0; margin:12px 0 0; background:#fff; }
.inline-wix-form summary { cursor:pointer; padding:8px; }
.inline-wix-form iframe { display:block; width:100%; height:980px; border:0; background:#fff; }
.inline-wix-form > a { display:inline-block; padding:8px; }
.club-desktop-language { display:none !important; }
@media (min-width:761px) {
  html[lang] body > :is(header, .club-global-header[role="banner"]) > nav :is(.language,.languages,.club-language) {
    display:inline-flex !important;
    flex:none;
  }
  html[lang] body > :is(header, .club-global-header[role="banner"]) > nav .club-header-desktop-links {
    gap:clamp(8px,1.7vw,28px) !important;
  }
}
html body #director-waiting-list .director-actions > a,
html body #director-waiting-list #director-waiting-application > summary {
  display:inline-flex !important; width:fit-content; align-items:center; min-height:40px;
  box-sizing:border-box; padding:8px 12px; background:#fff; color:#283735;
  border:1px solid #d3dfdf; border-radius:7px; text-decoration:none;
}
html body #director-waiting-list #director-waiting-application {
  padding:0; margin-top:8px; border:0; background:transparent !important;
}
html body #director-waiting-list #director-waiting-application > summary::before { content:"▸"; margin-right:6px; }
html body #director-waiting-list #director-waiting-application[open] > summary::before { content:"▾"; }

/* Season 3_01: responsive inline forms */
.inline-wix-form { box-sizing:border-box; max-width:100%; flex:0 0 100%; grid-column:1 / -1; }
.inline-wix-form iframe { max-width:100%; min-height:980px; }
@media (max-width:767px) { .inline-wix-form iframe { height:1300px; } }

/* fix: sub-page language switch (desktop layout + visible on mobile) */
html[lang] body > header > nav.subpage-actions .club-language.club-desktop-language { box-sizing:border-box; align-items:stretch; gap:2px; padding:2px; background:#fff; border-radius:999px; overflow:hidden; }
html[lang] body > header > nav.subpage-actions .club-language.club-desktop-language a { display:inline-flex; align-items:center; justify-content:center; padding:0 10px; border-radius:999px; text-decoration:none; white-space:nowrap; line-height:1 !important; }
html[lang] body > header > nav.subpage-actions .club-language a:not([aria-current="page"]) { color:#28384f !important; }
@media (max-width:760px) {
  html[lang] body > header > nav.subpage-actions { display:flex; align-items:center; gap:8px; }
  html[lang] body > header > nav.subpage-actions .club-header-desktop-links { display:none !important; }
  html[lang] body > header > nav.subpage-actions .club-language.club-desktop-language { display:inline-flex !important; height:34px; margin:0; }
}
@media (max-width:760px) {
  html[lang] body:not(.home-page) > :is(header,.club-global-header[role="banner"]):has(button.wix-chat-trigger) { --club-chat-inset:12px; padding-inline-end:12px !important; }
  html[lang] body:not(.home-page) > :is(header,.club-global-header[role="banner"]) > nav.subpage-actions { position:absolute !important; inset-block-start:50%; inset-inline-end:12px !important; transform:translateY(-50%); margin:0 !important; }
  html[lang] body:not(.home-page) > :is(header,.club-global-header[role="banner"]) > nav.subpage-actions > button.wix-chat-trigger { position:static !important; inset:auto !important; transform:none !important; flex:none; }
}

.inline-wix-form-box { width:100%; overflow:hidden; }
html body .inline-wix-form-box > iframe { max-width:none !important; transform-origin:0 0; }
@media (max-width:760px) {
  body:has(.inline-wix-form[open]) :is(.class-quick-book, .club-back-top) { display:none !important; }
}
