
:root {
    --font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* Bootstrap 5.3: ensure components (buttons, forms, nav) use v2 face, not system UI stack */
    --bs-font-sans-serif: var(--font-family);
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-heading-font-family: var(--bs-font-sans-serif);
    --primary-text-color: #121E24;
    --primary-color: #05C7AA;
    --secondary-color: #8D64AA;
    /* Bootstrap 5.3 theme hooks (CDN build uses these for buttons, focus rings, etc.) */
    --bs-primary: #05c7aa;
    --bs-primary-rgb: 5, 199, 170;
    --bs-secondary: #8d64aa;
    --bs-secondary-rgb: 141, 100, 170;
    --bs-link-hover-color: var(--primary-color);
    --bs-link-hover-color-rgb: 5, 199, 170;
}
/* Prevents horizontal scroll while .reveal--left / --right use translateX before .is-visible */
html {
    overflow-x: hidden;
}
body {
    font-family: var(--font-family);
    color: var(--primary-text-color);
    overflow-x: clip;
    max-width: 100%;
}
.nav-link {
    text-transform: uppercase;
    color: var(--primary-text-color);
    font-weight: bold;
}
.nav-link:not(.active):not(.disabled):hover,
.nav-link:not(.active):not(.disabled):focus-visible {
    color: var(--primary-color);
}
.link-secondary {
    text-decoration-color: currentColor;
}
/* Same look for unvisited and visited (browsers otherwise diverge for privacy/history) */
.link-secondary:link,
.link-secondary:visited {
    color: var(--secondary-color) !important;
    text-decoration-color: currentColor;
}
.link-secondary:hover,
.link-secondary:focus-visible {
    color: var(--primary-color) !important;
    text-decoration-color: var(--primary-color);
}
.link-body-emphasis {
    text-decoration-color: currentColor;
}
.link-body-emphasis:link,
.link-body-emphasis:visited {
    color: inherit !important;
    text-decoration-color: currentColor;
}
.link-body-emphasis:hover,
.link-body-emphasis:focus-visible {
    color: var(--primary-color) !important;
    text-decoration-color: var(--primary-color);
}
/* BS5 .btn reads --bs-btn-* from variant classes; set these so teal/purple win over default blue */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--secondary-color);
    --bs-btn-hover-border-color: var(--secondary-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--secondary-color);
    --bs-btn-active-border-color: var(--secondary-color);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--secondary-color);
    --bs-btn-hover-border-color: var(--secondary-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--secondary-color);
    --bs-btn-active-border-color: var(--secondary-color);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--secondary-color);
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--secondary-color);
    --bs-btn-disabled-border-color: var(--secondary-color);
    --bs-btn-focus-shadow-rgb: var(--bs-secondary-rgb);
}
.btn-outline-secondary {
    --bs-btn-color: var(--secondary-color);
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--secondary-color);
    --bs-btn-hover-border-color: var(--secondary-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-disabled-color: var(--secondary-color);
    --bs-btn-disabled-border-color: var(--secondary-color);
    --bs-btn-focus-shadow-rgb: var(--bs-secondary-rgb);
}

.text-primary {
    color: var(--primary-color) !important;
}
.text-secondary {
    color: var(--secondary-color) !important;
}

/*
 * Side art: one explicit axis + auto keeps aspect ratio (two fixed values stretch).
 * Height cap on tall sections avoids contain scaling wider than the viewport.
 */
.bg-r-1,
.bg-r-2,
.bg-r-3,
.bg-r-4 {
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto min(52vh, 640px);
    overflow-x: clip;
}
.bg-l-1,
.bg-l-2,
.bg-l-3,
.bg-l-4 {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto min(52vh, 640px);
    overflow-x: clip;
}
.bg-r-1 {
    background-image: url(../img/v2/rounded-side-right-1.png);
}
.bg-l-1 {
    background-image: url(../img/v2/rounded-side-left-1.png);
}
.bg-r-2 {
    background-image: url(../img/v2/rounded-side-right-2.png);
}
.bg-l-2 {
    background-image: url(../img/v2/rounded-side-left-2.png);
}
.bg-r-3 {
    background-image: url(../img/v2/rounded-side-right-3.png);
}
.bg-l-3 {
    background-image: url(../img/v2/rounded-side-left-3.png);
}
.bg-r-4 {
    background-image: url(../img/v2/rounded-side-right-4.png);
}
.bg-l-4 {
    background-image: url(../img/v2/rounded-side-left-4.png);
}

