/* ================================================================
   Scout theme — "box" pages, like AutoScout24's local pages: one white
   column on the grey page, breadcrumb, split hero (title + button | photo
   with a slanted edge), links to the sections, centred section titles
   between thin lines. Wrapper .bx, classes bx-*. First page: About
   (pages/scout/about; it also loads theme-scout.home24.css for the cards,
   buttons and stars).
   ================================================================ */
html.theme-scout .sc-home.h24.bx { padding-bottom: 40px; background: #f4f4f4; }
html.theme-scout .bx-box { max-width: 1000px; margin: 0 auto; background: #ffffff; }

/* breadcrumb */
html.theme-scout .bx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 24px; font-size: 14px; color: var(--h24-ink); }
html.theme-scout a.bx-crumbs__a { color: rgb(var(--sc-link)); text-decoration: none; }
html.theme-scout a.bx-crumbs__a:hover { text-decoration: underline; }
html.theme-scout .bx .bx-crumbs__sep { width: 14px; height: 14px; color: var(--h24-muted); }

/* hero: title + button | the photo with a slanted edge */
html.theme-scout .bx-hero { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: 300px; }
html.theme-scout .bx-hero__t { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 32px 16px 32px 24px; }
html.theme-scout .bx-hero__t h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--h24-ink); }
html.theme-scout .bx-hero__t p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--h24-muted); }
html.theme-scout .bx-hero__t .h24-btn { margin-top: 6px; }
html.theme-scout .bx-hero__img { position: relative; overflow: hidden; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
html.theme-scout .bx-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* links to the sections */
html.theme-scout .bx-tabs { display: flex; gap: 28px; padding: 0 24px; overflow-x: auto; border-bottom: 1px solid var(--h24-line); scrollbar-width: none; }
html.theme-scout .bx-tabs::-webkit-scrollbar { display: none; }
html.theme-scout a.bx-tabs__a { flex: none; padding: 14px 0 12px; font-size: 14px; color: var(--h24-ink); white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
html.theme-scout a.bx-tabs__a:hover { border-bottom-color: rgb(var(--sc-primary)); }

/* sections: centred title, thin line between */
html.theme-scout .bx-sec { padding: 40px 40px 44px; scroll-margin-top: 90px; }
html.theme-scout .bx-sec + .bx-sec { border-top: 1px solid var(--h24-line); }
html.theme-scout .bx-h2 { margin: 0 0 24px; font-size: 24px; font-weight: 500; line-height: 1.3; text-align: center; color: var(--h24-ink); }
html.theme-scout .bx-center { margin: 22px 0 0; text-align: center; }
html.theme-scout a.bx-more { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; color: rgb(var(--sc-link)); text-decoration: none; }
html.theme-scout a.bx-more:hover { text-decoration: underline; }
html.theme-scout .bx .bx-more__chev { width: 16px; height: 16px; }
html.theme-scout .bx-lead { max-width: 640px; margin: 0 auto 20px; font-size: 17px; line-height: 1.55; text-align: center; color: var(--h24-muted); }
html.theme-scout .bx-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
html.theme-scout a.bx-a { color: rgb(var(--sc-link)); text-decoration: none; }
html.theme-scout a.bx-a:hover { text-decoration: underline; }

/* the drawing above a section: a big line icon in a grey circle */
html.theme-scout .bx-art { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 16px; color: var(--h24-ink); background: #f4f4f4; border-radius: 50%; }
html.theme-scout .bx .bx-art svg { width: 44px; height: 44px; stroke-width: 1.4; }

/* text + photo */
html.theme-scout .bx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
html.theme-scout .bx-split__t { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
html.theme-scout .bx-split__t p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--h24-ink); }
html.theme-scout .bx-photo { margin: 0; }
html.theme-scout .bx-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
html.theme-scout .bx-photo figcaption { margin-top: 6px; font-size: 13px; color: var(--h24-muted); }
html.theme-scout .bx-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html.theme-scout .bx-gallery.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* the counters */
html.theme-scout .bx-facts__t { margin: 36px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-align: center; text-transform: uppercase; color: rgb(var(--sc-primary)); }
html.theme-scout .bx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--h24-line); border-radius: 4px; }
html.theme-scout .bx-facts > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; text-align: center; }
html.theme-scout .bx-facts > div + div { border-left: 1px solid var(--h24-line); }
html.theme-scout .bx-facts b { font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--h24-ink); }
html.theme-scout .bx-facts span { font-size: 14px; color: var(--h24-muted); }

