/*
 * SIBE Bullhorn Jobs Frontend
 *
 * Scope all styles under .sibe-bullhorn-portal so the shortcode can be used
 * safely in Elementor, Divi, Gutenberg and classic WordPress templates.
 */

/* -------------------------------------------------------------------------
 * 01. Design tokens and base scope
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-portal {
    --sibe-jobs-primary: #00145f;
    --sibe-jobs-primary-dark: #000b3d;
    --sibe-jobs-primary-light: #00479e;
    --sibe-jobs-text: #00145f;
    --sibe-jobs-body: #0f172a;
    --sibe-jobs-muted: #566070;
    --sibe-jobs-border: #c8c9d8;
    --sibe-jobs-border-soft: #e5e7ee;
    --sibe-jobs-bg: #fff;
    --sibe-jobs-soft-bg: #f5f5f8;
    --sibe-jobs-panel-bg: #e7e6ef;
    --sibe-jobs-focus: rgba(0, 20, 95, .18);
    --sibe-jobs-radius: 0px;
    --sibe-jobs-manual-highlight: 1;
    width: 100%;
    max-width: 1120px;
    color: var(--sibe-jobs-body);
    font-family: inherit;
}

.sibe-bullhorn-portal *,
.sibe-bullhorn-portal *::before,
.sibe-bullhorn-portal *::after {
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * 02. Shared icon handling
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    color: currentColor;
    line-height: 1;
}

.sibe-bullhorn-icon svg,
.sibe-bullhorn-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

/* -------------------------------------------------------------------------
 * 03. Filter panel
 *
 * The filter grid is intentionally container-friendly. It does not assume a
 * wide full-page layout, because the shortcode may sit inside narrow Divi or
 * Elementor columns. Container queries handle the real available width; media
 * queries are kept as a fallback for older browsers.
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-filters {
    border-radius: var(--sibe-jobs-radius);
    container-type: inline-size;
    width: 100%;
    padding: 28px 30px 30px;
    margin: 0 0 30px;
    background: var(--sibe-jobs-panel-bg);
    border: 1px solid var(--sibe-jobs-border);
}

.sibe-bullhorn-filter-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--sibe-jobs-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.sibe-bullhorn-filter-heading .sibe-bullhorn-icon {
    width: 18px;
    height: 18px;
}

.sibe-bullhorn-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(145px, .9fr) minmax(105px, .6fr) minmax(125px, .7fr) minmax(155px, .9fr) minmax(145px, auto);
    gap: 16px;
    align-items: end;
}

.sibe-bullhorn-filter,
.sibe-bullhorn-filter-actions {
    min-width: 0;
}

.sibe-bullhorn-filter label {
    display: block;
    min-height: 15px;
    margin: 0 0 8px;
    color: var(--sibe-jobs-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.sibe-bullhorn-filters input,
.sibe-bullhorn-filters select {
    display: block;
    width: 100%;
    height: 50px;
    min-width: 0;
    min-height: 50px;
    margin: 0;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--sibe-jobs-border);
    border-radius: 0;
    color: var(--sibe-jobs-body);
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    vertical-align: bottom;
    appearance: auto;
}

.sibe-bullhorn-filters input:focus,
.sibe-bullhorn-filters select:focus {
    outline: 2px solid var(--sibe-jobs-focus);
    border-color: var(--sibe-jobs-primary);
}

.sibe-bullhorn-filter-actions {
    display: flex;
    align-items: flex-end;
}

.sibe-bullhorn-filter-actions .sibe-bullhorn-button {
    width: 100%;
    min-height: 50px;
    white-space: nowrap;
}

/* Container-based wrapping for narrow content columns. */
@container (max-width: 980px) {
    .sibe-bullhorn-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sibe-bullhorn-filter-keyword,
    .sibe-bullhorn-filter-actions {
        grid-column: 1 / -1;
    }
}

@container (max-width: 560px) {
    .sibe-bullhorn-filters {
        padding: 22px;
    }

    .sibe-bullhorn-filter-grid {
        grid-template-columns: 1fr;
    }

    .sibe-bullhorn-filter-keyword,
    .sibe-bullhorn-filter-actions {
        grid-column: auto;
    }
}

