/**
 * v3 careerweb — results meta bar.
 * Bar between the nav and the main grid. Counts on the left, sort
 * dropdown trigger on the right. Container constrained to the same
 * 1600px max-width as the main grid so they read as one column.
 */

.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px 12px;
    font-size: 13px;
    color: var(--ink-2);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}
.results-count { display: flex; align-items: center; gap: 8px; }
.results-count strong {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    color: var(--ink);
    font-size: 15px;
}
/* Keep the sort pill anchored to the right edge even when the
   left-hand counter is missing (currently hidden — see partial). */
.results-meta > .sort-select { margin-left: auto; }

/* Sort trigger — pill button, opens a menu (popover comes in Stage D). */
.sort-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.sort-select:hover { background: var(--surface-2); }
.sort-select i { font-size: 14px; color: var(--ink-3); }
.sort-label { color: var(--ink-3); }
.sort-value { color: var(--ink); font-weight: 600; }

/* ─── Sort popover menu ───
   Positioned by JS (fixed, top-right-anchored to .sort-select).
   Renders into <body> on first open so it escapes the .results-meta
   stacking context. Keep z-index above the nav (50) but below modals
   (100) and the chat drawer (70). */
.sort-popover {
    display: none;
    position: fixed;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 4px;
    min-width: 220px;
    z-index: 80;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 140ms ease, transform 140ms ease;
}
.sort-popover.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.sort-popover-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 100ms ease;
}
.sort-popover-item:hover { background: var(--surface-2); }
.sort-popover-label { color: var(--ink); }
.sort-popover-check {
    font-size: 14px;
    color: var(--brand);
    opacity: 0;
    transition: opacity 100ms ease;
}
.sort-popover-item.selected .sort-popover-label {
    color: var(--brand);
    font-weight: 600;
}
.sort-popover-item.selected .sort-popover-check { opacity: 1; }