/* Shorter marketing bands: allow contain where section height stays modest */
.hero-section.bg-r-1,
.how-it-works.bg-l-1,
.what-we-deliver-content.bg-r-2,
.what-we-deliver-content.bg-l-2,
.what-we-deliver-content.bg-r-3,
.what-we-deliver-content.bg-l-3,
.about-how.bg-l-1,
.about-mission.bg-r-1,
.about-process.bg-l-1 {
    background-size: contain;
}

.about-how__index-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: lowercase;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.about-how__index-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.about-how__index-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(141, 100, 170, 0.25);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.75);
    color: var(--secondary-color);
    font-weight: 600;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.about-how__index-item:hover,
.about-how__index-item:focus-visible {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.about-how__index-time {
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Site footer: keep copy clear of left-side art on small screens */
.site-footer.bg-l-4 {
    overflow-x: clip;
    background-size: min(22vw, 400px) auto;
}
.site-footer .site-footer__heading {
    max-width: 36rem;
}
@media (max-width: 767.98px) {
    .bg-l-1,
    .bg-l-2,
    .bg-l-3,
    .bg-l-4,
    .bg-r-1,
    .bg-r-2,
    .bg-r-3,
    .bg-r-4 {
        background-size: auto min(38vh, 22rem);
    }
    .hero-section.bg-r-1,
    .what-we-deliver-content.bg-r-2,
    .what-we-deliver-content.bg-l-2,
    .what-we-deliver-content.bg-r-3,
    .what-we-deliver-content.bg-l-3,
    .about-how.bg-l-1,
    .about-mission.bg-r-1,
    .about-process.bg-l-1 {
        background-size: min(52vw, 18rem) auto;
    }
    /* Tall on mobile (vertical diagram): height cap only — not contain, not dual-axis */
    .how-it-works.bg-l-1 {
        background-size: auto min(32vh, 20rem);
        background-position: left top;
    }
    .site-footer.bg-l-4 {
        background-size: min(40vw, 15rem) auto;
        background-position: left top;
    }
    .site-footer .container {
        padding-left: max(1.25rem, 6vw);
        padding-right: max(1.25rem, 6vw);
    }
    .site-footer .site-footer__heading {
        width: 100%;
        max-width: none;
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.15;
    }
    .site-footer .site-footer__promo .btn {
        width: 100%;
        max-width: 20rem;
    }
}

/*
 * Legal slabs: middle-ground side art - between “tiny on short bands” and
 * “huge on long pages”. Width + modest min-height, both capped moderately.
 */
.legal-page {
    padding-bottom: 2.5rem;
}
.legal-slab {
    overflow-x: clip;
    min-height: clamp(16rem, 26vh, 24rem);
}
.legal-slab + .legal-slab {
    margin-top: -0.5rem;
}
.legal-slab[class*="bg-l"] {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto min(75vh, 520px);
}
.legal-slab[class*="bg-r"] {
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto min(75vh, 520px);
}
@media (max-width: 767.98px) {
    .legal-slab[class*="bg-l"],
    .legal-slab[class*="bg-r"] {
        background-size: min(44vw, 15rem) auto;
    }
}

/* Scroll-triggered section reveals */
.reveal {
    opacity: 0;
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal--up {
    transform: translateY(2rem);
}
.reveal--down {
    transform: translateY(-1.5rem);
}
.reveal--left {
    transform: translateX(-2rem);
}
.reveal--right {
    transform: translateX(2rem);
}
.reveal--fade {
    transform: none;
}
.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
    will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }
}

@media (min-width: 768px) {
    .meet-our-team:not(.meet-our-team-rows) .team-member {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .meet-our-team:not(.meet-our-team-rows) .team-member .team-content {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
    }
    .meet-our-team:not(.meet-our-team-rows) .team-member .team-bio {
        flex-grow: 1;
    }
    .meet-our-team:not(.meet-our-team-rows) .team-member .team-bottom {
        margin-top: auto;
    }
}

/* Team page: one member per row, image left / right alternates */
.meet-our-team,
.meet-our-team-rows {
    overflow-x: clip;
    max-width: 100%;
}
.meet-our-team-rows .team-member--row .team-bottom {
    margin-top: 1.25rem;
}

/* Fixed 4+8 grid: narrow image column, wider copy; portrait capped so columns stay tidy */
.meet-our-team-rows .team-row {
    max-width: 100%;
}
.meet-our-team-rows .team-row__media,
.meet-our-team-rows .team-row__body {
    min-width: 0;
    max-width: 100%;
}
.meet-our-team-rows .team-row__media img {
    display: block;
    width: 100%;
    max-width: min(100%, 340px);
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767.98px) {
    .meet-our-team.bg-r-4 {
        background-size: auto min(36vh, 22rem);
        background-position: right top;
    }
    .meet-our-team .container {
        padding-left: max(1rem, 4vw);
        padding-right: max(1rem, 4vw);
    }
    .meet-our-team-rows .team-row__media img {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 768px) {
    .meet-our-team-rows .team-row__media--narrow img {
        margin-right: auto;
        margin-left: 0;
    }
    .meet-our-team-rows .team-row__media--wide img {
        margin-left: auto;
        margin-right: 0;
    }
    .meet-our-team-rows .team-row__body {
        max-width: 100%;
    }
}

/* Legal pages (v2) */
.legal-prose {
    font-size: 0.95rem;
    line-height: 1.6;
}
.legal-prose .table {
    font-size: 0.9rem;
}

/* Admin layout: article + slab fill viewport between nav and footer */
body.admin-layout {
    min-height: 100vh;
    min-height: 100dvh;
}
body.admin-layout > .container-xxl {
    flex-shrink: 0;
}
body.admin-layout > .admin-page.legal-page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
body.admin-layout > .admin-page > .legal-slab {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.admin-layout > .admin-page > .legal-slab > .container {
    flex: 1 1 auto;
}
body.admin-layout > .site-footer {
    flex-shrink: 0;
    margin-top: 0 !important;
}

/* V2 admin (new/admin) */
.admin-page .admin-panel .table {
    font-size: 0.9rem;
}
.admin-page .disabled-link {
    pointer-events: none;
    opacity: 0.45;
}
.admin-page .mandatory {
    color: #dc3545;
}
.admin-page .text-green {
    color: var(--primary-color);
}
.admin-page .text-upper {
    text-transform: uppercase;
}
.admin-page .headshotPic {
    max-width: 180px;
    height: auto;
    border-radius: 0.35rem;
}

/* Uploader logs - dense rows; UA collapsed unless shared (banner) */
.admin-uploader-logs__table td {
    vertical-align: top;
}
.admin-uploader-logs .admin-uploader-log-message {
    font-size: 0.875rem;
    line-height: 1.45;
    word-break: break-word;
}
.admin-uploader-logs details.admin-uploader-log-ua summary {
    cursor: pointer;
    list-style-position: outside;
}
.admin-uploader-logs details.admin-uploader-log-ua summary::-webkit-details-marker {
    color: rgba(18, 30, 36, 0.45);
}

/* Admin jobs list - card rows instead of nested tables */
.admin-jobs-list .admin-job-card {
    border-radius: 0.5rem;
    transition: box-shadow 0.2s ease;
}
.admin-jobs-list > .admin-job-card:nth-child(odd) {
    --bs-card-bg: #fff;
    background-color: #fff;
}
.admin-jobs-list > .admin-job-card:nth-child(even) {
    --bs-card-bg: #f3f5f7;
    background-color: #f3f5f7;
}
.admin-jobs-list .admin-job-card:hover {
    box-shadow: 0 0.35rem 1.25rem rgba(18, 30, 36, 0.08) !important;
}
.admin-jobs-list .admin-job-card--archived {
    border-left: 3px solid rgba(108, 117, 125, 0.45);
}
.admin-jobs-list .btn.disabled,
.admin-jobs-list span.btn.disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.55;
}
.admin-clients-list .admin-client-card--archived {
    border-left: 3px solid rgba(108, 117, 125, 0.45);
}
.admin-job-card__title {
    color: var(--primary-text-color);
    letter-spacing: -0.02em;
}
.admin-job-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary-color);
    margin-bottom: 0.35rem;
}
.admin-job-card__slug {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    background: rgba(141, 100, 170, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(141, 100, 170, 0.2);
}
.admin-job-card__dates .admin-job-card__label {
    margin-bottom: 0.1rem;
}
.admin-job-card__role-pill {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 0.25rem;
    background: #f4f6f7;
    color: var(--primary-text-color);
    font-size: 0.8125rem;
}
/* Odd rows (white card): lilac pill so roles don’t read as flat grey on white */
.admin-jobs-list > .admin-job-card:nth-child(odd) .admin-job-card__role-pill {
    background: rgba(5, 199, 170, 0.12);
    border: 1px solid rgba(5, 199, 170, 0.22);
}
/* Even rows (grey card): pill must contrast with card (#f3f5f7 ≈ old pill grey) */
.admin-jobs-list > .admin-job-card:nth-child(even) .admin-job-card__role-pill {
    background: rgba(5, 199, 170, 0.12);
    border: 1px solid rgba(5, 199, 170, 0.22);
}
.admin-jobs-list .btn-sm {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.65rem;
}

/* Admin jobs list — client-side pagination */
.admin-jobs-pagination {
    --bs-pagination-padding-x: 0.65rem;
    --bs-pagination-padding-y: 0.35rem;
    --bs-pagination-font-size: 0.75rem;
    --bs-pagination-color: var(--secondary-color);
    --bs-pagination-bg: #fff;
    --bs-pagination-border-color: rgba(141, 100, 170, 0.22);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-hover-bg: rgba(5, 199, 170, 0.1);
    --bs-pagination-hover-border-color: rgba(5, 199, 170, 0.35);
    --bs-pagination-focus-color: var(--primary-color);
    --bs-pagination-focus-bg: rgba(5, 199, 170, 0.1);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(5, 199, 170, 0.2);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --bs-pagination-disabled-color: rgba(141, 100, 170, 0.45);
    --bs-pagination-disabled-bg: rgba(243, 245, 247, 0.9);
    --bs-pagination-disabled-border-color: rgba(141, 100, 170, 0.12);
    --bs-pagination-border-radius: 0.35rem;
}
.admin-jobs-pagination .pagination {
    gap: 0.3rem;
}
.admin-jobs-pagination .page-item + .page-item .page-link {
    margin-left: 0;
}
.admin-jobs-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(141, 100, 170, 0.22);
    background: #fff;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(18, 30, 36, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.admin-jobs-pagination .page-item:first-child .page-link,
.admin-jobs-pagination .page-item:last-child .page-link {
    border-radius: 0.35rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}
.admin-jobs-pagination .page-item .page-link:hover,
.admin-jobs-pagination .page-item .page-link:focus-visible {
    background: rgba(5, 199, 170, 0.1);
    border-color: rgba(5, 199, 170, 0.35);
    color: var(--primary-color);
    box-shadow: 0 0.15rem 0.5rem rgba(5, 199, 170, 0.12);
}
.admin-jobs-pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0.2rem 0.6rem rgba(5, 199, 170, 0.28);
}
.admin-jobs-pagination .page-item.disabled .page-link {
    background: rgba(243, 245, 247, 0.9);
    border-color: rgba(141, 100, 170, 0.12);
    color: rgba(141, 100, 170, 0.45);
    box-shadow: none;
    cursor: not-allowed;
}
.admin-jobs-pagination .page-item button.page-link {
    cursor: pointer;
}
.admin-jobs-pagination .page-item button.page-link:focus-visible {
    outline: 2px solid rgba(5, 199, 170, 0.45);
    outline-offset: 2px;
}
.admin-jobs-pagination #admin-jobs-pagination-meta {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* Admin job create / edit form */
.admin-job-form .card {
    border-radius: 0.5rem;
}
.admin-job-form .select2-container,
.admin-select-create .select2-container {
    width: 100% !important;
}
/* Select2 closed state: BS5 .form-select never applies to the replacement widget - give it control-like sizing */
.admin-job-form .select2-container .select2-selection,
.admin-select-create .select2-container .select2-selection {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: 0.375rem;
    background-color: #fff;
}
.admin-job-form .select2-container .select2-selection--single .select2-selection__rendered,
.admin-select-create .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
}
.admin-job-form__roles .admin-job-form__role-row .form-control-sm {
    min-height: calc(1.5em + 0.5rem + 2px);
}
.admin-job-form__adf-extras {
    border-radius: 0.35rem;
    background: #f3f5f7;
    border: 1px solid rgba(18, 30, 36, 0.06);
}

