/* BB Auto shared site chrome: header, language switch, floating controls. */
:root {
  --bb-admin-offset: 0px;
  --bb-header-height: 84px;
}
div#bb-auto-main-app a {
    text-decoration: unset;
}

/* Keep a normal-flow spacer for the shared header, while the actual header
   is fixed to the viewport. This avoids position:sticky being constrained by
   a runtime-created containing block in the bundled main page. */
#bb-auto-shared-header {
  position: relative;
  z-index: 10020;
  height: var(--bb-header-height);
}
#bb-auto-shared-floating {
  position: relative;
  z-index: 9990;
}

.bb-site-header {
  position: fixed;
  top: var(--bb-admin-offset);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10020;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e6e9ef;
  overflow: visible;
  color: #16181d;
  font-family: 'Noto Sans KR', 'Archivo', system-ui, sans-serif;
}

.bb-hdr-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}

.bb-hdr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  align-self: flex-end;
  width: 100%;
}

.bb-lang-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #9aa2ae;
}

.bb-lang-switch button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #9aa2ae;
  font: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  cursor: pointer;
}
.bb-lang-switch button.is-active { color: #101318; font-weight: 700; }

.bb-nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  width: 100%;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 500;
  color: #3d4552;
}
.bb-site-header .bb-nav-menu a { color: #3d4552; text-decoration: none; white-space: nowrap;}
.bb-site-header .bb-nav-menu a:hover { color: #1F4E9C; }
.bb-nav-menu .bb-nav-home { color: #16181d; font-weight: 700; }
.bb-brand { display: flex; align-items: center; gap: 4px; }
.bb-brand a { display: flex; align-items: center; flex-shrink: 0; }
.bb-site-header img.bb-logo-symbol { display: block; width: 75.8px; height: 75.8px; max-width: none; object-fit: contain; }
.bb-site-header img.bb-logo-text { display: block; height: 40.5px; width: auto; max-width: none; object-fit: contain; }
.bb-nav-links { display: flex; flex-wrap: wrap; gap: 22px; }

.bb-top-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: calc(100vw - 32px);
  z-index: 10010;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #101318;
  color: #F5C518;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  box-sizing: border-box;
}

.bb-contact-fab {
  position: fixed;
  top: calc(var(--bb-admin-offset) + var(--bb-header-height));
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  border: 1px solid #e2e7ee;
  box-sizing: border-box;
}
.bb-contact-fab a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #ffffff;
  border: none;
}

@media (max-width: 1024px) {
  .bb-nav-menu { gap: 12px; font-size: 12px; }
  .bb-hdr-right { align-items: flex-start; }
}
@media (max-width: 860px) {
  .bb-hdr-wrap { flex-direction: column; align-items: flex-start; gap: 16px; padding-left: 20px; padding-right: 20px; padding-top: 14px; }
  .bb-hdr-right { align-items: flex-start; }
  .bb-nav-menu { justify-content: flex-start; gap: 14px; }
  .bb-site-header .bb-nav-menu a { white-space: normal; }
  .bb-nav-links { gap: 14px; }
  .bb-contact-fab { right: 12px; }
}
@media (max-width: 420px) {
  .bb-top-btn { right: 10px; bottom: 10px; padding: 7px 10px; }
}
