/*
 * /deals/ -- SEO Hub #16117.
 *
 * Its own stylesheet, loaded only on these pages, same as the TTFB test. The
 * site's main.min.css is a built Bootstrap 3 bundle and adding to it means a
 * rebuild on every copy change, which is how a stylesheet ends up carrying a
 * year of dead rules.
 *
 * Type scale: body text is 18px (Avi, 2026-10-13, "all the 16px fonts, make
 * 18px"). Every other size moved up the same curve to the nearest whole pixel,
 * rather than only changing the one rule: bumping the body alone leaves the
 * card labels and meta lines looking shrunken beside it. Whole pixels by hand,
 * not a multiplier, because multiplying gives you 14.6px and 38.2px.
 *
 * Every selector is namespaced under .deals-* or .deal-* so nothing here can
 * reach the detector, the blog or the nav. Bootstrap 3 is already on the page
 * and its grid is not used: the card grid is flexbox, because the number of
 * cards per row changes per category and Bootstrap's fixed columns would need a
 * clearfix every nth card.
 */

.deals-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 15px 60px;
	color: #2b3038;
	font-size: 18px;
	line-height: 1.65;
}

/* ---------- breadcrumbs ---------- */

.deals-breadcrumbs ol {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: 15px;
	color: #6b7280;
}

.deals-breadcrumbs li {
	display: inline;
}

.deals-breadcrumbs li + li:before {
	content: "›";
	margin: 0 7px;
	color: #b6bcc5;
}

.deals-breadcrumbs a {
	color: #6b7280;
	text-decoration: none;
	border-bottom: 1px solid #dfe3e8;
}

.deals-breadcrumbs a:hover {
	color: #00adb5;
}

/* ---------- hero ---------- */

.deals-hero {
	border-bottom: 1px solid #e8ebee;
	padding-bottom: 26px;
	margin-bottom: 32px;
}

.deals-wrap h1 {
	font-size: 38px;
	line-height: 1.22;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1b2027;
}

.deals-sub {
	font-size: 19px;
	max-width: 760px;
	margin: 0 0 18px;
	color: #3d434c;
}

.deals-stats {
	font-size: 16px;
	color: #4b5563;
	background: #f4f7f8;
	border-left: 3px solid #00adb5;
	padding: 10px 14px;
	margin: 0 0 18px;
}

.deals-stats strong {
	color: #1b2027;
}

/* The disclosure is required to be readable, not decorative, so it gets real
   contrast rather than the grey small print this normally becomes. */
.deals-disclosure {
	font-size: 16px;
	color: #4b5563;
	background: #fffaf2;
	border: 1px solid #f2e2c8;
	border-radius: 5px;
	padding: 12px 15px;
	margin: 0;
	max-width: 820px;
}

/* ---------- sections ---------- */

.deals-section {
	margin: 0 0 44px;
}

.deals-wrap h2 {
	font-size: 28px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 12px;
	color: #1b2027;
}

.deals-wrap h3 {
	font-size: 20px;
	line-height: 1.35;
	font-weight: 600;
	margin: 22px 0 8px;
	color: #1b2027;
}

.deals-section-intro {
	max-width: 760px;
	margin: 0 0 20px;
	color: #4b5563;
}

.deals-wrap ul {
	max-width: 800px;
	padding-left: 22px;
}

.deals-wrap li {
	margin-bottom: 9px;
}

.deals-wrap a {
	color: #0b8e95;
}

/* ---------- the card grid ---------- */

.deal-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -9px;
}

.deal-card {
	flex: 1 1 340px;
	/* flex-basis plus max-width rather than a percentage: a lone card in a
	   category should not stretch to the full 1100px and look broken. */
	max-width: 540px;
	margin: 0 9px 18px;
	border: 1px solid #e3e7eb;
	border-radius: 7px;
	background: #fff;
	padding: 18px 18px 14px;
	display: flex;
	flex-direction: column;
}

.deal-card.is-live {
	border-color: #bfe3e5;
	box-shadow: 0 1px 3px rgba(0, 173, 181, 0.12);
}

/* An ended or not-yet-announced offer stays on the page by design and is simply
   quieter. It is never hidden: the page keeps the links and rankings it earned. */
.deal-card.is-expired,
.deal-card.is-pending {
	background: #fcfcfd;
}

/* Announced but not open yet. Deliberately closer to live than to expired: in
   November this is the state most of the list is in, and it is useful news. */
.deal-card.is-upcoming {
	border-color: #d5def2;
}

.deal-dates-soon {
	color: #3f5ba8;
	font-weight: 600;
}

.deal-card-head {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
}

.deal-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	margin-right: 12px;
	flex: 0 0 auto;
}

.deal-card-title {
	flex: 1 1 auto;
	min-width: 0;
}

.deal-vendor {
	font-size: 21px !important;
	font-weight: 700;
	margin: 0 !important;
	color: #1b2027;
}

.deal-meta {
	font-size: 14px;
	color: #7b828c;
	margin: 3px 0 0;
}