/* Admin applications list (per job) */
.admin-apps-list .admin-app-card {
    border-radius: 0.35rem;
    transition: box-shadow 0.15s ease;
}
.admin-apps-list .admin-app-card:hover {
    box-shadow: 0 0.2rem 0.75rem rgba(18, 30, 36, 0.07) !important;
}
.admin-apps-list--compact {
    gap: 0.35rem;
}
.admin-apps-list--compact .admin-app-card .card-body {
    padding: 0.4rem 0.65rem;
}
@media (min-width: 992px) {
    .admin-apps-list--compact .admin-app-card .card-body {
        padding: 0.35rem 0.75rem;
    }
}
.admin-app-compact__name {
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--primary-text-color);
    max-width: 100%;
}
.admin-app-compact__role {
    font-size: 0.75rem;
    max-width: 100%;
}
.admin-app-compact__id {
    display: inline-block;
    max-width: min(100%, 14rem);
    padding: 0.08rem 0.35rem;
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.3;
    color: var(--secondary-color);
    background: rgba(141, 100, 170, 0.07);
    border: 1px solid rgba(141, 100, 170, 0.18);
    border-radius: 0.25rem;
    vertical-align: middle;
}
.admin-apps-list--compact:not(.admin-apps-list--show-ids) .admin-app-compact__id-row {
    display: none !important;
}
.admin-apps-list--compact .admin-app-compact__btn {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.4rem;
    line-height: 1.35;
    border-radius: 0.25rem;
}
.admin-app-upload-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.32rem;
    border-radius: 0.2rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    border: 1px solid #dee2e6;
    background: #fff;
    color: var(--primary-text-color);
}
.admin-app-upload-pill .bi {
    font-size: 0.65rem;
}
.admin-app-upload-pill.is-ok {
    border-color: rgba(25, 135, 84, 0.35);
    color: #0a3622;
    background: rgba(25, 135, 84, 0.07);
}
.admin-app-upload-pill.is-miss {
    border-color: rgba(220, 53, 69, 0.35);
    color: #58151c;
    background: rgba(220, 53, 69, 0.06);
}
.admin-app-compact__uploads {
    row-gap: 0.25rem;
}

