/**
 * Homepage design polish — Newsroom / blog.google style.
 * Loaded on front page only.
 */

/* --------------------------------------------------------------------------
   Home wrapper rhythm
   -------------------------------------------------------------------------- */

.mhai-home,
.nrmh-home {
	padding-bottom: 24px;
}

.home .nr-section,
.mhai-home .nr-section,
.nrmh-home .nr-section {
	margin: 0;
	padding: 64px 0;
}

.home .nr-section-head,
.mhai-home .nr-section-head,
.nrmh-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 32px;
}

.home .nr-section-title,
.mhai-home .nr-section-title {
	font-family: var(--nr-font-display, inherit);
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--nr-ink, #202124);
	margin: 0;
	line-height: 1.2;
}

.home .nrmh-section-more,
.mhai-home .nrmh-section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--nr-blue, #1a73e8);
	text-decoration: none;
	white-space: nowrap;
	padding: 6px 0;
}

.home .nrmh-section-more:hover {
	color: var(--nr-blue-dark, #174ea6);
	text-decoration: none;
}

.home .nrmh-section-more:hover .nr-arrow {
	transform: translateX(3px);
}

.home .nrmh-section-more .nr-arrow {
	transition: transform 0.15s ease;
}

/* Full-bleed tinted sections */
.home .nrmh-section--boxed.has-custom-bg {
	border-radius: 0;
}

/* --------------------------------------------------------------------------
   Hero carousel (primary homepage feature)
   -------------------------------------------------------------------------- */

.home .nr-hero {
	margin: 8px 0 0;
	padding: 12px 0 28px;
}

.home .nr-hero-track {
	gap: 20px;
	padding-bottom: 4px;
}

.home .nr-hero-card {
	flex: 0 0 min(100%, 1160px);
	min-height: 460px;
	border-radius: 28px;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06), 0 12px 32px rgba(60, 64, 67, 0.08);
	overflow: hidden;
}

.home .nr-hero-copy {
	padding: 44px 40px;
	gap: 6px;
}

.home .nr-hero-title {
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.18;
	letter-spacing: -0.025em;
	margin: 0 0 14px;
	font-weight: 400;
}

