/* Styles scoped to public auth pages (sign_in, failure, rate_limited, access_denied) */

.auth-page {
    background: rgba(var(--lg-tertiary-bg-rgb), var(--lg-bg-opacity)) !important;
    min-height: 100vh;
}

/* Shared divider styling used across auth pages */
.page-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(101, 103, 105, 0.5);
    line-height: 0.1em;
}

.page-divider span {
    background: var(--lg-body-bg);
    padding: 0 10px;
}
/*
 * Candidate stage badges (RFP candidate cards)
 *
 * Semantic classes for the pill badge that communicates a candidate's stage.
 * Colors map to Bootstrap's theme subtle/emphasis variables so badges stay in
 * sync with the active theme. The Ruby helper (`candidate_stage_badge`) returns
 * the semantic class name; presentation — colors AND the leading stage icon —
 * lives here, not in the helper.
 *
 * Selectors are scoped with `.badge` so they out-specify Bootstrap's own
 * `.badge` rule (which is loaded AFTER application.css and otherwise forces the
 * label to white, making it invisible on the light subtle backgrounds).
 *
 * Icons are rendered via ::before using the Font Awesome 6 webfont glyphs.
 * Free ships calendar/clock at regular weight (400) but only a solid (900)
 * check, so each rule pins the weight that actually has the glyph.
 */

.badge.candidate-stage-badge--proposed {
    background-color: var(--bs-info-bg-subtle);
    color: var(--bs-info-text-emphasis);
}

.badge.candidate-stage-badge--interview {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
}

.badge.candidate-stage-badge--offer {
    background-color: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
}

.badge.candidate-stage-badge--hired {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
}

.badge.candidate-stage-badge--rejected {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
}

.badge.candidate-stage-badge--default {
    background-color: var(--bs-secondary-bg-subtle);
    color: var(--bs-secondary-text-emphasis);
}

/* Leading stage icons (Font Awesome 6 Free webfont). */
.badge.candidate-stage-badge--interview::before,
.badge.candidate-stage-badge--offer::before,
.badge.candidate-stage-badge--hired::before {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    margin-right: 0.25rem;
}

.badge.candidate-stage-badge--interview::before {
    content: "\f133"; /* calendar */
    font-weight: 400;
}

.badge.candidate-stage-badge--offer::before {
    content: "\f017"; /* clock */
    font-weight: 400;
}

.badge.candidate-stage-badge--hired::before {
    content: "\f00c"; /* check (solid-only in Free) */
    font-weight: 900;
}
@keyframes eval_run_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

.eval-run-progress {
    position: relative;
    padding-left: 14px;
    padding-right: 14px;
}

.eval-run-progress .progress {
    height: 4px !important;
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1;
    background-color: #d1d5db;
}

.eval-run-progress .progress-bar {
    height: 4px !important;
    z-index: 2;
    background-color: var(--bs-primary);
}

.eval-run-steps {
    position: relative;
    height: 64px;
}

.eval-run-step-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.eval-run-step-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 3px solid #ffffff;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eval-run-step-marker.completed {
    background-color: var(--bs-primary);
}

.eval-run-step-marker.active {
    background-color: var(--bs-primary);
    border-color: #dbeafe;
    animation: eval_run_pulse 2s infinite;
}

.eval-run-step-marker.failed {
    background-color: var(--bs-danger);
    border-color: #fee2e2;
    animation: none;
}

.eval-run-step-check {
    display: none;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.eval-run-step-marker.completed .eval-run-step-check {
    display: inline;
}

.eval-run-step-label {
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.eval-run-step-label.active-text {
    font-weight: 700;
    color: #0f172a;
}

.eval-run-step-label.failed-text {
    font-weight: 700;
    color: var(--bs-danger);
}

/* My Firm dashboard (/firm/profile). Prefixed because application.css bundles
   this tree globally. */

/* Surface cards: one per thing the firm maintains. The figure is the state,
   the card is the way in. */
.firm-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 16px;
    background: var(--surface-card);
    border: var(--border-width) solid var(--gray-3);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow var(--dur-normal) var(--ease-standard),
                transform var(--dur-normal) var(--ease-standard);
}

.firm-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text-primary);
    text-decoration: none;
}

.firm-tile__label {
    font-size: var(--text-2xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: var(--fw-semibold);
    color: var(--text-tertiary);
}

.firm-tile__value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: var(--fw-medium);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.firm-tile__value--muted { color: var(--text-disabled); }
.firm-tile__detail { font-size: var(--text-2xs); color: var(--text-tertiary); margin-top: auto; padding-top: 6px; }

/* A tile whose surface has no firm-side page yet: the figure, without the
   affordance of a link. */
.firm-tile--static:hover {
    box-shadow: none;
    transform: none;
}
/* A firm's directory of people: /firm/people, and the client-facing People
   tab that reads the same roster. */

/* The search field beside the people count. Qualified with .input-group so it
   outranks Bootstrap's .input-group { width: 100% }, which loads after this. */
.input-group.directory-search {
    width: 240px;
}

/* The select-all checkbox column of /firm/people. */
.directory-select-column {
    width: 2rem;
}

/* The Line column of a people import's skipped rows; numerals of equal width
   so the line numbers align. */
.import-line-column {
    width: 90px;
}

.import-line-number {
    font-variant-numeric: tabular-nums;
}

/* The "Imports as" column of the people import mapping table, wide enough for
   the field picker. */
.import-field-column {
    width: 260px;
}

/* Lets a card's text column shrink below its content so long names wrap
   instead of widening the card. */
.directory-card-text {
    min-width: 0;
}

/* A person's card on the People tab, which opens their profile panel. */
.directory-person-card {
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.directory-person-card:hover {
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.1);
    border-color: var(--bs-gray-500);
}

/* The card's "View profile" cue, which turns to the link color on hover. */
.directory-card-cta {
    color: var(--bs-secondary-color);
}

.directory-person-card:hover .directory-card-cta {
    color: var(--bs-primary);
}

/* The round email and contact buttons in a card's footer. */
.directory-icon-button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* A person's photo, stored as uploaded and cropped round here. */
.directory-photo {
    object-fit: cover;
}

/* A photo on a People tab card, beside the name. */
.directory-card-photo {
    width: 56px;
    height: 56px;
}

/* The empty circle the add/edit form shows when the person has no photo. */
.directory-photo-placeholder {
    width: 80px;
    height: 80px;
}

/* A person's photo, or their initials without one, in their profile panel. */
.directory-panel-avatar {
    width: 64px;
    height: 64px;
}

/* The profile panel beside a People page. Its width through Bootstrap's own
   variable, which .offcanvas-end reads; the frame fills the panel so the
   body scrolls under the header, as an offcanvas body does. */
.directory-panel {
    --bs-offcanvas-width: 440px;
}

.directory-panel turbo-frame {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

/* The previous person's profile while the next one loads. */
.directory-panel turbo-frame[busy] {
    opacity: 0.5;
}

/* About keeps the firm's line breaks; it is plain text, never markup. */
.directory-about {
    white-space: pre-line;
}

/* The green check an active quick toggle (In my contacts) shows, as Panel
   Firms Only does on the Counsel page. */
.people-toggle-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bs-success-bg-subtle);
    font-size: 12px;
}

/* The People tab's page links, pinned to the bottom of the screen as on the
   Counsel page. */
.people-pagination {
    position: sticky;
    bottom: 0;
    z-index: 1020;
}
.insights-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    z-index: 1035;
    background: #fff;
    border-left: 1px solid var(--bs-border-color);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.25s ease, width 0.15s ease;
}

.insights-sidebar.collapsed {
    transform: translateX(100%);
}

.insights-sidebar-body {
    flex: 1;
    min-height: 0;
}

body.insights-panel-open .main-content {
    margin-right: var(--lex-sidebar-width, 380px);
    transition: margin-right 0.25s ease;
}

.insights-sidebar-resize-handle {
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    z-index: 10;
}

.insights-sidebar-resize-handle::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.15s ease;
}

.insights-sidebar-resize-handle:hover::after,
body.lex-sidebar-resizing .insights-sidebar-resize-handle::after {
    background: var(--bs-primary);
}

body.lex-sidebar-resizing {
    cursor: col-resize !important;
    user-select: none;
}

body.lex-sidebar-resizing * {
    cursor: col-resize !important;
}

body.lex-sidebar-resizing .insights-sidebar {
    transition: none !important;
}

body.lex-sidebar-resizing .main-content {
    transition: none !important;
}

.chat-message-bubble {
    line-height: 1.7;
}

.chat-message-bubble p:last-child {
    margin-bottom: 0 !important;
}

.insight-card {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.insight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.lex-sidebar-input-area textarea:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

.lex-sidebar-suggestions button:hover,
.lex-starter-prompt:hover {
    background-color: var(--bs-tertiary-bg) !important;
}

.lex-sidebar-suggestions button,
.lex-starter-prompt {
    justify-content: flex-start !important;
    text-align: left !important;
}

.lex-sidebar-ai-target h1,
.lex-sidebar-ai-target h2,
.lex-sidebar-ai-target h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lex-sidebar-ai-target p {
    margin-bottom: 0.5rem;
}

.lex-sidebar-ai-target ul,
.lex-sidebar-ai-target ol {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.chat-message-bubble--user {
    background: #eef2ff;
}

.chat-message-bubble--assistant {
    background: #f8faf8;
}

[data-bs-theme="dark"] .insights-sidebar {
    background: var(--bs-body-bg);
    border-left-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .insights-sidebar-header,
[data-bs-theme="dark"] .lex-sidebar-input-area {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .insights-sidebar-body,
[data-bs-theme="dark"] .chat-tab-content,
[data-bs-theme="dark"] .history-tab-content {
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .chat-message-bubble {
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .chat-message-bubble--user {
    background: rgba(59, 130, 246, 0.18);
}

[data-bs-theme="dark"] .chat-message-bubble--assistant {
    background: #111827;
}

[data-bs-theme="dark"] .chat-message-bubble .text-dark,
[data-bs-theme="dark"] .lex-sidebar-ai-target {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .lex-sidebar-suggestions button,
[data-bs-theme="dark"] .lex-sidebar-options button,
[data-bs-theme="dark"] .lex-starter-prompt {
    background: #111827 !important;
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .lex-sidebar-suggestions button:hover,
[data-bs-theme="dark"] .lex-sidebar-options button:hover,
[data-bs-theme="dark"] .lex-starter-prompt:hover {
    background: #172033 !important;
    border-color: #3b82f6 !important;
    color: var(--bs-emphasis-color) !important;
}

@media (max-width: 991.98px) {
    .insights-sidebar {
        width: 100% !important;
    }
    body.insights-panel-open .main-content {
        margin-right: 0;
    }
    .insights-sidebar-resize-handle {
        display: none;
    }
}
/* Practice-area picker (see practice_area_picker_controller.js).
   Its own display rules rather than Bootstrap's `d-inline-flex`, because that
   utility is `!important` and would beat the `hidden` attribute the filter
   sets — the options would stay visible while claiming to be hidden. */

.pa-option {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.pa-option[hidden] {
    display: none;
}

.pa-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

/* The label is the whole control in the list below, so it takes the pointer.
   The core checkbox beside it is state only — its star lives on the selected
   pill above, so it must never take a click here. */
.pa-option-select {
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

/* An option's pill follows its checkbox: unchecked reads as available,
   checked as chosen. Driven by :checked rather than a server-rendered class, so
   removing a saved area's pill above un-greens it here too. */
.pa-option .pa-option-pill {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.pa-option input:checked + .pa-option-pill {
    background-color: var(--bs-success);
    color: #fff;
    border-color: var(--bs-success);
}

/* The pill is the whole control, so it takes the pointer and the focus ring. */
.pa-option input:focus-visible + .badge {
    outline: 2px solid var(--focus-ring, #0025DE);
    outline-offset: 2px;
}

/* The search field's icon sits in its own input-group-text, which the theme's
   .form-control:focus (dark border, white fill) never reaches, so the focus
   outline stopped at the input. Give the icon the same focus look. */
.practice-area-picker .input-group:focus-within .input-group-text {
    border-color: var(--midnight-navy, #050911);
    background-color: #fff;
}

.pa-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The star on a selected pill: inherits the pill's colour so it reads as part
   of it, and dims rather than disappears once the cap is reached. */
.pa-star {
    color: inherit;
    text-decoration: none;
}

.pa-star:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
/* A search field with its icon in an input-group-text. The theme's
   .form-control:focus darkens only the input's border, so the focus outline
   stopped short of the icon. Darken the icon's border with it. */
.input-group-search:focus-within .input-group-text {
    border-color: var(--midnight-navy, #050911);
}
/* A row of figures that describes a whole set, such as an import's outcome.
   Divided cells, display-font values, tabular figures. Rendered by
   shared/lists/_stat_strip. */
/* auto-fit takes any number of cells and wraps on narrow screens; the 1px gap
   over a gray ground draws the dividers, which survives wrapping in a way
   per-cell borders do not. */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--border-width);
    background: var(--gray-2);
    border: var(--border-width) solid var(--gray-3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.stat-strip__cell {
    padding: var(--space-4) var(--space-5);
    background: var(--surface-card);
}

.stat-strip__label {
    font-family: var(--font-body);
    font-size: var(--text-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.stat-strip__value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: var(--fw-medium);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.stat-strip__value--muted {
    color: var(--text-disabled);
}

.stat-strip__value--warning { color: #8A5A12; }
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

.admin-upload-progress {
    position: relative;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
}

.admin-upload-progress .progress {
    height: 4px !important;
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 1;
    background-color: #d1d5db;
}

.admin-upload-progress .progress-bar {
    height: 4px !important;
    z-index: 2;
    background-color: var(--bs-primary);
}

.admin-upload-steps {
    position: relative;
    height: 64px;
}

.admin-upload-step-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.admin-upload-step-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 3px solid #ffffff;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-upload-step-marker.completed {
    background-color: var(--bs-primary);
}

.admin-upload-step-marker.active {
    background-color: var(--bs-primary);
    border-color: #dbeafe;
    animation: pulse 2s infinite;
}

.admin-upload-step-check {
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.admin-upload-step-label {
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.admin-upload-step-label.active-text {
    font-weight: 700;
    color: #0f172a;
}
/* Candidate avatar sizes (card uses --sm, modal uses --md). */
.candidate-avatar--sm {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.candidate-avatar--md {
    width: 48px;
    height: 48px;
    font-size: 17px;
}

/* Resume iframe in the candidate detail modal. */
.candidate-resume-iframe {
    width: 100%;
    height: 70vh;
    border: 0;
}

/*
 * Candidate name trigger reads as a link: clean at rest, underline on
 * hover/focus. Bootstrap's .text-decoration-none keeps the name un-underlined
 * at rest via !important; this rule uses !important too and, being more
 * specific among the !important declarations, wins on interaction — so the
 * underline surfaces only on hover/focus.
 */
.candidate-name-link:hover,
.candidate-name-link:focus-visible {
    text-decoration: underline !important;
}
/* ============================================================
    Product landing — the in-app empty state for a product surface
    (shared/_product_landing). Centered hero with a mock-UI visual,
    feature cards, how-it-works, logos, a closing CTA and an FAQ.
    Built on the DS v2 tokens in legalio_ds.css.
    ============================================================ */

.pl {
    --pl-surface: var(--white);
    --pl-band: var(--beige-01);
    --pl-frame: var(--beige-02);
    --pl-card: var(--white);
    --pl-line: var(--gray-3);
    --pl-text: var(--midnight-navy);
    --pl-muted: var(--gray-7);
    --pl-faint: var(--gray-6);
    --pl-accent: var(--cobalt-blue);
    --pl-accent-soft: var(--cobalt-050);
    --pl-inverse: var(--midnight-navy);

    background: var(--pl-surface);
    color: var(--pl-text);
    font-family: var(--font-body);
    padding-bottom: 64px;
}

[data-bs-theme="dark"] .pl {
    --pl-surface: #0d1117;
    --pl-band: #121821;
    --pl-frame: #1a2130;
    --pl-card: #161c26;
    --pl-line: #2a3342;
    --pl-text: #eef1f6;
    --pl-muted: #aab3c2;
    --pl-faint: #8590a2;
    --pl-accent: #7f9cff;
    --pl-accent-soft: rgba(127, 156, 255, 0.14);
    --pl-inverse: #1b2a6b;
}

.pl-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- Hero ---- */
.pl-hero {
    text-align: center;
    padding: 56px 0 32px;
}

.pl-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--pl-accent-soft);
    color: var(--pl-accent);
    font-size: var(--text-2xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
}

.pl-title {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: var(--tracking-display);
    color: var(--pl-text);
    margin: 16px auto 12px;
    max-width: 760px;
    text-wrap: balance;
}

.pl-sub {
    font-size: var(--text-md);
    line-height: var(--lh-normal);
    color: var(--pl-muted);
    max-width: 580px;
    margin: 0 auto 24px;
    text-wrap: pretty;
}

.pl-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

[data-bs-theme="dark"] .pl .ds-btn--secondary {
    background: transparent;
    color: var(--pl-text);
    border-color: var(--pl-line);
}

.pl-note {
    margin: 12px 0 0;
    font-size: var(--text-2xs);
    color: var(--pl-faint);
}

/* ---- Hero visual frame ---- */
.pl-visual {
    max-width: 880px;
    margin: 16px auto 0;
    padding: 28px;
    background: var(--pl-frame);
    border-radius: 20px;
}

/* ---- Sections ---- */
.pl-band {
    background: var(--pl-band);
    border-top: 1px solid var(--pl-line);
    border-bottom: 1px solid var(--pl-line);
}

.pl-section {
    padding-block: 56px;
}

.pl-section-head {
    text-align: center;
    margin-bottom: 32px;
}

.pl-eyebrow {
    display: block;
    font-size: var(--text-xs);
    color: var(--pl-faint);
    margin-bottom: 8px;
}

.pl-h2 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-display-sm);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--pl-text);
    margin: 0;
    text-wrap: balance;
}

.pl-cards {
    display: grid;
    grid-template-columns: repeat(min(var(--pl-card-count, 3), 3), minmax(0, 1fr));
    gap: 16px;
}

.pl-card {
    background: var(--pl-card);
    border: 1px solid var(--pl-line);
    border-radius: 16px;
    padding: 24px;
}

.pl-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--pl-accent-soft);
    color: var(--pl-accent);
    font-size: 18px;
    margin-bottom: 16px;
}

.pl-card h3,
.pl-step h3 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-tight);
    color: var(--pl-text);
    margin: 0 0 6px;
}

.pl-card p,
.pl-step p {
    font-size: var(--text-xs);
    line-height: var(--lh-normal);
    color: var(--pl-muted);
    margin: 0;
}

/* ---- How it works ---- */
.pl-steps {
    display: grid;
    grid-template-columns: repeat(var(--pl-step-count, 3), minmax(0, 1fr));
    gap: 32px;
    counter-reset: pl-step;
}

.pl-step {
    border-top: 2px solid var(--pl-line);
    padding-top: 20px;
    counter-increment: pl-step;
}

.pl-step::before {
    content: counter(pl-step, decimal-leading-zero);
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--pl-accent);
    margin-bottom: 12px;
}

/* ---- Stats band ---- */
.pl-stats {
    background: var(--midnight-navy);
    color: var(--white);
}

.pl-stats .pl-h2 {
    color: var(--white);
}

.pl-stats .pl-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.pl-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pl-stat {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 24px;
}

.pl-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    letter-spacing: var(--tracking-display);
    margin-bottom: 12px;
}

.pl-stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Logos ---- */
.pl-logos {
    text-align: center;
    padding: 48px 0 8px;
}

.pl-logos p {
    font-size: var(--text-xs);
    color: var(--pl-faint);
    margin-bottom: 20px;
}

.pl-logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 48px;
}

.pl-logo-row img {
    height: 26px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.65;
}

[data-bs-theme="dark"] .pl-logo-row img {
    filter: grayscale(100%) invert(1);
    opacity: 0.55;
}

/* ---- Closing CTA ---- */
.pl-closing {
    margin-top: 48px;
    background: var(--pl-inverse);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    color: var(--white);
}

.pl-closing .pl-h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.pl-closing .pl-note {
    color: rgba(255, 255, 255, 0.65);
}

/* ---- FAQ ---- */
.pl-faq {
    max-width: 720px;
    margin: 56px auto 0;
}

.pl-faq .pl-h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: var(--text-xl);
}

.pl-faq details {
    border-bottom: 1px solid var(--pl-line);
}

.pl-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--pl-text);
}

.pl-faq summary::-webkit-details-marker {
    display: none;
}

.pl-faq summary::after {
    content: "+";
    font-size: var(--text-lg);
    color: var(--pl-faint);
    transition: transform var(--dur-fast, 150ms) ease;
}

.pl-faq details[open] summary::after {
    transform: rotate(45deg);
}

.pl-faq summary:focus-visible {
    outline: 2px solid var(--pl-accent);
    outline-offset: 2px;
}

.pl-faq details p {
    font-size: var(--text-xs);
    line-height: var(--lh-relaxed);
    color: var(--pl-muted);
    margin: 0 0 16px;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .pl-steps {
        grid-template-columns: repeat(min(var(--pl-step-count, 3), 2), minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .pl-hero {
        padding: 36px 0 24px;
    }

    .pl-title {
        font-size: 34px;
    }

    .pl-h2 {
        font-size: 28px;
    }

    .pl-ctas .ds-btn {
        flex: 1 1 100%;
    }

    .pl-cards,
    .pl-steps,
    .pl-stat-grid {
        grid-template-columns: 1fr;
    }

    .pl-steps {
        gap: 24px;
    }

    .pl-section {
        padding-block: 40px;
    }

    .pl-closing {
        padding: 36px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-faq summary::after {
        transition: none;
    }
}

/* ============================================================
    Layout variants — each landing composes its own structure
    ============================================================ */

.pl-hero--start {
    text-align: left;
    padding-bottom: 8px;
}

.pl-hero--start .pl-title,
.pl-hero--start .pl-sub {
    margin-left: 0;
}

.pl-hero--start .pl-ctas {
    justify-content: flex-start;
}

.pl-hero--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    text-align: left;
}

.pl-hero--split .pl-title,
.pl-hero--split .pl-sub {
    margin-left: 0;
}

.pl-hero--split .pl-ctas {
    justify-content: flex-start;
}

.pl-hero--split .pl-visual {
    margin: 0;
    padding: 24px;
    border-radius: 20px;
}

.pl-wide-visual {
    margin-top: 32px;
    padding: 24px;
    background: var(--pl-frame);
    border-radius: 20px;
}

a.pl-card--link {
    text-decoration: none;
    transition: border-color var(--dur-fast, 150ms) ease, transform var(--dur-fast, 150ms) ease;
}

a.pl-card--link:hover {
    border-color: var(--pl-accent);
    transform: translateY(-2px);
}

.pl-section--tight {
    padding-block: 32px;
}

.pl-h2--sm {
    font-size: var(--text-xl);
}

.pl-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pl-chip {
    padding: 8px 16px;
    border: 1px solid var(--pl-line);
    border-radius: var(--radius-pill);
    background: var(--pl-card);
    font-size: var(--text-xs);
    color: var(--pl-text);
}

/* Hero video (a product walkthrough recording) */
.pl-video {
    position: relative;
    max-width: 960px;
    margin: 16px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: var(--midnight-navy);
    box-shadow: 0 30px 60px rgba(5, 9, 17, 0.18);
}

.pl-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pl-video-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--midnight-navy);
    display: grid;
    place-items: center;
    font-size: 12px;
    cursor: pointer;
}

.pl-video-toggle:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Journey: alternating copy + animated screen rows */
.pl-journey {
    display: grid;
    gap: 72px;
}

.pl-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
}

.pl-row--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.pl-row--flip .pl-row-copy {
    order: 2;
}

.pl-row-stage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    color: var(--pl-accent);
    margin-bottom: 12px;
}

.pl-row-stage b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pl-accent-soft);
    font-size: 11px;
}

.pl-row-copy h3 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: 30px;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--pl-text);
    margin: 0 0 12px;
}

