/* =====================================================================
   jp-otr-common.css
   Styles shared by BOTH the solo and team OTR job pages (scoped under .jp).
   Load order on the page:   jp-otr-common.css -> jp-solo.css | jp-team.css

   RULE OF THUMB: if a selector's base rule lives in jp-solo.css or jp-team.css,
   its phone/tablet overrides live in that same file too. Otherwise the load
   order would let the base rule beat the media-query override.

   Sections: 1 Tokens/base  2 Typography  3 Buttons  4 Hero  5 Pay (shared)
   6 Safety  6b Hiring bonus  6c Notice  6d Home time details  7 Partials  8 Running area  9 Accordions  10 Bottom/sticky
   11 Responsive (desktop / tablet / phone)
   ===================================================================== */
/* ===== 1. Tokens / base ===== */
.jp {
    --bn-red: #D32F38;
    --bn-red-dark: #C4202B;
    --bn-red-logo: #EE3A43;
    --bn-yellow: #FFD520;
    --bn-yellow-hover: #FFE062;
    --bn-char: #231F20;
    --bn-char-soft: #2F2A2B;
    --bn-char-hover: #3A3435;
    --bn-text: #2A2425;
    --bn-muted: #5B5254;
    --bn-line: #DDD8CC;
    --bn-line-dark: #5A5557;
    --bn-bg: #F6F4EF;
    --bn-tan: #ECE8DD;
    --bn-on-dark: #E6E1E2;
    --bn-on-dark-muted: #CFC9CA;
    --bn-blue: #1E40AF;
    --bn-blue-line: #3B82F6;
    --font-head: 'Barlow Condensed', sans-serif;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--bn-text);
    background: var(--bn-bg);
    font-size: 18px;
    line-height: 1.6;
    padding-bottom: 52px; /* room for the sticky apply bar */
}

.jp *, .jp *::before, .jp *::after { box-sizing: border-box; }
.jp a { color: var(--bn-red-dark); }
.jp a:hover { color: var(--bn-char); }

.jp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.jp-sec { padding: 64px 0; }

.jp-bg-white {
    background: #fff;
    border-top: 1px solid var(--bn-line);
    border-bottom: 1px solid var(--bn-line);
}

.jp-bg-tan { background: var(--bn-tan); }
.jp-muted { color: var(--bn-muted); }

.jp-grid { display: grid; gap: 24px; }
.jp-grid-pay { grid-template-columns: 1.25fr 1fr; }

.jp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--bn-line);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}

/* ===== 2. Typography ===== */
.jp-h {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
    line-height: 1;
    font-weight: 700;
}

.jp-h2 { font-size: 48px; margin: 8px 0 20px; color: var(--bn-char); }

.jp-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 18px;
    color: var(--bn-red-dark);
    margin-bottom: 6px;
}

.jp-eyebrow-yellow {
    display: inline-block;
    background: var(--bn-yellow);
    color: var(--bn-char);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.jp-intro { margin: 0 0 24px; }

/* ===== 3. Buttons ===== */
.jp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    background: var(--bn-yellow);
    color: var(--bn-char) !important;
    font-weight: 700;
    font-size: 16px;
    font-family: inherit;
    text-decoration: none !important;
    border: 0;
    cursor: pointer;
    transition: background .2s ease;
}

.jp-btn:hover { background: var(--bn-yellow-hover); }

.jp-ghost { background: transparent; color: #fff !important; border: 2px solid #fff; }
.jp-ghost:hover { background: #fff; color: var(--bn-char) !important; }

/* ===== 4. Hero (single-image base; team page layers a collage on top) ===== */
.jp-hero-band {
    background: var(--bn-char);
    color: #fff;
    border-bottom: 8px solid var(--bn-yellow);
    padding: 70px 0 48px; /* top padding clears the site navbar */
}

.jp-hero { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; }

.jp-hero-media {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bn-char-hover);
    height: 220px;
}

.jp-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 20%; /* keeps faces in frame; adjust per photo */
}

