/* The new design's model page (APEX; redesign P4, WP7 + WP8, release 4-1). Loaded by header.php only on a model page drawn in
   the new design, after site-next.css, whose tokens it reads: it defines no colour of its own (tests/unit/bike-page-next).
   Mockup: design-research/proposal/mockups/bike.html. See docs/REDESIGN_BUILD.md, "The new model page (release 4-1)".

   The page's own markup is the bm-* classes of templates/bike-page-view.php. Three parts keep their own templates and classes
   and are only fitted in here: the catalogue photo with its "photo unavailable" fallback (bg_model_photo_html(), bike-photos.js),
   sharing (article-share.php) and the comparison tray (bike-compare-tray.php, buying-guide-comparison.css and .js), whose
   docking and clearance logic is unchanged: it is restyled, and it is the page's only bottom bar (O-12: no buy bar), hidden
   while the consent banner is open (buying-guide-comparison.css).

   Rules kept, as on the article page: no text under 12 px (--fs-label), control borders --line-control, focus rings inside
   scroll and clipping containers. Faces: only Inter at the weights the header and footer already use (400, 600, 650, 700) and
   the title cut, which every new-design page preloads, so the page fetches no extra font file. */

/* ------------------------------------------------------------------ hero */
.bm-hero{padding-block:var(--s4) var(--s6);background:linear-gradient(180deg,var(--bg-band),var(--bg))}
.bm-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:var(--fs-caption);color:var(--text-muted)}
.bm-crumbs a{display:inline-flex;align-items:center;min-height:32px;color:var(--text)}
.bm-crumbs a:hover{color:var(--text-strong);text-decoration:underline;text-underline-offset:3px}
.bm-crumbs span[aria-hidden]{color:var(--text-faint)}
.bm-crumbs [aria-current]{color:var(--text-strong);font-weight:600}
.bm-back{display:inline-flex;align-items:center;min-height:44px;font-size:var(--fs-small);font-weight:600;color:var(--text-strong)}
.bm-hero__grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);grid-template-areas:"title photo" "buy photo";column-gap:var(--s7);row-gap:var(--s5);margin-top:var(--s5);align-items:start}
.bm-hero__title{grid-area:title;align-self:end;min-width:0}
.bm-hero__photo{grid-area:photo;min-width:0}
.bm-hero__buy{grid-area:buy;min-width:0}
/* The brand on the studio plate. A logo is drawn as its file needs (release 4-3, .logo-plate and .logo--ink/plain/dark in
   site-next.css): a white-only file dark, a coloured or boxed one as it is, white words beside colour on the dark plate. */
.bm-brand{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:var(--r-md);background:radial-gradient(120% 120% at 50% 40%,var(--studio-a),var(--studio-b));font:700 var(--fs-small)/1 var(--font-text);color:var(--asphalt-900)}
.bm-brand:hover{color:var(--asphalt-900)}
.bm-brand img{width:auto;max-width:132px;height:auto;max-height:22px}
.bm-hero h1{margin:16px 0 0;font:var(--weight-title) clamp(2.25rem,1.55rem + 2.6vw,4rem)/1 var(--font-title);letter-spacing:-.02em;overflow-wrap:anywhere}
.bm-tags{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}
.bm-tag{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:var(--r-sm);border:1px solid var(--line-strong);font:650 var(--fs-label)/1.2 var(--font-text);letter-spacing:.04em;color:var(--text-muted)}
.bm-tag--ok{border-color:var(--ok-ink);color:var(--ok-ink)}
/* The photo: the owner's Bike Photos choice, or the existing "photo unavailable" fallback in the same 7:5 frame (S-20). */
.bm-hero .bike-photo{width:100%;aspect-ratio:7/5;padding:var(--s4);border:0;border-radius:var(--r-lg)}
.bm .bike-photo img{border-radius:0}
.bm .bike-photo[data-missing]{background:var(--surface-2)}
.bm .bike-photo-fallback{font-size:var(--fs-caption);color:var(--text-muted)}
/* The price and its check date. Without a current price the same line says why, at the same height (S-08). */
.bm-price{display:flex;align-items:baseline;gap:8px;min-height:3rem;margin:0}
.bm-price small{font-size:var(--fs-body);color:var(--text-muted)}
.bm-price b{font:var(--weight-title) clamp(2.25rem,1.8rem + 1.4vw,3rem)/1 var(--font-title);color:var(--text-strong);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bm-price.bm-noprice{align-items:center;font:600 var(--fs-body)/1.3 var(--font-text);color:var(--text-muted)}
.bm-price-note{display:flex;flex-wrap:wrap;gap:4px 16px;min-height:1.25rem;margin:8px 0 0;font-size:var(--fs-caption);line-height:1.5;color:var(--text-muted)}
.bm-price-note time{color:var(--text-strong);font-weight:650;font-variant-numeric:tabular-nums}
.bm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:var(--s5)}
.bm-actions__compare,.bm-vact__compare,.bm-rail__compare{display:contents}
.bm-compare-view{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-size:var(--fs-small);font-weight:650;color:var(--text-strong);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}
/* A version already picked for comparison (buying-guide-comparison.js sets aria-pressed and the words). The button keeps the
   width of its "selected" words (data-reserve, drawn invisibly under the visible ones), so nothing beside it moves on a press. */