/* cars */
html.theme-scout .bx-cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* three columns: icon, title, text, link */
html.theme-scout .bx-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
html.theme-scout .bx-value { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
html.theme-scout .bx-value__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; color: rgb(var(--sc-primary)); background: rgb(var(--sc-primary-tint)); border-radius: 50%; }
html.theme-scout .bx .bx-value__ico svg { width: 26px; height: 26px; }
html.theme-scout .bx-value h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--h24-ink); }
html.theme-scout .bx-value p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--h24-muted); }
html.theme-scout .bx-promise { text-align: center; }

/* reviews: a centred list */
html.theme-scout .bx-score { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: -10px 0 14px; font-size: 15px; color: var(--h24-muted); }
html.theme-scout .bx-score b { color: var(--h24-ink); }
html.theme-scout .bx-list { max-width: 620px; margin: 0 auto; padding: 0; list-style: none; }
html.theme-scout .bx-rev { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--h24-line); }
html.theme-scout .bx-rev:last-child { border-bottom: 1px solid var(--h24-line); }
html.theme-scout .bx-rev p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--h24-ink); }
html.theme-scout .bx-rev small { font-size: 13px; color: var(--h24-muted); }
html.theme-scout .bx-rev small b { color: var(--h24-ink); }

/* visit us: the dealer block, then hours · phones · company */
html.theme-scout .bx-dealer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 360px; margin: 0 auto; }
html.theme-scout a.bx-dealer__name { font-size: 16px; font-weight: 700; color: rgb(var(--sc-link)); text-decoration: none; }
html.theme-scout a.bx-dealer__rate { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--h24-ink); text-decoration: none; }
html.theme-scout a.bx-dealer__name:hover,
html.theme-scout a.bx-dealer__rate:hover { text-decoration: underline; }
html.theme-scout .bx-dealer p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--h24-ink); }
html.theme-scout .bx-dealer .bx-more { margin-top: 2px; }
html.theme-scout .bx-dealer .bx-dealer__btn { align-self: stretch; margin-top: 14px; }
html.theme-scout .bx-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--h24-line); }
html.theme-scout .bx-info h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--h24-ink); }
html.theme-scout .bx-dl { margin: 0 0 8px; }
html.theme-scout .bx-dl > div { display: flex; flex-direction: column; margin-bottom: 8px; }
html.theme-scout .bx-dl dt { font-size: 13px; color: var(--h24-muted); }
html.theme-scout .bx-dl dd { margin: 0; font-size: 15px; color: var(--h24-ink); overflow-wrap: anywhere; }
html.theme-scout .bx-dl dd.is-closed { color: #b42318; }

/* the other box pages (pages/scout/partials/bx-top, bx-end): plain hero (no photo, a round icon),
   the strip of promises below the links, the narrow column, the closing "call / write" line, and the
   content blocks of theme-scout.content.css (wrapper .pg) fitted to the box */
html.theme-scout .bx [id] { scroll-margin-top: 90px; }
html.theme-scout .bx .bx-sec .h24-wrap { max-width: none; margin: 0; padding: 0; }
html.theme-scout .bx-hero.is-plain { grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 0; }
html.theme-scout .bx-hero.is-plain .bx-hero__t { padding: 20px 24px 32px; }
html.theme-scout .bx-hero__art { margin: 0 40px 0 0; }
html.theme-scout .bx-sec.bx-strip { padding-top: 24px; padding-bottom: 24px; }
html.theme-scout .bx-narrow { max-width: 760px; margin: 0 auto; }
html.theme-scout .bx-sub { max-width: 720px; margin: -12px auto 22px; font-size: 15px; line-height: 1.6; text-align: center; color: var(--h24-muted); }
html.theme-scout .bx-ask { max-width: 640px; margin: 24px auto 0; font-size: 15px; line-height: 1.55; text-align: center; color: var(--h24-muted); }
html.theme-scout .bx-ask b { color: var(--h24-ink); }
html.theme-scout .bx-ask__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 8px 0 0; font-size: 15px; }
html.theme-scout .bx .pg-usp,
html.theme-scout .bx .pg-reach,
html.theme-scout .bx .pg-score { box-shadow: none; border: 1px solid var(--h24-line); border-radius: 4px; }
html.theme-scout .bx .pg-card,
html.theme-scout .bx .pg-faq,
html.theme-scout .bx .pg-acc,
html.theme-scout .bx .pg-map,
html.theme-scout .bx .pg-note,
html.theme-scout .bx .h24-revcard,
html.theme-scout .bx .pg-split__img { border-radius: 4px; }
html.theme-scout .bx .pg-ways,
html.theme-scout .bx .pg-phases,
html.theme-scout .bx .pg-steps,
html.theme-scout .bx .pg-locs { margin-top: 0; }
html.theme-scout .bx .pg-score { grid-template-columns: auto minmax(0, 1fr); }
html.theme-scout .bx .pg-score__dist { max-width: 520px; }