.pl-row-copy p {
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
    color: var(--pl-muted);
    margin: 0 0 16px;
}

.pl-row-copy ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.pl-row-copy li {
    display: flex;
    gap: 10px;
    font-size: var(--text-xs);
    color: var(--pl-text);
}

.pl-row-copy li i {
    color: var(--pl-accent);
    margin-top: 3px;
}

.pl-stage-frame {
    background: var(--pl-frame);
    border-radius: 20px;
    padding: 28px;
}

/* Dark band (benchmark insight) */
.pl-dark {
    background: var(--midnight-navy);
    color: var(--white);
}

[data-bs-theme="dark"] .pl-dark,
[data-bs-theme="dark"] .pl-stats {
    background: #141c2e;
}

.pl-dark .pl-h2 {
    color: var(--white);
}

.pl-dark .pl-eyebrow,
.pl-dark .pl-row-copy p {
    color: rgba(255, 255, 255, 0.7);
}

.pl-dark .pl-row-copy h3,
.pl-dark .pl-row-copy li {
    color: var(--white);
}

.pl-dark .pl-row-stage {
    color: var(--light-blue);
}

.pl-dark .pl-row-stage b {
    background: rgba(133, 169, 227, 0.16);
}

/* ============================================================
    Facsimiles — static replicas of real screens, sample data
    ============================================================ */

.fx {
    position: relative;
    background: var(--pl-card);
    border: 1px solid var(--pl-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(5, 9, 17, 0.08);
    padding: 20px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--pl-text);
    pointer-events: none;
    user-select: none;
}

.fx + .fx {
    margin-top: 12px;
}

.fx-eyebrow {
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--pl-accent);
    margin-bottom: 4px;
}

.fx-title {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: 20px;
    letter-spacing: var(--tracking-tight);
    color: var(--pl-text);
    margin-bottom: 4px;
}

.fx-muted {
    color: var(--pl-muted);
}

.fx-meta {
    display: block;
    font-size: 11px;
    color: var(--pl-faint);
}

.fx-meta--strong {
    font-size: 12px;
    color: var(--pl-muted);
}

.fx-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.fx-input {
    border: 2px solid var(--pl-accent);
    border-radius: 12px;
    padding: 12px;
    min-height: 86px;
    color: var(--pl-text);
    line-height: var(--lh-normal);
    margin: 12px 0 0;
}

.fx-input-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.fx-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--pl-line);
    font-size: 12px;
    color: var(--pl-text);
    white-space: nowrap;
}

.fx-btn--primary {
    background: var(--cobalt-blue);
    border-color: var(--cobalt-blue);
    color: var(--white);
}

.fx-spacer {
    flex: 1;
}

.fx-lex {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--fw-semibold);
    font-size: 12px;
    margin-bottom: 6px;
}

.fx-lex i {
    color: var(--pl-accent);
}

.fx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.fx-chip {
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--pl-frame);
    font-size: 11px;
    color: var(--pl-muted);
}

.fx-chip b {
    color: var(--pl-text);
    font-weight: var(--fw-semibold);
    margin-left: 4px;
}

.fx-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
    background: var(--pl-frame);
    color: var(--pl-muted);
    white-space: nowrap;
}

.fx-badge--ok {
    background: #E4F3EA;
    color: #1E7A47;
}

.fx-badge--accent {
    background: var(--pl-accent-soft);
    color: var(--pl-accent);
}

.fx-badge--warn {
    background: #FBEFD6;
    color: #8A5A12;
}

[data-bs-theme="dark"] .fx-badge--ok {
    background: rgba(46, 160, 94, 0.16);
    color: #7fd6a1;
}

[data-bs-theme="dark"] .fx-badge--warn {
    background: rgba(214, 158, 46, 0.16);
    color: #f0c674;
}

/* Grid table (Compare Proposals, firms table) */
.fx-table {
    display: grid;
    font-size: 12px;
}

.fx-tr {
    display: grid;
    grid-template-columns: var(--fx-cols);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--pl-line);
}

.fx-tr--head {
    border-top: 0;
    padding-top: 0;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--pl-faint);
}

.fx-strong {
    font-weight: var(--fw-semibold);
    color: var(--pl-text);
}

.fx-link {
    font-weight: var(--fw-semibold);
    color: var(--pl-accent);
}

.fx-right {
    text-align: right;
}

.fx-good {
    color: #1E7A47;
    font-weight: var(--fw-semibold);
}

.fx-bad {
    color: #B42318;
    font-weight: var(--fw-semibold);
}

[data-bs-theme="dark"] .fx-good { color: #7fd6a1; }
[data-bs-theme="dark"] .fx-bad { color: #f19a8f; }

.fx-avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e0f2fe;
    color: #1d4ed8;
    font-weight: var(--fw-bold);
    font-size: 11px;
}

.fx-avatar--round {
    border-radius: 50%;
    width: 38px;
    height: 38px;
}

.fx-who {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Contacts (Select Vendors) */
.fx-firms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fx-firm {
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    padding: 10px;
}

.fx-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0 0;
    font-size: 12px;
}

.fx-box {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--pl-line);
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 8px;
    color: transparent;
    flex: 0 0 auto;
}

.fx-toast {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: #1E7A47;
    color: var(--white);
    font-weight: var(--fw-semibold);
    font-size: 12px;
}

/* Stepper (RFP show page) */
.fx-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 4px 0 16px;
    font-size: 11px;
    color: var(--pl-faint);
}

.fx-step {
    position: relative;
    padding-top: 16px;
}

.fx-step::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pl-line);
}

.fx-step::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--pl-line);
}

.fx-step.is-done::before,
.fx-step.is-done::after,
.fx-step.is-current::after {
    background: var(--cobalt-blue);
}

.fx-step.is-current {
    color: var(--pl-text);
    font-weight: var(--fw-semibold);
}

/* Firm progress track */
.fx-track {
    display: grid;
    grid-template-columns: 130px 1fr 86px;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid var(--pl-line);
    font-size: 12px;
}

.fx-bar {
    position: relative;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--pl-frame);
    overflow: hidden;
}

.fx-bar > i {
    position: absolute;
    inset: 0;
    width: var(--w);
    border-radius: inherit;
    background: var(--cobalt-blue);
    transform-origin: left center;
}

.fx-callout {
    margin: 12px 0 0 auto;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--pl-card);
    border: 1px solid var(--pl-line);
    box-shadow: 0 12px 30px rgba(5, 9, 17, 0.14);
    font-size: 11px;
}

/* Award banner */
.fx-award {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.fx-award-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #E4F3EA;
    color: #1E7A47;
    flex: 0 0 auto;
}

.fx-ticks {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 4px;
    font-size: 11px;
    color: var(--pl-muted);
}

.fx-ticks i {
    color: #1E7A47;
    margin-right: 6px;
}

/* KPI cards (benchmark) */
.fx-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.fx-kpi {
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    padding: 12px;
    font-size: 11px;
    color: var(--pl-muted);
}

.fx-kpi-value {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--pl-text);
    letter-spacing: var(--tracking-tight);
    margin: 4px 0 2px;
}

.fx-insight {
    border-left: 3px solid var(--cobalt-blue);
    padding: 4px 0 4px 12px;
    line-height: var(--lh-relaxed);
    min-height: 88px;
}

/* Candidate card (My Jobs) */
.fx-candidates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fx-candidate {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    padding: 14px;
    background: var(--pl-card);
}

.fx-candidate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.fx-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid var(--pl-line);
    padding-top: 12px;
}

.fx-fact {
    font-size: 12px;
    font-weight: var(--fw-semibold);
}

.fx-fact span {
    display: block;
    font-size: 10px;
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--pl-faint);
}

/* Anchored to the bottom of the card behind a divider, so side-by-side cards
   of different heights line their buttons up. */
.fx-candidate-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pl-line);
}

.fx-candidate-actions .fx-btn {
    flex: 1;
    justify-content: center;
}

.fx-facts {
    margin-bottom: 12px;
}

.fx-skeleton {
    border: 1px dashed var(--pl-line);
    border-radius: 10px;
    padding: 14px;
    display: grid;
    gap: 8px;
    align-content: center;
    color: var(--pl-faint);
    font-size: 12px;
}

.fx-shimmer {
    height: 8px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--pl-frame) 0%, var(--pl-line) 50%, var(--pl-frame) 100%);
    background-size: 200% 100%;
}

/* Form tiles (BYOT request form) */
.fx-label {
    font-family: var(--font-display);
    font-size: 15px;
    margin: 14px 0 8px;
}

.fx-label:first-of-type {
    margin-top: 0;
}

.fx-label em {
    color: #B42318;
    font-style: normal;
}

.fx-field {
    border: 1px solid var(--pl-line);
    border-radius: 8px;
    padding: 9px 12px;
    min-height: 38px;
    color: var(--pl-text);
}

.fx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.fx-pills span {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--pl-accent-soft);
    color: var(--pl-accent);
    font-size: 11px;
}

.fx-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.fx-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--pl-line);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: var(--fw-semibold);
}

.fx-tile i {
    color: var(--pl-accent);
    font-size: 16px;
}

.fx-tile small {
    display: block;
    font-weight: var(--fw-regular);
    color: var(--pl-faint);
    font-size: 10px;
}

.fx-caret::after {
    content: "";
    display: inline-block;
    width: 1.5px;
    height: 1em;
    margin-left: 1px;
    vertical-align: -2px;
    background: var(--pl-accent);
    animation: fx-blink 1s steps(1) infinite;
}

/* ============================================================
    Scene motion — `.pl-motion-ready` (JS running) sets the
    starting states; `.is-playing` runs them with per-element
    delays (--d). `.is-static` is the reduced-motion end state.
    ============================================================ */

.pl-motion-ready .pl-scene:not(.is-playing) .fx-in {
    opacity: 0;
}

.pl-scene.is-playing .fx-in {
    animation: fx-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both;
}

.pl-scene.is-playing .fx-bar > i {
    animation: fx-grow 1s cubic-bezier(0.3, 0.7, 0.2, 1) var(--d, 0s) both;
}

.pl-scene.is-playing .fx-pick {
    animation: fx-pick 0.3s ease var(--d, 0s) both;
}

.pl-scene.is-playing .fx-tick-on .fx-box {
    animation: fx-tick 0.3s ease var(--d, 0s) both;
}

.pl-scene.is-playing .fx-shimmer {
    animation: fx-shimmer 1.4s linear infinite;
}

.pl-scene.is-playing .fx-pulse {
    animation: fx-pulse 1.8s ease-in-out var(--d, 0s) 2;
}

.pl-scene.is-static *,
.pl-scene.is-static *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
}

@keyframes fx-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fx-grow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes fx-pick {
    from {
        background: transparent;
        border-color: var(--pl-line);
    }

    to {
        background: var(--pl-accent-soft);
        border-color: var(--pl-accent);
    }
}

@keyframes fx-tick {
    from {
        background: transparent;
        border-color: var(--pl-line);
        color: transparent;
    }

    to {
        background: var(--cobalt-blue);
        border-color: var(--cobalt-blue);
        color: var(--white);
    }
}

@keyframes fx-shimmer {
    to {
        background-position: -200% 0;
    }
}

@keyframes fx-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 37, 222, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 37, 222, 0.12);
    }
}

@keyframes fx-blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .pl-hero--split,
    .pl-row,
    .pl-row--flip {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .pl-row--flip .pl-row-copy {
        order: 0;
    }
}

