/* BIKOTIC - THE DEALS PAGE (api/deals.js; job deals-page, 26 Nov 2026). The brand guide's light layout: the blue
   gradient header, a white page, navy footer. Oswald for headings and labels, Plex for reading, JetBrains Mono for
   every number. ORANGE IS ONLY THE BUY BUTTON (.dlBuy): nothing else on this page may use it. No sage, no plum.
   A page of its own: it loads none of the comparison app's styles, so the consent box's rules are repeated at the end
   (the same look as buy.css THE CONSENT BOX: change both together). */

:root
{
	--ui: #2B4A66;
	--uiLine: #c5d3e0;
	--head: "Oswald", "Arial Narrow", sans-serif;
	--body: "IBM Plex Sans", system-ui, sans-serif;
	--data: "JetBrains Mono", ui-monospace, monospace;
}
html { -webkit-text-size-adjust: 100%; }
body
{
	margin: 0;
	background: var(--bk-white);
	color: var(--bk-text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
}
.num { font-family: var(--data); font-weight: 500; }
.dlIn { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
a { color: var(--bk-blue); }
a:focus-visible, button:focus-visible { outline: 2px solid #142536; outline-offset: 2px; }

/* ---------------------------------------------------------------- the header: the hero gradient, the white logo */
.dlTop { background: var(--bk-hero-gradient); color: var(--bk-text-on-dark); padding: 0 0 36px; }
.dlBar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.dlLogo { display: inline-flex; align-items: center; min-height: 44px; line-height: 0; }
.dlLogo img { display: block; width: 110px; height: auto; }
.dlNav
{
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--head);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--bk-mist);
}
.dlNav:hover { color: #ffffff; }
.dlTop a:focus-visible { outline-color: #ffffff; }
h1
{
	margin: 28px 0 0;
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp(40px, 6vw, 64px);
	line-height: 1.02;
	text-transform: uppercase;
	color: #ffffff;
}
.dlIntro { margin: 16px 0 0; max-width: 720px; font-size: 19px; line-height: 1.6; color: var(--bk-text-on-dark); }

/* ---------------------------------------------------------------- the notices: Ad, tracking, prices checked */
.dlMain { padding: 24px 0 56px; }
.dlNotice { padding: 14px 16px; background: var(--bk-panel); border: 1px solid var(--bk-border); border-radius: 10px; }
.dlNotice p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bk-text); }
.dlNotice p + p { margin-top: 4px; }
.dlAd, .dlAdTag
{
	display: inline-block;
	padding: 1px 7px;
	border-radius: 4px;
	background: var(--ui);
	color: #ffffff;
	font-family: var(--head);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.dlAd { margin-right: 2px; }
.dlState { color: var(--bk-text-grey); }
.dlChange
{
	margin: -10px 0 -10px 2px;
	padding: 10px 6px;
	min-height: 44px;
	font: inherit;
	color: var(--ui);
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.dlChecked { color: var(--bk-text-grey); }

/* ---------------------------------------------------------------- the type buttons and the sorts: pills in a strip */
.dlStrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.dlSorts { margin-top: 12px; }
.dlStripWord { margin-right: 4px; font-family: var(--head); font-weight: 500; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--bk-text-grey); }
.dlPill
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	min-height: 44px;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid var(--uiLine);
	border-radius: 22px;
	background: #ffffff;
	color: var(--ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}
.dlPill .num { font-size: 13px; color: var(--bk-text-grey); }
.dlPill:hover { border-color: var(--ui); }
.dlPill.on { background: var(--ui); border-color: var(--ui); color: #ffffff; }
.dlPill.on .num { color: var(--bk-mist); }

/* ---------------------------------------------------------------- a group and its cards */
.dlGroup { margin-top: 40px; }
.dlGroup h2
{
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--bk-navy);
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp(26px, 3.2vw, 34px);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--bk-navy);
}
.dlGroup h2 .num { margin-left: 6px; font-size: 16px; color: var(--bk-text-grey); vertical-align: 0.25em; }
.dlGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.dlCard
{
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #ffffff;
	border: 1px solid var(--bk-border);
	border-radius: 12px;
	overflow: hidden;
}
/* THE SHOP'S PHOTO, UNALTERED (10 Nov 2026): fitted whole into the box, never cropped (contain, 16px in from every
   side so the card's corners can't clip it), no filter, nothing laid over it; its credit sits UNDER it */
.dlPhoto { margin: 0; }
.dlPhotoBox { position: relative; aspect-ratio: 4 / 3; background: #ffffff; }
.dlPhotoBox img { position: absolute; top: 16px; left: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.dlPhotoBox.none { display: flex; align-items: center; justify-content: center; background: var(--bk-panel); }
.dlPhotoBox.none span { font-family: var(--head); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bk-text-grey); }
.dlCredit { margin: 0; padding: 2px 16px 0; font-size: 12px; line-height: 1.4; color: var(--bk-text-grey); }
.dlWords { flex: 1; padding: 12px 16px 4px; min-width: 0; }
.dlWords p { margin: 0; }
.dlShop { font-family: var(--head); font-weight: 500; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--bk-text-grey); }
.dlName { margin: 2px 0 0; font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--bk-text); overflow-wrap: anywhere; }
/* THE PRICES, APART (job deals-badges, 26 Nov 2026): the reference price on its own line, its figure struck through;
   the price now under it, big. THE SAME COLOUR for both: only weight and size tell them apart, never a second colour */
