/* nov2 sub banner (homepage, under the hero): "Doorbusters Sub Banner" 2:2631 (1329x322) and "Black friday sub abbner"
   25:10717 (strip 1329x234 + penguins) in the 1920 page 1:43 (stage y 1080..1784); mobile: 33:27294 (351x396) and
   33:27439 (350x523) in the 390 page 33:94 (stage y 915..1910). --u = one design px. */
#nov2-sub {
	container-type: inline-size;
	width: 100%;
	background: #ffffff;
	overflow-x: clip;
}
#nov2-sub .nov2-db,
#nov2-sub .nov2-is { --u: min(1px, (100cqw - 30px) / 1329, 100cqw / 1415); }
/* 100cqw / 1415 (verify pass): the penguins (25:16023, x 255) hang 43px left of the 1329 strip (x 298); with only the
   15px gutter they ran 24px past the viewport at 1200 and overflow-x: clip cut the first one. The strip now keeps 43u
   each side, so the penguins end at the viewport's edge at worst; at 1415 and up nothing changes */
#nov2-sub {
	--su: min(1px, (100cqw - 30px) / 1329, 100cqw / 1415);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(50 * var(--su));
	padding: calc(50 * var(--su)) 0 calc(48 * var(--su));
}
#nov2-sub p, #nov2-sub h2 { margin: 0; }

