:root {
	--red: #e63946;
	--yellow: #ffb703;
	--dark: #1d1d1d;
	--bg: #fff8f0;
	--card: #ffffff;

	--header-left: #18324a;
	--header-right: #28577a;
	--footer-left: #101820;
	--footer-right: #18232d;
}


* {
	box-sizing: border-box;
}


html {
	-webkit-text-size-adjust: 100%;
}


body {
	margin: 0;

	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Arial,
		sans-serif;

	background: var(--bg);

	color: var(--dark);

	-webkit-font-smoothing: antialiased;
}


/* =========================================================
   HEADER
   ========================================================= */

header.hero {
	background:
		linear-gradient(
			135deg,
			var(--header-left),
			var(--header-right)
		);

	color: #fff;

	padding: 40px 20px 30px;

	text-align: center;

	box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}


header.hero h1 {
	margin: 0 0 6px;

	font-size: clamp(1.5rem, 5vw, 2.2rem);

	letter-spacing: -0.5px;
}


.hero-inner {
	max-width: 1100px;

	margin: 0 auto;

	display: flex;

	align-items: center;

	gap: 18px;
}


/* =========================================================
   CLICKABLE HEADER LOGO
   ========================================================= */

.hero-logo-link {
	display: block;

	flex-shrink: 0;

	width: 110px;

	height: 110px;

	text-decoration: none;

	border: 0;

	outline-offset: 4px;
}


.hero-logo-link:focus-visible {
	outline: 2px solid #fff;
}


.hero-logo {
	display: block;

	width: 110px;

	height: 110px;

	object-fit: contain;

	background: transparent !important;

	border: none !important;

	box-shadow: none !important;

	padding: 0 !important;
}


.hero-logo-link:hover .hero-logo {
	transform: scale(1.025);
}


.hero-logo {
	transition: transform 0.15s ease;
}


.hero-text {
	flex: 1;

	text-align: center;
}


/*
 * Same width as the logo.
 * This keeps the text perfectly centred.
 */
.hero-spacer {
	flex-shrink: 0;

	width: 110px;
}


.sr-only {
	position: absolute;

	width: 1px;

	height: 1px;

	padding: 0;

	margin: -1px;

	overflow: hidden;

	clip: rect(0,0,0,0);

	white-space: nowrap;

	border: 0;
}


header.hero p {
	margin: 0;

	opacity: 0.95;

	font-size: clamp(0.9rem, 3vw, 1.05rem);
}


.hero-stats {
	display: flex;

	flex-wrap: wrap;

	justify-content: center;

	gap: 8px;

	margin-top: 14px;

	font-size: 0.82rem;

	opacity: 0.9;
}


.hero-stats strong {
	font-weight: 800;
}


/* =========================================================
   ADS
   ========================================================= */

.ad-slot {
	max-width: 728px;

	margin: 18px auto;

	text-align: center;

	overflow: hidden;
}


