/*
 * Italy Travel Experience — homepage scaffold styles.
 *
 * Custom properties are declared on body.ite-home-body (added via
 * body_class() in header-home.php) rather than on .ite-home, because
 * .ite-home is the <main> element and is preceded in the DOM by
 * .ite-home-header — a selector scoped to .ite-home alone would not be
 * inheritable by the header. Declaring them on the body makes them
 * available to .ite-home-header, .ite-home, .ite-mobile-navigation and
 * every homepage section alike.
 *
 * All other selectors keep the ite- prefix and stay scoped to the
 * homepage only; no global Foxiz style or other page is touched.
 * Structure is mobile-first: base rules target small screens. 768px is
 * the single breakpoint that decides mobile-nav visibility: below it,
 * the branding row shows only logo + hamburger and the coded desktop
 * menus / desktop search are hidden; from it, both desktop menus and
 * the desktop search show while the hamburger + mobile panel hide
 * (matches the mobileNavigationBreakpoint value used in homepage.js).
 * 1180px is a desktop-only visual refinement (branding height, logo
 * size, search field width) and never controls mobile-nav visibility.
 * This task styles the header only — hero/news/sections/newsletter
 * keep their existing placeholder rules further below.
 */

body.ite-home-body {
	--ite-color-top-bar: #ffffff;
	--ite-color-section-bar: #e7eef2;
	--ite-color-text: #14202b;
	--ite-color-muted: #5b6b76;
	--ite-color-border: #dfe6ea;
	--ite-color-hover-bg: rgba(20, 32, 43, 0.06);
	--ite-color-accent: #2c5f7c;
	--ite-spacing-unit: 1rem;
	--ite-container-max-width: 1240px;
	--ite-container-padding: clamp(1rem, 4vw, 2rem);
	--ite-branding-height: 6rem;
	--ite-top-menu-height: 3.25rem;
	--ite-section-menu-height: 3.5rem;
	--ite-shadow-soft: 0 1px 2px rgba(20, 32, 43, 0.08);
	--ite-transition-speed: 0.2s;
}

/* ==========================================================================
   Header — shared scope reset + container
   ========================================================================== */

.ite-home-header *,
.ite-home-header *::before,
.ite-home-header *::after,
.ite-mobile-navigation,
.ite-mobile-navigation *,
.ite-mobile-navigation *::before,
.ite-mobile-navigation *::after {
	box-sizing: border-box;
}

/* Accessible keyboard-only shortcut to the homepage main content. */

.ite-skip-link {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 99999;
	box-sizing: border-box;
	max-width: calc(100vw - 2rem);
	padding: 0.75rem 1rem;
	border: 2px solid #ffffff;
	border-radius: 8px;
	background-color: var(--ite-color-text);
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transform: translateY(calc(-100% - 2rem));
}

.ite-skip-link:focus,
.ite-skip-link:focus-visible {
	outline: 3px solid var(--ite-color-accent);
	outline-offset: 2px;
	transform: translateY(0);
}

.ite-home-header {
	position: relative;
	color: var(--ite-color-text);
}

.ite-header-container {
	max-width: var(--ite-container-max-width);
	margin-inline: auto;
	padding-inline: var(--ite-container-padding);
}

/* ==========================================================================
   Row 1 — Branding (logo, search, mobile toggle)
   ========================================================================== */

.ite-branding-row {
	background-color: var(--ite-color-top-bar);
}

.ite-branding-row-inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--ite-spacing-unit);
	min-height: 4.5rem;
	padding-block: 0.5rem;
}

.ite-home-branding {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
}

.ite-home-branding img {
	display: block;
	height: auto;
	max-width: min(200px, 40vw);
	width: auto;
}

.ite-home-site-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
}

.ite-home-site-title a {
	color: var(--ite-color-text);
	text-decoration: none;
}

.ite-header-search {
	/* Hidden below 768px: on mobile the branding row holds only logo +
	   hamburger, the equivalent search lives in .ite-mobile-search
	   inside the mobile panel instead. Shown again at 768px+. */
	display: none;
	align-items: center;
	margin-inline-start: auto;
	min-width: 0;
}