.bm [data-compare-id]:not([hidden]){display:inline-grid;justify-items:center;align-content:center;gap:0}
.bm [data-compare-id]::after{content:attr(data-reserve);height:0;overflow:hidden;visibility:hidden}
.bm [data-compare-id][aria-pressed="true"]{background:var(--surface-2);border-color:var(--ok-ink);color:var(--text-strong)}
.bm-compare-feedback:not(:empty){margin:var(--s2) 0 0;font-size:var(--fs-caption);line-height:1.45}
.bm [hidden]{display:none}
.bm-share .article-share{margin:var(--s5) 0 0;padding:var(--s4) 0 0;border-top:1px solid var(--line);border-bottom:0}

/* ------------------------------------------------------------------ section links */
.bm-tabs{position:sticky;top:var(--header-offset);z-index:40;background:color-mix(in srgb,var(--bg) 94%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-block:1px solid var(--line)}
.bm-tabs__list{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.bm-tabs__list::-webkit-scrollbar{display:none}
.bm-tabs__list a{display:inline-flex;align-items:center;min-height:48px;padding:0 12px;border-bottom:2px solid transparent;white-space:nowrap;font:600 var(--fs-small)/1 var(--font-text);color:var(--text-muted)}
/* The tab of the section being read (aria-current="location", js/site-next.js) is drawn as a hovered one, on every screen; the
   hover look itself only where a pointer hovers (owner, 2 December 2026), so on a touch screen the tab last tapped does not
   keep it once the reader has scrolled on. */
.bm-tabs__list a[aria-current="location"]{color:var(--text-strong);border-bottom-color:var(--accent)}
@media (hover:hover){.bm-tabs__list a:hover{color:var(--text-strong);border-bottom-color:var(--accent)}}
.bm-tabs__list a:focus-visible{outline-offset:-3px}

/* ------------------------------------------------------------------ the column and the summary beside it */
.bm-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:var(--s7);align-items:start;padding-bottom:var(--section-gap)}
.bm-main{min-width:0}
/* A tab's jump (owner, 2 December 2026): html's scroll-padding already keeps the header's height and 16 px clear, so the section
   adds only the tab bar stuck under the header (48 px links and its two 1 px borders, as .bm-rail counts it). It lands 16 px
   under the bar, as every page's sections land 16 px under the header; it had added the header's height a second time. */
.bm-sec{padding-top:var(--s7);scroll-margin-top:50px}
.bm-head{margin-bottom:var(--s5)}
.bm-head h2{margin:6px 0 0;font:var(--weight-title) clamp(1.375rem,1.15rem + .8vw,1.875rem)/1.15 var(--font-title)}
.bm-caption{margin:12px 0 0;font-size:var(--fs-caption);line-height:1.5;color:var(--text-muted)}
.bm-rail{position:sticky;top:calc(var(--header-offset) + 50px + var(--s5));padding-top:var(--s7)}
.bm-rail__card{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);overflow:hidden}
.bm-rail .bike-photo{width:100%;aspect-ratio:7/4;padding:var(--s2);border:0;border-radius:0}
.bm-rail__body{display:flex;flex-direction:column;gap:8px;padding:var(--s4)}
.bm-rail__body p{margin:0}
.bm-rail__name{font:var(--weight-title) 1.25rem/1.15 var(--font-title);color:var(--text-strong);overflow-wrap:anywhere}
.bm-rail .bm-compare{width:100%;margin-top:4px}
.bm-rail .bm-compare-view{justify-content:center}