@media (max-width: 767.98px) {
    .pl-hero--split .pl-visual,
    .pl-stage-frame,
    .pl-wide-visual {
        padding: 14px;
    }

    .pl-journey {
        gap: 48px;
    }

    .pl-row-copy h3 {
        font-size: 24px;
    }

    .fx {
        padding: 14px;
    }

    .fx-firms,
    .fx-candidates,
    .fx-tiles {
        grid-template-columns: 1fr;
    }

    .fx-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .fx-kpis > :nth-child(3) {
        display: none;
    }

    .fx-tr {
        grid-template-columns: var(--fx-cols-sm, var(--fx-cols));
    }

    .fx-tr > .fx-hide-sm {
        display: none;
    }

    .fx-track {
        grid-template-columns: 100px 1fr 72px;
    }

    .fx-callout {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-caret::after {
        animation: none;
    }
}
/* Custom styles migrated from shared/_custom_css.html.slim */

:root {
    --lg-tertiary-bg: #faf9f7;
    --lg-tertiary-bg-rgb: 250, 249, 247;
    --lg-secondary-bg: #f1f2ed;
    --lg-secondary-bg-rgb: 241, 242, 237;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0b1020;
    --bs-body-bg-rgb: 11, 16, 32;
    --bs-body-color: #e5e7eb;
    --bs-body-color-rgb: 229, 231, 235;
    --bs-emphasis-color: #f8fafc;
    --bs-emphasis-color-rgb: 248, 250, 252;
    --bs-secondary-bg: #111827;
    --bs-secondary-bg-rgb: 17, 24, 39;
    --bs-tertiary-bg: #0f172a;
    --bs-tertiary-bg-rgb: 15, 23, 42;
    --bs-border-color: #263244;
    --bs-border-color-translucent: rgba(148, 163, 184, 0.18);
    --bs-card-bg: #111827;
    --bs-card-border-color: #263244;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] main,
[data-bs-theme="dark"] .main-content {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .bg-body {
    background-color: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] .bg-body-secondary {
    background-color: var(--bs-secondary-bg) !important;
}

[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: var(--bs-tertiary-bg) !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .list-group-item {
    background-color: #111827;
    border-color: #263244;
}

[data-bs-theme="dark"] .navbar,
[data-bs-theme="dark"] .sidebar-wrapper {
    background-color: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-white {
    background-color: var(--bs-secondary-bg) !important;
}

[data-bs-theme="dark"] .text-dark {
    color: var(--bs-emphasis-color) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #94a3b8;
}

[data-bs-theme="dark"] .navbar-actions .btn-light,
[data-bs-theme="dark"] .navbar-mobile-actions .btn-light.mobile-action-button {
    background-color: transparent !important;
    border-color: rgba(248, 250, 252, 0.35) !important;
    color: var(--bs-emphasis-color) !important;
}

[data-bs-theme="dark"] .navbar-actions .btn-light:hover,
[data-bs-theme="dark"] .navbar-mobile-actions .btn-light.mobile-action-button:hover {
    background-color: rgba(248, 250, 252, 0.08) !important;
    border-color: rgba(248, 250, 252, 0.55) !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: #111827;
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-striped-bg: #141d2f;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.1);
    --bs-table-hover-color: var(--bs-emphasis-color);
}

[data-bs-theme="dark"] .table > :not(caption) > * > * {
    background-color: var(--bs-table-bg);
    border-bottom-color: var(--bs-table-border-color);
    color: var(--bs-table-color);
}

[data-bs-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table .bg-body-tertiary {
    background-color: #172033 !important;
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: var(--bs-table-hover-bg);
}

[data-bs-theme="dark"] .table tbody tr:hover > * {
    background-color: var(--bs-table-hover-bg);
}

.rfp-progress-container {
    /* Half a marker (10px) plus breathing room, so endpoint markers and their
       centered labels never clip the container. Steps and the track both
       derive their geometry from this one value. */
    --rfp-track-inset: 12px;
    position: relative;
    height: 56px;
}

.rfp-progress-container .progress {
    height: 4px !important;
    position: absolute;
    top: 9px;
    left: var(--rfp-track-inset);
    right: var(--rfp-track-inset);
    z-index: 1;
    background-color: #e9ecef;
}

/* One step (marker + label), centered on its track fraction — the same
   fraction the fill width uses, keeping bar and markers aligned. */
.rfp-step-abs {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

.rfp-step-abs .rfp-step-label {
    white-space: nowrap;
}

/* Edge steps anchor flush to the track ends instead of centering, so their
   nowrap labels can't overflow the container at narrow widths. The half-marker
   negative margin keeps the marker itself centered on the track joint. */
.rfp-step-abs-first {
    transform: none;
    text-align: left;
}

.rfp-step-abs-first .rfp-step-marker {
    margin-left: -10px;
}

.rfp-step-abs-last {
    transform: translateX(-100%);
    text-align: right;
}

.rfp-step-abs-last .rfp-step-marker {
    margin-right: -10px;
}

/* On the narrowest phones the nowrap labels can still collide (worst case:
   the vendor stepper's six stages); shrink them just enough to keep clear. */
@media (max-width: 400px) {
    .rfp-step-abs .rfp-step-label {
        font-size: 10px !important;
        letter-spacing: -0.01em;
    }
}

.rfp-progress-container .progress-bar {
    height: 4px !important;
    z-index: 2;
    background-color: var(--bs-primary);
}

.rfp-step-wrapper {
    flex: 1;
    z-index: 3;
    position: relative;
}

.rfp-step-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #adb5bd;
    border: 3px solid #ffffff;
    margin: 0 auto;
    position: relative;
}

.rfp-step-marker.completed,
.rfp-step-marker.active {
    background-color: var(--bs-primary);
}

.rfp-step-marker.active {
    animation: rfp-progress-pulse 2s infinite;
}

.rfp-step-label {
    color: #6c757d;
    white-space: nowrap;
}

.rfp-step-label.active-text {
    font-weight: 700;
    color: #000000;
}

@keyframes rfp-progress-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

[data-bs-theme="dark"] .rfp-progress-container .progress {
    background-color: #263244 !important;
}

[data-bs-theme="dark"] .rfp-progress-container .progress-bar {
    background-color: #60a5fa !important;
}

[data-bs-theme="dark"] .rfp-step-marker {
    background-color: #475569 !important;
    border-color: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] .rfp-step-marker.completed,
[data-bs-theme="dark"] .rfp-step-marker.active {
    background-color: #60a5fa !important;
}

[data-bs-theme="dark"] .rfp-step-label {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .rfp-step-label.active-text {
    color: var(--bs-emphasis-color) !important;
}

/* Hover-lift card treatment + clamped compact-card text, shared by the RFP
   index cards (light-mode base; the dark-mode hover override follows). */
.interactive-card {
    transition: all 0.15s ease-in-out;
}

.interactive-card:hover {
    border-color: #007bff;
    background-color: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.compact-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.compact-card-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

[data-bs-theme="dark"] .interactive-card:hover {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

[data-bs-theme="dark"] .card.cursor-pointer,
[data-bs-theme="dark"] .template-card {
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .card.cursor-pointer:hover,
[data-bs-theme="dark"] .template-card:hover {
    background-color: #172033 !important;
    border-color: #3b82f6 !important;
}

[data-bs-theme="dark"] .card.selected,
[data-bs-theme="dark"] .template-card.selected {
    background-color: rgba(59, 130, 246, 0.18) !important;
    border-color: #3b82f6 !important;
    color: var(--bs-emphasis-color);
}

[data-bs-theme="dark"] .card.selected .text-muted,
[data-bs-theme="dark"] .template-card.selected .text-muted {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .badge.bg-body-secondary.text-muted,
[data-bs-theme="dark"] .badge.bg-info-subtle.text-primary {
    background-color: #111827 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .badge.bg-body-secondary.text-muted:hover,
[data-bs-theme="dark"] .badge.bg-info-subtle.text-primary:hover {
    background-color: #172033 !important;
    border-color: #3b82f6 !important;
    color: var(--bs-emphasis-color) !important;
}

[data-bs-theme="dark"] #welcome-lex-link,
[data-bs-theme="dark"] .welcome-secondary-card {
    background-color: var(--bs-secondary-bg) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] #welcome-lex-link:hover,
[data-bs-theme="dark"] .welcome-secondary-card:hover {
    background-color: #172033 !important;
    border-color: #3b82f6 !important;
}

@font-face {
    font-family: "Legalio";
    src: url(/fonts/LayGrotesk-Medium.woff2) format("woff2"),
         url(/fonts/LayGrotesk-Medium.woff) format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.card-title, .font-title, .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.02em;
}

.masthead-title {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.04em;
    font-size: 3.25rem;
    line-height: 100%;
}

.masthead-subtitle {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.04em;
    font-size: 2.5rem;
    line-height: 100%;
}

@media (max-width: 1200px) {
    .masthead-title {
        font-size: 3rem;
    }
    .masthead-subtitle {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .masthead-title {
        font-size: 2.5rem;
    }
    .masthead-subtitle {
        font-size: 1.5rem;
    }
}
@media (max-width: 576px) {
    .masthead-title {
        font-size: 2rem;
    }
    .masthead-subtitle {
        font-size: 1.25rem;
    }
}

/* ============================================================
   Legal.io — Design System v2 foundation
   Namespaced tokens (:root custom properties) + .ds-* component
   classes translated from the DS React primitives. Safe app-wide:
   the tokens do nothing until a .ds-* class (or an opted-in page)
   references them, and every class is prefixed .ds-.

   Source: design_system_v2 tokens/ + components/.
   Fonts: display uses the already-loaded "Legalio" face (the
   licensed Lay Grotesk Medium); body uses "Inter".
   ============================================================ */

:root {
    /* ---- Brand ---- */
    --midnight-navy: #050911;
    --cobalt-blue:   #0025DE;
    --light-blue:    #85A9E3;
    --white:         #FFFFFF;

    /* ---- Beige (warm neutrals) ---- */
    --beige-01: #FAF9F7;
    --beige-02: #F1F2EE;
    --beige-03: #DAD5D1;
    --beige-04: #B6B0A6;

    /* ---- Gray ramp (1 = lightest, 10 = darkest) ---- */
    --gray-1:  #F5F6F5;
    --gray-2:  #EAEBEA;
    --gray-3:  #DCDDDC;
    --gray-4:  #C8C9C8;
    --gray-5:  #A3A3A3;
    --gray-6:  #818281;
    --gray-7:  #5A5B5A;
    --gray-8:  #484948;
    --gray-9:  #2B2B2B;
    --gray-10: #080908;

    /* ---- Cobalt tints (hover/press/fills) ---- */
    --cobalt-hover: #0020BE;
    --cobalt-050:   #EAEEFF;
    --cobalt-100:   #D3DBFF;

    /* ---- Surfaces ---- */
    --surface-page:    var(--beige-01);
    --surface-card:    var(--white);
    --surface-raised:  var(--white);
    --surface-sunken:  var(--beige-02);
    --surface-inverse: var(--midnight-navy);
    --surface-accent:  var(--cobalt-blue);

    /* ---- Text ---- */
    --text-primary:   var(--midnight-navy);
    --text-secondary: var(--gray-7);
    --text-tertiary:  var(--gray-6);
    --text-disabled:  var(--gray-5);
    --text-inverse:   var(--white);
    --text-accent:    var(--cobalt-blue);
    --text-on-accent: var(--white);

    /* ---- Borders / lines ---- */
    --border-subtle:  var(--gray-3);
    --border-default: var(--gray-4);
    --border-strong:  var(--gray-6);
    --border-inverse: rgba(255, 255, 255, 0.16);
    --border-accent:  var(--cobalt-blue);

    /* ---- Action ---- */
    --action-primary:       var(--cobalt-blue);
    --action-primary-hover: var(--cobalt-hover);
    --action-secondary:     var(--midnight-navy);
    --focus-ring:           var(--cobalt-blue);

    /* ---- Type families ---- */
    --font-display: "Legalio", "Helvetica Neue", Arial, sans-serif;
    --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

    /* ---- Weights ---- */
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;

    /* ---- Display sizes ---- */
    --text-display-xl: 88px;
    --text-display-lg: 64px;
    --text-display-md: 48px;
    --text-display-sm: 36px;

    /* ---- Text sizes ---- */
    --text-xl:  24px;
    --text-lg:  20px;
    --text-md:  17px;
    --text-sm:  15px;
    --text-xs:  14px;
    --text-2xs: 12px;

    /* ---- Line heights ---- */
    --lh-display: 0.98;
    --lh-tight:   1.1;
    --lh-snug:    1.2;
    --lh-normal:  1.5;
    --lh-relaxed: 1.6;

    /* ---- Letter-spacing ---- */
    --tracking-eyebrow:  0.03em;
    --tracking-display: -0.04em;
    --tracking-body:    -0.03em;
    --tracking-tight:   -0.02em;

    /* ---- Semantic type roles ---- */
    --type-eyebrow-size:    var(--text-xs);
    --type-eyebrow-weight:  var(--fw-semibold);
    --type-eyebrow-spacing: var(--tracking-eyebrow);
    --type-cta-size:        var(--text-lg);
    --type-cta-weight:      var(--fw-medium);
    --type-cta-spacing:     var(--tracking-body);

    /* ---- Spacing (8pt scale) ---- */
    --space-0:  0;
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* ---- Layout ---- */
    --container-max: 1240px;
    --container-pad: 24px;
    --section-gap:   96px;
    --grid-gutter:   24px;

    /* ---- Radius ---- */
    --radius-xs:   4px;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-2xl:  32px;
    --radius-pill: 999px;

    /* ---- Border widths ---- */
    --border-width:       1px;
    --border-width-thick: 1.5px;

    /* ---- Shadows (soft, cool-neutral) ---- */
    --shadow-xs: 0 1px 2px rgba(5, 9, 17, 0.05);
    --shadow-sm: 0 1px 3px rgba(5, 9, 17, 0.06), 0 1px 2px rgba(5, 9, 17, 0.04);
    --shadow-md: 0 4px 12px rgba(5, 9, 17, 0.07), 0 2px 4px rgba(5, 9, 17, 0.04);
    --shadow-lg: 0 12px 32px rgba(5, 9, 17, 0.10), 0 4px 8px rgba(5, 9, 17, 0.04);
    --shadow-xl: 0 24px 60px rgba(5, 9, 17, 0.14);

    /* ---- Focus ---- */
    --focus-ring-width: 3px;
    --focus-ring-color: rgba(0, 37, 222, 0.35);

    /* ---- Motion ---- */
    --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast:      120ms;
    --dur-normal:    200ms;
    --dur-slow:      360ms;
}

/* ============================================================
   Type helpers
   ============================================================ */
.ds-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--cobalt-blue);
    display: inline-block;
}

.ds-display-md {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-display-md);
    line-height: var(--lh-display);
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
}

.ds-display-sm {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-display-sm);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
}

.ds-h2 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-xl);
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
}

.ds-h3 {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-lg);
    line-height: var(--lh-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
}

.ds-body {
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: var(--lh-normal);
    letter-spacing: var(--tracking-body);
    color: var(--text-secondary);
}

.ds-text-muted { color: var(--text-tertiary); }

/* ============================================================
   Button — pill, display-font label, cobalt primary
   ============================================================ */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: var(--text-md);
    letter-spacing: var(--tracking-body);
    line-height: 1;
    border-radius: var(--radius-pill);
    border: var(--border-width-thick) solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--dur-fast) var(--ease-standard),
                border-color var(--dur-fast) var(--ease-standard),
                color var(--dur-fast) var(--ease-standard),
                transform var(--dur-fast) var(--ease-standard);
}
.ds-btn:active { transform: scale(0.97); }
.ds-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
}

/* Sizes */
.ds-btn--sm { height: 36px; padding: 0 16px; font-size: var(--text-sm); gap: 8px; }
.ds-btn--md { height: 46px; padding: 0 22px; font-size: var(--text-md); gap: 9px; }
.ds-btn--lg { height: 56px; padding: 0 30px; font-size: var(--text-lg); gap: 10px; }

/* Variants */
.ds-btn--primary {
    background: var(--cobalt-blue);
    color: var(--white);
    border-color: var(--cobalt-blue);
}
.ds-btn--primary:hover {
    background: var(--cobalt-hover);
    border-color: var(--cobalt-hover);
    color: var(--white);
}
.ds-btn--secondary {
    background: var(--white);
    color: var(--midnight-navy);
    border-color: var(--gray-4);
}
.ds-btn--secondary:hover { background: var(--beige-01); color: var(--midnight-navy); }
.ds-btn--ghost {
    background: transparent;
    color: var(--midnight-navy);
    border-color: transparent;
}
.ds-btn--ghost:hover { background: var(--beige-02); color: var(--midnight-navy); }
.ds-btn--inverse {
    background: var(--white);
    color: var(--midnight-navy);
    border-color: var(--white);
}
.ds-btn--inverse:hover { background: var(--beige-01); color: var(--midnight-navy); }

/* ============================================================
   Card — white surface, subtle border, soft shadow, hover lift
   ============================================================ */
.ds-card {
    background: var(--white);
    border: var(--border-width) solid var(--gray-3);
    box-shadow: var(--shadow-md);
    color: var(--midnight-navy);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: box-shadow var(--dur-normal) var(--ease-standard),
                transform var(--dur-normal) var(--ease-standard);
}
.ds-card--flat { box-shadow: none; }
.ds-card--beige {
    background: var(--beige-02);
    border-color: var(--beige-03);
    box-shadow: none;
}
.ds-card--navy {
    background: var(--midnight-navy);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}
.ds-card--hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================================================
   Tag — feature/category pill
   ============================================================ */
.ds-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--text-sm);
    letter-spacing: -0.01em;
    line-height: 1;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    background: var(--white);
    color: var(--midnight-navy);
    border: var(--border-width) solid var(--gray-4);
}
.ds-tag--sm { font-size: 13px; padding: 5px 12px; gap: 6px; }
.ds-tag--solid { background: var(--cobalt-blue); color: var(--white); border-color: var(--cobalt-blue); }
.ds-tag--soft  { background: var(--cobalt-050); color: var(--cobalt-blue); border-color: transparent; }
.ds-tag--navy  { background: var(--midnight-navy); color: var(--white); border-color: var(--midnight-navy); }

/* ============================================================
   Badge — small status chip
   ============================================================ */
.ds-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: 12px;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 5px 9px;
    border-radius: var(--radius-xs);
    background: var(--gray-2);
    color: var(--gray-8);
}
.ds-badge--accent  { background: var(--cobalt-050); color: var(--cobalt-blue); }
.ds-badge--success { background: #E4F3EA; color: #1E7A47; }
.ds-badge--warning { background: #FBEFD6; color: #8A5A12; }
.ds-badge--inverse { background: var(--midnight-navy); color: var(--white); }

/* ============================================================
   Stat — big-number statistic block
   ============================================================ */
.ds-stat__value {
    font-family: var(--font-display);
    font-weight: var(--fw-medium);
    font-size: 80px;
    line-height: 0.95;
    letter-spacing: var(--tracking-display);
    color: var(--midnight-navy);
}
.ds-stat--md .ds-stat__value { font-size: 56px; }
.ds-stat--sm .ds-stat__value { font-size: 40px; }
.ds-stat__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    letter-spacing: -0.01em;
    color: var(--gray-7);
}

/* ============================================================
   Input / Select — 1.5px gray-4 border, cobalt focus ring
   ============================================================ */
.ds-input,
.ds-select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--midnight-navy);
    background: var(--white);
    border: var(--border-width-thick) solid var(--gray-4);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--dur-fast) var(--ease-standard),
                box-shadow var(--dur-fast) var(--ease-standard);
}
.ds-select {
    padding: 0 40px 0 14px;
    appearance: none;
    cursor: pointer;
}
.ds-input:focus,
.ds-select:focus {
    border-color: var(--cobalt-blue);
    box-shadow: 0 0 0 3px var(--focus-ring-color);
}
.ds-input--sm,
.ds-select--sm { height: 38px; }
.ds-input--lg,
.ds-select--lg { height: 54px; }
/* Styles scoped to the Admin Matters New page */
.admin-matters-new .template-card {
    transition: all 0.2s ease-in-out;
}

.admin-matters-new .template-card:hover {
    border: 1px solid #007bff; /* Blue border */
    background-color: #e7f1ff; /* Light blue background */
}

.admin-matters-new .template-card.selected,
.admin-matters-new .card.selected {
    border: 1px solid #007bff; /* Thin blue border */
    background-color: #e7f1ff; /* Ensure light blue background */
}

.admin-matters-new .templates-modal .modal-dialog {
    max-width: 900px;
}

.admin-matters-new .see-more-link {
    color: #007bff;
    cursor: pointer;
}

.admin-matters-new .see-more-link:hover {
    text-decoration: underline;
}

/* Job Description Tools Styles */
.admin-matters-new #aiJobDescriptionContent {
    max-height: 300px;
    overflow-y: auto;
}

.admin-matters-new #aiJobDescriptionContent h4 {
    color: #007bff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.admin-matters-new #aiJobDescriptionContent ul {
    padding-left: 1.5rem;
}

.admin-matters-new #aiJobDescriptionContent li {
    margin-bottom: 0.25rem;
}

.admin-upload-inline-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    line-height: 1;
    vertical-align: text-bottom;
}

.admin-mapping-card {
    border: 1px solid #e6edf5;
    border-radius: 12px;
}

.admin-mapping-card--mapped {
    border: 2px solid #b8f0c2 !important;
    box-shadow: 0 0 0 3px rgba(184, 240, 194, 0.25) !important;
}

.admin-mapping-auto-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.admin-mapping-auto-pill__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d6f3db;
    color: #2e7d32;
    font-size: 12px;
    line-height: 1;
}

