.td-editorial-style {
	margin: clamp(24px, 4vw, 52px) 0;
	padding: clamp(22px, 4vw, 46px);
	border: 1px solid rgb(15 38 65 / 12%);
	border-radius: 24px;
	background: linear-gradient(145deg, #f7fbff 0%, #fff 62%, #fff7ef 100%);
	box-shadow: 0 18px 50px rgb(15 38 65 / 8%);
}

.td-editorial-style__header {
	max-width: 780px;
	margin-bottom: 28px;
}

.td-editorial-style__header > p:first-child,
.td-editorial-style-card__eyebrow {
	margin: 0 0 8px;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: #285b87;
}

.td-editorial-style__header h2 {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.45rem);
	line-height: 1.08;
}

.td-editorial-style__header > p:last-child {
	margin: 12px 0 0;
	max-width: 70ch;
	color: #526477;
	font-size: 1rem;
	line-height: 1.65;
}

.td-editorial-style__categories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 26px;
}

.td-editorial-style-card {
	display: flex;
	flex-direction: column;
	min-height: 220px;
	padding: 20px;
	border: 1px solid rgb(15 38 65 / 11%);
	border-radius: 18px;
	background: #fff;
}

.td-editorial-style-card h3 {
	margin: 0 0 10px;
	font-size: 1.25rem;
	line-height: 1.25;
}

.td-editorial-style-card h3 a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	color: #10243b;
	text-decoration: none;
}

.td-editorial-style-card h3 a:hover,
.td-editorial-style-card h3 a:focus-visible {
	color: #1679b6;
}

.td-editorial-style-card > p:not(.td-editorial-style-card__eyebrow) {
	margin: 0 0 18px;
	color: #5b6b7c;
	line-height: 1.55;
}

.td-editorial-style-card__counts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.td-editorial-style-card__counts span {
	padding: 7px 10px;
	border-radius: 999px;
	background: #eef6fb;
	font-size: .78rem;
	color: #42566a;
}

.td-editorial-style-card__counts strong {
	color: #10243b;
}

.td-editorial-style__scope {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.td-editorial-style__scope-item {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 5px 16px;
	min-height: 96px;
	padding: 17px 18px;
	border: 1px solid rgb(15 38 65 / 13%);
	border-radius: 16px;
	background: #fff;
	color: #13283e;
	text-decoration: none;
}

.td-editorial-style__scope-item.is-current {
	border-color: #183750;
	background: #183750;
	color: #fff;
}

.td-editorial-style__scope-label {
	font-size: 1rem;
	font-weight: 800;
}

.td-editorial-style__scope-item small {
	grid-column: 1;
	color: inherit;
	opacity: .74;
	line-height: 1.4;
}

.td-editorial-style__scope-item strong {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	font-size: 1.1rem;
}

.td-editorial-style__scope-item:not(.is-current):hover,
.td-editorial-style__scope-item:not(.is-current):focus-visible {
	border-color: #55a9d7;
	box-shadow: 0 8px 22px rgb(26 107 157 / 10%);
}

.td-editorial-style__scope-item:focus-visible,
.td-editorial-style-card a:focus-visible,
.td-editorial-style__refinements summary:focus-visible,
.td-editorial-style__refinement-list a:focus-visible {
	outline: 3px solid #63bce8;
	outline-offset: 3px;
}

.td-editorial-style__refinements {
	margin-top: 20px;
	border-top: 1px solid rgb(15 38 65 / 10%);
	padding-top: 18px;
}

.td-editorial-style__refinements > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	cursor: pointer;
	font-weight: 800;
	color: #19344f;
}

.td-editorial-style__refinements > summary small {
	font-weight: 600;
	color: #6a7c8e;
}

.td-editorial-style__refinement-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	padding-top: 18px;
}

.td-editorial-style__refinement-grid > section {
	padding: 16px;
	border: 1px solid rgb(15 38 65 / 9%);
	border-radius: 14px;
	background: rgb(255 255 255 / 84%);
}

.td-editorial-style__refinement-grid h3 {
	margin: 0 0 10px;
	font-size: .84rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #31546f;
}

.td-editorial-style__refinement-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.td-editorial-style__refinement-list li + li {
	margin-top: 7px;
}

.td-editorial-style__refinement-list a,
.td-editorial-style__refinement-list li > span,
.td-editorial-style__refinement-list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	padding: 9px 10px;
	border-radius: 10px;
	color: #1a334b;
	text-decoration: none;
}

.td-editorial-style__refinement-list a:hover,
.td-editorial-style__refinement-list a:focus-visible,
.td-editorial-style__refinement-list summary:hover {
	background: #eef6fb;
}

.td-editorial-style__refinement-list small {
	color: #718091;
}

.td-editorial-style__refinement-list details > .td-editorial-style__refinement-list {
	margin: 5px 0 0 12px;
	padding-left: 10px;
	border-left: 1px solid rgb(15 38 65 / 12%);
}

.td-editorial-style__refinement-all {
	margin-left: 10px;
	font-size: .82rem;
	font-weight: 700;
}

/* Keep closed desktop navigation panels inside the viewport on this surface. */
@media (min-width: 1025px) {
	body .td-nav-system .td-nav-system__panel--slug-architettura,
	body .td-nav-system .td-nav-system__panel--slug-lifestyle {
		right: 0 !important;
		left: auto !important;
		transform: translateY(8px) !important;
	}

	body .td-nav-system__root-item:hover > .td-nav-system__panel--slug-architettura,
	body .td-nav-system__root-item:focus-within > .td-nav-system__panel--slug-architettura,
	body .td-nav-system__root-item:hover > .td-nav-system__panel--slug-lifestyle,
	body .td-nav-system__root-item:focus-within > .td-nav-system__panel--slug-lifestyle {
		transform: translateY(0) !important;
	}
}

@media (max-width: 980px) {
	.td-editorial-style__categories,
	.td-editorial-style__refinement-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.td-editorial-style {
		margin: 20px -4px 30px;
		padding: 20px 16px;
		border-radius: 18px;
	}

	.td-editorial-style__categories,
	.td-editorial-style__scope,
	.td-editorial-style__refinement-grid {
		grid-template-columns: 1fr;
	}

	.td-editorial-style-card {
		min-height: 0;
	}

	.td-editorial-style__scope-item {
		min-height: 88px;
	}

	.td-editorial-style__refinements:not([open]) > summary::after {
		content: "+";
		font-size: 1.3rem;
	}

	.td-editorial-style__refinements[open] > summary::after {
		content: "−";
		font-size: 1.3rem;
	}

	.td-editorial-style__refinements > summary small {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.td-editorial-style *,
	.td-editorial-style *::before,
	.td-editorial-style *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
