/*
 * Cavais Editorial v0.2.0
 * Rebrand the prototype by changing the variables below.
 */
:root {
    --ep-accent: #2563eb;
    --ep-accent-hover: #1d4ed8;
    --ep-ink: #101014;
    --ep-muted: #686870;
    --ep-surface: #ffffff;
    --ep-soft: #f5f5f7;
    --ep-border: #e4e4e8;
    --ep-shell: 1400px;
    --ep-article: 790px;
    --ep-radius: 0px;
    --ep-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ep-site {
    color: var(--ep-ink);
    font-family: var(--ep-font);
    padding-bottom: clamp(64px, 8vw, 120px);
}

.ep-site *,
.ep-site *::before,
.ep-site *::after {
    box-sizing: border-box;
}

.ep-shell {
    width: min(calc(100% - 40px), var(--ep-shell));
    margin-inline: auto;
}

.ep-site a {
    color: inherit;
    text-decoration: none;
}

.ep-site img {
    display: block;
    width: 100%;
    height: auto;
}

.ep-kicker {
    margin: 0 0 12px;
    color: var(--ep-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.ep-home {
	padding-top: clamp(42px, 5vw, 72px);
}

.ep-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(520px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.ep-feature-card,
.ep-compact-card,
.ep-card {
    overflow: hidden;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    background: var(--ep-surface);
}

.ep-feature-card {
    position: relative;
    display: flex;
    min-height: 620px;
    isolation: isolate;
}

.ep-feature-card__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    overflow: hidden;
    background: var(--ep-soft);
}

.ep-feature-card__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            180deg,
            rgba(10, 10, 12, 0.03) 20%,
            rgba(10, 10, 12, 0.20) 58%,
            rgba(10, 10, 12, 0.82) 100%
        );
}

.ep-card__media {
    display: block;
    overflow: hidden;
    background: var(--ep-soft);
}

.ep-feature-card__media img,
.ep-card__media img,
.ep-compact-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.ep-feature-card:hover img,
.ep-card:hover img,
.ep-compact-card:hover img {
    transform: scale(1.025);
}

.ep-feature-card__content {
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: clamp(28px, 4vw, 54px);
    color: #ffffff;
}

.ep-feature-card .ep-pill {
    min-height: 28px;
    padding: 5px 10px;
    background: rgba(8, 8, 10, 0.76);
    color: #ffffff !important;
    backdrop-filter: blur(7px);
}

.ep-feature-card .ep-pill:hover,
.ep-feature-card .ep-pill:focus-visible {
    background: #ffffff;
    color: var(--ep-ink) !important;
}

.ep-feature-card h2 {
    max-width: 88%;
    margin: 16px 0 16px;
    padding: 10px 14px 12px;
    background: rgba(8, 8, 10, 0.94);
    font-size: clamp(32px, 3.8vw, 58px);
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.ep-feature-card h2 a {
    display: block;
    padding: 0;
    background: transparent;
    color: #ffffff;
}

.ep-feature-card .ep-meta {
    color: rgba(255, 255, 255, 0.9);
}

.ep-lead-grid__secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ep-compact-card {
    display: grid;
    grid-template-rows: minmax(135px, 1fr) auto;
    min-width: 0;
    min-height: 0;
}

.ep-compact-card__media {
    display: block;
    min-height: 0;
    overflow: hidden;
    background: var(--ep-soft);
}

.ep-compact-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 10px 10px;
}

.ep-compact-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 8px;
    font-size: clamp(17px, 1.25vw, 21px);
    letter-spacing: -0.03em;
    line-height: 1.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ep-compact-card .ep-meta {
    margin-top: auto;
}


.ep-compact-card .ep-pill {
    min-height: 25px;
    padding: 4px 8px;
    font-size: 9px;
}

.ep-compact-card .ep-meta {
    font-size: 10px;
}

.ep-compact-card__media {
    aspect-ratio: 16 / 9;
}

.ep-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--ep-accent) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ep-pill:hover,
.ep-pill:focus-visible {
    background: var(--ep-accent);
    color: #ffffff !important;
}

.ep-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ep-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ep-category-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-block: clamp(48px, 6vw, 86px);
    padding-block: 20px;
    border-top: 1px solid var(--ep-border);
    border-bottom: 1px solid var(--ep-border);
}

.ep-category-strip__label {
    margin-right: 8px;
    color: var(--ep-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ep-category-strip a {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--ep-soft);
    font-size: 14px;
    font-weight: 700;
}

.ep-category-strip a:hover,
.ep-category-strip a:focus-visible {
    background: var(--ep-ink);
    color: #ffffff;
}

.ep-section-heading {
    margin-bottom: 28px;
}

.ep-section-heading h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.ep-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.ep-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ep-card__media {
    aspect-ratio: 3 / 2;
}

.ep-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.ep-card h3 {
    margin: 16px 0 12px;
    font-size: clamp(22px, 2.2vw, 30px);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.ep-card__content > p {
    margin: 0 0 24px;
    color: var(--ep-muted);
    font-size: 15px;
    line-height: 1.62;
}

.ep-card__footer {
    display: flex;
    width: 100%;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--ep-border);
}

.ep-read-link {
    flex: none;
    color: var(--ep-accent) !important;
    font-size: 14px;
    font-weight: 800;
}

.ep-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(99, 91, 255, 0.16), transparent 60%),
        var(--ep-soft);
}

.ep-feed-page {
    padding-top: clamp(48px, 7vw, 96px);
}