.ad-slot-infeed {
	grid-column: 1 / -1;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.wrap {
	max-width: 1100px;

	margin: 0 auto;

	padding: 24px 16px 60px;
}


.toolbar {
	margin: 24px 0 30px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box {
	display: flex;

	justify-content: center;

	margin-bottom: 16px;
}


.search-box input[type=search] {
	width: 100%;

	max-width: 420px;

	padding: 10px 16px;

	border: 1px solid #ddd;

	border-radius: 999px;

	font-size: 0.95rem;

	background: #fff;

	box-shadow: 0 1px 3px rgba(0,0,0,0.08);

	-webkit-appearance: none;
}


.search-box input[type=search]:focus {
	outline: 2px solid var(--red);

	outline-offset: 1px;
}


/* =========================================================
   FILTERS
   ========================================================= */

.filters {
	display: flex;

	flex-wrap: wrap;

	gap: 8px;

	justify-content: center;
}


.filter-pill {
	border: none;

	background: #fff;

	color: var(--dark);

	padding: 8px 16px;

	border-radius: 999px;

	font-weight: 600;

	font-size: 0.9rem;

	cursor: pointer;

	box-shadow: 0 1px 3px rgba(0,0,0,0.15);

	transition: transform 0.1s ease;

	-webkit-tap-highlight-color: transparent;

	display: inline-block;

	text-decoration: none;
}


.filter-pill .count {
	font-weight: 500;

	opacity: 0.65;

	font-size: 0.82em;
}


.filter-pill:hover {
	transform: translateY(-1px);
}


.filter-pill.active {
	background: var(--dark);

	color: #fff;
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.no-results {
	text-align: center;

	color: #777;

	padding: 30px 20px;
}


/* =========================================================
   LOAD MORE
   ========================================================= */

.load-more-wrap {
	display: flex;

	justify-content: center;

	margin-top: 28px;
}


.load-more {
	border: none;

	background: var(--dark);

	color: #fff;

	padding: 12px 24px;

	border-radius: 999px;

	font-weight: 700;

	font-size: 0.9rem;

	cursor: pointer;

	-webkit-tap-highlight-color: transparent;
}


.load-more:hover {
	background: var(--red);
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
	display: grid;

	grid-template-columns:
		repeat(
			auto-fill,
			minmax(240px, 280px)
		);

	gap: 18px;

	justify-content: center;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
	background: var(--card);

	border-radius: 12px;

	padding: 18px;

	box-shadow: 0 2px 8px rgba(0,0,0,0.08);

	display: flex;

	flex-direction: column;

	gap: 10px;

	position: relative;

	border-top: 4px solid var(--red);

	min-width: 0;
}


.card .cat-tag {
	display: inline-block;

	align-self: flex-start;

	color: #fff;

	font-size: 0.72rem;

	font-weight: 700;

	text-transform: uppercase;

	letter-spacing: 0.4px;

	padding: 3px 10px;

	border-radius: 999px;
}


.card .badge {
	position: absolute;

	top: -10px;

	right: 14px;

	background: var(--yellow);

	color: #1d1d1d;

	font-size: 0.72rem;

	font-weight: 800;

	padding: 4px 10px;

	border-radius: 999px;

	box-shadow: 0 2px 5px rgba(0,0,0,0.2);

	text-transform: uppercase;
}


.card h3 {
	margin: 0;

	font-size: 1.15rem;

	word-break: break-word;
}


.card h3 .fav,
.deal-card h1 .fav {
	vertical-align: -3px;

	margin-right: 6px;

	border-radius: 3px;
}


.card-title-link {
	color: inherit;

	text-decoration: none;
}


.card-title-link:hover {
	text-decoration: underline;
}


.card.featured {
	box-shadow:
		0 4px 14px rgba(230,57,70,0.25);

	border-width: 2px;
}


.card .ribbon {
	position: absolute;

	top: -10px;

	left: 14px;

	background: var(--dark);

	color: #fff;

	font-size: 0.72rem;

	font-weight: 800;

	padding: 4px 10px;

	border-radius: 999px;

	box-shadow: 0 2px 5px rgba(0,0,0,0.2);

	text-transform: uppercase;
}


/* =========================================================
   SINGLE DEAL PAGE
   ========================================================= */

.deal-page {
	max-width: 640px;

	margin: 0 auto;
}


.deal-breadcrumb {
	font-size: 0.85rem;

	color: #777;

	margin-bottom: 16px;
}


.deal-breadcrumb a {
	color: #777;
}


.deal-card {
	background: var(--card);

	border-radius: 12px;

	padding: 28px;

	box-shadow: 0 2px 8px rgba(0,0,0,0.08);

	position: relative;

	border-top: 4px solid var(--red);
}


.deal-card h1 {
	font-size: 1.5rem;

	margin: 10px 0 4px;
}


.deal-host {
	font-size: 0.8rem;

	color: #888;

	margin: 0 0 12px;
}


.cta-large {
	display: inline-block;

	width: auto;

	padding: 14px 28px;

	margin-top: 10px;
}


.deal-more {
	text-align: center;

	margin-top: 20px;
}


.card p.desc {
	margin: 0;

	font-size: 0.9rem;

	color: #555;

	flex-grow: 1;
}


.card a.cta {
	display: block;

	text-align: center;

	background: var(--dark);

	color: #fff;

	text-decoration: none;

	padding: 12px 14px;

	border-radius: 8px;

	font-weight: 700;

	font-size: 0.9rem;

	-webkit-tap-highlight-color: transparent;
}


.card a.cta:hover,
.card a.cta:active {
	background: var(--red);
}


.empty {
	text-align: center;

	color: #777;

	padding: 60px 20px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
	background:
		linear-gradient(
			135deg,
			var(--footer-left),
			var(--footer-right)
		);

	color: #ccc;

	margin-top: 20px;

	border-top: 3px solid #28577a;
}


.site-footer-inner {
	max-width: 1100px;

	margin: 0 auto;

	padding: 40px 20px 24px;

	display: flex;

	flex-wrap: wrap;

	gap: 32px;

	justify-content: space-between;
}


.footer-col {
	flex: 1 1 200px;

	min-width: 160px;

	display: flex;

	flex-direction: column;

	gap: 8px;
}


.footer-brand {
	flex: 1 1 260px;
}


.footer-brand-name {
	color: #fff;

	font-weight: 800;

	font-size: 1.1rem;
}


.footer-tagline {
	margin: 0;

	font-size: 0.85rem;

	color: #999;

	max-width: 320px;
}


.footer-col-heading {
	color: #fff;

	font-weight: 700;

	font-size: 0.78rem;

	text-transform: uppercase;

	letter-spacing: 0.5px;

	margin-bottom: 2px;
}


.footer-col a {
	color: #ccc;

	text-decoration: none;

	font-size: 0.88rem;
}


.footer-col a:hover {
	color: #fff;

	text-decoration: underline;
}


.footer-share {
	display: flex;

	gap: 10px;

	margin-top: 2px;
}


.share-btn {
	display: inline-flex;

	align-items: center;

	justify-content: center;

	width: 34px;

	height: 34px;

	border-radius: 50%;

	background: rgba(255,255,255,0.08);

	color: #ccc;

	border: none;

	cursor: pointer;

	-webkit-tap-highlight-color: transparent;

	transition:
		background 0.15s ease,
		color 0.15s ease;
}


.share-btn:hover {
	background: var(--red);

	color: #fff;
}


.footer-copy-note {
	font-size: 0.78rem;

	color: #4ade80;

	margin-top: 2px;
}


.footer-bottom {
	border-top:
		1px solid rgba(255,255,255,0.1);

	text-align: center;

	padding: 16px 20px;

	color: #888;

	font-size: 0.78rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 700px) {

	.grid {
		grid-template-columns:
			repeat(
				auto-fill,
				minmax(210px, 260px)
			);

		gap: 14px;
	}


	header.hero {
		padding: 32px 16px 24px;
	}


	.hero-logo-link {
		width: 95px;

		height: 95px;
	}


	.hero-logo {
		width: 95px;

		height: 95px;
	}


	.hero-spacer {
		width: 95px;
	}
}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 480px) {

	.grid {
		grid-template-columns: 1fr;
	}


	.wrap {
		padding: 18px 14px 40px;
	}


	.hero-inner {
		flex-direction: column;

		gap: 10px;
	}


	.hero-logo-link {
		width: 90px;

		height: 90px;
	}


	.hero-logo {
		width: 90px;

		height: 90px;
	}


	.hero-spacer {
		display: none;
	}


	.filters {
		gap: 6px;

		margin: 18px 0 22px;
	}


	.filter-pill {
		padding: 7px 13px;

		font-size: 0.85rem;
	}


	.card {
		padding: 16px;
	}


	.site-footer-inner {
		flex-direction: column;

		gap: 24px;

		padding: 32px 16px 16px;
	}
}