/* Korthos mobile authority.
   Loaded last by site-menu.js so page-local legacy header rules cannot move
   branding or controls between routes. */

@media (max-width: 768px) {
  :root {
    --site-header-h: 64px !important;
    --korthos-mobile-gutter: 12px;
    --korthos-mobile-canvas: #efeee9;
    --korthos-mobile-module: #faf9f7;
    --korthos-mobile-inset: #f3f2ed;
    --korthos-mobile-ink: #171713;
  }

  html {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    scroll-padding-top: 64px !important;
  }

  body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    overflow-x: clip !important;
  }

  body.has-home-ticker { padding-top: 0 !important; }
  .home-ticker-wrap.is-visible { display: none !important; }

  html body header.site-header.site-header.site-header,
  html body.has-home-ticker header.site-header.site-header.site-header {
    position: relative !important;
    inset: auto !important;
    z-index: 999999 !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 10px var(--korthos-mobile-gutter) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--korthos-mobile-canvas) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html body header.site-header.site-header.site-header::before,
  html body header.site-header.site-header.site-header::after { display: none !important; }

  html body header.site-header .home-logo,
  html body header.site-header > a:first-child {
    position: static !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    background: transparent !important;
    transform: none !important;
  }

  html body header.site-header .home-logo-text {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--korthos-mobile-ink) !important;
    font-family: "Korthos Bebas", "Bebas Neue", Impact, sans-serif !important;
    font-size: 31px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  html body header.site-header nav,
  html body header.site-header .site-header-nav-desktop { display: none !important; }

  html body header.site-header .home-header-right {
    position: static !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    transform: none !important;
  }

  html body header.site-header .home-header-actions {
    position: static !important;
    display: flex !important;
    width: auto !important;
    height: 44px !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  html body header.site-header :is(.home-site-search-trigger,.home-menu-toggle) {
    position: static !important;
    display: inline-flex !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--korthos-mobile-module) !important;
    box-shadow: none !important;
    color: var(--korthos-mobile-ink) !important;
    transform: none !important;
  }

  html body header.site-header :is(.home-site-search-trigger,.home-menu-toggle):is(:hover,:focus-visible,:active) {
    border: 0 !important;
    outline: 0 !important;
    background: #fffefa !important;
    box-shadow: 0 0 0 3px rgba(47,107,76,.08) !important;
    transform: none !important;
  }

  html body header.site-header .home-site-search-trigger svg {
    width: 19px !important;
    height: 19px !important;
  }

  html body header.site-header .home-menu-toggle {
    flex-direction: column !important;
  }

  html body header.site-header .home-menu-toggle__bar {
    width: 19px !important;
    height: 1.5px !important;
    border-radius: 999px !important;
    background: currentColor !important;
  }

  .home-menu-sheet {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147482000 !important;
  }

  .home-menu-sheet__backdrop {
    background: rgba(17,17,13,.34) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  .home-menu-sheet__panel {
    top: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: min(360px, calc(100vw - 16px)) !important;
    max-width: none !important;
    height: calc(100dvh - 16px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: var(--korthos-mobile-canvas) !important;
    box-shadow: 0 24px 70px rgba(17,17,13,.22) !important;
    overflow: hidden auto !important;
  }

  .home-menu-sheet__top {
    min-height: 68px !important;
    padding: 12px 12px 8px 18px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .home-menu-sheet__title {
    color: var(--korthos-mobile-ink) !important;
    font: 740 22px/1 Inter,Arial,sans-serif !important;
    letter-spacing: -.025em !important;
    text-transform: none !important;
  }

  .home-menu-sheet__close {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--korthos-mobile-module) !important;
    color: var(--korthos-mobile-ink) !important;
    font: 400 25px/1 Inter,Arial,sans-serif !important;
  }

  .home-menu-sheet__nav {
    display: grid !important;
    gap: 8px !important;
    padding: 8px 12px 20px !important;
  }

  .home-menu-sheet__nav > :is(a.home-menu-sheet__home,.home-menu-sheet__search),
  .home-menu-sheet__summary {
    display: flex !important;
    width: 100% !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: var(--korthos-mobile-module) !important;
    color: var(--korthos-mobile-ink) !important;
    font: 680 14px/1.2 Inter,Arial,sans-serif !important;
    letter-spacing: -.008em !important;
    text-align: left !important;
    text-transform: none !important;
  }

  .home-menu-sheet__nav > :is(a.home-menu-sheet__home,.home-menu-sheet__search):is(:hover,:focus-visible),
  .home-menu-sheet__summary:is(:hover,:focus-visible) {
    outline: 0 !important;
    background: #fffefa !important;
  }

  .home-menu-sheet__nav > a.home-menu-sheet__home.home-menu-sheet__home--here,
  .home-menu-sheet__section--current > .home-menu-sheet__summary {
    background: var(--korthos-mobile-ink) !important;
    color: #fffdfa !important;
  }

  .home-menu-sheet__section {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 17px !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  .home-menu-sheet__summary::after {
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    background: var(--korthos-mobile-inset) !important;
    color: rgba(23,23,19,.58) !important;
    font-size: 16px !important;
  }

  .home-menu-sheet__section--current > .home-menu-sheet__summary::after {
    background: rgba(255,255,255,.14) !important;
    color: #fffdfa !important;
  }

  .home-menu-sheet__section[open] > .home-menu-sheet__summary {
    border: 0 !important;
    background: var(--korthos-mobile-module) !important;
    color: var(--korthos-mobile-ink) !important;
  }

  .home-menu-sheet__section-body {
    display: grid !important;
    gap: 4px !important;
    margin: 4px 0 0 !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: var(--korthos-mobile-module) !important;
  }

  .home-menu-sheet__section-body a,
  .home-menu-sheet__section-body a.home-menu-sheet__link--secondary {
    display: flex !important;
    min-height: 42px !important;
    align-items: center !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: rgba(23,23,19,.72) !important;
    font: 620 13px/1.25 Inter,Arial,sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .home-menu-sheet__section-body a:is(:hover,:focus-visible),
  .home-menu-sheet__section-body a.home-menu-sheet__link--current {
    outline: 0 !important;
    background: var(--korthos-mobile-inset) !important;
    color: var(--korthos-mobile-ink) !important;
  }

  /* Directory mobile contract. Keep the four data directories on the same
     drawer geometry regardless of their older page-local breakpoints. */
  body:is(.company-directory-page,.product-directory-page,.supplier-directory-page,.component-directory-page) {
    min-height: 100dvh !important;
    overflow-x: clip !important;
    background: var(--korthos-mobile-canvas) !important;
  }

  body:is(.company-directory-page,.product-directory-page,.supplier-directory-page,.component-directory-page)
  :is(.ecosystem-directory-shell,.product-directory-shell,.supplier-directory-shell,.component-directory-shell) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body:is(.company-directory-page,.product-directory-page,.supplier-directory-page,.component-directory-page)
  :is(.ecosystem-main,.product-main,.supplier-main,.component-main,.directory-main) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body.company-directory-page #eco-filter-toggle,
  body:is(.product-directory-page,.supplier-directory-page,.component-directory-page) #filter-drawer-toggle {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--korthos-mobile-ink) !important;
    box-shadow: none !important;
    color: #fffdfa !important;
    font: 680 14px/1 Inter,Arial,sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body.company-directory-page .ecosystem-sidebar,
  html body.product-directory-page.product-directory-page .product-directory-shell > .product-sidebar,
  html body.supplier-directory-page.supplier-directory-page .supplier-directory-shell > .supplier-sidebar,
  html body.component-directory-page.component-directory-page .component-directory-shell > .component-sidebar {
    position: fixed !important;
    inset: 64px auto 0 0 !important;
    z-index: 10001 !important;
    display: block !important;
    width: min(360px, calc(100vw - 12px)) !important;
    max-width: none !important;
    height: calc(100dvh - 64px) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 18px 16px 30px !important;
    border: 0 !important;
    border-radius: 0 24px 24px 0 !important;
    background: var(--korthos-mobile-module) !important;
    box-shadow: 18px 0 52px rgba(17,17,13,.18) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    transform: translate3d(-105%,0,0) !important;
    transition: transform .2s ease !important;
  }

  html body.company-directory-page.ecosystem-filter-open .ecosystem-sidebar,
  html body.product-directory-page.product-directory-page.filter-drawer-open .product-directory-shell > .product-sidebar,
  html body.supplier-directory-page.supplier-directory-page.filter-drawer-open .supplier-directory-shell > .supplier-sidebar,
  html body.component-directory-page.component-directory-page.filter-drawer-open .component-directory-shell > .component-sidebar {
    transform: translate3d(0,0,0) !important;
  }

  body:is(.company-directory-page.ecosystem-filter-open,.product-directory-page.filter-drawer-open,.supplier-directory-page.filter-drawer-open,.component-directory-page.filter-drawer-open)::after {
    content: "" !important;
    position: fixed !important;
    inset: 64px 0 0 !important;
    z-index: 10000 !important;
    display: block !important;
    background: rgba(17,17,13,.28) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
  }

  html body.company-directory-page .ecosystem-sidebar__top,
  html body.product-directory-page .product-sidebar__top,
  html body.supplier-directory-page .supplier-sidebar__top,
  html body.component-directory-page .component-sidebar__top {
    position: sticky !important;
    top: -18px !important;
    z-index: 2 !important;
    display: flex !important;
    min-height: 62px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: -18px -16px 12px !important;
    padding: 18px 16px 10px !important;
    border: 0 !important;
    background: var(--korthos-mobile-module) !important;
  }

  body.company-directory-page #eco-filter-close,
  body:is(.product-directory-page,.supplier-directory-page,.component-directory-page) #filter-drawer-close {
    display: inline-flex !important;
    min-width: 64px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--korthos-mobile-inset) !important;
    color: var(--korthos-mobile-ink) !important;
    font: 650 13px/1 Inter,Arial,sans-serif !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
  }

  body:is(.company-directory-page,.product-directory-page,.supplier-directory-page,.component-directory-page)
  :is(.directory-toolbar,.directory__toolbar,.product-searchbar,.supplier-searchbar,.component-searchbar) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
  }

  body:is(.company-directory-page,.product-directory-page,.supplier-directory-page,.component-directory-page)
  :is(input,select,button,.directory-search,.directory-sort,.sort-wrapper) {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  html body.company-directory-page .eco-card-grid,
  html body.product-directory-page #directory-results.directory__results:not(.directory__results--table),
  html body.supplier-directory-page #card-grid.card-grid,
  html body.component-directory-page #directory-results.directory__results:not(.directory__results--table) {
    grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Company and product profile chrome: keep actions readable and prevent the
     active horizontal tab rail from squeezing adjacent controls. */
  body:has(main.ecosystem-profile-page) .profile-submit-trigger-wrap {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  body:has(main.ecosystem-profile-page) .profile-submit-trigger {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--korthos-mobile-ink) !important;
    color: #fffdfa !important;
    font: 700 12px/1 Inter,Arial,sans-serif !important;
    letter-spacing: .045em !important;
    text-decoration: none !important;
  }

  body:has(main.ecosystem-profile-page) .profile-watch-slot,
  body:has(main.ecosystem-profile-page) .profile-watch-slot .k-watch {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
  }

  body:has(main.ecosystem-profile-page) .profile-watch-slot .k-watch {
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
  }

  body:has(main.ecosystem-profile-page) .profile-watch-slot .k-watch__label,
  body:has(main.ecosystem-profile-page) .profile-watch-slot .k-watch__count {
    display: none !important;
  }

  body:has(main.ecosystem-profile-page) .profile-watch-slot .k-watch__icon {
    display: block !important;
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    transform: none !important;
  }

  /* Beat the late profile-specific density layers on both profile families. */
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-watch-slot .k-watch,
  html body.page-product main#product-main.ecosystem-profile-page .profile-watch-slot .k-watch {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-watch-slot .k-watch__icon,
  html body.page-product main#product-main.ecosystem-profile-page .profile-watch-slot .k-watch__icon {
    font-size: 19px !important;
    line-height: 1 !important;
  }

  body:has(main.ecosystem-profile-page) .profile-tab-rail {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    scroll-padding-inline: 16px !important;
    overscroll-behavior-inline: contain !important;
  }

  /* Profile tabs: compact swipeable pills shared by company and product profiles. */
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail {
    position: relative !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 6px !important;
    border: 0 !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail::-webkit-scrollbar,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail::-webkit-scrollbar-track,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail::-webkit-scrollbar-track {
    background: transparent !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail::-webkit-scrollbar-button,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail::-webkit-scrollbar-thumb,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail::-webkit-scrollbar-thumb {
    display: none !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__inner,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__inner {
    gap: 6px !important;
    padding: 0 16px 0 0 !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__tab,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__tab {
    min-height: 36px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    margin: 0 !important;
    background: transparent !important;
    color: #5f5b54 !important;
    font-size: 9px !important;
    letter-spacing: .055em !important;
    line-height: 1 !important;
    scroll-snap-align: start !important;
    scroll-margin-inline: 16px !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__tab--active,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__tab--active {
    border: 0 !important;
    background: #e5e3dc !important;
    color: #11100e !important;
  }

  html body[data-company-subpage="timeline"] main#profile-main.profile.ecosystem-profile-page .company-trajectory__cadence {
    padding-inline: 16px !important;
    box-sizing: border-box !important;
  }

  body:is([data-company-subpage="operations"],[data-company-subpage="deployments"])
  .profile-operations-card__tags {
    display: flex !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
  }

  body:is([data-company-subpage="operations"],[data-company-subpage="deployments"])
  .profile-operations-card__label {
    display: inline-flex !important;
    min-height: 23px !important;
    align-items: center !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font-size: 8.5px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  /* Profile copy modules must size from their content on narrow screens. */
  html body.page-product main#product-main.ecosystem-profile-page :is(
    .product-overview-card--facts,
    .product-overview-card--summary,
    .profile-overview-body-card,
    .specsBlock,
    .variantsBlock
  ),
  html body[data-company-subpage] main#profile-main.ecosystem-profile-page :is(
    .company-overview-card--facts,
    .company-overview-card--summary,
    .profile-overview-body-card
  ) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html body.page-product main#product-main.ecosystem-profile-page :is(
    .product-hero-overview-stack,
    .product-overview-details
  ),
  html body[data-company-subpage] main#profile-main.ecosystem-profile-page :is(
    .company-overview-summary-top,
    .company-overview-details
  ) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html body:has(main.ecosystem-profile-page) main.ecosystem-profile-page :is(
    .product-overview-detail-value,
    .company-overview-detail-value,
    .notesText,
    .profile-overview-body-card
  ) {
    overflow-wrap: anywhere !important;
  }

  /* Keep the compact identity facts clear of the rounded card edge. */
  html body.page-product[data-product-subpage="overview"]
  main#product-main.profile.ecosystem-profile-page .product-overview-card--facts,
  html body[data-company-subpage="overview"]
  main#profile-main.profile.ecosystem-profile-page .company-overview-card--facts {
    box-sizing: border-box !important;
    padding-inline: 16px !important;
  }
}