/* ------------------------------------------------------------------ overview tiles: only the figures Mototriti has */
.bm-tiles{display:flex;flex-wrap:wrap;gap:var(--s3);margin:0}
/* A tile is as wide as its value on one line (flex-basis auto, and never narrower: min-width fit-content) and the tiles of a
   row share what is left, so a row fills; a tile grows to at most a third of the row (half on a phone) unless its value needs
   more, so a tile left alone on a last row is not drawn across it (owner, release 4-3 review: «ΑΥΤΟΜΑΤΟ» broke mid-word, then
   stood alone in a 972 px tile). A value wraps only when it is wider than the whole row, and then only between words. */
.bm-tiles div{flex:1 1 auto;min-width:fit-content;max-width:max(calc((100% - 2 * var(--s3)) / 3),10rem);padding:var(--s4) var(--s5);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.bm-tiles dt{font:650 var(--fs-label)/1.3 var(--font-text);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.bm-tiles dd{margin:6px 0 0;font:var(--weight-title) clamp(1.5rem,1.3rem + .7vw,2rem)/1.1 var(--font-title);color:var(--text-strong);font-variant-numeric:tabular-nums;overflow-wrap:normal;hyphens:manual}
.bm-tiles dd small{font:600 var(--fs-small)/1 var(--font-text);color:var(--text-muted)}
/* A value in words (gearbox, an electric motor's range): smaller, so a word such as «ΑΥΤΟΜΑΤΟ» is never broken. */
.bm-tiles .bm-tile--text dd{font-size:clamp(1.125rem,1rem + .4vw,1.375rem);line-height:1.2}

/* ------------------------------------------------------------------ versions and prices */
.bm-vtable{width:100%;border-collapse:collapse;font-size:var(--fs-small)}
/* Rows: the version's name on the left, its price, check date and actions on the right, on one baseline (owner, review). */
.bm-vtable th,.bm-vtable td{padding:var(--s3) var(--s4);text-align:start;vertical-align:baseline;border-top:1px solid var(--line);background:none}
.bm-vtable thead th{border-top:0;padding-block:0 var(--s2);font:650 var(--fs-label)/1.3 var(--font-text);letter-spacing:.06em;color:var(--text-muted)}
.bm-vtable tbody th{font-weight:400}
.bm-vtable tr[aria-current="true"]{background:var(--surface)}
.bm-vtable tr[aria-current="true"] > th{box-shadow:inset 3px 0 0 var(--accent)}
.bm-vname{display:block;font-weight:700;color:var(--text-strong);overflow-wrap:anywhere}
.bm-vsub{display:block;margin-top:2px;font-size:var(--fs-caption);color:var(--text-muted)}
.bm-vtable .bm-num,.bm-vtable .bm-vcheck,.bm-vtable .bm-vact{text-align:end}
.bm-vprice{margin:0;font:var(--weight-title) 1.25rem/1.15 var(--font-title);color:var(--text-strong);white-space:nowrap;font-variant-numeric:tabular-nums}
.bm-vprice b{font:inherit}
.bm-vprice.bm-noprice{font:400 var(--fs-caption)/1.3 var(--font-text);color:var(--text-muted);white-space:normal}
.bm-vcheck{font-size:var(--fs-caption);color:var(--text-muted);white-space:nowrap}
.bm-vact{text-align:end}
.bm-vact a,.bm-vact button{white-space:nowrap}
.bm-vcompare{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line-control);border-radius:var(--r-md);background:transparent;color:var(--text-strong);font:700 var(--fs-caption)/1.2 var(--font-text)}
.bm-vcompare:hover{background:var(--surface-2)}
.bm-vguide{display:inline-flex;align-items:center;min-height:44px;margin-left:12px;font-size:var(--fs-caption);font-weight:650;color:var(--text-strong);text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:4px}
.bm-vguide:hover{text-decoration-color:var(--accent)}
.bm-generations{margin-top:var(--s5)}
.bm-generations h3{margin:0;font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title)}
.bm-generations ul{display:flex;flex-wrap:wrap;gap:4px 20px;margin:4px 0 0;padding:0;list-style:none}
.bm-generations a{display:inline-flex;align-items:center;min-height:44px;font-weight:650;color:var(--text-strong);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}