/* Fallback for browsers without container query support. */
@media (max-width: 1100px) {
    .sibe-bullhorn-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sibe-bullhorn-filter-keyword,
    .sibe-bullhorn-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .sibe-bullhorn-filters {
        padding: 22px;
    }

    .sibe-bullhorn-filter-grid {
        grid-template-columns: 1fr;
    }

    .sibe-bullhorn-filter-keyword,
    .sibe-bullhorn-filter-actions {
        grid-column: auto;
    }
}

/* -------------------------------------------------------------------------
 * 04. Results header and list layout
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-results-count {
    margin: 0 0 18px;
    color: var(--sibe-jobs-primary);
    font-size: 14px;
    font-weight: 700;
}

.sibe-bullhorn-jobs {
    display: grid;
    gap: 12px;
    width: 100%;
}

/* -------------------------------------------------------------------------
 * 05. Job card
 *
 * Cards stay intentionally compact and flat. The overview should show only information
 * needed for quick scanning; detailed benefits/tasks remain inside the modal.
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-job {
    border-radius: var(--sibe-jobs-radius);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "main logo"
        "action action";
    column-gap: 24px;
    row-gap: 10px;
    width: 100%;
    padding: 22px 36px 20px;
    background: var(--sibe-jobs-bg);
    border: 1px solid var(--sibe-jobs-border);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.sibe-bullhorn-job:hover {
    border-color: var(--sibe-jobs-primary);
    transform: translateY(-1px);
}

.sibe-bullhorn-job--manual {
    border-left: calc(5px * var(--sibe-jobs-manual-highlight)) solid var(--sibe-jobs-primary-light);
    background: linear-gradient(90deg, color-mix(in srgb, var(--sibe-jobs-primary-light) calc(4.5% * var(--sibe-jobs-manual-highlight)), transparent), var(--sibe-jobs-bg) 34%);
}

.sibe-bullhorn-job--manual .sibe-bullhorn-card-kicker {
    color: var(--sibe-jobs-primary);
}

.sibe-bullhorn-card-main {
    grid-area: main;
    min-width: 0;
}

.sibe-bullhorn-card-logo {
    grid-area: logo;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 118px;
}

.sibe-bullhorn-card-logo img {
    display: block;
    width: auto;
    max-width: 118px;
    max-height: 58px;
    object-fit: contain;
}

.sibe-bullhorn-card-action {
    grid-area: action;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
}

.sibe-bullhorn-card-kicker,
.sibe-bullhorn-modal-kicker {
    margin: 0 0 7px;
    color: var(--sibe-jobs-primary-light);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .085em;
}

.sibe-bullhorn-job-title {
    max-width: 920px;
    margin: 0 0 7px;
    color: var(--sibe-jobs-primary);
    font-size: clamp(18px, 1vw, 21px);
    line-height: 1.2;
    font-weight: 700;
}

.sibe-bullhorn-company-name {
    display: block;
    margin: 0 0 11px;
    color: var(--sibe-jobs-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.sibe-bullhorn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 20px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    color: var(--sibe-jobs-primary-dark);
}

.sibe-bullhorn-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(100%, 440px);
    min-width: 0;
    color: var(--sibe-jobs-primary-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.sibe-bullhorn-meta-item + .sibe-bullhorn-meta-item::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 17px;
    margin-right: 16px;
    background: var(--sibe-jobs-border);
}

.sibe-bullhorn-meta-item .sibe-bullhorn-icon {
    width: 17px;
    height: 17px;
    color: var(--sibe-jobs-primary);
}

.sibe-bullhorn-meta-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--sibe-jobs-primary-dark);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Highlights are intentionally hidden on cards; benefits appear in the modal. */
.sibe-bullhorn-highlights {
    display: none;
}

.sibe-bullhorn-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sibe-jobs-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
}

.sibe-bullhorn-card-link:hover,
.sibe-bullhorn-card-link:focus {
    color: var(--sibe-jobs-primary-light);
}

.sibe-bullhorn-card-link .sibe-bullhorn-icon {
    width: 17px;
    height: 17px;
    transition: transform .2s ease;
}

.sibe-bullhorn-card-link:hover .sibe-bullhorn-icon,
.sibe-bullhorn-card-link:focus .sibe-bullhorn-icon {
    transform: translateX(3px);
}