.jp-hero-left {
    position: relative;
    margin: -48px 12px 0; /* overlaps the bottom of the image */
    padding: 24px 20px;
    background: var(--bn-char-soft);
    border-radius: 20px;
    border-top: 4px solid var(--bn-yellow);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.jp-pill {
    display: inline-block;
    background: var(--bn-yellow);
    color: var(--bn-char);
    padding: 4px 12px;
    border-radius: 99px;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

.jp-hh1 { font-size: 44px; line-height: .95; letter-spacing: .01em; color: #fff; margin: 0 0 12px; }
.jp-lede { font-size: 16px; line-height: 1.45; color: var(--bn-on-dark); margin: 0 0 16px; }
.jp-hcta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== 5. Pay: shared pieces ===== */

/* Build-up box */
.jp-stackpay {
    margin-top: 12px;
    background: var(--bn-char);
    color: #fff;
    border-radius: 12px;
    border-top: 4px solid var(--bn-yellow);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
    overflow: hidden;
}

.jp-sp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
}

.jp-sp-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
}

.jp-sp-chip {
    flex: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,213,32,.15);
    border: 1px solid var(--bn-yellow);
    color: var(--bn-yellow);
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1;
    padding: 0;
}

.jp-sp-chip .fa {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1em;
    text-align: center;
    font-size: inherit;
}

.jp-sp-tag {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(255,255,255,.12);
    color: var(--bn-on-dark);
    white-space: nowrap;
}

.jp-sp-tag.jp-sp-tag-yellow { background: var(--bn-yellow); color: var(--bn-char); }

.jp-sp-note {
    flex-basis: 100%;
    margin-left: 38px; /* lines up under the label text, past the chip */
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
    color: var(--bn-on-dark-muted);
}

.jp .jp-sp-link { color: var(--bn-yellow); font-weight: 600; text-decoration: underline; }
.jp .jp-sp-link:hover { color: #fff; }

.jp-sp-add .jp-sp-val { color: var(--bn-yellow); }

.jp-sp-mi {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--bn-on-dark);
}

.jp-sp-total { background: var(--bn-yellow); color: var(--bn-char); }

/* Home time group */
.jp-home {
    position: relative;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 3px solid var(--bn-char);
}

.jp-home::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 72px;
    height: 3px;
    background: var(--bn-yellow);
}

.jp-home .jp-facts { margin-top: 0; }

.jp-home-label {
    position: absolute;
    top: -13px;
    left: 88px;
    padding: 0 10px;
    background: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bn-muted);
}

/* Facts tiles (home time is the lead tile) */
.jp-facts {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.jp-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bn-bg);
    border: 1px solid var(--bn-line);
    border-left: 4px solid var(--bn-yellow);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.3;
}

/* Home time is a headline promise, so its tile gets stronger emphasis */
.jp-facts li.jp-fact-lead {
    background: var(--bn-char);
    border-color: var(--bn-char);
    border-left-color: var(--bn-red-logo);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.jp-facts li.jp-fact-lead strong,
.jp-facts li.jp-fact-lead .fa { color: var(--bn-yellow); }

.jp-facts .fa { font-size: 24px; color: var(--bn-red-logo); flex: none; }

.jp-facts strong {
    display: block;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 13px;
    color: var(--bn-muted);
}

/* Earnings strip */
.jp-earnings-subtle {
    background: #fff;
    border: 1px solid var(--bn-line);
    border-left: 4px solid var(--bn-muted);
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
}

.jp-earnings-subtle-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bn-muted);
}

.jp-earnings-subtle-val {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    color: var(--bn-char);
    line-height: 1;
}

.jp-earnings-subtle-note { font-size: 13px; color: var(--bn-muted); }

/* ===== 6. Safety rewards (panel beside the base pay card) ===== */
.jp-safety-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--bn-line);
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
    color: var(--bn-text);
    border-radius: 12px;
    padding: 28px;
}

.jp-safety-panel .jp-eyebrow-yellow { align-self: flex-start; } /* keep the pill its natural width */

.jp-panel-title { font-size: 40px; color: var(--bn-char); margin: 0 0 20px; }

.jp-stack { display: grid; grid-auto-rows: 1fr; gap: 16px; flex: 1; }

.jp-dark-card {
    background: var(--bn-char-soft);
    border: 1px solid var(--bn-line-dark);
    border-top: 4px solid var(--bn-red-logo);
    border-radius: 12px;
    padding: 24px;
}

/* .jp-dark-card .jp-big: size differs solo vs team, so it lives in jp-solo.css / jp-team.css */
.jp-dark-card .jp-big {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1;
    color: var(--bn-yellow);
}

