/* Kabonsky utility bar: language (left) + region (right). Local preview only. */
:root { --kb-region-h: 36px; }

.kb-utility {
  position: sticky;
  top: 0;
  z-index: 10050;
  box-sizing: border-box;
  min-height: var(--kb-region-h);
  height: var(--kb-region-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  margin: 0;
  background: #f6f7f8;
  color: #5c5f66;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.kb-lang,
.kb-region {
  position: static;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  height: var(--kb-region-h);
  background: none;
  border: 0;
  z-index: auto;
  font: inherit;
}

.kb-lang a,
.kb-lang button,
.kb-region a {
  appearance: none;
  -webkit-appearance: none;
  color: #5c5f66;
  text-decoration: none;
  padding: 0 11px;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.12);
  opacity: 1;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: var(--kb-region-h);
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
.kb-lang a:first-child,
.kb-lang button:first-child,
.kb-region a:first-child {
  border-left: 0;
  padding-left: 0;
}
.kb-region a:last-child { padding-right: 0; }

.kb-lang a:hover,
.kb-lang button:hover,
.kb-region a:hover {
  color: #1f2937;
  background: none;
  text-decoration: none;
  opacity: 1;
}
.kb-lang a.is-on,
.kb-lang button.is-on,
.kb-region a.is-on {
  color: #1f2937;
  font-weight: 600;
  background: none;
  box-shadow: inset 0 -2px 0 #1f2937;
  opacity: 1;
}

/* Hide the old bulky Polylang dropdown in the HK main nav — language lives in the utility bar */
.pll-parent-menu-item { display: none !important; }
/* Extra backstop: leftover WP language items if any remain */
#primary-menu .lang-item,
#mobile-menu .lang-item,
.header-navigation .pll-parent-menu-item,
.mobile-navigation .pll-parent-menu-item { display: none !important; }


/* Typographic site name */
.kb-site-logo {
  display: inline-flex !important;
  align-items: baseline;
  gap: 0.45em;
  text-decoration: none !important;
  color: inherit;
  line-height: 1.15;
  flex: none;
  max-width: 100%;
}
.kb-site-logo img,
a.kb-site-logo .custom-logo,
.site-branding a.kb-site-logo img {
  display: none !important;
}
.kb-site-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #1f2937;
}
.kb-site-sub {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #3f4550;
}
.kb-site-logo.kb-site-name--light .kb-site-name,
.kb-site-logo.kb-site-name--light .kb-site-sub {
  color: #fff;
}

.navbar.fixed-top,
.navbar-custom.fixed-top { top: var(--kb-region-h) !important; }
.hdr { top: var(--kb-region-h) !important; }
.kadence-sticky-header.item-is-fixed,
#masthead .item-is-fixed,
#mobile-header.item-is-fixed { top: var(--kb-region-h) !important; }

.kb-tender-note {
  margin: 0;
  padding: 8px 28px 10px;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #4b5563;
  background: #f6f7f8;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 720px) {
  .kb-utility { padding: 0 14px; gap: 10px; }
  .kb-lang a, .kb-lang button, .kb-region a { padding: 0 8px; font-size: 11px; }
  .kb-site-name { font-size: 16px; }
  .kb-site-sub { font-size: 12px; }
}

@media print {
  .kb-utility, .kb-tender-note { display: none !important; }
  .navbar.fixed-top,
  .navbar-custom.fixed-top,
  .hdr,
  .kadence-sticky-header.item-is-fixed { top: 0 !important; }
}
