/* EmysHub component layer: icons, core-block overrides, list patterns. */

/* ---------- Mega menu icons (masked, so they inherit colour) -------------- */

.eh-mega__icon {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin-top: 2px;
	background-color: currentColor;
	-webkit-mask-image: var(--eh-mask);
	mask-image: var(--eh-mask);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 20px 20px;
	mask-size: 20px 20px;
}

.eh-mega__icon[data-icon="visa"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="seasonal"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="archive"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h13'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="coins"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M18.09 10.37A6 6 0 1 1 10.34 18'/%3E%3Cpath d='M7 6h1v4'/%3E%3Cpath d='m16.71 13.88.7.71-2.82 2.82'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="briefcase"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="globe"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="award"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='m15.48 12.89 1.52 9.11-5-3-5 3 1.52-9.11'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="laptop"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9'/%3E%3Cpath d='M2 16h20'/%3E%3Cpath d='M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="file"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="device"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="play"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m10 8 6 4-6 4V8z'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="mail"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-9 5.7a2 2 0 0 1-2 0L2 7'/%3E%3C/svg%3E"); }
.eh-mega__icon[data-icon="info"] { --eh-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }

/* ---------- Mega menu item internals ------------------------------------- */

.eh-mega__item {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	column-gap: 11px;
	padding: 10px 0;
	line-height: 1.2;
}

.eh-mega__item > a {
	display: block;
	grid-column: 2;
	color: var(--eh-ink);
}

.eh-mega__item strong {
	display: block;
	font-family: var(--eh-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	transition: color 0.16s var(--eh-ease);
}

.eh-mega__item .eh-mega__desc {
	display: block;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--eh-muted);
	margin-top: 3px;
}

.eh-mega__item:hover strong {
	color: var(--eh-accent);
}

.eh-mega__item:hover .eh-mega__icon {
	color: var(--eh-accent);
	opacity: 1;
}

.eh-mega__item .eh-mega__icon {
	opacity: 0.8;
	transition: opacity 0.16s var(--eh-ease), color 0.16s var(--eh-ease);
}

.eh-mega__heading {
	position: relative;
}

.eh-mega__heading a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* ---------- Mega menu bar / foot ----------------------------------------- */

.eh-mega__barrow {
	min-height: 58px;
	border: 0;
}

.eh-mega__footrow {
	border: 0;
}

.eh-mega__foottext,
.eh-mega__footlink {
	font-size: 13px;
	line-height: 1.5;
	color: var(--eh-muted);
	margin: 0;
}

.eh-mega__footlink a {
	font-weight: 600;
	color: var(--eh-ink);
	border-bottom: 1px solid var(--eh-rule-strong);
	padding-bottom: 1px;
}

.eh-mega__footlink a:hover {
	color: var(--eh-accent);
	border-color: var(--eh-accent);
}

.eh-mega__col--explore {
	background: var(--eh-tint);
	margin-inline: -22px 0;
	padding-inline: 22px;
}

/* ---------- Header core-block overrides ---------------------------------- */

.eh-brand .wp-block-site-title {
	margin: 0;
	font-size: var(--eh-fs-brand);
	line-height: 1;
	letter-spacing: -0.03em;
}

.eh-header .wp-block-site-title a {
	color: var(--eh-ink);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.eh-header .wp-block-site-title a::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--eh-accent);
	display: inline-block;
	flex: 0 0 10px;
}

.eh-header .wp-block-site-title a:hover {
	color: var(--eh-ink);
	text-decoration: none;
}

.eh-footer .wp-block-site-title {
	margin: 0;
	font-size: clamp(20px, 19px + 0.6vw, 26px);
	line-height: 1;
}

.eh-footer .wp-block-site-title a {
	color: #fff;
	text-decoration: none;
}

.eh-btn-wrap {
	margin: 0;
	line-height: 1;
}

.eh-btn-wrap a {
	text-decoration: none;
}

/* Search block */

.eh-search .wp-block-search__inside-wrapper {
	display: flex;
	position: relative;
	border: 1px solid var(--eh-rule);
	border-radius: 2px;
	background: var(--eh-paper);
	width: 200px;
	transition: border-color 0.18s var(--eh-ease), width 0.18s var(--eh-ease);
}