.jp-big-alt { font-size: .55em; font-weight: normal; vertical-align: middle; opacity: .85; }

.jp-dark-card .jp-desc { font-size: 16px; line-height: 1.5; color: var(--bn-on-dark); }

.jp-dark-card.jp-has-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.jp-card-main { flex: 1 1 auto; min-width: 0; }

.jp-stat {
    flex: none;
    width: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.jp-stat-ring { position: relative; width: 76px; height: 76px; }

.jp-stat-arc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--bn-yellow) calc(var(--pct) * 1%), rgba(255,255,255,.18) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}

.jp-stat-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: var(--bn-yellow);
}

.jp-stat-head {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
}

/* =====================================================================
   6b. HIRING BONUS (used by Pages/Shared/_HiringBonus.cshtml)
   ===================================================================== */

.jp-bonus-wrapper {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--bn-line);
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    overflow: hidden;
}

.jp-bonus-hero-hdr {
    background: var(--bn-char);
    color: #fff;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 4px solid var(--bn-yellow);
}

.jp-bonus-title-main {
    font-family: var(--font-head);
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1;
}

.jp-bonus-sub-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    color: var(--bn-on-dark);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
}

.jp-bonus-right {
    text-align: right;
}

.jp-bonus-total-cap {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1;
}

.jp-bonus-steps-body {
    padding: 32px;
    background: #fff;
}

.jp-bonus-timeline-track {
    display: grid;
    grid-template-columns: repeat(var(--cards, 3), 1fr);
    gap: 20px;
    position: relative;
    align-items: start; /* cards keep their natural height instead of stretching */
}

.jp-bonus-step-card {
    background: var(--bn-bg);
    border: 1px solid var(--bn-line);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .jp-bonus-step-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,.06);
    }

.jp-step-badge {
    display: inline-block;
    background: var(--bn-char);
    color: var(--bn-yellow);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 8px;
}

.jp-step-val {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 700;
    color: var(--bn-red);
    line-height: 1;
    margin-bottom: 6px;
}

.jp-step-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--bn-char);
    margin-bottom: 4px;
}

.jp-step-desc {
    font-size: 14px;
    color: var(--bn-muted);
    line-height: 1.4;
}

.jp-step-north {
    margin-top: 4px;
    font-weight: 700;
    color: var(--bn-char);
}

/* Either/or amount pair */
.jp-or-pair {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: stretch;
    gap: 0;
}

.jp-or-opt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    text-align: center;
    padding: 10px 26px;
    border: 2px solid rgba(255,213,32,.55);
    border-radius: 12px;
    color: #fff;
}

    .jp-or-opt.jp-or-top {
        background: var(--bn-yellow);
        border-color: var(--bn-yellow);
        color: var(--bn-char);
    }

.jp-or-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 44px;
    line-height: 1;
}

.jp-or-opt:not(.jp-or-top) .jp-or-num {
    color: var(--bn-yellow);
}

.jp-or-sep {
    align-self: center;
    z-index: 1;
    margin: 0 -12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bn-char);
    border: 2px solid var(--bn-yellow);
    color: var(--bn-yellow);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
}

.jp-or-caption {
    margin-top: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bn-on-dark);
}

/* Light variant (First Paycheck card) */
.jp-or-light .jp-or-opt {
    color: var(--bn-char);
    border-color: var(--bn-char);
    background: transparent;
}

    .jp-or-light .jp-or-opt.jp-or-top {
        background: transparent;
        border-color: var(--bn-char);
        color: var(--bn-char);
    }

        .jp-or-light .jp-or-opt.jp-or-top .jp-or-num {
            color: var(--bn-char);
        }

    .jp-or-light .jp-or-opt:not(.jp-or-top) {
        background: var(--bn-char);
        border-color: var(--bn-char);
        color: #fff;
    }

        .jp-or-light .jp-or-opt:not(.jp-or-top) .jp-or-num {
            color: var(--bn-yellow);
        }

.jp-or-light .jp-or-sep {
    background: var(--bn-yellow);
    border-color: var(--bn-char);
    color: var(--bn-char);
}