.ite-search-form {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	min-width: 0;
}

.ite-search-field {
	width: 100%;
	min-width: 0;
	max-width: 7rem;
	padding: 0.375rem 0.625rem;
	border: 1px solid var(--ite-color-border);
	border-radius: 999px;
	font-size: 0.875rem;
	color: var(--ite-color-text);
	background-color: #ffffff;
}

.ite-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--ite-color-border);
	border-radius: 50%;
	background: transparent;
	color: var(--ite-color-text);
	cursor: pointer;
}

.ite-search-submit-icon {
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	position: relative;
}

.ite-search-submit-icon::after {
	content: '';
	position: absolute;
	right: -0.35rem;
	bottom: -0.35rem;
	width: 0.4rem;
	height: 2px;
	background: currentColor;
	transform: rotate(45deg);
	transform-origin: right center;
}

.ite-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Mobile menu toggle (hamburger) */

.ite-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ite-color-border);
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
}

.ite-menu-toggle-bars {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 14px;
}

.ite-menu-toggle-bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--ite-color-text);
	border-radius: 2px;
	transition: transform var(--ite-transition-speed) ease, opacity var(--ite-transition-speed) ease;
}

.ite-menu-toggle-bars span:nth-child(1) {
	top: 0;
}

.ite-menu-toggle-bars span:nth-child(2) {
	top: 6px;
}

.ite-menu-toggle-bars span:nth-child(3) {
	top: 12px;
}

.ite-menu-toggle.is-open .ite-menu-toggle-bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.ite-menu-toggle.is-open .ite-menu-toggle-bars span:nth-child(2) {
	opacity: 0;
}

.ite-menu-toggle.is-open .ite-menu-toggle-bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Row 2 — Institutional (top) menu: white background, dark text
   ========================================================================== */

.ite-top-nav-row {
	display: none;
	background-color: var(--ite-color-top-bar);
	border-bottom: 1px solid var(--ite-color-border);
}

.ite-top-nav-row .ite-header-container {
	display: flex;
	align-items: center;
	min-height: var(--ite-top-menu-height);
}

.ite-top-navigation {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

.ite-top-navigation::-webkit-scrollbar {
	height: 6px;
}

.ite-top-navigation::-webkit-scrollbar-track {
	background: transparent;
}

.ite-top-navigation::-webkit-scrollbar-thumb {
	background-color: var(--ite-color-border);
	border-radius: 999px;
}

.ite-top-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: calc(var(--ite-spacing-unit) * 1.25);
	width: max-content;
	min-width: 100%;
}

.ite-top-menu > li > a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.125rem;
	color: var(--ite-color-text);
	text-decoration: none;
	font-size: 0.9375rem;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color var(--ite-transition-speed) ease, border-color var(--ite-transition-speed) ease;
}

.ite-top-menu > li > a:hover,
.ite-top-menu > li > a:focus-visible {
	color: var(--ite-color-accent);
}

.ite-top-menu > li.current-menu-item > a {
	border-bottom-color: var(--ite-color-accent);
	font-weight: 600;
}

/* ==========================================================================
   Row 3 — Editorial sections (bottom) menu: blue-grey background
   ========================================================================== */

.ite-section-nav-row {
	display: none;
	background-color: var(--ite-color-section-bar);
	box-shadow: var(--ite-shadow-soft);
}

.ite-section-nav-row .ite-header-container {
	display: flex;
	align-items: center;
	min-height: var(--ite-section-menu-height);
}

.ite-section-navigation {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

.ite-section-navigation::-webkit-scrollbar {
	height: 6px;
}

.ite-section-navigation::-webkit-scrollbar-track {
	background: transparent;
}

.ite-section-navigation::-webkit-scrollbar-thumb {
	background-color: var(--ite-color-border);
	border-radius: 999px;
}

.ite-section-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: calc(var(--ite-spacing-unit) * 1.25);
	width: max-content;
	min-width: 100%;
}

.ite-section-menu > li > a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.5rem;
	color: var(--ite-color-text);
	text-decoration: none;
	font-size: 0.875rem;
	white-space: nowrap;
	border-radius: 4px;
	transition: background-color var(--ite-transition-speed) ease, color var(--ite-transition-speed) ease;
}