.ep-archive-header {
    margin-bottom: clamp(36px, 5vw, 64px);
}

.ep-archive-description {
    max-width: 740px;
    margin-top: 22px;
    color: var(--ep-muted);
    font-size: 18px;
    line-height: 1.65;
}

.ep-pagination {
    margin-top: 56px;
}

.ep-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--ep-border);
    border-radius: 999px;
}

.ep-pagination .current,
.ep-pagination a:hover {
    background: var(--ep-ink);
    color: #ffffff;
}

.ep-single {
    padding-top: clamp(60px, 8vw, 120px);
}

.ep-article-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ep-article-header h1 {
    max-width: 1120px;
    margin-top: 24px;
    font-size: clamp(44px, 6.5vw, 92px);
}

.ep-article-header .ep-meta {
    margin-top: 26px;
}

.ep-standfirst {
    max-width: 820px;
    margin: 28px 0 0;
    color: var(--ep-muted);
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.48;
}

.ep-article-hero {
    margin-top: clamp(42px, 6vw, 76px);
}

.ep-article-hero img {
    max-height: 760px;
    border-radius: 28px;
    object-fit: cover;
}

.ep-article-content {
    width: min(calc(100% - 40px), var(--ep-article));
    margin: clamp(48px, 7vw, 88px) auto 0;
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.78;
}

.ep-article-content > * {
    margin-top: 0;
    margin-bottom: 1.45em;
}

.ep-article-content h2,
.ep-article-content h3 {
    margin-top: 1.8em;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.ep-article-content h2 {
    font-size: clamp(30px, 3.4vw, 46px);
}

.ep-article-content h3 {
    font-size: clamp(24px, 2.6vw, 34px);
}

.ep-article-content blockquote {
    margin: 2em 0;
    padding: 26px 30px;
    border: 0;
    border-radius: var(--ep-radius);
    background: var(--ep-soft);
    font-size: 1.2em;
    font-weight: 650;
    line-height: 1.5;
}

.ep-article-content a {
    color: var(--ep-accent);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.ep-article-footer {
    width: min(calc(100% - 40px), var(--ep-article));
    margin: 42px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--ep-border);
}

.ep-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-tags a {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ep-soft);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1180px) and (min-width: 1041px) {
    .ep-lead-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(480px, 1fr);
    }

    .ep-compact-card__content {
        padding: 7px 9px 9px;
    }

    .ep-compact-card h3 {
        font-size: 17px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 1040px) {
    .ep-lead-grid {
        grid-template-columns: 1fr;
    }

    .ep-lead-grid__secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
    }

    .ep-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ep-feature-card {
        min-height: 520px;
    }

    .ep-feature-card h2 {
        max-width: 94%;
        padding: 9px 11px 10px;
        font-size: 36px;
        line-height: 1.12;
    }


    .ep-shell,
    .ep-article-content,
    .ep-article-footer {
        width: min(calc(100% - 28px), var(--ep-shell));
    }

    .ep-lead-grid,
    .ep-lead-grid__secondary,
    .ep-card-grid {
        grid-template-columns: 1fr;
    }

    .ep-lead-grid__secondary {
        grid-template-rows: none;
    }

    .ep-feature-card h2 {
        font-size: 34px;
    }

    .ep-compact-card {
        grid-template-rows: auto auto;
    }

    .ep-compact-card__media {
        aspect-ratio: 16 / 9;
    }

    .ep-compact-card h3 {
        font-size: 22px;
        -webkit-line-clamp: 3;
    }

    .ep-category-strip__label {
        width: 100%;
    }

    .ep-card h3 {
        font-size: 26px;
    }

    .ep-article-header h1 {
        font-size: 46px;
    }

    .ep-article-hero img {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ep-site *,
    .ep-site *::before,
    .ep-site *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   Custom editorial header
   ========================================================= */

.ep-site-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid var(--ep-border);
	background: rgba(255, 255, 255, 0.96);
	color: var(--ep-ink);
}

.ep-header__inner {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
	align-items: center;
	min-height: 82px;
	gap: 28px;
}

.ep-header__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.ep-header__logo img {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 44px;
}

.ep-header__title {
	color: var(--ep-ink);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.035em;
	white-space: nowrap;
}

.ep-header__nav {
	justify-self: center;
}

.ep-nav-list,
.ep-mobile-nav-list,
.ep-footer-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ep-nav-list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.ep-nav-list li {
	position: relative;
	margin: 0;
}

.ep-nav-list a {
	display: block;
	padding: 29px 0 27px;
	color: var(--ep-ink);
	font-size: 14px;
	font-weight: 700;
}

.ep-nav-list a:hover,
.ep-nav-list a:focus-visible,
.ep-nav-list .current-menu-item > a {
	color: var(--ep-accent);
}

.ep-nav-list .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--ep-border);
	background: #ffffff;
	box-shadow: 0 18px 50px rgba(16, 16, 20, 0.12);
	list-style: none;
}

.ep-nav-list li:hover > .sub-menu,
.ep-nav-list li:focus-within > .sub-menu {
	display: block;
}

.ep-nav-list .sub-menu a {
	padding: 10px 12px;
}

.ep-header__actions {
	display: flex;
	justify-self: end;
	align-items: center;
	gap: 8px;
}

.ep-icon-button {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--ep-border);
	border-radius: 0;
	background: #ffffff;
	color: var(--ep-ink);
	cursor: pointer;
}