/* Compact pair (First Paycheck card) */
.jp-or-sm {
    margin: 4px 0 0;
}

    .jp-or-sm .jp-or-opt {
        padding: 6px 10px;
    }

    .jp-or-sm .jp-or-num {
        font-size: 30px;
    }

    .jp-or-sm .jp-or-opt.jp-or-top {
        background: var(--bn-yellow);
    }

    .jp-or-sm .jp-or-sep {
        background: var(--bn-bg);
        border-color: var(--bn-char);
        color: var(--bn-char);
    }

.jp-step-title-spaced {
    margin-top: 2px;
}

.jp-or-caption-dark {
    color: var(--bn-muted);
    margin: 0 0 10px;
}

/* Extra hiring bonus row */
.jp-step-extra-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--bn-line);
}

.jp-step-val-extra {
    flex: none;
    margin: 0;
}

.jp-step-extra-text .jp-step-title {
    margin-bottom: 2px;
}

.jp-step-desc-extra {
    font-weight: 700;
    font-style: italic;
}

.jp-step-new {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--bn-yellow);
    color: var(--bn-char);
    border-radius: 99px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Tablet and below */
@media (max-width: 992px) {
    .jp-bonus-timeline-track {
        grid-template-columns: 1fr;
    }
}

/* Phone */
@media (max-width: 600px) {
    .jp-bonus-wrapper {
        border-radius: 12px;
    }

    .jp-bonus-hero-hdr {
        padding: 14px 16px;
        gap: 8px;
    }

    .jp-bonus-title-main {
        font-size: 32px;
    }

    .jp-bonus-sub-badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    .jp-bonus-right {
        text-align: left;
    }

    .jp-bonus-steps-body {
        padding: 12px;
    }

    .jp-bonus-timeline-track {
        gap: 8px;
    }

    .jp-bonus-step-card {
        padding: 10px 12px;
    }

    .jp-step-badge {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .jp-step-val {
        font-size: 26px;
        margin-bottom: 2px;
    }

    .jp-step-title {
        font-size: 15px;
    }

    .jp-step-desc {
        font-size: 13px;
    }

    .jp-or-opt {
        padding: 10px 14px;
    }

    .jp-or-num {
        font-size: 30px;
    }

    .jp-or-sep {
        width: 28px;
        height: 28px;
        margin: 0 -10px;
        font-size: 12px;
    }

    .jp-or-sm .jp-or-opt {
        padding: 6px 10px;
    }

    .jp-or-sm .jp-or-num {
        font-size: 26px;
    }
}

/* ===== 6c. Mileage bonus notice (NEW banner, any job page) ===== */
.jp-notice {
    background: var(--bn-char);
    color: #fff;
    border: 1px solid var(--bn-line-dark);
    border-left: 8px solid var(--bn-yellow);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.jp-notice a { color: var(--bn-yellow); font-weight: 700; text-decoration: underline; }
.jp-notice a:hover { color: #fff; }

.jp-tag {
    flex: none;
    background: var(--bn-yellow);
    color: var(--bn-char);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    padding: 5px 12px;
    border-radius: 99px;
    text-transform: uppercase;
}

.jp-notice-text { flex: 1; min-width: 240px; color: var(--bn-on-dark); font-size: 17px; line-height: 1.5; }
.jp-notice-highlight { color: var(--bn-yellow); font-weight: 800; }
.jp-notice-disclaimer { color: var(--bn-yellow); font-style: italic; }

/* ===== 6d. Home time details (collapsed by default) ===== */
.jp-facts.jp-facts-single { grid-template-columns: 1fr; }

.jp-cond {
    margin-top: 12px;
    background: var(--bn-bg);
    border: 1px solid var(--bn-line);
    border-left: 4px solid var(--bn-red-logo);
    border-radius: 10px;
}

.jp-cond summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
}

.jp-cond summary::-webkit-details-marker { display: none; }

.jp-cond summary::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 3px solid var(--bn-red-logo);
    border-bottom: 3px solid var(--bn-red-logo);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform .2s ease;
}

.jp-cond[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.jp-cond ul { margin: 0; padding: 0 14px 12px 32px; font-size: 15px; line-height: 1.5; }
.jp-cond li + li { margin-top: 6px; }

/* ===== 7. Partials (strip legacy w3 chrome inside new cards) ===== */
.jp-partial { line-height: 1.7; }

.jp-partial .w3-panel,
.jp-partial .w3-container,
.jp-partial .w3-card,
.jp-partial .w3-card-4 {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.jp-partial ul { margin: 0; padding-left: 20px; line-height: 1.7; }
.jp-partial p { margin: 0 0 12px; }

.jp-partial ul.jp-checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }

.jp-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.4; }
.jp-checks li .fa { color: var(--bn-red-logo); font-size: 20px; flex: none; margin-top: 1px; }

/* ===== 8. Running area (text above the map at every size; team adds a desktop 2-col override) ===== */
.jp-running-grid { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.jp-running-info { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.jp-running-lead { margin: 0; }

.jp-info-card {
    background: #fff;
    border: 1px solid var(--bn-line);
    border-left: 4px solid var(--bn-yellow);
    border-radius: 10px;
    padding: 10px 16px;
}

.jp-info-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bn-char);
    line-height: 1.1;
}

.jp-info-body { font-size: 15px; color: var(--bn-muted); }

.jp-map-card {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--bn-line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}

    .jp-map-card img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

/* ===== 9. Accordions ===== */
.jp-details { display: grid; gap: 12px; }

.jp-details details {
    background: #fff;
    border: 1px solid var(--bn-line);
    border-radius: 12px;
    overflow: hidden;
}

.jp-details summary {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    background: var(--bn-char);
    color: #fff;
    border-left: 6px solid var(--bn-yellow);
    transition: background .2s ease;
}

.jp-details summary::-webkit-details-marker { display: none; }
.jp-details summary:hover { background: var(--bn-char-hover); }
.jp-details summary:focus-visible { outline: 3px solid var(--bn-yellow); outline-offset: -3px; }

.jp-details summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--bn-yellow);
    border-bottom: 3px solid var(--bn-yellow);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform .2s ease;
}

