/* Korthos sitewide dropdown interaction authority.
   Loaded late by site-menu.js so historical page styles cannot repaint square
   wrapper focus or stack a second highlight on the selected option. */
html body :is(.fm-filter-group,.fm-k-select,.ms-control,.ms-k-select,.gm-control,.gm-k-select,.ops-k-select,.correction-k-select,.sci-cb-wrap,.markets-sort-stack,.markets-select-shell,.timeline-event-filter):is(:hover,:focus,:focus-visible,:focus-within,.is-open) {
  outline:0 !important;
  box-shadow:none !important;
}
html body :is(.fm-filter-group,.ms-control,.gm-control,.markets-sort-stack,.heatmap-country-control,.timeline-event-filter):is(:hover,:focus-within) {
  background:transparent !important;
}
html body :is(.fm-k-select__button,.ms-k-select__button,.gm-k-select__button,.ops-k-select__button,.correction-k-select__button,.sci-cb-btn,.markets-select-button,.timeline-event-filter__button,.product-spec-context-filter__button):is(:focus,:focus-visible),
html body :is(.fm-k-select.is-open .fm-k-select__button,.ms-k-select.is-open .ms-k-select__button,.gm-k-select.is-open .gm-k-select__button,.ops-k-select.is-open .ops-k-select__button,.correction-k-select.is-open .correction-k-select__button,.sci-cb-btn[aria-expanded="true"],.markets-select-shell.is-open .markets-select-button,.timeline-event-filter__button[aria-expanded="true"],.product-spec-context-filter__button[aria-expanded="true"]) {
  outline:0 !important;
  box-shadow:inset 0 0 0 2px rgba(var(--mono-signal-5-rgb, 47,104,77), 0.18) !important;
}
/* Page-qualified locks beat older page-qualified !important rules. */
html body.page-market-signals.page-market-signals .ms-k-select__button:is(:focus,:focus-visible),
html body.page-market-signals.page-market-signals .ms-k-select.is-open .ms-k-select__button,
html body.page-funding-monitor.page-funding-monitor .fm-k-select__button:is(:focus,:focus-visible),
html body.page-funding-monitor.page-funding-monitor .fm-k-select.is-open .fm-k-select__button,
html body.page-geography.page-geography .gm-k-select__button:is(:focus,:focus-visible),
html body.page-geography.page-geography .gm-k-select.is-open .gm-k-select__button,
html body.page-humanoid-operations.page-humanoid-operations .ops-k-select__button:is(:focus,:focus-visible),
html body.page-humanoid-operations.page-humanoid-operations .ops-k-select.is-open .ops-k-select__button,
html body.page-market-signals .ms-k-select__button:is(:focus,:focus-visible),
html body.page-market-signals .ms-k-select.is-open .ms-k-select__button,
html body.page-funding-monitor .fm-k-select__button:is(:focus,:focus-visible),
html body.page-funding-monitor .fm-k-select.is-open .fm-k-select__button,
html body.page-geography .gm-k-select__button:is(:focus,:focus-visible),
html body.page-geography .gm-k-select.is-open .gm-k-select__button,
html body.page-humanoid-operations .ops-k-select__button:is(:focus,:focus-visible),
html body.page-humanoid-operations .ops-k-select.is-open .ops-k-select__button,
html body.page-markets .fm-k-select__button:is(:focus,:focus-visible),
html body.page-markets .fm-k-select.is-open .fm-k-select__button,
html body.page-markets-overview .fm-k-select__button:is(:focus,:focus-visible),
html body.page-markets-overview .fm-k-select.is-open .fm-k-select__button {
  outline:0 !important;
  box-shadow:inset 0 0 0 2px rgba(var(--mono-signal-5-rgb, 47,104,77), 0.18) !important;
}
html body :is(.fm-k-select__menu,.ms-k-select__menu,.gm-k-select__menu,.ops-k-select__menu,.correction-k-select__menu,.sci-cb-popup,.markets-select-menu,.timeline-event-filter__menu,.product-spec-context-filter__menu) {
  border:0 !important;
  border-radius:16px !important;
  outline:0 !important;
  background-clip:padding-box !important;
  box-shadow:0 20px 46px -26px rgba(20,20,16,.46) !important;
}
html body.page-market-signals .ms-k-select__menu,
html body.page-funding-monitor .fm-k-select__menu,
html body.page-geography .gm-k-select__menu,
html body.page-humanoid-operations .ops-k-select__menu,
html body.page-markets .fm-k-select__menu,
html body.page-markets-overview .fm-k-select__menu {
  border:0 !important;
  border-radius:16px !important;
  outline:0 !important;
}
html body :is(.fm-k-select__option,.ms-k-select__option,.gm-k-select__option,.ops-k-select__option,.correction-k-select__option,.sci-cb-item,.markets-select-option,.product-spec-context-filter__option):focus-visible {
  outline:0 !important;
  box-shadow:none !important;
}
html body :is(.fm-k-select__option[aria-selected="true"],.ms-k-select__option[aria-selected="true"],.gm-k-select__option[aria-selected="true"],.ops-k-select__option[aria-selected="true"],.correction-k-select__option[aria-selected="true"],.sci-cb-item.is-selected,.markets-select-option[aria-selected="true"],.product-spec-context-filter__option[aria-selected="true"]):is(:hover,:focus,:focus-visible) {
  background:rgba(var(--mono-signal-wash-rgb, 225,238,229), 1) !important;
  color:rgba(var(--mono-signal-5-rgb, 40,90,67), 1) !important;
  outline:0 !important;
  box-shadow:none !important;
}

