.kh-header {
  position: relative;
  z-index: 30;
  color: var(--ink);
  font: 15px/1.58 Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-align: left;
}
.kh-header *, .kh-header *::after, .kh-header *::before { box-sizing: border-box; }
.kh-header [hidden] { display: none !important; }
.kh-header :is(h2, h3, p, ul, form) { margin: 0; }
.kh-header button, .kh-header input { font: inherit; color: inherit; }
.kh-header button { border: 0; cursor: pointer; background: transparent; }
.kh-header a { text-decoration: none; }
.kh-header :is(a, button, summary, input):focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.kh-header .kh-icon { width: 22px; height: 22px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kh-container { width: min(1280px, calc(100% - 100px)); margin-inline: auto; }
.kh-utility { background: var(--night); color: #c7d1e6; font-size: 11px; letter-spacing: .025em; }
.kh-utility .kh-container { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 8px; }
.kh-utility-local, .kh-utility-links { display: flex; gap: 8px; align-items: center; }
.kh-utility-local .kh-icon { width: 14px; height: 14px; color: var(--gold); }
.kh-utility-links { gap: 23px; color: #e5eaf6; }
.kh-utility-links a { color: inherit; }
.kh-utility-links a:hover, .kh-footer a:hover { text-decoration: underline; }
.kh-divider { height: 13px; width: 1px; background: #536284; }
.kh-main-nav { background: white; border-bottom: 1px solid var(--line); }
.kh-nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.kh-logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; color: var(--night); font-weight: 700; line-height: 1.1; }
.kh-logo img { display: block; width: 76px; height: 58px; object-fit: contain; }
.kh-logo span { inline-size: min-content; white-space: normal; overflow-wrap: normal; }
.kh-links { display: flex; align-items: center; gap: 18px; }
.kh-header .kh-trigger { display: flex; align-items: center; gap: 4px; padding: 29px 0 26px; color: #37445a; font-size: 13px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; border-radius: 0; }
.kh-header .kh-trigger:is(:hover,[aria-expanded=true]) { color: var(--royal); }
.kh-links .kh-trigger { white-space: normal; text-align: start; line-height: 1.35; }
.kh-links .kh-chevron { flex-shrink: 0; }
.kh-header .kh-trigger[aria-expanded=true] { border-bottom-color: var(--gold); }
.kh-chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .15s; }
.kh-trigger[aria-expanded=true] .kh-chevron, .kh-account[open] .kh-chevron { transform: rotate(180deg); }
.kh-actions { display: flex; align-items: center; gap: 8px; }
.kh-header .kh-primary, .kh-signin { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 15px; border-radius: 5px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.kh-header .kh-primary { background: var(--royal); color: white; }
.kh-header .kh-primary:hover { color: white; background: var(--royal-deep); }
.kh-signin { color: var(--royal); }
.kh-signin:hover { color: var(--royal); background: var(--mist); }
.kh-primary .kh-icon { width: 18px; height: 18px; }
.kh-header .kh-mobile { display: none; padding: 10px; color: var(--night); }
.kh-account { position: relative; }
.kh-account summary { list-style: none; cursor: pointer; }
.kh-account summary::-webkit-details-marker, .kh-category summary::-webkit-details-marker { display: none; }
.kh-account-links { position: absolute; right: 0; top: calc(100% + 6px); z-index: 3; min-width: 190px; border: 1px solid var(--line); border-radius: 6px; background: white; padding: 6px; box-shadow: 0 8px 24px #11234d28; }
.kh-account-links a, .kh-account-links button { display: block; color: var(--night); padding: 9px; width: 100%; text-align: left; font-size: 13px; }
.kh-account-links :is(a,button):hover { background: var(--mist); }
.kh-panel { position: absolute; top: 100%; inset-inline: 0; background: white; border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line); box-shadow: 0 28px 60px #11234d32; }
.kh-panel .kh-shell { padding: 22px 0 0; display: flex; flex-direction: column; max-height: var(--kh-available,calc(100dvh - 128px)); }
.kh-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 16px; }
.kh-heading .kh-kicker { font-size: 10px; letter-spacing: .15em; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 5px; }
.kh-heading h2 { font: 400 34px/1.07 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; color: var(--night); margin-bottom: 5px; }
.kh-heading p { font-size: 13px; color: var(--muted); max-width: 740px; }
.kh-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.kh-header .kh-overview { font-size: 12px; border-radius: 4px; }
.kh-overview .kh-icon, .kh-footer .kh-icon { width: 16px; height: 16px; }
.kh-header .kh-close { width: 42px; height: 42px; display: grid; place-items: center; background: var(--mist); border-radius: 4px; color: var(--night); }
.kh-header .kh-close:hover { background: #dce4f7; }
.kh-toolbar { display: flex; align-items: center; gap: 14px; padding-bottom: 15px; }
.kh-search { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 0; padding: 0 12px; width: min(430px,100%); background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; }
.kh-search .kh-icon { width: 18px; height: 18px; color: var(--royal); }
.kh-header .kh-search input { border: 0; border-radius: 0; padding: 9px 0; background: transparent; font-size: 13px; color: var(--night); flex: 1; min-width: 0; box-shadow: none; }
.kh-search:focus-within { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.kh-header .kh-search input:focus-visible { outline: none; }
.kh-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.kh-header .kh-expand, .kh-header .kh-more { color: var(--royal); font-size: 12px; font-weight: 700; }
.kh-header .kh-expand { margin-left: auto; padding: 9px 0; white-space: nowrap; }
.kh-header :is(.kh-expand,.kh-more):hover { text-decoration: underline; }
.kh-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-color: #b4c0d9 transparent; flex: 1 1 auto; border-block: 1px solid var(--line); }
.kh-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 20px 0 22px; align-items: start; }
.kh-column { min-width: 0; border-left: 1px solid var(--line); padding-inline: 20px; }
.kh-column:first-child { border-left: 0; padding-left: 0; }
.kh-column:last-child { padding-right: 8px; }
.kh-column-head { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 2px solid var(--gold); margin-bottom: 4px; }
.kh-column-head .kh-icon { width: 20px; height: 20px; color: var(--royal); }
.kh-column-head h3 { font: 700 15px/1.35 Arial, Helvetica, sans-serif; color: var(--night); letter-spacing: -.02em; }
.kh-category { border-bottom: 1px solid var(--line); }
.kh-category:last-child { border-bottom: 0; }
.kh-category summary { display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 12px 0; font-size: 13px; font-weight: 700; line-height: 1.55; color: var(--night); list-style: none; }
.kh-category summary:hover { color: var(--royal); }
.kh-category-name { flex: 1; }
.kh-number { font-size: 10px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.kh-caret { width: 6px; height: 6px; border: solid var(--royal); border-width: 0 1.5px 1.5px 0; margin: 0 2px 4px; transform: rotate(45deg); }
.kh-category[open] .kh-caret { transform: rotate(225deg); margin-bottom: -2px; }
.kh-list { list-style: none; padding: 0 0 11px; }
.kh-list li { margin: 0; }
.kh-list a { display: flex; align-items: flex-start; gap: 6px; justify-content: space-between; padding: 5px 7px 5px 10px; border-left: 2px solid #e0e6f2; font-size: 12.5px; line-height: 1.5; color: #43516a; overflow-wrap: anywhere; }
.kh-list a .kh-icon { width: 12px; height: 12px; opacity: 0; margin-top: 3px; color: var(--royal); }
.kh-list a:is(:hover,:focus-visible) { background: var(--mist); border-color: var(--gold); color: var(--royal); }
.kh-list a:is(:hover,:focus-visible) .kh-icon { opacity: 1; }
.kh-header .kh-more { display: block; padding: 0 0 10px 12px; text-align: left; }
.kh-footer { display: flex; justify-content: flex-end; padding: 12px 0; font-size: 11px; }
.kh-footer a { display: flex; align-items: center; gap: 6px; color: var(--royal); font-weight: 700; }
.kh-empty { font-size: 13px; color: var(--muted); grid-column: 1 / -1; padding: 20px 0; }
.kh-tabs { display: none; }
.kh-tabs, .kh-heading, .kh-toolbar, .kh-footer { flex-shrink: 0; }
.kh-tabs button { flex: none; padding: 9px 12px; min-height: 44px; color: var(--night); border-radius: 4px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.kh-tabs button[aria-pressed=true] { color: white; background: var(--royal); border-color: var(--royal); }
.kh-directory > summary {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 9px;
  color: var(--royal); border: 1px solid var(--line); border-radius: 5px;
  font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none;
}
.kh-directory > summary::-webkit-details-marker { display: none; }
.kh-directory > summary .kh-icon { width: 16px; height: 16px; }
.kh-directory[open] > summary, .kh-directory > summary:hover { background: var(--mist); }
.kh-directory-panel {
  position: absolute; top: 100%; inset-inline: 0; z-index: 1;
  max-height: calc(100dvh / var(--kit-display-scale, 1) - 118px); overflow: auto;
  border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line);
  background: var(--paper); color: var(--ink); box-shadow: 0 18px 36px #11234d26;
}
.kh-directory-shortcuts { display: none; }
.kh-topic-directory { padding-block: 16px 24px; }
.kh-topic-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.kh-topic-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kh-topic-filter label { font-weight: 700; color: var(--ink); }
.kh-topic-filter input { min-height: 42px; width: min(16rem,100%); padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--ivory); }
.kh-topic-directory button { color: var(--royal); text-decoration: underline; }
.kit-community-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(16rem,100%),1fr)); gap: 0 24px; align-items: start; }
.kit-community-links, .kit-community-links ul { list-style: none; padding: 0; }
.kit-community-links > li { border-top: 1px solid var(--line); }
.kit-community-links :is(summary, a) { padding-block: 10px; font-size: 14px; overflow-wrap: anywhere; color: var(--ink); }
.kit-community-links summary { cursor: pointer; }
.kit-community-links summary::marker { color: var(--gold-dark); }
.kit-community-links a { display: block; }
.kit-community-links i { color: var(--royal); margin-inline-end: .4em; }
.kit-community-links ul { margin-bottom: 8px; border-inline-start: 2px solid var(--gold); padding-inline-start: 13px; }
.kit-community-links ul a { padding-block: 7px; font-size: 13px; }
.kit-community-links :is(a,summary):hover { color: var(--royal); text-decoration: underline; }
@media(max-width:1150px) {
  .kh-container { width: calc(100% - 64px); }
  .kh-links { gap: 11px; }
  .kh-nav-wrap { gap: 12px; }
  .kh-header .kh-trigger { font-size: 11px; gap: 2px; }
  .kh-column { padding-inline: 14px; }
  .kh-column-head h3 { font-size: 14px; }
}
@media(max-width:980px) {
  .kh-container { width: calc(100% - 40px); }
  .kh-nav-wrap { min-height: 72px; }
  .kh-links { display: none; }
  .kh-header .kh-mobile { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
  .kh-actions { margin-left: auto; }
  .kh-directory-panel { max-height: calc(100dvh / var(--kit-display-scale, 1) - 106px); }
  .kh-directory-shortcuts { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; }
  .kh-directory-shortcuts :is(a, button) { display: inline-flex; align-items: center; min-height: 36px; padding: 0; color: var(--royal); font-size: 12px; font-weight: 700; }
  .kh-panel .kh-shell { padding-top: 14px; }
  .kh-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; margin-bottom: 15px; padding: 3px 2px 5px; }
  .kh-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 24px; padding-top: 15px; }
  .kh-column:nth-child(3) { border-left: 0; padding-left: 0; }
  .kh-heading { gap: 10px; }
  .kh-heading h2 { font-size: 28px; }
  .kh-heading p { font-size: 12px; }
  .kh-controls { gap: 7px; }
  .kh-toolbar { flex-wrap: wrap; gap: 4px 12px; }
  .kh-search { width: 100%; }
  .kh-count { font-size: 11px; }
  .kh-controls .kh-primary { font-size: 11px; padding: 8px 10px; }
  .kh-header .kh-close { width: 44px; height: 44px; }
  .kh-list a, .kh-category summary, .kh-header .kh-more { min-height: 44px; align-content: center; align-items: center; }
  .kh-footer { padding: 8px 0; }
}
@media(max-width:520px) {
  .kh-container { width: calc(100% - 32px); }
  .kh-utility-local { font-size: 9px; letter-spacing: 0; }
  .kh-utility-links { gap: 10px; font-size: 10px; }
  .kh-research-link, .kh-divider { display: none; }
  .kh-nav-wrap { gap: 5px; }
  .kh-directory > summary { padding-inline: 6px; gap: 4px; font-size: 12px; white-space: normal; line-height: 1.25; }
  .kh-topic-filter { width: 100%; }
  .kh-topic-filter label { width: 100%; }
  .kh-topic-filter input { flex: 1; min-width: 0; }
  .kh-logo img { width: 63px; height: 48px; }
  .kh-logo span { font-size: 12px; }
  .kh-actions { gap: 2px; }
  .kh-header .kh-primary, .kh-signin { font-size: 11px; padding: 8px 10px; min-height: 44px; white-space: normal; text-align: center; line-height: 1.25; }
  .kh-header .kh-mobile { padding: 8px; }
  .kh-grid { grid-template-columns: 1fr; gap: 14px; }
  .kh-column, .kh-column:first-child, .kh-column:last-child { border: 0; padding: 0; }
  .kh-column-head { padding: 12px 0; }
  .kh-heading { align-items: flex-start; }
  .kh-heading h2 { font-size: 25px; }
  .kh-heading p { font-size: 11px; line-height: 1.45; }
  .kh-controls { flex-direction: column-reverse; align-items: flex-end; }
  .kh-heading .kh-kicker { font-size: 8px; }
  .kh-header .kh-overview { font-size: 10px; }
  .kh-overview .kh-icon { width: 13px; height: 13px; }
  .kh-category summary { padding: 12px 1px; font-size: 14px; }
  .kh-list a { padding: 9px 10px; font-size: 13px; }
  .kh-list a .kh-icon { opacity: 1; }
  .kh-tabs { margin-bottom: 10px; }
  .kh-toolbar { padding-bottom: 6px; }
}
@media(max-width:360px) {
  .kh-primary .kh-icon { display: none; }
  .kh-actions .kh-primary, .kh-actions .kh-signin { padding-inline: 8px; }
}
@media(max-height:580px) {
  .kh-panel .kh-shell { overflow-y: auto; overscroll-behavior: contain; }
  .kh-scroll { flex: none; overflow-y: visible; }
}
@media(prefers-reduced-motion:reduce) { .kh-chevron { transition: none; } }