.eh-search .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--eh-ink);
	width: 240px;
}

.eh-search .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 9px 34px 9px 12px;
	font-family: var(--eh-sans);
	font-size: 14px;
	color: var(--eh-ink);
	width: 100%;
	outline: none;
	box-shadow: none;
	border-radius: 2px;
}

.eh-search .wp-block-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.eh-search .wp-block-search__inside-wrapper::after {
	content: "";
	position: absolute;
	right: 11px;
	top: 50%;
	width: 15px;
	height: 15px;
	transform: translateY(-50%);
	background: var(--eh-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center / 15px 15px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center / 15px 15px;
	pointer-events: none;
}

/* Navigation block */

.eh-nav.wp-block-navigation {
	flex: 1 1 auto;
	min-width: 0;
}

.eh-nav .wp-block-navigation__container {
	gap: 0;
	padding: 0;
	margin: 0;
	align-items: stretch;
}

.eh-nav .wp-block-navigation-item {
	display: flex;
	align-items: stretch;
}

.eh-nav .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	font-family: var(--eh-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--eh-ink-soft);
	padding: 0 14px;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	text-decoration: none;
	transition: color 0.16s var(--eh-ease), border-color 0.16s var(--eh-ease);
}

.eh-nav .wp-block-navigation-item__content:hover,
.eh-nav .current-menu-item .wp-block-navigation-item__content,
.eh-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--eh-accent);
	border-bottom-color: var(--eh-accent);
	text-decoration: none;
}

.eh-nav .wp-block-navigation__responsive-container-open,
.eh-nav .wp-block-navigation__responsive-container-close {
	display: none;
}

/* ---------- Utility row -------------------------------------------------- */

.eh-utility__row > .wp-block-shortcode {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--eh-muted);
	line-height: 1;
}

.eh-utility__row .wp-block-shortcode p {
	margin: 0;
}

/* ---------- Ranked list (sidebar) ---------------------------------------- */