/* ---- Doorbusters ---- */
#nov2-sub .nov2-db {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	width: calc(1329 * var(--u));
	height: calc(322 * var(--u));
	box-sizing: border-box;
	padding: calc(27 * var(--u)) 0 0 calc(72 * var(--u));
	background-color: #ffca00;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-image: url(../images/sub/db-back.jpg);
	background-image: -webkit-image-set(url("../images/sub/db-back.webp") 1x, url("../images/sub/db-back@2x.webp") 2x);
	background-image: image-set(url("../images/sub/db-back.webp") 1x, url("../images/sub/db-back@2x.webp") 2x);
}
#nov2-sub .nov2-db-head {
	width: calc(443 * var(--u));
	margin-top: calc(58 * var(--u));
}
#nov2-sub .nov2-db-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	/* Figma 43.19px, ink 380px wide (2:2632); the shipped Bouncy Black drew that 426px wide (verify pass), so the size
	   lands on Figma's ink, as the mobile rule does (glyphs 8.43px per px of size + 12 x 5.18 tracking) */
	font-size: calc(38.3 * var(--u));
	line-height: calc(56.17 * var(--u));
	letter-spacing: calc(5.18 * var(--u));
	white-space: nowrap;
	color: #000000;
	-webkit-text-stroke: max(1px, calc(6.91 * var(--u))) #ffffff;
	paint-order: stroke fill;
}
#nov2-sub .nov2-db-t1 { font-size: 1.24em; }
#nov2-sub .nov2-db-t2 { font-size: 1em; color: #900200; }
#nov2-sub .nov2-db-weekly {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: calc(4.9 * var(--u)) 0 0;   /* centred in the 443 group: overhangs 15px each side, as in Figma */
	width: calc(473.1 * var(--u));
	height: calc(34.77 * var(--u));
	background: #000000;
	color: #ffd700;
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	font-size: calc(17.6 * var(--u));   /* lands on Figma's 442.8px ink (2:2634); 18.3 drew 459.5 (verify pass) */
	line-height: calc(34.77 * var(--u));
	letter-spacing: calc(2.75 * var(--u));
	white-space: nowrap;
}
#nov2-sub .nov2-db-weekly-text { margin: 0; color: #ffd700; white-space: nowrap; }
#nov2-sub .nov2-y { color: #ffd700; }
#nov2-sub .nov2-w { color: #ffffff; }
#nov2-sub .nov2-dot {
	display: inline-block;
	width: calc(4.58 * var(--u));
	height: calc(4.58 * var(--u));
	/* Figma draws the dot (2:2677) over the text's double space, taking no width of its own: as an inline box it made
	   the line 8.6px wider than Figma's (verify pass: 468.1 against 443) */
	margin: 0 calc(-2.29 * var(--u));
	border-radius: 50%;
	background: #ffd700;
}
#nov2-sub .nov2-db-right {
	width: calc(799 * var(--u));
	margin-left: calc(15 * var(--u));
}
#nov2-sub .nov2-tabs {
	margin: calc(12 * var(--u)) 0 0 calc(29 * var(--u));
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	font-size: calc(35 * var(--u));
	line-height: calc(38 * var(--u));
	letter-spacing: calc(3 * var(--u));
	color: #000000;
	white-space: pre;
}
#nov2-sub .nov2-tab {
	position: relative;
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	color: #000000;
	cursor: pointer;
}
#nov2-sub .nov2-tab.is-active { color: #900200; }
#nov2-sub .nov2-tab:focus-visible { outline: 2px solid #900200; outline-offset: 4px; }
#nov2-sub .nov2-ring {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(108 * var(--u));
	height: calc(54 * var(--u));
	/* revision (ticket reply, Wenqian): Figma's ring (2:2680) sits 5px right of the price; the client asked for it further
	   left so the price is centred in it on desktop: centred on the price's ink (the tab less its 3px trailing tracking) */
	transform: translate(calc(-50% - 1.5 * var(--u)), calc(-50% - 4 * var(--u)));
	pointer-events: none;
}
#nov2-sub .nov2-tab.is-active .nov2-ring { overflow: hidden; }
#nov2-sub .nov2-ring img { display: block; width: calc(117 * var(--u)); max-width: none; height: auto; margin: calc(-4 * var(--u)) 0 0 calc(-4.5 * var(--u)); }
#nov2-sub .nov2-tab.is-active .nov2-ring { display: block; }
/* Figma's "products" (2:2703): 872..1610 of the 799px column (2:2704 at 825), the left arrow at its start */
#nov2-sub .nov2-db-row {
	align-self: flex-start;
	width: calc(738 * var(--u));
	margin-top: calc(29 * var(--u));
	margin-left: calc(47 * var(--u));
}
#nov2-sub .nov2-arrow {
	flex: 0 0 auto;
	width: calc(28 * var(--u));
	margin-top: calc(54 * var(--u));
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
#nov2-sub .nov2-arrow-box { position: relative; display: block; overflow: hidden; width: calc(28 * var(--u)); height: calc(29 * var(--u)); }
#nov2-sub .nov2-arrow-box img { width: calc(36 * var(--u)); max-width: none; height: auto; margin: calc(-4 * var(--u)) 0 0 calc(-4 * var(--u)); }
#nov2-sub .nov2-arrow-dup { position: absolute; inset: 0; }
#nov2-sub .nov2-prev { margin-left: 0; }
#nov2-sub .nov2-panel-row {
	gap: calc(38 * var(--u));
	/* 10px each side, as Figma: the left arrow ends 900, card 1 starts 914 (its 194 slot at 910); card 3's slot ends
	   1568, the right arrow (7:97) starts 1578. A 38px right margin put the arrow at 1606, half off the yellow panel */
	margin: 0 calc(10 * var(--u)) 0 calc(10 * var(--u));
}
#nov2-sub .nov2-panel-row[hidden] { display: none; }
#nov2-sub .nov2-product { width: calc(194 * var(--u)); color: #000000; }
#nov2-sub .nov2-card { width: 95.876%; aspect-ratio: 186 / 150; margin: 0 auto; overflow: hidden; }
#nov2-sub .nov2-card img { width: 104.301%; max-width: none; height: auto; margin: -2.151% 0 0 -2.151%; }
#nov2-sub .nov2-name {
	display: block;
	margin-top: calc(8 * var(--u));
	width: 100%;
	font-family: 'Lato', sans-serif;
	font-weight: 900;
	font-size: max(10px, calc(14 * var(--u)));
	line-height: 1.2;
	letter-spacing: calc(3 * var(--u));
	color: #000000;
}

/* ---- In-store only ---- */
#nov2-sub .nov2-is {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	width: calc(1329 * var(--u));
	height: calc(234 * var(--u));
	margin-left: calc(5 * var(--u));
	box-sizing: border-box;
	padding-left: calc(140 * var(--u));
	background-color: #900200;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-image: url(../images/sub/is-back.jpg);
	background-image: -webkit-image-set(url("../images/sub/is-back.webp") 1x, url("../images/sub/is-back@2x.webp") 2x);
	background-image: image-set(url("../images/sub/is-back.webp") 1x, url("../images/sub/is-back@2x.webp") 2x);
}
#nov2-sub .nov2-penguins {
	position: absolute;
	left: calc(-47 * var(--u));
	top: calc(92 * var(--u));
	width: calc(274 * var(--u));
	z-index: 2;
	margin: 0;
}
#nov2-sub .nov2-penguins img { width: 100%; height: auto; }
/* Figma's group g11 is the pill's TEXT (25:16021, 13px cap box at 459), the title and the CTA: 459..629. The black
   capsule (25:16020, 33px at 449) is a shape behind the text, not a member, so it hangs 10px out of the column at the
   top and the bottom (negative margins) and the column starts at the text box, as Figma's does */