.ite-section-menu > li > a:hover,
.ite-section-menu > li > a:focus-visible {
	background-color: var(--ite-color-hover-bg);
}

.ite-section-menu > li.current-menu-item > a {
	background-color: var(--ite-color-hover-bg);
	font-weight: 600;
	text-decoration: underline;
}

/* ==========================================================================
   Mobile navigation panel (below header, both menus grouped and labelled)
   ========================================================================== */

.ite-mobile-navigation[hidden] {
	display: none;
}

.ite-mobile-navigation {
	background-color: var(--ite-color-top-bar);
	border-top: 1px solid var(--ite-color-border);
}

.ite-mobile-navigation-inner {
	padding: var(--ite-spacing-unit);
	display: flex;
	flex-direction: column;
	gap: calc(var(--ite-spacing-unit) * 1.5);
}

/* Mobile-only search, shown first in the panel; hidden again at 768px+
   where .ite-header-search (desktop) takes over. */
.ite-mobile-search {
	width: 100%;
	margin-bottom: var(--ite-spacing-unit);
}

.ite-mobile-search .ite-search-form {
	width: 100%;
}

.ite-mobile-search .ite-search-field {
	flex: 1 1 auto;
	max-width: none;
}

.ite-mobile-search .ite-search-submit {
	width: 44px;
	height: 44px;
}

.ite-mobile-nav-group + .ite-mobile-nav-group {
	border-top: 1px solid var(--ite-color-border);
	padding-top: calc(var(--ite-spacing-unit) * 1.5);
}

.ite-mobile-nav-heading {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ite-color-muted);
}

.ite-mobile-top-menu,
.ite-mobile-section-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.ite-mobile-top-menu a,
.ite-mobile-section-menu a {
	display: block;
	width: 100%;
	padding: 0.75rem 0;
	color: var(--ite-color-text);
	text-decoration: none;
	border-bottom: 1px solid var(--ite-color-border);
}

.ite-mobile-top-menu li:last-child a,
.ite-mobile-section-menu li:last-child a {
	border-bottom: none;
}

/* Focus visibility across the whole header + mobile panel */

.ite-home-header a:focus-visible,
.ite-mobile-navigation a:focus-visible,
.ite-menu-toggle:focus-visible,
.ite-search-field:focus-visible,
.ite-search-submit:focus-visible {
	outline: 2px solid var(--ite-color-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ite-menu-toggle-bars span,
	.ite-top-menu > li > a,
	.ite-section-menu > li > a {
		transition: none;
	}
}

/* ==========================================================================
   Mobile-nav breakpoint (768px+): this is the single point where the
   hamburger + mobile panel hide and the two coded desktop menus + the
   desktop search show. Keep in sync with mobileNavigationBreakpoint in
   functions.php / homepage.js.
   ========================================================================== */

@media (min-width: 768px) {
	.ite-menu-toggle,
	.ite-mobile-navigation {
		display: none;
	}

	.ite-header-search {
		display: flex;
	}

	.ite-mobile-search {
		display: none;
	}

	.ite-top-nav-row,
	.ite-section-nav-row {
		display: block;
	}

	.ite-top-menu,
	.ite-section-menu {
		flex-wrap: nowrap;
	}

	.ite-search-field {
		max-width: 10rem;
	}
}

/* ==========================================================================
   Desktop (~1180px+): visual refinement only (branding height, logo size,
   search field width) — does NOT control mobile-nav visibility, and does
   NOT relax the horizontal-scroll containment of the two nav rows, so a
   long editorial menu can never push the whole page into overflow.
   ========================================================================== */

@media (min-width: 1180px) {
	.ite-branding-row-inner {
		min-height: var(--ite-branding-height);
	}

	.ite-home-branding img {
		max-width: 260px;
	}

	.ite-search-field {
		max-width: 12rem;
	}
}

/* ==========================================================================
   Shared homepage section rhythm and headings
   ========================================================================== */

.ite-container {
	max-width: var(--ite-container-max-width);
	margin-inline: auto;
	padding-inline: var(--ite-container-padding);
}

.ite-home-section {
	padding-block: clamp(2rem, 5vw, 4.5rem);
}

.ite-section-heading {
	margin: 0;
	color: var(--ite-color-text);
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.ite-section-header {
	margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

/* ==========================================================================
   Hero editorial mosaic
   One lead story (large) + four secondary stories, image-led with the
   caption overlaid at the bottom of each image. Mobile-first: base rules
   stack everything in one column, then 768px introduces the lead-on-top
   + 2x2 secondary grid, and 1180px moves to the side-by-side mosaic.
   ========================================================================== */

.ite-hero-empty {
	margin: 0;
	padding: calc(var(--ite-spacing-unit) * 2);
	text-align: center;
	color: var(--ite-color-muted);
	background-color: var(--ite-color-hover-bg);
	border-radius: 10px;
}

.ite-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.ite-story-card {
	position: relative;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
	background-color: #16242e;
	aspect-ratio: 4 / 3;
}

.ite-story-card--lead {
	aspect-ratio: 16 / 11;
}

.ite-story-card-link {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	color: #ffffff;
	text-decoration: none;
}

.ite-story-card-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ite-story-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ite-story-card-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(8, 14, 18, 0.88) 0%, rgba(8, 14, 18, 0.5) 40%, rgba(8, 14, 18, 0) 78%);
}

.ite-story-card--no-image .ite-story-card-overlay {
	background: linear-gradient(to top, rgba(8, 14, 18, 0.55) 0%, rgba(8, 14, 18, 0.15) 60%, rgba(8, 14, 18, 0) 100%);
}

.ite-story-card-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.875rem 1rem 1rem;
}

