/*
Theme Name: EnVif Theme
Author: EnVif
Description: Thème éditorial sur mesure, léger et accessible pour le média EnVif.
Version: 1.4.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: envif-theme
*/

:root {
	--bg-page: #ffffff;
	--bg-surface: #f5f5f6;
	--ink-primary: #111111;
	--ink-secondary: #4e4e52;
	--accent-yellow: #f5c518;
	--accent-action: #111111;
	--border-subtle: #e2e2e6;
	--font-editorial: Newsreader, "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-interface: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--reading-width: 66ch;
	--site-width: 1180px;
	--radius: 3px;
	--space-xs: 0.5rem;
	--space-sm: 0.875rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;
}

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

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg-page);
	color: var(--ink-primary);
	font-family: var(--font-interface);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: var(--accent-action);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--ink-primary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--accent-yellow);
	outline-offset: 3px;
}

button,
input,
textarea,
select {
	font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.7em;
	font-family: var(--font-editorial);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

h1 {
	font-size: clamp(2.35rem, 8vw, 4.8rem);
}

h2 {
	font-size: clamp(1.8rem, 5vw, 2.7rem);
}

h3 {
	font-size: clamp(1.35rem, 3vw, 1.7rem);
}

p {
	margin: 0 0 1.3em;
}

::selection {
	background: var(--accent-yellow);
	color: var(--ink-primary);
}

.site-container {
	width: min(calc(100% - 2rem), var(--site-width));
	margin-inline: auto;
}

.reading-column {
	width: min(calc(100% - 2rem), var(--reading-width));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 10000;
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--bg-page);
	color: var(--ink-primary);
	font-weight: 700;
	white-space: normal;
}

.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	height: 3px;
	background: transparent;
}

.reading-progress__bar {
	width: 100%;
	height: 100%;
	background: var(--accent-yellow);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
}

.site-header {
	border-bottom: 1px solid #38383c;
	background: var(--ink-primary);
	color: var(--bg-page);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: 84px;
}

.site-branding {
	display: flex;
	align-items: baseline;
	flex-shrink: 0;
	gap: 1rem;
}

