.jbc {
    --ink: #283a69;
    --line: #d7e0e9;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 72px;
    color: #203149;
    font-family: inherit;
    line-height: 1.5;
}
.jbc *, .jbc *::before, .jbc *::after { box-sizing: border-box; }
.jbc.jbc-town { width: 100%; --jbc-content-gutters: 40px; }
.jbc-town > nav, .jbc-town > section, .jbc-town > .jbc-hero {
    width: min(1160px, calc(100% - var(--jbc-content-gutters)));
    margin-inline: auto;
}
.jbc-town > .jbc-hero { width: min(1320px, calc(100% - 16px)); }
.jbc h1, .jbc h2 { color: var(--ink); margin: 0 0 .45em; line-height: 1.12; letter-spacing: -.025em; }
.jbc h1 { font-weight: 740; font-size: clamp(2.1rem, 4vw, 3.7rem); }
.jbc h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.jbc a { color: var(--ink); text-decoration: underline; text-underline-offset: .17em; }
.jbc :focus-visible { outline: 3px solid #166bb3; outline-offset: 4px; }
.jbc-intro { max-width: 760px; margin-bottom: 30px; }
.jbc-intro p, .jbc-hero p { font-size: 1.1rem; margin: 0 0 1.1rem; }
.jbc .jbc-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 16px; margin: 0; padding: 0; }
.jbc-grid li { margin: 0; padding: 0; }
.jbc-towns li { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.jbc-towns a { display: block; text-decoration: none; }
.jbc-towns a:hover span, .jbc-card a:hover { text-decoration: underline; }
.jbc-towns span { display: block; padding: .85rem 1rem; font-size: 1.15rem; font-weight: 700; }
.jbc .jbc-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.jbc .jbc-credit { display: block; padding: .3rem .7rem; color: #4b596e; font-size: .73rem; line-height: 1.4; }
.jbc .jbc-credit a { display: inline; text-decoration: underline; }
.jbc-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin: 20px 0 32px; padding: clamp(20px, 3vw, 40px);
    background: #d8f3ef; border-radius: 16px;
}
.jbc-hero h1 { margin: 0; font-size: clamp(1.85rem, 3.4vw, 2.8rem); overflow-wrap: anywhere; }
.jbc-hero h1::after { content: ""; display: block; width: 42px; height: 3px; margin: .35em 0; background: #10b8a5; border-radius: 2px; }
.jbc-hero p { margin: 0; }
.jbc-hero .jbc-button { flex: none; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 960px) {
    .jbc-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
}
.jbc .jbc-button, .jbc .jbc-filter button { background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 7px; padding: .72rem 1.05rem; font: inherit; font-weight: 650; text-decoration: none; display: inline-block; cursor: pointer; }
.jbc .jbc-button:hover, .jbc .jbc-filter button:hover { background: #17294c; }
.jbc-section, .jbc-other { margin-top: 36px; scroll-margin-top: 100px; }
.jbc-other a { margin-right: 1.2rem; }
.jbc .jbc-card { border-radius: 10px; border: 1px solid var(--line); padding: 1rem 1.15rem; background: white; }
.jbc-card a { display: block; font-weight: 700; overflow-wrap: anywhere; }
.jbc-card span { display: block; color: #506075; padding-top: .25rem; }
.jbc .jbc-offers {
    --jbc-tile: min(176px, calc((100% - 12px) / 2));
    grid-template-columns: repeat(auto-fill, var(--jbc-tile)); gap: 12px;
}
.jbc-offer a {
    display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; aspect-ratio: 1;
    padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white;
    text-align: center; text-decoration: none; font-weight: 700; overflow-wrap: anywhere;
}
.jbc-offer a:hover, .jbc-offer a:focus-visible { border-color: var(--ink); text-decoration: underline; }
.jbc .jbc-offer img { display: block; width: 100%; height: 100%; min-height: 0; margin: 0; float: none; object-fit: contain; }
.jbc-offer span { font-size: .9rem; line-height: 1.25; }
.jbc-offer span:only-child { grid-row: 1 / -1; align-self: center; }
.jbc-filter, .jbc-pager { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.jbc-filter select { width: auto; max-width: 100%; height: auto; background: white; color: var(--ink); font: inherit; padding: .65rem .8rem; border-radius: 6px; border: 1px solid #8b9aad; }
.jbc-filter label { margin: 0; font-weight: 650; }
.jbc-total, .jbc-total p { color: #506075; }
.jbc-pager a, .jbc-map { display: inline-block; padding: .5rem 0; }
.jbc-map { margin-top: 12px; }
@media (max-width: 640px) {
    .jbc { width: calc(100% - 32px); padding-top: 64px; }
    .jbc.jbc-town { --jbc-content-gutters: 32px; }
    .jbc .jbc-towns { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .jbc-towns span { padding: .6rem; font-size: 1rem; overflow-wrap: anywhere; }
    .jbc-filter select { width: 100%; }
}
.jbc-town > .jbc-ads { width: min(920px, calc(92% - 8px)); margin: 24px auto; padding: 0; }
.jbc-banner-label { margin-bottom: 5px; color: #526174; font-size: .76rem; line-height: 1.3; }
.jbc .jbc-ad-track { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.jbc .jbc-ad-slide { flex: 0 0 100%; min-width: 0; margin: 0; padding: 0; list-style: none; scroll-snap-align: start; }
.jbc .jbc-banner { display: grid; width: 100%; aspect-ratio: 4 / 1; overflow: hidden; background: #f2f5f8; color: #fff; text-decoration: none; }
.jbc .jbc-banner:focus-visible { outline-offset: -4px; }
.jbc-banner picture { display: block; width: 100%; height: 100%; min-height: 0; }
.jbc .jbc-banner-art { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.jbc-banner-text { display: grid; align-content: center; gap: .25em; padding: 3% 5%; color: white; background: #283a69; overflow-wrap: anywhere; line-height: 1.2; }
.jbc-banner-text strong { font-size: clamp(1rem, 3vw, 2.5rem); }
.jbc-ad-controls { display: flex; justify-content: flex-end; align-items: center; gap: .55rem; margin-top: 4px; font-size: .82rem; font-variant-numeric: tabular-nums; }
.jbc .jbc-ad-controls[hidden] { display: none; }
.jbc-ad-controls button { min-width: 36px; min-height: 36px; padding: .2rem .6rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 5px; font: inherit; cursor: pointer; }
.jbc-ad-controls [data-jbc-prev], .jbc-ad-controls [data-jbc-next] { font-size: 1.3rem; line-height: 1; }
@media (max-width: 640px) {
    .jbc .jbc-banner-mobile { aspect-ratio: 5 / 2; }
    .jbc-banner-text { font-size: .82rem; }
}

.jbc-search { margin: 1.1rem 0; color: #183a54; }
.jbc-search-bar { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.2fr) minmax(120px, .85fr); align-items: center; gap: 0; padding: 6px; border: 1px solid #9fbfce; border-radius: 40px; background: #fff; box-shadow: 0 3px 12px #2031490c; }
.jbc .jbc-search-bar input, .jbc .jbc-search-bar select { margin: 0; font: inherit; letter-spacing: normal; width: 100%; min-width: 0; min-height: 42px; height: auto; padding: 8px 16px; border: 0; color: #183a54; background-color: white; box-shadow: none; border-radius: 0; }
.jbc .jbc-search-bar input { border-radius: 30px 0 0 30px; }
.jbc .jbc-search-bar select { border-left: 1px solid #c1d1dd; padding-right: 25px; }
.jbc .jbc-search button { font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; margin: 0; }
.jbc .jbc-search .jbc-submit { border-radius: 30px; border: 0; padding: 10px 18px; min-height: 42px; background: #086487; color: white; font-weight: 700; }
.jbc .jbc-search .jbc-submit:hover { background: #064e6d; }
.jbc-sectors, .jbc-refine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.jbc .jbc-sectors button, .jbc .jbc-refine button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 10px; border-radius: 9px; border: 1px solid #adbfce; background: #fff; color: #183a54; font-size: .88rem; line-height: 1.25; }
.jbc-sectors svg { width: 17px; height: 17px; flex: none; color: #086487; }
.jbc .jbc-search button[aria-pressed="true"] { background: #e3f3f7; border-color: #086487; color: #064c65; }
.jbc .jbc-search button[aria-pressed]:hover { border-color: #086487; }
.jbc .jbc-refine button { border-color: transparent; padding-left: 0; font-weight: 600; }
.jbc-tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid #688391; border-radius: 4px; font-size: 13px; }
[aria-pressed="true"] .jbc-tick { color: white; background: #086487; border-color: #086487; }
.jbc-refine a { font-size: .88rem; }
.jbc .jbc-company-logo { float: right; width: 54px; height: 54px; object-fit: contain; margin: 0 0 6px 10px; }
.jbc-card-deal { clear: both; display: block; color: #245546; margin-top: .55rem; padding-top: .45rem; border-top: 1px solid #dce8e2; overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .jbc-search-bar { border-radius: 15px; grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
    .jbc .jbc-search-bar input { grid-column: 1 / -1; border-radius: 10px 10px 0 0; border-bottom: 1px solid #d4e1e8; }
    .jbc .jbc-search-bar select { border: 0; padding-left: 12px; }
    .jbc .jbc-search .jbc-submit { border-radius: 10px; }
    .jbc-sectors { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
    .jbc .jbc-sectors button { font-size: .84rem; text-align: left; min-height: 43px; }
}