.ep-icon-button:hover,
.ep-icon-button:focus-visible {
	border-color: var(--ep-ink);
	background: var(--ep-ink);
	color: #ffffff;
}

.ep-icon-button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.ep-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
}

.ep-menu-toggle span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: currentColor;
	transition: transform 180ms ease;
}

.ep-menu-toggle[aria-expanded="true"] span:first-child {
	transform: translateY(3.75px) rotate(45deg);
}

.ep-menu-toggle[aria-expanded="true"] span:last-child {
	transform: translateY(-3.75px) rotate(-45deg);
}

.ep-search-panel,
.ep-mobile-panel {
	border-top: 1px solid var(--ep-border);
	background: #ffffff;
}

.ep-search-panel__inner {
	padding-block: 24px;
}

.ep-search-panel form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	max-width: 820px;
	margin-inline: auto;
}

.ep-search-panel input[type="search"] {
	width: 100%;
	min-height: 54px;
	padding: 12px 16px;
	border: 1px solid var(--ep-border);
	border-radius: 0;
	background: #ffffff;
	color: var(--ep-ink);
	font-size: 17px;
}

.ep-search-panel input[type="submit"],
.ep-search-panel button[type="submit"] {
	min-height: 54px;
	padding: 12px 22px;
	border: 1px solid var(--ep-ink);
	border-radius: 0;
	background: var(--ep-ink);
	color: #ffffff;
	font-weight: 800;
	cursor: pointer;
}

.ep-mobile-panel__inner {
	padding-block: 24px 34px;
}

.ep-mobile-nav-list > li {
	border-bottom: 1px solid var(--ep-border);
}

.ep-mobile-nav-list a {
	display: block;
	padding: 16px 0;
	color: var(--ep-ink);
	font-size: 22px;
	font-weight: 750;
	letter-spacing: -0.025em;
}

.ep-mobile-nav-list .sub-menu {
	margin: 0 0 12px;
	padding: 0 0 0 18px;
	list-style: none;
}

.ep-mobile-nav-list .sub-menu a {
	padding: 10px 0;
	color: var(--ep-muted);
	font-size: 16px;
}

/* =========================================================
   Custom editorial footer
   ========================================================= */

.ep-site-footer {
	border-top: 1px solid #29292e;
	background: #101014;
	color: #ffffff;
	font-family: var(--ep-font);
}

.ep-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
	gap: clamp(42px, 7vw, 110px);
	padding-block: clamp(64px, 8vw, 110px);
}

.ep-footer__title {
	display: inline-block;
	color: #ffffff;
	font-size: clamp(30px, 3vw, 48px);
	font-weight: 800;
	letter-spacing: -0.05em;
}

.ep-footer__brand p {
	max-width: 560px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 17px;
	line-height: 1.65;
}

.ep-footer__column h2 {
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.45);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ep-footer-list li {
	margin: 0 0 13px;
}

.ep-footer-list a {
	color: #ffffff;
	font-size: 15px;
	font-weight: 650;
}

.ep-footer-list a:hover,
.ep-footer-list a:focus-visible {
	color: #9f9aff;
}

.ep-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 22px 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.ep-footer__bottom a {
	color: #ffffff;
	font-size: 13px;
	font-weight: 750;
}

/* Remove GeneratePress' default header/footer shells when custom templates load. */
.site-header,
.main-navigation,
.site-footer:not(.ep-site-footer) {
	display: none !important;
}

@media (max-width: 900px) {
	.ep-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: 72px;
	}

	.ep-header__nav {
		display: none;
	}

	.ep-header__actions {
		grid-column: 2;
	}

	.ep-menu-toggle {
		display: inline-flex;
	}

	.ep-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.ep-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.ep-header__inner {
		min-height: 66px;
	}

	.ep-header__title {
		font-size: 19px;
	}

	.ep-header__logo img {
		max-width: 170px;
		max-height: 38px;
	}

	.ep-icon-button {
		width: 40px;
		height: 40px;
	}

	.ep-search-panel form {
		grid-template-columns: 1fr;
	}

	.ep-footer__grid {
		grid-template-columns: 1fr;
		padding-block: 56px;
	}

	.ep-footer__brand {
		grid-column: auto;
	}

	.ep-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}


/* =========================================================
   Editorial single post
   ========================================================= */

.ep-single {
	padding-top: clamp(72px, 8vw, 132px);
}

.ep-article-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ep-article-header h1 {
	max-width: 1180px;
	margin-top: 24px;
	font-size: clamp(46px, 6.7vw, 96px);
	letter-spacing: -0.058em;
	line-height: 0.98;
}

.ep-standfirst {
	max-width: 860px;
	margin: 30px 0 0;
	color: var(--ep-muted);
	font-size: clamp(21px, 2.3vw, 30px);
	line-height: 1.48;
}

.ep-article-byline {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid var(--ep-border);
}

.ep-article-byline__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ep-article-byline__author img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.ep-article-byline__author div {
	display: flex;
	flex-direction: column;
}

