:root {
    --ra-ink: #14212f;
    --ra-ink-soft: #4e5d6d;
    --ra-line: #d8dde3;
    --ra-line-soft: #e7edf5;
    --ra-accent: #d9872b;
    --ra-accent-blue: #5f67d8;
    --ra-accent-soft: rgba(217,135,43,.08);
    --ra-accent-line: rgba(196,127,31,.18);
    --ra-accent-line-strong: rgba(196,127,31,.28);
    --ra-surface: rgba(255,255,255,.96);
    --ra-title: #162033;
    --ra-text: #627089;
    --ra-blue: #2f6bff;
    --ra-blue-soft: rgba(47,107,255,.08);
    --ra-overview-bg: #071524;
    --ra-overview-ink: #f4f6f8;
    --ra-overview-body: rgba(244,246,248,.86);
    --ra-shadow: 0 18px 44px rgba(20,44,84,.06);
    --ra-shadow-card: 0 14px 28px rgba(20,44,84,.05);
    --ra-success: #1f9d67;
    --ra-danger: #d64545;
    --ra-warning: #c88409;
    --ra-secondary: #667085;
    --ra-page-width: min(1360px, calc(100vw - 3rem));
    --ra-content-width: min(1180px, calc(100vw - 3rem));
    --ra-measure-section: 15ch;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #ffffff;
    color: var(--ra-title);
}

.ra-platform-home,
.ra-platform-home *,
.ra-platform-home *::before,
.ra-platform-home *::after,
.ra-jobs-page,
.ra-jobs-page *,
.ra-jobs-page *::before,
.ra-jobs-page *::after {
    box-sizing: border-box;
}

.ra-platform-home,
.ra-jobs-page {
    width: var(--ra-page-width);
    margin: 0 auto;
    padding: 0 0 4.5rem;
    background: #ffffff;
    color: var(--ra-ink);
    overflow-x: clip;
}

.ra-container {
    width: var(--ra-content-width);
    margin: 0 auto;
}

.ra-section + .ra-section {
    margin-top: 2.2rem;
}

.ra-module {
    position: relative;
}

.ra-module--light {
    background: #ffffff;
    color: var(--ra-ink);
}

.ra-header-hero {
    margin-bottom: 2.2rem;
}

/* ===== Shared hero banner ===== */

.ra-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 28px;
    background: var(--ra-overview-bg);
    box-shadow: var(--ra-shadow);
}

.ra-banner--overview {
    min-height: clamp(420px, 52vw, 640px);
}

.ra-banner > img,
.ra-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% center;
    display: block;
}

.ra-banner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ra-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: inherit;
    width: min(1360px, calc(100vw - 3rem));
    margin-inline: auto;
    padding: clamp(3.2rem, 7vh, 6rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 6vh, 5rem);
}

.ra-banner-copy {
    width: min(100%, 760px);
    max-width: min(58%, 760px);
    padding-right: clamp(2rem, 5vw, 7rem);
}

.ra-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 2.3rem;
    margin-bottom: 1.15rem;
    padding: 0 .95rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    color: var(--ra-accent-blue);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .79rem;
    font-weight: 700;
    line-height: 1;
}

.ra-hero-title,
.ra-section-title,
.ra-hero-title-docking {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.ra-hero-title {
    max-width: 9.5ch;
    margin: 0 0 clamp(.95rem, 1.8vw, 1.45rem);
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: .94;
    font-weight: 700;
    color: var(--ra-ink);
}

.ra-hero-desc {
    max-width: 52ch;
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.28rem);
    line-height: 1.68;
    color: var(--ra-ink-soft);
}

.ra-count-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.6rem;
}

.ra-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.24);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    color: var(--ra-ink);
    border-color: rgba(20, 33, 47, .16);
    background: rgba(255, 255, 255, .72);
}

/* ===== Section heading ===== */

.ra-module-body {
    padding: 4.6rem 0 5.1rem;
}

.ra-module-body--full {
    width: 100%;
    max-width: none;
    padding-left: clamp(16px, 2vw, 32px);
    padding-right: clamp(16px, 2vw, 32px);
}

.ra-editorial-head {
    max-width: 62rem;
    margin-bottom: 1.5rem;
}

.ra-section-title {
    max-width: var(--ra-measure-section);
    margin: 0;
    font-size: clamp(2.4rem, 4.2vw, 4.2rem);
    line-height: .96;
    font-weight: 700;
    color: var(--ra-ink);
}