/* ------------------------------------------------------------------ full specification, grouped */
.bm-acc-list{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);overflow:hidden}
.bm-acc + .bm-acc{border-top:1px solid var(--line)}
.bm-acc > summary{display:flex;align-items:center;gap:12px;min-height:56px;padding:0 var(--s5);list-style:none;cursor:pointer}
.bm-acc > summary::-webkit-details-marker{display:none}
.bm-acc > summary:hover{background:var(--surface-2)}
.bm-acc > summary:focus-visible{outline-offset:-3px}
.bm-acc > summary h3{margin:0;font:var(--weight-title) var(--fs-h4)/1.2 var(--font-title)}
.bm-acc > summary small{margin-left:auto;font-size:var(--fs-caption);color:var(--text-muted);font-variant-numeric:tabular-nums}
.bm-acc > summary svg{flex-shrink:0;color:var(--text-muted);transition:transform .15s}
.bm-acc[open] > summary svg{transform:rotate(180deg)}
.bm-spec-table{width:100%;table-layout:fixed;border-collapse:collapse;border-top:1px solid var(--line);font-size:var(--fs-small)}
/* A specification row: the label on the left, the value on the right, on one baseline; a long value wraps between words and
   stays right-aligned (owner, review). */
.bm-spec-table th,.bm-spec-table td{padding:var(--s3) var(--s5);text-align:start;vertical-align:baseline;border-top:1px solid var(--line)}
.bm-spec-table tr:first-child th,.bm-spec-table tr:first-child td{border-top:0}
.bm-spec-table th{width:44%;font-weight:400;color:var(--text-muted)}
.bm-spec-table td{text-align:end;font-weight:600;color:var(--text-strong);overflow-wrap:break-word}

/* ------------------------------------------------------------------ coverage (follows the catalogue articles switch, S-12) */
.bm-cov{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--s5);align-items:start}
.bm-cov--solo{grid-template-columns:minmax(0,1fr)}
.bm-cov__lead{display:flex;flex-direction:column;gap:var(--s3);min-width:0}
.bm-cov--solo .bm-cov__lead{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s5);align-items:center}
.bm-cov__media{display:block;aspect-ratio:16/9;border-radius:var(--r-lg);overflow:hidden;background:var(--surface-2)}
.bm-cov__media .story-visual{height:100%;aspect-ratio:auto;margin:0;border:0;border-radius:0}
.bm-cov__img{width:100%;height:100%;object-fit:cover}
.bm-cov__body h3{margin:6px 0 0;font:var(--weight-title) clamp(1.25rem,1.1rem + .6vw,1.625rem)/1.2 var(--font-title);overflow-wrap:break-word}
.bm-cov__body h3 a:hover,.bm-cov__title:hover{color:var(--accent-ink)}
.bm-cov__dek{display:-webkit-box;margin:8px 0 0;overflow:hidden;font-size:var(--fs-small);line-height:1.55;color:var(--text-muted);-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}
.bm-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin:8px 0 0;font-size:var(--fs-caption);color:var(--text-muted)}
.bm-cov__list{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.bm-cov__list li{display:grid;justify-items:start;gap:2px;padding-block:var(--s3);border-bottom:1px solid var(--line)}
.bm-cov__list .bm-meta{margin:0}
.bm-cov__title{font-weight:600;line-height:1.4;color:var(--text-strong);overflow-wrap:break-word}
.bm-pip{display:inline-flex;align-items:center;gap:8px;min-height:24px;font:650 var(--fs-label)/1.3 var(--font-text);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.bm-pip::before{content:"";width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--pip,var(--text-muted))}
.bm-pip:hover{color:var(--text-strong)}
.bm-pip[data-cat="news"]{--pip:var(--cat-news)}
.bm-pip[data-cat="bikes"]{--pip:var(--cat-bikes)}
.bm-pip[data-cat="racing"]{--pip:var(--cat-racing)}
.bm-pip[data-cat="gear"]{--pip:var(--cat-gear)}
.bm-pip[data-cat="reviews"]{--pip:var(--cat-reviews)}
.bm-pip[data-cat="tech"]{--pip:var(--cat-tech)}
.bm-pip[data-cat="market"]{--pip:var(--cat-market)}
.bm-pip[data-cat="trackdays"]{--pip:var(--cat-trackdays)}
.bm-pip[data-cat="guide"]{--pip:var(--cat-guide)}

/* ------------------------------------------------------------------ videos (hidden with the catalogue video switch, S-12) */
.bm-vids{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s5)}
.bm-vids--single{grid-template-columns:minmax(0,640px)}
.bm-vid{min-width:0}
.bm-vid__cover{position:relative;display:block;aspect-ratio:16/9;border-radius:var(--r-lg);overflow:hidden;background:var(--surface-2)}
.bm-vid__cover img{width:100%;height:100%;object-fit:cover}
.bm-vid__cover:focus-visible{outline:2px solid var(--focus);outline-offset:-4px}
.bm-play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:56px;height:56px;margin:-28px 0 0 -28px;padding-left:3px;border-radius:50%;background:var(--accent-surface);color:var(--on-accent);box-shadow:var(--shadow-pop)}
.bm-vid__cover:hover .bm-play{background:var(--accent-hover)}
.bm-vid__body h3{margin:12px 0 0;font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title);overflow-wrap:break-word}
.bm-more{display:inline-flex;align-items:center;min-height:44px;font-size:var(--fs-small);font-weight:650;color:var(--text-strong);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:5px}