.deal-meta span + span:before {
	content: "·";
	margin: 0 6px;
}

.deal-flag {
	flex: 0 0 auto;
	margin-left: 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 3px 8px;
	border-radius: 3px;
	white-space: nowrap;
}

.deal-flag-live {
	background: #e3f6f7;
	color: #06767c;
}

.deal-flag-expired {
	background: #f1f2f4;
	color: #6b7280;
}

.deal-flag-upcoming {
	background: #eef2fb;
	color: #3f5ba8;
}

.deal-flag-pending {
	background: #f7f3e8;
	color: #8a7640;
}

.deal-headline {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 10px;
	color: #1b2027;
}

.deal-headline-muted {
	font-weight: 400;
	color: #6b7280;
}

/* The vendor's banner. Full card width, its own aspect ratio kept: these come
   in at whatever size the vendor's marketing team exported, usually 1200x628,
   and forcing a height would letterbox or crop somebody's artwork. */
.deal-banner {
	margin: 0 0 12px;
}

.deal-banner img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.deal-blurb {
	font-size: 16px;
	color: #4b5563;
	margin: 0 0 12px;
}

.deal-terms {
	font-size: 16px;
	margin: 0 0 12px;
	border-top: 1px solid #eef1f3;
	padding-top: 10px;
}

.deal-terms summary {
	cursor: pointer;
	font-weight: 600;
	color: #0b8e95;
	font-size: 15px;
}

.deal-terms p {
	margin: 9px 0 0;
	color: #4b5563;
}

/* Pushes the facts and the button to the bottom so cards of different text
   lengths still line their buttons up across a row. */
.deal-card-foot {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #eef1f3;
}

.deal-facts {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 11px;
}

.deal-facts span {
	display: inline-block;
	margin-right: 12px;
}

.deal-dates {
	color: #06767c;
	font-weight: 600;
}

.deal-code code {
	background: #f1f4f5;
	border: 1px dashed #c3cbd2;
	border-radius: 3px;
	padding: 1px 6px;
	font-size: 14px;
	color: #1b2027;
}

.deal-code-none {
	color: #7b828c;
}

/* The last-checked line is the point of the whole module, so it is legible
   rather than fine print, and it changes colour once it is out of date. */
.deal-verified {
	color: #4b5563;
}

.deal-verified.is-stale {
	color: #a3690f;
}

.deal-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.deal-btn {
	display: inline-block;
	background: #ff5722;
	color: #fff !important;
	font-weight: 600;
	font-size: 16px;
	padding: 9px 18px;
	border-radius: 4px;
	text-decoration: none !important;
	margin-right: 14px;
}

.deal-btn:hover {
	background: #e94d1c;
	color: #fff !important;
}

.deal-btn-quiet {
	background: #eef1f3;
	color: #41474f !important;
}

.deal-btn-quiet:hover {
	background: #e2e6ea;
	color: #41474f !important;
}

.deal-link {
	font-size: 15px;
}

/* ---------- the "how to tell a real discount" block ---------- */

.deals-record {
	background: #f7f9fa;
	border: 1px solid #e6eaed;
	border-radius: 7px;
	padding: 24px 24px 10px;
}

.deals-record > p,
.deals-record ul {
	max-width: 800px;
}

.deals-always {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	max-width: 620px;
}

.deals-always li {
	display: flex;
	align-items: baseline;
	padding: 7px 0;
	border-bottom: 1px solid #e9edef;
	margin: 0;
	font-size: 17px;
}

.deals-always-cat {
	margin-left: auto;
	padding-left: 12px;
	font-size: 15px;
	color: #6b7280;
}

.deals-always-years {
	flex: 0 0 90px;
	text-align: right;
	font-size: 15px;
	color: #7b828c;
	font-variant-numeric: tabular-nums;
}

/* ---------- FAQ ---------- */

.deals-faq-item {
	max-width: 820px;
	margin-bottom: 4px;
}

.deals-faq-item h3 {
	margin-top: 20px;
}

.deals-faq-item p {
	margin: 0;
	color: #3d434c;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
	.deals-wrap {
		padding: 14px 13px 44px;
		font-size: 17px;
	}

	.deals-wrap h1 {
		font-size: 29px;
	}

	.deals-wrap h2 {
		font-size: 24px;
	}

	.deal-grid {
		margin: 0;
	}

	.deal-card {
		flex: 1 1 100%;
		max-width: 100%;
		margin: 0 0 14px;
	}

	.deals-record {
		padding: 18px 15px 6px;
	}

	/* The stacked rows read better than a squeezed three-column row. */
	.deals-always li {
		display: block;
	}

	.deals-always-cat,
	.deals-always-years {
		display: inline-block;
		margin-left: 0;
		padding-left: 0;
		text-align: left;
		flex: none;
	}

	.deals-always-cat:after {
		content: " ·";
		color: #b6bcc5;
	}

	.deal-btn {
		display: block;
		text-align: center;
		margin-right: 0;
		margin-bottom: 9px;
		width: 100%;
	}
}
