/* Editorial quote and link treatment: WCAG AA-friendly contrast and visible states. */
.entry-content iframe {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
}

.entry-lead {
	width: auto;
	margin: 0 0 clamp(28px, 4vw, 42px);
	color: var(--ink-soft);
	font-size: clamp(1.18rem, 2vw, 1.45rem);
	font-weight: 600;
	line-height: 1.45;
}

.entry-content blockquote.elmf-quote::before,
.entry-content blockquote.elmf-quote::after {
	position: absolute;
	color: #fed7c7;
	font-family: Georgia, serif;
	font-size: 5rem;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.entry-content blockquote.elmf-quote {
	position: relative;
	padding: clamp(3.8rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4.2rem) clamp(2rem, 4vw, 3.3rem);
	background: #fff3ed;
	font-weight: 700;
	text-align: center;
}

.entry-content blockquote.elmf-quote::before {
	content: '\201C' !important;
	top: .8rem;
	left: 1.2rem;
}

.entry-content blockquote.elmf-quote::after {
	content: '\201D' !important;
	right: 1.2rem;
	bottom: .5rem;
}

.entry-content blockquote.elmf-quote p {
	position: relative;
	z-index: 1;
}

.entry-header {
	text-align: center;
}

.entry-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .65rem;
}

/* Header controls: draw the icons so their optical centre is stable across fonts. */
.search-toggle,
.menu-toggle {
	line-height: 1;
}

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

.search-icon::after {
	content: '';
	position: absolute;
	right: -5px;
	bottom: -3px;
	width: 7px;
	height: 2px;
	background: currentColor;
	transform: rotate(45deg);
	transform-origin: left center;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
	display: block;
	width: 17px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.menu-icon {
	position: relative;
}

.menu-icon::before,
.menu-icon::after {
	content: '';
	position: absolute;
	left: 0;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.search-top {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.search-top label,
.search-input {
	display: block;
	width: 100%;
}

.search-close {
	align-self: flex-end;
	line-height: 1;
}

.search-help {
	margin-top: 18px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(17,17,17,.84);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(245,242,234,.18);
}

.home .site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
}

.search-toggle,
.menu-toggle,
.search-close,
.mega-menu-close {
	display: grid;
	place-items: center;
	line-height: 1;
}

.search-toggle {
	display: flex;
}

.search-icon {
	top: 0;
	flex: 0 0 14px;
	transform: translateY(-1px);
}

.menu-icon { margin: 0; }

.search-close,
.mega-menu-close {
	padding: 0;
	font-size: 1.6rem;
}

.button,
.section-heading > a {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
}

.button > span[aria-hidden="true"],
.section-heading > a > span[aria-hidden="true"] {
	display: inline-block;
	line-height: 1;
	transform: translateY(-1px);
}

.home-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 100svh;
	min-height: 100svh;
	margin: 0 calc(50% - 50vw);
	padding: clamp(150px, 24vw, 270px) max(24px, calc((100vw - 1200px) / 2)) clamp(48px, 8vw, 92px);
	background-color: #182127;
	background-image: var(--hero-image);
	background-position: center;
	background-size: cover;
	color: #fff;
	overflow: hidden;
}

.home-hero__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(17,17,17,.9) 0%, rgba(17,17,17,.58) 42%, rgba(17,17,17,.1) 100%), linear-gradient(0deg, rgba(17,17,17,.8), transparent 55%);
}

.home-hero__content {
	position: relative;
	z-index: 1;
	width: min(1100px, 72vw);
}