.admin-mapping-required-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #f7c26a;
    background: #fff8ea;
    color: #b35b00;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.admin-mapping-samples {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.admin-mapping-samples li {
    margin-bottom: 4px;
}

.admin-mapping-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.admin-mapping-select {
    border-radius: 8px;
    border-color: #e6edf5;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 44px;
    min-height: 48px;
}

.admin-mapping-select.admin-mapping-select--mapped {
    border-color: #b8f0c2 !important;
    border-width: 2px !important;
    border-style: solid !important;
    background-color: #f4fff6 !important;
    padding-left: 62px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    color: #1f4d2b;
    box-shadow: 0 0 0 2px rgba(184, 240, 194, 0.25);
}

.admin-mapping-select,
.admin-mapping-select:focus {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
}

.admin-mapping-select-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.admin-expiry-card {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 12px;
}
/* Benchmark Rates: the one stylesheet for /benchmark, /benchmark/firms, /benchmark/compare,
   /benchmark/detail, /rates/:id/rate-cards(/detailed) and the Rates card on /rates/:id.
   Shared tokens and components come first, then each page's own additions, then every
   phone rule in one block at the end (so it follows the rules it overrides).
   Rendered by app/views/benchmark_rates/*; positions and tones come from
   Services::RateCards::BenchmarkDisplay. Every class is prefixed bench- so nothing else
   in the app shifts.

   This file lives in pages/ so require_tree loads it after legalio_ds.css, whose tokens
   it maps onto. Chart colours in controllers/utils/bench_chart_theme.js read the same
   --bench-* variables. */

:root {
    /* mapped to the design system */
    --bench-ink:            var(--text-primary);
    --bench-text-2:         var(--gray-8);
    --bench-muted:          var(--text-secondary);
    --bench-faint:          var(--text-tertiary);
    --bench-page:           var(--surface-page);
    --bench-card:           var(--surface-card);
    --bench-card-border:    #E4E4DF;
    --bench-control-border: var(--border-default);
    --bench-rule:           #F1F1EF;
    --bench-rule-strong:    #EEEEEA;
    --bench-link:           var(--cobalt-blue);
    --bench-link-hover:     #001A9E;
    --bench-chip-set-bg:    #EEF1FF;

    /* over / under signal */
    --bench-over:           #C2410C;
    --bench-over-bg:        #FDE6D2;
    --bench-over-text:      #8A3A06;
    --bench-under:          #0025DE;
    --bench-under-bg:       #E1E7FF;
    --bench-under-text:     #001A9E;
    --bench-level-bg:       #F1F1EF;
    --bench-level-text:     #3A3D45;

    /* range strips and shading: the inner band (25th–75th) over the lighter outer one (10th–90th) */
    --bench-band:           #93A6F4;
    --bench-band-outer:     #DCE3FD;
    --bench-market:         #F1F1EF;
    --bench-row-hover:      #FAFAF8;
    --bench-row-selected:   #F3F5FF;
    --bench-slate:          #5B5E66;  /* the quiet third series, "Market (firm)" */
    --bench-tile-bg:        #E0F2FE;
    --bench-tile-text:      #1D4ED8;

    /* type: Inter for everything but page titles, which keep the Legalio face */
    --bench-font:           var(--font-body);
    --bench-font-title:     var(--font-display);
    --bench-h1:             30px;
    --bench-headline:       20px;
    --bench-section:        18px;
    --bench-body:           14px;
    --bench-label:          11px;

    /* shape */
    --bench-radius-card:    16px;
    --bench-radius-strip:   12px;
    --bench-radius-control: 8px;
    --bench-radius-pill:    6px;
    --bench-control-h:      34px;
    --bench-main-max:       1180px;
    --bench-shadow-menu:    0 16px 40px rgba(11, 13, 18, 0.16);
    --bench-focus:          0 0 0 var(--focus-ring-width) var(--focus-ring-color);
}

/* The app's dark theme is internal-only (admins, see layouts/application); remap the
   bench tokens so staff using it get readable cards rather than white blocks. */
[data-bs-theme="dark"] {
    --bench-ink:            #E5E7EB;
    --bench-text-2:         #CBD5E1;
    --bench-muted:          #94A3B8;
    --bench-faint:          #64748B;
    --bench-card:           #111827;
    --bench-card-border:    #263244;
    --bench-control-border: #334155;
    --bench-rule:           #1F2937;
    --bench-rule-strong:    #263244;
    --bench-link:           #8EA2FF;
    --bench-link-hover:     #B4C2FF;
    --bench-chip-set-bg:    #1E2A5A;
    --bench-over-bg:        #4A2410;
    --bench-over-text:      #FDBA8C;
    --bench-under:          #6B83FF;
    --bench-under-bg:       #1E2A5A;
    --bench-under-text:     #B4C2FF;
    --bench-level-bg:       #1F2937;
    --bench-level-text:     #CBD5E1;
    --bench-band:           #3B4F9E;
    --bench-band-outer:     #1E2950;
    --bench-market:         #1A2230;
    --bench-row-hover:      #162033;
    --bench-row-selected:   #1A2448;
    --bench-slate:          #94A3B8;
    --bench-tile-bg:        #0C2A3F;
    --bench-tile-text:      #7DD3FC;
}

/* ---------- page shell ---------- */

.bench-page {
    background: var(--bench-page);
}

.bench {
    font-family: var(--bench-font);
    font-size: var(--bench-body);
    line-height: 1.45;
    color: var(--bench-ink);
}

.bench-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: var(--bench-main-max);
    margin: 0 auto;
    padding: 14px 28px 56px;
    box-sizing: border-box;
}

/* Cards that load in a Turbo Frame are children of the frame, not of .bench-main, so the frame
   stacks them with the same gap (nested frames too). An empty frame takes no room. */
.bench-main turbo-frame {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.bench-main turbo-frame:empty {
    display: none;
}

.bench-title {
    margin: 0;
    font-family: var(--bench-font-title);
    font-size: var(--bench-h1);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--bench-ink);
}

.bench-intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bench a.bench-link,
.bench .bench-link {
    color: var(--bench-link);
    font-weight: 600;
    text-decoration: none;
}

.bench a.bench-link:hover {
    color: var(--bench-link-hover);
    text-decoration: underline;
}

/* ---------- section header with tabs ---------- */

.bench-section-header {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 28px;
    background: var(--bench-card);
    border-bottom: 1px solid var(--bench-card-border);
    font-family: var(--bench-font);
    font-size: var(--bench-body);
}

.bench-section-header__title {
    align-self: center;
    margin: 0 18px 0 0;
    padding: 12px 0;
    font-family: var(--bench-font-title);
    font-size: var(--bench-section);
    font-weight: 600;
    color: var(--bench-ink);
}

.bench-tabs {
    display: flex;
    gap: 4px;
}

.bench-tab {
    display: block;
    padding: 14px 14px 12px;
    border-bottom: 2px solid transparent;
    color: var(--bench-muted);
    text-decoration: none;
    white-space: nowrap;
}

.bench-tab:hover {
    color: var(--bench-ink);
}

.bench-tab[aria-current="page"] {
    border-bottom-color: var(--bench-ink);
    color: var(--bench-ink);
    font-weight: 600;
}

.bench-tab:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
    border-radius: var(--radius-xs);
}

.bench-section-header__aside {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    align-self: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--bench-muted);
}

/* ---------- filter sentence ---------- */

.bench-sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: var(--bench-body);
    color: var(--bench-muted);
}

.bench-sentence__word {
    white-space: nowrap;
}

.bench-sentence__slot {
    display: inline-flex;
    min-width: 180px;
}

.bench-chip {
    display: inline-flex;
    align-items: center;
    height: var(--bench-control-h);
    box-sizing: border-box;
    padding: 0 11px;
    border: 1px solid var(--bench-control-border);
    border-radius: var(--bench-radius-control);
    background: var(--bench-card);
    color: var(--bench-ink);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

/* Bootstrap's dropdown caret: the chips read as words, so no caret */
.bench-chip.dropdown-toggle::after {
    display: none;
}

.bench-chip:hover {
    border-color: var(--bench-ink);
}

.bench-chip[aria-expanded="true"] {
    border-color: var(--bench-ink);
    background: var(--bench-card);
}

.bench-chip.is-changed {
    border-color: var(--bench-link);
    background: var(--bench-chip-set-bg);
}

.bench-chip:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
}

/* a chip's menu, as on Bench: a 300–340px white panel, 12px corners, a soft deep shadow, 8px inset rows */
.bench-menu.dropdown-menu {
    min-width: 300px;
    max-width: 340px;
    max-height: min(70vh, 440px);
    overflow-y: auto;
    margin-top: 6px !important; /* Bootstrap's Popper offset is applied inline */
    padding: 8px;
    border: 1px solid var(--bench-card-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .06);
    font-size: var(--bench-body);
}

.bench-menu .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--bench-ink);
    line-height: 1.35;
    white-space: nowrap;
}

.bench-menu .dropdown-item > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.bench-menu .dropdown-item:hover,
.bench-menu .dropdown-item:focus {
    background: var(--bench-row-hover);
    color: var(--bench-ink);
}

/* the option the chip shows: a soft accent fill, accent text and a check, as on Bench */
.bench-menu .dropdown-item.active,
.bench-menu .dropdown-item:active {
    background: color-mix(in srgb, var(--bench-link) 9%, transparent);
    color: var(--bench-link);
    font-weight: 600;
}

.bench-menu .dropdown-item.active::after {
    flex: none;
    content: "\2713";
    font-weight: 600;
}

.bench-menu .dropdown-item.active .bench-menu__meta {
    margin-left: auto;
}

.bench-menu__meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--bench-muted);
}

/* A group heading in a chip menu (the cohort chip's "By AmLaw rank", the level chip's "Lawyers"): Bench's quiet
   sentence-case label, with a hairline above every heading but the first. */
.bench-menu__header {
    margin: 0;
    padding: 10px 10px 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--bench-muted);
}

.bench-menu li:not(:first-child):not(.bench-menu__search + li) > .bench-menu__header {
    margin-top: 6px;
    border-top: 1px solid var(--bench-rule);
    padding-top: 12px;
}

/* the search at the top of a long menu: stays put while the options scroll */
.bench-menu__search {
    position: sticky;
    top: -8px;
    z-index: 1;
    margin: -8px -8px 6px;
    padding: 8px 8px 6px;
    background: var(--bench-card);
}

.bench-menu__search .bi {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    margin-top: 1px;
    font-size: 13px;
    color: var(--bench-muted);
    pointer-events: none;
}

.bench-menu__search input {
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    padding: 0 10px 0 32px;
    border: 1px solid var(--bench-control-border);
    border-radius: 8px;
    background: var(--bench-card);
    color: var(--bench-ink);
    font: inherit;
    font-size: 14px;
}

.bench-menu__search input:focus {
    border-color: var(--bench-link);
    box-shadow: var(--bench-focus);
    outline: none;
}

.bench-menu__specific {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    color: var(--bench-link);
}

.bench-menu__none {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--bench-muted);
}

.bench-menu li[hidden] {
    display: none;
}

/* Reset: a borderless button with a reset icon, right-aligned beside the change menu */
.bench-sentence__clear.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--bench-muted);
    font-size: 14px;
    text-decoration: none;
}

.bench-sentence__clear.btn:hover,
.bench-sentence__clear.btn:focus-visible {
    background: rgba(0, 0, 0, .05);
    color: var(--bench-ink);
}

.bench-sentence__clear .bi {
    font-size: 15px;
}

.bench-sentence__aside {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* The sentence's words and chips. On phones they flow with the aside as one wrapping line (display: contents).
   From tablet up, beside an aside (Reset, the change menu), they sit in their own block, so the aside stays at
   the right of the first line. On a wide desktop (1400px up) the block never wraps: its long chips (a practice area, a cohort)
   shorten with an ellipsis until the sentence fits on one line. */
.bench-sentence__body {
    display: contents;
}

@media (min-width: 768px) {
    .bench-sentence:has(> .bench-sentence__aside) {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .bench-sentence:has(> .bench-sentence__aside) > .bench-sentence__body {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .bench-sentence:has(> .bench-sentence__aside) > .bench-sentence__aside {
        flex: none;
        min-height: var(--bench-control-h);
    }
}

@media (min-width: 1400px) {
    .bench-sentence:has(> .bench-sentence__aside) > .bench-sentence__body {
        flex-wrap: nowrap;
    }

    .bench-sentence__body > * {
        flex: none;
    }

    .bench-sentence__body > .dropdown:has(> .bench-chip.is-long) {
        flex: 0 1 auto;
        min-width: 96px;
    }

    .bench-sentence__body .bench-chip.is-long {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* A firm's Rates page names the firm and its comparison in words, which cannot shorten, so its sentence
       keeps wrapping: on one line it ran under Reset and off the page. */
    .bench-firm-rates .bench-sentence:has(> .bench-sentence__aside) > .bench-sentence__body {
        flex-wrap: wrap;
    }
}

/* ---------- cards ---------- */

.bench-card {
    background: var(--bench-card);
    border: 1px solid var(--bench-card-border);
    border-radius: var(--bench-radius-card);
    overflow: hidden;
}

.bench-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px 16px;
    padding: 20px 24px 6px;
}

.bench-card__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
}

/* the "?" beside a card title: the card's description as a tooltip */
.bench-tip {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--bench-faint);
    font-size: 14px;
    cursor: help;
}

.bench-tip:hover,
.bench-tip:focus-visible {
    color: var(--bench-ink);
    outline: none;
}

.bench-tip:focus-visible {
    box-shadow: var(--bench-focus);
}

/* a legend in a card's foot sits at the left; links and actions keep to the right */
/* a card footer's legend sits on the right, after any link or Show all, which sit on the left */
.bench-card__foot .bench-legend {
    order: 1;
    margin-left: auto;
}

.bench-card__title {
    margin: 0;
    font-family: var(--bench-font);
    font-size: var(--bench-section);
    font-weight: 600;
    line-height: 1.35;
    color: var(--bench-ink);
}

.bench-card__sub {
    font-size: 13px;
    color: var(--bench-muted);
}

.bench-card__body {
    padding: 0 24px 20px;
}

.bench-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--bench-rule-strong);
    font-size: 12px;
    color: var(--bench-muted);
}

.bench-card__foot .bench-link {
    font-size: 13px;
}

/* ---------- legend ---------- */

.bench-legend {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--bench-text-2);
}

.bench-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bench-key {
    display: inline-block;
    flex: none;
}

.bench-key--median { width: 2px; height: 14px; background: var(--bench-ink); }
.bench-key--dot    { width: 11px; height: 11px; border-radius: 50%; background: var(--bench-over); }
.bench-key--band   { width: 20px; height: 10px; border-radius: 2px; background: var(--bench-band); }
.bench-key--outer  { width: 20px; height: 10px; border-radius: 2px; background: var(--bench-band-outer); }
.bench-key--ring   { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bench-ink); opacity: 0.7; box-sizing: border-box; }
.bench-key--own    { width: 18px; height: 2px; background: var(--bench-over); opacity: 0.45; }

/* ---------- headline card ---------- */

.bench-headline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
}

.bench-headline__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 16px;
}

.bench-headline__sentence {
    margin: 0;
    font-family: var(--bench-font);
    font-size: var(--bench-headline);
    font-weight: 500;
    line-height: 1.4;
    color: var(--bench-ink);
}

/* The stat strip leads and the sentence reads as a quieter line under it. */
.bench-headline--stats-first .bench-headline__top {
    order: 1;
    align-items: center;
}

.bench-headline--stats-first .bench-headline__sentence {
    font-size: var(--bench-body);
    font-weight: 400;
    color: var(--bench-muted);
}

.bench-headline__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bench-link);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.bench-headline__action:hover {
    color: var(--bench-link-hover);
    text-decoration: underline;
}

/* The hero cards: the Overview's large strip, the Firms split */
.bench-hero {
    gap: 14px;
}

.bench-hero__chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 880px;
}

.bench-hero__chart .bench-strip {
    height: 34px;
}

.bench-hero__chart .bench-strip__outer,
.bench-hero__chart .bench-strip__band {
    height: 20px;
}

.bench-hero__chart .bench-strip__median {
    height: 34px;
}

.bench-hero__chart .bench-strip__dot {
    width: 20px;
    height: 20px;
    border-width: 3px;
}

.bench-hero__labels {
    position: relative;
    height: 22px;
}

.bench-hero__label {
    position: absolute;
    top: 0;
    font-family: var(--bench-font);
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--bench-ink);
}

.bench-hero__label.is-end {
    transform: translateX(-100%);
}

.bench-hero__label.is-middle {
    transform: translateX(-50%);
}

.bench-hero__label--you {
    color: var(--bench-over);
    font-weight: 600;
}

.bench-hero__chart .bench-axis {
    position: relative;
    display: block;
    height: 16px;
}

.bench-hero__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 20px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--bench-rule);
    font-family: var(--bench-font);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--bench-muted);
}

.bench-hero__fact {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
}

.bench-hero__fact-label {
    white-space: nowrap;
    font-weight: 500;
    color: var(--bench-ink);
}

.bench-split {
    display: flex;
    gap: 2px;
    height: 28px;
    max-width: 880px;
    overflow: hidden;
    border-radius: 6px;
}

.bench-split__segment {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    font-family: var(--bench-font);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bench-split__segment--over  { background: var(--bench-over-bg);  color: var(--bench-over-text); }
.bench-split__segment--under { background: var(--bench-under-bg); color: var(--bench-under-text); }
.bench-split__segment--level { background: var(--bench-level-bg); color: var(--bench-level-text); }

.bench-split__key {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    font-family: var(--bench-font);
    font-size: 13px;
    color: var(--bench-muted);
}

.bench-split__item b {
    font-weight: 600;
    color: var(--bench-ink);
}

.bench-split__swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 2px;
}

.bench-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--bench-rule-strong);
    border-radius: var(--bench-radius-strip);
    background: var(--bench-rule-strong); /* the 1px gap draws the dividers and survives wrapping */
}

.bench-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 12px 16px;
    background: var(--bench-card);
}

.bench-stat__eyebrow,
.bench-label {
    font-family: var(--bench-font);
    font-size: var(--bench-label);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.45;
    text-transform: uppercase;
    color: var(--bench-muted);
}

.bench-stat__eyebrow .fa-circle-question {
    margin-left: 4px;
    cursor: help;
}

.bench-stat__value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bench-ink);
    font-variant-numeric: tabular-nums;
}

.bench-stat__sub {
    font-size: 13px;
    color: var(--bench-text-2);
}

.bench-stat__sub .bench-link {
    font-size: 13px;
}

/* ---------- table: header and rows ---------- */

/* Rows are flex lines of fixed-width cells around one growing chart cell, so the header
   and every row line up as long as they use the same cell classes in the same order. */
.bench-table {
    overflow-x: auto;
}

.bench-table__inner {
    min-width: 900px;
}

.bench-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    border-top: 1px solid var(--bench-rule);
    background: var(--bench-card);
    color: var(--bench-ink);
    text-decoration: none;
}

.bench-row--head {
    padding-top: 12px;
    padding-bottom: 8px;
    border-top: 0;
    background: transparent;
}