.ep-article-byline__author span {
	color: var(--ep-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ep-article-byline__author strong {
	margin-top: 2px;
	font-size: 14px;
}

.ep-article-hero {
	margin-top: clamp(42px, 5vw, 72px);
}

.ep-article-hero img {
	width: 100%;
	max-height: 780px;
	object-fit: cover;
}

.ep-article-layout {
	display: grid;
	grid-template-columns: 84px minmax(0, var(--ep-article)) 84px;
	justify-content: center;
	gap: 28px;
	margin-top: clamp(52px, 6vw, 90px);
}

.ep-share-rail {
	position: sticky;
	top: 110px;
	display: flex;
	height: max-content;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.ep-share-rail__label {
	margin-bottom: 4px;
	color: var(--ep-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.ep-share-rail a {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ep-border);
	color: var(--ep-ink);
}

.ep-share-rail a:hover,
.ep-share-rail a:focus-visible {
	border-color: var(--ep-ink);
	background: var(--ep-ink);
	color: #ffffff;
}

.ep-share-rail svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.ep-share-rail a:nth-of-type(2) svg,
.ep-share-rail a:nth-of-type(3) svg {
	fill: currentColor;
	stroke: none;
}

.ep-article-main {
	grid-column: 2;
	min-width: 0;
}

.ep-article-content {
	width: 100%;
	margin: 0;
	font-size: clamp(17px, 1.45vw, 19px);
	line-height: 1.82;
}

.ep-article-content > * {
	margin-top: 0;
	margin-bottom: 1.5em;
}

.ep-article-content h2,
.ep-article-content h3,
.ep-article-content h4 {
	margin-top: 1.9em;
	color: var(--ep-ink);
	letter-spacing: -0.038em;
	line-height: 1.12;
}

.ep-article-content h2 {
	font-size: clamp(31px, 3.6vw, 48px);
}

.ep-article-content h3 {
	font-size: clamp(25px, 2.7vw, 36px);
}

.ep-article-content h4 {
	font-size: 22px;
}

.ep-article-content p:first-child {
	font-size: 1.08em;
}

.ep-article-content blockquote {
	margin: 2.2em 0;
	padding: 30px 32px;
	border: 0;
	border-left: 5px solid var(--ep-accent);
	background: var(--ep-soft);
	font-size: 1.22em;
	font-weight: 650;
	line-height: 1.52;
}

.ep-article-content blockquote p:last-child {
	margin-bottom: 0;
}

.ep-article-content figure,
.ep-article-content .wp-block-image {
	margin-block: 2em;
}

.ep-article-content figcaption {
	margin-top: 10px;
	color: var(--ep-muted);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.ep-article-content a {
	color: var(--ep-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.17em;
}

.ep-article-content ul,
.ep-article-content ol {
	padding-left: 1.25em;
}

.ep-article-content li {
	margin-bottom: 0.55em;
}

.ep-article-footer {
	width: 100%;
	margin: 46px 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--ep-border);
}

.ep-author-box {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 24px;
	margin-top: 52px;
	padding: 28px;
	border: 1px solid var(--ep-border);
	background: var(--ep-soft);
}

.ep-author-box__avatar img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
}

.ep-author-box__content h2 {
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.035em;
}

.ep-author-box__content p:last-child {
	margin: 12px 0 0;
	color: var(--ep-muted);
	line-height: 1.65;
}

.ep-post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin-top: 52px;
	background: var(--ep-border);
	border: 1px solid var(--ep-border);
}

.ep-post-navigation__item {
	min-height: 150px;
	padding: 24px;
	background: #ffffff;
}

.ep-post-navigation__item--next {
	text-align: right;
}

.ep-post-navigation__item span {
	display: block;
	margin-bottom: 10px;
	color: var(--ep-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ep-post-navigation__item a {
	font-size: 19px;
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.ep-post-navigation__item a:hover,
.ep-post-navigation__item a:focus-visible {
	color: var(--ep-accent);
}

.ep-related {
	margin-top: clamp(82px, 9vw, 140px);
	padding-top: clamp(58px, 7vw, 90px);
	border-top: 1px solid var(--ep-border);
}

.ep-related .ep-card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1040px) {
	.ep-article-layout {
		grid-template-columns: 56px minmax(0, var(--ep-article));
		justify-content: center;
	}

	.ep-article-main {
		grid-column: 2;
	}

	.ep-related .ep-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ep-single {
		padding-top: 52px;
	}

	.ep-article-header h1 {
		font-size: 48px;
	}

	.ep-article-byline {
		align-items: flex-start;
		flex-direction: column;
	}

	.ep-article-layout {
		grid-template-columns: 1fr;
		margin-top: 42px;
	}

	.ep-share-rail {
		position: static;
		display: flex;
		grid-column: 1;
		flex-direction: row;
		justify-content: flex-start;
	}

	.ep-share-rail__label {
		margin: 0 6px 0 0;
		writing-mode: horizontal-tb;
		transform: none;
	}

	.ep-article-main {
		grid-column: 1;
	}

	.ep-author-box {
		grid-template-columns: 1fr;
	}

	.ep-post-navigation {
		grid-template-columns: 1fr;
	}

	.ep-post-navigation__item--next {
		text-align: left;
	}

	.ep-related .ep-card-grid {
		grid-template-columns: 1fr;
	}
}


/* =========================================================
   Single-post refinement — v0.9.2
   ========================================================= */

.ep-article-header {
	padding-inline: clamp(0px, 1vw, 12px);
}

.ep-article-header h1 {
	text-wrap: balance;
}

.ep-standfirst {
	text-wrap: pretty;
}

.ep-article-hero img {
	aspect-ratio: 16 / 9;
	max-height: none;
	background: var(--ep-soft);
}

.ep-article-content {
	color: #242429;
}

.ep-article-content > p {
	text-wrap: pretty;
}

.ep-article-content > p + p {
	margin-top: -0.1em;
}

.ep-article-content h2 + p,
.ep-article-content h3 + p,
.ep-article-content h4 + p {
	margin-top: -0.45em;
}

.ep-article-content strong {
	color: var(--ep-ink);
	font-weight: 750;
}

.ep-article-content hr,
.ep-article-content .wp-block-separator {
	width: 100%;
	margin: 3.2em 0;
	border: 0;
	border-top: 1px solid var(--ep-border);
}

.ep-article-content .wp-block-separator.is-style-wide {
	border-top-width: 2px;
}

.ep-article-content .wp-block-pullquote {
	margin: 2.4em 0;
	padding: 34px 0;
	border-top: 2px solid var(--ep-ink);
	border-bottom: 2px solid var(--ep-ink);
	text-align: left;
}

.ep-article-content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: clamp(25px, 3vw, 38px);
	font-weight: 760;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.ep-article-content .wp-block-pullquote cite {
	display: block;
	margin-top: 16px;
	color: var(--ep-muted);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ep-article-content pre,
.ep-article-content .wp-block-code {
	overflow-x: auto;
	margin: 2em 0;
	padding: 22px 24px;
	border: 1px solid var(--ep-border);
	background: #151519;
	color: #f7f7f8;
	font-size: 14px;
	line-height: 1.65;
	tab-size: 4;
}

.ep-article-content code {
	padding: 0.16em 0.36em;
	background: var(--ep-soft);
	color: var(--ep-ink);
	font-size: 0.92em;
}

.ep-article-content pre code,
.ep-article-content .wp-block-code code {
	padding: 0;
	background: transparent;
	color: inherit;
}

.ep-article-content table,
.ep-article-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.ep-article-content .wp-block-table {
	overflow-x: auto;
	margin: 2.2em 0;
}

.ep-article-content th,
.ep-article-content td {
	padding: 14px 16px;
	border: 1px solid var(--ep-border);
	text-align: left;
	vertical-align: top;
}

.ep-article-content th {
	background: var(--ep-soft);
	color: var(--ep-ink);
	font-weight: 800;
}

.ep-article-content tbody tr:nth-child(even) {
	background: #fafafa;
}

.ep-article-content .wp-block-button {
	margin-block: 1.8em;
}

.ep-article-content .wp-block-button__link {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 0;
	background: var(--ep-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.ep-article-content .wp-block-button__link:hover,
.ep-article-content .wp-block-button__link:focus-visible {
	background: var(--ep-accent-hover);
	color: #ffffff;
}

.ep-article-content .wp-block-embed {
	margin-block: 2.4em;
}

.ep-article-content .wp-block-embed__wrapper {
	overflow: hidden;
}

.ep-article-content .alignwide {
	width: min(1040px, calc(100vw - 40px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.ep-article-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.ep-article-content .wp-block-image img,
.ep-article-content figure img {
	height: auto;
}

.ep-article-content .wp-block-gallery {
	margin-block: 2.3em;
}

.ep-article-content .wp-block-columns {
	gap: 28px;
	margin-block: 2.1em;
}

.ep-article-content .wp-block-cover {
	min-height: 420px;
	margin-block: 2.3em;
}

.ep-article-content .wp-block-cover__inner-container {
	width: min(90%, 680px);
}

.ep-article-content .wp-block-cover p {
	color: inherit;
}

.ep-tags a:hover,
.ep-tags a:focus-visible {
	background: var(--ep-ink);
	color: #ffffff;
}

.ep-author-box {
	align-items: center;
}

.ep-related .ep-section-heading {
	margin-bottom: 34px;
}

@media (max-width: 760px) {
	.ep-article-header h1 {
		font-size: clamp(42px, 12vw, 58px);
		line-height: 1.01;
	}

	.ep-standfirst {
		font-size: 20px;
	}

	.ep-article-hero {
		width: 100%;
		margin-top: 34px;
	}

	.ep-article-hero img {
		aspect-ratio: 4 / 3;
	}

	.ep-article-content {
		font-size: 17px;
		line-height: 1.75;
	}

	.ep-article-content h2 {
		font-size: 32px;
	}

	.ep-article-content h3 {
		font-size: 26px;
	}

	.ep-article-content blockquote {
		padding: 24px 22px;
		font-size: 1.12em;
	}

	.ep-article-content .wp-block-pullquote blockquote {
		font-size: 27px;
	}

	.ep-article-content .alignwide,
	.ep-article-content .alignfull {
		width: calc(100vw - 28px);
	}

	.ep-article-content .wp-block-columns {
		gap: 18px;
	}

	.ep-article-content th,
	.ep-article-content td {
		padding: 11px 12px;
	}
}


/* =========================================================
   Archive, search, page and 404 templates — v0.10.0
   ========================================================= */

.ep-feed-page {
	padding-top: clamp(68px, 8vw, 128px);
}

.ep-archive-header--editorial,
.ep-search-header {
	margin-bottom: clamp(42px, 6vw, 74px);
}

.ep-archive-header--editorial h1,
.ep-search-header h1,
.ep-page-header h1,
.ep-404__content h1 {
	max-width: 1050px;
	margin: 0;
	font-size: clamp(44px, 6vw, 86px);
	font-weight: 780;
	letter-spacing: -0.055em;
	line-height: 0.99;
	text-wrap: balance;
}

.ep-archive-description {
	max-width: 780px;
	margin-top: 24px;
	color: var(--ep-muted);
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.65;
}

.ep-archive-description > *:last-child {
	margin-bottom: 0;
}

.ep-archive-header__rule {
	width: 100%;
	margin-top: 34px;
	border-top: 1px solid var(--ep-border);
}

.ep-card-grid--archive {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ep-pagination--editorial {
	margin-top: clamp(48px, 6vw, 76px);
}

.ep-pagination--editorial .nav-links {
	align-items: center;
	justify-content: center;
}

.ep-pagination--editorial .page-numbers {
	min-width: 44px;
	min-height: 44px;
	border-radius: 0;
}

.ep-search-header__form {
	max-width: 860px;
	margin-top: 34px;
}

.ep-search-header__form form,
.ep-404__search form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}

.ep-search-header__form input[type="search"],
.ep-404__search input[type="search"] {
	width: 100%;
	min-height: 56px;
	padding: 13px 16px;
	border: 1px solid var(--ep-border);
	border-radius: 0;
	background: #ffffff;
	color: var(--ep-ink);
	font-size: 17px;
}

.ep-search-header__form input[type="submit"],
.ep-search-header__form button[type="submit"],
.ep-404__search input[type="submit"],
.ep-404__search button[type="submit"] {
	min-height: 56px;
	padding: 13px 24px;
	border: 1px solid var(--ep-ink);
	border-radius: 0;
	background: var(--ep-ink);
	color: #ffffff;
	font-weight: 800;
	cursor: pointer;
}

.ep-search-results__count {
	margin-bottom: 24px;
	color: var(--ep-muted);
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ep-empty-state {
	max-width: 820px;
	padding: clamp(42px, 6vw, 78px);
	border: 1px solid var(--ep-border);
	background: #ffffff;
}

.ep-empty-state h2 {
	margin: 0;
	font-size: clamp(32px, 4vw, 54px);
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.ep-empty-state > p:not(.ep-kicker) {
	max-width: 620px;
	margin: 20px 0 0;
	color: var(--ep-muted);
	font-size: 17px;
	line-height: 1.65;
}

.ep-empty-state .ep-button {
	margin-top: 26px;
}

.ep-button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 1px solid var(--ep-ink);
	background: var(--ep-ink);
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.ep-button:hover,
.ep-button:focus-visible {
	border-color: var(--ep-accent);
	background: var(--ep-accent);
}

.ep-button--ghost {
	background: transparent;
	color: var(--ep-ink) !important;
}

.ep-button--ghost:hover,
.ep-button--ghost:focus-visible {
	color: #ffffff !important;
}

.ep-page {
	padding-top: clamp(72px, 8vw, 128px);
}

.ep-page-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ep-page-hero {
	margin-top: clamp(42px, 5vw, 72px);
}

.ep-page-hero img {
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
}

.ep-page-content {
	width: min(calc(100% - 40px), 860px);
	margin: clamp(52px, 6vw, 88px) auto 0;
	color: #242429;
	font-size: clamp(17px, 1.45vw, 19px);
	line-height: 1.8;
}

.ep-page-content > * {
	margin-top: 0;
	margin-bottom: 1.5em;
}

.ep-page-content h2,
.ep-page-content h3,
.ep-page-content h4 {
	margin-top: 1.9em;
	letter-spacing: -0.038em;
	line-height: 1.12;
}

.ep-page-content h2 {
	font-size: clamp(31px, 3.6vw, 48px);
}

.ep-page-content h3 {
	font-size: clamp(25px, 2.7vw, 36px);
}

.ep-page-content a {
	color: var(--ep-accent);
	text-decoration: underline;
	text-underline-offset: 0.17em;
}

.ep-404 {
	display: flex;
	min-height: 72vh;
	align-items: center;
	padding-block: clamp(64px, 9vw, 140px);
}

.ep-404__inner {
	display: grid;
	grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
	align-items: center;
	gap: clamp(44px, 8vw, 120px);
}

.ep-404__number {
	color: #dedee4;
	font-size: clamp(150px, 24vw, 360px);
	font-weight: 900;
	letter-spacing: -0.09em;
	line-height: 0.74;
	user-select: none;
}

.ep-404__content > p:not(.ep-kicker) {
	max-width: 700px;
	margin: 24px 0 0;
	color: var(--ep-muted);
	font-size: 18px;
	line-height: 1.65;
}

.ep-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.ep-404__search {
	max-width: 760px;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--ep-border);
}

@media (max-width: 1040px) {
	.ep-card-grid--archive {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ep-404__inner {
		grid-template-columns: 1fr;
	}

	.ep-404__number {
		font-size: clamp(130px, 30vw, 260px);
	}
}

@media (max-width: 700px) {
	.ep-feed-page,
	.ep-page {
		padding-top: 52px;
	}

	.ep-archive-header--editorial h1,
	.ep-search-header h1,
	.ep-page-header h1,
	.ep-404__content h1 {
		font-size: 46px;
	}

	.ep-card-grid--archive {
		grid-template-columns: 1fr;
	}

	.ep-search-header__form form,
	.ep-404__search form {
		grid-template-columns: 1fr;
	}

	.ep-empty-state {
		padding: 30px 24px;
	}

	.ep-page-hero {
		width: 100%;
	}

	.ep-page-hero img {
		aspect-ratio: 4 / 3;
	}

	.ep-page-content {
		width: min(calc(100% - 28px), 860px);
	}

	.ep-404 {
		min-height: auto;
		padding-top: 44px;
	}

	.ep-404__number {
		font-size: 128px;
	}

	.ep-404__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ep-404__actions .ep-button {
		width: 100%;
	}
}


/* Single-post featured image: deliberately square corners. */
.single .ep-article-hero,
.single .ep-article-hero img {
	border-radius: 0 !important;
}


/* Affiliate disclosure shown below the featured image on single posts. */
.ep-affiliate-disclosure {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin-top: 16px;
	padding: 18px 20px;
	border: 1px solid #d9d9df;
	border-radius: 0;
	background: #f0f0f3;
	color: #5d5d66;
	font-size: 14px;
	line-height: 1.6;
}

.ep-affiliate-disclosure strong {
	flex: none;
	color: var(--ep-ink);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0.075em;
	line-height: 1.6;
	text-transform: uppercase;
}

.ep-affiliate-disclosure p {
	margin: 0;
}

@media (max-width: 700px) {
	.ep-affiliate-disclosure {
		width: min(calc(100% - 28px), var(--ep-shell));
		flex-direction: column;
		gap: 7px;
		margin-top: 12px;
		padding: 16px;
		font-size: 14px;
	}
}


/* TL;DR box populated automatically from the post excerpt. */
.ep-tldr-box {
	width: min(calc(100% - 40px), 860px);
	margin: 38px auto 0;
	padding: 26px 28px;
	border: 2px solid #b9d5ff;
	background: #ffffff;
	color: var(--ep-ink);
}

.ep-tldr-box__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.ep-tldr-box__star {
	color: #f4a126;
	font-size: 22px;
	line-height: 1;
}

.ep-tldr-box h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 850;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.ep-tldr-box p {
	margin: 0;
	font-size: 17px;
	line-height: 1.68;
}

@media (max-width: 700px) {
	.ep-tldr-box {
		width: min(calc(100% - 28px), 860px);
		margin-top: 28px;
		padding: 22px 20px;
	}

	.ep-tldr-box p {
		font-size: 16px;
	}
}

/* =========================================================
   Accessibility contrast lock — v0.11.0
   These final rules override earlier pill declarations.
   ========================================================= */

.ep-site a.ep-pill {
	background: #eff6ff !important;
	color: #1e40af !important;
}

.ep-site a.ep-pill:hover,
.ep-site a.ep-pill:focus-visible {
	background: #1e40af !important;
	color: #ffffff !important;
}

.ep-feature-card a.ep-pill {
	background: #101014 !important;
	color: #ffffff !important;
	backdrop-filter: none;
}

.ep-feature-card a.ep-pill:hover,
.ep-feature-card a.ep-pill:focus-visible {
	background: #ffffff !important;
	color: #101014 !important;
}

/* =========================================================
   Kicker accessibility contrast lock — v0.11.1
   ========================================================= */

.ep-site p.ep-kicker,
.ep-site .ep-kicker {
	color: #1e40af !important;
}

/* =========================================================
   Cavais discovery fields
   ========================================================= */


.ep-tldr-box {
	border-color: #bfdbfe;
	background: #f8fbff;
}

.ep-tldr-box__star {
	color: #f59e0b;
}

.ep-affiliate-disclosure {
	border-color: #fed7aa;
	background: #fff7ed;
}

.ep-affiliate-disclosure strong {
	color: #9a3412;
}

.cv-our-take {
	margin-top: 54px;
	padding: 30px 32px;
	border: 1px solid #dbeafe;
	background: #f8fbff;
}

.cv-our-take h2 {
	margin: 0;
	font-size: clamp(28px, 3vw, 40px);
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.cv-our-take > p:last-child {
	margin: 18px 0 0;
	color: #3f3f46;
	font-size: 17px;
	line-height: 1.72;
}

.cv-discovery-cta {
	display: flex;
	justify-content: center;
	margin-top: 42px;
}

.cv-discovery-cta__button {
	display: inline-flex;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	background: var(--ep-accent);
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none !important;
}

.cv-discovery-cta__button:hover,
.cv-discovery-cta__button:focus-visible {
	background: var(--ep-accent-hover);
	color: #ffffff !important;
	transform: translateY(-1px);
}

@media (max-width: 700px) {
	.cv-our-take {
		padding: 24px 22px;
	}

	.cv-discovery-cta__button {
		width: 100%;
	}
}

/* =========================================================
   Cavais legacy-CSS isolation — v0.1.1
   The cloned live site contains older broad article/post rules.
   These locks keep the new homepage grid at its intended width.
   ========================================================= */

body.ep-is-front-page main.ep-home,
body.ep-is-front-page .ep-lead-grid,
body.ep-is-front-page .ep-lead-grid__secondary,
body.ep-is-front-page .ep-card-grid {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

body.ep-is-front-page .ep-lead-grid > article,
body.ep-is-front-page .ep-lead-grid__secondary > article,
body.ep-is-front-page .ep-card-grid > article {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	height: auto;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	justify-self: stretch !important;
}

body.ep-is-front-page article.ep-feature-card {
	display: flex !important;
	min-height: 620px;
}

body.ep-is-front-page article.ep-compact-card {
	display: grid !important;
}

body.ep-is-front-page article.ep-card {
	display: flex !important;
}

body.ep-is-front-page .ep-feature-card__content,
body.ep-is-front-page .ep-compact-card__content,
body.ep-is-front-page .ep-card__content {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

body.ep-is-front-page .ep-feature-card h2,
body.ep-is-front-page .ep-compact-card h3,
body.ep-is-front-page .ep-card h3 {
	width: auto !important;
	max-width: 100%;
}

@media (max-width: 1040px) {
	body.ep-is-front-page article.ep-feature-card {
		min-height: 560px;
	}
}

@media (max-width: 700px) {
	body.ep-is-front-page article.ep-feature-card {
		min-height: 520px;
	}
}

/* =========================================================
   Cavais card structure lock — v0.1.2
   Neutral div wrappers avoid old .post and article rules.
   ========================================================= */

body #cv-home-lead {
	display: grid !important;
	grid-template-columns: minmax(0, 1.35fr) minmax(520px, 1fr) !important;
	align-items: stretch !important;
	gap: 12px !important;
}

body #cv-home-lead > .ep-feature-card {
	display: flex !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 620px !important;
}

body #cv-home-lead > .ep-lead-grid__secondary {
	display: grid !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
}

body #cv-home-lead .ep-compact-card {
	display: grid !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	grid-template-rows: minmax(135px, 1fr) auto !important;
}

body #cv-latest-grid {
	display: grid !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 28px !important;
}

body #cv-latest-grid > .ep-card {
	display: flex !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	flex-direction: column !important;
}

@media (max-width: 1040px) {
	body #cv-home-lead {
		grid-template-columns: 1fr !important;
	}

	body #cv-home-lead > .ep-lead-grid__secondary,
	body #cv-latest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 700px) {
	body #cv-home-lead,
	body #cv-home-lead > .ep-lead-grid__secondary,
	body #cv-latest-grid {
		grid-template-columns: 1fr !important;
	}

	body #cv-home-lead > .ep-feature-card {
		min-height: 520px !important;
	}
}

/* =========================================================
   Archive Load More — v0.1.5
   ========================================================= */

.cv-load-more-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: clamp(48px, 6vw, 76px);
}

.cv-load-more {
	display: inline-flex;
	min-width: 170px;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 24px;
	border: 1px solid var(--ep-ink);
	background: var(--ep-ink);
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cv-load-more:hover,
.cv-load-more:focus-visible {
	border-color: var(--ep-accent);
	background: var(--ep-accent);
	color: #ffffff !important;
	transform: translateY(-1px);
}

.cv-load-more.is-loading {
	cursor: wait;
	opacity: 0.72;
	pointer-events: none;
}

.cv-load-more.is-loading span[aria-hidden="true"] {
	animation: cv-load-more-pulse 700ms ease-in-out infinite alternate;
}

@keyframes cv-load-more-pulse {
	from {
		transform: translateY(-2px);
	}

	to {
		transform: translateY(3px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cv-load-more,
	.cv-load-more.is-loading span[aria-hidden="true"] {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 700px) {
	.cv-load-more {
		width: 100%;
	}
}

/* =========================================================
   Cavais header and Explore typography — v0.1.6
   ========================================================= */

.ep-header__title {
	font-size: 28px;
}

.ep-nav-list a {
	font-size: 16px;
}

.ep-category-strip {
	gap: 12px;
}

.ep-category-strip__label {
	font-size: 13px;
}

.ep-category-strip a {
	padding: 10px 16px;
	font-size: 16px;
}

@media (max-width: 620px) {
	.ep-header__title {
		font-size: 22px;
	}
}

/* =========================================================
   Footer Important Links menu — v0.1.7
   ========================================================= */

.ep-footer__grid {
	grid-template-columns:
		minmax(0, 1.45fr)
		minmax(150px, 0.55fr)
		minmax(150px, 0.55fr)
		minmax(180px, 0.7fr);
	gap: clamp(34px, 5vw, 84px);
}

@media (max-width: 1050px) and (min-width: 901px) {
	.ep-footer__grid {
		grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(130px, 0.7fr));
		gap: 30px;
	}
}

/* =========================================================
   Cavais site title — v0.1.9
   ========================================================= */

.ep-header__title,
.ep-header__title a {
	font-size: 40px;
	line-height: 1;
}

@media (max-width: 620px) {
	.ep-header__title,
	.ep-header__title a {
		font-size: 40px;
	}
}

/* =========================================================
   Cavais site title colour fix — v0.1.10
   ========================================================= */

.ep-header__title a,
.ep-header__title a:visited {
	color: var(--ep-ink) !important;
	text-decoration: none;
}

.ep-header__title a:hover,
.ep-header__title a:focus-visible {
	color: var(--ep-ink) !important;
}

/* =========================================================
   Responsive footer correction — v0.1.11
   The four-column desktop rule was overriding the earlier
   mobile layout because it appeared later in the stylesheet.
   ========================================================= */

@media (max-width: 900px) {
	.ep-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 30px;
	}

	.ep-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.ep-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 38px;
		padding-block: 56px;
	}

	.ep-footer__brand {
		grid-column: auto;
		margin: 0;
	}

	.ep-footer__brand p {
		max-width: 280px;
		margin-top: 14px;
		font-size: 15px;
		line-height: 1.55;
	}

	.ep-footer__column,
	.ep-footer__brand,
	.ep-footer-list,
	.ep-footer-list li {
		min-width: 0;
	}

	.ep-footer__column h2 {
		margin-bottom: 16px;
	}

	.ep-footer-list li {
		margin-bottom: 11px;
	}

	.ep-footer-list a {
		font-size: 16px;
		overflow-wrap: anywhere;
	}

	.ep-footer__bottom {
		width: 100%;
		gap: 18px;
		padding-block: 24px 32px;
	}

	.ep-footer__bottom a {
		align-self: flex-end;
	}
}