.ra-hero-title-docking {
    margin: 0;
    font-size: clamp(2.4rem, 4.2vw, 4.4rem);
    line-height: .96;
    font-weight: 700;
    color: var(--ra-ink);
}

.ra-section-desc {
    max-width: 58rem;
    margin-top: 1.35rem;
    color: var(--ra-ink-soft);
    font-size: 1.02rem;
    line-height: 1.85;
}

/* ===== Shell / toolbar ===== */

.ra-card-shell {
    background: var(--ra-surface);
    border: 1px solid var(--ra-line);
    border-radius: 28px;
    box-shadow: var(--ra-shadow);
    backdrop-filter: blur(8px);
}

.ra-toolbar {
    padding: 1.25rem;
}

.ra-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ra-search-wrap {
    flex: 1 1 420px;
}

.ra-search,
.ra-sort-select {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--ra-line);
    background: #fff;
    padding: 0 1rem;
    color: #24324a;
    outline: none;
}

    .ra-search::placeholder {
        color: #9aa7bd;
    }

.ra-sort-wrap {
    flex: 0 0 240px;
}

.ra-controls,
.ra-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.ra-view-toggle,
.ra-page-size {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem;
    border-radius: 999px;
    background: rgba(47,107,255,.06);
    border: 1px solid rgba(47,107,255,.08);
}

.ra-toggle-btn,
.ra-size-btn {
    min-height: 38px;
    padding: 0 .95rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #30508f;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

    .ra-toggle-btn.is-active,
    .ra-size-btn.is-active {
        background: #fff;
        box-shadow: 0 6px 14px rgba(20,44,84,.06);
        color: #1f2c44;
    }

.ra-toolbar-bottom {
    margin-top: 1rem;
}

/* ===== Category filters ===== */

.ra-category-panel {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.ra-category-row {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
}

.ra-category-row--main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .85rem;
}

.ra-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--ra-accent-line);
    background: #fff;
    color: var(--ra-accent);
    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;
    transition: all .18s ease;
}

    .ra-category-chip:hover {
        background: var(--ra-accent-soft);
        border-color: var(--ra-accent-line-strong);
    }

    .ra-category-chip.is-active {
        background: var(--ra-blue-soft);
        border-color: rgba(47,107,255,.18);
        color: var(--ra-blue);
    }

/* ===== Target results ===== */

.ra-results-block {
    display: grid;
    gap: clamp(1.25rem, 2vw, 2rem);
    width: var(--ra-content-width);
    margin: 0 auto;
}

.ra-results-title {
    margin-bottom: 1.25rem;
}

.ra-card-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ra-target-card {
    border: 1px solid var(--ra-line);
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .ra-target-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--ra-shadow-card);
    }

.ra-target-thumb-btn,
.ra-table-thumb-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.ra-target-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #eef3fa;
}

.ra-target-body {
    padding: 1rem;
}

.ra-target-title {
    margin-bottom: .35rem;
    font-size: 1.02rem;
    font-weight: 740;
}

.ra-target-sub {
    color: var(--ra-text);
    font-size: .92rem;
    margin-bottom: .8rem;
}

/* ===== Tables ===== */

.ra-table-view {
    display: none;
}

.ra-table-wrap {
    padding: 1.25rem 0 0;
}

.ra-table-shell {
    width: 100%;
    border: 1px solid var(--ra-line);
    border-radius: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(255,255,255,.97);
}

.ra-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

    .ra-table th,
    .ra-table thead th {
        background: rgba(47,107,255,.06);
        color: #32517c;
        text-transform: uppercase;
        letter-spacing: .04em;
        font-size: .84rem;
        font-weight: 800;
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid var(--ra-line);
    }

    .ra-table td,
    .ra-table tbody td {
        padding: 1rem;
        border-bottom: 1px solid var(--ra-line);
        vertical-align: middle;
    }

    .ra-table tbody tr:nth-child(odd) {
        background: #f8fbff;
    }

    .ra-table tbody tr:nth-child(even) {
        background: #fff8f1;
    }

    .ra-table tbody tr:hover {
        background: #eef5ff;
        transition: background .18s ease;
    }

    .ra-table tbody tr:last-child td {
        border-bottom: 0;
    }

.ra-table-thumb {
    width: 78px;
    border-radius: 14px;
    display: block;
}

.ra-table-name {
    font-weight: 700;
    color: var(--ra-title);
}

.ra-table-meta,
.ra-ref-links,
.ra-meta {
    color: var(--ra-text);
    font-size: .94rem;
    line-height: 1.7;
}

    .ra-ref-links a {
        color: var(--ra-blue);
        text-decoration: none;
        margin-right: .5rem;
    }

        .ra-ref-links a:hover {
            text-decoration: underline;
        }