/* -------------------------------------------------------------------------
 * 06. Buttons
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--sibe-jobs-primary);
    border-radius: 0;
    background: var(--sibe-jobs-primary);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.sibe-bullhorn-button:hover,
.sibe-bullhorn-button:focus {
    background: var(--sibe-jobs-primary-dark);
    border-color: var(--sibe-jobs-primary-dark);
    color: #fff;
}

.sibe-bullhorn-button .sibe-bullhorn-icon {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.sibe-bullhorn-button:hover .sibe-bullhorn-icon,
.sibe-bullhorn-button:focus .sibe-bullhorn-icon {
    transform: translateX(3px);
}

/* -------------------------------------------------------------------------
 * 07. Modal
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.sibe-bullhorn-modal.is-open {
    display: block;
}

.sibe-bullhorn-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 11, 61, .72);
}

.sibe-bullhorn-modal-panel {
    position: relative;
    width: min(1120px, calc(100vw - 40px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    padding: 0;
    background: #fff;
    border: 1px solid var(--sibe-jobs-border);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
    animation: sibeBullhornModalIn .18s ease-out;
}

@keyframes sibeBullhornModalIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sibe-bullhorn-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: var(--sibe-jobs-primary);
    color: #fff;
    cursor: pointer;
}

.sibe-bullhorn-modal-close .sibe-bullhorn-icon {
    width: 22px;
    height: 22px;
}

.sibe-bullhorn-modal-header {
    padding: 38px 46px 30px;
    background: var(--sibe-jobs-panel-bg);
    border-bottom: 1px solid var(--sibe-jobs-border);
}

.sibe-bullhorn-modal-header h2 {
    max-width: 960px;
    margin: 0 0 14px;
    color: var(--sibe-jobs-primary);
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.13;
    font-weight: 700;
}

.sibe-bullhorn-modal-company {
    margin: 0 0 18px;
    color: var(--sibe-jobs-primary-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.sibe-bullhorn-modal-header .sibe-bullhorn-meta {
    margin-bottom: 0;
}

.sibe-bullhorn-modal-body {
    display: grid;
    gap: 0;
    padding: 0 46px 46px;
}

.sibe-bullhorn-modal-section {
    padding: 34px 0;
    border-top: 1px solid var(--sibe-jobs-border-soft);
}

.sibe-bullhorn-modal-section:first-child {
    border-top: 0;
}

.sibe-bullhorn-modal-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--sibe-jobs-primary);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    font-weight: 700;
}

.sibe-bullhorn-modal-section h3 .sibe-bullhorn-icon {
    width: 24px;
    height: 24px;
    color: var(--sibe-jobs-primary-light);
}

.sibe-bullhorn-modal-section p,
.sibe-bullhorn-modal-section li {
    color: var(--sibe-jobs-body);
    font-size: 16px;
    line-height: 1.75;
}

.sibe-bullhorn-modal-section p {
    margin: 0;
}

/* Study copy is normalized into real paragraphs so Bullhorn's inline markup
 * cannot create random visual line breaks in the modal. */
.sibe-bullhorn-study-text {
    display: grid;
    gap: 16px;
}

.sibe-bullhorn-study-text p {
    margin: 0;
}