/* Final mobile Company Supply hierarchy: one aligned surface, a compact
   supplier summary, and no permanently highlighted nested rows. */
html body .profile-supply-info-control {
  display: none !important;
}

html body[data-company-subpage="supply"] .profile__header .profile-supply-info-control {
  display: inline-flex !important;
}

@media (max-width: 720px) {
  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #supply-chain-intelligence {
    margin-top: 14px !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-profile-card {
    margin: 0 0 12px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-profile-head {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0 10px !important;
    margin: 0 0 10px !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-profile-head__main {
    display: contents !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-profile-head__icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex-basis: 34px !important;
    border-radius: 10px !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-profile-head__eyebrow {
    display: none !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-profile-head__title {
    font-size: 17px !important;
    line-height: 1.12 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-profile-head__meta {
    grid-column: 2 !important;
    margin: 3px 0 0 !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-profile-lead {
    margin: 0 0 11px !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-signals--summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-signals--summary .company-supply-signal {
    min-width: 0 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-signals--summary .company-supply-signal__label,
  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-field__label {
    margin-bottom: 3px !important;
    font-size: 7.5px !important;
    letter-spacing: .055em !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-signals--summary :is(.company-supply-signal__value,.company-supply-signal__value-list) {
    font-size: 9px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-field-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px 14px !important;
    margin: 0 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-field {
    min-width: 0 !important;
    padding: 0 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-supply-field__value {
    font-size: 9.5px !important;
    line-height: 1.38 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-sci-tabs,
  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-sci-tabpanel,
  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-sci__sci-link {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .sci-supply-group.company-sci-layer-block {
    margin: 0 !important;
    padding: 14px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .sci-supply-group.company-sci-layer-block .sci-supply-group__head,
  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .sci-supply-group.company-sci-layer-block .company-supply-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-sci__sci-link {
    margin-top: 14px !important;
    padding: 0 !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .company-sci__sci-link a {
    display: inline-flex !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
}

/* Mobile interaction authority for profile evidence surfaces.  Keep the
   compact visual treatment, but give navigation, filters and evidence links
   reliable touch geometry and readable labels. */
@media (max-width: 640px) {
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail {
    scroll-padding-inline: 18px !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__inner,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__inner {
    min-height: 44px !important;
    align-items: stretch !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__tab,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__tab {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    scroll-margin-inline: 18px !important;
  }

  /* Header actions retain their 34px visual footprint while their hit area is
     enlarged. This avoids crowding long company/product names at 327px. */
  html body:has(main.ecosystem-profile-page) :is(
    .profile-submit-trigger,
    .profile-watch-slot .k-watch,
    .page-info-trigger,
    .usage-scope-disclosure__button
  ) {
    position: relative !important;
    overflow: visible !important;
  }

  html body:has(main.ecosystem-profile-page) :is(
    .profile-submit-trigger,
    .profile-watch-slot .k-watch,
    .page-info-trigger,
    .usage-scope-disclosure__button
  )::after {
    content: "" !important;
    position: absolute !important;
    inset: -5px !important;
    border-radius: 14px !important;
  }

  html body:has(main.ecosystem-profile-page) .profile-submit-trigger-wrap {
    gap: 10px !important;
  }

  html body:has(main.ecosystem-profile-page) :is(
    .profile-timeline-event__source,
    .usage-observation-row__source
  ) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 3px 0 !important;
    font-size: 11.5px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body:has(main.ecosystem-profile-page) :is(
    .profile-timeline-event__source,
    .usage-observation-row__source
  )::after {
    content: "" !important;
    position: absolute !important;
    inset: -8px -6px !important;
  }

  html body:has(main.ecosystem-profile-page) .usage-observations-filter {
    min-height: 40px !important;
    padding-inline: 13px !important;
    font-size: 11px !important;
  }

  html body:has(main.ecosystem-profile-page) :is(
    .usage-observation-row__title-link,
    .usage-observation-row__title-text,
    .profile-timeline-event__title
  ) {
    font-size: 16px !important;
    line-height: 1.28 !important;
  }

  html body:has(main.ecosystem-profile-page) :is(
    .usage-observation-row__copy,
    .profile-timeline-event__bullets,
    .profile-operations-card__summary
  ) {
    font-size: 15px !important;
    line-height: 1.48 !important;
  }
}

/* Profile tab pills keep a 44px touch target, but the selected highlight is
   visually slimmer so it does not dominate the compact mobile rail. */
@media (max-width: 640px) {
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__tab,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__tab {
    position: relative !important;
    isolation: isolate !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__tab--active,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__tab--active {
    background: transparent !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__tab--active::before,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__tab--active::before {
    content: "" !important;
    position: absolute !important;
    inset: 6px 0 !important;
    z-index: -1 !important;
    border-radius: 999px !important;
    background: #e5e3dc !important;
    pointer-events: none !important;
  }
}

/* Directories use the document as the only page-level scroll container on
   phones.  Filter sheets can still scroll independently while they are open. */
@media (max-width: 720px) {
    html body.product-directory-page {
        height: auto !important;
        min-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    html body.product-directory-page .k-section.signal-feed-page,
    html body.product-directory-page .product-directory-shell,
    html body.product-directory-page .product-directory-main {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
    }

    html body.product-directory-page .product-sidebar__clear,
    html body.product-directory-page .product-sidebar__close,
    html body.product-directory-page .facet-option {
        min-height: 44px !important;
    }
}

/* Final shared mobile profile header and first-module authority. Company and
   product profiles must reserve the same compact action width, allow long
   names to wrap safely, and start their facts on the same inset. */
@media (max-width: 680px) {
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile__header,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile__header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: start !important;
    gap: 10px !important;
    min-width: 0 !important;
    margin-bottom: 12px !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile__header .title,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile__header .title {
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(27px, 9vw, 34px) !important;
    line-height: 1.04 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-wrap: balance !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-submit-trigger-wrap,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-submit-trigger-wrap {
    position: static !important;
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-self: end !important;
    gap: 8px !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-submit-trigger,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-submit-trigger {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 72px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 11px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: .06em !important;
    white-space: nowrap !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-watch-slot,
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-watch-slot .k-watch,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-watch-slot,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-watch-slot .k-watch {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 11px !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile__lede,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile__lede {
    grid-column: 1 / -1 !important;
  }

  html body[data-company-subpage="overview"] main#profile-main.profile.page-container.ecosystem-profile-page .company-overview-card--facts,
  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page .product-overview-card--facts {
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 18px !important;
  }

  html body[data-company-subpage="overview"] main#profile-main.profile.page-container.ecosystem-profile-page .company-overview-facts .meta-snapshot-facts,
  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page .product-overview-facts .meta-snapshot-facts {
    border: 0 !important;
  }

  html body[data-company-subpage="overview"] main#profile-main.profile.page-container.ecosystem-profile-page .company-overview-facts .meta__row,
  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page .product-overview-facts .meta__row,
  html body[data-company-subpage="overview"] main#profile-main.profile.page-container.ecosystem-profile-page .company-overview-facts .meta__row:first-child,
  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page .product-overview-facts .meta__row:first-child {
    min-height: 0 !important;
    padding: 8px 0 !important;
    grid-template-columns: 18px 84px minmax(0, 1fr) !important;
    gap: 8px !important;
    border: 0 !important;
  }

  /* One mobile Overview type ladder across both profile families. */
  html body[data-company-subpage="overview"] main#profile-main.profile.page-container.ecosystem-profile-page :is(.company-overview-card__title,.profile-overview-body-card__eyebrow),
  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page :is(.product-overview-card__title,.profile-overview-body-card__eyebrow) {
    margin-bottom: 12px !important;
    font-size: 11px !important;
    font-weight: 720 !important;
    line-height: 1.2 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase !important;
  }

  html body[data-company-subpage="overview"] main#profile-main.profile.page-container.ecosystem-profile-page .company-overview-copy,
  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page .product-overview-card--summary .notesText {
    font-size: 15px !important;
    font-weight: 450 !important;
    line-height: 1.5 !important;
    letter-spacing: -.008em !important;
  }

  html body[data-company-subpage="overview"] main#profile-main.profile.page-container.ecosystem-profile-page :is(.company-overview-facts .meta__key,.company-overview-detail-label),
  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page :is(.product-overview-facts .meta__key,.product-overview-detail-label) {
    padding-top: 1px !important;
    font-size: 9px !important;
    font-weight: 680 !important;
    line-height: 1.25 !important;
    letter-spacing: .045em !important;
  }

  html body[data-company-subpage="overview"] main#profile-main.profile.page-container.ecosystem-profile-page :is(.company-overview-facts .meta__val,.company-overview-facts .meta__val a,.company-overview-detail-value),
  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page :is(.product-overview-facts .meta__val,.product-overview-facts .meta__val a,.product-overview-detail-value) {
    font-size: 14px !important;
    font-weight: 450 !important;
    line-height: 1.38 !important;
    letter-spacing: -.008em !important;
  }

  html :is(body[data-company-subpage="overview"],body[data-product-subpage="overview"])
  main:is(#profile-main,#product-main).profile.ecosystem-profile-page .profile-overview-body-card {
    padding: 18px 20px !important;
  }

  html :is(body[data-company-subpage="overview"],body[data-product-subpage="overview"])
  main:is(#profile-main,#product-main).profile.ecosystem-profile-page .profile-overview-body-card__copy p {
    margin: 0 0 14px !important;
    font-size: 14px !important;
    font-weight: 450 !important;
    line-height: 1.55 !important;
    letter-spacing: -.006em !important;
  }

  html body[data-product-subpage="overview"] main#product-main.profile.ecosystem-profile-page .product-specs-section .specsBlock > .block-title {
    margin-bottom: 18px !important;
    font-size: 18px !important;
    font-weight: 740 !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em !important;
  }
}

/* Company directory: keep the compact action row on one shared control metric. */
@media (max-width: 720px) {
  html body.company-directory-page #eco-filter-toggle {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--korthos-mobile-inset, #f1f0eb) !important;
    color: var(--korthos-mobile-ink, #171713) !important;
    font: 650 12px/1 Inter, system-ui, sans-serif !important;
    box-shadow: none !important;
  }
}

@media (max-width: 380px) {
  html body header.site-header { padding-inline: 9px !important; }
  html body header.site-header .home-logo-text { font-size: 28px !important; }
  html body header.site-header :is(.home-site-search-trigger,.home-menu-toggle) {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    flex-basis: 42px !important;
  }
}

@media (max-width: 768px) {
  html body.site-chrome-light header.site-header.site-header.site-header {
    background: #fbfaf7 !important;
    background-color: #fbfaf7 !important;
  }
  html body.site-chrome-light header.site-header :is(.home-site-search-trigger,.home-menu-toggle) {
    background: #efeee9 !important;
  }
  html body.site-chrome-light .home-menu-sheet__panel {
    background: #fbfaf7 !important;
  }
  html body.site-chrome-light :is(.home-menu-sheet__nav > a,.home-menu-sheet__summary,.home-menu-sheet__section-body) {
    background: #efeee9 !important;
  }
}

/* Final narrow-screen interaction authority. Keep this after profile density
   rules, which intentionally make the visible header controls compact. */
@media (max-width: 640px) {
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__inner,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__inner,
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__tab,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__tab {
    min-height: 44px !important;
  }

  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile-tab-rail__tab,
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile-tab-rail__tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body:has(main.ecosystem-profile-page) .usage-observations-filter {
    min-height: 40px !important;
  }

  html body:has(main.ecosystem-profile-page) :is(.profile-timeline-event__source,.usage-observation-row__source) {
    min-height: 28px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
}

/* Final directory scroll authority: phone results move with the page, rather
   than trapping the user inside a second full-height scroller. */
@media (max-width: 720px) {
  html body.product-directory-page.product-directory-page {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body.product-directory-page.product-directory-page :is(.k-section.signal-feed-page,.product-directory-shell,.product-directory-main) {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }
}

/* Final Company Supply row authority. Records are transparent within their
   parent module until the user actually interacts with one. */
@media (max-width: 720px) {
  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .sci-supply-group.company-sci-layer-block .sci-supply-group__rows {
    gap: 0 !important;
    background: transparent !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .sci-supply-group.company-sci-layer-block :is(.sci-supply-row-shell,.company-supply-row) {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .sci-supply-group.company-sci-layer-block .company-supply-row {
    padding: 12px 0 !important;
    transition: background-color 150ms ease, transform 150ms ease !important;
  }

  html body[data-company-subpage="supply"] main#profile-main.profile.page-container.ecosystem-profile-page #company-subpage-root .sci-supply-group.company-sci-layer-block .company-supply-row:is(:hover,:focus-within,:active) {
    padding-inline: 10px !important;
    background: rgba(22, 21, 18, .045) !important;
  }
}

/* Mobile profile action buttons share the Submit control's 34px height. */
@media (max-width: 680px) {
  html body[data-company-subpage] main#profile-main.profile.page-container.ecosystem-profile-page .profile__header :is(
    .profile-supply-info-control,
    .profile-operations-info-control,
    .page-info-trigger
  ),
  html body[data-product-subpage] main#product-main.profile.ecosystem-profile-page .profile__header :is(
    .page-info-control,
    .page-info-trigger,
    .usage-scope-disclosure__button
  ) {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 11px !important;
    align-self: center !important;
  }
}