#nov2-sub .nov2-is-left { width: calc(577.5 * var(--u)); margin-top: calc(37 * var(--u)); }
#nov2-sub .nov2-pill {
	width: calc(222 * var(--u));
	height: calc(33 * var(--u));
	margin-top: calc(-10 * var(--u));
	margin-bottom: calc(-10 * var(--u));
	border-radius: calc(200 * var(--u));
	background: #000000;
	font-family: 'Lato', sans-serif;
	font-weight: 900;
	font-size: calc(18 * var(--u));
	line-height: calc(33 * var(--u));
	letter-spacing: calc(3 * var(--u));
	white-space: nowrap;
	color: #ffffff;
}
#nov2-sub .nov2-is-title {
	margin-top: calc(25 * var(--u));   /* Figma's gap from the pill's text box (472) to the title's (497) */
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	font-size: calc(51.26 * var(--u));
	line-height: 1.17;
	letter-spacing: calc(2.71 * var(--u));
	white-space: nowrap;
	color: #ffca00;
	-webkit-text-stroke: max(1px, calc(2.71 * var(--u))) #000000;
	paint-order: stroke fill;
	text-shadow: calc(2.71 * var(--u)) calc(2.71 * var(--u)) 0 #ffffff;
}
#nov2-sub .nov2-br { display: none; }
#nov2-sub .nov2-th { font-size: 0.645em; vertical-align: 0.42em; line-height: 0; }
#nov2-sub .nov2-is-cta {
	margin-top: calc(27 * var(--u));
	width: calc(235 * var(--u));
	height: calc(45 * var(--u));
	padding: 0;
	border-radius: calc(54 * var(--u));
	background: #ffffff;
	font-size: max(13px, calc(20 * var(--u)));
	line-height: 1;
	color: #000000;
}
#nov2-sub .nov2-is-cta span { color: #000000; }
/* group g12 is Figma's box of its members' TEXT boxes: the two time pills are 385px-wide centred text boxes
   (25:16016 at 957.9, 25:16012 ending 1649.2), so the group runs 957.9..1649.2 (691.4) while the ink is 1058..1560.7.
   The row is that box; the padding keeps the offers where they were (verify pass round 2: left 1046 / width 512) */
#nov2-sub .nov2-is-offers {
	width: calc(691.4 * var(--u));
	margin: calc(56 * var(--u)) 0 0 calc(-57.6 * var(--u));
	padding-left: calc(109.6 * var(--u));   /* verify pass: pill, amounts and "or" each sat 8.7-11px left of Figma's ink centres */
	box-sizing: border-box;
}
#nov2-sub .nov2-offer { flex: 0 0 auto; min-width: 0; }
#nov2-sub .nov2-o1 { width: calc(183.7 * var(--u)); }
#nov2-sub .nov2-o2 { width: calc(206.45 * var(--u)); }
#nov2-sub .nov2-offer-pill {
	width: calc(183.7 * var(--u));
	height: calc(25.8 * var(--u));
	border-radius: 999px;
	background: #ffffff;
	font-family: 'Lato', sans-serif;
	font-weight: 900;
	font-size: calc(18.58 * var(--u));
	line-height: calc(25.8 * var(--u));
	letter-spacing: calc(3.1 * var(--u));
	white-space: nowrap;
	color: #000000;
}
#nov2-sub .nov2-offer-amt {
	margin-top: calc(9.3 * var(--u));
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	font-size: calc(43.41 * var(--u));
	line-height: 1.43;
	letter-spacing: calc(1.74 * var(--u));
	white-space: nowrap;
	color: #ffca00;
}
/* Figma's second line (25:16017, 25:16013): its own 24.83px paragraph at line-height 1.43 under the 43.41px "$5 pays"
   (the mobile rule below, x1.507). Figma's text box is 89px tall (facts-sub 25:16017), not the 62.07 + 35.5 the two
   line boxes add up to: the second line starts 8.57px into the first's box (round 2: -4.1 left it 93.5 tall) */
#nov2-sub .nov2-til { display: block; position: relative; top: 0; margin-top: calc(-8.57 * var(--u)); font-size: 0.572em; line-height: 1.43; }
#nov2-sub .nov2-or {
	flex: 0 0 auto;
	width: calc(51 * var(--u));
	margin: calc(41 * var(--u)) calc(30 * var(--u)) 0 calc(30.3 * var(--u));
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	font-size: calc(35.44 * var(--u));
	line-height: 1.17;
	letter-spacing: calc(2.79 * var(--u));
	color: #ffffff;
}