/* ------------------------------------------------------------------ similar models (WP7) */
.bm-sims{display:flex;flex-wrap:wrap;gap:var(--s4)}
.bm-sim{display:flex;flex-direction:column;flex:0 1 calc((100% - 3 * var(--s4)) / 4);min-width:0;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);overflow:hidden}
.bm-sim .bike-photo{width:100%;aspect-ratio:4/3;padding:var(--s2);border:0;border-radius:0}
.bm-sim__body{display:flex;flex:1;flex-direction:column;gap:4px;padding:var(--s3) var(--s4) var(--s4)}
.bm-sim__body p{margin:0}
.bm-sim__reason{display:flex;align-items:center;gap:8px;font:650 var(--fs-caption)/1.3 var(--font-text);color:var(--text-strong)}
.bm-sim__reason::before{content:"";width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--cat-guide)}
.bm-sim__brand{font:650 var(--fs-label)/1.3 var(--font-text);letter-spacing:.06em;color:var(--text-muted)}
.bm-sim__name{margin:0;font:var(--weight-title) var(--fs-h4)/1.2 var(--font-title);overflow-wrap:anywhere}
.bm-sim__name a:hover{color:var(--accent-ink)}
/* A fixed height whether it holds a price or the "no current price" line, so cards side by side stay level (S-08). */
.bm-sim__price,.bm-rail__price{display:flex;align-items:center;gap:6px;height:3rem}
/* A catalogue text can be long (an old and a new price, a range): at most two lines, so the line keeps its height. */
.bm-sim__price b,.bm-rail__price b{display:-webkit-box;overflow:hidden;font:var(--weight-title) 1.25rem/1.15 var(--font-title);color:var(--text-strong);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.bm-sim__price small,.bm-rail__price small{font-size:var(--fs-caption);color:var(--text-muted)}
.bm-sim__price.bm-noprice,.bm-rail__price.bm-noprice{display:-webkit-box;overflow:hidden;font-size:var(--fs-caption);line-height:1.25;color:var(--text-muted);-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;padding-top:3px}
.bm-sim__delta{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:var(--fs-caption);color:var(--text);font-variant-numeric:tabular-nums}
.bm-sim__delta span{font-weight:650}
.bm-sim__compare{display:flex;align-items:center;min-height:44px;padding:4px var(--s4);border-top:1px solid var(--line);font:700 var(--fs-caption)/1.3 var(--font-text);color:var(--text-strong)}
.bm-sim__compare:hover{color:var(--accent-ink)}
.bm-sim__compare:focus-visible{outline-offset:-3px}

/* ------------------------------------------------------------------ the assistant (only while it is available, S-06) */
.bm-finder{padding-block:var(--s7);background:linear-gradient(180deg,var(--bg-band),var(--bg));border-top:1px solid var(--line)}
.bm-finder__in{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:var(--s5);align-items:center}
.bm-finder .bg-rider{width:96px;height:96px;margin:0;transform:none;filter:none}
.bm-finder h2{margin:6px 0 0;font:var(--weight-title) var(--fs-h3)/1.2 var(--font-title)}
.bm-finder p{max-width:60ch;margin:8px 0 0;color:var(--text-muted)}
/* The description's 8 px above also caught the eyebrow, the first line, and left 8 px more inside the band's top than its
   bottom (owner, 2 December 2026, spacing audit). */
.bm-finder .ar-eyebrow{margin-top:0}
/* The band closes the page and its colour fades into the page's own, so the footer's top margin (--section-gap, 48 to 88 px)
   read as the band's lower part: its content sat 48 px under its top and 48 + 88 px over the footer (owner, 2 December 2026,
   at 1756 px). The footer meets the band instead, so the band ends where it is seen to and its content is centred in it. The
   docked comparison tray keeps its clearance, which the body takes below the footer. */
main:has(.bm-finder) + .ar-footer{margin-top:0}
/* With no band (the finder unavailable: switched off, the spend check, a reader's daily limit), the column closes the page: no
   space under it but the footer's top margin, one --section-gap (owner, 3 December 2026). */
.bm:not(:has(> .bm-finder)) > .bm-layout{padding-bottom:0}

/* ------------------------------------------------------------------ the comparison tray, restyled; its docking unchanged */
.bm .bike-compare-tray[data-compare-dock]{border:1px solid var(--line-strong);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-pop)}
.bm .bike-compare-summary strong{font:650 var(--fs-small)/1.3 var(--font-text);color:var(--text-strong)}
.bm .bike-compare-tray[data-compare-dock] p{font-size:var(--fs-caption)}
.bm .bike-compare-panel-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid transparent;border-radius:var(--r-md);background:var(--accent-surface);color:var(--on-accent);font:700 var(--fs-small)/1.2 var(--font-text)}
.bm .bike-compare-panel-actions .button:hover{background:var(--accent-hover)}
.bm .bike-compare-panel-actions .button-outline{border-color:var(--line-control);background:transparent;color:var(--text-strong)}
.bm .bike-compare-panel-actions .button-outline:hover{background:var(--surface-2)}