.dlRef { margin-top: 10px !important; font-size: 15px; line-height: 1.3; font-weight: 400; color: var(--bk-text); }
.dlRef s { font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.dlNow { margin-top: 2px !important; font-family: var(--data); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--bk-text); }
.dlFact { margin-top: 6px !important; font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--bk-blue); }
/* THE BADGE: the saving, bold, in the card's top-left corner. Navy with white words (never orange: that is the buy
   button's alone). It sits in a band of its own above the photo (.badged .dlPhoto's padding), so it can never cover
   the product, and nothing is laid over a shop's photo. Its words are one line that never breaks */
.dlCard { position: relative; }
.dlCard.badged .dlPhoto { padding-top: 34px; }
.dlBadge
{
	position: absolute;
	top: 12px;
	left: 12px;
	max-width: calc(100% - 24px);
	margin: 0 !important;
	padding: 5px 12px 6px;
	box-sizing: border-box;
	border-radius: 6px;
	background: var(--bk-navy);
	color: #ffffff;
	font-family: var(--head);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	pointer-events: none;
}
.dlBadge .num { font-weight: 700; letter-spacing: 0; }
/* words only a screen reader hears */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dlStale { margin-top: 4px !important; font-size: 13px; color: var(--bk-text-grey); }
/* the picker's own line, labelled "Bikotic:", the words as typed: a quiet blue rule down its left */
.dlOwn { margin-top: 10px !important; padding: 2px 0 2px 12px; border-left: 3px solid var(--bk-blue); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.dlOwnTag { font-family: var(--head); font-weight: 500; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--bk-blue); }
.dlBike { margin-top: 10px !important; font-size: 14px; line-height: 1.45; color: var(--bk-text-grey); }
.dlCompare { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-right: 6px; font-weight: 600; font-size: 15px; color: var(--bk-blue); }
.dlBikeNote { display: block; }
.dlAct { margin: 0; padding: 12px 16px 16px; }
/* THE BUY BUTTON: orange, and the only orange here. White words, semi-bold; its small "Ad" is white on the button */
.dlBuy
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 10px 16px;
	box-sizing: border-box;
	border-radius: 8px;
	background: var(--bk-buy);
	color: var(--bk-buy-text);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.dlBuy:hover { filter: brightness(1.1); }
.dlBuyEnd { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.dlAdTag { background: #ffffff; color: var(--bk-navy); font-size: 11px; padding: 0 5px; }

.dlNone { margin: 24px 0 8px; font-size: 19px; }
.dlPlain { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------------------------------------------------------------- the footer: navy */
.dlFoot { background: var(--bk-navy); color: var(--bk-text-grey-on-dark); padding: 22px 0 26px; }
.dlFoot p { margin: 0; font-size: 14px; }
.dlFoot a { display: inline-block; padding: 12px 0; margin-left: 8px; color: var(--bk-mist); }

/* ---------------------------------------------------------------- phones: one column; the pills in strips that scroll
   sideways inside themselves (the page never does) */
@media (max-width: 760px)
{
	.dlIn { padding: 0 16px; }
	.dlTop { padding-bottom: 24px; }
	.dlBar { min-height: 60px; }
	h1 { margin-top: 16px; }
	.dlIntro { font-size: 17px; margin-top: 12px; }
	.dlMain { padding-top: 16px; }
	.dlStrip
	{
		flex-wrap: nowrap;
		margin-left: -16px;
		margin-right: -16px;
		padding: 2px 16px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.dlStrip::-webkit-scrollbar { display: none; }
	.dlStripWord { flex: none; }
	.dlGroup { margin-top: 32px; }
	.dlGrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ---------------------------------------------------------------- THE CONSENT BOX: as buy.css has it, rule for rule */
html.consentUp, html.consentUp body { overflow: hidden; }
#consentBar
{
	position: fixed;
	inset: 0;
	z-index: 850;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	font-family: var(--body);
	color: #141414;
}
#consentBar[hidden] { display: none; }
.cbBack { position: absolute; inset: 0; background: rgba(20, 37, 54, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cbBox
{
	position: relative;
	width: 100%;
	max-width: 440px;
	padding: 20px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid var(--uiLine);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(20, 37, 54, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08);
	outline: none;
}
.cbText { margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.cbActs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cbActs button
{
	min-height: 48px;
	padding: 0 14px;
	font-family: var(--body);
	font-weight: 600;
	font-size: 16px;
	color: var(--ui);
	background: #ffffff;
	border: 1px solid var(--ui);
	border-radius: 8px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.cbActs button:hover { background: var(--ui); color: #ffffff; }
.cbPrivacy { display: inline-block; margin-top: 6px; padding: 12px 0; font-size: 14px; line-height: 20px; color: var(--ui); text-decoration: underline; }
@media (max-height: 480px)
{
	.cbBox { padding: 14px 16px; }
	.cbText { margin-bottom: 10px; font-size: 15px; }
	.cbActs button { min-height: 44px; }
	.cbPrivacy { margin-top: 2px; }
}