.jp-details details[open] summary { background: var(--bn-red); }

.jp-details details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
    border-color: #fff;
}

.jp-details .jp-details-body { padding: 16px 24px 20px; }

/* ===== 10. Bottom nav + sticky apply bar ===== */
.jp-bottom { position: relative; }
.jp-bottom-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.jp-jobcode { position: absolute; bottom: 4px; right: 8px; font-size: 11px; color: #9E9698; }

.jp-sticky-apply {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 6px 24px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--bn-char);
    border-top: 2px solid var(--bn-yellow);
    box-shadow: 0 -2px 10px rgba(0,0,0,.25);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.jp-sticky-apply.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.jp-sticky-apply .jp-btn { min-width: 200px; min-height: 36px; padding: 0 24px; font-size: 15px; }

/* Section header with a link under the title */
.jp-sec-head { display: block; }
.jp-sec-head .jp-h2 { margin-bottom: 8px; }

.jp-head-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    border-bottom: 2px solid var(--bn-yellow);
    padding-bottom: 2px;
}

.jp-head-link:hover { border-bottom-color: var(--bn-red-dark); }

@media (prefers-reduced-motion: reduce) {
    .jp-sticky-apply { transition: none; }
}

/* ===== 11. Responsive ===== */

/* Desktop (993px and up) */
@media (min-width: 993px) {
    .jp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; }
    .jp-hero-media { order: 2; height: 400px; }
    .jp-hero-left { margin: 0; padding: 0; background: none; border-top: 0; border-radius: 0; box-shadow: none; }
    .jp-hh1 { font-size: 52px; }
    .jp-sec-compact { padding: 36px 0; }
    .jp-sec-compact .jp-h2 { font-size: 40px; margin: 4px 0 14px; }
}

/* Tablet and below (992px and down) */
@media (max-width: 992px) {
    .jp-sec { padding: 48px 0; }
    .jp-grid-pay { grid-template-columns: 1fr; }
    .jp-bottom-btns a { flex: 1 1 100%; }
    .jp-earnings-subtle { width: 100%; justify-content: space-between; }
}

