/* KMC26's persistent header keeps the accepted hero composition while scrolling. */
body.kn-conf {
  --conf-header-height: 80px;
}

.kn-conf .k-header--conference {
  position: sticky;
  z-index: 20;
  top: 0;
  margin-bottom: calc(-1 * var(--conf-header-height));
  color: var(--on-dark);
  background: transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.kn-conf .k-header--conference.is-scrolled,
.kn-conf .k-header--conference.is-menu-open {
  border-bottom: 1px solid rgba(237, 240, 235, .12);
  background: rgba(11, 26, 34, .94);
  box-shadow: 0 8px 24px rgba(3, 10, 14, .15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 1050px) {
  body.kn-conf.is-conf-menu-open::before {
    position: fixed;
    z-index: 19;
    inset: var(--conf-header-height) 0 0;
    background: rgba(3, 10, 14, .52);
    content: "";
  }
}

.kn-conf .k-header--conference .wrap {
  position: relative;
  min-height: var(--conf-header-height);
  gap: 20px;
}

.kn-conf .k-logo--conference {
  flex: 0 1 auto;
}

.kn-conf .k-nav--conference-desktop {
  flex: 0 0 auto;
  gap: clamp(14px, 1.7vw, 26px);
  white-space: nowrap;
}

.kn-conf .k-nav--conference-desktop a {
  padding-block: 10px;
  text-underline-offset: 5px;
}

.kn-conf .k-nav--conference-desktop a:hover,
.kn-conf .k-nav--conference-desktop a:focus-visible {
  text-decoration: underline;
}

.kn-conf .k-header--conference .k-actions .btn {
  min-height: 44px;
  white-space: nowrap;
}

.kn-conf .k-conf-menu-toggle {
  display: none;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(237, 240, 235, .3);
  border-radius: var(--r-pill);
  background: rgba(237, 240, 235, .06);
  color: var(--on-dark);
  font: 600 14px/1 var(--f-sans);
  cursor: pointer;
}

.kn-conf .k-conf-menu-toggle:hover {
  border-color: var(--accent);
  background: rgba(237, 240, 235, .11);
}

.kn-conf .k-conf-menu-toggle__icon {
  display: grid;
  width: 17px;
  gap: 4px;
}

.kn-conf .k-conf-menu-toggle__icon i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.kn-conf .k-conf-menu-toggle[aria-expanded="true"] .k-conf-menu-toggle__icon i:first-child {
  transform: translateY(6px) rotate(45deg);
}

.kn-conf .k-conf-menu-toggle[aria-expanded="true"] .k-conf-menu-toggle__icon i:nth-child(2) {
  opacity: 0;
}

.kn-conf .k-conf-menu-toggle[aria-expanded="true"] .k-conf-menu-toggle__icon i:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.kn-conf .k-conf-mobile-menu {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--conf-header-height) - 24px);
  gap: 2px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(237, 240, 235, .16);
  border-radius: 18px;
  background: #0b1a22;
  box-shadow: 0 18px 40px rgba(3, 10, 14, .35);
}

.kn-conf .k-conf-mobile-menu[hidden] {
  display: none !important;
}

.kn-conf .k-conf-mobile-menu > a:not(.btn) {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--on-dark);
  font-size: 16px;
  text-decoration: none;
}

.kn-conf .k-conf-mobile-menu > a:not(.btn):hover,
.kn-conf .k-conf-mobile-menu > a:not(.btn):focus-visible {
  background: rgba(237, 240, 235, .09);
}

.kn-conf .k-conf-mobile-menu .btn {
  min-height: 48px;
  margin-top: 8px;
}

.kn-conf main[id],
.kn-conf main :is(section, aside)[id] {
  scroll-margin-top: calc(var(--conf-header-height) + 16px);
}

.kn-conf .you-are-not-alone__close {
  color: var(--on-dark);
}

.conf-route-links { display:flex; flex-wrap:wrap; gap:8px 16px; margin:0 0 20px; font-size:14px; }
.conf-route-links a { display:inline-flex; min-height:32px; align-items:center; text-underline-offset:4px; }
.conf-route-links a:focus-visible { outline:3px solid var(--lamp); outline-offset:3px; border-radius:3px; }
.conf-route-links__parent { font-weight:700; }
.conf-value-line { max-width:max-content; padding:9px 13px; border:1px solid rgba(242,179,91,.45); border-radius:var(--r-pill); color:var(--lamp-text); font-size:15px; font-weight:650; line-height:1.35; }
.conf-hero .conf-value-line { border-color:rgba(242,179,91,.5); background:rgba(242,179,91,.08); color:var(--lamp); }

@media (max-width:650px) { .conf-route-links { gap:6px 12px; font-size:13px; } .conf-value-line { font-size:14px; } }

@media (max-width: 1050px) {
  body.kn-conf {
    --conf-header-height: 68px;
  }

  .kn-conf .k-header--conference .wrap {
    gap: 10px;
  }

  .kn-conf .k-nav--conference-desktop {
    display: none !important;
  }

  .kn-conf .k-conf-menu-toggle {
    display: inline-flex;
  }

  .kn-conf .k-header--conference .k-actions {
    margin-left: auto;
  }

  .kn-conf .k-header--conference .k-actions .btn {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .kn-conf .k-logo--conference small {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .kn-conf .k-conf-mobile-menu {
    right: 0;
  }
}

@media (max-width: 420px) {
  body.kn-conf {
    --conf-header-height: 112px;
  }

  .kn-conf .k-header--conference .wrap {
    display: grid;
    grid-template-areas: "logo toggle" "actions actions";
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    column-gap: 7px;
    row-gap: 7px;
    min-height: var(--conf-header-height);
  }

  .kn-conf .k-header--conference .k-actions {
    grid-area: actions;
    width: 100%;
    gap: 4px;
    justify-content: flex-end;
  }

  .kn-conf .k-logo--conference {
    grid-area: logo;
    min-width: 0;
  }

  .kn-conf .k-conf-menu-toggle {
    grid-area: toggle;
  }

  .kn-conf .k-logo--conference {
    gap: 8px;
  }

  .kn-conf .k-logo--conference b {
    font-size: 18px;
    letter-spacing: .14em;
  }

  .kn-conf .k-logo--conference small {
    font-size: 8px;
    letter-spacing: .03em;
  }

  .kn-conf .k-header--conference .k-actions .btn {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 13px;
    max-width: 112px;
    height: auto;
    padding-block: 7px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .kn-conf .k-conf-menu-toggle {
    min-height: 44px;
    gap: 7px;
    padding-inline: 9px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kn-conf .k-header--conference,
  .kn-conf .k-conf-menu-toggle__icon i {
    transition: none;
  }
}