.eh-ranked-list {
	counter-reset: ehrank;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.eh-ranked-list .wp-block-post {
	counter-increment: ehrank;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
	padding: 12px 0;
	border-top: 1px solid var(--eh-rule);
}

.eh-ranked-list .wp-block-post:first-child {
	border-top: 0;
	padding-top: 0;
}

.eh-ranked-list .wp-block-post::before {
	content: counter(ehrank);
	font-family: var(--eh-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1;
	color: var(--eh-rule-strong);
	padding-top: 2px;
}

.eh-ranked-list .wp-block-post:hover::before {
	color: var(--eh-accent);
}

.eh-ranked-list .wp-block-post-title {
	font-family: var(--eh-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	margin: 0;
}

.eh-ranked-list .wp-block-post-title a {
	color: var(--eh-ink);
	text-decoration: none;
}

.eh-ranked-list .wp-block-post:hover .wp-block-post-title a {
	color: var(--eh-accent);
}

/* ---------- Story grid in query loops ------------------------------------ */

.eh-stories .wp-block-post-template {
	display: grid;
	column-gap: 40px;
	row-gap: 46px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.eh-stories--2 .wp-block-post-template {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eh-stories--3 .wp-block-post-template {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eh-stories .wp-block-post {
	display: block;
}

.eh-card-loop .wp-block-post-terms {
	font-family: var(--eh-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--eh-accent);
	line-height: 1.2;
	margin-bottom: 7px;
}

.eh-card-loop .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.eh-card-loop .wp-block-post-title {
	font-family: var(--eh-serif);
	font-size: var(--eh-fs-card);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.012em;
	margin: 0;
}

.eh-card-loop .wp-block-post-title a {
	color: var(--eh-ink);
	text-decoration: none;
	transition: color 0.16s var(--eh-ease);
}

.eh-card-loop:hover .wp-block-post-title a {
	color: var(--eh-accent);
}

.eh-card-loop .wp-block-post-excerpt {
	margin-top: 6px;
}

.eh-card-loop .wp-block-post-excerpt__excerpt {
	font-size: var(--eh-fs-dek);
	line-height: 1.55;
	color: var(--eh-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.eh-card-loop .wp-block-post-date {
	font-family: var(--eh-sans);
	font-size: var(--eh-fs-date);
	font-weight: 400;
	color: var(--eh-muted);
	line-height: 1.4;
	margin-top: 8px;
}

.eh-card-loop .wp-block-post-date time {
	color: inherit;
}

/* Lead card variant */

.eh-card-loop--lead .wp-block-post-title {
	font-size: clamp(28px, 4vw, 50px);
	line-height: 1.03;
	letter-spacing: -0.026em;
}

.eh-card-loop--lead .wp-block-post-excerpt__excerpt {
	font-size: 18px;
	line-height: 1.5;
	color: var(--eh-ink-soft);
	-webkit-line-clamp: 3;
	margin-top: 10px;
}

.eh-card-loop--lead .wp-block-post-terms {
	margin-bottom: 12px;
}

/* Section header row for query sections */

.eh-sectionhead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 2px solid var(--eh-ink);
	padding-bottom: 10px;
	margin-bottom: 4px;
}

.eh-sectionhead .eh-sectionhead__title {
	font-family: var(--eh-sans);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--eh-ink);
	margin: 0;
}

.eh-sectionhead .eh-sectionhead__more {
	font-family: var(--eh-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
}

.eh-sectionhead__more a {
	color: var(--eh-muted);
	text-decoration: none;
}

.eh-sectionhead__more a:hover {
	color: var(--eh-accent);
}

/* ---------- Footer bits -------------------------------------------------- */

.eh-footer__list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 14px;
	margin: 0;
}

.eh-footer__list a {
	text-decoration: none;
}

.eh-footer__bottom p {
	margin: 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
}

.eh-footer__bottom .eh-footer__legal {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

/* ---------- Article chrome ---------------------------------------------- */

.eh-article-rail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--eh-rail);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}

/* ---------- Responsive: loops -------------------------------------------- */

@media (max-width: 900px) {
	.eh-stories--3 .wp-block-post-template,
	.eh-stories--2 .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
	}
}

@media (max-width: 700px) {
	.eh-stories--3 .wp-block-post-template,
	.eh-stories--2 .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	.eh-search .wp-block-search__inside-wrapper {
		width: 150px;
	}

	.eh-nav .wp-block-navigation-item__content {
		padding: 0 12px;
	}

	.eh-mega-toggle {
		border-left: 0;
		padding-left: 8px;
	}

	.eh-mega__col--explore {
		margin-inline: 0;
		padding-inline: 0;
		background: transparent;
	}
}

/* ---------- Template plumbing -------------------------------------------- */

/* A template part is a bare wrapper: let its children join the parent grid so
   the reading rail can actually stick. */
.eh-cols > .wp-block-template-part {
	display: contents;
}

.eh-cols > .wp-block-group {
	min-width: 0;
}

/* Cards live in grid loops, so rules and padding come from the grid gap. */
.eh-stories {
	row-gap: 34px;
}

.eh-stories .eh-card {
	border-top: 0;
	padding: 0;
}

.eh-grid-2 {
	row-gap: 34px;
}

.eh-grid-2 > .wp-block-group {
	min-width: 0;
}

/* ---------- Archive / search header -------------------------------------- */

.eh-query-head {
	padding-block: 34px 20px;
	border-bottom: 1px solid var(--eh-rule);
	margin-bottom: 6px;
}

.eh-query-head > * + * {
	margin-top: 10px;
}

.eh-query-head__title {
	font-family: var(--eh-serif);
	font-size: clamp(32px, 5vw, 54px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.028em;
	color: var(--eh-ink);
}

.eh-query-head__desc {
	font-size: 16px;
	line-height: 1.55;
	color: var(--eh-muted);
	max-width: 62ch;
}

/* ---------- Static page shell -------------------------------------------- */

.eh-page {
	max-width: 760px;
	padding-block: 40px 28px;
}

.eh-page > .wp-block-post-title {
	margin-bottom: 22px;
}

/* ---------- 404 ----------------------------------------------------------- */

.eh-404 {
	max-width: 620px;
	padding-block: clamp(40px, 8vw, 84px) 10px;
}

.eh-404 > * + * {
	margin-top: 14px;
}

/* ---------- Article furniture -------------------------------------------- */

.eh-article__meta > .wp-block-shortcode:first-child {
	flex: 1 1 auto;
}

.eh-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 48px;
	padding-top: 18px;
	border-top: 1px solid var(--eh-rule);
	font-family: var(--eh-sans);
	font-size: 14px;
}

.eh-postnav > * {
	min-width: 0;
}

.eh-postnav > :last-child {
	text-align: right;
}

.eh-postnav .post-navigation-link__label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--eh-muted);
	margin-bottom: 5px;
}

.eh-postnav .post-navigation-link__title {
	font-family: var(--eh-serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.24;
	color: var(--eh-ink);
}

.eh-postnav a:hover .post-navigation-link__title {
	color: var(--eh-accent);
}

.eh-article > .wp-block-post-terms {
	margin-top: 32px;
}

/* Post content arrives wrapped in its own div: keep the prose rhythm inside. */
.eh-prose .wp-block-post-content > * + * {
	margin-top: 1.4em;
}

.eh-prose .wp-block-post-content > p:first-child {
	margin-top: 0;
}

/* ---------- Rail internals ----------------------------------------------- */

.eh-rail .eh-ad {
	margin-block: 0;
}

.eh-rail .eh-signup {
	padding: 22px;
}

.eh-rail .eh-signup__title {
	font-size: 21px;
}

.eh-rail .eh-signup__copy {
	font-size: 13.5px;
}

.eh-rail__block--tall {
	display: none;
}

@media (min-width: 1400px) {
	.eh-rail__block--tall {
		display: block;
	}
}

/* ---------- Search variants ---------------------------------------------- */

.eh-search--wide .wp-block-search__inside-wrapper {
	width: 100%;
	max-width: 520px;
	overflow: hidden;
}

.eh-search--wide .wp-block-search__inside-wrapper::after {
	display: none;
}

.eh-search--wide .wp-block-search__input {
	padding: 12px 14px;
	font-size: 15px;
}

.eh-search--wide .wp-block-search__button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--eh-ink);
	color: #fff;
	font-family: var(--eh-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0 18px;
	cursor: pointer;
}

.eh-search--wide .wp-block-search__button:hover {
	background: var(--eh-accent);
}

/* ---------- Responsive: layout ------------------------------------------- */

@media (max-width: 900px) {
	.eh-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.eh-rail {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		border-top: 1px solid var(--eh-rule);
		padding-top: 24px;
	}

	.eh-rail__block--tall {
		display: none;
	}
}

@media (max-width: 620px) {
	.eh-rail {
		grid-template-columns: minmax(0, 1fr);
	}

	.eh-postnav {
		grid-template-columns: minmax(0, 1fr);
	}

	.eh-postnav > :last-child {
		text-align: left;
	}
}
/* ---------- Newsletter band ---------------------------------------------- */

.eh-signup__band .eh-signup__panel {
	min-width: 0;
}

.eh-signup__band .eh-signup__note {
	color: var(--eh-muted);
	font-size: 12px;
	margin-top: 8px;
}

/* The band sits on a light background, so the dark-card field styling must not
   leak into it. */
.eh-signup__band .eh-signup .fluentform input[type="text"],
.eh-signup__band .eh-signup .fluentform input[type="email"] {
	background: var(--eh-paper);
	border-color: var(--eh-rule-strong);
	color: var(--eh-ink);
}

.eh-signup__band .eh-signup .fluentform input::placeholder {
	color: var(--eh-muted);
}

/* ---------- Fluent Forms, brought into line ------------------------------ */

/* Fluent Forms ships its own palette with !important on the button; these have
   to win on specificity and weight rather than good manners. */
.fluentform .ff-el-form-control,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform select,
.fluentform textarea {
	font-family: var(--eh-sans) !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	border-radius: 2px !important;
	box-shadow: none !important;
	height: auto !important;
	min-height: 44px;
}

.fluentform .ff-btn-submit,
.fluentform .ff-btn.ff-btn-submit {
	background: var(--eh-accent) !important;
	border: 1px solid var(--eh-accent) !important;
	color: #fff !important;
	border-radius: 2px !important;
	font-family: var(--eh-sans) !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	padding: 13px 22px !important;
	box-shadow: none !important;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn.ff-btn-submit:hover {
	background: var(--eh-accent-deep) !important;
	border-color: var(--eh-accent-deep) !important;
	color: #fff !important;
}

.eh-signup .fluentform .ff-btn-submit,
.eh-signup .fluentform .ff-btn.ff-btn-submit {
	background: var(--eh-paper) !important;
	border-color: var(--eh-paper) !important;
	color: var(--eh-ink) !important;
}

.eh-signup .fluentform .ff-btn-submit:hover,
.eh-signup .fluentform .ff-btn.ff-btn-submit:hover {
	background: var(--eh-rule) !important;
	border-color: var(--eh-rule) !important;
	color: var(--eh-ink) !important;
}

.fluentform .ff-el-input--content input,
.fluentform .ff-el-input--content textarea {
	background: var(--eh-paper);
	color: var(--eh-ink);
}

.eh-signup .fluentform .ff-el-input--content input {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.fluentform .ff-message-success,
.fluentform .ff-message-error {
	font-family: var(--eh-sans);
	font-size: 14px;
	border-radius: 2px;
	box-shadow: none;
}

/* ---------- Empty ad space ----------------------------------------------- */

.eh-ad[data-state="unfilled"] {
	display: none;
}
/* ---------- Newsletter card on a dark ground ------------------------------ */

/* The article prose layer styles h2/p by element, so a signup card sitting
   inside .eh-prose needs its own colours back. */
.eh-newsletter-card .eh-signup__title {
	color: var(--eh-paper);
}

.eh-newsletter-card .eh-signup__copy,
.eh-newsletter-card .eh-signup__copy p {
	color: rgba(255, 255, 255, 0.72);
}

.eh-newsletter-card .eh-meta,
.eh-newsletter-card .eh-signup__note {
	color: rgba(255, 255, 255, 0.55);
}

/* The card is a panel, not body copy: no first-line indent or drop cap. */
.eh-newsletter-card .eh-signup > *:first-child {
	margin-top: 0;
}

.eh-prose .eh-newsletter-card,
.eh-prose .eh-newsletter-inline,
.eh-prose .eh-signup__band {
	margin-block: 36px;
}
/* ---------- Ranked list, lead column ------------------------------------- */

/* The lead column runs the numerals larger than the rail: they carry the
   hierarchy there, since the headlines sit beside a very large lead. */
.eh-lead .eh-ranked-list .wp-block-post {
	grid-template-columns: 30px minmax(0, 1fr);
	column-gap: 14px;
	padding: 14px 0;
}

.eh-lead .eh-ranked-list .wp-block-post::before {
	font-size: 24px;
	color: var(--eh-ink);
	opacity: 0.28;
}

.eh-lead .eh-ranked-list .wp-block-post:hover::before {
	opacity: 1;
	color: var(--eh-accent);
}

.eh-lead .eh-ranked-list .wp-block-post-title {
	font-family: var(--eh-serif);
	font-size: clamp(16.5px, 15.4px + 0.3vw, 18px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* A lead with no dek still needs breathing room under the date. */
.eh-lead__main .eh-meta {
	margin-top: 4px;
}
/* ---------- Story grid rhythm -------------------------------------------- */

/* Six cards in a three-column grid read as one long block unless each new
   row is opened by a hairline. The first row keeps the section head's heavy
   rule above it; from the second row on, a light rule marks the break. */
@media (min-width: 901px) {
	.eh-stories--3 .wp-block-post:nth-child(n + 4) {
		border-top: 1px solid var(--eh-rule);
		padding-top: 26px;
	}
}

@media (min-width: 701px) and (max-width: 900px) {
	.eh-stories--3 .wp-block-post:nth-child(n + 3),
	.eh-stories--2 .wp-block-post:nth-child(n + 3) {
		border-top: 1px solid var(--eh-rule);
		padding-top: 26px;
	}
}

@media (max-width: 700px) {
	.eh-stories--3 .wp-block-post:nth-child(n + 2),
	.eh-stories--2 .wp-block-post:nth-child(n + 2) {
		border-top: 1px solid var(--eh-rule);
		padding-top: 24px;
	}
}

/* Cards running two-up in a category column get a little more air too. */
.eh-grid-2 .eh-card-loop .wp-block-post + .wp-block-post .eh-card {
	border-top: 1px solid var(--eh-rule);
}