/* Local site explorer: screen surfaces are isolated from the existing pages. */
@media screen {
  body.nx-site.ka-modal-open { overflow: hidden; }
  .nx-site .ka-dialog {
    --ka-line: #71827852;
    --ka-ink: #e6eee7;
    --ka-copy: #bccfc1;
    --ka-paper-ink: #283f31;
    --ka-paper-copy: #405744;
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    border: 1px solid #91a48a80;
    border-radius: 6px;
    background: #1b2821;
    color: var(--ka-ink);
    font: 400 16px/1.7 var(--nx-font, 'Manrope', system-ui, sans-serif);
    box-shadow: 0 35px 100px #0008, inset 0 1px #e0ead512;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #85967b #1b2821;
  }
  .nx-site .ka-dialog[open] { display: block; }
  .nx-site .ka-dialog::backdrop { background: #030c09b8; backdrop-filter: blur(5px); }
  .nx-site .ka-dialog [hidden] { display: none !important; }
  .nx-site .ka-dialog :is(div, section, article, header, footer, nav, li, button, input) { min-width: 0; box-sizing: border-box; }
  .nx-site .ka-dialog :is(button, input, a, kbd) { font-family: inherit; }
  .nx-site .ka-dialog :is(h2, h3, p) { text-wrap: pretty; overflow-wrap: anywhere; }
  .nx-site .ka-shell { min-width: 0; }
  .nx-site .ka-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 25px 28px 22px; }
  .nx-site .ka-brand { display: flex; align-items: start; gap: 16px; min-width: 0; }
  .nx-site .ka-brand > :first-child:not(div) {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 46px;
    place-items: center;
    margin-top: 3px;
    border: 1px solid #91a48b8a;
    border-radius: 3px;
    background: linear-gradient(140deg, #4a5c49, #273b2c);
    color: #e4ddc7;
    font-size: 27px;
    line-height: 1;
    box-shadow: inset 1px 1px #e2e7c724;
  }
  .nx-site .ka-brand > .ka-mark:first-child { position: relative; display: flex; align-items: center; justify-content: center; padding: 0; }
  .nx-site .ka-brand .ka-mark > span { position: absolute; top: 1px; right: 3px; color: #d5c39b; font-size: 13px; font-weight: 500; line-height: 1; }
  .nx-site .ka-brand > div > span { display: block; color: #cbbd9e; font-size: 10px; font-weight: 500; line-height: 1.8; letter-spacing: .1em; }
  .nx-site .ka-dialog .ka-brand h2 { margin: 6px 0 0; color: var(--ka-ink); font-size: 25px; font-weight: 550; letter-spacing: -.03em; line-height: 1.4; }
  .nx-site .ka-dialog .ka-brand p { margin: 9px 0 0; max-width: 62ch; color: var(--ka-copy); font-size: 16px; line-height: 1.7; }
  .nx-site .ka-head-actions { display: flex; flex: 0 0 auto; gap: 4px; align-items: center; }
  .nx-site .ka-head-actions button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid transparent; border-radius: 3px; background: none; color: #bfcebd; font-size: 12px; font-weight: 500; cursor: pointer; }
  .nx-site .ka-head-actions button[aria-pressed=true] { border-color: #91a08078; background: #3b4c35; color: #eef0d8; }
  .nx-site .ka-head-actions .ka-close { margin-left: 9px; border-color: #8a9c7e6b; color: #e0e7d3; font-size: 25px; font-weight: 400; line-height: 1; }

  .nx-site .ka-search { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 28px; padding: 6px 8px 6px 17px; min-height: 60px; border: 1px solid #7c927c; border-radius: 3px; background: #111f17; box-shadow: inset 0 2px 7px #0003; }
  .nx-site .ka-search > svg { width: 22px; height: 22px; color: #afc7b1; }
  .nx-site .ka-search input[type=search] { display: block; width: 100%; min-height: 44px; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: #e8f1e7; font-size: 16px; line-height: 1.65; appearance: none; box-shadow: none; }
  .nx-site .ka-search input[type=search]::placeholder { color: #b4c6b5; opacity: 1; }
  .nx-site .ka-search input[type=search]::-webkit-search-cancel-button { display: none; }
  .nx-site .ka-search input[type=search]:focus { outline: none; box-shadow: none; }
  .nx-site .ka-search:focus-within { border-color: #d4e6c7; outline: 2px solid #c1dcbf; outline-offset: 3px; }
  .nx-site .ka-clear { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 2px; background: none; color: #c9d6c3; font-size: 12px; line-height: 1.6; cursor: pointer; }
  .nx-site .ka-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; padding: 6px 28px 9px; }
  .nx-site .ka-suggestions button { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 9px 0; border: 0; border-radius: 1px; background: none; color: #bdcdbb; font-size: 12px; line-height: 1.65; text-align: left; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #84987b70; cursor: pointer; }
  .nx-site .ka-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 28px; }
  .nx-site .ka-filters button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 9px 15px; border: 1px solid #7a8e736b; border-radius: 3px; background: #26362b; color: #d0deca; font-size: 13px; font-weight: 500; line-height: 1.65; cursor: pointer; }
  .nx-site .ka-filters button[aria-pressed=true] { border-color: #c6b996; background: linear-gradient(125deg, #4a503a, #394a34); color: #f0e7ca; box-shadow: inset 0 1px #d7c9a84d; }
  .nx-site .ka-dialog .ka-result-status { margin: 14px 28px 18px; color: #c1d0bc; font-size: 13px; line-height: 1.75; }

  .nx-site .ka-body { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); align-items: stretch; border-top: 1px solid var(--ka-line); }
  .nx-site .ka-results-pane { min-width: 0; background: #17261d; }
  .nx-site .ka-results { display: block; max-height: 480px; margin: 0; padding: 12px; list-style: none; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #849b7d #17261d; scroll-padding-block: 9px; }
  .nx-site .ka-results > li { margin: 0; padding: 0; border: 0; list-style: none; }
  .nx-site .ka-results > li + li { margin-top: 6px; }
  .nx-site .ka-result {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: start;
    gap: 5px 14px;
    width: 100%;
    min-height: 100px;
    padding: 16px 15px;
    border: 1px solid #73876e3d;
    border-radius: 3px;
    background: #213126;
    color: #dbe6d4;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
  }
  .nx-site .ka-result .ka-result-kind { grid-column: 1; color: #c3b799; font-size: 10px; font-weight: 500; line-height: 1.7; letter-spacing: .06em; }
  .nx-site .ka-result strong { grid-column: 1; color: #e3ecd9; font-size: 16px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
  .nx-site .ka-result .ka-result-context { grid-column: 1; color: #becfba; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
  .nx-site .ka-result > :last-child:not(.ka-result-context):not(strong) { grid-column: 2; grid-row: 2; color: #b8cda9; font-size: 19px; line-height: 1.5; }
  .nx-site .ka-result[aria-pressed=true] { border-color: #bbae89; background: linear-gradient(120deg, #414e36, #30432d); box-shadow: inset 3px 0 #d5c4a0; }
  .nx-site .ka-result[aria-pressed=true] :is(.ka-result-kind, .ka-result-context) { color: #e0e1c3; }
  .nx-site .ka-dialog .ka-empty { padding: 30px 27px; }
  .nx-site .ka-dialog .ka-empty h3 { margin: 0 0 12px; color: #e2e9d4; font-size: 22px; font-weight: 550; letter-spacing: -.025em; line-height: 1.45; }
  .nx-site .ka-dialog .ka-empty p { margin: 0; color: #c0d0b7; font-size: 16px; line-height: 1.8; }
  .nx-site .ka-empty button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 20px; padding: 10px 13px; border: 1px solid #a5b58e8c; border-radius: 3px; background: #3c4b31; color: #e6ebd0; font-size: 14px; line-height: 1.65; cursor: pointer; }

  .nx-site .ka-preview { min-width: 0; padding: 29px 31px 27px; border-left: 1px solid #a2b0918a; background: linear-gradient(125deg, #e5e8d9, #d9dfcd 70%, #dfe4d3); color: var(--ka-paper-ink); box-shadow: inset 1px 1px #fff7; scroll-margin-block: 20px; }
  .nx-site .ka-preview ::selection { color: #1a301e; background: #abc298; }
  .nx-site .ka-preview-head { padding-bottom: 22px; border-bottom: 1px solid #74836759; }
  .nx-site .ka-preview .ka-kind { display: block; color: #4a6248; font-size: 11px; font-weight: 600; line-height: 1.8; letter-spacing: .06em; }
  .nx-site .ka-dialog .ka-preview h3 { margin: 11px 0 12px; color: #263f2d; font-size: 25px; font-weight: 600; letter-spacing: -.03em; line-height: 1.4; }
  .nx-site .ka-dialog .ka-preview-summary { margin: 0; color: #3d5540; font-size: 16px; line-height: 1.8; }
  .nx-site .ka-preview-facts { display: grid; gap: 0; margin: 0; padding: 0; }
  .nx-site .ka-preview-facts > div { min-width: 0; padding: 18px 0; border-bottom: 1px solid #74836745; }
  .nx-site .ka-preview-facts dt { margin: 0; color: #3d563f; font-size: 12px; font-weight: 650; line-height: 1.7; }
  .nx-site .ka-preview-facts dd { margin: 7px 0 0; color: #2e4834; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
  .nx-site .ka-dialog .ka-preview-note { margin: 20px 0 0; padding-left: 13px; border-left: 2px solid #879568; color: #465e42; font-size: 13px; line-height: 1.8; }
  .nx-site .ka-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 17px; margin: 20px 0 8px; }
  .nx-site .ka-dialog .ka-copy-status { margin: 6px 0 14px; color: #405a3e; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
  .nx-site .ka-dialog .ka-copy-status:empty { display: none; }
  .nx-site .ka-preview-actions :is(a, button),
  .nx-site .ka-back-results { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; padding: 11px 15px; border: 1px solid #4c6545; border-radius: 3px; background: #30452f; color: #eef0dd; font-size: 14px; font-weight: 500; line-height: 1.7; text-align: left; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
  .nx-site .ka-preview-actions .ka-open { justify-content: space-between; gap: 16px; }
  .nx-site .ka-preview-actions .ka-copy { min-height: 44px; padding: 10px 0; border-color: transparent; background: none; color: #3b563b; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #657e4e8c; }
  .nx-site .ka-back-results { display: none; }
  .nx-site .ka-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 15px 28px; border-top: 1px solid var(--ka-line); background: #17251c; color: #bcd0b7; font-size: 12px; line-height: 1.7; }
  .nx-site .ka-dialog .ka-footer p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
  .nx-site .ka-footer kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 25px; padding: 2px 7px; border: 1px solid #8c9d7873; border-radius: 3px; background: #2a3b27; color: #d4e0c7; font-size: 11px; line-height: 1.6; }
  .nx-site .ka-footer [data-ka-footer-close] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 9px 13px; border: 1px solid #8c9d7873; border-radius: 3px; background: #2a3b27; color: #dce7d0; font-size: 13px; font-weight: 500; line-height: 1.7; cursor: pointer; }
  .nx-site .ka-dialog :is(button, a, summary):focus-visible { outline: 2px solid #d1e9c6; outline-offset: 3px; }
  .nx-site .ka-result:focus-visible { outline-offset: -5px; }
  .nx-site .ka-preview :is(button, a):focus-visible { outline-color: #365e39; outline-offset: 4px; }
  .nx-site .ka-dialog .ka-preview :is(h3, article):focus-visible,
  .nx-site .ka-dialog .ka-preview:focus-visible { outline: 2px solid #365e39; outline-offset: -5px; }
  .nx-site .ka-dialog button:disabled { opacity: .65; cursor: not-allowed; }

  .nx-site .ka-launch { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 11px; border: 1px solid #728a7566; border-radius: 4px; background: #1a2d23; color: #cfdfca; font: 500 12px/1.6 var(--nx-font, 'Manrope', system-ui, sans-serif); cursor: pointer; }
  .nx-site .ka-launch > svg { flex: 0 0 17px; width: 17px; height: 17px; }
  .nx-site .ka-launch kbd { margin-left: 4px; padding: 2px 5px; border: 1px solid #73896d70; border-radius: 2px; color: #c5d4bc; background: #2b3c29; font-family: inherit; font-size: 10px; font-weight: 400; line-height: 1.6; white-space: nowrap; }
  .nx-site .ka-menu-launch { display: none; }
  .nx-site .ka-footer-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 9px 0; border: 0; border-radius: 2px; background: none; color: #ccdbc3; font: 400 13px/1.7 var(--nx-font, 'Manrope', system-ui, sans-serif); text-align: left; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #8ca07980; cursor: pointer; }
  .nx-site .ka-footer-launch svg { width: 17px; height: 17px; }
  .nx-site :is(.ka-launch, .ka-menu-launch, .ka-footer-launch):focus-visible { outline: 2px solid #d1e9c6; outline-offset: 4px; }

  @media (max-width: 1200px) {
    .nx-site .ka-launch kbd { display: none; }
    .nx-site .ka-launch { padding-inline: 10px; }
  }
  @media (max-width: 960px) {
    .nx-site .ka-dialog { width: calc(100% - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
    .nx-site .ka-head { gap: 18px; padding: 23px 23px 21px; }
    .nx-site .ka-brand { gap: 13px; }
    .nx-site .ka-dialog .ka-brand h2 { font-size: 23px; }
    .nx-site .ka-search { margin-inline: 23px; }
    .nx-site .ka-suggestions { padding-inline: 23px; gap: 0 15px; }
    .nx-site .ka-filters { padding-inline: 23px; }
    .nx-site .ka-dialog .ka-result-status { margin-inline: 23px; }
    .nx-site .ka-result { padding: 15px 13px; gap: 5px 9px; }
    .nx-site .ka-preview { padding: 26px 24px; }
    .nx-site .ka-dialog .ka-preview h3 { font-size: 24px; }
    .nx-site .ka-footer { padding-inline: 23px; }
  }
  @media (max-width: 760px) {
    .nx-site .ka-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 4px; }
    .nx-site .ka-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 15px 18px 19px; }
    .nx-site .ka-brand, .nx-site .ka-brand > div { display: contents; }
    .nx-site .ka-brand > :first-child:not(div), .nx-site .ka-brand > .ka-mark:first-child { display: none; }
    .nx-site .ka-brand > div > span { grid-column: 1; grid-row: 1; align-self: center; font-size: 9px; line-height: 1.7; letter-spacing: .08em; }
    .nx-site .ka-dialog .ka-brand h2 { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 23px; }
    .nx-site .ka-dialog .ka-brand p { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: 16px; }
    .nx-site .ka-head-actions { grid-column: 2; grid-row: 1; gap: 2px; }
    .nx-site .ka-head-actions .ka-close { margin-left: 4px; }
    .nx-site .ka-search { min-height: 56px; margin-inline: 18px; padding-left: 13px; gap: 9px; }
    .nx-site .ka-suggestions { gap: 0 16px; padding: 5px 18px 8px; }
    .nx-site .ka-suggestions button { font-size: 12px; }
    .nx-site .ka-filters { gap: 6px; padding-inline: 18px; }
    .nx-site .ka-filters button { padding: 9px 12px; font-size: 12px; }
    .nx-site .ka-dialog .ka-result-status { margin: 12px 18px 16px; }
    .nx-site .ka-body { grid-template-columns: minmax(0, 1fr); }
    .nx-site .ka-results { max-height: 280px; padding: 10px; }
    .nx-site .ka-result { min-height: 96px; padding: 15px; }
    .nx-site .ka-preview { padding: 26px 23px; border-left: 0; border-top: 1px solid #a2b0918a; scroll-margin-top: 0; }
    .nx-site .ka-preview-head { padding-bottom: 20px; }
    .nx-site .ka-dialog .ka-preview h3 { font-size: 24px; }
    .nx-site .ka-preview-facts > div { padding-block: 17px; }
    .nx-site .ka-preview-actions { gap: 8px 18px; }
    .nx-site .ka-back-results { display: inline-flex; justify-content: flex-start; min-height: 44px; width: 100%; margin-top: 18px; padding: 10px 0; border: 0; background: none; color: #3b563b; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #657e4e8c; }
    .nx-site .ka-footer { padding: 14px 18px; gap: 8px 13px; }
  }
  @media (max-width: 720px) {
    .nx-site .header-controls .ka-launch { display: none; }
    .nx-site #siteNav .ka-menu-launch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 10px; margin-top: 8px; border: 1px solid #8ba3816b; border-radius: 3px; background: #2b3a2b; color: #dfebd7; font: 500 16px/1.6 var(--nx-font, 'Manrope', system-ui, sans-serif); text-align: left; cursor: pointer; }
    .nx-site #siteNav .ka-menu-launch svg { width: 18px; height: 18px; }
  }
  @media (max-width: 400px) {
    .nx-site .ka-head { padding-inline: 14px; gap: 8px; }
    .nx-site .ka-brand > div > span { font-size: 8px; letter-spacing: .05em; }
    .nx-site .ka-dialog .ka-brand h2 { font-size: 22px; }
    .nx-site .ka-search { margin-inline: 14px; gap: 8px; grid-template-columns: 19px minmax(0, 1fr) auto; padding-left: 10px; }
    .nx-site .ka-search > svg { width: 19px; height: 19px; }
    .nx-site .ka-clear { padding-inline: 7px; font-size: 11px; }
    .nx-site .ka-suggestions, .nx-site .ka-filters { padding-inline: 14px; }
    .nx-site .ka-suggestions { gap: 0 13px; }
    .nx-site .ka-filters button { padding-inline: 10px; }
    .nx-site .ka-dialog .ka-result-status { margin-inline: 14px; }
    .nx-site .ka-result { padding: 14px 12px; }
    .nx-site .ka-preview { padding: 24px 18px; }
    .nx-site .ka-preview-actions { flex-direction: column; align-items: stretch; }
    .nx-site .ka-preview-actions .ka-copy { justify-content: flex-start; }
    .nx-site .ka-footer { padding-inline: 14px; }
  }
  @media (hover: hover) and (pointer: fine) {
    .nx-site .ka-head-actions button:hover, .nx-site .ka-clear:hover { background: #41513a; color: #f2efda; }
    .nx-site .ka-suggestions button:hover { color: #e4dfbf; text-decoration-color: #d0c29c; }
    .nx-site .ka-filters button:hover { border-color: #b4c09b; background-color: #405338; }
    .nx-site .ka-result:hover { border-color: #9bad82; background-color: #33492e; }
    .nx-site .ka-preview-actions .ka-open:hover { background: #405b38; border-color: #405b38; }
    .nx-site .ka-preview-actions .ka-copy:hover, .nx-site .ka-back-results:hover { color: #213f24; text-decoration-color: #213f24; }
    .nx-site .ka-launch:hover, .nx-site .ka-menu-launch:hover { background: #344b32; border-color: #a5bc94; color: #ebefdb; }
    .nx-site .ka-footer-launch:hover { color: #e2ddbf; text-decoration-color: #cebc8d; }
    .nx-site .ka-footer [data-ka-footer-close]:hover { border-color: #b2c09a; background: #3c5133; color: #eff1d9; }
  }
  @media (prefers-reduced-motion: reduce) {
    .nx-site .ka-dialog *, .nx-site .ka-dialog *::before, .nx-site .ka-dialog *::after,
    .nx-site :is(.ka-launch, .ka-menu-launch, .ka-footer-launch) { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
}
@media print {
  .nx-site .ka-dialog, .nx-site .ka-launch, .nx-site .ka-menu-launch, .nx-site .ka-footer-launch { display: none !important; }
  .nx-site .ka-dialog::backdrop { display: none; background: none; backdrop-filter: none; }
  body.nx-site.ka-modal-open { overflow: visible; }
}
