.jp-hero {
    --hero-bg: #f8ebdb;
    --hero-ink: #262321;
    --chip-bg: #fff8f0;
    --chip-border: #c9b9aa;
    --hero-fade: linear-gradient(90deg, #f8ebdb 0%, #f8ebdb 10%, rgba(248,235,219,.92) 27%, rgba(248,235,219,.78) 37%, transparent 56%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-items: center;
    min-height: clamp(390px, 32vw, 520px);
    background: var(--hero-bg);
    color: var(--hero-ink);
}
.jp-hero--blue {
    --hero-bg: #d8eff9;
    --hero-ink: #152638;
    --chip-bg: #edf8fd;
    --chip-border: #8eacbc;
    --hero-fade: linear-gradient(90deg, transparent 8%, rgba(216,239,249,.96) 28%, rgba(216,239,249,.96) 72%, transparent 92%);
    text-align: center;
}
.jp-hero--navy {
    --hero-bg: #0a213b;
    --hero-ink: #fff;
    --chip-bg: #b9e9fb;
    --chip-border: #b9e9fb;
    --hero-fade: linear-gradient(90deg, #0a213b 0%, #0a213b 10%, rgba(10,33,59,.96) 27%, rgba(10,33,59,.8) 37%, transparent 56%);
}
.jp-hero .jp-hero-art, .jp-hero::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.jp-hero .jp-hero-art { object-fit: cover; z-index: -2; }
.jp-hero::before { content: ""; background: var(--hero-fade); z-index: -1; }
.jp-hero > .container { width: 100%; }
.jp-hero-content { width: min(100%, 500px); padding: 50px 0; }
.jp-hero--blue .jp-hero-content { width: min(100%, 600px); margin-inline: auto; }
.jp-hero h1 {
    margin: 0 0 12px;
    color: inherit;
    font-size: clamp(2.4rem, 4.1vw, 4.15rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.jp-hero p { margin: 0 0 24px; color: inherit; font-size: clamp(1rem, 1.5vw, 1.23rem); line-height: 1.5; }
.jp-hero-search {
    display: flex;
    width: 100%;
    min-height: 54px;
    border: 1px solid #d4d7dc;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.jp-hero-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: 0;
    background: #fff;
    color: #232323;
    font: inherit;
    font-size: 1rem;
}
.jp-hero-search input::placeholder { color: #626262; }
.jp-hero-search button {
    flex: none;
    border: 0;
    padding: 0 clamp(13px, 2vw, 25px);
    background: #bf3928;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.jp-hero-search button:hover { background: #9f2b1e; }
.jp-hero-search :focus-visible { outline: 2px solid #174980; outline-offset: -4px; }
.jp-hero-search button:focus-visible { outline-color: #fff; }
.jp-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jp-hero--blue .jp-hero-chips { justify-content: center; }
.jp-hero .jp-hero-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 5px 12px;
    border: 1px solid var(--chip-border);
    border-radius: 999px;
    background: var(--chip-bg);
    color: #152638;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}
.jp-hero .jp-hero-chips a:hover { background: #fff; border-color: #34536a; }
.jp-hero .jp-hero-browse {
    display: inline-block;
    margin-top: 16px;
    color: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.jp-hero a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 900px) {
    .jp-hero { min-height: 0; }
    .jp-hero-content { width: min(54%, 500px); padding-block: 42px; }
    .jp-hero--blue .jp-hero-content { width: min(70%, 600px); }
}
@media (max-width: 640px) {
    .jp-hero { display: block; }
    .jp-hero h1 { font-size: clamp(1.95rem, 8vw, 3rem); }
    .jp-hero-content, .jp-hero--blue .jp-hero-content { width: 100%; padding: 28px 0; }
    .jp-hero:not(.jp-hero--blue) .jp-hero-art {
        position: relative;
        display: block;
        height: clamp(126px, 31vw, 190px);
        object-position: right 54%;
    }
    .jp-hero:not(.jp-hero--blue)::before { content: none; }
    .jp-hero--blue .jp-hero-art { opacity: .34; }
    .jp-hero--blue::before { background: rgba(216,239,249,.7); }
}
