/* Per-site header additions. Existing header row heights remain authoritative. */
.kbt-portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid currentColor;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  text-decoration: none;
  font: 600 .88rem/1.2 var(--kbt-font-display);
  max-width: 100%;
}
.kbt-portal-link:hover { background: rgba(var(--kbt-brand-primary-rgb),.06); }
.kbt-portal-link:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.kbt-portal-icon { flex: 0 0 18px; }
.kbt-portal-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbt-portal-link--header { max-width: 11rem; flex: 0 1 auto; }
.kbt-portal-link--header .kbt-portal-label--full { display: none; }
.kbt-portal-label--compact { display: inline; }
.kbt-portal-link--menu { display: flex; justify-content: flex-start; margin: .55rem 0 .75rem; width: 100%; color: var(--kbt-ink); }
.kbt-footer .kbt-portal-link--footer { margin: .7rem 0; color: var(--kbt-white); }
.kbt-header-on-dark .kbt-portal-link--header:hover { background: rgba(255,255,255,.12); }

/* Only an explicitly enabled homepage uses the projecting panel. */
.kbt-home-logo-enhanced .kbt-header-brand.kbt-home-logo-anchor {
  width: min(var(--kbt-home-panel-mobile-width,96px),100%);
  max-width: 100%;
}
.kbt-home-logo-panel {
  position: absolute;
  inset: 6px 0 auto;
  height: calc(var(--kbt-header-row-height) - 12px + var(--kbt-home-panel-mobile-overlap,32px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 5px 5px 13px 13px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,.12);
  opacity: 1;
  visibility: visible;
  transition: opacity .16s ease, visibility .16s ease;
}
.kbt-home-logo-panel .kbt-home-logo-art {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
  margin: 0;
  padding: 0;
}
.kbt-home-logo-enhanced:not(.is-kbt-scrolled) .kbt-home-logo-anchor > .kbt-header-logo { opacity: 0; }
.kbt-home-logo-anchor:focus-visible .kbt-home-logo-panel { outline: 3px solid var(--kbt-navy); outline-offset: 3px; }
.is-kbt-scrolled .kbt-home-logo-panel,
.kbt-nav-open .kbt-home-logo-panel { opacity: 0; visibility: hidden; pointer-events: none; }
.kbt-nav-open .kbt-home-logo-panel { display: none; }
.kbt-nav-open .kbt-home-logo-enhanced .kbt-home-logo-anchor > .kbt-header-logo { opacity: 1; transition: none; }
html.no-js .kbt-home-logo-panel { display: none; }
html.no-js .kbt-home-logo-enhanced .kbt-home-logo-anchor > .kbt-header-logo { opacity: 1; }

@media (min-width:1080px) {
  .kbt-home-logo-enhanced .kbt-header-brand.kbt-home-logo-anchor { width: min(var(--kbt-home-panel-width,160px),100%); }
  .kbt-home-logo-panel { height: calc(var(--kbt-header-row-height) - 12px + var(--kbt-home-panel-overlap,60px)); padding: 12px; }
  .kbt-has-portal .kbt-header-shell { grid-template-columns: minmax(140px,1fr) minmax(0,auto) auto; gap: .9rem; }
}
@media (min-width:1080px) and (max-width:1279px) {
  .kbt-has-portal .kbt-primary-menu { gap: .4rem; }
  .kbt-has-portal .kbt-primary-menu > li > a { font-size: .86rem; }
  .kbt-has-portal .kbt-header-cta { font-size: .86rem; padding: .65rem .75rem; }
  .kbt-has-portal .kbt-header-cta__icon { display: none; }
  .kbt-portal-link--header { padding-inline: .55rem; font-size: .84rem; }
}
@media (min-width:1400px) {
  .kbt-portal-link--header .kbt-portal-label--full { display: inline; }
  .kbt-portal-link--header .kbt-portal-label--compact { display: none; }
}
@media (max-width:379px) {
  .kbt-has-portal .kbt-header-shell { gap: .5rem; }
  .kbt-has-portal .kbt-header-actions { gap: .35rem; }
  .kbt-portal-link--header { padding-inline: .45rem; font-size: .8rem; }
}
@media (prefers-reduced-motion:reduce) { .kbt-home-logo-panel { transition: none; } }
@media print { .kbt-portal-link, .kbt-home-logo-panel { display: none !important; } }
