/* BIKOTIC compare - BROWSE (browse.js): every bike, filters down the left (a sheet on a phone), cards on the 250px
   thumbs in a grid, and a strip showing what's in the two picker cards (under the search; along the bottom on a phone). Light "workshop" layout:
   white, blue for the tools, sage for P1 and plum for P2, numbers in JetBrains Mono. Over the BIKES overlay. */

#browse
{
	position: fixed;
	inset: 0;
	z-index: 600;
	display: none;
	flex-direction: column;
	background: #ffffff;
	color: #141414;
}
#browse.open { display: flex; animation: cardsFadeIn 0.25s ease both; }

/* ---------------------------------------------------------------- TOP BAR: logo, title, search, sort, close */

.brTop
{
	flex: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding: 12px 84px 12px 20px;
	background: var(--bk-hero-gradient);
	color: #ffffff;
	position: relative;
}
.brTop .pkLogo { line-height: 0; }
.brTop .pkLogo img { display: block; height: 20px; width: auto; }
.brTitle { margin: 0; font-weight: 600; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
#brQ
{
	flex: 1 1 220px;
	min-width: 140px;
	max-width: 420px;
	font-family: var(--body);
	font-size: 16px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #141414;
}
#brQ:focus { outline: 2px solid var(--bk-mist); outline-offset: 1px; }
.brSort { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.16em; color: var(--bk-mist); }
.brSort select
{
	font-family: var(--head);
	font-size: 14px;
	letter-spacing: 0.04em;
	padding: 6px 8px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: #ffffff;
	color: var(--ui);
}
#brFilterBtn, #brStarred { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
#brFilterBtn:hover, #brStarred:hover { background: rgba(255, 255, 255, 0.15); }
#brFilterBtn { display: none; }
#brStarred.on { background: #ffffff; color: var(--ui); border-color: #ffffff; }
/* "Picking bike 1" (sage) / "Picking bike 2" (plum): which picker card Browse was opened from */
.brPicking
{
	flex: none;
	font-family: var(--head);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #ffffff;
	padding: 7px 12px 8px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: var(--bk-bike1-gradient);
}
.brPicking[hidden] { display: none; }
#browse[data-side="2"] .brPicking { background: var(--bk-bike2-gradient); }
#brClose		/* the shared close (style.css .xBtn.onDark) */
{
	position: absolute;
	top: 8px;
	right: 16px;
}

/* ---------------------------------------------------------------- BODY: the rail and the grid */

.brBody { flex: 1; display: flex; min-height: 0; }

#brRail
{
	flex: none;
	width: 250px;
	box-sizing: border-box;
	overflow-y: auto;
	padding: 10px 18px 40px;
	border-right: 1px solid var(--border);
	background: var(--bk-panel);
	font-family: var(--body);
}
.fGroup { border-bottom: 1px solid var(--border); padding: 6px 0 8px; }
.fGroup summary
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	list-style: none;
	padding: 7px 0;
	font-family: var(--head);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ui);
	cursor: pointer;
}
.fGroup summary::-webkit-details-marker { display: none; }
.fGroup summary::after { content: "+"; font-size: 16px; line-height: 1; opacity: 0.7; }
.fGroup[open] summary::after { content: "–"; }
.fOn { margin-left: auto; margin-right: 10px; min-width: 18px; text-align: center; font-family: var(--data); font-size: 11px; color: #ffffff; background: var(--ui); border-radius: 999px; padding: 1px 6px; }
.fOn:empty { display: none; }
.fBody { padding: 2px 0 4px; }
.fOpt { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; padding: 4px 0; cursor: pointer; }
.fOpt input { margin: 0; accent-color: var(--ui); flex: none; }
.fOpt .n { margin-left: auto; font-family: var(--data); font-size: 12px; color: #767676; }
.fOpt .fName { min-width: 0; overflow-wrap: anywhere; }		/* long groupset names wrap, the count stays on the right */
.fOpt .n { flex: none; }
.fOpt.zero { color: #9aa4ad; }
/* GROUPSET: a maker row (tick box, name, count, then the arrow that opens its groupsets), its groupsets indented under it */
.fMaker { display: flex; align-items: center; gap: 2px; }
.fMaker .fOpt { flex: 1; min-width: 0; }
.fExp
{
	flex: none;
	position: relative;
	width: 30px;
	height: 28px;
	margin-right: -6px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--ui);
	cursor: pointer;
}
.fExp::before		/* a chevron, pointing right when shut and down when open */
{
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-70%, -50%) rotate(-45deg);
	transition: transform 0.15s ease;
}
.fExp[aria-expanded="true"]::before { transform: translate(-50%, -75%) rotate(45deg); }
.fExp:hover { background: var(--uiTint); }
.fSub { margin: 0 0 4px 6px; padding: 0 26px 0 12px; border-left: 1px solid var(--uiLine); }		/* right padding: the counts line up under the maker's, left of its arrow */
.fSub .fOpt { font-size: 13px; }
.fSub .fNote { font-size: 12px; }
/* Road / Gravel / MTB over each kind of a maker's groupsets (browse.js GROUPSET ORDER): a small label, not a tick box row */
.fKind { margin: 8px 0 2px; font-family: var(--head); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #5d6b78; }
.fKind:first-child { margin-top: 4px; }
.fOpt.zero .n { color: #b8c0c8; }
.fTypes { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.fType
{
	font-family: var(--head);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 5px 10px 6px;
	border-radius: 999px;
	border: 1px solid var(--uiLine);
	background: #ffffff;
	color: var(--ui);
	cursor: pointer;
}
.fType:hover { border-color: var(--ui); }
.fType.on { background: var(--ui); border-color: var(--ui); color: #ffffff; }
.fRow { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.fRow > span { width: 36px; color: #555555; }
.fRow select { flex: 1; min-width: 0; font-family: var(--body); font-size: 14px; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--uiLine); background: #ffffff; color: #141414; }
.fMore { background: none; border: 0; padding: 4px 0; font-family: var(--body); font-size: 13px; color: var(--ui); text-decoration: underline; cursor: pointer; }
.fNote { margin: 4px 0; font-size: 13px; color: #767676; }
/* STARRED on: the filters are set aside, greyed out, until it's off again (the More group keeps its tick box) */
.starNote { display: none; margin: 10px 0 6px; color: var(--ui); }
#brRail.off .starNote { display: block; }
#brRail.off .fGroup:not(#fg_more) { opacity: 0.35; pointer-events: none; }
#brQ:disabled { background: rgba(255, 255, 255, 0.6); }
.brDone { display: none; }

#brMain
{
	flex: 1;
	min-width: 0;
	overflow-y: auto;
	padding: 14px 20px 40px;
	box-sizing: border-box;
}
.brBar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 28px; }
#brCount { font-family: var(--data); font-weight: 700; font-size: 15px; color: var(--ui); margin-right: 6px; white-space: nowrap; }
#brChips { display: contents; }
.chip
{
	font-family: var(--body);
	font-size: 13px;
	background: var(--uiTint);
	color: var(--ui);
	border: 0;
	border-radius: 999px;
	padding: 4px 10px 5px;
	cursor: pointer;
}
.chip:hover { background: var(--uiLine); }
.chip.clear { background: none; text-decoration: underline; }
.brNote { margin: -4px 0 12px; font-family: var(--body); font-size: 14px; color: #555555; }
.brNote[hidden] { display: none; }
html.phone .brSort select { min-height: 44px; font-size: 16px; }		/* a 44px tap on any phone, a wide one on its side too (13 Nov 2026: the similar list sorts with it) */
.brMsg { margin: 24px 0; font-family: var(--body); font-size: 16px; color: #555555; }
.brMsg:empty { display: none; }
#brMore { display: block; margin: 20px auto 0; }
#brMore[hidden] { display: none; }

/* the grid of cards - each about the width of its 250px thumb */
.brGrid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	gap: 14px;
}
.brCard
{
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.brCard:hover { box-shadow: 0 10px 28px rgba(var(--shadowRGB), 0.14); }
/* a card that's in a picker slot: a 2px ring in that bike's colour, drawn as an outline so the photo can't cover it */
.brCard.in1 { border-color: var(--bk-bike1); outline: 2px solid var(--bk-bike1); outline-offset: -1px; }
.brCard.in2 { border-color: var(--bk-bike2); outline: 2px solid var(--bk-bike2); outline-offset: -1px; }
.brCard.in1.in2 { outline-color: var(--bk-bike1); box-shadow: 0 0 0 3px var(--bk-bike2); }
/* the card in the preview: a clear outline in the colour of the side being picked (blue when there's no side) */
#browse { --pvCol: var(--ui); }
#browse[data-side="1"] { --pvCol: var(--bk-bike1); }
#browse[data-side="2"] { --pvCol: var(--bk-bike2); }
.brCard.pvOn, .brCard.pvOn.in1, .brCard.pvOn.in2 { border-color: var(--pvCol); outline: 4px solid var(--pvCol); outline-offset: -1px; box-shadow: 0 10px 28px rgba(var(--shadowRGB), 0.2); }
/* the whole card is the way into the preview: a button under the star, the LEGACY chip and P1 / P2 */
.brOpen { position: absolute; inset: 0; z-index: 0; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.brOpen:focus-visible { outline: 2px solid var(--ui); outline-offset: -4px; }
.brThumb, .brWords { pointer-events: none; }		/* a tap on the photo or the words goes through to .brOpen */
.brWords .legacyChip { pointer-events: auto; position: relative; z-index: 1; }
.brCousin { margin-top: 5px; display: inline-block; font-family: var(--head); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ui); background: var(--uiTint); border-radius: 4px; padding: 2px 7px 3px; }
.brThumb { aspect-ratio: 16 / 9; background: #E6E9EC; }
/* the hit count: small, light grey, top-left of the photo on a desktop (Ben, 14 Nov 2026). The star is top-right.
   The card's own corner is the photo's, so it's placed from the card. A tap goes through to .brOpen */
.brHits { position: absolute; top: 6px; left: 8px; pointer-events: none; font-family: var(--data); font-size: 10px; line-height: 1; letter-spacing: 0.04em; color: #9aa4ad; white-space: nowrap; }
/* phones: under the photo, never on it (Ben, 14 Nov 2026) - its own line between the photo and the brand */
@media (max-width: 760px) { .brHits { position: static; padding: 6px 12px 0; } .brHits + .brWords { padding-top: 4px; } }
.brThumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #ffffff; -webkit-user-drag: none; }
.brWords { padding: 10px 12px 4px; min-width: 0; }
.brBrand { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #555555; }
.brBrand .num { font-family: var(--data); letter-spacing: 0; }
.brName { margin-top: 2px; font-weight: 600; font-size: 16px; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; color: #141414; overflow-wrap: anywhere; }
.brName .legacyChip { color: #555555; vertical-align: 0.1em; }
.brMeta { margin-top: 5px; font-family: var(--body); font-size: 13px; color: #555555; }
.brMeta .num { font-family: var(--data); font-weight: 500; color: #141414; }
.brGroupset { margin-top: 2px; font-family: var(--body); font-size: 12px; color: #555555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brPick { position: relative; z-index: 1; display: flex; gap: 8px; padding: 8px 12px 12px; margin-top: auto; pointer-events: none; }
.brPick .brP { pointer-events: auto; }
.brP
{
	flex: 1;
	font-family: var(--head);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.16em;
	padding: 6px 0 7px;
	border-radius: 999px;
	border: 1px solid;
	background: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.brP.p1 { color: var(--bk-bike1-tint-text); border-color: var(--bk-bike1); }
.brP.p1:hover, .brP.p1[aria-pressed="true"] { background: var(--bk-bike1-gradient); color: #ffffff; }
.brP.p2 { color: var(--bk-bike2-text); border-color: var(--bk-bike2); }
.brP.p2:hover, .brP.p2[aria-pressed="true"] { background: var(--bk-bike2-gradient); color: #ffffff; }
.brP[aria-pressed="true"]::before { content: "✓ "; }
.brStar
{
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 1;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.88);
	color: #b8c0c8;
	font-size: 25px;
	line-height: 38px;
	padding: 0;
	cursor: pointer;
	transition: color 0.15s ease;
}
.brStar::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; }		/* a 44px tap area round the 38px star */
.brStar:hover { color: var(--ui); }
.brStar.on { color: var(--ui); }

/* ---------------------------------------------------------------- THE STRIP: P1 | P2 | COMPARE
   Under the search on a desktop, so the picks stay in view while the grid scrolls; along the bottom on a phone (below).
   P1 with a solid sage edge, P2 with a solid plum one, each with its P1 / P2 tag, so colour isn't the only
   difference. Thumbs are the 250px ones, drawn small on white. */

.brPicked
{
	flex: none;
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 14px;
	padding: 10px 20px;
	border-bottom: 1px solid var(--border);
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(var(--shadowRGB), 0.07);
}
.brSlot
{
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	height: 52px;
	box-sizing: border-box;
	padding: 0 4px 0 6px;
	border: 2px solid var(--bk-bike1);
	border-radius: 10px;
	background: #ffffff;
}
.brSlot.p2 { border-color: var(--bk-bike2); }
.brSlot.empty { border-color: #c9d0d6; }
.brTag
{
	flex: none;
	font-family: var(--head);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.12em;
	line-height: 1;
	padding: 4px 4px 4px 6px;
	border-radius: 4px;
	color: #ffffff;
	background: var(--bk-bike1-gradient);
}
.brSlot.p2 .brTag { background: var(--bk-bike2-gradient); }
.brSlot.empty .brTag { background: #ffffff; color: var(--bk-bike1-tint-text); box-shadow: inset 0 0 0 1px var(--bk-bike1); }
.brSlot.p2.empty .brTag { color: var(--bk-bike2-text); box-shadow: inset 0 0 0 1px var(--bk-bike2); }
.brSlotThumb { flex: none; width: 68px; aspect-ratio: 16 / 9; border-radius: 4px; background: #ffffff; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.brSlot.empty .brSlotThumb { background: var(--bk-panel); box-shadow: none; }
.brSlotThumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: #ffffff; -webkit-user-drag: none; }
.brSlotName
{
	flex: 1;
	min-width: 0;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--bk-bike1-tint-text);
}
.brSlot.p2 .brSlotName { color: var(--bk-bike2-text); }
.brSlot.empty .brSlotName { font-family: var(--body); font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; color: #555555; }
.brSlotX
{
	flex: none;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #767676;
	font-size: 16px;
	line-height: 40px;
	padding: 0;
	cursor: pointer;
}
.brSlotX { position: relative; }
.brSlotX::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; }		/* a 44px tap area */
.brSlotX:hover { background: var(--bk-panel); color: var(--ui); }
#brGo
{
	font-family: var(--head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.16em;
	color: #ffffff;
	background: var(--ui);
	border: 0;
	border-radius: 999px;
	padding: 10px 34px 11px 36px;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(var(--shadowRGB), 0.28);
}
#brGo:hover { background: var(--bk-navy); }
#brGo:disabled { background: #b8c0c8; box-shadow: none; cursor: default; }

/* under about 900px the strip goes to the bottom, still in the page's flow so it never covers the last row of cards */
@media (max-width: 899px)
{
	.brPicked
	{
		order: 3;
		border-bottom: 0;
		border-top: 1px solid var(--border);
		box-shadow: 0 -8px 24px rgba(var(--shadowRGB), 0.08);
		padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
	}
	.brBody { order: 2; }
}

/* ---------------------------------------------------------------- PHONES: the rail is a sheet behind FILTERS */

@media (max-width: 760px)
{
	.brTop { padding: 10px 14px; gap: 8px 10px; }		/* the rows under the first run the full width; the first keeps clear of the close (.brPicking, below) */
	.brPicking { margin-right: 62px; }
	@media (max-width: 379px) { .brStarN { display: none; } }		/* the narrowest phones: no "(3)" on Starred, so "Recently added" still reads in full with FILTERS (2) beside it */
	.brTop .pkLogo { min-height: 36px; display: flex; align-items: center; }		/* the first row as tall as the close beside it */
	.brTitle { display: none; }
	#brQ { flex-basis: 100%; max-width: none; order: 3; }
	/* the sort box, Starred and Filters on ONE line at 360 and up (Ben, 13 Nov 2026): the word "SORT" goes (the box keeps
	   its name, aria-label "Sort by"), and the box takes whatever width the two buttons leave */
	.brSortWord { display: none; }
	.brSort { order: 4; flex: 1 1 0; min-width: 0; }
	.brSort select { min-height: 44px; font-size: 16px; flex: 1 1 0; width: 100%; min-width: 0; padding: 6px 2px 6px 6px; letter-spacing: 0; }		/* a 44px tap, and 16px so iPhones don't zoom in on it */
	#brStarred { order: 4; flex: none; padding-left: 9px; padding-right: 9px; letter-spacing: 0.08em; }
	#brFilterBtn { display: inline-block; order: 5; flex: none; padding-left: 9px; padding-right: 9px; letter-spacing: 0.08em; }
	#brClose { top: 6px; right: 12px; }
	#brRail { display: none; }
	#browse.filters #brRail
	{
		display: block;
		position: fixed;
		inset: 0;
		z-index: 3;
		width: auto;
		padding-bottom: 90px;
	}
	#browse.filters .brDone
	{
		display: block;
		position: fixed;
		left: 16px;
		right: 16px;
		bottom: 16px;
		z-index: 4;
		font-family: var(--head);
		font-weight: 600;
		font-size: 15px;
		letter-spacing: 0.16em;
		color: #ffffff;
		background: var(--ui);
		border: 0;
		border-radius: 999px;
		padding: 12px;
		box-shadow: 0 10px 28px rgba(var(--shadowRGB), 0.28);
		cursor: pointer;
	}
	#brMain { padding: 12px 14px 30px; }
	.fOpt { min-height: 44px; padding: 0; }		/* each tick box row a thumb-sized tap in the sheet */
	.fSub .fOpt { font-size: 14px; padding: 4px 0; box-sizing: border-box; }
	.fExp { width: 44px; height: 44px; margin-right: -10px; }
	.fSub { padding-right: 36px; }
	.brGrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
	.brName { font-size: 14px; }
}

/* phones: the compact strip - P1 over P2 on the left, COMPARE on the right across both */
@media (max-width: 599px)
{
	.brPicked { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
	.brSlot { grid-column: 1; height: 44px; gap: 8px; padding: 0 0 0 4px; border-radius: 8px; }
	.brSlotThumb { width: 52px; }
	.brSlotName { font-size: 13px; }
	.brSlot.empty .brSlotName { font-size: 13px; }
	.brSlotX { width: 40px; height: 40px; line-height: 40px; }
	#brGo { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; letter-spacing: 0.12em; padding: 0 14px; height: 48px; }
}

/* ---------------------------------------------------------------- THE PREVIEW (browse.js PREVIEW; Ben, 12 Nov 2026)
   One bike, looked at without loading it into the comparison. DESKTOP: a panel at the right of the grid, in the page's
   flow, so the grid just narrows and stays usable. PHONES (#browse.sheet: html.phone, or any window under 1000px): a
   sheet that slides up over a dim, nearly full height, shut by its X, a tap on the dim, a swipe down or Escape.
   Three parts: the top strip (the sheet's grab bar and the close), the part that scrolls (photo, names, the rows) and
   the buttons in their own strip at the bottom - nothing scrolls over Buy, and the close is at the far end from it. */

#brPrev
{
	flex: none;
	display: flex;
	flex-direction: column;
	width: clamp(340px, 30vw, 440px);
	min-height: 0;
	box-sizing: border-box;
	border-left: 1px solid var(--border);
	background: #ffffff;
	font-family: var(--body);
	color: #141414;
}
#brPrev[hidden], #brPrevBack[hidden] { display: none; }
#brPrevBack { display: none; }		/* the dim: the sheet only */
.pvTop { flex: none; position: relative; display: flex; justify-content: flex-end; align-items: center; padding: 10px 14px 6px; }
.pvGrab { display: none; }
.pvScroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 18px 14px; }
.pvPhoto { aspect-ratio: 16 / 9; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pvPhoto img { width: 100%; height: 100%; object-fit: contain; display: block; background: #ffffff; -webkit-user-drag: none; user-select: none; }
.pvNoPhoto { font-family: var(--head); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #555555; }
.pvWords { padding-top: 14px; }
.pvBrand { display: flex; justify-content: space-between; gap: 10px; font-family: var(--head); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #555555; }
.pvBrand .num { font-family: var(--data); letter-spacing: 0; white-space: nowrap; }
.pvBrand .makerPrice { margin-left: 0.5em; }		/* "2026 · £3,000": the maker's price after the year (shared.js makerPrice) */
.pvName { margin: 3px 0 0; font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.12; letter-spacing: 0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.pvName .legacyChip { color: #555555; vertical-align: 0.2em; }
.pvType { margin-top: 6px; font-family: var(--head); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui); }
.pvType:empty { display: none; }
.pvFailed { margin: 10px 0 0; font-size: 13px; line-height: 1.35; color: #8a4a00; }		/* as the app's own note under the bike's name */
.pvFailed[hidden], .pvMsg[hidden] { display: none; }
.pvRows { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 14px 0 0; border-top: 1px solid var(--border); }
.pvRows dt, .pvRows dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.35; }
.pvRows dt { padding-right: 18px; font-family: var(--head); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #555555; line-height: 19px; }
.pvRows dd { text-align: right; overflow-wrap: anywhere; }
.pvRows dd.num { font-family: var(--data); font-weight: 500; }
.pvMsg { margin: 10px 0 0; font-size: 13px; color: #555555; }

.pvActs { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: #ffffff; }
.pvUse { display: flex; gap: 10px; }
.pvUseBtn
{
	flex: 1;
	min-height: 48px;
	padding: 0 12px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
	background: var(--bk-bike1-gradient);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.pvUseBtn.p2 { background: var(--bk-bike2-gradient); }
.pvUseBtn:hover { filter: brightness(1.08); }
.pvUseBtn:focus-visible { outline: 2px solid var(--ui); outline-offset: 2px; }
.pvMore { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#pvBuy { min-height: 44px; padding: 0 16px; font-size: 15px; border: 0; cursor: pointer; }
#pvBuy[hidden] { display: none; }
#pvSimilar { min-height: 44px; white-space: nowrap; }
#pvSimilar:disabled { cursor: default; }
#pvLink { align-self: flex-start; font-size: 12px; min-height: 24px; }
#pvLink svg { width: 14px; height: 14px; }

/* the sheet */
#browse.sheet #brPrevBack { display: block; position: fixed; inset: 0; z-index: 5; background: rgba(20, 37, 54, 0.45); animation: cardsFadeIn 0.2s ease both; }
#browse.sheet #brPrevBack[hidden] { display: none; }
#browse.sheet #brPrev
{
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: max(44px, 7vh);
	z-index: 6;
	width: auto;
	border-left: 0;
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -10px 40px rgba(var(--shadowRGB), 0.3);
	animation: pvUp 0.24s ease-out both;
	transition: transform 0.2s ease-out;
	touch-action: pan-y;
}
#browse.sheet #brPrev[hidden] { display: none; }
/* Browse's own close would sit straight over the sheet's, dimmed: two X's, one above the other. It goes while the sheet is up (the dim covers the bar anyway) */
#browse.sheet.pv #brClose { visibility: hidden; }
#browse.sheet #brPrev.closing { animation: none; }
@keyframes pvUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { #browse.sheet #brPrev { animation: none; transition: none; } }
#browse.sheet .pvTop { padding: 8px 12px 6px; touch-action: none; }
#browse.sheet .pvGrab { display: block; position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #c9d0d6; }
#browse.sheet .pvActs { touch-action: none; }
#browse.sheet .pvScroll { padding: 0 16px 14px; }
#browse.sheet .pvActs { padding-left: 16px; padding-right: 16px; }
#browse.sheet #pvLink { min-height: 44px; display: inline-flex; align-items: center; }
/* a phone on its side: the photo beside the words, the buttons in one row, so the 360px of height goes to the bike */
html.phone.land #browse.sheet #brPrev { top: 8px; }
html.phone.land #browse.sheet .pvTop { position: absolute; top: 0; right: 0; z-index: 1; padding: 8px 12px 0; }
html.phone.land #browse.sheet .pvGrab { position: fixed; top: 14px; }
html.phone.land #browse.sheet .pvScroll { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 0 18px; align-items: start; padding: 22px 80px 10px 16px; }
html.phone.land #browse.sheet .pvWords { padding-top: 0; }
html.phone.land #browse.sheet .pvName { font-size: 20px; }
html.phone.land #browse.sheet .pvRows dt, html.phone.land #browse.sheet .pvRows dd { padding: 5px 0; }
html.phone.land #browse.sheet .pvActs { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
html.phone.land #browse.sheet .pvUse { flex: 1 1 200px; }
html.phone.land #browse.sheet .pvUseBtn { min-height: 44px; }
html.phone.land #browse.sheet .pvMore { flex-wrap: nowrap; }