.admin-apps-filters .form-control-sm {
    font-size: 0.8rem;
}
.admin-apps-filters .form-check-label {
    font-size: 0.78rem;
    color: var(--primary-text-color);
}
.admin-apps-filters .form-check-input {
    margin-top: 0.2rem;
}

.admin-chase-recipients {
    max-height: min(50vh, 22rem);
    overflow: auto;
}

/* Create select - applicant picker (multi.js): denser than plugin defaults */
.admin-select-create .multi-wrapper {
    border-color: var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
}
.admin-select-create .multi-wrapper .search-input {
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    line-height: 0.6rem;
    border-bottom-color: var(--bs-border-color-translucent, rgba(0, 0, 0, 0.125));
}
.admin-select-create .multi-wrapper .non-selected-wrapper,
.admin-select-create .multi-wrapper .selected-wrapper {
    height: min(14rem, 36vh);
    padding: 0.3rem 0.35rem;
    vertical-align: top;
}
@media (min-width: 576px) {
    .admin-select-create .multi-wrapper .non-selected-wrapper,
    .admin-select-create .multi-wrapper .selected-wrapper {
        height: min(16rem, 38vh);
    }
}
@media (min-width: 992px) {
    .admin-select-create .multi-wrapper .non-selected-wrapper,
    .admin-select-create .multi-wrapper .selected-wrapper {
        height: min(30rem, 40vh);
    }
}
.admin-select-create .multi-wrapper .header {
    margin-bottom: 0.2rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.72rem;
    line-height: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--secondary-color, #6c757d);
}
.admin-select-create .multi-wrapper .item {
    padding: 0.2rem 0.35rem;
    font-size: 0.875rem;
    line-height: 0.6rem;
    border-radius: 0.2rem;
}
.admin-select-create .multi-wrapper .item-group {
    padding: 0.15rem 0.25rem 0.35rem;
}
.admin-select-create .multi-wrapper .item-group .group-label {
    font-size: 0.7rem;
    line-height: 0.6rem;
    padding: 0.15rem 0 0.1rem;
    opacity: 0.65;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admin-selects-list .admin-select-card {
    border-radius: 0.35rem;
    transition: box-shadow 0.15s ease;
}
.admin-selects-list .admin-select-card:hover {
    box-shadow: 0 0.2rem 0.75rem rgba(18, 30, 36, 0.07) !important;
}

/* Casting / media (v2 job layout) */
.cursor-pointer {
    cursor: pointer;
}

.job-layout-header__logo {
    width: clamp(6.75rem, 22vw, 7.75rem);
    height: auto;
}

.job-layout-main {
    /* Fills space between header and footer when body is flex column + min-vh-100 */
    min-height: 0;
}

/* Allow nested flex children to shrink (default min-height:auto breaks flex fill) */
.job-layout-main .job-application-page,
.job-layout-main .job-application-page .legal-slab,
.job-layout-main .job-application-page .container,
.job-layout-main .job-application-page .job-application-flow,
.job-layout-main .job-application-page #app,
.job-layout-main .job-application-page #app .card-body,
.job-layout-main .job-application-page #application,
.job-layout-main .job-application-page #nav-tabContent,
.job-layout-main .job-casting-page,
.job-layout-main .job-casting-page .legal-slab,
.job-layout-main .job-casting-page .container.d-flex.flex-column.flex-grow-1,
.job-layout-main .job-casting-page .job-casting-card,
.job-layout-main .job-casting-page .job-casting-card .card-body,
.job-layout-main .job-casting-page #nav-tabContent {
    min-height: 0;
}