a.bench-row {
    cursor: pointer;
}

a.bench-row:hover {
    background: var(--bench-row-hover);
    color: var(--bench-ink);
}

a.bench-row:focus-visible {
    outline: none;
    box-shadow: inset var(--bench-focus);
}

.bench-row.is-selected {
    background: var(--bench-row-selected);
    box-shadow: inset 3px 0 0 var(--bench-link);
}

.bench-row--strip {
    padding-top: 0;
    padding-bottom: 0;
}

.bench-cell {
    flex: none;
    min-width: 0;
}

.bench-cell--tick  { width: 20px; }
.bench-cell--tile  { width: 32px; }
.bench-cell--name  { width: 210px; }
.bench-cell--chart { flex: 1 1 0; min-width: 200px; container-type: inline-size; }
.bench-cell--pill  { width: 108px; }
.bench-cell--fig   { width: 92px; text-align: right; }
.bench-cell--count { width: 56px; text-align: right; }
.bench-cell--arrow { width: 24px; text-align: right; }
.bench-cell--median { width: 150px; }
.bench-cell--vs    { width: 96px; text-align: center; align-items: center; }

/* From tablet up the range strip shows the gap (your dot against the comparison's median), so the gap pill's
   column is not drawn: the percentage is in the row's hover card. Phones hide the strips, so there the pill
   stays as the row's only comparison. The market benchmark's list of entered rates keeps its pill. */
@media (min-width: 768px) {
    .bench-row .bench-cell.bench-cell--vs,
    .bench-row--head .bench-cell.bench-cell--vs.bench-label {
        display: none;
    }

    .bench-card--entered-rates .bench-row .bench-cell.bench-cell--vs,
    .bench-card--entered-rates .bench-row--head .bench-cell.bench-cell--vs.bench-label {
        display: flex;
    }
}

.bench-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bench-name__title {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bench-name__meta {
    font-size: 12px;
    color: var(--bench-muted);
}

.bench-fig {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--bench-text-2);
}

.bench-fig--strong {
    font-weight: 600;
    color: var(--bench-ink);
}

.bench-fig--muted {
    color: var(--bench-faint);
}

.bench-change {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--bench-ink);
}

.bench-change--flat,
.bench-change--none {
    color: var(--bench-faint);
}

/* ---------- index-row cells: median rate, vs (pill + percentile), rate change vs peers ---------- */

.bench-cell--median,
.bench-cell--vs {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* the rate change: a short figure, right-aligned under its "1Y Δ" header */
.bench-cell--change {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 76px;
    text-align: right;
}

/* the firm index (Firms tab): room for a full firm name, and a wider median cell for its
   "Partner · Assoc." line, on tighter gaps so the strip column keeps its room */
.bench-table--index .bench-row          { gap: 12px; }
.bench-table--index .bench-cell--name   { width: 230px; }
.bench-table--index .bench-cell--median { width: 190px; }

.bench-row--head .bench-cell--change {
    white-space: nowrap;
}

/* a strip column's header: its label over the dollar ticks */
.bench-cell--chart-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bench-median__figure {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bench-median__sub,
.bench-vs__pctile {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--bench-muted);
    font-variant-numeric: tabular-nums;
}

.bench-cell--change .bench-change {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.bench-cell--change .bench-change--flat,
.bench-cell--change .bench-change--none {
    font-weight: 400;
}

.bench-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--bench-ink);
    font-size: 16px;
}

/* the row chevron (Font Awesome light, as on the Jobs table): ink-coloured; a touch darker on hover */
.bench-chevron {
    display: block;
    opacity: .7;
    line-height: 1;
}

.bench-row:hover .bench-chevron,
a.bench-arrow:focus-visible .bench-chevron {
    opacity: 1;
}

.bench-row .bench-label {
    display: block;
}

a.bench-name,
a.bench-name:hover {
    color: var(--bench-ink);
    text-decoration: none;
}

a.bench-name:hover .bench-name__title {
    text-decoration: underline;
}

a.bench-arrow {
    text-decoration: none;
}

/* ---------- gap pill ---------- */

.bench-pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--bench-radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bench-pill--over  { background: var(--bench-over-bg);  color: var(--bench-over-text); }
.bench-pill--under { background: var(--bench-under-bg); color: var(--bench-under-text); }
.bench-pill--level { background: var(--bench-level-bg); color: var(--bench-level-text); }

.bench-too-few {
    font-size: 12px;
    color: var(--bench-faint);
    white-space: nowrap;
}

/* ---------- range strip and its axis ---------- */

.bench-axis {
    position: relative;
    display: block;
    height: 16px;
}

.bench-axis__tick {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* the end ticks stay inside the column */
.bench-axis__tick:first-child { transform: none; }
.bench-axis__tick:last-child  { transform: translateX(-100%); }

/* a narrow strip column labels every other tick, so the labels stay evenly spaced and never touch */
@container (max-width: 340px) {
    .bench-axis__tick:nth-child(even) { visibility: hidden; }
}

.bench-strip {
    position: relative;
    display: block;
    height: 52px;
}

/* the hairline every row sits on */
.bench-strip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bench-card-border);
}

.bench-strip__market {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--bench-market);
}

.bench-strip__outer,
.bench-strip__band {
    position: absolute;
    top: 50%;
    height: 12px;
    min-width: 2px;
    transform: translateY(-50%);
}

/* 10th–90th: the light band behind */
.bench-strip__outer {
    border-radius: 6px;
    background: var(--bench-band-outer);
}

/* 25th–75th: the darker band in front */
.bench-strip__band {
    border-radius: 3px;
    background: var(--bench-band);
}

.bench-strip__empty {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 14px;
    transform: translateY(-50%);
    border: 1px dashed var(--bench-control-border);
    border-radius: 3px;
    box-sizing: border-box;
}

.bench-strip__median {
    position: absolute;
    z-index: 1;
    top: 50%;
    width: 2px;
    height: 24px;
    transform: translate(-50%, -50%);
    background: var(--bench-ink);
}

.bench-strip__own {
    position: absolute;
    z-index: 2;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: var(--bench-over);
    opacity: 0.45;
}

.bench-strip__ring {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 11px;
    height: 11px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--bench-ink);
    border-radius: 50%;
    background: var(--bench-card);
    box-sizing: border-box;
    opacity: 0.7;
}

.bench-strip__dot {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--bench-card);
    border-radius: 50%;
    background: var(--bench-over);
    box-sizing: border-box;
}

/* a value off the axis sits at the edge as a half-open dot */
.bench-strip__dot.is-clamped {
    background: var(--bench-card);
    border-color: var(--bench-over);
}

.bench-strip__note {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    padding: 0 4px;
    background: var(--bench-card);
    font-size: 12px;
    color: var(--bench-faint);
}

/* ---------- firm initials tile ---------- */

.bench-tile {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--bench-radius-control);
    background: var(--bench-tile-bg);
    color: var(--bench-tile-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Firm tiles as client.pieter's firm rows (.bench-firm-avatar): 36px, 10px radius, the light-blue tile,
   no ring or padding, the logo contained; initials in ui-avatars' colours. The blank image a failed
   logo turns into is hidden, so the initials show. */
.bench-tile {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.bench-cell--tile {
    width: 36px;
}

.bench-tile--logo {
    position: relative;
    overflow: hidden;
}

.bench-tile__logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bench-tile-bg);
    border-radius: inherit;
    box-sizing: border-box;
}

.bench-tile__logo[src^="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="] {
    display: none;
}

/* ---------- trend chart card ---------- */

.bench-chart {
    position: relative;
    height: 340px;
}

/* ---------- compare: ticks, button, firm chips ---------- */

.bench-tick {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--bench-ink);
    cursor: pointer;
    vertical-align: middle;
}

.bench-tick:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.bench-tick:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
    border-radius: 4px;
}

.bench-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--bench-ink);
    border-radius: 10px;
    background: var(--bench-ink);
    color: var(--bench-card);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.bench-btn:not(:disabled):hover {
    opacity: 0.88;
    color: var(--bench-card);
}

.bench-btn:disabled,
.bench-btn[aria-disabled="true"] {
    border-color: var(--bench-card-border);
    background: var(--bench-level-bg);
    color: var(--bench-faint);
    cursor: default;
}

.bench-btn:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
}

.bench-firm-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bench-firm-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--bench-control-h);
    box-sizing: border-box;
    padding: 0 6px 0 14px;
    border: 1px solid var(--bench-control-border);
    border-radius: var(--radius-pill);
    background: var(--bench-card);
    color: var(--bench-ink);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
}

.bench-firm-chip__remove {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gray-3);
    border-radius: 50%;
    background: var(--gray-1);
    color: var(--bench-text-2);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

button.bench-firm-chip__remove {
    padding: 0;
    cursor: pointer;
}

/* the Firms tab's firm search: a wide search box that filters the list as you type, with the
   Filters and Compare buttons on its line; the ticked firms wrap on a line under it */
.bench-compare {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bench-compare__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}

.bench-compare__bar .bench-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
}

.bench-compare__field {
    position: relative;
    display: flex;
    flex: 1 1 280px;
    align-items: center;
}

/* the picked-firms line takes no room until a firm is ticked or the search narrows the list */
.bench-compare__picked:not(:has(.bench-firm-chip)):has(.bench-compare__count:empty) {
    display: none;
}

.bench-compare__icon {
    position: absolute;
    left: 16px;
    color: var(--bench-faint);
    pointer-events: none;
}

.bench-compare__search {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 16px 0 44px;
    border: 1px solid var(--bench-control-border);
    border-radius: 12px;
    background: var(--bench-card);
    color: var(--bench-ink);
    font: inherit;
    font-size: 15px;
}

.bench-compare__search:focus {
    outline: none;
    border-color: var(--bench-ink);
    box-shadow: var(--bench-focus);
}

.bench-compare__picked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bench-compare__count {
    color: var(--bench-muted);
    font-size: 13px;
}

/* "Show all N firms" at the foot of the list */
.bench-show-all {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bench-link);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bench-show-all:hover {
    color: var(--bench-link-hover);
    text-decoration: underline;
}

.bench-show-all[hidden] {
    display: none;
}

/* rows the search hides */
.bench-row[hidden] {
    display: none;
}

.bench-firm-chip__remove:hover {
    border-color: var(--bench-ink);
    color: var(--bench-ink);
}

.bench-firm-chip--add {
    padding: 0 14px;
    border-style: dashed;
    color: var(--bench-text-2);
    font-weight: 500;
    cursor: pointer;
}

.bench-firm-chip--add.dropdown-toggle::after {
    display: none;
}

.bench-firm-chip--add:hover,
.bench-firm-chip--add[aria-expanded="true"] {
    border-color: var(--bench-ink);
    color: var(--bench-ink);
}

/* ---------- tabbed card: views that share one place, picked by the toggle in the card header ---------- */

.bench-tabset {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.bench-tabset > [hidden],
.bench-tabset [data-bench-tabs-target="panel"][hidden] {
    display: none;
}

.bench-seg {
    display: inline-flex;
    flex: none;
    padding: 2px;
    border-radius: 9px;
    background: var(--bench-level-bg);
}

.bench-seg__option {
    padding: 5px 12px;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--bench-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.bench-seg__option[aria-pressed="true"] {
    background: var(--bench-card);
    color: var(--bench-ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(11, 13, 18, 0.08);
}

.bench-seg__option:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
}

/* ---------- leaving the page (bench-nav): dim at once, a bar runs under the header ---------- */

.bench-page.is-leaving .bench-main {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 120ms ease-out;
}

.bench-page.is-leaving .bench-section-header {
    position: relative;
    overflow: hidden;
}

.bench-page.is-leaving .bench-section-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40%;
    height: 2px;
    background: var(--bench-link);
    animation: bench-leaving 900ms ease-in-out infinite;
}

@keyframes bench-leaving {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    .bench-page.is-leaving .bench-section-header::after {
        animation: none;
        width: 100%;
    }
}

/* ---------- lazy card skeleton ---------- */

.bench-skeleton__line {
    display: block;
    width: 70%;
    height: 10px;
    margin: 4px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--gray-1) 0%, var(--gray-2) 50%, var(--gray-1) 100%);
    background-size: 200% 100%;
    animation: bench-shimmer 1.4s ease-in-out infinite;
}

.bench-skeleton__line--short { width: 45%; height: 8px; }
.bench-skeleton__line--bar   { width: 100%; height: 12px; }
.bench-skeleton__line--pill  { width: 72px; height: 22px; border-radius: var(--bench-radius-pill); }
.bench-skeleton__line--headline { width: 420px; max-width: 100%; height: 18px; margin: 6px 0; }

@keyframes bench-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bench-skeleton__line {
        animation: none;
    }
}

/* ---------- empty card note and sortable headings (Overview, Firms) ---------- */

.bench-empty-note {
    color: var(--bench-muted);
    font-size: 13px;
}

/* Sortable column headings on the Firms tab read as labels, not links */
.bench-sort,
.bench-sort:hover,
.bench-sort:focus-visible {
    color: inherit;
    text-decoration: none;
}

.bench-sort:hover {
    color: var(--bench-ink);
}

/* ---------- firm rate-cards pages (/rates/:id/rate-cards, /detailed), scoped under .bench-firm-rates ---------- */

/* name search in the filter sentence */
.bench-search {
    height: var(--bench-control-h);
    width: 220px;
    padding: 0 12px;
    border: 1px solid var(--bench-control-border);
    border-radius: var(--bench-radius-control);
    background: var(--bench-card);
    color: var(--bench-ink);
    font: inherit;
    font-size: 13px;
}

.bench-search:focus {
    outline: none;
    box-shadow: var(--bench-focus);
}

/* timekeeper table (detailed) */
.bench-tktable__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.bench-tktable__scroll {
    overflow-x: auto;
    margin-top: 8px;
}

.bench-tktable {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--bench-body);
    color: var(--bench-ink);
}

.bench-tktable th {
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--bench-rule-strong);
    font-size: var(--bench-label);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--bench-muted);
}

.bench-tktable td {
    padding: 12px 12px 12px 0;
    border-top: 1px solid var(--bench-rule);
    vertical-align: middle;
}

.bench-tktable th:first-child,
.bench-tktable td:first-child {
    padding-left: 24px;
}

.bench-tktable th:last-child,
.bench-tktable td:last-child {
    padding-right: 24px;
}

.bench-tktable tbody tr:hover {
    background: var(--bench-row-hover);
}

.bench-tktable a {
    color: inherit;
    text-decoration: none;
}

.bench-tktable__check {
    width: 44px;
}

.bench-tktable__fig {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* figures, dates and status hug their content, so the room left goes to the text columns
   (timekeeper, location, practice area) instead of opening wide empty columns */
.bench-tktable__fig,
.bench-tktable__fit {
    width: 1%;
    white-space: nowrap;
}

/* the rate change: right-aligned under its "1Y Δ" header, a gap after the rate */
.bench-tktable__change {
    padding-left: 20px;
}

.bench-tktable__change .bench-change {
    font-weight: 600;
}

.bench-tktable__change .bench-change--flat,
.bench-tktable__change .bench-change--none {
    font-weight: 400;
}

.bench-tktable__actions {
    width: 48px;
    text-align: right;
}

.bench-name__title--plain {
    font-weight: 400;
}

.bench-tktable__tag {
    display: inline-block;
    max-width: 220px;
    padding: 2px 8px;
    overflow: hidden;
    border-radius: var(--bench-radius-pill);
    background: var(--bench-level-bg);
    color: var(--bench-level-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bench-tktable__status {
    font-size: 12px;
    color: var(--bench-muted);
}

.bench-tktable__status::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

.bench-tktable__status--approved { color: var(--bench-ink); }
.bench-tktable__status--pending { color: var(--bench-over-text); }

.bench-card__foot .pagination {
    margin: 0;
}

.bench-tktable__unit {
    margin-left: 1px;
    font-size: 12px;
    font-weight: 400;
    color: var(--bench-muted);
}

/* ---------- Rates card on a firm's overview page (shared/_rates_card) ---------- */

.bench-rates-card .bench-card__head .bench-legend {
    padding-bottom: 6px;
}

.bench-rates-card__note,
.bench-rates-card__empty {
    margin: 4px 24px 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bench-row-hover);
    font-size: 13px;
    color: var(--bench-text-2);
}

.bench-rates-card__trend-head {
    margin-top: 8px;
    border-top: 1px solid var(--bench-rule-strong);
}

.bench-rates-card__chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    font-size: 13px;
    color: var(--bench-muted);
}

.bench-rates-card__chart-empty[hidden] {
    display: none;
}

/* ---------- Firm overview (/rates/:id): header context line, stats strip, About, empty Rates card, history and
   Locations cards. Every part is drawn only when the firm has data for it. ---------- */

/* the header is Bootstrap markup shared by every firm tab, so this line carries its own type */
.bench-firm-context {
    margin: 2px 0 4px;
    font-family: var(--bench-font);
    font-size: 14px;
    color: var(--bench-text-2);
}

.bench-firm-stats {
    margin-top: 0;
}

.bench-stat.bench-skeleton .bench-skeleton__line {
    margin: 3px 0;
}

.bench-firm-about__areas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 14px;
}

.bench-firm-about__area {
    padding: 3px 10px;
    border-radius: var(--bench-radius-pill);
    background: var(--bench-level-bg);
    color: var(--bench-level-text);
    font-size: 12px;
    line-height: 1.5;
}

.bench-firm-about__text {
    margin-top: 6px;
    font-size: var(--bench-body);
    line-height: 1.6;
    color: var(--bench-text-2);
}

.bench-firm-about__text p:last-child {
    margin-bottom: 0;
}

.bench-firm-about__toggle {
    padding: 0;
    border: 0;
    background: none;
    color: var(--bench-link);
    font: inherit;
    font-weight: 600;
}

.bench-firm-about__toggle:hover {
    color: var(--bench-link-hover);
    text-decoration: underline;
}

/* the Rates card with neither your rates nor the firm's market rates: one sentence and the action */
.bench-rates-card__none {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 4px 24px 20px;
}

.bench-rates-card__none-text {
    min-width: 0;
    flex: 1 1 320px;
}

.bench-rates-card__none-text p {
    margin: 0;
    color: var(--bench-text-2);
}

.bench-rates-card__none-text .bench-rates-card__cohort {
    margin-top: 4px;
    font-size: 13px;
    color: var(--bench-muted);
}

/* Attorneys, Revenue and Locations */
.bench-history-card .bench-card__head {
    align-items: center;
}

.bench-history-card__stats {
    margin: 6px 0 16px;
}

.bench-history-card__chart {
    position: relative;
    min-width: 0;
}

.bench-history-card__chart[hidden],
.bench-history-card__table[hidden] {
    display: none;
}

.bench-history-card__table {
    overflow-x: auto;
}

.bench-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.bench-history-table th,
.bench-history-table td {
    padding: 8px 12px;
    border-top: 1px solid var(--bench-rule);
    text-align: right;
    white-space: nowrap;
}

.bench-history-table th {
    border-top: 0;
}

.bench-history-table th:first-child,
.bench-history-table td:first-child {
    padding-left: 0;
    text-align: left;
}