.home .nr-hero-title a {
	color: var(--nr-ink, #202124);
	text-decoration: none;
}

.home .nr-hero-title a:hover {
	color: var(--nr-blue, #1a73e8);
}

.home .nr-hero-excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: var(--nr-ink-2, #5f6368);
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home .nr-hero-media {
	min-height: 100%;
}

.home .nr-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home .nr-carousel-controls {
	margin-top: 20px;
	margin-bottom: 4px;
}

.home .nr-carousel-controls .nr-iconbtn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--nr-line, #dadce0);
	background: #fff;
}

.home .nr-carousel-controls .nr-iconbtn:hover:not([disabled]) {
	background: #f8f9fa;
}

.home .nr-progress {
	flex: 0 1 240px;
	height: 4px;
	border-radius: 4px;
	background: #e8eaed;
}

.home .nr-progress-bar {
	background: var(--nr-ink, #202124);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.home .nr-grid {
	gap: 36px 28px;
}

/* Fit grid to actual card count (no empty trailing columns) */
.home .nr-grid--fit.nr-grid--1 {
	grid-template-columns: minmax(0, 1fr);
	max-width: 360px;
}

.home .nr-grid--fit.nr-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home .nr-grid--fit.nr-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home .nr-grid--fit.nr-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home .nr-grid--fit > * {
	min-width: 0;
}

/* Tinted sections: keep media ratio stable at any column count */
.home .nr-cards-tinted.nr-grid--fit .nr-card--tinted .nr-card-media,
.home .nr-cards-tinted.nr-grid--fit .nr-card .nr-card-media {
	width: 100%;
}

.home .nr-card {
	min-width: 0;
}

.home .nr-card-media {
	margin-bottom: 16px;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.05);
	aspect-ratio: 16 / 10;
	background: #f1f3f4;
}

.home .nr-card-media img {
	transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.home .nr-card:hover .nr-card-media img {
	transform: scale(1.035);
}

.home .nr-card-title {
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.015em;
	margin: 4px 0 12px;
	font-weight: 400;
}

.home .nr-card-title a {
	color: var(--nr-ink, #202124);
	text-decoration: none;
}

.home .nr-card-title a:hover {
	color: var(--nr-blue, #1a73e8);
}

.home .nr-kicker {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--nr-ink-2, #5f6368);
}

.home .nr-card-foot {
	padding-top: 10px;
	border-top: 0;
}

.home .nr-card-foot .nr-byline {
	font-size: 12px;
	max-width: 58%;
	color: var(--nr-ink-2, #5f6368);
}

.home .nr-card-foot .nr-byline strong {
	font-weight: 400;
	color: var(--nr-ink, #202124);
}

.home .nr-readmore {
	font-size: 14px;
	font-weight: 500;
}

/* Tinted product cards */
.home .nr-card--tinted .nr-card-media {
	aspect-ratio: 1 / 1;
	border-radius: 24px;
}

.home .nr-cards-tinted .nr-card:nth-child(4n + 1) .nr-card-media {
	background: #e8f0fe;
}
.home .nr-cards-tinted .nr-card:nth-child(4n + 2) .nr-card-media {
	background: #fce8e6;
}
.home .nr-cards-tinted .nr-card:nth-child(4n + 3) .nr-card-media {
	background: #e6f4ea;
}
.home .nr-cards-tinted .nr-card:nth-child(4n + 4) .nr-card-media {
	background: #fef7e0;
}

/* --------------------------------------------------------------------------
   Spotlight
   -------------------------------------------------------------------------- */

.home .nr-spotlight {
	min-height: 420px;
	border-radius: 28px;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06), 0 8px 24px rgba(60, 64, 67, 0.06);
	overflow: hidden;
}

.home .nr-spotlight-title {
	font-size: clamp(26px, 2.6vw, 34px);
	letter-spacing: -0.025em;
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 14px;
}

.home .nr-spotlight-title a {
	color: var(--nr-ink, #202124);
	text-decoration: none;
}

.home .nr-spotlight-title a:hover {
	color: var(--nr-blue, #1a73e8);
}

.home .nr-spotlight-copy {
	padding: clamp(28px, 4vw, 52px) clamp(24px, 3.5vw, 48px);
}

.home .nr-spotlight-media {
	min-height: 280px;
	background: #e8eaed;
}

.home .nr-spotlight-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Videos / tools feature */
.home .nr-video-feature {
	border-radius: 28px;
	overflow: hidden;
}

.home .nrmh-video-badge {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	border-radius: 8px !important;
}

/* --------------------------------------------------------------------------
   Newsletter — blog.google light card + soft blobs
   -------------------------------------------------------------------------- */

.home .nrmh-section--newsletter {
	padding: 48px 0 56px;
	background: transparent;
}

.home .nr-newsletter--google,
.home .nr-newsletter {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	/* Soft lavender like blog.google */
	background: linear-gradient(135deg, #e8eefc 0%, #eef2ff 42%, #f3eefc 100%);
	border-radius: 32px;
	padding: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 56px) clamp(36px, 4vw, 52px);
	text-align: center;
	border: 0;
	box-shadow: none;
	color: #202124;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Decorative soft shapes (image 2 inspiration) */
.home .nr-newsletter__blob {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	filter: blur(0);
}

.home .nr-newsletter__blob--a {
	width: min(42vw, 340px);
	height: min(42vw, 340px);
	right: -8%;
	top: -28%;
	background: radial-gradient(circle at 40% 40%, #dfe8ff 0%, rgba(223, 232, 255, 0) 70%);
	opacity: 0.95;
}

.home .nr-newsletter__blob--b {
	width: min(36vw, 280px);
	height: min(36vw, 280px);
	right: 8%;
	bottom: -35%;
	background: radial-gradient(circle at 50% 50%, #f7f0d8 0%, rgba(247, 240, 216, 0) 68%);
	opacity: 0.9;
}

.home .nr-newsletter__blob--c {
	width: min(28vw, 200px);
	height: min(28vw, 200px);
	right: 22%;
	top: 18%;
	background: radial-gradient(circle at 50% 50%, #e9f6ef 0%, rgba(233, 246, 239, 0) 70%);
	opacity: 0.75;
}

.home .nr-newsletter__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.home .nr-newsletter__title,
.home .nr-newsletter h2 {
	font-family: var(--nr-font-display, inherit);
	font-size: clamp(28px, 3.2vw, 38px);
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #202124;
	max-width: 16ch;
	margin: 0 auto 12px;
	text-align: center;
}

.home .nr-newsletter__text,
.home .nr-newsletter > p,
.home .nr-newsletter__inner > p.nr-newsletter__text {
	font-size: 15px;
	line-height: 1.55;
	color: #3c4043;
	max-width: 42ch;
	margin: 0 auto 28px;
	text-align: center;
}

/*
 * Email + Subscribe — blog.google pattern:
 * one continuous control: [  Email address .............. ][ Subscribe ]
 * white field left, solid blue button flush on the right, shared pill outline.
 */

/* Native fallback form */
.home .nr-newsletter__form-native {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
	max-width: 480px;
	height: 52px;
	margin: 0 auto 18px;
	padding: 0;
	border-radius: 28px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.06);
}

.home .nr-newsletter__form-native input[type='email'] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 100%;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 0 20px;
	font-size: 16px;
	line-height: 52px;
	background: #fff;
	box-shadow: none;
	color: #202124;
}

.home .nr-newsletter__form-native input[type='email']::placeholder {
	color: #80868b;
}

.home .nr-newsletter__form-native input[type='email']:focus {
	outline: none;
	box-shadow: none;
}

.home .nr-newsletter__form-native .nr-newsletter__submit,
.home .nr-newsletter__form-native .nr-btn--primary {
	flex: 0 0 auto;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	padding: 0 28px;
	background: #1a73e8;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 52px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: none;
}

.home .nr-newsletter__form-native .nr-newsletter__submit:hover,
.home .nr-newsletter__form-native .nr-btn--primary:hover {
	background: #1765cc;
}

/* ---- MailerPress shortcode (nested div.form + form.form) ---- */
.home .nr-newsletter .nrmh-newsletter-form--shortcode,
.home .nr-newsletter__form {
	width: 100%;
	max-width: 480px;
	margin: 0 auto 18px;
	padding: 0;
	position: relative;
	z-index: 1;
}

/* Outer wrapper from MailerPress — strip chrome, only the <form> is the pill */
.home .nr-newsletter .nrmh-newsletter-form--shortcode > .mailerpress_shortcode-optin-form {
	display: block !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	overflow: visible !important;
}

/* The actual form is the white pill bar */
.home .nr-newsletter form.mailerpress-optin-form,
.home .nr-newsletter form.mailerpress_shortcode-optin-form {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: 480px !important;
	height: 52px !important;
	min-height: 52px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 28px !important;
	overflow: hidden !important;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.06) !important;
	box-sizing: border-box !important;
}

/* Hidden fields must not take flex space */
.home .nr-newsletter form.mailerpress-optin-form > input[type='hidden'],
.home .nr-newsletter form.mailerpress_shortcode-optin-form > input[type='hidden'] {
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.home .nr-newsletter .mailerpress_shortcode-optin-form__field {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: stretch !important;
	border: 0 !important;
	background: transparent !important;
}

.home .nr-newsletter .mailerpress_shortcode-optin-form__field label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.home .nr-newsletter .mailerpress_shortcode-optin-form__field input[type='email'],
.home .nr-newsletter form.mailerpress-optin-form input[type='email'] {
	flex: 1 1 auto !important;
	width: 100% !important;
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 20px !important;
	font-size: 16px !important;
	line-height: 52px !important;
	color: #202124 !important;
	box-sizing: border-box !important;
}

.home .nr-newsletter .mailerpress_shortcode-optin-form__field input[type='email']::placeholder {
	color: #80868b !important;
	opacity: 1 !important;
}

.home .nr-newsletter .mailerpress_shortcode-optin-form__submit {
	flex: 0 0 auto !important;
	display: flex !important;
	align-items: stretch !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	width: auto !important;
	height: 52px !important;
}

/* Blue Subscribe flush to the right end of the pill */
.home .nr-newsletter .mailerpress_shortcode-optin-form__button,
.home .nr-newsletter form.mailerpress-optin-form button[type='submit'],
.home .nr-newsletter form.mailerpress-optin-form .button,
.home .nr-newsletter form.mailerpress_shortcode-optin-form button[type='submit'] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #1a73e8 !important;
	background-color: #1a73e8 !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 0.01em !important;
	padding: 0 28px !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-shadow: none !important;
	white-space: nowrap !important;
	width: auto !important;
	min-width: 120px !important;
	box-sizing: border-box !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.home .nr-newsletter .mailerpress_shortcode-optin-form__button:hover,
.home .nr-newsletter form.mailerpress-optin-form button[type='submit']:hover,
.home .nr-newsletter form.mailerpress_shortcode-optin-form button[type='submit']:hover {
	background: #1765cc !important;
	background-color: #1765cc !important;
	color: #fff !important;
}

.home .nr-newsletter__legal,
.home .nr-newsletter .nr-fineprint {
	font-size: 13px;
	line-height: 1.5;
	color: #5f6368;
	max-width: 42ch;
	margin: 0 auto;
	text-align: center;
}

.home .nr-newsletter .nr-fineprint a {
	color: #1a73e8;
	text-decoration: none;
}

.home .nr-newsletter .nr-fineprint a:hover {
	text-decoration: underline;
}

/* Notices from MailerPress under the bar */
.home .nr-newsletter .mailerpress-notice {
	margin-top: 12px;
	font-size: 13px;
}

@media (max-width: 640px) {
	.home .nr-newsletter--google,
	.home .nr-newsletter {
		padding: 36px 22px 32px;
		border-radius: 24px;
	}

	.home .nr-newsletter__form-native,
	.home .nr-newsletter form.mailerpress-optin-form,
	.home .nr-newsletter form.mailerpress_shortcode-optin-form {
		flex-direction: column !important;
		height: auto !important;
		min-height: 0 !important;
		border-radius: 20px !important;
		max-width: 100% !important;
	}

	.home .nr-newsletter__form-native input[type='email'],
	.home .nr-newsletter .mailerpress_shortcode-optin-form__field input[type='email'],
	.home .nr-newsletter form.mailerpress-optin-form input[type='email'] {
		height: 52px !important;
		line-height: 52px !important;
	}

	.home .nr-newsletter__form-native .nr-newsletter__submit,
	.home .nr-newsletter__form-native .nr-btn--primary,
	.home .nr-newsletter .mailerpress_shortcode-optin-form__button,
	.home .nr-newsletter form.mailerpress-optin-form button[type='submit'] {
		width: 100% !important;
		min-width: 0 !important;
		height: 52px !important;
		border-radius: 0 !important;
	}

	.home .nr-newsletter .mailerpress_shortcode-optin-form__submit {
		width: 100% !important;
		height: auto !important;
	}

	.home .nr-newsletter__title,
	.home .nr-newsletter h2 {
		font-size: 26px;
		max-width: none;
	}
}

/* --------------------------------------------------------------------------
   Topic chips + latest
   -------------------------------------------------------------------------- */

.home .nr-chips {
	margin: 0 0 28px;
	gap: 8px;
}

.home .nr-chips a {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	background: #fff;
	border: 1px solid var(--nr-line, #dadce0);
	border-radius: 999px;
	color: var(--nr-ink, #202124);
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home .nr-chips a:hover {
	background: #f8f9fa;
	text-decoration: none;
}

.home .nr-chips .is-active a,
.home .nr-chips a[aria-current='page'] {
	background: var(--nr-ink, #202124);
	border-color: var(--nr-ink, #202124);
	color: #fff;
}

.home .nrmh-section--latest .nr-fineprint {
	font-size: 13px;
	color: var(--nr-ink-3, #80868b);
	margin: -8px 0 20px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.home .nr-grid--4,
	.home .nr-grid--fit.nr-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* 3 cards stay 3-up until tablet breakpoint */
	.home .nr-grid--fit.nr-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.home .nr-section,
	.mhai-home .nr-section {
		padding: 44px 0;
	}

	.home .nr-hero-card {
		grid-template-columns: 1fr;
		min-height: 0;
		flex-basis: min(100%, 520px);
	}

	.home .nr-hero-media {
		aspect-ratio: 16 / 10;
		min-height: 200px;
		order: -1;
	}

	.home .nr-hero-copy {
		padding: 28px 24px 32px;
	}

	.home .nr-hero-title {
		font-size: 26px;
	}

	.home .nr-spotlight {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.home .nr-spotlight-media {
		aspect-ratio: 16 / 9;
		min-height: 220px;
		order: -1;
	}

	.home .nr-grid--3,
	.home .nr-grid--4,
	.home .nr-grid--fit.nr-grid--3,
	.home .nr-grid--fit.nr-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.home .nr-grid--fit.nr-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home .nr-grid--fit.nr-grid--1 {
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.home .nr-grid--2,
	.home .nr-grid--3,
	.home .nr-grid--4,
	.home .nr-grid--fit.nr-grid--2,
	.home .nr-grid--fit.nr-grid--3,
	.home .nr-grid--fit.nr-grid--4 {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.home .nr-grid--fit.nr-grid--1 {
		max-width: 100%;
	}

	.home .nr-section-head {
		margin-bottom: 22px;
	}

	.home .nr-hero {
		padding-bottom: 16px;
	}
}