.sibe-bullhorn-study-text a {
    color: var(--sibe-jobs-primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sibe-bullhorn-modal-section ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sibe-bullhorn-modal-section li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.sibe-bullhorn-modal-section li .sibe-bullhorn-icon {
    width: 20px;
    height: 17px;
    margin-top: 5px;
    color: var(--sibe-jobs-primary-light);
}

.sibe-bullhorn-application-section {
    margin-top: 10px;
    padding: 30px;
    background: var(--sibe-jobs-soft-bg);
    border: 1px solid var(--sibe-jobs-border);
}

/* -------------------------------------------------------------------------
 * 08. Pagination, loading and empty states
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.sibe-bullhorn-pagination a,
.sibe-bullhorn-pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--sibe-jobs-border);
    color: var(--sibe-jobs-primary);
    text-decoration: none;
}

.sibe-bullhorn-pagination strong {
    background: var(--sibe-jobs-primary);
    border-color: var(--sibe-jobs-primary);
    color: #fff;
}

body.sibe-bullhorn-modal-open {
    overflow: hidden;
}

.sibe-bullhorn-results {
    position: relative;
    min-height: 120px;
}

.sibe-bullhorn-portal.is-loading .sibe-bullhorn-results {
    opacity: .45;
    pointer-events: none;
}

.sibe-bullhorn-portal.is-loading .sibe-bullhorn-results::after {
    content: "";
    position: absolute;
    top: 34px;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border: 3px solid var(--sibe-jobs-border-soft);
    border-top-color: var(--sibe-jobs-primary);
    border-radius: 50%;
    animation: sibeBullhornSpin .75s linear infinite;
}

@keyframes sibeBullhornSpin {
    to {
        transform: rotate(360deg);
    }
}

.sibe-bullhorn-empty {
    padding: 34px 42px;
    background: #fff;
    border: 1px solid var(--sibe-jobs-border);
}

.sibe-bullhorn-empty h3 {
    margin: 0 0 8px;
    color: var(--sibe-jobs-primary);
    font-size: 22px;
    line-height: 1.25;
}

.sibe-bullhorn-empty p {
    margin: 0;
    color: var(--sibe-jobs-muted);
}

/* -------------------------------------------------------------------------
 * 09. Responsive card and modal adjustments
 * ------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .sibe-bullhorn-job {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "logo"
            "action";
        padding: 20px;
    }

    .sibe-bullhorn-card-logo {
        justify-content: flex-start;
        width: auto;
    }

    .sibe-bullhorn-job-title {
        font-size: clamp(19px, 5vw, 23px);
    }

    .sibe-bullhorn-card-action {
        justify-content: flex-start;
        width: 100%;
    }

    .sibe-bullhorn-button {
        width: 100%;
    }

    .sibe-bullhorn-meta {
        gap: 10px;
    }

    .sibe-bullhorn-meta-item {
        width: 100%;
        max-width: 100%;
    }

    .sibe-bullhorn-meta-item + .sibe-bullhorn-meta-item::before {
        display: none;
    }

    .sibe-bullhorn-modal-panel {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
        margin: 9px auto;
    }

    .sibe-bullhorn-modal-header,
    .sibe-bullhorn-modal-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .sibe-bullhorn-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* Persistent fallback card: the initiative application is appended after normal
 * search results and stays visually subtle while still being clearly clickable. */
.sibe-bullhorn-job--initiative {
    background: var(--sibe-jobs-soft-bg);
    border-color: var(--sibe-jobs-border);
}

.sibe-bullhorn-job--initiative .sibe-bullhorn-card-kicker {
    color: var(--sibe-jobs-primary);
}

/* -------------------------------------------------------------------------
 * 12. Application CTA
 * -------------------------------------------------------------------------
 * The real application form stays on the Saphir website. The modal only links
 * to that page when a safe URL is available, or falls back to the configured
 * application email address.
 */
.sibe-bullhorn-application-cta {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.sibe-bullhorn-application-cta-text {
    margin: 0;
    color: var(--sibe-jobs-muted);
    font-size: 14px;
    line-height: 1.6;
}

.sibe-bullhorn-application-email {
    color: var(--sibe-jobs-primary);
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
}

.sibe-bullhorn-application-email:hover,
.sibe-bullhorn-application-email:focus {
    color: var(--sibe-jobs-primary-light);
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * Location filter refinement
 *
 * The location filter is now a text search with datalist suggestions instead
 * of a fixed dropdown. This keeps the UI compact and lets users search by
 * city, full location text, or postal code where available.
 * ------------------------------------------------------------------------- */
.sibe-bullhorn-filter-location input::-webkit-calendar-picker-indicator {
    opacity: .65;
}

.sibe-bullhorn-filter-location input::placeholder {
    color: #7a819b;
}


/* -------------------------------------------------------------------------
 * 13. Radius search feedback
 * ---------------------------------------------------------------------- */
.sibe-bullhorn-filter-hint {
    display: block;
    margin-top: 6px;
    color: var(--sibe-jobs-muted);
    font-size: 12px;
    line-height: 1.4;
}

.sibe-bullhorn-location-notice {
    margin: -6px 0 18px;
    padding: 10px 12px;
    border-left: 3px solid var(--sibe-jobs-primary);
    background: var(--sibe-jobs-soft-bg);
    color: var(--sibe-jobs-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* -------------------------------------------------------------------------
 * 14. Milestone 4.2 - Frontend UX refinement
 * ---------------------------------------------------------------------- */
.sibe-bullhorn-portal :where(button, a, input, select):focus-visible {
    outline: 3px solid var(--sibe-jobs-focus);
    outline-offset: 3px;
}

.sibe-bullhorn-filters[aria-busy="true"] .sibe-bullhorn-button-primary {
    cursor: progress;
}

.sibe-bullhorn-button-primary.is-loading .sibe-bullhorn-button-icon {
    animation: sibeBullhornSpin .75s linear infinite;
}

.sibe-bullhorn-results.is-refreshed {
    animation: sibeBullhornResultsIn .28s ease-out;
}

@keyframes sibeBullhornResultsIn {
    from {
        opacity: .55;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keep the modal in the document for a smooth close/open transition while it
 * remains non-interactive and invisible in its closed state. */
.sibe-bullhorn-modal {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0s linear .2s, opacity .2s ease;
}

.sibe-bullhorn-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.sibe-bullhorn-modal-backdrop {
    opacity: 0;
    transition: opacity .2s ease;
}

.sibe-bullhorn-modal.is-open .sibe-bullhorn-modal-backdrop {
    opacity: 1;
}

.sibe-bullhorn-modal-panel {
    animation: none;
    opacity: 0;
    transform: translateY(14px) scale(.995);
    transition: opacity .2s ease, transform .2s ease;
}

.sibe-bullhorn-modal.is-open .sibe-bullhorn-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sibe-bullhorn-modal-close {
    transition: background-color .18s ease, transform .18s ease;
}

.sibe-bullhorn-modal-close:hover,
.sibe-bullhorn-modal-close:focus-visible {
    background: var(--sibe-jobs-primary-light);
    transform: scale(1.04);
}

/* Lightweight skeleton for lazy job-detail loading. */
.sibe-bullhorn-modal-skeleton {
    display: grid;
    gap: 18px;
    min-height: 460px;
    padding: 42px 46px;
    background: #fff;
}

.sibe-bullhorn-skeleton-line,
.sibe-bullhorn-skeleton-block {
    position: relative;
    overflow: hidden;
    background: var(--sibe-jobs-soft-bg);
}

.sibe-bullhorn-skeleton-line::after,
.sibe-bullhorn-skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
    animation: sibeBullhornSkeleton 1.25s ease-in-out infinite;
}

.sibe-bullhorn-skeleton-line--kicker {
    width: 170px;
    height: 13px;
}

.sibe-bullhorn-skeleton-line--title {
    width: min(78%, 760px);
    height: 44px;
}

.sibe-bullhorn-skeleton-line--company {
    width: min(42%, 360px);
    height: 22px;
    margin-bottom: 16px;
}

.sibe-bullhorn-skeleton-block {
    width: 100%;
    height: 150px;
    margin-top: 10px;
}

.sibe-bullhorn-skeleton-block--short {
    height: 96px;
}

@keyframes sibeBullhornSkeleton {
    100% {
        transform: translateX(100%);
    }
}

/* Correct the compact mobile layout and keep interactive elements easy to tap. */
@media (max-width: 767px) {
    .sibe-bullhorn-job {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "logo"
            "action";
        padding: 18px 20px;
    }

    .sibe-bullhorn-card-action {
        justify-content: flex-start;
    }

    .sibe-bullhorn-card-link {
        min-height: 40px;
    }

    .sibe-bullhorn-modal-skeleton {
        min-height: 420px;
        padding: 64px 24px 28px;
    }

    .sibe-bullhorn-skeleton-line--title {
        width: 92%;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sibe-bullhorn-portal *,
    .sibe-bullhorn-portal *::before,
    .sibe-bullhorn-portal *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* Structured application contact for manually maintained jobs. */
.sibe-bullhorn-application-contact-card {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    padding: 16px 18px;
    border-left: 3px solid var(--sibe-jobs-primary);
    background: var(--sibe-jobs-soft-bg);
}
.sibe-bullhorn-application-contact-card strong { color: var(--sibe-jobs-primary); font-size: 16px; }
.sibe-bullhorn-application-contact-card span { color: var(--sibe-jobs-muted); }
.sibe-bullhorn-application-contact-card a { width: fit-content; color: var(--sibe-jobs-primary); font-weight: 700; text-decoration: none; }
.sibe-bullhorn-application-contact-card a:hover,
.sibe-bullhorn-application-contact-card a:focus { text-decoration: underline; }