/* Casting/media: active tab fills the flex card so the iframe panel can use remaining height */
.job-casting-page #nav-tabContent.tab-content > .tab-pane.active {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* Application flow: content-height steps (no viewport stretch / empty gap above actions) */
.job-application-page .legal-slab {
    min-height: 0;
}

/* Job application (v2) - matches legal/admin slab + brand accents; header/footer stay in layout/job */
.job-application-page .job-application-card,
.job-casting-page .job-casting-card {
    border-radius: 0.5rem;
}
.job-application-page .job-application-card__header,
.job-casting-page .job-casting-card__header {
    border-radius: 0.5rem 0.5rem 0 0;
}
.job-application-page .job-application-tabs .nav-tabs .nav-link,
.job-casting-page .job-application-tabs .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 0.35rem;
    color: var(--primary-text-color);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.15rem;
}
.job-application-page .job-application-tabs .nav-tabs .nav-link:hover:not(.disabled),
.job-casting-page .job-application-tabs .nav-tabs .nav-link:hover:not(.disabled) {
    border-color: rgba(5, 199, 170, 0.35);
    color: var(--primary-color);
}
.job-application-page .job-application-tabs .nav-tabs .nav-link.active,
.job-casting-page .job-application-tabs .nav-tabs .nav-link.active {
    background: rgba(5, 199, 170, 0.12);
    border-color: rgba(5, 199, 170, 0.35);
    color: var(--primary-text-color);
}
.job-application-page .job-app-step-title,
.job-casting-page .job-app-step-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary-color);
}
.job-casting-page .job-media-iframe-wrap {
    border-color: rgba(18, 30, 36, 0.08) !important;
}
.job-casting-page .job-media-iframe {
    min-height: 28rem;
    vertical-align: middle;
}
.job-application-page .job-app-callout,
.job-casting-page .job-app-callout {
    background: #f8f9fa;
    border-color: rgba(18, 30, 36, 0.08) !important;
    color: var(--primary-text-color);
}
.job-application-page .job-app-panel {
    background: #f3f5f7;
    border: 1px solid rgba(18, 30, 36, 0.06);
}
.job-application-page .job-app-table {
    --bs-table-striped-bg: rgba(141, 100, 170, 0.04);
}
.job-application-page .job-app-paragraph {
    margin-bottom: 0;
    color: var(--primary-text-color);
}
.job-application-page .job-app-paragraph--bg-secondary {
    background: #eef1f3 !important;
    border-radius: 0.35rem;
}
.job-application-page .job-app-errors ul {
    margin-bottom: 0;
}
.job-application-page .job-application-card--completion .card-footer {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Confirmation tab: section cards + readable label/value pairs */
.job-application-page .job-app-confirm-section {
    border-radius: 0.45rem;
}
.job-application-page .job-app-confirm-section .card-header {
    border-radius: 0.45rem 0.45rem 0 0;
}
.job-application-page .job-app-confirm-body {
    --bs-card-spacer-y: 0.5rem;
    --bs-card-spacer-x: 0.65rem;
}
.job-application-page .job-app-confirm-tile .job-app-confirm-value {
    font-size: 0.875rem;
    line-height: 1.35;
    margin-top: 0.1rem;
}
.job-application-page .job-app-confirm-past thead th {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    border-bottom-color: rgba(18, 30, 36, 0.08);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.job-application-page .job-app-confirm-past tbody td,
.job-application-page .job-app-confirm-past tbody th[scope="row"] {
    font-size: 0.875rem;
    vertical-align: middle;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
.job-application-page .job-app-confirm-value:empty::before {
    content: "-";
    color: rgba(18, 30, 36, 0.35);
}

/* Form card: min-height 0 keeps flex ancestors happy when casting layout uses fill-height */
.job-application-page .job-app-form-body {
    min-height: 0;
}
.job-application-page .job-app-confirm-scroll {
    min-height: 0;
}
.job-application-page .job-application-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.job-application-page #nav-tab {
    flex-wrap: nowrap;
}
@media (min-width: 992px) {
    .job-application-page #nav-tab {
        flex-wrap: wrap;
    }
}

/* --- Home: “What we deliver” - md+ two columns; stacked on small screens --- */
/* Cap only in the custom property; pair with width:100% + max-width on tiles so % resolves
   against the grid column (not the shrink-wrapped stat wrapper - avoids uneven tile sizes). */
.what-we-deliver-content {
    --home-deliver-tile-max: min(260px, 86vw);
}
@media (min-width: 768px) {
    .what-we-deliver-content {
        --home-deliver-tile-max: 320px;
    }
}
@media (min-width: 992px) {
    .what-we-deliver-content {
        --home-deliver-tile-max: 380px;
    }
}
@media (min-width: 1200px) {
    .what-we-deliver-content {
        --home-deliver-tile-max: 400px;
    }
}

/* Stretch columns to one row height, then centre each tile - avoids uneven vertical offset. */
.what-we-deliver-content__row {
    align-items: stretch;
}
.what-we-deliver-content__row > [class*="col-"].d-flex {
    align-items: center;
}

.home-deliver-stat {
    --stat-accent: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.35rem 0 1.25rem;
}
/* Narrow screens: centred copy inside the frame (matches stacked image → stat flow). */
@media (max-width: 767.98px) {
    .home-deliver-stat__inner {
        justify-content: center;
    }
    .home-deliver-stat__text,
    .home-deliver-stat__value {
        text-align: center;
    }
}
@media (min-width: 768px) {
    .home-deliver-stat {
        padding: 0.35rem 0 0.35rem;
        /* Fill column so inner % / max-width use a stable base (matches art column). */
        width: 100%;
        max-width: none;
    }
    /* Left column: push tile + copy toward centre gutter. */
    .home-deliver-stat--col-left {
        justify-content: flex-end;
        margin-right: 2rem;
    }
    /* Right column: toward gutter. */
    .home-deliver-stat--col-right {
        justify-content: flex-start;
        margin-left: 2rem;
    }
    .home-deliver-stat--col-left .home-deliver-stat__text,
    .home-deliver-stat--col-left .home-deliver-stat__value {
        text-align: right;
    }
    .home-deliver-stat--col-right .home-deliver-stat__text,
    .home-deliver-stat--col-right .home-deliver-stat__value {
        text-align: left;
    }
}
.home-deliver-stat--primary {
    --stat-accent: var(--primary-color);
}
.home-deliver-stat--secondary {
    --stat-accent: var(--secondary-color);
}
.home-deliver-stat__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--home-deliver-tile-max, 280px);
    aspect-ratio: 1;
    min-width: 0;
    flex-shrink: 0;
    padding: clamp(0.85rem, 2.8vw, 1.5rem);
    isolation: isolate;
}
/* Frame PNG sits behind copy: fills the padded box (relative parent → absolute layer). */
.home-deliver-stat__frame {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}
.home-deliver-stat__text {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    overflow-wrap: break-word;
    padding: clamp(0.75rem, 4vw, 1.25rem) clamp(0.85rem, 4.5vw, 1.5rem);
}
@media (min-width: 768px) {
    .home-deliver-stat__text {
        padding: clamp(0.85rem, 1.8vw, 1.35rem) clamp(0.9rem, 2vw, 1.5rem);
    }
}
.home-deliver-stat__value {
    font-size: clamp(1.93rem, 8.55vw, 3.82rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 clamp(0.35rem, 2vw, 0.55rem);
    letter-spacing: -0.03em;
    color: var(--stat-accent);
    text-align: left;
}
.home-deliver-stat__label {
    font-size: clamp(0.94rem, 3.06vw, 1.67rem);
    font-weight: 600;
    line-height: 1.28;
    margin: 0;
    color: var(--primary-text-color);
}
.home-deliver-stat__label + .home-deliver-stat__label {
    margin-top: 0.2rem;
}

/* Same footprint as .home-deliver-stat__inner: square box so rows align vertically. */
.home-deliver-art {
    width: 100%;
    max-width: calc(var(--home-deliver-tile-max, 280px) * 1.3);
    aspect-ratio: 1;
    flex-shrink: 0;
    margin-inline: auto;
    border-radius: 1.75rem;
    overflow: hidden;
    line-height: 0;
}
@media (min-width: 768px) {
    .what-we-deliver-content .home-deliver-art {
        margin-inline: 0;
    }
}
.home-deliver-art__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 1.75rem;
}