/* Remaining public native selects are progressively enhanced by site-menu.js.
   This is the only way to control their open option windows cross-browser. */
html body .korthos-select {
  --korthos-select-width:100%;
  position:relative !important;
  display:inline-flex !important;
  width:var(--korthos-select-width) !important;
  max-width:100% !important;
  min-width:0 !important;
  vertical-align:middle !important;
  isolation:isolate;
}
html body .korthos-select__native {
  position:absolute !important;
  inline-size:1px !important;
  block-size:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
  border:0 !important;
  opacity:0 !important;
  pointer-events:none !important;
}
html body .korthos-select__button {
  appearance:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  width:100% !important;
  min-width:0 !important;
  height:42px !important;
  padding:0 13px !important;
  border:1px solid rgba(var(--mono-ink-rgb, 23,23,19), 0.12) !important;
  border-radius:12px !important;
  background:rgba(var(--mono-paper-rgb, 251,250,247), 1) !important;
  color:rgba(var(--mono-ink-rgb, 29,29,25), 1) !important;
  box-shadow:none !important;
  font:650 13px/1 Inter,Arial,sans-serif !important;
  letter-spacing:-.012em !important;
  text-align:left !important;
  cursor:pointer !important;
}
html body .korthos-select__value {
  display:block !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
html body .korthos-select__caret {
  flex:0 0 8px !important;
  width:8px !important;
  height:8px !important;
  border-right:1.5px solid rgba(var(--mono-signal-5-rgb, 52,104,78), 1) !important;
  border-bottom:1.5px solid rgba(var(--mono-signal-5-rgb, 52,104,78), 1) !important;
  transform:rotate(45deg) translateY(-2px) !important;
  transform-origin:center !important;
  transition:transform 130ms ease !important;
}
html body .korthos-select.is-open .korthos-select__caret {
  transform:rotate(225deg) translate(-1px,-1px) !important;
}
html body .korthos-select__button:hover,
html body .korthos-select__button:focus-visible,
html body .korthos-select.is-open .korthos-select__button {
  border-color:rgba(var(--mono-signal-5-rgb, 47,104,77), 0.3) !important;
  outline:0 !important;
  box-shadow:inset 0 0 0 1px rgba(var(--mono-signal-5-rgb, 47,104,77), 0.16) !important;
}
html body .korthos-select__menu {
  position:absolute !important;
  z-index:2147482500 !important;
  top:calc(100% + 7px) !important;
  left:0 !important;
  display:grid !important;
  gap:2px !important;
  width:max(100%,max-content) !important;
  min-width:100% !important;
  max-width:min(360px,calc(100vw - 24px)) !important;
  max-height:min(360px,calc(100vh - 32px)) !important;
  overflow:auto !important;
  padding:6px !important;
  border:1px solid rgba(var(--mono-ink-rgb, 23,23,19), 0.1) !important;
  border-radius:14px !important;
  background:rgba(var(--mono-paper-rgb, 251,250,247), 1) !important;
  color:rgba(var(--mono-ink-rgb, 34,34,30), 1) !important;
  box-shadow:0 18px 44px -24px rgba(20,20,16,.42) !important;
  overscroll-behavior:contain !important;
}
html body .korthos-select__menu[hidden] { display:none !important; }
html body .korthos-select__option {
  appearance:none !important;
  display:block !important;
  width:100% !important;
  min-height:38px !important;
  padding:9px 11px !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  color:rgba(var(--mono-ink-rgb, 42,41,36), 1) !important;
  box-shadow:none !important;
  font:580 13px/1.25 Inter,Arial,sans-serif !important;
  letter-spacing:-.006em !important;
  text-align:left !important;
  white-space:normal !important;
  cursor:pointer !important;
}
html body .korthos-select__option:hover,
html body .korthos-select__option.is-active {
  background:rgba(var(--mono-soft-rgb, 240,238,232), 1) !important;
  color:rgba(var(--mono-ink-rgb, 30,30,26), 1) !important;
  outline:0 !important;
}
html body .korthos-select__option.is-selected,
html body .korthos-select__option[aria-selected="true"] {
  background:rgba(var(--mono-signal-wash-rgb, 225,238,229), 1) !important;
  color:rgba(var(--mono-signal-5-rgb, 40,90,67), 1) !important;
  font-weight:700 !important;
}
html body .korthos-select__option:disabled {
  opacity:.42 !important;
  cursor:not-allowed !important;
}
html body .korthos-select__group {
  padding:9px 11px 5px !important;
  color:rgba(var(--mono-secondary-rgb, 128,126,117), 1) !important;
  font:700 10px/1.2 Inter,Arial,sans-serif !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}
html body label.has-korthos-select > .sort-value { display:none !important; }

/* One calm, legible treatment for chart and hover surfaces that historically
   shipped their own black, square or translucent tooltip chrome. */
html body :is(
  [role="tooltip"],
  #chartjs-tooltip,
  .korthos-hover-tooltip,
  .gm-tooltip,
  .gm-segment-tooltip,
  .segment-heatmap-tooltip,
  .chart-timeline-tooltip,
  .fm-seg-taxonomy-popover,
  .fm-country-map__tooltip,
  .graph-tooltip,
  .home-coverage-map__tooltip,
  .avf-tooltip,
  .supplier-table__edge-tooltip,
  .sci-focus-edge-tooltip,
  .sci-focus-node-tooltip,
  .sci-geo-intel__tooltip,
  .company-context__tooltip,
  .company-trajectory__tooltip,
  .map-control-btn-tooltip
) {
  border:1px solid rgba(var(--mono-ink-rgb, 23,23,19), 0.1) !important;
  border-radius:14px !important;
  background:rgba(var(--mono-paper-rgb, 251,250,247), 0.98) !important;
  color:rgba(var(--mono-ink-rgb, 36,35,31), 1) !important;
  box-shadow:0 18px 42px -24px rgba(20,20,16,.44) !important;
  font-family:Inter,Arial,sans-serif !important;
  text-shadow:none !important;
  backdrop-filter:blur(10px) !important;
}
html body :is(
  [role="tooltip"],
  #chartjs-tooltip,
  .korthos-hover-tooltip,
  .gm-tooltip,
  .gm-segment-tooltip,
  .segment-heatmap-tooltip,
  .chart-timeline-tooltip,
  .fm-seg-taxonomy-popover,
  .fm-country-map__tooltip,
  .graph-tooltip,
  .home-coverage-map__tooltip,
  .avf-tooltip,
  .supplier-table__edge-tooltip,
  .sci-focus-edge-tooltip,
  .sci-focus-node-tooltip,
  .sci-geo-intel__tooltip,
  .company-context__tooltip,
  .company-trajectory__tooltip
) :is(p,span,div,strong,b,small) {
  color:inherit !important;
  text-shadow:none !important;
}

@media (max-width:768px) {
  html body .korthos-select__button { height:40px !important; padding-inline:11px !important; }
  html body .korthos-select__menu {
    width:max(100%,min(280px,calc(100vw - 32px))) !important;
    max-width:calc(100vw - 24px) !important;
  }
  html body .korthos-select__option { min-height:42px !important; }
}

@media (prefers-reduced-motion:reduce) {
  html body .korthos-select__caret { transition:none !important; }
}
/* Research directory mobile selects are narrow toolbar controls. Their menus
   use a readable bounded popover and do not reserve space for a tiny caret. */
@media (max-width:720px) {
  html body.product-research-page main.main .toolbar #sort-wrapper.sort .korthos-select__button {
    padding:0 10px !important;
  }

  html body.product-research-page main.main .toolbar #sort-wrapper.sort .korthos-select__caret {
    display:none !important;
  }

  html body.product-research-page main.main .toolbar #sort-wrapper.sort .korthos-select__menu {
    right:auto !important;
    left:0 !important;
    width:220px !important;
    min-width:220px !important;
    max-width:calc(100vw - 40px) !important;
  }

  html body.research-artifact-page.supplier-directory-page main .research-toolbar .field--sort .research-select__button {
    padding:0 10px !important;
  }

  html body.research-artifact-page.supplier-directory-page main .research-toolbar .field--sort .research-select__button::after {
    content:none !important;
    display:none !important;
  }

  html body.research-artifact-page.supplier-directory-page main .research-toolbar .field--sort .research-select__menu {
    right:auto !important;
    left:0 !important;
    width:180px !important;
    min-width:180px !important;
    max-width:calc(100vw - 40px) !important;
  }

  html body.research-artifact-page.supplier-directory-page main .research-toolbar .field--sort .research-select__option:focus,
  html body.research-artifact-page.supplier-directory-page main .research-toolbar .field--sort .research-select__option:focus-visible {
    outline:0 !important;
    outline-offset:0 !important;
    box-shadow:none !important;
  }
}
/* Shared menus also load on standalone accounts and asynchronously mounted forms. */
html body .korthos-select.is-open {z-index:100!important;}
html body .korthos-select__button:disabled {opacity:.5!important;cursor:default!important;}
html body.pn-page .korthos-select,
html body .pn-dialog .korthos-select {width:100%!important;}
html body .korthos-select__menu[popover] {
  position:fixed!important;inset:auto!important;
  top:var(--select-menu-top,0px)!important;left:var(--select-menu-left,0px)!important;
  box-sizing:border-box!important;margin:0!important;
  width:var(--select-menu-width,220px)!important;min-width:0!important;
  max-width:calc(100vw - 16px)!important;max-height:var(--select-menu-height,320px)!important;
}
html body .korthos-select__menu::backdrop {background:transparent;pointer-events:none;}
html[data-mono] body .korthos-select__menu.korthos-select__menu,
html body .korthos-select__menu.korthos-select__menu {
  padding:4px!important;gap:0!important;border-radius:6px!important;
  border:1px solid rgb(var(--mono-line-rgb,220 220 220))!important;
  background:rgb(var(--mono-paper-rgb,255 255 255))!important;
  color:rgb(var(--mono-ink-rgb,25 25 25))!important;
  box-shadow:0 6px 20px rgb(0 0 0 / 10%)!important;scrollbar-width:thin;
}
html[data-mono] body .korthos-select__option.korthos-select__option,
html body .korthos-select__option.korthos-select__option {
  min-height:34px!important;padding:7px 10px!important;border-radius:3px!important;
  font-size:13px!important;line-height:1.4!important;font-weight:400!important;
  color:inherit!important;background:transparent!important;
}
html[data-mono] body .korthos-select__option.korthos-select__option:is(:hover,.is-active,[aria-selected="true"]),
html body .korthos-select__option.korthos-select__option:is(:hover,.is-active,[aria-selected="true"]) {
  background:rgb(var(--mono-ink-rgb,25 25 25) / 7%)!important;color:inherit!important;
}
html body .korthos-select__button.korthos-select__button {
  border-radius:6px!important;outline:0!important;box-shadow:none!important;
  background:rgb(var(--mono-paper-rgb,255 255 255))!important;color:rgb(var(--mono-ink-rgb,25 25 25))!important;
  border-color:rgb(var(--mono-line-rgb,220 220 220))!important;font-weight:500!important;
}
html body .korthos-select__caret {border-color:currentColor!important;}
@media(max-width:600px){html body .korthos-select__option.korthos-select__option{min-height:40px!important;}}

html body .korthos-select[data-select-hidden] {display:none!important;}