.ite-story-card-category {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #e7eef2;
}

.ite-story-card-title {
	margin: 0;
	color: #ffffff;
	font-weight: 700;
	line-height: 1.25;
	font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem);
}

.ite-story-card--secondary .ite-story-card-title {
	font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.ite-story-card-date {
	font-size: 0.8125rem;
	color: #dbe4e8;
}

.ite-story-card-excerpt {
	/* Hidden below 768px to avoid crowding the lead card on small
	   screens; the excerpt text stays in the DOM and reappears at the
	   tablet breakpoint below. */
	display: none;
	margin: 0.25rem 0 0;
	max-width: 46ch;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #eef2f4;
}

.ite-story-card-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
	.ite-story-card-image {
		transition: none;
	}
}

/* Tablet (~768px+): lead on top, four secondaries in a 2x2 grid below */

@media (min-width: 768px) {
	.ite-hero-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			'lead lead'
			's1 s2'
			's3 s4';
		gap: 14px;
	}

	.ite-hero-grid > [data-position='0'] {
		grid-area: lead;
	}

	.ite-hero-grid > [data-position='1'] {
		grid-area: s1;
	}

	.ite-hero-grid > [data-position='2'] {
		grid-area: s2;
	}

	.ite-hero-grid > [data-position='3'] {
		grid-area: s3;
	}

	.ite-hero-grid > [data-position='4'] {
		grid-area: s4;
	}

	.ite-story-card--lead {
		aspect-ratio: 21 / 9;
	}

	.ite-story-card-excerpt {
		display: block;
	}
}

/* Desktop (~1180px+): lead left (~60%), four secondaries in a 2x2 grid
   to the right (~40%), sized to a shared overall hero height. */

@media (min-width: 1180px) {
	.ite-hero-grid {
		grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			'lead s1 s2'
			'lead s3 s4';
		gap: 16px;
		height: 560px;
	}

	.ite-story-card,
	.ite-story-card--lead {
		aspect-ratio: auto;
		height: 100%;
	}
}

/* ==========================================================================
   Latest News grid
   Plain image-above / text-below cards, light section background, clearly
   separated from the hero's overlay treatment. Mobile-first: one column,
   then 768px moves to two, 1180px to three (max 6 cards → two rows).
   ========================================================================== */

.ite-latest-news {
	background-color: #f5f7f8;
}

.ite-section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: calc(var(--ite-spacing-unit) * 1.25);
}

.ite-section-more-link {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ite-color-accent);
	text-decoration: none;
}

