/**
 * Mudde AI — Mac buying guides hub.
 *
 * Scoped to .mudde-guides-hub so it cannot affect other pages.
 */

.mudde-guides-hub {
	--mg-navy: var(--theme-palette-color-4, #192a3d);
	--mg-text: var(--theme-palette-color-3, #3a4f66);
	--mg-muted: #5f7389;
	--mg-blue: var(--theme-palette-color-1, #2872fa);
	--mg-blue-strong: var(--theme-palette-color-2, #1559ed);
	--mg-border: var(--theme-palette-color-5, #e1e8ed);
	--mg-soft: var(--theme-palette-color-6, #f2f5f7);
	--mg-white: var(--theme-palette-color-8, #fff);

	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	color: var(--mg-text);
}

.mudde-guides-hub *,
.mudde-guides-hub *::before,
.mudde-guides-hub *::after {
	box-sizing: border-box;
}

.mudde-guides-lead {
	max-width: 72ch;
	margin: 0 0 24px;
	color: var(--mg-text);
	font-size: clamp(1rem, 1.3vw, 1.13rem);
	line-height: 1.7;
}

.mudde-guides-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 24px;
	margin-bottom: 40px;
	padding: 18px 22px;
	background: linear-gradient(90deg, rgba(40, 114, 250, 0.08), rgba(40, 114, 250, 0.02));
	border: 1px solid rgba(40, 114, 250, 0.18);
	border-radius: 16px;
}

.mudde-guides-note div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 68ch;
}

.mudde-guides-note strong {
	color: var(--mg-navy);
	font-size: 0.98rem;
}

.mudde-guides-note span {
	color: var(--mg-text);
	font-size: 0.92rem;
	line-height: 1.5;
}

.mudde-guides-note > a {
	flex: 0 0 auto;
	color: var(--mg-blue-strong);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.mudde-guides-note > a::after {
	content: " \2192";
}

.mudde-guides-note > a:hover,
.mudde-guides-note > a:focus-visible {
	color: var(--mg-navy);
	text-decoration: underline;
}

.mudde-guides-section {
	margin-top: 44px;
}

.mudde-guides-section h2 {
	margin: 0;
	color: var(--mg-navy);
	font-family: inherit;
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.mudde-guides-sub {
	margin: 6px 0 18px;
	color: var(--mg-muted);
	font-size: 0.94rem;
	line-height: 1.5;
}

.mudde-guides-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.mudde-guides-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mudde-guide-card {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	padding: 20px 21px;
	background: var(--mg-white);
	border: 1px solid var(--mg-border);
	border-radius: 16px;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mudde-guide-card:hover,
.mudde-guide-card:focus-visible {
	border-color: rgba(40, 114, 250, 0.4);
	box-shadow: 0 14px 32px rgba(25, 42, 61, 0.08);
	transform: translateY(-2px);
	text-decoration: none;
}

.mudde-guide-kicker {
	color: var(--mg-blue-strong);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1;
	text-transform: uppercase;
}

.mudde-guide-title {
	color: var(--mg-navy);
	font-size: 1.04rem;
	font-weight: 700;
	line-height: 1.3;
}

.mudde-guide-desc {
	color: var(--mg-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

.mudde-guides-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mudde-guides-pills a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 9px 16px;
	background: var(--mg-white);
	border: 1px solid var(--mg-border);
	border-radius: 999px;
	color: var(--mg-navy);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mudde-guides-pills a:hover,
.mudde-guides-pills a:focus-visible {
	border-color: rgba(40, 114, 250, 0.45);
	color: var(--mg-blue-strong);
	transform: translateY(-1px);
	text-decoration: none;
}

.mudde-guides-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
	border-top: 1px solid var(--mg-border);
}

.mudde-guides-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 52px;
	padding: 12px 0;
	border-bottom: 1px solid var(--mg-border);
	color: var(--mg-navy);
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.mudde-guides-list a::after {
	content: "\2192";
	flex: 0 0 auto;
	color: #9aabbb;
	font-weight: 400;
	transition: color 0.2s ease, transform 0.2s ease;
}

.mudde-guides-list a:hover,
.mudde-guides-list a:focus-visible {
	color: var(--mg-blue-strong);
	text-decoration: none;
}

.mudde-guides-list a:hover::after,
.mudde-guides-list a:focus-visible::after {
	color: var(--mg-blue-strong);
	transform: translateX(3px);
}

.mudde-guides-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 48px;
	padding: clamp(24px, 4vw, 36px);
	background:
		radial-gradient(circle at 100% 0%, rgba(40, 114, 250, 0.28), transparent 42%),
		linear-gradient(140deg, #192a3d 0%, #1d3249 55%, #24425f 100%);
	border-radius: 20px;
	color: #fff;
}

.mudde-guides-cta > div:first-child {
	max-width: 60ch;
}

.mudde-guides-cta h2 {
	margin: 0;
	color: #fff;
	font-family: inherit;
	font-size: clamp(1.35rem, 2.3vw, 1.7rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.mudde-guides-cta p {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.94rem;
	line-height: 1.6;
}

.mudde-guides-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mudde-guides-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 18px;
	background: var(--mg-white);
	border: 1px solid var(--mg-white);
	border-radius: 10px;
	color: var(--mg-navy);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mudde-guides-button:hover,
.mudde-guides-button:focus-visible {
	background: var(--mg-soft);
	color: var(--mg-navy);
	transform: translateY(-1px);
	text-decoration: none;
}

.mudde-guides-button--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.mudde-guides-button--ghost:hover,
.mudde-guides-button--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff;
}

.mudde-guides-hub a:focus-visible,
.mudde-guides-hub button:focus-visible {
	outline: 2px solid var(--mg-blue);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.mudde-guides-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.mudde-guides-grid,
	.mudde-guides-grid--three {
		grid-template-columns: 1fr;
	}

	.mudde-guides-list {
		grid-template-columns: 1fr;
	}

	.mudde-guides-cta {
		align-items: flex-start;
	}

	.mudde-guides-cta-actions {
		width: 100%;
	}

	.mudde-guides-button {
		flex: 1 1 auto;
	}
}

@media (max-width: 600px) {
	.mudde-guides-note {
		align-items: flex-start;
		padding: 16px;
	}

	.mudde-guides-note > a {
		white-space: normal;
	}

	.mudde-guides-section {
		margin-top: 36px;
	}

	.mudde-guides-pills a {
		flex: 1 1 auto;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mudde-guides-hub *,
	.mudde-guides-hub *::before,
	.mudde-guides-hub *::after {
		transition-duration: 0.01ms !important;
	}
}