.home-hero__content .eyebrow { color: var(--lime); }
.home-hero__content h1 { margin: 0; font-family: var(--display); font-size: clamp(40px, 5vw, 70px); font-weight: 400; line-height: .94; text-transform: uppercase; }
.home-hero__content p:not(.eyebrow) { max-width: 600px; margin: 22px 0 28px; color: #fff; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; }
.button--light { border-color: #fff; background: #fff; color: var(--ink); }
.button--light:hover { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.section--featured { margin-top: clamp(48px, 7vw, 84px); }
.section-note { color: var(--muted); font-size: .85rem; }

@media(max-width:540px){
	.home-hero { height: 100svh; min-height: 100svh; padding: 120px 16px 48px; }
	.home-hero__content { width: 100%; }
	.home-hero__veil { background: linear-gradient(0deg, rgba(17,17,17,.88), rgba(17,17,17,.18) 75%); }
	.home-hero__content h1 { font-size: clamp(38px, 11vw, 58px); }
	.section-note { display: none; }
}

/* Home refinement: transparent hero header, revealed sticky header and content hierarchy. */
.site-header { box-shadow: none; }
.home .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .site-header.is-stuck { background: rgba(17,17,17,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(0,0,0,.16); animation: header-fade-in .22s ease both; }
.mega-menu { z-index: 1201 !important; }
@keyframes header-fade-in { from { opacity: .35; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.button--light { border-color: var(--orange); background: var(--orange); color: #fff; box-shadow: 0 8px 0 rgba(17,17,17,.2); }
.button--light:hover { border-color: var(--lime); background: var(--lime); color: var(--ink); box-shadow: 0 5px 0 rgba(17,17,17,.2); transform: translateY(3px); }
.button--light:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.home-hero .button--light { animation: cta-nudge 3.8s ease-in-out infinite; }
@keyframes cta-nudge { 0%, 72%, 100% { transform: translateY(0); } 78% { transform: translateY(-3px); } 84% { transform: translateY(0); } }
.home-masonry { display: block; columns: 3 280px; column-gap: 22px; }
.home-masonry .post-card { display: inline-flex; width: 100%; margin: 0 0 22px; break-inside: avoid; }
.ad-book { grid-template-columns: minmax(145px,.28fr) minmax(180px,.42fr) minmax(0,1fr); grid-template-areas: 'image heading details'; align-items: start; gap: clamp(22px,4vw,52px); background: #fff; }
.ad-book__image { grid-area: image; align-self: start; justify-self: center; }
.ad-book__heading { grid-area: heading; }
.ad-book__details { grid-area: details; }
.ad-book h2 { max-width: 250px; margin: 0 !important; font-size: clamp(1.8rem,3vw,3.1rem); line-height: .98; }
.ad-book__image img { width: auto; max-width: 100%; max-height: 300px; border-radius: 7px 12px 12px 7px; clip-path: polygon(3% 0,96% 1%,100% 97%,5% 100%,0 4%); box-shadow: 8px 10px 0 rgba(17,17,17,.12); }
@media (prefers-reduced-motion: reduce) { .home-hero .button--light, .home .site-header.is-stuck { animation: none; } }
@media(max-width:540px){ .home-masonry { columns: 1; } .ad-book { grid-template-columns: 1fr; grid-template-areas: 'heading' 'image' 'details'; } .ad-book h2 { max-width: 100%; } .ad-book__image { justify-self: start; } }

/* Book promo: three-column editorial banner with a deliberate mobile collapse. */
.ad-book {
	grid-template-columns: minmax(120px, .24fr) minmax(150px, .28fr) minmax(250px, 1fr) minmax(205px, .36fr);
	grid-template-areas: 'image facts copy cta';
	align-items: center;
	gap: clamp(10px, 2vw, 28px);
	min-height: 220px;
	padding: 18px clamp(14px, 2vw, 28px);
	border: 1.5px solid var(--orange);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(17,17,17,.08);
}
.ad-book__image { grid-area: image; align-self: center; justify-self: center; }
.ad-book__image img { width: auto; max-width: 120px; max-height: 170px; border-radius: 5px 9px 9px 5px; clip-path: polygon(3% 0,96% 1%,100% 97%,5% 100%,0 4%); box-shadow: 5px 7px 0 rgba(17,17,17,.12); }
.ad-book__facts { grid-area: facts; display: grid; gap: 16px; align-self: stretch; align-content: center; padding-left: clamp(12px, 2vw, 26px); border-left: 1px solid rgba(17,17,17,.16); }
.ad-book__fact { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: .82rem; font-weight: 600; line-height: 1.3; }
.ad-book__fact-icon { display: grid; flex: 0 0 32px; place-items: center; color: var(--orange); }
.ad-book__fact-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ad-book__copy { grid-area: copy; align-self: center; padding-left: clamp(18px, 2.5vw, 38px); border-left: 1px solid rgba(17,17,17,.16); }
.ad-book__copy .ad-book__eyebrow { margin: 0 0 6px; color: var(--orange); font-size: clamp(.82rem, 1.2vw, 1rem); letter-spacing: 1.6px; }
.ad-book__copy h2 { max-width: none; margin: 0 0 14px !important; font-size: clamp(1.55rem, 2.35vw, 2.7rem); line-height: .98; }
.ad-book__copy>p:last-child { max-width: 620px; margin: 0; font-size: clamp(.82rem, 1.1vw, .98rem); line-height: 1.45; }
.ad-book__cta { grid-area: cta; display: grid; place-items: center; min-height: 100%; padding-left: clamp(18px, 2.5vw, 38px); border-left: 1px solid rgba(17,17,17,.16); background: radial-gradient(circle, transparent 0 40%, rgba(255,90,31,.13) 41% 42%, transparent 43% 55%, rgba(255,90,31,.12) 56% 57%, transparent 58%); }
.ad-book__cta .button { min-width: 116px; padding: 11px 12px; border: 0; font-size: clamp(.88rem, 1.2vw, 1.15rem); box-shadow: none; }
.ad-book__cta .button span[aria-hidden] { margin-left: 17px; font-size: 1.35em; line-height: 0; }
@media(max-width:1050px){
	.ad-book { grid-template-columns: minmax(130px, .25fr) minmax(160px, .34fr) minmax(0, 1fr); grid-template-areas: 'image facts copy' 'image facts cta'; }
	.ad-book__cta { justify-items: start; min-height: 0; padding: 0 0 0 clamp(18px, 2.5vw, 38px); border-left: 0; background: none; }
}
@media(max-width:700px){
	.ad-book { grid-template-columns: 1fr 1fr; grid-template-areas: 'image copy' 'facts facts' 'cta cta'; align-items: start; gap: 20px; padding: 22px; }
	.ad-book__image { justify-self: center; }
	.ad-book__copy { padding-left: 0; border-left: 0; }
	.ad-book__copy h2 { font-size: clamp(1.55rem, 6vw, 2.2rem); }
	.ad-book__copy>p:last-child { font-size: .9rem; }
	.ad-book__facts { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 0 0; border-top: 1px solid rgba(17,17,17,.16); border-left: 0; }
	.ad-book__fact { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .74rem; }
	.ad-book__cta { justify-items: stretch; padding: 4px 0 0; border-top: 1px solid rgba(17,17,17,.16); }
	.ad-book__cta .button { width: 100%; }
}
@media(max-width:480px){
	.ad-book { grid-template-columns: 1fr; grid-template-areas: 'copy' 'image' 'facts' 'cta'; }
	.ad-book__image { justify-self: center; }
	.ad-book__image img { max-height: 220px; }
	.ad-book__copy { text-align: center; }
	.ad-book__copy .ad-book__eyebrow { margin-bottom: 8px; }
}

.most-visited-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; }
.most-visited-grid .post-card { height: 100%; min-width: 0; }
.most-visited-grid .post-card__image { aspect-ratio: 4 / 3; }
.most-visited-grid .post-card__content { min-height: 148px; }
.most-visited-grid .post-card__title { min-height: 3.2em; font-size: clamp(18px, 1.7vw, 24px); }
@media(max-width:1100px){ .most-visited-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media(max-width:800px){ .most-visited-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; } .most-visited-grid .post-card__content { min-height: 136px; } }
@media(max-width:540px){ .most-visited-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; } .most-visited-grid .post-card__content { min-height: 132px; } }

/* Interaction hierarchy and article header treatment. */
.single-post .site-header {
	position: sticky;
	background: var(--cream);
	color: var(--ink);
	box-shadow: none;
}
.single-post .site-header .social-links a { border-color: rgba(17,17,17,.3); color: var(--ink); }
.single-post .site-header .search-toggle,
.single-post .site-header .menu-toggle { border-color: var(--ink); color: var(--ink); }
.single-post .site-header.is-stuck { background: rgba(17,17,17,.84); color: var(--cream); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.single-post .site-header.is-stuck .social-links a { border-color: rgba(245,242,234,.35); color: var(--cream); }
.single-post .site-header.is-stuck .search-toggle,
.single-post .site-header.is-stuck .menu-toggle { border-color: var(--cream); color: var(--cream); }
.post-card__category { background: #e8e3da !important; color: var(--ink) !important; }
.post-card__category:hover { background: var(--lime) !important; color: var(--ink) !important; }
.button--accent,
.button--light { background: var(--orange); border-color: var(--orange); color: #fff; }
.button--accent:hover,
.button--light:hover { background: #a9360b; border-color: #a9360b; color: #fff; }
.home-hero__text-link { display: block; color: inherit; border-radius: 8px; transition: color .2s ease, transform .2s ease; }
.home-hero__text-link:hover { color: var(--lime); transform: translateY(-3px); }
.home-hero__text-link:hover h1 { text-shadow: 0 4px 0 rgba(17,17,17,.34); }
.home-hero__text-link:focus-visible { outline: 3px solid #fff; outline-offset: 8px; }
.home-hero__text-link p { transition: color .2s ease; }
.home-hero__text-link:hover p { color: #fff; }

.entry-content a {
	color: #b9380b !important;
	text-decoration: none !important;
	box-shadow: inset 0 -2px 0 #b9380b;
	font-weight: 600;
	transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.entry-content a:hover {
	color: #7c2d12 !important;
	background-color: #ffedd5;
	box-shadow: inset 0 -3px 0 #7c2d12;
}

.entry-content a:focus-visible {
	color: #7c2d12 !important;
	background-color: #ffedd5;
	box-shadow: 0 0 0 3px #111827, inset 0 -2px 0 #7c2d12;
	outline: 2px solid #ffffff;
	outline-offset: 1px;
}

/* Sticky article sidebar: keep it below the header and keep sharing controls in one row. */
@media(min-width:801px){
	.article-layout{grid-template-columns:280px minmax(0,var(--reading));}
	.article-aside{top:94px;}
}
.share-card>p{color:var(--ink);font-size:16px;font-weight:700;letter-spacing:0;line-height:1.25;text-transform:none;}
.share-card>div,.article-share-links{flex-wrap:nowrap;}
.copy-link svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

/* Final polish: book CTA and regular-height latest-post cards. */
.ad-book__image img{max-width:140px;max-height:195px;}
.ad-book__cta{background:none;}
.ad-book__cta .button{transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease;}
.ad-book__cta .button:hover,.ad-book__cta .button:focus-visible{transform:translateY(-4px) scale(1.03);box-shadow:0 7px 0 rgba(17,17,17,.18);}
.ad-book__cta .button span[aria-hidden]{display:inline-block;transition:transform .2s ease;}
.ad-book__cta .button:hover span[aria-hidden],.ad-book__cta .button:focus-visible span[aria-hidden]{transform:translateX(5px);}
.home-masonry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;columns:auto;}
.home-masonry .post-card{display:flex;width:auto;height:100%;margin:0;}
.home-masonry .post-card__image{aspect-ratio:16/9;}
.home-masonry .post-card__content{min-height:170px;}
@media(max-width:800px){.home-masonry{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}.home-masonry .post-card__content{min-height:150px;}}
@media(max-width:540px){.home-masonry{grid-template-columns:1fr;}.home-masonry .post-card__content{min-height:0;}}
@media(prefers-reduced-motion:reduce){.ad-book__cta .button:hover,.ad-book__cta .button:focus-visible{transform:none;}.ad-book__cta .button span[aria-hidden]{transition:none;}}

/* Article book promotion: full-width module between the article and related stories. */
.single article > .ad-book {
	width: var(--wrap);
	max-width: 100%;
	margin: clamp(42px, 7vw, 84px) auto clamp(44px, 7vw, 82px);
	box-sizing: border-box;
}
.single article > .ad-book .ad-book__cta .button,
.single article > .ad-book .button--accent {
	color: #fff !important;
	font-family: var(--subhead);
	font-weight: 700;
	text-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.single article > .ad-book .ad-book__cta .button:hover,
.single article > .ad-book .ad-book__cta .button:focus-visible {
	color: #fff !important;
}
.single article > .ad-book .ad-book__cta .button {
	min-width: 168px;
	white-space: nowrap;
	flex-wrap: nowrap;
}

/* The book module also appears on the home page: keep its CTA on one line everywhere. */
.ad-book__cta .button {
	min-width: 205px;
	width: 100%;
	max-width: 100%;
	flex: 1 1 auto;
	white-space: nowrap !important;
	word-break: keep-all;
	overflow-wrap: normal;
	flex-wrap: nowrap;
	display: inline-flex;
}

/* Keep the CTA inside its grid track while preserving a single text line. */
.ad-book__cta { min-width: 0; overflow: hidden; padding-left: clamp(10px, 1.2vw, 18px); }
.ad-book__cta .button { min-width: 0; }

.ad-book__cta .button > span:not(.screen-reader-text) { white-space: nowrap; flex: 0 0 auto; }

/* Sources: a clear, friendly editorial endnote rather than a bare heading. */
.elmf-sources-box {
	position: relative;
	margin: clamp(42px, 7vw, 76px) 0 1.8em;
	padding: clamp(24px, 4vw, 38px) clamp(22px, 4vw, 42px);
	border: 1.5px solid var(--orange);
	border-radius: var(--radius-lg);
	background: #fff8f1;
	box-shadow: 0 8px 24px rgba(17,17,17,.06);
}
.elmf-sources-box__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px !important;
	color: var(--ink);
	font-family: var(--body) !important;
	font-size: clamp(1.25rem, 2.4vw, 1.8rem) !important;
	font-weight: 700 !important;
	letter-spacing: -.025em;
	line-height: 1.15 !important;
	text-transform: none !important;
}
.elmf-sources-box__icon {
	display: inline-grid;
	flex: 0 0 38px;
	place-items: center;
	width: 38px;
	height: 38px;
	color: var(--orange);
	border-radius: 0;
	background: transparent;
}
.elmf-sources-box__icon::before {
	content: "";
	display: block;
	width: 34px;
	height: 34px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H12v17H6.5A2.5 2.5 0 0 0 4 22.5v-17Zm16 0A2.5 2.5 0 0 0 17.5 3H12v17h5.5a2.5 2.5 0 0 1 2.5 2.5v-17Z'/%3E%3Cpath d='M7 6h2M15 6h2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.elmf-sources-box__icon svg { display: block; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.elmf-sources-box__list { margin: 0 !important; }
.elmf-sources-box__list ul { margin: 0; padding-left: 1.25em; }
.elmf-sources-box__list li { padding-left: .2em; }
.elmf-sources-box__list > :last-child { margin-bottom: 0 !important; }
.elmf-sources-box__list li { margin-bottom: .65em; }
.elmf-sources-box__list a { font-weight: 600; }

/* The legacy sources block uses an inline style; keep the same book icon
   treatment even when old articles have not yet been re-rendered. */
.entry-content div[style*="border:2px solid #ff6a00"]:before {
	content: '' !important;
	width: 34px;
	height: 34px;
	background: var(--orange);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H12v17H6.5A2.5 2.5 0 0 0 4 22.5v-17Zm16 0A2.5 2.5 0 0 0 17.5 3H12v17h5.5a2.5 2.5 0 0 1 2.5 2.5v-17Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 6h2M15 6h2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H12v17H6.5A2.5 2.5 0 0 0 4 22.5v-17Zm16 0A2.5 2.5 0 0 0 17.5 3H12v17h5.5a2.5 2.5 0 0 1 2.5 2.5v-17Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 6h2M15 6h2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.search-popular { margin: 28px 0 24px; }
.search-popular__label { margin: 0 0 10px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-dialog .search-popular__terms { display: flex !important; flex-wrap: wrap; gap: 12px !important; }
.search-dialog button.popular-search-term { display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; margin: 0 !important; border: 2px solid var(--orange) !important; border-radius: 999px !important; padding: 7px 15px; background: transparent; color: var(--orange-dark); cursor: pointer; font-size: .9rem; line-height: 1.1; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.popular-search-term:hover, .popular-search-term:focus-visible { border-color: var(--orange); background: var(--orange); color: var(--ink); transform: translateY(-1px); }
.popular-search-term:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* About page: full-width dark introduction with a stable editorial rail. */
.site-main--about { width: 100%; }
.about-hero { margin: 0; padding: 118px 24px 40px; background: var(--ink); color: var(--cream); }
.about-hero__inner { width: var(--wrap); margin: 0 auto; }
.about-hero .eyebrow { color: var(--lime); }
.about-hero h1 { margin: 0; color: var(--cream); font-family: var(--display); font-size: clamp(3.6rem, 8vw, 7rem); line-height: .9; text-transform: uppercase; }
.about-page { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(36px, 6vw, 56px); align-items: start; width: var(--wrap); margin: 0 auto; padding: 48px 0 72px; }
.about-page__aside { position: sticky; top: 100px; }
.about-page__portrait { width: 100%; margin: 0 0 14px; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3 / 4; background: var(--line); }
.about-page__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.about-page__name { margin: 0; font-size: 1.08rem; font-weight: 700; }
.about-page__role { margin: 0 0 16px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.about-socials .social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.about-socials .social-links a { width: 34px; height: 34px; border: 0; background: var(--ink); color: var(--cream); }
.about-socials .social-links a:first-child { background: #229ed9; }
.about-socials .social-links a:nth-child(3), .about-socials .social-links a:nth-child(4) { display: none; }
.about-socials .social-links a:last-child { background: #229ed9; }
.about-page__content { min-width: 0; font-size: 1.08rem; }
.about-page__content h2 { margin-top: 2.2em; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.2rem); text-transform: uppercase; }
.about-page__content blockquote { margin: 1.5em 0; border: 0; background: #fff8f1; box-shadow: inset 0 0 0 1.5px var(--orange); }
.about-page__content > :first-child { margin-top: 0; }

@media (max-width: 800px) {
	.about-page { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
	.about-hero { padding: 86px 16px 32px; }
	.about-page { grid-template-columns: 1fr; width: var(--wrap); padding-top: 32px; }
	.about-page__aside { position: static; display: grid; grid-template-columns: 92px 1fr; column-gap: 14px; align-items: center; }
	.about-page__portrait { grid-row: span 3; width: 92px; margin: 0; }
	.about-page__name, .about-page__role, .about-socials { grid-column: 2; }
	.about-page__role { margin-bottom: 8px; }
}

@media (max-width: 540px) {
	.ad-book__cta .button {
		width: 100%;
		min-width: 0;
		flex: 1 1 auto;
		max-width: none;
	}
}

/* Interior menu: escape sticky/backdrop stacking contexts on every template. */
body.category-menu-open { overflow: hidden; }
body.category-menu-open .site-header {
	position: static !important;
	z-index: 2147483000 !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}
body.category-menu-open .site-header .mega-menu {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483001 !important;
	display: block;
	overflow-y: auto;
}

/* Optical centring for close and search controls, including mobile. */
.search-toggle .search-icon { display: inline-block; flex: 0 0 14px; }
.search-close,
.mega-menu-close { line-height: 1 !important; font-size: 0 !important; }
.search-close::before { content: '×'; display: block; font-size: 1.6rem; line-height: 1; transform: translateY(-1px); }
.mega-menu-close span { display: block; font-size: 1.6rem; line-height: 1; transform: translateY(-1px); }
.search-icon { transform: translateY(0); }

/* Icono vectorial estable: evita que el mango de la lupa desaparezca en móvil. */
.search-toggle .search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 0;
	border-radius: 0;
	transform: none;
}

.search-toggle .search-icon::after {
	display: none !important;
	content: none !important;
}

.search-toggle .search-icon::before {
	display: none !important;
	content: none !important;
}

.search-toggle .search-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.search-toggle .search-icon circle,
.search-toggle .search-icon path {
	fill: none !important;
	stroke: currentColor !important;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8 !important;
}

/* Cierres geométricos: el aspa no depende de la métrica de la tipografía. */
.mega-menu-close .close-icon,
.search-close .close-icon {
	display: block;
	width: 22px;
	height: 22px;
	overflow: visible;
}

.mega-menu-close .close-icon path,
.search-close .close-icon path {
	fill: none !important;
	stroke: currentColor !important;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.4 !important;
}

.mega-menu-close > span,
.search-close > span {
	display: none !important;
}

/* Detail header: a clean, optically centred magnifying glass. */
.single-post .search-toggle .search-icon {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border: 0;
	border-radius: 0;
	transform: none;
}

.single-post .search-toggle .search-icon::before {
	content: '';
	position: absolute;
	left: 1px;
	top: 1px;
	width: 11px;
	height: 11px;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.single-post .search-toggle .search-icon::after {
	content: '';
	position: absolute;
	left: 12px;
	top: 13px;
	width: 7px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: rotate(45deg);
	transform-origin: left center;
}

/* Detail page hierarchy: slightly smaller and less imposing titles. */
.single-post .entry-title {
	font-size: clamp(40px, 6vw, 76px);
	font-weight: 400;
}

.single-post .entry-content h2 {
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 400;
}

/* Multimedia editorial blocks: keep embeds fluid and the gallery readable. */
.entry-content .elmf-video-embed {
	margin: clamp(2rem, 5vw, 4rem) 0;
}

.entry-content .elmf-video-embed iframe {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--radius);
	background: #111;
}

.entry-content .elmf-media-caption,
.entry-content .elmf-media-credit {
	margin: .7rem 0 0;
	color: var(--muted);
	font-size: .8rem;
	line-height: 1.45;
}

.entry-content .elmf-media-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: clamp(2rem, 5vw, 4rem) 0;
}

.entry-content .elmf-media-gallery figure {
	min-width: 0;
	margin: 0;
}

.entry-content .elmf-media-gallery figure a,
.entry-content .elmf-media-gallery figure img {
	display: block;
	width: 100%;
}

.entry-content .elmf-media-gallery figure img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.entry-content .elmf-media-gallery figcaption {
	font-size: .78rem;
	line-height: 1.35;
}

.entry-content .elmf-media-gallery .elmf-media-credit {
	grid-column: 1 / -1;
}

/* The mobile search control must keep the magnifying glass visible inside its circle. */
@media (max-width: 540px) {
	.search-toggle {
		display: grid !important;
		place-items: center;
		width: 40px;
		min-width: 40px;
		height: 40px;
		padding: 0 !important;
	}

	.search-toggle .search-icon {
		display: block !important;
		width: 18px !important;
		height: 18px !important;
		min-width: 18px;
		flex: 0 0 18px !important;
		margin: 0;
		border: 0;
		transform: none;
	}

	.search-toggle .search-icon::after {
		display: none !important;
	}

	.search-top label {
		position: relative;
	}

	.search-top label::before {
		content: '';
		position: absolute;
		z-index: 1;
		left: 0;
		top: 19px;
		width: 15px;
		height: 15px;
		border: 2px solid currentColor;
		border-radius: 50%;
		pointer-events: none;
	}

	.search-top label::after {
		content: '';
		position: absolute;
		z-index: 1;
		left: 14px;
		top: 34px;
		width: 7px;
		height: 2px;
		background: currentColor;
		transform: rotate(45deg);
		pointer-events: none;
	}

	.search-input {
		padding-left: 30px;
	}

	.entry-content .elmf-media-gallery {
		grid-template-columns: 1fr;
	}

	.entry-content .elmf-media-gallery figure img {
		aspect-ratio: 16 / 10;
	}
}

/* Theme 1 parity for this module only: exact control sizing and link glyph. */
.material-symbols-rounded{font-family:'Material Symbols Rounded';font-weight:400;font-style:normal;font-size:1.18rem;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:'liga';-webkit-font-feature-settings:'liga';font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;}
@media(min-width:801px){.article-layout{grid-template-columns:250px minmax(0,var(--reading));}.elmf-author-avatar{width:48px;height:48px;}.share-card>div,.article-share-links{gap:8px;}.copy-link,.article-share-links a{flex:0 0 38px;width:38px;height:38px;min-height:38px;}.copy-link svg{display:none;}}
@media(max-width:800px){.elmf-author-avatar{width:48px;height:48px;}.share-card>div,.article-share-links{gap:8px;}.copy-link,.article-share-links a{flex:0 0 36px;width:36px;height:36px;min-height:36px;}.copy-link svg{display:none;}}
@media(max-width:540px){.share-card>div,.article-share-links{gap:6px;}.copy-link,.article-share-links a{flex-basis:34px;width:34px;height:34px;min-height:34px;}}
@media(max-width:390px){.share-card>div,.article-share-links{gap:5px;}.copy-link,.article-share-links a{flex-basis:33px;width:33px;height:33px;min-height:33px;}}

/* Hero breathing room: keep the story text deliberately clear of the edges. */
.home-hero {
	padding-left: max(52px, calc((100vw - 1200px) / 2 + 52px));
	padding-right: max(52px, calc((100vw - 1200px) / 2 + 52px));
	padding-bottom: clamp(88px, 12vh, 148px);
}
.home-hero__content { width: min(960px, 68vw); }
@media(max-width:800px){
	.home-hero { padding-left: 36px; padding-right: 36px; padding-bottom: 88px; }
	.home-hero__content { width: min(100%, 680px); }
}
@media(max-width:540px){
	.home-hero { padding: 120px 28px 72px; }
}

/* Interior navigation: keep the full-screen menu above the sticky masthead. */
.site-header { z-index: 1500; }
.site-header .mega-menu {
	position: fixed;
	inset: 0;
	z-index: 2000 !important;
	isolation: isolate;
}
.site-header .mega-menu__inner {
	padding-top: clamp(104px, 12vh, 148px);
}

/* A backdrop-filter on a sticky ancestor creates a containing block for fixed
 * descendants. Remove it only while the full-screen menu is open so the panel
 * can use the viewport rather than the 74px masthead as its containing box. */
.category-menu-open .site-header {
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}