/* Admin — tape processor status */
.admin-processor__header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}
.admin-processor__live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--secondary-color, #6c757d);
}
.admin-processor__live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #198754;
    flex-shrink: 0;
}
.admin-processor__live.is-fetching .admin-processor__live-dot {
    animation: admin-processor-pulse 0.9s ease-in-out infinite;
}
@keyframes admin-processor-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}
.admin-processor-overview .row {
    align-items: stretch;
}
.admin-processor-stat {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.admin-processor-panel.h-100 {
    height: 100%;
}
.admin-processor-stat--compact .admin-processor-stat__body {
    padding: 0.65rem 0.5rem;
}
.admin-processor-stat--compact .admin-processor-stat__value {
    font-size: 1.5rem;
}
.admin-processor-stat--compact .admin-processor-stat__label {
    font-size: 0.72rem;
    line-height: 1.25;
}
.admin-processor-service-bar__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.25rem;
    padding: 0.75rem 1rem;
}
.admin-processor-service-bar__main {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 12rem;
}
.admin-processor-service-bar__text {
    min-width: 0;
}
.admin-processor-service-bar__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}
.admin-processor-service-bar__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    font-size: 0.75rem;
    color: var(--secondary-color, #6c757d);
    flex: 1 1 auto;
    justify-content: flex-end;
}
.admin-processor-service-bar__meta li {
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .admin-processor-service-bar__meta {
        justify-content: flex-start;
        width: 100%;
    }
}
.admin-processor-stat__body {
    padding: 1rem 1.1rem;
}
.admin-processor-stat__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}
.admin-processor-stat__icon--primary {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}
.admin-processor-stat__icon--info {
    background: rgba(13, 202, 240, 0.15);
    color: #0aa2c0;
}
.admin-processor-stat__icon--muted {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}
.admin-processor-stat__icon--danger {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}
.admin-processor-stat__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-text-color, #212529);
}
.admin-processor-stat__label {
    font-size: 0.8rem;
    color: var(--secondary-color, #6c757d);
    margin-top: 0.15rem;
}
.admin-processor-panel {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06);
}
.admin-processor-panel__head {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}
.admin-processor-panel__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-text-color, #212529);
}
.admin-processor-panel__subtitle {
    font-size: 0.75rem;
    color: var(--secondary-color, #6c757d);
    margin: 0.15rem 0 0;
}
.admin-processor-table {
    font-size: 0.8125rem;
    margin-bottom: 0;
}
.admin-processor-table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--secondary-color, #6c757d);
    border-bottom-width: 1px;
    white-space: nowrap;
    padding-top: 0.65rem;
    padding-bottom: 0.5rem;
}
.admin-processor-table tbody td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    vertical-align: middle;
}
.admin-processor-table .admin-processor-file {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-processor-app-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    cursor: default;
}
.admin-processor-type--tape {
    background: rgba(13, 110, 253, 0.12);
    color: #084298;
    font-weight: 600;
    font-size: 0.68rem;
}
.admin-processor-type--headshot {
    background: rgba(25, 135, 84, 0.12);
    color: #0a3622;
    font-weight: 600;
    font-size: 0.68rem;
}
.admin-processor-table tr.is-stale {
    background: rgba(255, 193, 7, 0.08);
}
.admin-processor-empty td {
    border: 0 !important;
}