/* Homepage and job page (index.html, job.html), on top of bootstrap + styles.min.css.
   Same system as the rest of the site: navy background, monospace, square corners,
   the employer's colour as a solid block, dark badges, lime/yellow bordered buttons. */

:root {
    --bx-navy: #0e1526;
    --bx-navy-2: #1b2333;
    --bx-ink: #e8d6d1;
    --bx-lime: #AED711;
    --bx-yellow: #ffc107;
    --bx-muted: #8a93a6;
}
.bx { background: var(--bx-navy); color: #fff; }
.bx a { text-decoration: none; }

/* ---------- Header ---------- */
.bx-brand { padding: 1rem 1rem .5rem; text-align: center; }
.bx-brand img { width: 300px; max-width: 70vw; height: auto; }
.bx-social { display: flex; justify-content: center; gap: 4px; margin-bottom: .75rem; }
.bx-social .btn { color: var(--bx-ink); }
.bx-social .btn:hover { color: var(--bx-lime); }

.bx-menu { display: flex; justify-content: center; padding: 0 1rem 1rem; }
.bx-menu .btn {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .45rem 1rem;
    white-space: nowrap;
}
.bx-menu .btn:hover { background: var(--bx-navy-2); color: #fff; }
.bx-menu .bx-short { display: none; }
@media (max-width: 575.98px) {
    .bx-brand { padding-top: 1rem; }
    .bx-brand img { width: 220px; }
    .bx-menu .btn-group { width: 100%; }
    .bx-menu .btn { flex: 1 1 0; font-size: 1rem; padding: .6rem .4rem; }
    .bx-menu .bx-long { display: none; }
    .bx-menu .bx-short { display: inline; }
}

/* ---------- Search ---------- */
.bx-search-box { border: 1px solid #fff; padding: 1rem; width: 98%; }
.bx-search-box .col-form-label { width: 100%; padding-bottom: 0; }
.bx-search-box .form-control {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    padding-right: 2.5rem;
}
.bx-search-box .btn-clear {
    border: none;
    background: none;
    z-index: 10;
    color: var(--bx-ink);
    visibility: hidden;
}
.bx-search-box .form-check { user-select: none; margin-top: .35rem; }
@media (max-width: 575.98px) {
    .bx-search-box { padding: .75rem; width: 100%; border-left: 0; border-right: 0; }
    .bx-search-box .form-control { font-size: 18px; padding-top: .45rem; padding-bottom: .45rem; }
    .bx-search-box .row > div + div { margin-top: .25rem; }
}

.bx-chips {
    display: flex;
    gap: 8px;
    margin-top: .9rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bx-chips::-webkit-scrollbar { display: none; }
.bx-chips-wrap { position: relative; }
.bx-chips-wrap::before, .bx-chips-wrap::after {
    content: "";
    position: absolute;
    top: .9rem;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    transition: opacity .15s;
}
.bx-chips-wrap::before { left: 0; background: linear-gradient(90deg, #0e1526, rgba(14, 21, 38, 0)); }
.bx-chips-wrap::after { right: 0; background: linear-gradient(270deg, #0e1526 35%, rgba(14, 21, 38, 0)); }
.bx-chips-wrap.at-start::before, .bx-chips-wrap.at-end::after { opacity: 0; }
.bx-chip {
    flex-shrink: 0;
    padding: .3rem .75rem;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: var(--bx-ink);
    font-family: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.bx-chip:hover { border-color: var(--bx-lime); color: #fff; }
.bx-chip[aria-pressed="true"] { background: var(--bx-lime); border-color: var(--bx-lime); color: var(--bx-navy); font-weight: 700; }

.bx-showing { margin: 1.75rem 0 1rem; font-size: 1.35rem; }
@media (max-width: 575.98px) { .bx-results { padding-left: 0; padding-right: 0; } }

/* ---------- Job list ----------
   A dense list: one line per job on desktop (with aligned pay / location / type
   columns), two short lines on phones. The employer's colour is the stripe on
   the left. Self-contained (no .bx variables) because the create/edit pages
   render the same row as their preview. */
.bx-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .12); transition: opacity .15s; }
.bx-list.is-loading { opacity: .45; pointer-events: none; }

.bx-row, .bx-list-head {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 150px 190px 120px;
    align-items: center;
    column-gap: 14px;
}
.bx-list-head {
    padding: 7px 14px 7px 19px;
    color: #8a93a6;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.bx-list-head + .bx-list { border-top-color: rgba(255, 255, 255, .06); }

.bx-row {
    --accent: #ffe700;
    min-height: 48px;
    padding: 8px 14px;
    border-left: 5px solid var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: #e9ecf2;
    font-size: .95rem;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .12s;
}
a.bx-row:hover { background: #1b2333; color: #fff; }
a.bx-row:active { background: #222c40; }
.bx-row:focus-visible { outline: 2px solid #AED711; outline-offset: -2px; }
.bx-row.is-pinned { background: rgba(174, 215, 17, .06); }
a.bx-row.is-pinned:hover { background: #1b2333; }

.bx-row-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
    background: #fff;
}
/* Logos with a transparent background: shown as they are, fitted, no disc. */
.bx-row-logo.is-transparent { background: transparent; border-radius: 0; object-fit: contain; }
.bx-row-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #0e1526;
    font-size: .85rem;
    font-weight: 700;
}
.bx-row-main { min-width: 0; }
.bx-row-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-row-title { font-weight: 700; color: #fff; }
.bx-row-company { color: #8a93a6; }
.bx-row-pin { color: var(--accent); font-size: .8em; margin-right: 7px; }
.bx-row-applied { color: #3ecf6e; margin-left: 8px; font-size: .9em; }
.bx-row-sub { display: none; }
.bx-cell { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cfd3dc; font-size: .9rem; }
.bx-cell-pay { color: #AED711; font-weight: 700; }
.bx-none { color: #5d6678; font-weight: 400; }

@media (max-width: 991.98px) {
    .bx-row, .bx-list-head { grid-template-columns: 30px minmax(0, 1fr) 130px 150px; }
    .bx-row > .bx-cell:last-child, .bx-list-head > span:last-child { display: none; }
}
@media (max-width: 767.98px) {
    .bx-list-head { display: none; }
    .bx-row {
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 12px;
        min-height: 54px;
        padding: 7px 12px 7px 10px;
        border-left-width: 4px;
    }
    .bx-row > .bx-cell, .bx-row-company { display: none; }
    .bx-row-sub {
        display: block;
        margin-top: 2px;
        color: #8a93a6;
        font-size: .8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.bx-skeleton {
    height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(90deg, #131b2e 0%, #1f2940 50%, #131b2e 100%);
    background-size: 200% 100%;
    animation: bx-shimmer 1.2s infinite linear;
}
@media (max-width: 767.98px) { .bx-skeleton { height: 54px; } }
@keyframes bx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.bx-empty { padding: 2.5rem 1rem; border: 1px dashed rgba(255, 255, 255, .35); text-align: center; color: var(--bx-ink); }
.bx-empty p { color: var(--bx-muted); }
.bx-status { padding: 1.5rem 0 2.5rem; }

/* ---------- Job page ---------- */
.bx-jobnav { justify-content: flex-end; gap: 1.5rem; padding: 0 .25rem .75rem; }
.bx-navlink { color: #cfd3dc; font-weight: 700; white-space: nowrap; }
.bx-navlink:hover { color: var(--bx-lime); }

.bx-job { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 992px) {
    .bx-job { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
    .bx-aside { position: sticky; top: 20px; }
}

.bx-main { border: 1px groove rgba(255, 255, 255, .6); padding: 2rem 2.25rem; min-width: 0; }
@media (max-width: 575.98px) { .bx-main { padding: 1.25rem 1rem; border-left: 0; border-right: 0; } }
.bx-main h1 { text-align: center; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; overflow-wrap: anywhere; }
.bx-posted { display: block; text-align: center; color: #cfd3dc; }
.bx-logo-circle { display: block; margin: 0 auto 1rem; width: 100px; height: 100px; border-radius: 50%; object-fit: contain; background: #fff; }
.bx-logo-circle.is-transparent, .bx-company-logo.is-transparent { background: transparent; border-radius: 0; object-fit: contain; }
.bx-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 1rem 0 .5rem; font-size: 1.05rem; }
.bx-badges .badge { font-size: .95rem; padding: .5em .7em; white-space: normal; }
.bx-badges .badge a { color: inherit; }

/* Stored job description HTML */
.bx-desc {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #eef0f4;
    overflow-wrap: anywhere;
}
.bx-desc > :first-child { margin-top: 0; }
.bx-desc p { margin: 0 0 1.1em; }
.bx-desc h1, .bx-desc h2, .bx-desc h3, .bx-desc h4, .bx-desc h5 { margin: 1.6em 0 .6em; font-weight: 700; line-height: 1.3; color: #fff; }
.bx-desc h1 { font-size: 1.5em; }
.bx-desc h2 { font-size: 1.35em; }
.bx-desc h3 { font-size: 1.2em; }
.bx-desc h4, .bx-desc h5 { font-size: 1.05em; }
.bx-desc ul, .bx-desc ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.bx-desc li { margin: .3em 0; }
.bx-desc li::marker { color: var(--bx-lime); }
.bx-desc a { color: var(--bx-lime); text-decoration: underline; }
.bx-desc img { max-width: 100%; height: auto; }
.bx-desc table { display: block; overflow-x: auto; }
@media (max-width: 575.98px) { .bx-desc { font-size: 1rem; line-height: 1.7; } }

.bx-section-head { margin: 3rem 0 1rem; }

/* ---------- Apply + company panel (right column) ---------- */
.bx-panel {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: #131b2e;
}
.bx-panel + .bx-panel { margin-top: 14px; }
.bx-panel h3 {
    margin: 0 0 12px;
    color: var(--bx-muted);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.bx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s;
}
.bx-btn:active { transform: scale(.98); }
.bx-btn-sm { height: 38px; padding: 0 12px; font-size: 14px; }
.bx-btn-lg { height: 54px; padding: 0 22px; font-size: 17px; }
.bx-btn-block { width: 100%; }
.bx-btn-primary { background: var(--bx-lime); color: #0b1120 !important; }
.bx-btn-primary:hover { background: #c1ea22; box-shadow: 0 6px 24px -8px rgba(174, 215, 17, .6); }
.bx-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .2); }
.bx-btn-ghost:hover { background: #1a2440; border-color: rgba(255, 255, 255, .32); }
.bx-btn-quiet { background: #1a2440; color: #fff !important; border-color: rgba(255, 255, 255, .1); }
.bx-btn-quiet:hover { background: #222d4d; }
.bx-apply-row { display: flex; gap: 8px; margin-top: 10px; }
.bx-apply-row .bx-btn { flex: 1; }
.bx-apply-note { margin: 12px 0 0; color: var(--bx-muted); font-size: 13px; text-align: center; }
.bx-company { display: flex; align-items: center; gap: 12px; }
.bx-company-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; flex-shrink: 0; }
.bx-company-letter { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--accent, #ffe700); color: #000; font-weight: 700; }
.bx-company-name { display: block; font-weight: 700; color: #fff; }
.bx-company-name:hover { color: var(--bx-lime); }
.bx-company-site { display: block; color: var(--bx-muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-company-site:hover { color: var(--bx-lime); }
.bx-list-links { margin-top: 14px; }

/* ---------- Mobile action bar (prev · Apply · Back · next) ---------- */
.mobile-action-bar { display: none; }
@media (max-width: 991.98px) {
    body.bx.has-actionbar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .mobile-action-bar {
        display: flex;
        align-items: stretch;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
        background: #0b1120;
        border-top: 1px solid var(--bx-lime);
        box-shadow: 0 -4px 14px rgba(0, 0, 0, .45);
    }
}
.mobile-action-bar .mab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    text-decoration: none;
    white-space: nowrap;
}
.mobile-action-bar .mab-nav { flex: 0 0 50px; font-size: 22px; background: var(--bx-navy-2); color: #fff; border: 1px solid var(--bx-lime); }
.mobile-action-bar .mab-apply { flex: 1 1 auto; font-size: 19px; background: var(--bx-lime); color: #0b1120; }
.mobile-action-bar .mab-back { flex: 0 0 76px; font-size: 16px; background: #6c757d; color: #fff; }

/* Phones: get jobs onto the first screen. Same pieces, tighter: small logo,
   social links moved under the list, no field labels (placeholders say it),
   location and "remote" on one row. */
.bx-social-foot { display: none; }
@media (max-width: 575.98px) {
    .bx-brand { padding: .7rem 1rem .6rem; }
    .bx-brand img { width: 150px; }
    .bx-social-head { display: none; }
    .bx-social-foot { display: flex; padding-bottom: 1.5rem; }
    .bx-menu { padding-bottom: .7rem; }
    .bx-menu .btn { font-size: .78rem; padding: .55rem .2rem; letter-spacing: 0; }
    .bx-search-box { padding: .6rem .75rem .7rem; }
    .bx-search-box .col-form-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .bx-search-box .form-control { font-size: 17px; padding-top: .4rem; padding-bottom: .4rem; }
    .bx-search-box .row > div + div { margin-top: .5rem; }
    .bx-where { display: flex; align-items: center; gap: .75rem; }
    .bx-where .input-group { flex: 1 1 auto; width: auto; }
    .bx-where .form-check { margin: 0; flex-shrink: 0; }
    .bx-hide-sm { display: none; }
    .bx-chips { margin-top: .6rem; }
    .bx-chips-wrap::before, .bx-chips-wrap::after { top: .6rem; }
    .bx-chip { padding: .25rem .6rem; font-size: .85rem; }
    .bx-showing { margin: .9rem 0 .6rem; font-size: 1.05rem; }
}

/* Phones: job page gets to the point. */
@media (max-width: 575.98px) {
    .bx-job { gap: 1rem; }
    .bx-main { padding: 1rem .9rem 1.25rem; }
    .bx-logo-circle { width: 64px; height: 64px; margin-bottom: .6rem; }
    .bx-main h1 { font-size: 1.35rem; margin-bottom: .25rem; }
    .bx-posted { font-size: .8rem; }
    .bx-badges { gap: 4px; padding: .6rem 0 .2rem; }
    .bx-badges .badge { font-size: .75rem; padding: .4em .55em; }
    .bx-desc { margin-top: 1rem; font-size: .95rem; line-height: 1.65; }
    .bx-desc h1, .bx-desc h2, .bx-desc h3, .bx-desc h4, .bx-desc h5 { margin: 1.3em 0 .5em; }
    .bx-panel { padding: 16px; }
    .bx-section-head { margin: 2rem 0 .75rem; font-size: 1.1rem; }
    body.bx.has-actionbar .bx-brand { padding: .7rem 1rem .6rem; }
    body.bx.has-actionbar .bx-brand img { width: 150px; }
    body.bx.has-actionbar .container .btn { font-size: .85rem; }
}

/* ---------- Create / edit: live preview pinned to the bottom ---------- */
.bx-preview {
    padding: 8px 0 0 !important;
    background: #0e1526;
    border-top: 1px solid #AED711;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .45);
    font-family: var(--bs-font-monospace);
}
.bx-preview-label {
    padding: 0 14px 6px;
    color: #8a93a6;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.bx-preview .bx-list { border-top: 0; }
.bx-preview .bx-row { border-bottom: 0; }

/* Phone-sized job page: the expired notice shouldn't take the first screen. */
@media (max-width: 575.98px) {
    .bx-main > p em { font-size: .85rem; }
}

/* ---------- /hire: companies ask to have their jobs listed ---------- */
.bx-hire { padding-bottom: 3rem; }
.bx-hire .bx-search-box { max-width: 820px; padding: 1.75rem; }
.bx-hire .form-control { font-size: 17px; padding-top: .55rem; padding-bottom: .55rem; }
.bx-hire textarea.form-control { font-family: inherit; font-size: 15px; line-height: 1.5; }
.bx-hire .col-form-label { color: #fff; }
.bx-hire-submit { border: 1px solid #AED711; font-weight: 700; padding: .65rem 1.4rem; }
.bx-hire-submit:hover { background: #AED711; color: #0e1526; }
.bx-form-error { margin-bottom: 1rem; padding: .7rem .9rem; border: 1px solid #ffc107; color: #ffc107; }
@media (max-width: 575.98px) {
    .bx-hire .bx-search-box { padding: 1.1rem .9rem; }
    .bx-hire .col-form-label { position: static; width: auto; height: auto; clip: auto; overflow: visible; padding-bottom: .2rem; }
}

/* Small "hiring?" link for companies, under the job list and on contact. */
.bx-hiring-link { display: block; text-align: center; color: #8a93a6; padding: 0 1rem 1.5rem; }
.bx-hiring-link a { color: #AED711; }

/* Business page header on phones: logo and name side by side, button below. */
@media (max-width: 575.98px) {
    .bx-biz-head { padding: .25rem .75rem .75rem !important; }
    .bx-biz-head img { width: 56px !important; height: 56px !important; }
    .bx-biz-head h1 { font-size: 1.5rem; margin: 0; }
    .bx-biz-head .btn-lg { font-size: .95rem; padding: .4rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bx *, .bx *::before, .bx *::after { animation: none !important; transition: none !important; }
}