/* ===== Job list ===== */

.ra-jobs-page {
    width: var(--ra-page-width);
}

.ra-filter-row {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.ra-filter-btn {
    min-height: 36px;
    padding: 0 .9rem;
    border: 1px solid var(--ra-line);
    border-radius: 999px;
    background: #fff;
    color: #2f405e;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
}

    .ra-filter-btn.is-active {
        background: rgba(47,107,255,.08);
        border-color: rgba(47,107,255,.18);
        color: var(--ra-blue);
    }

.ra-jobs-table {
    min-width: 1180px;
}

    .ra-jobs-table th:first-child,
    .ra-jobs-table td:first-child {
        min-width: 280px;
    }

    .ra-jobs-table th:last-child,
    .ra-jobs-table td:last-child {
        white-space: nowrap;
    }

.ra-job-name {
    font-weight: 760;
    line-height: 1.6;
}

    .ra-job-name a {
        color: inherit;
        text-decoration: none;
    }

        .ra-job-name a:hover {
            color: var(--ra-blue);
        }

.ra-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 .75rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    border: 1px solid transparent;
}

    .ra-status-badge.success {
        color: var(--ra-success);
        background: rgba(31,157,103,.08);
        border-color: rgba(31,157,103,.18);
    }

    .ra-status-badge.primary {
        color: var(--ra-blue);
        background: rgba(47,107,255,.08);
        border-color: rgba(47,107,255,.18);
    }

    .ra-status-badge.warning {
        color: var(--ra-warning);
        background: rgba(200,132,9,.08);
        border-color: rgba(200,132,9,.18);
    }

    .ra-status-badge.danger {
        color: var(--ra-danger);
        background: rgba(214,69,69,.08);
        border-color: rgba(214,69,69,.18);
    }

    .ra-status-badge.secondary {
        color: var(--ra-secondary);
        background: rgba(102,112,133,.08);
        border-color: rgba(102,112,133,.18);
    }

.ra-progress-wrap {
    min-width: 180px;
}

.ra-progress-bar {
    width: 100%;
    height: 8px;
    margin-bottom: .45rem;
    border-radius: 999px;
    background: #edf2f8;
    overflow: hidden;
}

.ra-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4b7dff, #69c8d0);
}

.ra-row-actions {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}

.ra-action-btn {
    min-height: 36px;
    padding: 0 .85rem;
    border: 1px solid var(--ra-line);
    border-radius: 999px;
    background: #fff;
    color: #24324a;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

    .ra-action-btn.primary {
        background: var(--ra-blue);
        color: #fff;
        border-color: var(--ra-blue);
    }

    .ra-action-btn.danger {
        color: var(--ra-danger);
        border-color: rgba(214,69,69,.22);
        background: rgba(214,69,69,.04);
    }

.ra-rename-row {
    display: none;
    background: rgba(47,107,255,.03);
}

.ra-rename-box {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.ra-rename-input {
    flex: 1 1 340px;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid var(--ra-line);
    padding: 0 .9rem;
    background: #fff;
}

/* ===== Guidance / docking blocks ===== */

.ra-guidance-section {
    width: 100%;
}

.job-name-row {
    margin-bottom: .95rem;
    padding: .95rem .95rem .75rem;
    border: 1px solid var(--ra-line-soft);
    border-radius: 16px;
    background: #fff;
}

    .job-name-row label {
        font-weight: 700;
        color: #22324a;
    }

    .job-name-row .form-control {
        min-height: 46px;
        border-radius: 12px;
        border-color: var(--ra-line);
        box-shadow: none;
    }

        .job-name-row .form-control:focus {
            border-color: rgba(47,107,255,.35);
            box-shadow: 0 0 0 .2rem rgba(47,107,255,.08);
        }

.ra-side-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ra-info-card {
    border: 1px solid var(--ra-line-soft);
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    padding: 1rem;
    box-shadow: none;
}

.ra-info-title {
    margin-bottom: .45rem;
    color: #1f2c44;
    font-size: 1rem;
    font-weight: 740;
}

.ra-info-body {
    color: var(--ra-text);
    line-height: 1.78;
    font-size: .95rem;
}

.ra-info-list {
    padding-left: 1.05rem;
    margin-bottom: 0;
}

    .ra-info-list li + li {
        margin-top: .4rem;
    }

/* ===== Pagination / footer / buttons ===== */

.ra-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
}

.ra-page-btn {
    min-width: 96px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--ra-line);
    background: #fff;
    font-weight: 700;
}