.site-title,
.site-footer__brand {
	position: relative;
	color: var(--ink-primary);
	font-family: var(--font-editorial);
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.site-header .site-title {
	color: var(--bg-page);
}

.site-header .site-title:hover {
	color: var(--bg-page);
}

.site-title__accent {
	color: var(--accent-yellow);
}

.site-tagline {
	display: none;
	margin: 0;
	color: #c9c9cd;
	font-size: 0.75rem;
}

.custom-logo {
	width: auto;
	max-height: 52px;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.45rem 0.7rem;
	border: 1px solid #38383c;
	background: var(--ink-primary);
	color: var(--bg-page);
	font-size: 0.78rem;
	font-weight: 800;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
	border-color: var(--accent-yellow);
	background: #232327;
}

.nav-toggle__icon {
	display: grid;
	gap: 3px;
}

.nav-toggle__icon span {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
}

.site-nav__list,
.site-nav .menu {
	display: flex;
	align-items: center;
	gap: clamp(0.8rem, 3vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .site-nav__link,
.site-nav .menu a {
	position: relative;
	color: var(--bg-page);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.site-nav .site-nav__link::after,
.site-nav .menu a::after {
	position: absolute;
	right: 0;
	bottom: -0.4rem;
	left: 0;
	height: 3px;
	background: var(--accent-yellow);
	content: "";
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-nav .site-nav__link:hover,
.site-nav .menu a:hover,
.site-nav .current-menu-item > a {
	color: var(--bg-page);
	text-decoration: none;
}

.site-nav .site-nav__link:hover::after,
.site-nav .menu a:hover::after,
.site-nav .current-menu-item > a::after {
	transform: scaleX(1);
}

.header-search {
	position: relative;
	flex-shrink: 0;
}

.header-search summary {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid transparent;
	color: var(--bg-page);
	cursor: pointer;
	list-style: none;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.header-search summary::-webkit-details-marker {
	display: none;
}

.header-search summary:hover,
.header-search[open] summary {
	border-color: #38383c;
	background: #232327;
}

.header-search__panel {
	position: absolute;
	top: calc(100% + 0.65rem);
	right: 0;
	z-index: 30;
	width: min(420px, calc(100vw - 2rem));
	padding: 1rem;
	border: 1px solid var(--border-subtle);
	background: var(--bg-page);
	color: var(--ink-primary);
	box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
}

.header-search[open] .header-search__panel {
	animation: envif-search-panel-in 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes envif-search-panel-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form__label {
	flex: 1;
}

.search-field {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--ink-secondary);
	border-radius: 0;
	background: var(--bg-page);
	color: var(--ink-primary);
}

.search-submit {
	min-height: 48px;
	padding: 0.65rem 1rem;
	border: 2px solid var(--accent-action);
	background: var(--accent-action);
	color: var(--bg-page);
	font-weight: 800;
	cursor: pointer;
}

.search-submit:hover {
	border-color: var(--accent-yellow);
	text-decoration: underline;
	text-decoration-color: var(--accent-yellow);
	text-decoration-thickness: 3px;
}

.home-intro {
	max-width: 930px;
	padding-top: 2.25rem;
	padding-bottom: 2.5rem;
	text-align: center;
}

.home-intro h1 {
	max-width: 15ch;
	margin-inline: auto;
	font-size: clamp(2.35rem, 6vw, 4.25rem);
}

.home-intro > p:not(.eyebrow) {
	max-width: 650px;
	margin-inline: auto;
	color: var(--ink-secondary);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.home-search {
	max-width: 650px;
	margin: 1.25rem auto 0;
	text-align: left;
}

.home-search .search-field {
	background: var(--bg-surface);
}

.eyebrow,
.article-kicker {
	margin-bottom: 1rem;
	color: var(--ink-primary);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eyebrow::before {
	display: inline-block;
	width: 1.8rem;
	height: 3px;
	margin-right: 0.65rem;
	background: var(--accent-yellow);
	content: "";
	vertical-align: 0.25em;
}

.section-title {
	margin-bottom: var(--space-md);
	font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.featured-section,
.latest-section,
.related-section,
.archive-content {
	padding-bottom: var(--space-xl);
}

.featured-section {
	padding-top: 2rem;
}

.featured-section__label {
	margin-bottom: 1rem;
}

.featured-story {
	display: grid;
	background: var(--bg-surface);
}

.featured-story__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--border-subtle);
}

.featured-story__media img,
.story-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.featured-story:hover .featured-story__media img,
.story-card:hover .story-card__media img {
	transform: scale(1.02);
}

.featured-story__content {
	align-self: center;
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.featured-story__title {
	font-size: clamp(2rem, 4vw, 2.65rem);
}

.featured-story__excerpt p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.featured-story__title a,
.story-card h2 a,
.story-card h3 a {
	color: var(--ink-primary);
	text-decoration: none;
}

.featured-story__title a:hover,
.story-card h2 a:hover,
.story-card h3 a:hover {
	color: var(--accent-action);
	text-decoration: underline;
	text-decoration-color: var(--accent-yellow);
	text-decoration-thickness: 3px;
}

.featured-story__excerpt,
.story-card p {
	color: var(--ink-secondary);
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1rem;
	color: var(--ink-secondary);
	font-size: 0.76rem;
	line-height: 1.4;
}

.article-meta a {
	color: inherit;
}

.article-meta__category a {
	display: inline-block;
	padding: 0.15rem 0.45rem;
	background: var(--ink-primary);
	color: var(--bg-page);
	font-weight: 800;
	text-decoration: none;
}

.article-meta__category a:hover {
	color: var(--bg-page);
	text-decoration: underline;
	text-decoration-color: var(--accent-yellow);
	text-decoration-thickness: 2px;
}

.text-link {
	display: inline-block;
	color: var(--accent-action);
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration-color: var(--accent-yellow);
	text-decoration-thickness: 3px;
	transition: color 180ms ease, text-underline-offset 180ms ease;
}

.text-link:hover {
	text-underline-offset: 0.35em;
}

.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-md);
	margin-top: var(--space-md);
}

.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.story-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--border-subtle);
	background: var(--bg-page);
	transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 260ms ease;
}

.story-card:hover {
	border-color: #b9b9bf;
	transform: translateY(-2px);
}

.story-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg-surface);
}

.story-card__content {
	padding: 1.25rem;
}

.story-card h2,
.story-card h3 {
	margin-bottom: 0.55em;
}

.story-card p:last-child {
	margin-bottom: 0;
}

.newsletter {
	display: grid;
	gap: var(--space-md);
	align-items: center;
	margin-bottom: var(--space-xl);
	padding: clamp(1.5rem, 5vw, 3.5rem);
	border-left: 4px solid var(--accent-yellow);
	background: var(--bg-surface);
	color: var(--ink-primary);
}

.newsletter h2 {
	margin-bottom: 0.35em;
}

.newsletter p:last-child {
	margin-bottom: 0;
	color: var(--ink-secondary);
}

.newsletter .eyebrow {
	color: var(--ink-primary);
}

.newsletter .eyebrow::before {
	display: inline-block;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.7rem 1.25rem;
	border: 2px solid var(--accent-action);
	border-radius: var(--radius);
	background: var(--accent-action);
	color: var(--bg-page);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
	border-color: var(--accent-yellow);
	background: var(--accent-action);
	color: var(--bg-page);
	text-decoration: underline;
	text-decoration-color: var(--accent-yellow);
	text-decoration-thickness: 3px;
}

.button--outline {
	background: var(--bg-page);
	color: var(--ink-primary);
}

.button--compact {
	min-height: 44px;
	padding: 0.55rem 1rem;
}

.article-header {
	padding-top: 2.75rem;
	padding-bottom: 2rem;
}

.article-header h1 {
	font-size: clamp(2.25rem, 7vw, 4.1rem);
}

.article-kicker a {
	color: var(--accent-action);
	text-decoration-color: var(--accent-yellow);
	text-decoration-thickness: 3px;
}

.article-deck {
	color: var(--ink-secondary);
	font-family: var(--font-editorial);
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	line-height: 1.45;
}

.article-author {
	margin: -0.35rem 0 0;
	color: var(--ink-secondary);
	font-size: 0.8rem;
}

.author-name {
	color: var(--ink-primary);
	font-weight: 700;
}

.article-hero {
	max-width: 1000px;
	margin-bottom: var(--space-lg);
}

.article-hero img {
	width: 100%;
}

.article-hero figcaption,
.wp-caption-text {
	margin-top: 0.6rem;
	color: var(--ink-secondary);
	font-size: 0.75rem;
	line-height: 1.45;
}

.essential-box {
	margin: 0 0 var(--space-lg);
	padding: 1.35rem 1.35rem 1.2rem;
	border-left: 5px solid var(--accent-yellow);
	background: var(--bg-surface);
}

.essential-box h2 {
	font-family: var(--font-interface);
	font-size: 1.05rem;
	letter-spacing: 0;
}

.essential-box ul {
	margin: 0;
	padding-left: 1.25rem;
}

.essential-box li {
	margin-bottom: 0.55rem;
	padding-left: 0.25rem;
}

.essential-box li:last-child {
	margin-bottom: 0;
}

.essential-box li::marker {
	color: var(--accent-action);
	font-weight: 800;
}

.article-content {
	font-family: var(--font-interface);
	font-size: 17px;
	line-height: 1.65;
}

.single-page .article-content {
	padding-bottom: var(--space-xl);
}

.legal-page .article-header {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border-subtle);
}

.legal-page__eyebrow {
	margin-bottom: 0.85rem;
	color: var(--ink-secondary);
	font-family: var(--font-interface);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.legal-page .article-header h1 {
	max-width: 15ch;
	margin-bottom: 0;
	font-size: clamp(2.25rem, 7vw, 3.8rem);
}

.legal-page .article-content {
	padding-top: 2rem;
}

.legal-page .article-content h2 {
	padding-top: 1.2rem;
	border-top: 1px solid var(--border-subtle);
}

.legal-page .article-content > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.legal-page .article-content a {
	overflow-wrap: anywhere;
}

.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > blockquote,
.article-content > figure,
.article-content > .wp-block-image,
.article-content > .wp-block-embed {
	margin-bottom: 1.55em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	margin-top: 1.8em;
	margin-bottom: 0.7em;
	scroll-margin-top: 1rem;
}

.article-content h2 {
	font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.article-content h3 {
	font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.article-content ul,
.article-content ol {
	padding-left: 1.4rem;
}

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

.article-content blockquote {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 4px solid var(--accent-yellow);
	color: var(--accent-action);
	font-family: var(--font-editorial);
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	line-height: 1.45;
}

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

.article-content pre {
	max-width: 100%;
	padding: 1rem;
	overflow-x: auto;
	background: var(--bg-surface);
	font-size: 0.85rem;
}

.article-content table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.article-content th,
.article-content td {
	padding: 0.65rem;
	border: 1px solid var(--border-subtle);
	text-align: left;
}

.article-content th {
	background: var(--bg-surface);
}

.share-block {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin: var(--space-xl) 0;
	padding: 1.25rem;
	border-top: 1px solid var(--border-subtle);
	border-bottom: 1px solid var(--border-subtle);
}

.share-block p {
	margin: 0;
	color: var(--ink-secondary);
	font-size: 0.82rem;
}

.share-block__label {
	color: var(--ink-primary) !important;
	font-size: 0.95rem !important;
	font-weight: 800;
}

.related-section {
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border-subtle);
}

.story-card--related p:not(.article-meta) {
	display: none;
}

.archive-header {
	padding-top: var(--space-xl);
	padding-bottom: var(--space-lg);
}

.archive-header h1 {
	font-size: clamp(2.35rem, 7vw, 4rem);
}

.archive-description {
	max-width: 650px;
	color: var(--ink-secondary);
}

.archive-search {
	max-width: 650px;
	margin-top: var(--space-md);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: var(--space-lg);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--border-subtle);
	color: var(--ink-primary);
	font-weight: 700;
	text-decoration: none;
}

.pagination .current,
.pagination a:hover {
	border-color: var(--accent-action);
	background: var(--accent-action);
	color: var(--bg-page);
}

.empty-state {
	padding: var(--space-lg);
	background: var(--bg-surface);
	text-align: center;
}

.comments-wrap {
	padding-bottom: var(--space-xl);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	display: block;
	width: 100%;
	max-width: 100%;
}

.site-footer {
	padding-top: var(--space-lg);
	border-top: 4px solid var(--accent-yellow);
	background: var(--ink-primary);
	color: var(--bg-page);
}

.site-footer__inner {
	display: grid;
	gap: var(--space-md);
}

.site-footer__inner p {
	margin: 0.5rem 0 0;
	color: #c9c9cd;
	font-size: 0.8rem;
}

.site-footer__brand {
	color: var(--bg-page);
}

.site-footer__brand span {
	color: var(--accent-yellow);
}

.instagram-link {
	display: inline-block;
	margin-top: 1rem;
	color: var(--bg-page);
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration-color: var(--accent-yellow);
}

.instagram-link:hover {
	color: var(--bg-page);
	text-decoration-thickness: 3px;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav a {
	color: var(--bg-page);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration-color: var(--accent-yellow);
}

.footer-nav a:hover {
	color: var(--bg-page);
	text-decoration-thickness: 3px;
}

.site-footer__legal {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: var(--space-lg);
	padding-top: 1rem;
	padding-bottom: 1rem;
	border-top: 1px solid #38383c;
}

.site-footer__legal p {
	margin: 0;
	color: #a8a8ad;
	font-size: 0.7rem;
}

.site-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__legal-links a {
	color: #c9c9cd;
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration-color: var(--accent-yellow);
	text-underline-offset: 0.25em;
}

.site-footer__legal-links a:hover {
	color: var(--bg-page);
	text-decoration-thickness: 2px;
}

@media (min-width: 640px) {
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.newsletter {
		grid-template-columns: 1fr auto;
	}

	.site-footer__inner {
		grid-template-columns: 1fr auto;
		align-items: end;
	}

	.site-footer__legal {
		align-items: center;
		justify-content: space-between;
		flex-direction: row;
	}
}

@media (min-width: 780px) {
	body,
	.article-content {
		font-size: 18px;
	}

	.site-tagline {
		display: block;
	}

	.featured-story {
		grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
		min-height: 450px;
	}

	.featured-story__media {
		height: 100%;
		min-height: 100%;
		aspect-ratio: auto;
	}

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

	.home-intro {
		padding-top: 3rem;
		padding-bottom: 3.25rem;
	}

	.article-header {
		padding-top: 3.5rem;
	}
}

@media (max-width: 900px) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: 0.6rem;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
	}

	.site-branding {
		order: 1;
		flex: 1;
	}

	.site-tagline {
		display: none;
	}

	.envif-js .nav-toggle {
		display: inline-flex;
		order: 2;
	}

	.header-search {
		order: 3;
	}

	.site-nav {
		order: 4;
		width: 100%;
		padding-top: 0.5rem;
		border-top: 1px solid #38383c;
	}

	.envif-js .site-nav {
		display: block;
		max-height: 0;
		padding-top: 0;
		overflow: hidden;
		border-top-color: transparent;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: max-height 260ms cubic-bezier(0.2, 0.7, 0.2, 1), padding-top 220ms ease, border-color 220ms ease, opacity 180ms ease, transform 220ms ease, visibility 0s linear 260ms;
	}

	.envif-js .site-nav.is-open {
		max-height: 20rem;
		padding-top: 0.5rem;
		border-top-color: #38383c;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition-delay: 0s;
	}

	.site-nav__list,
	.site-nav .menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.site-nav__link,
	.site-nav .menu a {
		display: block;
		padding: 0.65rem 0;
	}

	.site-nav .site-nav__link::after,
	.site-nav .menu a::after {
		right: auto;
		bottom: 0.35rem;
		width: 2.5rem;
	}
}

@media (max-width: 639px) {
	.site-header__inner {
		min-height: 70px;
	}

	.nav-toggle > span:last-child {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.search-form {
		flex-direction: column;
	}

	.section-heading,
	.share-block {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html.envif-motion .envif-reveal {
		opacity: 0;
		transform: translateY(10px);
		transition: opacity 440ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 440ms cubic-bezier(0.2, 0.7, 0.2, 1);
		transition-delay: var(--envif-reveal-delay, 0ms);
	}

	html.envif-motion .story-card.envif-reveal {
		transition: opacity 440ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 440ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 260ms ease;
		transition-delay: var(--envif-reveal-delay, 0ms), var(--envif-reveal-delay, 0ms), 0ms;
	}

	html.envif-motion .envif-reveal.is-visible {
		opacity: 1;
		transform: translateY(0);
	}

	html.envif-motion .story-card.envif-reveal.is-visible:hover {
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}

	.envif-reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	.story-card:hover,
	.featured-story:hover .featured-story__media img,
	.story-card:hover .story-card__media img {
		transform: none !important;
	}
}