/* ------------------------------------------------------------------ narrower screens */
@media (max-width:1199px){
  .bm-layout{grid-template-columns:minmax(0,1fr)}
  .bm-rail{display:none}
}
@media (max-width:1000px){
  .bm-tabs{position:static}
  .bm-sec{scroll-margin-top:0}
  .bm-hero__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "photo" "buy"}
  .bm-cov{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .bm-sim{flex-basis:calc((100% - var(--s3)) / 2)}
  .bm-sims{gap:var(--s3)}
  .bm-vids{grid-template-columns:minmax(0,1fr)}
  .bm-cov--solo .bm-cov__lead{grid-template-columns:minmax(0,1fr)}
  /* Versions as rows of their own: the name across, the price and the actions under it. */
  .bm-vtable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .bm-vtable,.bm-vtable tbody{display:block}
  .bm-vtable tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name price" "act act";align-items:baseline;gap:4px var(--s3);padding:var(--s3) 0;border-top:1px solid var(--line)}
  .bm-vtable tr[aria-current="true"]{padding-inline:var(--s3)}
  .bm-vtable tbody th,.bm-vtable td{padding:0;border-top:0}
  .bm-vtable tbody th{grid-area:name}
  .bm-vtable .bm-num{grid-area:price}
  .bm-vtable .bm-vact{grid-area:act}
  .bm-vtable tr[aria-current="true"] > th{box-shadow:none}
  .bm-vtable tr[aria-current="true"]{box-shadow:inset 3px 0 0 var(--accent)}
  .bm-vtable .bm-num,.bm-vtable .bm-vact{text-align:end}
  .bm-vtable .bm-vcheck{display:none}
  .bm-vprice{white-space:nowrap}
  .bm-vprice.bm-noprice{white-space:normal;max-width:12rem}
  .bm-finder__in{grid-template-columns:64px minmax(0,1fr);gap:var(--s4)}
  .bm-finder .bg-rider{width:64px;height:64px}
  .bm-finder .btn{grid-column:1 / -1}
}
@media (max-width:640px){
  .bm-hero{padding-top:var(--s3)}
  .bm-hero h1{margin-top:12px}
  .bm-tiles div{padding:var(--s3) var(--s4)}
  .bm-actions .btn{flex:1 1 auto}
  .bm-sec{padding-top:var(--s6)}
  .bm-acc > summary{padding:0 var(--s4)}
  .bm-spec-table th,.bm-spec-table td{padding:var(--s3) var(--s4)}
  .bm-sim__body{padding:var(--s3)}
  .bm-sim__compare{padding-inline:var(--s3)}
  .bm-vact{white-space:normal}
  .bm-vguide{margin-left:8px}
}

/* Release 6a-2: "Follow this bike" (notify-asks.php), under the actions; site-next.css draws the ask itself. */
.bm-ask{margin-top:var(--s4)}