.ra-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ra-text);
    border: 1px dashed var(--ra-line);
    border-radius: 22px;
    background: rgba(255,255,255,.75);
}

.btn-ra-primary,
.btn-ra-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 0 .9rem;
    font-weight: 700;
    text-decoration: none !important;
    font-size: .9rem;
}

.btn-ra-primary {
    background: var(--ra-blue);
    color: #fff !important;
    border: 0;
}

.btn-ra-secondary {
    background: #fff;
    color: #24324a !important;
    border: 1px solid var(--ra-line);
}

.ra-footer-actions,
.ra-footer {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.ra-footer {
    align-items: center;
    justify-content: space-between;
}

.ra-result-info {
    color: var(--ra-text);
    font-weight: 600;
    font-size: .95rem;
}

.ra-modal-meta {
    display: grid;
    gap: .5rem;
    color: var(--ra-title);
}

/* ===== Responsive ===== */

@media (max-width: 1399.98px) {
    .ra-card-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .col-updated {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .ra-card-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .ra-banner-copy {
        max-width: min(64%, 720px);
    }

    .ra-hero-title {
        font-size: clamp(2.7rem, 5.4vw, 5.2rem);
    }
}

@media (max-width: 991.98px) {
    :root {
        --ra-page-width: min(100vw - 2rem, 100%);
        --ra-content-width: min(100vw - 2rem, 100%);
    }

    .ra-banner--overview {
        min-height: clamp(380px, 68vw, 560px);
    }

    .ra-banner-inner {
        width: min(100vw - 2rem, 100%);
    }

    .ra-banner-copy {
        max-width: min(100%, 42rem);
        padding-right: 0;
    }

    .ra-banner img {
        object-position: 68% center;
    }

    .ra-hero-title {
        max-width: 11ch;
        font-size: clamp(2.45rem, 7vw, 4.35rem);
    }

    .ra-hero-desc {
        max-width: 46ch;
        font-size: 1rem;
    }

    .ra-search-wrap,
    .ra-sort-wrap {
        flex: 1 1 100%;
    }

    .ra-category-row--main {
        grid-template-columns: repeat(2, 1fr);
    }

    .ra-side-stack {
        grid-template-columns: 1fr;
    }

    .col-created,
    .col-ligands {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --ra-page-width: min(100vw - 1.25rem, 100%);
        --ra-content-width: min(100vw - 1.25rem, 100%);
    }

    .ra-card-view,
    .ra-category-row--main {
        grid-template-columns: 1fr;
    }

    .ra-category-chip {
        width: 100%;
    }

    .ra-banner {
        border-radius: 22px;
    }

    .ra-banner--overview {
        min-height: clamp(420px, 110vw, 560px);
    }

    .ra-banner-inner {
        width: min(100vw - 1.25rem, 100%);
        padding: 4rem .85rem 2.8rem;
    }

    .ra-banner img {
        object-position: 62% center;
    }

    .ra-banner-overlay--dark {
        background: linear-gradient( 90deg, rgba(4,10,17,.96) 0%, rgba(4,10,17,.82) 58%, rgba(4,10,17,.46) 100% );
    }

    .ra-hero-title {
        max-width: 10.5ch;
        font-size: clamp(2.15rem, 10vw, 3.4rem);
    }

    .ra-hero-desc {
        font-size: .96rem;
        line-height: 1.7;
    }

    .ra-kicker {
        min-height: 2.05rem;
        padding-inline: .82rem;
        font-size: .72rem;
        color: #5f67d8; 
    }

    .ra-count-badges {
        gap: .5rem;
        margin-top: 1.35rem;
    }

    .ra-count-badge {
        min-height: 32px;
        padding: 0 .72rem;
        font-size: .78rem;
    }

    .ra-table-shell {
        overflow-x: auto;
    }

    .ra-pagination,
    .ra-footer,
    .ra-toolbar-top {
        flex-direction: column;
        gap: .75rem;
        align-items: stretch;
    }

    .ra-footer-actions,
    .ra-actions,
    .ra-controls {
        width: 100%;
    }

    .btn-ra-primary,
    .btn-ra-secondary {
        width: 100%;
    }

    .ra-module-body {
        padding: 3rem 0 3.5rem;
    }

    .ra-section-title {
        max-width: none;
        font-size: clamp(2rem, 8.5vw, 2.7rem);
    }
}