/* Phone (600px and down) - compact layout */
@media (max-width: 600px) {
    .jp { font-size: 15px; line-height: 1.45; padding-bottom: 50px; }
    .jp-wrap { padding: 0 14px; }
    .jp-sec { padding: 24px 0; }
    .jp-sec-compact { padding: 22px 0; }
    .jp-h2 { font-size: 26px; margin: 2px 0 10px; }
    .jp-eyebrow { font-size: 15px; margin-bottom: 2px; }
    .jp-eyebrow-yellow { font-size: 13px; padding: 4px 12px; margin-bottom: 10px; }
    .jp-btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

    /* Hero */
    .jp-hero-band { padding: 56px 0 22px; border-bottom-width: 6px; }
    .jp-hero-media { height: 170px; margin: 0 -14px; border-radius: 0; } /* bleeds to screen edges */
    .jp-hero-left { margin: -32px 0 0; padding: 18px 16px; border-radius: 16px; }
    .jp-pill { font-size: 12px; padding: 3px 10px; margin-bottom: 8px; }
    .jp-hh1 { font-size: 30px; margin-bottom: 8px; }
    .jp-lede { font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
    .jp-hcta { gap: 8px; }
    .jp-hcta .jp-btn { flex: 1 1 0; padding: 0 12px; font-size: 14px; white-space: nowrap; }

    /* Cards + grids */
    .jp-grid { gap: 12px; }
    .jp-card { padding: 14px; border-radius: 10px; }

    /* Pay build-up box (shared parts) */
    .jp-stackpay { margin-top: 10px; border-radius: 10px; }
    .jp-sp-row { padding: 10px 14px; gap: 8px; }
    .jp-sp-label { font-size: 16px; gap: 4px 8px; }
    .jp-sp-chip { width: 22px; height: 22px; font-size: 10px; }
    .jp-sp-tag { font-size: 10px; padding: 2px 7px; }
    .jp-sp-note { margin-left: 30px; font-size: 11px; }
    .jp-sp-mi { font-size: 11px; }

    /* Earnings strip */
    .jp-earnings-subtle { margin-top: 14px; padding: 10px 14px; gap: 6px 16px; }
    .jp-earnings-subtle-title { font-size: 12px; }
    .jp-earnings-subtle-val { font-size: 24px; }
    .jp-earnings-subtle-note { font-size: 12px; }

    /* Safety rewards */
    .jp-safety-panel { padding: 14px; border-radius: 10px; }
    .jp-panel-title { font-size: 26px; margin-bottom: 12px; }
    .jp-stack { gap: 10px; }
    .jp-dark-card { padding: 12px 14px; }
    .jp-dark-card .jp-desc { font-size: 14px; line-height: 1.4; }
    .jp-dark-card.jp-has-stat { gap: 12px; }
    .jp-stat { width: 80px; gap: 6px; }
    .jp-stat-ring { width: 58px; height: 58px; }

    .jp-stat-arc {
        -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
        mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    }

    .jp-stat-num { font-size: 21px; }
    .jp-stat-head { font-size: 12px; }

    /* Partials */
    .jp-checks li { font-size: 14px; }
    .jp-partial ul.jp-checks { margin-top: 14px; gap: 8px; }

    /* Running area (shared) */
    .jp-running-grid { gap: 12px; }
    .jp-running-lead { font-size: 15px; }
    .jp-info-card { padding: 12px 14px; }
    .jp-info-title { font-size: 16px; }
    .jp-info-body { font-size: 14px; }
    .jp-map-card { padding: 8px; border-radius: 12px; }

    /* Accordions */
    .jp-details { gap: 8px; }
    .jp-details summary { min-height: 44px; font-size: 15px; padding: 0 14px; }
    .jp-details .jp-details-body { padding: 10px 14px 14px; font-size: 14px; }

    /* Bottom + sticky bar */
    .jp-bottom-btns { gap: 8px; }
    .jp-sticky-apply { padding: 6px 14px calc(6px + env(safe-area-inset-bottom, 0px)); }
    .jp-sticky-apply .jp-btn { width: 100%; min-width: 0; min-height: 38px; font-size: 15px; }
    .jp-head-link { margin-bottom: 12px; font-size: 15px; }
    .jp-more { margin-top: 14px; }
    .jp-more .jp-btn { width: 100%; min-height: 44px; font-size: 15px; }

    /* Notice */
    .jp-notice { padding: 12px 14px; gap: 8px 10px; margin-bottom: 12px; border-left-width: 6px; border-radius: 10px; }
    .jp-tag { font-size: 11px; padding: 3px 9px; }
    .jp-notice-text { font-size: 14px; line-height: 1.4; min-width: 0; }

    /* Home time details */
    .jp-cond { margin-top: 8px; }
    .jp-cond summary { padding: 9px 12px; font-size: 14px; }
    .jp-cond ul { padding: 0 12px 10px 28px; font-size: 13px; }
}