.bench-locations__actions {
    display: flex;
    gap: 14px;
}

.bench-locations__action {
    padding: 0;
    border: 0;
    background: none;
    color: var(--bench-link);
    font-size: 13px;
    font-weight: 600;
}

.bench-locations__action:hover {
    color: var(--bench-link-hover);
    text-decoration: underline;
}

.bench-locations__search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--bench-control-h);
    margin: 0 0 12px;
    padding: 0 12px;
    border: 1px solid var(--bench-control-border);
    border-radius: var(--bench-radius-control);
    color: var(--bench-muted);
}

.bench-locations__search:focus-within {
    box-shadow: var(--bench-focus);
}

.bench-locations__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--bench-ink);
    font: inherit;
}

.bench-locations__list {
    overflow: hidden;
    border: 1px solid var(--bench-rule-strong);
    border-radius: var(--bench-radius-strip);
}

.bench-locations__country + .bench-locations__country {
    border-top: 1px solid var(--bench-rule-strong);
}

.bench-locations__head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: var(--bench-row-hover);
    color: var(--bench-ink);
    font: inherit;
    text-align: left;
}

.bench-locations__head:focus-visible {
    outline: none;
    box-shadow: inset var(--bench-focus);
}

.bench-locations__head .country-chevron {
    color: var(--bench-muted);
    transition: transform 150ms ease-out;
}

.bench-locations__head .country-chevron.is-open {
    transform: rotate(90deg);
}

.bench-locations__name {
    flex: 1;
    font-weight: 600;
}

.bench-locations__count {
    min-width: 24px;
    padding: 1px 8px;
    border-radius: var(--bench-radius-pill);
    background: var(--bench-level-bg);
    color: var(--bench-level-text);
    font-size: 12px;
    text-align: center;
}

.bench-locations__office {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 16px 8px 42px;
    border-top: 1px solid var(--bench-rule);
}

.bench-locations__office > i {
    margin-top: 3px;
    color: var(--bench-muted);
}

.bench-locations__city {
    font-weight: 500;
}

.bench-locations__address {
    font-size: 13px;
    color: var(--bench-muted);
}

/* ---------- Compare (/benchmark/compare): picked firms, add picker, clear ---------- */

.bench-compare-picks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bench-compare-add {
    width: 240px;
    max-width: 100%;
}

.bench-compare-add .select2-container .bench-compare-add__selection,
.bench-compare-add .select2-container--bootstrap-5 .select2-selection {
    display: flex;
    align-items: center;
    height: var(--bench-control-h);
    min-height: var(--bench-control-h);
    padding: 0 32px 0 14px;
    border: 1px dashed var(--bench-control-border);
    border-radius: var(--bench-radius-pill);
    background-color: var(--bench-card);
    box-shadow: none;
    font-family: inherit;
    font-size: var(--bench-body);
}

.bench-compare-add .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder,
.bench-compare-add .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: var(--bench-text-2);
    font-weight: 500;
}

.bench-compare-add .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.bench-compare-add .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--bench-ink);
    box-shadow: none;
}

.bench-compare-add__dropdown {
    font-family: var(--bench-font);
    font-size: 13px;
}

.select2-dropdown.bench-compare-add__dropdown {
    min-width: 320px;
}

.select2-container--bootstrap-5 .bench-compare-add__dropdown .select2-results__options .select2-results__option {
    padding: 6px 12px;
    font-size: 13px;
}

.select2-container--bootstrap-5 .bench-compare-add__dropdown .select2-search .select2-search__field {
    font-size: 13px;
}

.bench-compare-add__dropdown .select2-results__group {
    padding: 8px 12px 4px;
    color: var(--bench-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Compare: empty state, per-level group rows, no-rates cell ---------- */

.bench-compare-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 24px;
}

.bench-compare-empty .bench-headline__sentence {
    margin: 0;
}

.bench-compare-empty .bench-card__sub {
    margin: 0 0 6px;
}

.bench-row.bench-compare-level {
    padding-top: 14px;
    padding-bottom: 6px;
    background: var(--bench-page);
}

.bench-compare-level__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bench-ink);
}

.bench-fig.bench-compare-none {
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
}

/* ---------- Rate cards tab (/benchmark/detail): timekeeper table ---------- */

.bench-cell--detail-level { width: 170px; }
.bench-cell--detail-place { width: 150px; }
.bench-cell--detail-practice { flex: 1 1 0; min-width: 140px; }

.bench-cell--detail-place:not(.bench-label),
.bench-cell--detail-practice:not(.bench-label) {
    font-size: 13px;
}
.bench-cell--detail-date { width: 110px; text-align: right; }
.bench-cell--detail-menu { width: 28px; text-align: right; }

.bench-detail-sub {
    display: block;
    overflow: hidden;
    font-size: 12px;
    color: var(--bench-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bench-detail-menu {
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--bench-muted);
    line-height: 1;
}

.bench-detail-menu:hover,
.bench-detail-menu[aria-expanded="true"] {
    color: var(--bench-ink);
}

.bench-detail-menu.dropdown-toggle::after {
    display: none;
}

a.bench-detail-link,
a.bench-detail-link:hover {
    color: inherit;
    text-decoration: none;
}

a.bench-detail-link:hover .bench-name__title {
    text-decoration: underline;
}

.bench-detail-empty {
    padding: 24px;
    border-top: 1px solid var(--bench-rule);
    color: var(--bench-muted);
}

.bench-detail-pages {
    padding: 12px 24px;
    border-top: 1px solid var(--bench-rule);
}

.bench-detail-pages .pagination {
    margin: 0;
}

.bench-detail-firm {
    width: 240px;
    max-width: 100%;
}

/* ---------- market benchmark (/benchmark/market, /benchmark/market/new) ---------- */

/* the section header's "+ Benchmark" on the form itself: the current page, not a link */
/* the headline's quiet line: the recommendation under the stats */
.bench-headline__note {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--bench-muted);
}

.bench-mkt-lede {
    margin: 0;
    color: var(--bench-muted);
}

/* the form page is one card, narrower than the tables */
.bench-mkt-narrow {
    max-width: 920px;
}

.bench-mkt-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bench-link);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.bench-mkt-text-btn:hover {
    color: var(--bench-link-hover);
    text-decoration: underline;
}

.bench-mkt-text-btn:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
    border-radius: var(--radius-xs);
}

/* rate rows: rate, practice area, level, remove */
.bench-mkt-entries {
    padding: 4px 24px 8px;
}

.bench-mkt-entry {
    display: grid;
    grid-template-columns: 170px minmax(0, 1.4fr) minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.bench-mkt-entry--head {
    padding: 4px 0 0;
}

.bench-mkt-entry__field {
    min-width: 0;
}

/* each field's label shows on phones, where the head row is hidden */
.bench-mkt-entry__label {
    display: none;
}

.bench-mkt-entry__remove {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--bench-radius-control);
    background: none;
    color: var(--bench-faint);
    font-size: 16px;
}

button.bench-mkt-entry__remove:hover {
    background: var(--bench-level-bg);
    color: var(--bench-ink);
}

.bench-mkt-form.is-single button.bench-mkt-entry__remove {
    visibility: hidden;
}

.bench-mkt-add {
    padding: 6px 0 4px;
}

/* the $ … /hr rate field */
.bench-mkt-money {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--bench-control-border);
    border-radius: var(--bench-radius-control);
    background: var(--bench-card);
}

.bench-mkt-money:focus-within {
    border-color: var(--bench-ink);
    box-shadow: var(--bench-focus);
}

.bench-mkt-money__unit,
.bench-mkt-money__suffix {
    color: var(--bench-muted);
}

.bench-mkt-money__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 0 4px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--bench-ink);
    font: inherit;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    -moz-appearance: textfield;
}

.bench-mkt-money__input::-webkit-outer-spin-button,
.bench-mkt-money__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* Select2 fields drawn as bench controls */
.bench-mkt-form .select2-container--bootstrap-5 .select2-selection {
    display: flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--bench-control-border);
    border-radius: var(--bench-radius-control);
    background-color: var(--bench-card);
    box-shadow: none;
    font-family: var(--bench-font);
    font-size: var(--bench-body);
}

.bench-mkt-form .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.bench-mkt-form .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--bench-ink);
    box-shadow: var(--bench-focus);
}

.bench-mkt-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--bench-ink);
}

.bench-mkt-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: var(--bench-muted);
}

/* law firm and market */
.bench-mkt-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--bench-rule-strong);
}

.bench-mkt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.bench-mkt-field__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bench-ink);
}

.bench-mkt-field__optional {
    font-weight: 400;
    color: var(--bench-faint);
}

.bench-mkt-submit .bench-btn {
    padding: 10px 18px;
}

/* the distribution chart is a little lower than the trend chart */
.bench-chart.bench-mkt-chart {
    height: 300px;
}

/* closest and recent market rates: firm, level, office, year, rate */
.bench-mkt-cell--firm  { flex: 1 1 0; min-width: 220px; }
.bench-mkt-cell--level { width: 150px; }
.bench-mkt-cell--place { width: 200px; }
.bench-mkt-cell--year  { width: 56px; text-align: right; }
.bench-mkt-cell--rate  {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 130px;
    text-align: right;
}

.bench-mkt-cell--level .bench-name,
.bench-mkt-cell--place .bench-name {
    font-size: 13px;
}

/* what a viewer without access sees in place of the market figures */
.bench-mkt-locked__button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 40px 24px;
    border: 0;
    background: none;
    color: var(--bench-ink);
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.bench-mkt-locked__button:hover {
    background: var(--bench-row-hover);
}

.bench-mkt-locked__button:focus-visible {
    outline: none;
    box-shadow: inset var(--bench-focus);
}

.bench-mkt-locked__icon {
    margin-bottom: 6px;
    font-size: 24px;
    color: var(--bench-muted);
}

.bench-mkt-locked__title {
    font-size: var(--bench-section);
    font-weight: 600;
}

.bench-mkt-locked__sub {
    max-width: 460px;
    font-size: 13px;
    color: var(--bench-muted);
}


/* ---------- legend under a card's head ---------- */

.bench-card__legend {
    padding: 2px 24px 10px;
    font-size: 12px;
}

.bench-card__legend .bench-legend {
    font-size: 12px;
    color: var(--bench-muted);
}

/* ---------- hover cards (bench-hover controller, utils/bench_card.js) ---------- */

/* one white card, fixed to the viewport: a title, the figure, what it is, rows of exact figures */
.bench-hover {
    position: fixed;
    z-index: 1080;
    display: grid;
    gap: 2px;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 16px));
    padding: 10px 12px;
    border: 1px solid var(--bench-card-border);
    border-radius: 10px;
    background: var(--bench-card);
    box-shadow: var(--bench-shadow-menu);
    font-family: var(--bench-font);
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--bench-ink);
    pointer-events: none;
}

.bench-hover[hidden] {
    display: none;
}

.bench-hover__title {
    font-weight: 600;
}

.bench-hover__head {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.bench-hover__sub,
.bench-hover__line,
.bench-hover__key {
    color: var(--bench-muted);
}

.bench-hover__sub {
    margin-top: -2px;
}

.bench-hover__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    line-height: 1.5;
}

/* the label wraps (a long comparison name); the figure keeps its line */
.bench-hover__row .bench-hover__key {
    flex: 1 1 auto;
    min-width: 0;
}

.bench-hover__row .bench-hover__val {
    flex: 0 1 auto;
    min-width: 0;
}

/* grid children default to min-width: auto, which let a long line widen the card past max-width */
.bench-hover > * {
    min-width: 0;
    overflow-wrap: break-word;
}

/* A long value (the change against similar firms) wraps under itself rather than squeezing its label. */
.bench-hover__val {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.bench-hover__val.is-over  { color: var(--bench-over); }
.bench-hover__val.is-under { color: var(--bench-under); }

.bench-hover__row.is-you {
    margin: 0 -6px;
    padding: 0 6px;
    border-radius: 5px;
    background: var(--bench-over-bg);
    font-weight: 600;
}

.bench-hover__row.is-you .bench-hover__key {
    color: var(--bench-ink);
}

.bench-hover__divider {
    height: 1px;
    margin: 3px 0;
    background: var(--bench-rule-strong);
}

.bench-hover__data {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--bench-rule-strong);
    font-size: 12px;
    color: var(--bench-muted);
}

.bench-hover__act {
    font-weight: 600;
    color: var(--bench-link);
}

/* a row card (the one with a meta line or a "click to" line): name and what it rests on; your figure, larger;
   the comparisons as rows, each with how far you are over or under it; a quiet "click to" line */
.bench-hover:has(.bench-hover__meta),
.bench-hover:has(.bench-hover__act) {
    gap: 0;
    min-width: 280px;
    max-width: min(340px, calc(100vw - 16px));
    padding: 14px 16px 12px;
}

.bench-hover__meta {
    font-size: 12px;
    color: var(--bench-muted);
}

:is(.bench-hover:has(.bench-hover__meta), .bench-hover:has(.bench-hover__act)) .bench-hover__head {
    margin-top: 10px;
    font-size: 20px;
}

:is(.bench-hover:has(.bench-hover__meta), .bench-hover:has(.bench-hover__act)) .bench-hover__sub {
    margin: 2px 0 10px;
}

:is(.bench-hover:has(.bench-hover__meta), .bench-hover:has(.bench-hover__act)) .bench-hover__row {
    line-height: 1.7;
}

:is(.bench-hover:has(.bench-hover__meta), .bench-hover:has(.bench-hover__act)) .bench-hover__divider {
    margin: 6px 0;
}

:is(.bench-hover:has(.bench-hover__meta), .bench-hover:has(.bench-hover__act)) .bench-hover__act {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* a value's note: how far you are over or under it (coloured past the strong gap), or the comparison's change */
.bench-hover__note {
    margin-left: 8px;
    font-weight: 600;
    color: var(--bench-muted);
    white-space: nowrap;
}

.bench-hover__note.is-over  { color: var(--bench-over); }
.bench-hover__note.is-under { color: var(--bench-under); }

/* headings with a card read as hoverable text */
.bench-row--head [data-bench-hover] {
    cursor: help;
}

.bench-row--head [data-bench-hover]:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
    border-radius: 4px;
}

/* ---------- phones ---------- */