/* ---- phones and tablets: the 390 mobile frame's stacked strips, scaled from the 351px strip ---- */
@media (max-width: 991px) {
	#nov2-sub { --su: min(1.75px, (100cqw - 39px) / 351); gap: calc(30 * var(--su)); padding: calc(30 * var(--su)) 0 calc(16 * var(--su)); }
	#nov2-sub .nov2-db,
	#nov2-sub .nov2-is { --u: min(1.75px, (100cqw - 39px) / 351); }
	#nov2-sub .nov2-db {
		flex-direction: column;
		align-items: center;
		width: calc(351 * var(--u));
		height: calc(396 * var(--u));
		padding: calc(48 * var(--u)) 0 0;
		overflow: hidden;
		background-image: url(../images/sub/db-back-m.jpg);
		background-image: -webkit-image-set(url("../images/sub/db-back-m.webp") 1x, url("../images/sub/db-back-m@2x.webp") 2x);
		background-image: image-set(url("../images/sub/db-back-m.webp") 1x, url("../images/sub/db-back-m@2x.webp") 2x);
	}
	#nov2-sub .nov2-db-head { flex: 0 0 auto; width: calc(327 * var(--u)); margin: 0 0 0 calc(1 * var(--u)); }
	#nov2-sub .nov2-db-title {
		line-height: calc(46.3 * var(--u));
		letter-spacing: calc(4.27 * var(--u));
		-webkit-text-stroke: max(1px, calc(5.7 * var(--u))) #ffffff;
	}
	/* Figma 35.6px (44.1px "Black Friday"), ink 313px of the 351 strip (33:27403); the shipped Bouncy Black draws
	   that 350px wide, edge to edge, so the size is set to land on Figma's 313px ink */
	#nov2-sub .nov2-db-title { font-size: calc(31 * var(--u)); }
	#nov2-sub .nov2-db-weekly {
		margin: calc(4 * var(--u)) 0 0;
		width: calc(390 * var(--u));
		height: calc(28.67 * var(--u));
		font-size: calc(12.65 * var(--u));   /* Figma 13.09, ink 326.6 (33:27406); 13.09 drew 337.9 in the shipped face (verify pass) */
		line-height: calc(28.67 * var(--u));
		letter-spacing: calc(2.26 * var(--u));
	}
	#nov2-sub .nov2-dot { width: calc(3.77 * var(--u)); height: calc(3.77 * var(--u)); margin: 0 calc(-1.885 * var(--u)); }
	#nov2-sub .nov2-db-right { width: 100%; margin: calc(24.8 * var(--u)) 0 0; }
	#nov2-sub .nov2-tabs {
		margin: calc(9.2 * var(--u)) 0 0 calc(2 * var(--u));
		font-size: calc(23.17 * var(--u));
		line-height: calc(23 * var(--u));
		letter-spacing: calc(1.81 * var(--u));
	}
	#nov2-sub .nov2-ring { width: calc(69.3 * var(--u)); height: calc(34.7 * var(--u)); transform: translate(-50%, calc(-50% - 2.3 * var(--u))); }
	#nov2-sub .nov2-ring img { width: calc(75.1 * var(--u)); margin: calc(-2.6 * var(--u)) 0 0 calc(-2.9 * var(--u)); }
	#nov2-sub .nov2-db-row { align-self: stretch; width: 100%; margin-top: calc(22.8 * var(--u)); margin-left: 0; }
	#nov2-sub .nov2-arrow { width: calc(15 * var(--u)); margin-top: calc(28 * var(--u)); }
	#nov2-sub .nov2-arrow-dup { display: none; }   /* Figma's stacked copies of the left arrow are desktop-only */
	#nov2-sub .nov2-arrow-box { width: calc(15 * var(--u)); height: calc(15.6 * var(--u)); }
	#nov2-sub .nov2-arrow-box img { width: calc(19.3 * var(--u)); margin: calc(-2.1 * var(--u)) 0 0 calc(-2.1 * var(--u)); }
	#nov2-sub .nov2-prev { margin-left: calc(6.8 * var(--u)); }
	#nov2-sub .nov2-panel-row { gap: calc(3.3 * var(--u)); margin: 0 calc(1.5 * var(--u)) 0 calc(1.6 * var(--u)); }
	#nov2-sub .nov2-product { width: calc(98.7 * var(--u)); }
	#nov2-sub .nov2-name {
		margin-top: calc(4.1 * var(--u));
		font-size: max(7px, calc(7.12 * var(--u)));
		line-height: 1.193;
		letter-spacing: calc(1.53 * var(--u));
	}
	#nov2-sub .nov2-is {
		flex-direction: column;
		align-items: center;
		width: calc(350 * var(--u));
		height: calc(523 * var(--u));
		margin-left: 0;
		padding: calc(35 * var(--u)) 0 0;
		background-image: url(../images/sub/is-back-m.jpg);
		background-image: -webkit-image-set(url("../images/sub/is-back-m.webp") 1x, url("../images/sub/is-back-m@2x.webp") 2x);
		background-image: image-set(url("../images/sub/is-back-m.webp") 1x, url("../images/sub/is-back-m@2x.webp") 2x);
	}
	#nov2-sub .nov2-penguins { left: calc(64.8 * var(--u)); top: calc(412.6 * var(--u)); width: calc(219.5 * var(--u)); }
	/* the pill's text box (33:32733) at 501.1, its capsule (33:32732) 33.4 tall around it: 10.15px out each side */
	/* g11 on the 390 frame is 7.2..384.3 (377.1): the pill's text box (33:32733) is wider than the 350 strip; the column
	   is that box, centred on the strip as Figma's is, its members centred in it (verify pass round 2: 21 / 349) */
	#nov2-sub .nov2-is-left { width: calc(377.1 * var(--u)); margin: calc(10.1 * var(--u)) calc(-13.55 * var(--u)) 0; }
	#nov2-sub .nov2-pill {
		width: calc(224.5 * var(--u));
		height: calc(33.4 * var(--u));
		margin-top: calc(-10.15 * var(--u));
		margin-bottom: calc(-10.15 * var(--u));
		font-size: calc(18.2 * var(--u));
		line-height: calc(33.4 * var(--u));
		letter-spacing: calc(3.03 * var(--u));
	}
	#nov2-sub .nov2-is-title {
		margin-top: calc(31.75 * var(--u));   /* Figma's gap 31.8 from the pill's text box */
		font-size: calc(51.84 * var(--u));
		line-height: 1.26;
		letter-spacing: calc(2.73 * var(--u));
		-webkit-text-stroke: max(1px, calc(2.73 * var(--u))) #000000;
		text-shadow: calc(2.73 * var(--u)) calc(2.73 * var(--u)) 0 #ffffff;
	}
	#nov2-sub .nov2-br { display: inline; }
	#nov2-sub .nov2-is-cta { margin-top: calc(20.5 * var(--u)); font-size: calc(20 * var(--u)); }
	/* g12 on the 390 frame is 0..390 (the pills' 255px text boxes, 33:32748 from -34.4, 33:32744 to 417.5, cut at the
	   frame): the row is that box, 20px past each side of the 350 strip, padded so the offers stay at 32.6 */
	#nov2-sub .nov2-is-offers { width: calc(390 * var(--u)); margin: calc(35 * var(--u)) calc(-20 * var(--u)) 0; padding-left: calc(32.6 * var(--u)); }
	#nov2-sub .nov2-o1 { width: calc(121.9 * var(--u)); }
	#nov2-sub .nov2-o2 { width: calc(137 * var(--u)); }
	#nov2-sub .nov2-offer-pill {
		width: calc(121.9 * var(--u));
		height: calc(17.1 * var(--u));
		background: #000000;
		color: #ffffff;
		font-size: calc(12.33 * var(--u));
		line-height: calc(17.1 * var(--u));
		letter-spacing: calc(2.05 * var(--u));
	}
	#nov2-sub .nov2-offer-amt { margin-top: calc(6.2 * var(--u)); font-size: calc(28.8 * var(--u)); letter-spacing: calc(1.16 * var(--u)); }
	/* Figma's second line (33:32749, 33:32745): its own 16.47px paragraph at line-height 1.43; Figma's box is 59px tall
	   (facts-sub-m 33:32749) against the 41.18 + 23.55 line boxes: the second starts 5.73px into the first's */
	#nov2-sub .nov2-til { margin-top: calc(-5.73 * var(--u)); }
	#nov2-sub .nov2-or { width: calc(34 * var(--u)); margin: calc(27.2 * var(--u)) calc(17 * var(--u)) 0 calc(16.5 * var(--u)); font-size: calc(23.51 * var(--u)); letter-spacing: calc(1.85 * var(--u)); }
}
