/* Каталог компаний. Основа — стили блога (bl-*): лист, волосяные линии, плитки. Здесь своё: заголовок, лента найма, строки компаний. */
.co {
    --co-green: var(--accent-color);
    /* Кольцо формата — тона бейджей формата с карточек вакансий (лайм, розовый, бирюзовый), насыщеннее, чтобы доли не сливались */
    --co-0: #B4DB62;
    --co-1: #E58CC4;
    --co-2: #6FCFCF;
    --co-dim: color-mix(in srgb, var(--text-color) 16%, transparent);
}

.co-id {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.co-id img,
.co-row .company-logo {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
}

.co-id > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.co-id b,
.co-row .company-name {
    overflow: hidden;
    margin: 0;
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: var(--lh-16);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.co-id small,
.co-row-main small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.co-id small:empty,
.co-row-main small:empty {
    display: none;
}

.co-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    margin-top: 20px;
    text-transform: lowercase;
}

.co-title .bl-h1 {
    margin: 0;
}

.co-title-note {
    color: var(--text-muted);
}

.co-lead {
    max-width: 680px;
    margin: 12px 0 20px;
    font-size: var(--fs-16);
    line-height: 1.5;
    letter-spacing: var(--ls-16);
}

.co .companies-search-container {
    margin-bottom: 8px !important;
}

/* Лента «активно нанимают»: едет по кругу, края растворяются, под курсором останавливается */
.co-feats {
    margin-bottom: 8px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}

.co-feats-track {
    display: flex;
    gap: 8px;
    width: max-content;
    animation: co-ticker 85s linear infinite;
}

.co-feats:hover .co-feats-track {
    animation-play-state: paused;
}

@keyframes co-ticker {
    to { transform: translateX(calc(-50% - 4px)); }
}

.co-feat {
    flex: none;
    width: 260px;
    min-height: 0;
    gap: 12px;
    padding: 20px;
}

.co-feat .co-id {
    gap: 10px;
}

.co-feat .co-id img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.co-feat .co-id b {
    line-height: 20px;
}

.co-feat .co-id small {
    line-height: 18px;
}

.co-feat-num {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-color);
    font-size: 24px;
    font-weight: var(--fw-semibold);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.co-feat-num small {
    color: var(--text-muted);
    font-size: var(--fs-14);
    font-weight: var(--fw-regular);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
}

@media (prefers-reduced-motion: reduce) {
    .co-feats { overflow-x: auto; }
    .co-feats-track { animation: none; }
}

/* Список: строки вместо плиток. Ряды по три нужны только скрипту подгрузки */
.co-list .companies-rows {
    gap: 0;
    max-width: none;
    margin: 0;
}

.co-list .companies-row,
.co-list .companies-skeleton-row {
    display: contents;
}

.co-list-head,
.co-list .co-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 88px 88px 88px;
    column-gap: 12px;
    align-items: center;
    padding: 8px 20px;
}

/* Плотная строка, как строка вакансии: логотип 32, две тесные строки текста */
.co-list .co-row .company-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.co-list .co-row .company-name {
    line-height: 20px;
}

.co-list .co-row-main small {
    line-height: 18px;
}

.co-list-head {
    padding-top: 16px;
    padding-bottom: 12px;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
}

.co-list-head a {
    color: inherit;
    text-align: right;
    text-decoration: none;
    transition: color 0.2s ease;
}

.co-list-head a:hover,
.co-list-head a.is-on {
    color: var(--text-color);
}

.co-list-head a.is-on::after {
    content: " ↓";
}

.co-list .co-row {
    flex: none;
    max-width: none;
    border-top: 1px solid var(--bl-line);
    border-radius: 0;
    background: none;
    /* у старых плиток появление через opacity: строкам оно не нужно */
    opacity: 1;
    transform: none;
    animation: none;
    transition: background-color 0.2s ease;
}

.co-list .co-row:hover {
    background: color-mix(in srgb, var(--text-color) 3%, transparent);
}

.co-list .companies-row:last-child .co-row:last-child {
    border-radius: 0 0 24px 24px;
}

.co-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.co-row-num,
.co-row .co-week,
.co-row-remote {
    text-align: right;
    font-size: var(--fs-16);
    font-variant-numeric: tabular-nums;
}

.co-row .co-row-num {
    color: var(--text-color);
}

.co-week {
    color: var(--co-green);
}

.co-week.is-zero,
.co-row-remote {
    color: var(--text-muted);
}

.co .listing-pagination {
    margin-top: 16px;
}