.ite-section-more-link:hover,
.ite-section-more-link:focus-visible {
	text-decoration: underline;
}

.ite-section-more-link:focus-visible {
	outline: 2px solid var(--ite-color-accent);
	outline-offset: 2px;
}

.ite-latest-news-empty {
	margin: 0;
	padding: calc(var(--ite-spacing-unit) * 2);
	text-align: center;
	color: var(--ite-color-muted);
	background-color: var(--ite-color-hover-bg);
	border-radius: 10px;
}

.ite-latest-news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.ite-latest-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border: 1px solid var(--ite-color-border);
	border-radius: 10px;
	overflow: hidden;
}

.ite-latest-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.ite-latest-card-link:focus-visible {
	outline: 2px solid var(--ite-color-accent);
	outline-offset: -2px;
}

.ite-latest-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background-color: var(--ite-color-section-bar);
	overflow: hidden;
}

.ite-latest-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ite-latest-card--no-image .ite-latest-card-media {
	background-color: var(--ite-color-section-bar);
}

.ite-latest-card-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem;
}

.ite-latest-card-category {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ite-color-accent);
}

.ite-latest-card-title {
	margin: 0;
	color: var(--ite-color-text);
	font-weight: 700;
	line-height: 1.3;
	font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	transition: color var(--ite-transition-speed) ease;
}

.ite-latest-card-link:hover .ite-latest-card-title,
.ite-latest-card-link:focus-visible .ite-latest-card-title {
	color: var(--ite-color-accent);
}

.ite-latest-card-date {
	font-size: 0.8125rem;
	color: var(--ite-color-muted);
}

.ite-latest-card-excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ite-color-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.ite-latest-card-title {
		transition: none;
	}
}

/* Tablet (~768px+): two columns */

@media (min-width: 768px) {
	.ite-latest-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

/* Desktop (~1180px+): three columns, max 6 cards → two rows */

@media (min-width: 1180px) {
	.ite-latest-news-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px;
	}
}

/* ==========================================================================
   Editorial category panels
   Up to 4 self-contained category panels (white cards, light border),
   visually distinct from the hero's overlay treatment and from the plain
   Latest News grid. Each panel holds one lead story (image above text)
   + up to three compact stories (image left, text right). Mobile-first:
   one column throughout tablet, two columns from ~1024px onward.
   ========================================================================== */

.ite-editorial-sections-empty {
	margin: 0;
	padding: calc(var(--ite-spacing-unit) * 2);
	text-align: center;
	color: var(--ite-color-muted);
	background-color: var(--ite-color-hover-bg);
	border-radius: 10px;
}

.ite-editorial-panels {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.ite-editorial-panel {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: 1rem;
	background-color: #ffffff;
	border: 1px solid var(--ite-color-border);
	border-radius: 10px;
}

.ite-editorial-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ite-editorial-panel-title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--ite-color-text);
}

.ite-editorial-panel-more {
	flex-shrink: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ite-color-accent);
	text-decoration: none;
	white-space: nowrap;
}

.ite-editorial-panel-more:hover,
.ite-editorial-panel-more:focus-visible {
	text-decoration: underline;
}

.ite-editorial-panel-more:focus-visible {
	outline: 2px solid var(--ite-color-accent);
	outline-offset: 2px;
}

.ite-editorial-story-link {
	display: flex;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none;
}

.ite-editorial-story--lead .ite-editorial-story-link {
	flex-direction: column;
}

.ite-editorial-story--compact .ite-editorial-story-link {
	flex-direction: row;
	align-items: center;
}

.ite-editorial-story-media {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 8px;
	background-color: var(--ite-color-section-bar);
}

.ite-editorial-story--lead .ite-editorial-story-media {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.ite-editorial-story--compact .ite-editorial-story-media {
	width: 96px;
	aspect-ratio: 1 / 1;
}

.ite-editorial-story-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ite-editorial-story-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.3rem;
	min-width: 0;
}

.ite-editorial-story--compact .ite-editorial-story-content {
	flex: 1 1 auto;
}

