/* Hosting Deals Hub */
:root {
	--hd-accent: #673de6;
}
.hd-wrap {
	--hd-ink: #1d1e20;
	--hd-muted: #5b5d63;
	--hd-line: #e4e4ea;
	--hd-soft: #f5f3ff;
	--hd-card: #ffffff;
	--hd-radius: 16px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 8px 0 48px;
	color: var(--hd-ink);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
}
.hd-wrap *, .hd-wrap *::before, .hd-wrap *::after { box-sizing: border-box; }
.hd-wrap a { text-decoration: none; box-shadow: none; }
.hd-icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

/* Hide the theme's own page title on deal pages: the plugin prints its own H1. */
body.hd-page .entry-header .entry-title,
body.hd-page h1.entry-title,
body.hd-page h1.page-title,
body.hd-page .hero-section .page-title,
body.hd-page h1.wp-block-post-title { display: none; }

/* Hero */
.hd-hero {
	text-align: center;
	padding: 48px 20px 36px;
	border-radius: var(--hd-radius);
	background:
		radial-gradient(1200px 300px at 50% -40%, color-mix(in srgb, var(--hd-accent) 22%, transparent), transparent),
		var(--hd-soft);
	margin-bottom: 28px;
}
.hd-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hd-accent);
}
.hd-wrap .hd-h1 {
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.15;
	margin: 8px 0 12px;
	color: var(--hd-ink);
	letter-spacing: -.01em;
}
.hd-lead { color: var(--hd-muted); font-size: 18px; max-width: 640px; margin: 0 auto 18px; }
.hd-pill {
	display: inline-block;
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	font-size: 14px;
	color: var(--hd-ink);
}
.hd-pill strong { color: var(--hd-accent); }

/* Filters */
.hd-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 24px; }
.hd-wrap .hd-filter {
	appearance: none;
	border: 1px solid var(--hd-line);
	background: var(--hd-card);
	color: var(--hd-ink);
	border-radius: 999px;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	min-height: 0;
}
.hd-wrap .hd-filter:hover { border-color: var(--hd-accent); color: var(--hd-accent); background: var(--hd-card); }
.hd-wrap .hd-filter.is-active { background: var(--hd-accent); border-color: var(--hd-accent); color: #fff; }

/* Cards */
.hd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.hd-wrap .hd-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	background: var(--hd-card);
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius);
	color: var(--hd-ink);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hd-wrap .hd-card:hover, .hd-wrap .hd-card:focus-visible {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--hd-accent) 45%, var(--hd-line));
	box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--hd-accent) 40%, transparent);
	color: var(--hd-ink);
}
.hd-card[hidden] { display: none; }
.hd-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hd-card-icon, .hd-offer-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px;
	background: var(--hd-soft); color: var(--hd-accent);
}
.hd-badge {
	font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	padding: 4px 9px; border-radius: 999px;
	background: color-mix(in srgb, var(--hd-accent) 12%, transparent); color: var(--hd-accent);
}
.hd-card-cat { font-size: 12px; color: var(--hd-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hd-card-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.hd-card-text { color: var(--hd-muted); font-size: 15px; flex: 1; }
.hd-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--hd-accent); font-size: 15px; }
.hd-card-more .hd-icon { width: 16px; height: 16px; transition: transform .15s ease; }
.hd-card:hover .hd-card-more .hd-icon { transform: translateX(3px); }

/* Steps */
.hd-steps { margin: 48px 0 24px; }
.hd-wrap .hd-h2 { font-size: 24px; line-height: 1.3; margin: 0 0 14px; color: var(--hd-ink); }
.hd-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: hd; }
.hd-steps li {
	counter-increment: hd; margin: 0;
	padding: 18px 18px 18px 64px; position: relative;
	border: 1px solid var(--hd-line); border-radius: var(--hd-radius); background: var(--hd-card);
}
.hd-steps li::before {
	content: counter(hd);
	position: absolute; left: 18px; top: 18px;
	width: 32px; height: 32px; border-radius: 50%;
	background: var(--hd-accent); color: #fff; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.hd-steps li strong { display: block; }
.hd-steps li span { color: var(--hd-muted); font-size: 15px; }

/* Disclosure */
.hd-disclosure {
	display: flex; gap: 10px; align-items: flex-start;
	margin: 32px 0 0; padding: 14px 16px;
	border-radius: 12px; background: #f6f6f8; color: var(--hd-muted); font-size: 14px;
}
.hd-disclosure .hd-icon { margin-top: 2px; }

/* Buttons */
.hd-wrap .hd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 22px; border-radius: 10px;
	background: var(--hd-accent); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.2;
	transition: filter .15s ease, transform .15s ease;
}
.hd-wrap .hd-btn:hover, .hd-wrap .hd-btn:focus-visible { filter: brightness(1.1); color: #fff; transform: translateY(-1px); }
.hd-btn .hd-icon { width: 18px; height: 18px; }
.hd-btn-block { width: 100%; }

/* Offer page */
.hd-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--hd-muted); margin: 0 0 16px; flex-wrap: wrap; }
.hd-wrap .hd-crumbs a { color: var(--hd-accent); }
.hd-offer-hero {
	display: flex; gap: 20px; align-items: flex-start;
	padding: 36px; border-radius: var(--hd-radius); margin-bottom: 32px;
	background:
		radial-gradient(900px 260px at 0% -30%, color-mix(in srgb, var(--hd-accent) 20%, transparent), transparent),
		var(--hd-soft);
}
.hd-offer-hero .hd-offer-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--hd-card); }
.hd-offer-hero .hd-offer-icon .hd-icon { width: 32px; height: 32px; }
.hd-offer-hero .hd-lead { margin: 0 0 20px; }
.hd-offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.hd-offer-main section { margin-bottom: 32px; }
.hd-offer-main p { margin: 0; color: var(--hd-ink); }
.hd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hd-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.hd-list .hd-icon { color: var(--hd-accent); margin-top: 3px; width: 18px; height: 18px; }
.hd-deal-box {
	position: sticky; top: 24px;
	padding: 24px; border-radius: var(--hd-radius);
	border: 2px solid var(--hd-accent); background: var(--hd-card); text-align: center;
}
.hd-deal-off { display: block; font-size: 34px; font-weight: 800; color: var(--hd-accent); line-height: 1.1; }
.hd-deal-name { font-weight: 700; font-size: 18px; margin: 6px 0 4px; }
.hd-deal-note { color: var(--hd-muted); font-size: 14px; margin: 0 0 16px; }
.hd-deal-small { color: var(--hd-muted); font-size: 12px; margin: 10px 0 0; }
.hd-related { margin-top: 16px; }
.hd-all { text-align: center; margin: 20px 0 0; }
.hd-wrap .hd-all a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--hd-accent); }

@media (max-width: 860px) {
	.hd-offer-grid { grid-template-columns: 1fr; }
	.hd-deal-box { position: static; }
}
@media (max-width: 600px) {
	.hd-hero { padding: 32px 16px 24px; }
	.hd-offer-hero { flex-direction: column; padding: 24px 18px; }
	.hd-lead { font-size: 16px; }
	.hd-grid { grid-template-columns: 1fr; }
}

/* Menu badge */
.hd-menu-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: .72em;
	font-weight: 700;
	line-height: 1.4;
	vertical-align: middle;
	background: var(--hd-accent);
	color: #fff;
}
@media (prefers-reduced-motion: reduce) {
	.hd-wrap .hd-card, .hd-wrap .hd-btn, .hd-card-more .hd-icon { transition: none; }
}