@media (max-width: 767.98px) {
    .bench-main {
        padding: 16px 16px 40px;
    }

    .bench-title {
        font-size: 24px;
    }

    .bench-section-header {
        padding: 0 16px;
    }

    .bench-tabs {
        overflow-x: auto;
    }

    .bench-headline,
    .bench-card__head {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bench-headline__sentence {
        font-size: 18px;
    }

    .bench-hero__label {
        font-size: 12px;
    }

    .bench-stats {
        grid-template-columns: 1fr;
    }

    /* rows collapse to name + pill + YOU PAY */
    .bench-table__inner {
        min-width: 0;
    }

    .bench-row {
        gap: 10px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .bench-row--strip {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .bench-row .bench-cell--chart,
    .bench-row .bench-cell--tile,
    .bench-row .bench-cell--arrow,
    .bench-row .bench-cell--fig:not(.bench-cell--keep),
    .bench-row .bench-cell--change {
        display: none;
    }

    .bench-row .bench-cell--name {
        flex: 1 1 0;
        width: auto;
    }

    .bench-cell--pill {
        width: 92px;
        text-align: right;
    }

    .bench-row--head .bench-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bench-cell--fig.bench-cell--keep {
        width: 72px;
    }

    .bench-row .bench-cell--median {
        width: 76px;
        align-items: flex-end;
    }

    .bench-median__figure {
        font-size: 15px;
    }

    .bench-row .bench-median__sub {
        display: none;
    }

    .bench-cell--vs {
        width: 84px;
    }

    .bench-card__foot,
    .bench-card__legend {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* the strips are hidden on phones, so their legends are too: the one above a ladder, and the one in a
       card's footer, with the footer itself when the legend is all it holds */
    .bench-card__legend,
    .bench-card__foot .bench-legend,
    .bench-card__foot:not(:has(> :not(.bench-legend))) {
        display: none;
    }

    .bench-menu.dropdown-menu {
        min-width: min(300px, calc(100vw - 32px));
    }

    /* firm rate-cards pages */
    .bench-search {
        width: 100%;
    }

    .bench-firm-rates .bench-sentence__aside {
        width: 100%;
        margin-left: 0;
    }

    /* Firm overview: the strip two facts a row (an odd last fact takes the row), the empty Rates card stacked */
    .bench-firm-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bench-firm-stats .bench-stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .bench-rates-card__none,
    .bench-firm-about .bench-card__body,
    .bench-history-card .bench-card__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bench-history-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bench-history-card__stats .bench-stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* a long legend item ("what <firm> charges the market") wraps rather than running past the card */
    .bench-rates-card .bench-legend__item {
        white-space: normal;
    }

    /* Rates card on the firm overview */
    .bench-rates-card__note,
    .bench-rates-card__empty {
        margin-left: 16px;
        margin-right: 16px;
    }

    /* the strips are hidden on phones, so their legend is too */
    .bench-rates-card .bench-card__head .bench-legend {
        display: none;
    }

    .bench-rates-card--market .bench-cell--fig.bench-cell--keep {
        width: 100px;
    }

    .bench-rates-card .bench-card__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Compare and Rate cards tabs */
    .bench-compare-add,
    .bench-detail-firm {
        width: 100%;
    }

    .bench-row .bench-cell--detail-place,
    .bench-row .bench-cell--detail-practice,
    .bench-row .bench-cell--detail-date {
        display: none;
    }

    .bench-cell--detail-level {
        flex: 1 1 0;
        width: auto;
    }

    .bench-detail-pages {
        padding: 12px 16px;
    }

    /* market benchmark: each rate row stacks to rate (and remove) over practice area and level */
    .bench-mkt-entries {
        padding: 0 16px 8px;
    }

    .bench-mkt-entry--head {
        display: none;
    }

    .bench-mkt-entry {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
        gap: 8px 10px;
        padding: 12px 0;
        border-top: 1px solid var(--bench-rule);
    }

    .bench-mkt-entry:first-child {
        border-top: 0;
    }

    .bench-mkt-entry__field--rate {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .bench-mkt-entry__field:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .bench-mkt-entry__field:nth-child(3) {
        grid-column: 2 / 4;
        grid-row: 2;
    }

    .bench-mkt-entry__remove {
        grid-column: 3;
        grid-row: 1;
        align-self: end;
        margin-bottom: 4px;
    }

    .bench-mkt-entry__label {
        display: block;
        margin-bottom: 4px;
        font-size: var(--bench-label);
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--bench-muted);
    }

    .bench-mkt-details {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .bench-mkt-submit .bench-btn {
        justify-content: center;
        width: 100%;
    }

    /* closest and recent market rates collapse to firm and rate */
    .bench-row .bench-mkt-cell--level,
    .bench-row .bench-mkt-cell--place,
    .bench-row .bench-mkt-cell--year {
        display: none;
    }

    .bench-mkt-cell--firm {
        min-width: 0;
    }

    .bench-mkt-cell--rate {
        width: 112px;
    }
}

/* ---------- page header: title and actions, a full-bleed hairline, the tabs (2026-12-02) ----------
   The page's question on the left, "+ Benchmark" on the right; under them a hairline in the top bar's
   colour from edge to edge, then a 40px tab row whose active underline sits on the header's bottom border.
   Tabs only ever show that underline. The panel-firm and rate-card counts live at the page's foot. */

.bench-section-header.bench-page-head {
    display: block;
    padding: 0;
    gap: 0;
    border-bottom: 1px solid var(--bench-head-line, #ebedf1);
}

.bench-page-head__top {
    padding: 20px 0 16px;
}

/* The content column: .bench-main's width and side padding, so the title's left edge and the
   button's right edge line up with the cards below while the rules run edge to edge. */
.bench-page-head__in {
    width: 100%;
    max-width: var(--bench-main-max);
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

.bench-page-head__top > .bench-page-head__in {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.bench-page-head__title,
.bench-page-head .bench-section-header__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-family: var(--bench-font-title);
    font-size: var(--bench-h1);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--bench-ink);
}

.bench-page-head .bench-section-header__aside {
    margin-left: auto;
    padding: 0;
}

.bench-page-head__tabs {
    border-top: 1px solid var(--bench-head-line, #ebedf1);
}

.bench-page-head .bench-tabs {
    height: 40px;
    gap: 24px;
    align-items: stretch;
}

.bench-page-head .bench-tab,
.bench-page-head .bench-tab:hover,
.bench-page-head .bench-tab:focus,
.bench-page-head .bench-tab[aria-current="page"] {
    display: flex;
    align-items: center;
    padding: 0;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bench-page-head .bench-tab[aria-current="page"] {
    border-bottom-color: var(--bench-ink);
}

.bench-page-head .bench-tab:focus-visible {
    outline: 2px solid var(--bench-link);
    outline-offset: -2px;
}

.bench a.bench-btn-benchmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.bench a.bench-btn-benchmark:hover {
    background: #2b2b2b;
    color: #fff;
}

.bench a.bench-btn-benchmark span {
    font-size: 16px;
    line-height: 1;
}

.bench-page-facts {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--bench-muted);
}

@media (max-width: 767.98px) {
    .bench-page-head__top {
        padding: 16px 0 12px;
    }

    .bench-page-head__in {
        padding: 0 16px;
    }

    .bench-page-head__title,
    .bench-page-head .bench-section-header__title {
        font-size: 24px;
    }

    .bench-page-head .bench-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
    }

    .bench-page-head .bench-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* The "1Y Δ" change-period control beside the Overview's sentence: client.pieter's control (Bootstrap's
   btn-sm btn-light border dropdown-toggle, as its live /benchmark/firms reads: 30px, 6px 16px, 12px/500,
   white, 6px radius). On phones it wraps under the sentence, left-aligned. */
.bench .bench-delta .btn {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: rgb(88, 97, 116);
    background: #fff;
    border-radius: 6px;
}

.bench .bench-delta .dropdown-menu {
    min-width: 0;
}

/* Phones: the sentence would run to five or six lines, so it becomes a compact row of chips. The connecting
   words go (each chip's value says what it filters) except the last, "vs", which the comparison needs; the
   chips are a little smaller; Reset and the change menu flow on as the next chips, at chip height, so when the
   last line is full the change menu starts the next line at the left instead of sitting alone at the right. */
@media (max-width: 767.98px) {
    .bench-sentence {
        gap: 6px;
    }

    .bench-sentence > .bench-sentence__aside {
        display: contents;
    }

    .bench-sentence .bench-delta > .btn {
        height: 30px;
        padding: 0 9px;
        border-radius: 8px;
        font-size: 13px;
    }

    .bench-sentence .bench-sentence__clear.btn {
        height: 30px;
        padding: 0 6px;
        font-size: 13px;
    }

    .bench-sentence__word:not(:last-of-type) {
        display: none;
    }

    .bench-sentence .bench-chip {
        height: 30px;
        padding: 0 9px;
        font-size: 13px;
    }

    .bench-sentence .bench-chip.is-long {
        display: block;
        max-width: calc(100vw - 32px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ---------- Firms card: tools in the header, contextual Compare, ticks on hover (2026-12-02) ----------
   The search and Compare sit in the list's header row, in the Firm column's place. Row ticks keep their column but show only on hover, focus or when ticked (opacity, so
   keyboard focus still reaches them); touch screens without hover always show them. The header's
   "Select first 3" box is always shown, in the same column and size as the row ticks. */
/* the header's "Select first 3" box: the row ticks' size and look */
.bench-tick-all {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--bench-ink);
    cursor: pointer;
    vertical-align: middle;
}

.bench-tick-all:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
    border-radius: 4px;
}

/* .bench-btn sets display, which would beat the hidden attribute */
.bench-compare__go[hidden] {
    display: none;
}

/* The logo slot (Firms list): the compare box takes the logo's exact 36px box, so nothing moves. At rest
   the logo shows; on row hover, keyboard focus or while ticked the box replaces it, centred. A label, so a
   click or tap anywhere in the slot toggles it; on touch (no hover) the logo stays until a tap ticks it.
   The header's "Select first 3" box sits centred in the same slot. */
.bench-slot {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    cursor: pointer;
}

.bench-slot > .bench-tick,
.bench-slot > .bench-tick-all {
    position: absolute;
    inset: 0;
    margin: auto;
}

.bench-slot > .bench-tile,
.bench-slot > .bench-tick {
    transition: opacity 0.12s;
}

.bench-slot > .bench-tick {
    opacity: 0;
}

.bench-row:hover .bench-slot > .bench-tick,
.bench-row:has(.bench-tick:focus-visible) .bench-slot > .bench-tick,
.bench-slot > .bench-tick:checked {
    opacity: 1;
}

.bench-row:hover .bench-slot:has(> .bench-tick) > .bench-tile,
.bench-row:has(.bench-tick:focus-visible) .bench-slot > .bench-tile,
.bench-slot:has(> .bench-tick:checked) > .bench-tile {
    opacity: 0;
}

/* three ticked: the others' boxes are disabled, shown faint on hover, the logo kept */
.bench-row:hover .bench-slot > .bench-tick:disabled:not(:checked) {
    opacity: 0.4;
}

.bench-row:hover .bench-slot:has(> .bench-tick:disabled:not(:checked)) > .bench-tile {
    opacity: 0.15;
}

@media (hover: none) {
    .bench-row:hover .bench-slot > .bench-tick:not(:checked) {
        opacity: 0;
    }

    .bench-row:hover .bench-slot:has(> .bench-tick:not(:checked)) > .bench-tile {
        opacity: 1;
    }
}

/* phones hide the logo column; the slot stays, so a firm can still be ticked */
@media (max-width: 767.98px) {
    .bench-row .bench-cell--tile.bench-slot {
        display: inline-grid;
    }
}

/* the Firms list's header row: the search fills the Firm column, Compare right after it once a firm is ticked */
.bench-row--head .bench-cell--search {
    min-width: 0;
}

.bench-cell--search .bench-compare {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.bench-cell--search .bench-compare__field {
    flex: 1 1 auto;
    min-width: 0;
}

.bench-cell--search .bench-compare__icon {
    left: 10px;
    font-size: 13px;
}

.bench-cell--search .bench-compare__search {
    height: 30px;
    padding: 0 10px 0 30px;
    border-radius: 8px;
    font-size: 13px;
}

/* Firms card title row: "Firms · 126", Compare on the right once a firm is ticked (room kept for it) */
.bench-card--firms .bench-card__head {
    align-items: center;
    min-height: 56px;
}

.bench-card__count {
    margin-left: 6px;
    font-weight: 400;
    color: var(--bench-muted);
}

/* a column label with a hover card: a dotted underline as its affordance */
.bench-label--tip .bench-sort {
    text-decoration: underline dotted;
    text-decoration-color: var(--bench-muted);
    text-underline-offset: 3px;
}

/* The selection bar floats at the foot of the window, centred on the page column, once a firm is ticked: the
   count, a chip per picked firm, what is still needed, Clear and Compare. Inverted (ink ground) so it reads as
   sitting over the list; it takes no room until a firm is ticked. */
.bench-compare-bar {
    position: sticky;
    bottom: 20px;
    z-index: 5;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.bench-compare-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 8px 8px 8px 18px;
    border-radius: 14px;
    background: var(--bench-ink);
    color: var(--bench-card);
    box-shadow: var(--bench-shadow-menu);
    white-space: nowrap;
    pointer-events: auto;
}

.bench-compare-bar__count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bench-compare-bar__chips {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.bench-compare-bar__chips:empty {
    display: none;
}

.bench-compare-bar .bench-firm-chip {
    gap: 6px;
    height: 28px;
    min-width: 0;
    padding: 0 4px 0 12px;
    border-color: transparent;
    background: color-mix(in srgb, var(--bench-card) 16%, transparent);
    color: inherit;
    font-size: 13px;
    font-weight: 500;
}

.bench-compare-bar .bench-firm-chip__name {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bench-compare-bar .bench-firm-chip__remove {
    flex: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 15px;
    opacity: 0.7;
}

.bench-compare-bar .bench-firm-chip__remove:hover {
    opacity: 1;
    color: inherit;
}

.bench-compare-bar__hint {
    padding-right: 4px;
    opacity: 0.7;
}

.bench-compare-bar__clear {
    padding: 4px 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.75;
    cursor: pointer;
}

.bench-compare-bar__clear:hover {
    opacity: 1;
}

.bench-compare-bar__clear:focus-visible,
.bench-compare-bar .bench-firm-chip__remove:focus-visible {
    outline: 2px solid var(--bench-card);
    outline-offset: 1px;
    opacity: 1;
}

.bench-compare-bar .bench-compare__go {
    height: 32px;
    padding: 0 16px;
    border-color: var(--bench-card);
    border-radius: 9px;
    background: var(--bench-card);
    color: var(--bench-ink);
}

.bench-compare-bar .bench-compare__go:not(:disabled):hover {
    color: var(--bench-ink);
}

/* phones: the bar spans the column and drops the chips (the ticked rows show which firms) */
@media (max-width: 767.98px) {
    .bench-compare-bar {
        bottom: 12px;
    }

    .bench-compare-bar__inner {
        width: 100%;
    }

    .bench-compare-bar__chips {
        display: none;
    }

    .bench-compare-bar__count {
        margin-right: auto;
    }
}

/* Firms rows: the median rate at the firm name's size and weight (14px / 600, line-height 1.45), its sub-line
   at the meta line's line-height and no gap, so both lines share the name column's baselines */
.bench-card--firms .bench-row .bench-cell--median {
    gap: 0;
}

.bench-card--firms .bench-row .bench-median__figure {
    font-size: 14px;
    line-height: 1.45;
}

.bench-card--firms .bench-row .bench-median__sub {
    line-height: 1.45;
}

/* phones: the search takes the header row's first line; the Select-first-3 box and the column
   labels share the second, the labels right-aligned over their fixed-width columns */
@media (max-width: 767.98px) {
    .bench-card--firms .bench-row--head {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .bench-card--firms .bench-row--head .bench-cell--search {
        order: -1;
        flex: 1 1 100%;
    }

    .bench-card--firms .bench-row--head .bench-cell--tile {
        margin-right: auto;
    }
}

/* ---------- KPI cards: the Firms rate summary, four cards straight on the page ---------- */

.bench-kpis {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bench-kpis__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bench-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 16px 20px;
    transition: border-color 0.15s ease;
}

.bench-kpi__head {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* the ⓘ: above the stretched Lex button, with its own hover and focus */
.bench-kpi__info {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bench-muted);
    font-size: 12px;
    cursor: help;
}

.bench-kpi__info:hover {
    color: var(--bench-ink);
}

.bench-kpi__info:focus-visible {
    outline: none;
    box-shadow: var(--bench-focus);
}

/* the number is the Lex button; its ::after stretches it over the whole card */
.bench-kpi__ask {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.bench-kpi__ask::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.bench-kpi__ask:focus-visible {
    outline: none;
}

/* a subtle border darken on hover, the focus ring on the whole card */
.bench-kpi:has(.bench-kpi__ask:hover) {
    border-color: var(--bench-control-border);
}

.bench-kpi:has(.bench-kpi__ask:focus-visible) {
    box-shadow: var(--bench-focus);
}

/* the Firms rows' median rate figure (.bench-median__figure): 17px / 600 */
.bench-kpi__value {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--bench-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* the verdict colour; after the base rule, which sets the ink colour */
.bench-kpi__value.bench-kpi__value--under { color: var(--bench-under-text); }
.bench-kpi__value.bench-kpi__value--over  { color: var(--bench-over-text); }

.bench-kpi .bench-skeleton__line {
    margin: 4px 0;
}

@media (max-width: 899.98px) {
    .bench-kpis__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 575.98px) {
    .bench-kpis__row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Firms list header: the strip column label sits on the same line as the other column titles; its dollar
   ticks (9px, regular weight) sit right under the label, inside the header row, so the first row keeps its usual spacing */
.bench-card--firms .bench-row--head {
    position: relative;
    z-index: 1;
}

.bench-card--firms .bench-row--head .bench-cell--chart-head {
    position: relative;
    align-self: stretch;
    justify-content: center;
    gap: 0;
}

.bench-card--firms .bench-row--head .bench-cell--chart-head .bench-axis {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 10px);
    height: 9px;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    pointer-events: none;
}


/* Firms card footer: Show all on the left (the legend is on the right, as in every card footer) */
.bench-card__foot .bench-show-all {
    margin-left: 0;
}

/* the Firms search: a touch shorter, and on desktop it ends flush with the Panel median card above (the first
   of four KPI columns with 16px gaps). The card is the size container (its inner width is the outer width less
   its 1px borders); the field starts 77px in: border 1 + row padding 24 + logo slot 36 + gap 16. */
@media (min-width: 768px) {
    .bench-card--firms {
        container-type: inline-size;
    }

    .bench-card--firms .bench-cell--search .bench-compare__field {
        flex: 0 0 auto;
        width: calc((100cqw + 2px - 48px) / 4 - 77px);
    }
}

.bench-card--firms .bench-cell--search .bench-compare__search {
    height: 28px;
}

/* ---------- Compare: the three firm slots and quick picks ---------- */

.bench-picks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bench-picks__slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bench-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    height: 56px;
    box-sizing: border-box;
    padding: 0 10px 0 12px;
    border: 1px solid var(--bench-card-border);
    border-radius: 12px;
    background: var(--bench-card);
    color: var(--bench-ink);
    font: inherit;
    text-align: left;
}

.bench-pick .bench-tile {
    flex: none;
}

.bench-pick__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.bench-pick__name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bench-pick__meta {
    overflow: hidden;
    font-size: 12.5px;
    color: var(--bench-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bench-pick__remove {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    border-radius: 8px;
    color: var(--bench-muted);
    font-size: 12px;
    text-decoration: none;
}

/* a firm held on the page before it loads: its × is a button */
button.bench-pick__remove {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bench-pick__remove:hover,
.bench-pick__remove:focus-visible {
    background: rgba(0, 0, 0, .05);
    color: var(--bench-ink);
}

.bench-pick--empty {
    justify-content: center;
    gap: 8px;
    border-style: dashed;
    border-color: var(--bench-control-border);
    background: transparent;
    color: var(--bench-muted);
    cursor: pointer;
}

.bench-pick--empty:hover {
    border-color: var(--bench-muted);
    color: var(--bench-ink);
}

/* the search slot: Select2 fills it, styled as the slot itself */
.bench-pick--search.bench-compare-add {
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.bench-pick--search .select2-container {
    width: 100% !important;
}

.bench-pick--search.bench-compare-add .select2-container .bench-compare-add__selection,
.bench-pick--search.bench-compare-add .select2-container--bootstrap-5 .select2-selection {
    height: 56px;
    min-height: 56px;
    padding: 0 36px 0 16px;
    border: 1px solid var(--bench-control-border);
    border-radius: 12px;
    background-color: var(--bench-card);
}

.bench-pick--search .select2-container--focus .select2-selection,
.bench-pick--search .select2-container--open .select2-selection {
    border-color: var(--bench-link);
    box-shadow: var(--bench-focus);
}

.bench-picks__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 13px;
    color: var(--bench-muted);
}

.bench-quick-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px 0 4px;
    border: 1px solid var(--bench-card-border);
    border-radius: 999px;
    background: var(--bench-card);
    color: var(--bench-ink);
    font-weight: 500;
    text-decoration: none;
}

.bench-quick-pick:hover {
    border-color: var(--bench-control-border);
}

.bench-quick-pick .bench-tile {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 9px;
}

@media (max-width: 767.98px) {
    .bench-picks__slots {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Firms card footer as one tinted bar (option B, 2026-12-02): Show all reads as the list's next step, and the
   legend is grouped as the strips read (you pay and the firm's market rate | the comparison as one mini strip) */
.bench-card__foot--bar {
    padding: 12px 24px;
    background: var(--bench-row-hover);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.bench-card__foot--bar .bench-legend {
    color: var(--bench-ink);
}

.bench-card__foot--bar .bench-show-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.bench-show-all__chevron {
    width: 7px;
    height: 7px;
    margin: -3px 2px 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.bench-show-all__note {
    font-weight: 400;
    color: var(--bench-muted);
}

.bench-show-all:hover .bench-show-all__note {
    text-decoration: none;
}

.bench-legend__divider {
    width: 1px;
    height: 14px;
    background: var(--bench-rule-strong);
    filter: brightness(0.85);
}

.bench-legend__lead {
    color: var(--bench-muted);
}

.bench-key--strip {
    position: relative;
    width: 36px;
    height: 10px;
    border-radius: 2px;
    background: var(--bench-band-outer);
}

.bench-key--strip-band {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 16px;
    background: var(--bench-band);
}

.bench-key--strip-median {
    position: absolute;
    top: -2px;
    left: 16px;
    width: 2px;
    height: 14px;
    background: var(--bench-ink);
}


/* a firm in a chip menu (the firm list "a specific firm…" opens, or a firm found by searching): its logo and
   name on one line, as on Bench */
.bench-menu .dropdown-item.bench-menu__firm {
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 10px;
}

.bench-menu__firm .bench-tile {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 10px;
}

.bench-menu .dropdown-item.bench-menu__firm.active::after {
    margin-left: auto;
}

.bench-menu__firm > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bench-menu__back .dropdown-item {
    color: var(--bench-muted);
    font-size: 13px;
}

.bench-menu.is-firms .bench-menu__back {
    border-bottom: 1px solid var(--bench-rule);
    margin-bottom: 4px;
    padding-bottom: 4px;
}


/* The firm pages (Overview, Rate cards, Detailed) sit under the firm header (rates/_firm_header), a Bootstrap .container
   that the other firm tabs (Contacts, Revenue, ...) use for their content too. These pages keep to that same column,
   so the header and the content line up and nothing changes width between the tabs. */
.bench-main.bench-firm-overview, .bench-main.bench-firm-rates {
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 576px)  { .bench-main.bench-firm-overview, .bench-main.bench-firm-rates { max-width: 540px; } }
@media (min-width: 768px)  { .bench-main.bench-firm-overview, .bench-main.bench-firm-rates { max-width: 720px; } }
@media (min-width: 992px)  { .bench-main.bench-firm-overview, .bench-main.bench-firm-rates { max-width: 960px; } }
@media (min-width: 1200px) { .bench-main.bench-firm-overview, .bench-main.bench-firm-rates { max-width: 1140px; } }
@media (min-width: 1400px) { .bench-main.bench-firm-overview, .bench-main.bench-firm-rates { max-width: 1320px; } }


/* the header's actions, as on Outside Counsel: an outlined "Actions" menu beside the dark "+ Benchmark" */
.bench-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bench .bench-btn-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--bench-rule-strong);
    border-radius: 999px;
    background: var(--bench-card);
    color: var(--bench-ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.bench .bench-btn-actions:hover,
.bench .bench-btn-actions[aria-expanded="true"] {
    background: var(--bench-row-hover);
}

.bench .bench-btn-actions i {
    font-size: 11px;
}

.bench-header-actions .dropdown-menu {
    min-width: 200px;
    padding: 6px;
    border-radius: 12px;
}

.bench-header-actions .dropdown-item {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}
.rates-by-role-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.05fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr) minmax(280px, 1.7fr) minmax(160px, 0.8fr);
    gap: 1rem;
    align-items: center;
}

.rates-by-role-header {
    padding: 0.5rem 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rates-by-role-row {
    min-height: 64px;
    padding: 0.625rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}

.rates-by-level-row {
    position: relative;
    width: 100%;
    padding-right: 3rem;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: var(--bs-body-bg);
    color: inherit;
    text-align: inherit;
    opacity: 1;
}

.rates-by-level-row:not(:disabled):hover {
    background: var(--bs-tertiary-bg);
}

.rates-by-level-row:not(:disabled):focus-visible {
    z-index: 1;
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.rates-by-role-range {
    --p10: 0%;
    --p25: 0%;
    --median: 0%;
    --p75: 0%;
    --p90: 0%;
    position: relative;
    height: 26px;
}

.rates-by-role-whisker {
    position: absolute;
    top: 50%;
    left: var(--p10);
    width: calc(var(--p90) - var(--p10));
    height: 1px;
    background: var(--bs-border-color);
}

.rates-by-role-cap {
    position: absolute;
    top: calc(50% - 6px);
    width: 1px;
    height: 12px;
    background: var(--bs-border-color);
}

.rates-by-role-cap-start {
    left: var(--p10);
}

.rates-by-role-cap-end {
    left: var(--p90);
}

.rates-by-role-band {
    position: absolute;
    top: 4px;
    left: var(--p25);
    width: calc(var(--p75) - var(--p25));
    height: 18px;
    border: 1px solid #cdd7ff;
    border-radius: var(--bs-border-radius-sm);
    background: #e8edff;
}

.rates-by-role-median {
    position: absolute;
    top: 2px;
    left: var(--median);
    width: 2px;
    height: 22px;
    background: var(--bs-emphasis-color);
    transform: translateX(-1px);
}

.rates-by-role-firm-marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--firm);
    width: 11px;
    height: 11px;
    background: #101828;
    transform: translate(-50%, -50%) rotate(45deg);
}

.rates-by-role-legend-band {
    width: 24px;
    height: 12px;
    border: 1px solid #cdd7ff;
    border-radius: var(--bs-border-radius-sm);
    background: #e8edff;
}

.rates-by-role-legend-median {
    width: 2px;
    height: 16px;
    background: var(--bs-emphasis-color);
}

.rates-by-role-legend-firm-marker {
    width: 11px;
    height: 11px;
    background: #101828;
    transform: rotate(45deg);
}

.rates-by-role-year-swatch {
    width: 24px;
    height: 12px;
    border: 1px solid var(--role-year-border);
    background: var(--role-year-bg);
}

.rates-by-role-trend-firm-marker {
    width: 11px;
    height: 11px;
    background: #101828;
    transform: rotate(45deg);
}

.rates-by-role-axis-row {
    padding: 0.25rem 1.25rem 0.625rem;
    border-top: 1px solid var(--bs-border-color);
}

.rates-by-role-axis {
    display: flex;
    justify-content: space-between;
}

.rates-by-practice-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.05fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr) minmax(280px, 1.7fr) minmax(160px, 0.8fr);
    gap: 1rem;
    align-items: center;
}

.rates-by-practice-header {
    padding: 0.5rem 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rates-by-practice-row {
    position: relative;
    width: 100%;
    min-height: 64px;
    padding: 0.625rem 3rem 0.625rem 1.25rem;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: inherit;
    text-align: inherit;
    opacity: 1;
}

.rates-by-practice-row:not(:disabled):hover {
    background: var(--bs-tertiary-bg);
}

.rates-by-practice-row:not(:disabled):focus-visible {
    z-index: 1;
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.rates-by-practice-chevron,
.rates-by-level-chevron {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
}

@media (min-width: 992px) {
    .rates-by-practice-name .fw-semibold {
        white-space: nowrap;
    }
}

.rates-by-practice-visual {
    min-width: 0;
}

.rate-roster-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(145px, 0.75fr) minmax(140px, 0.7fr) minmax(260px, 1.5fr) minmax(145px, 0.75fr) minmax(150px, 0.75fr);
    gap: 1rem;
    align-items: center;
}

.rate-roster-grid-table {
    grid-template-columns: minmax(210px, 1.1fr) minmax(145px, 0.8fr) minmax(140px, 0.75fr) minmax(145px, 0.8fr) minmax(150px, 0.8fr);
}

.rate-roster-header {
    padding: 0.5rem 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rate-roster-practice {
    padding: 0.65rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.rate-roster-row {
    min-height: 64px;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.rate-roster-row:last-child {
    border-bottom: 0;
}

.rate-roster-range {
    position: relative;
    height: 26px;
}

.rate-roster-range-grid {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(480px, 2.3fr);
    gap: 1.5rem;
    align-items: center;
    min-height: 64px;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.rate-roster-range-grid:last-of-type {
    border-bottom: 0;
}

.rate-roster-range-axis {
    display: flex;
    justify-content: space-between;
    margin-left: calc(210px + 2.75rem);
    padding: 0.25rem 1.25rem 0.625rem 0;
    border-top: 1px solid var(--bs-border-color);
}

.rate-roster-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--bs-border-color);
}

.rate-roster-band {
    position: absolute;
    top: 4px;
    left: var(--firm-p25);
    width: calc(var(--firm-p75) - var(--firm-p25));
    min-width: 3px;
    height: 18px;
    border: 1px solid #cdd7ff;
    border-radius: var(--bs-border-radius-sm);
    background: #e8edff;
}

.rate-roster-firm-marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--firm-median);
    width: 11px;
    height: 11px;
    background: #101828;
    transform: translate(-50%, -50%) rotate(45deg);
}

.rate-roster-market-marker {
    position: absolute;
    z-index: 1;
    top: 2px;
    left: var(--market-median);
    width: 2px;
    height: 22px;
    background: var(--bs-success);
    transform: translateX(-1px);
}

.rate-roster-legend-band {
    width: 24px;
    height: 12px;
    border: 1px solid #cdd7ff;
    border-radius: var(--bs-border-radius-sm);
    background: #e8edff;
}

.rate-roster-legend-firm-marker {
    width: 11px;
    height: 11px;
    background: #101828;
    transform: rotate(45deg);
}

.rate-roster-legend-market {
    width: 2px;
    height: 16px;
    background: var(--bs-success);
}

[data-bs-theme="dark"] .rates-by-role-band {
    border-color: #44558f;
    background: #26355f;
}

[data-bs-theme="dark"] .rates-by-role-legend-band {
    border-color: #44558f;
    background: #26355f;
}

@media (max-width: 991.98px) {
    .rates-by-role-grid {
        grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.65fr) minmax(120px, 0.65fr) minmax(250px, 1.8fr) minmax(150px, 0.8fr);
        gap: 1rem;
    }

    .rates-by-practice-grid {
        grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.65fr) minmax(120px, 0.65fr) minmax(250px, 1.8fr) minmax(150px, 0.8fr);
    }

    .rate-roster-grid {
        grid-template-columns: minmax(130px, 0.8fr) minmax(125px, 0.7fr) minmax(120px, 0.65fr) minmax(220px, 1.3fr) minmax(125px, 0.7fr) minmax(130px, 0.7fr);
    }

    .rate-roster-grid-table {
        grid-template-columns: minmax(180px, 1fr) minmax(125px, 0.75fr) minmax(120px, 0.7fr) minmax(125px, 0.75fr) minmax(130px, 0.75fr);
    }
}

@media (max-width: 767.98px) {
    .rates-by-role-header,
    .rates-by-role-axis-row,
    .rates-by-practice-header,
    .rate-roster-header {
        display: none;
    }

    .rates-by-role-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }

    .rates-by-role-range {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .rates-by-role-change {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left !important;
    }

    .rates-by-role-difference {
        grid-column: 1 / -1;
        grid-row: 4;
        text-align: left !important;
    }

    .rates-by-practice-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }

    .rates-by-practice-name {
        grid-column: 1 / -1;
    }

    .rates-by-practice-visual {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .rates-by-practice-market,
    .rates-by-practice-change,
    .rates-by-practice-firm {
        text-align: left !important;
    }

    .rate-roster-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }

    .rate-roster-range-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .rate-roster-range-axis {
        margin-left: 0;
        padding-left: 1.25rem;
    }

    .rate-roster-role {
        grid-column: 1 / -1;
    }

    .rate-roster-range {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .rate-roster-firm,
    .rate-roster-change,
    .rate-roster-market,
    .rate-roster-difference {
        text-align: left !important;
    }
}

[data-bs-theme="dark"] .rate-roster-band,
[data-bs-theme="dark"] .rate-roster-legend-band {
    border-color: #44558f;
    background: #26355f;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

label[required]:after {
    content: ' *';
    color: #EF4444;
}

.bg-legalio {
    background: linear-gradient(135deg, #1b2430, #1a1e27) !important;
}

.bg-legalio-dark {
    background: linear-gradient(135deg, #1b2430, #1a1e27) !important;
}

.sidebar {
    width: 60px !important;
}

.sidebar-wrapper {
    width: 60px;
    z-index: 1040;
    transition: width 0.2s ease;
    will-change: width;
}

.sidebar-wrapper.expanded,
.sidebar-wrapper.hover-expanded {
    width: 244px !important;
}

.main-content {
    transition: margin-left 0.2s ease;
    margin-left: 244px;
    /* Default to expanded state to match sidebar */
    will-change: margin-left;
}

/* Collapsed state - only when sidebar is not expanded */
.main-content.sidebar-collapsed {
    margin-left: 60px;
}

.main-content.no-transition,
.main-content.no-transition * {
    transition: none !important;
}

.sidebar-wrapper.no-transition,
.sidebar-wrapper.no-transition * {
    transition: none !important;
}

/* Prevent flash of unstyled content during initialization */
.sidebar-wrapper.expanded {
    width: 244px !important;
}

.sidebar-wrapper.expanded .sidebar {
    width: 244px !important;
}

@media (max-width: 1199.98px) {
    .sidebar-wrapper {
        width: 244px !important;
        transform: translateX(-100%);
    }

    .main-content,
    .main-content.sidebar-collapsed {
        margin-left: 0 !important;
    }
}

.text-primary {
    color: #007bff;
}

.text-dark {
    color: #333;
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 0.25rem;
}

.p-3 {
    padding: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
}

.bg-success-subtle {
    background-color: #e8f5e9 !important;
}

/* Keep navbar dropdowns within viewport on small screens */
@media (max-width: 576px) {
    .navbar .dropdown-menu {
        max-width: calc(100vw - 16px);
        width: max-content;
        /* shrink to content but not exceed viewport */
    }

    .navbar .dropdown-menu .dropdown-item,
    .navbar .dropdown-menu .dropdown-header,
    .navbar .dropdown-menu span,
    .navbar .dropdown-menu small {
        white-space: normal;
        /* allow wrapping */
        overflow-wrap: anywhere;
        /* break long words/emails */
        word-break: break-word;
    }
}

/* RFP Share modal: remove black outline on input focus */
#shareRfpModal input#shareInput:focus,
#shareRfpModal input#shareInput:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: #dee2e6 !important; /* keep neutral border, avoid dark/black */
    background-color: inherit !important; /* avoid forced focus bg */
}

.bg-warning-subtle {
    background-color: #fff3e0 !important;
}

.text-success {
    color: #2e7d32 !important;
}

.text-warning {
    color: #f57c00 !important;
}

/* Admin AI Evals: ensure long preformatted blocks wrap instead of clipping. */
.lex-eval-prewrap {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Matter index specific styles */
.table> :not(caption)>*>* {
    padding: 1rem 0.75rem;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.progress {
    background-color: #e9ecef;
    border-radius: 1rem;
}

.progress-bar {
    border-radius: 1rem;
}

.form-select,
.form-control {
    border-color: #dee2e6;
}

.input-group-text {
    border-color: #dee2e6;
}

.table>thead.table-light {
    background-color: #f8f9fa;
}

.table>thead.table-light th {
    font-weight: 500;
    color: #6c757d;
    border-bottom-width: 1px;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--bs-nav-pills-link-active-bg) !important;
    color: var(--bs-nav-pills-link-active-color) !important;
}

.nav-pills .nav-link.active {
    background-color: rgb(219 234 254) !important;
    color: rgb(37 99 235) !important;
}

.bg-linear-gradient-light {
    background: linear-gradient(to bottom, #ebf5ff, #ffffff);
}

[data-bs-theme=dark] .bg-linear-gradient-light {
    background: linear-gradient(to bottom, #1a1e27, #1c212b);
}

.opacity-0 {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rate Obfuscation Styles for Non-Customers */
.obfuscated-rate {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.obfuscated-range {
    filter: blur(2px);
    -webkit-filter: blur(2px);
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.role-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resource-card {
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: scale(1.02);
}

/* Utility: hover red-100 background (Tailwind-ish) */
.hover-bg-red-100:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1)) !important;
}

.ais-Breadcrumb-list,
.ais-CurrentRefinements-list,
.ais-HierarchicalMenu-list,
.ais-Hits-list,
.ais-InfiniteHits-list,
.ais-InfiniteResults-list,
.ais-Menu-list,
.ais-NumericMenu-list,
.ais-Pagination-list,
.ais-RatingMenu-list,
.ais-RefinementList-list,
.ais-Results-list,
.ais-ToggleRefinement-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.ais-ClearRefinements-button,
.ais-CurrentRefinements-delete,
.ais-CurrentRefinements-reset,
.ais-GeoSearch-redo,
.ais-GeoSearch-reset,
.ais-HierarchicalMenu-showMore,
.ais-InfiniteHits-loadMore,
.ais-InfiniteHits-loadPrevious,
.ais-InfiniteResults-loadMore,
.ais-Menu-showMore,
.ais-RangeInput-submit,
.ais-RefinementList-showMore,
.ais-SearchBox-reset,
.ais-SearchBox-submit,
.ais-VoiceSearch-button {
    padding: 0;
    overflow: visible;
    font: inherit;
    line-height: normal;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.ais-ClearRefinements-button::-moz-focus-inner,
.ais-CurrentRefinements-delete::-moz-focus-inner,
.ais-CurrentRefinements-reset::-moz-focus-inner,
.ais-GeoSearch-redo::-moz-focus-inner,
.ais-GeoSearch-reset::-moz-focus-inner,
.ais-HierarchicalMenu-showMore::-moz-focus-inner,
.ais-InfiniteHits-loadMore::-moz-focus-inner,
.ais-InfiniteHits-loadPrevious::-moz-focus-inner,
.ais-InfiniteResults-loadMore::-moz-focus-inner,
.ais-Menu-showMore::-moz-focus-inner,
.ais-RangeInput-submit::-moz-focus-inner,
.ais-RefinementList-showMore::-moz-focus-inner,
.ais-SearchBox-reset::-moz-focus-inner,
.ais-SearchBox-submit::-moz-focus-inner,
.ais-VoiceSearch-button::-moz-focus-inner {
    padding: 0;
    border: 0
}

.ais-ClearRefinements-button[disabled],
.ais-CurrentRefinements-delete[disabled],
.ais-CurrentRefinements-reset[disabled],
.ais-GeoSearch-redo[disabled],
.ais-GeoSearch-reset[disabled],
.ais-HierarchicalMenu-showMore[disabled],
.ais-InfiniteHits-loadMore[disabled],
.ais-InfiniteHits-loadPrevious[disabled],
.ais-InfiniteResults-loadMore[disabled],
.ais-Menu-showMore[disabled],
.ais-RangeInput-submit[disabled],
.ais-RefinementList-showMore[disabled],
.ais-SearchBox-reset[disabled],
.ais-SearchBox-submit[disabled],
.ais-VoiceSearch-button[disabled] {
    cursor: default
}

.ais-HierarchicalMenu-showMore,
.ais-InfiniteHits-loadMore,
.ais-InfiniteHits-loadPrevious,
.ais-Menu-showMore,
.ais-RefinementList-showMore {
    overflow-anchor: none
}

.ais-Breadcrumb-item,
.ais-Breadcrumb-list,
.ais-Pagination-list,
.ais-PoweredBy,
.ais-RangeInput-form,
.ais-RatingMenu-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.ais-GeoSearch,
.ais-GeoSearch-map {
    height: 100%
}

.ais-HierarchicalMenu-list .ais-HierarchicalMenu-list {
    margin-left: 1em
}

.ais-PoweredBy-logo {
    display: block;
    height: 1.2em;
    width: auto
}

.ais-RatingMenu-starIcon {
    display: block;
    width: 20px;
    height: 20px
}

.ais-SearchBox-input::-ms-clear,
.ais-SearchBox-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0
}

.ais-SearchBox-input::-webkit-search-cancel-button,
.ais-SearchBox-input::-webkit-search-decoration,
.ais-SearchBox-input::-webkit-search-results-button,
.ais-SearchBox-input::-webkit-search-results-decoration {
    display: none
}

.ais-RangeSlider .rheostat {
    overflow: visible;
    margin-top: 40px;
    margin-bottom: 40px
}

.ais-RangeSlider .rheostat-background {
    height: 6px;
    top: 0;
    width: 100%
}

.ais-RangeSlider .rheostat-handle {
    margin-left: -12px;
    top: -7px
}

.ais-RangeSlider .rheostat-background {
    position: relative;
    background-color: #fff;
    border: 1px solid #aaa
}

.ais-RangeSlider .rheostat-progress {
    position: absolute;
    top: 1px;
    height: 4px;
    background-color: #333
}

.rheostat-handle {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 50%;
    cursor: -webkit-grab;
    cursor: grab
}

.rheostat-marker {
    margin-left: -1px;
    position: absolute;
    width: 1px;
    height: 5px;
    background-color: #aaa
}

.rheostat-marker--large {
    height: 9px
}

.rheostat-value {
    padding-top: 15px
}

.rheostat-tooltip,
.rheostat-value {
    margin-left: 50%;
    position: absolute;
    text-align: center;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
}

.rheostat-tooltip {
    top: -22px
}