.ite-editorial-story-title {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.3;
	color: var(--ite-color-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	transition: color var(--ite-transition-speed) ease;
}

.ite-editorial-story--lead .ite-editorial-story-title {
	font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
}

.ite-editorial-story-link:hover .ite-editorial-story-title,
.ite-editorial-story-link:focus-visible .ite-editorial-story-title {
	color: var(--ite-color-accent);
}

.ite-editorial-story-date {
	font-size: 0.75rem;
	color: var(--ite-color-muted);
}

.ite-editorial-story-excerpt {
	margin: 0.15rem 0 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--ite-color-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.ite-editorial-story-link:focus-visible {
	outline: 2px solid var(--ite-color-accent);
	outline-offset: 2px;
	border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.ite-editorial-story-title {
		transition: none;
	}
}

/* From ~1024px there is enough room for two panel columns; below it a
   single column keeps each panel (and its compact thumbnails) legible. */

@media (min-width: 1024px) {
	.ite-editorial-panels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (min-width: 1180px) {
	.ite-editorial-panels {
		gap: 24px;
	}
}

/* ==========================================================================
   Newsletter callout
   Honest provider-agnostic CTA: dark editorial panel, text first in the DOM,
   CSS-only decoration, no non-functional form or external asset.
   ========================================================================== */

.ite-newsletter-panel {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 5vw, 3rem);
	overflow: hidden;
	padding: clamp(1.5rem, 5vw, 3.5rem);
	color: #ffffff;
	background-color: #14202b;
	border: 1px solid rgba(231, 238, 242, 0.18);
	border-radius: 14px;
}

.ite-newsletter-content {
	position: relative;
	z-index: 2;
	max-width: 64ch;
}

.ite-newsletter-eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	color: #b9ced9;
}

.ite-newsletter-heading {
	margin: 0;
	max-width: 18ch;
	font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem);
	font-weight: 700;
	line-height: 1.08;
	color: #ffffff;
}

.ite-newsletter-description {
	margin: 1rem 0 0;
	max-width: 58ch;
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	line-height: 1.6;
	color: #dbe4e8;
}

.ite-newsletter-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 1.5rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid #e7eef2;
	border-radius: 8px;
	background-color: #e7eef2;
	color: #14202b;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		background-color var(--ite-transition-speed) ease,
		border-color var(--ite-transition-speed) ease,
		color var(--ite-transition-speed) ease;
}

.ite-newsletter-cta:hover {
	background-color: #ffffff;
	border-color: #ffffff;
	color: #14202b;
}

.ite-newsletter-cta:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.ite-newsletter-status {
	margin: 1.5rem 0 0;
	padding-inline-start: 0.875rem;
	border-inline-start: 3px solid #8fb0c1;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #dbe4e8;
}

.ite-newsletter-decoration {
	position: relative;
	z-index: 1;
	min-height: 120px;
	pointer-events: none;
}

.ite-newsletter-decoration::before,
.ite-newsletter-decoration::after {
	content: '';
	position: absolute;
	border: 1px solid rgba(231, 238, 242, 0.24);
	border-radius: 50%;
}

.ite-newsletter-decoration::before {
	width: clamp(150px, 48vw, 280px);
	aspect-ratio: 1;
	right: clamp(-90px, -14vw, -36px);
	bottom: clamp(-110px, -18vw, -50px);
	box-shadow:
		0 0 0 28px rgba(231, 238, 242, 0.035),
		0 0 0 58px rgba(231, 238, 242, 0.025);
}

.ite-newsletter-decoration::after {
	width: clamp(72px, 22vw, 132px);
	aspect-ratio: 1;
	right: clamp(30px, 12vw, 120px);
	top: 0;
	background-color: rgba(231, 238, 242, 0.04);
}

@media (min-width: 768px) {
	.ite-newsletter-panel {
		grid-template-columns: minmax(0, 3fr) minmax(180px, 2fr);
		align-items: center;
	}

	.ite-newsletter-decoration {
		min-height: 220px;
	}
}

@media (min-width: 1180px) {
	.ite-newsletter-panel {
		grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
	}

	.ite-newsletter-decoration {
		min-height: 250px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ite-newsletter-cta {
		transition: none;
	}
}
