/* 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);
}

.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;
    }
}
@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;
}
/* 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/Legalio-Medium.otf) format("opentype"),
         url(/fonts/Legalio-Medium.ttf) format("truetype");
    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 (byte-
   identical to the DS "Lay Grotesk"); 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;
}
/*
 * 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
}