/* the car list (pages/scout/listing, wrapper "sc-lst … bx bx-lst"): the same white column, the filters on
   the left (flat), the home page's cards on the right — 2 per row, 1 on the phone */
html.theme-scout .bx-lst .sc-lst__wrap.bx-box { max-width: 1000px; padding: 0 0 40px; }
html.theme-scout .bx-lst .sc-lst__top { min-height: 0; margin: 0; padding: 10px 24px 10px; }
html.theme-scout .bx-lst .sc-lst__crumbs { gap: 6px; color: var(--h24-ink); }
html.theme-scout .bx-lst .sc-lst__body { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 6px 24px 0; }
html.theme-scout .bx-lst__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* body type: picked from a list like the make (the page's own select#type + its searchable dropdown,
   which initSearch() already builds; the chips stay in the page for the script, hidden) */
html.theme-scout .bx-lst .sc-lst-typepick { display: block; }
html.theme-scout .bx-lst .sc-lst-sec[data-lst-sec-key="type"] .sc-lst-chips { display: none; }
@media (min-width: 768px) {
    html.theme-scout .bx-lst .sc-lst-filter { padding: 4px 16px 18px; border-color: var(--h24-line); border-radius: 4px; box-shadow: none; }
    html.theme-scout .bx-lst .sc-lst-head { min-height: 0; margin-bottom: 16px; padding: 4px 0 12px; background: none; border: 0; border-bottom: 1px solid var(--h24-line); border-radius: 0; box-shadow: none; }
    html.theme-scout .bx-lst .sc-lst-head__count { font-size: 24px; font-weight: 500; }
    html.theme-scout .bx-lst .sc-lst-seg button { padding: 0 4px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* make over model (side by side each was ~100 px: "Volkswagen", "Mercedes-Benz" were cut) */
    html.theme-scout .bx-lst .sc-lst-2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 899.98px) {
    html.theme-scout .bx-lst .sc-lst__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1023.98px) {
    html.theme-scout .bx-hero__t h1 { font-size: 28px; }
    html.theme-scout .bx-sec { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 767.98px) {
    html.theme-scout .sc-home.h24.bx { padding-bottom: 0; }
    html.theme-scout .bx-crumbs { padding: 12px 16px; }
    html.theme-scout .bx-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    html.theme-scout .bx-hero__img { order: -1; height: 200px; clip-path: none; }
    html.theme-scout .bx-hero__t { padding: 20px 16px 24px; }
    html.theme-scout .bx-hero__t h1 { font-size: 24px; }
    html.theme-scout .bx-hero__t p { font-size: 15px; }
    html.theme-scout .bx-tabs { gap: 20px; padding: 0 16px; }
    html.theme-scout .bx-sec { padding: 28px 16px 32px; }
    html.theme-scout .bx-h2 { margin-bottom: 18px; font-size: 20px; }
    html.theme-scout .bx-split,
    html.theme-scout .bx-cars,
    html.theme-scout .bx-gallery,
    html.theme-scout .bx-gallery.is-three,
    html.theme-scout .bx-values,
    html.theme-scout .bx-info { grid-template-columns: minmax(0, 1fr); }
    html.theme-scout .bx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.theme-scout .bx-facts > div:nth-child(3) { border-left: 0; }
    html.theme-scout .bx-facts > div:nth-child(n + 3) { border-top: 1px solid var(--h24-line); }
    html.theme-scout .bx-facts b { font-size: 24px; }
    html.theme-scout .bx-lead { font-size: 15px; }
    html.theme-scout .bx-btns .h24-btn { flex: 1 1 auto; }
    html.theme-scout .bx-info { gap: 18px; }
    html.theme-scout .bx-hero.is-plain { grid-template-columns: minmax(0, 1fr); }
    html.theme-scout .bx-hero.is-plain .bx-hero__t { padding: 12px 16px 24px; }
    html.theme-scout .bx-hero__art { display: none; }
    html.theme-scout .bx-sec.bx-strip { padding-top: 16px; padding-bottom: 16px; }
    html.theme-scout .bx-sub { margin-top: -8px; }
    html.theme-scout .bx .pg-score { grid-template-columns: minmax(0, 1fr); }
    html.theme-scout .bx-lst .sc-lst__wrap.bx-box { padding: 14px 12px 96px; }
    html.theme-scout .bx-lst .sc-lst__body { display: block; padding: 0; }
    html.theme-scout .bx-lst__grid { grid-template-columns: minmax(0, 1fr); }
}
