/* /company/list/ on phones and small tablets. Linked with media="(max-width: 991px)", the width where the page's filters already
   become a sheet (isCompanyMobile in web_script.js): wider screens never apply it and do not wait for it. */

/* one column so the search can stay on screen over the list: the hero's title and chips join it through display: contents */
.co-mlayout { --co-gutter: 24px; display: flex; flex-direction: column; background: var(--t-surface); }
/* kx.css's page gutter at this width, which the list below keeps */
@media (max-width: 760px) { .co-mlayout { --co-gutter: 14px; } }
body.jb-page.jb-company_listing_page .company-hero-slider,
body.jb-page.jb-company_listing_page .company-hero-inner { display: contents; }
body.jb-page.jb-company_listing_page .company-hero-title { order: 1; margin: 0; padding: 14px var(--co-gutter) 2px; font-size: 22px; line-height: 1.25; }
body.jb-page.jb-company_listing_page .kx-dir-sub { display: none; }

/* search and filters: stays under the site header */
.co-msearch { order: 2; position: sticky; top: 58px; z-index: 40; display: flex; gap: 8px; padding: 10px var(--co-gutter); background: var(--t-surface); box-shadow: 0 6px 8px -8px rgba(16, 24, 40, .3); }
.co-msearch-box { position: relative; flex: 1 1 auto; min-width: 0; }
.co-msearch-box > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--t-muted); font-size: 15px; pointer-events: none; }
/* 16px: a smaller input makes iOS zoom the page on focus */
body.jb-page #companySearch { width: 100%; height: 46px; margin: 0; padding: 0 44px 0 40px; border: 1px solid var(--t-line-strong); border-radius: 12px; background: var(--t-surface-2); color: var(--t-ink); font-size: 16px; line-height: 1.2; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
body.jb-page #companySearch:focus { border-color: var(--t-brand); background: var(--t-surface); box-shadow: 0 0 0 3px var(--t-brand-tint); }
#companySearch::-webkit-search-cancel-button { display: none; }
#companySearch::placeholder { color: var(--t-muted); opacity: 1; }
.co-msearch-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--t-muted); font-size: 15px; }
.co-msearch-clear[hidden] { display: none; }
body.jb-page.jb-company_listing_page .co-msearch .open-filters { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; min-height: 46px; padding: 0; border: 1px solid var(--t-line-strong); border-radius: 12px; background: var(--t-surface); color: var(--t-ink); font-size: 15px; box-shadow: none; }
body.jb-page.jb-company_listing_page .co-msearch .open-filters > span:not(.kx-filter-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.jb-page.jb-company_listing_page .co-msearch .kx-filter-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; margin: 0; padding: 0 5px; border-radius: 999px; background: var(--t-brand); color: #fff; font-size: 11.5px; line-height: 19px; text-align: center; }
body.jb-page.jb-company_listing_page .co-msearch .kx-filter-count[hidden] { display: none; }

/* industries: one swipeable row, the edge fades to show there is more. kx.css's phone rule pulled the row into the hero's padding, which is gone here */
body.jb-page.jb-company_listing_page .industry-slider { order: 3; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.jb-page.jb-company_listing_page .company-hero-slider .industry-track { flex-wrap: nowrap; overflow-x: auto; width: auto !important; max-width: none !important; margin: 0 !important; padding: 2px var(--co-gutter) 10px !important; scroll-padding-left: var(--co-gutter); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
body.jb-page.jb-company_listing_page .company-hero-slider .industry-track::-webkit-scrollbar { display: none; }
body.jb-page.jb-company_listing_page .company-hero-slider .industry-card { flex: none; }
/* jobs-ui.css forces every chip's background with !important, which left the chosen chip white on white */
body.jb-page.jb-company_listing_page .company-hero-slider .industry-card.active { background: var(--t-ink) !important; }
body.jb-page.jb-company_listing_page .slider-btn,
body.jb-page.jb-company_listing_page .slider-nav { display: none; }

/* the list */
body.jb-page.jb-company_listing_page .indexpage-contantJP1 { order: 4; padding: 10px 0 32px; background: var(--t-surface-2); }
body.jb-page.jb-company_listing_page .company-page-layout { display: block; }
body.jb-page.jb-company_listing_page .company-results,
body.jb-page.jb-company_listing_page .company-listing-sec-CListing { margin: 0; padding: 0; }
body.jb-page.jb-company_listing_page .company-filters { display: none; }
body.jb-page.jb-company_listing_page main.company-results > .results-header { margin: 0 0 8px; padding: 0; border: 0; background: none; box-shadow: none; }
/* selectIndustry scrolls to the count: it must land clear of the header and the search */
body.jb-page.jb-company_listing_page .results-header .sh-result { scroll-margin-top: 130px; color: var(--t-ink-2); font-size: 13.5px; font-weight: 600; }
body.jb-page.jb-company_listing_page #compant_list_container { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; }

/* a company: one compact row, all of it tappable (the name's link covers it) */
body.jb-page.jb-company_listing_page #compant_list_container .kx-cotile { display: grid; grid-template-columns: 44px minmax(0, 1fr) 10px; gap: 0 12px; align-items: center; padding: 11px 14px 11px 12px; border-radius: 14px; box-shadow: none; transform: none; }
body.jb-page.jb-company_listing_page #compant_list_container .kx-cotile:active { background: var(--t-surface-3); }
.jb-company_listing_page .kx-cotile-top { display: contents; }
body.jb-page.jb-company_listing_page .kx-cotile .kx-logo { grid-column: 1; grid-row: 1 / span 3; align-self: start; width: 44px; height: 44px; border-radius: 11px; font-size: 15px; }
.jb-company_listing_page .kx-cotile-top + div { grid-column: 2; grid-row: 1; min-width: 0; }
body.jb-page.jb-company_listing_page .kx-cotile h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; line-height: 1.3; }
body.jb-page.jb-company_listing_page .kx-co-ind { margin: 1px 0 0; overflow: hidden; font-size: 13px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
body.jb-page.jb-company_listing_page .kx-co-foot { grid-column: 2; grid-row: 2; display: block; min-width: 0; margin: 1px 0 0; padding: 0; overflow: hidden; border: 0; font-size: 13px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
body.jb-page.jb-company_listing_page .kx-co-foot > span { display: inline; }
body.jb-page.jb-company_listing_page .kx-co-foot i { margin-right: 5px; font-size: 11.5px; }
body.jb-page.jb-company_listing_page .kx-cotile .kx-badge { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 5px; padding: 2px 8px; font-size: 11.5px; }
.jb-company_listing_page .kx-cotile::after { content: ""; grid-column: 3; grid-row: 1 / span 3; width: 8px; height: 8px; border-top: 2px solid var(--t-line-strong); border-right: 2px solid var(--t-line-strong); transform: rotate(45deg); }

body.jb-page.jb-company_listing_page .kx-empty { grid-column: 1 / -1; padding: 28px 16px; }
body.jb-page.jb-company_listing_page .kx-empty button { min-height: 44px; margin-top: 4px; padding: 0 18px; }

/* the closed account panel waits just past the right edge, and its shadow fell across this page as a grey band */
body.jb-page.jb-company_listing_page .profile-panel-headerpanel:not(.active-headerpanel) { box-shadow: none; }
