/*
 * Wayfinder — main stylesheet.
 * Mobile-first. Brand values arrive as :root custom properties injected
 * inline from the Customizer; everything below consumes them.
 */

/* ------------------------------------------------------------------ */
/* Tokens (defaults — overridden by the inline brand block)            */
/* ------------------------------------------------------------------ */

:root {
	--wf-primary: #14304a;
	--wf-secondary: #1b5e8f;
	--wf-accent: #e8b84b;
	--wf-tint: #f2f7fa;
	--wf-radius: 10px;
	--wf-heading-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--wf-body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--wf-heading-weight: 700;
	--wf-heading-spacing: -0.01em;

	--wf-ink: #1d2429;
	--wf-muted: #5a646e;
	--wf-line: #e3e8ec;
	--wf-bg: #ffffff;
	--wf-on-dark: #ffffff;
	--wf-container: 1160px;
	--wf-narrow: 720px;
	--wf-shadow: 0 1px 2px rgba(15, 25, 35, 0.06), 0 8px 24px rgba(15, 25, 35, 0.07);
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Anchor jumps (TOC links, skip link, #comment-N) must clear the sticky header. */
	scroll-padding-top: 5rem;
	/* Backstop against any full-bleed/negative-margin rule causing page-level
	   horizontal scroll (clip does not create a scroll container, so
	   position: sticky keeps working). */
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--wf-body-font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--wf-ink);
	background: var(--wf-bg);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--wf-heading-font);
	font-weight: var(--wf-heading-weight);
	letter-spacing: var(--wf-heading-spacing);
	line-height: 1.2;
	color: var(--wf-ink);
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem); }
h4 { font-size: 1.125rem; }

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--wf-secondary);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

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

:focus-visible {
	outline: 3px solid var(--wf-secondary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* On dark brand surfaces the secondary ring can vanish — use the accent there. */
.wf-header-brand .site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible {
	outline-color: var(--wf-accent);
}

.container {
	max-width: var(--wf-container);
	margin-inline: auto;
	padding-inline: 1rem;
}

.container-narrow {
	max-width: calc(var(--wf-narrow) + 2rem);
	margin-inline: auto;
	padding-inline: 1rem;
}

/* Accessibility helpers (WP-standard class names) */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	left: 0.5rem;
	top: 0.5rem;
	z-index: 200;
	padding: 0.75rem 1.25rem;
	background: var(--wf-primary);
	color: var(--wf-on-dark);
	border-radius: var(--wf-radius);
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.wf-btn,
.wp-block-button__link,
.search-submit,
.wp-element-button {
	display: inline-block;
	background: var(--wf-secondary);
	color: var(--wf-on-dark);
	border: none;
	border-radius: var(--wf-radius);
	padding: 0.75em 1.5em;
	font-family: var(--wf-body-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.wf-btn:hover,
.wp-block-button__link:hover,
.search-submit:hover,
.wp-element-button:hover {
	color: var(--wf-on-dark);
}

@supports (background: color-mix(in srgb, red 50%, black)) {
	.wf-btn:hover,
	.wp-block-button__link:hover,
	.search-submit:hover,
	.wp-element-button:hover {
		background: color-mix(in srgb, var(--wf-secondary) 82%, black);
	}
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wf-bg);
	border-bottom: 1px solid var(--wf-line);
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: var(--wf-shadow);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 64px;
	flex-wrap: wrap;
	padding-block: 0.4rem;
}

.site-branding {
	margin-right: auto;
	display: flex;
	align-items: center;
	min-width: 0;
}

.custom-logo {
	max-height: 48px;
	width: auto;
	display: block;
}

.site-title-link {
	text-decoration: none;
}

.site-title {
	font-family: var(--wf-heading-font);
	font-weight: var(--wf-heading-weight);
	letter-spacing: var(--wf-heading-spacing);
	font-size: 1.25rem;
	color: var(--wf-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	max-width: 60vw;
}

/* Brand-colored header variant */
.wf-header-brand .site-header {
	background: var(--wf-primary);
	border-bottom-color: transparent;
}

.wf-header-brand .site-title,
.wf-header-brand .site-nav a,
.wf-header-brand .nav-toggle,
.wf-header-brand .header-search-toggle {
	color: var(--wf-on-dark);
}

/* Nav toggle (mobile) */
.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: none;
	border: 1px solid var(--wf-line);
	border-radius: var(--wf-radius);
	padding: 0.5rem 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wf-ink);
	cursor: pointer;
	min-height: 44px;
}

.nav-toggle-bars {
	display: block;
	position: relative;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Nav */
.site-nav {
	display: none;
	flex-basis: 100%;
	order: 10;
}

.nav-open .site-nav,
.no-js .site-nav {
	display: block;
	/* Long pillar menus must scroll inside the sticky header on phones. */
	max-height: calc(100vh - 72px);
	max-height: calc(100dvh - 72px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Without JS the toggle can't work; the nav is already expanded above. */
.no-js .nav-toggle {
	display: none;
}

.site-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0 0.75rem;
}

.site-nav .menu a {
	display: block;
	padding: 0.65rem 0.25rem;
	text-decoration: none;
	color: var(--wf-ink);
	font-weight: 600;
	border-bottom: 1px solid var(--wf-line);
}

.wf-header-brand .site-nav .menu a {
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 1rem;
}

.site-nav .sub-menu a {
	font-weight: 400;
	font-size: 0.95rem;
}

/* Header search */
.header-search {
	position: relative;
}

.header-search-toggle {
	list-style: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--wf-radius);
	color: var(--wf-ink);
	cursor: pointer;
}

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

.header-search-toggle:hover {
	background: var(--wf-tint);
}

.wf-header-brand .header-search-toggle:hover {
	background: rgba(255, 255, 255, 0.12);
}

.header-search-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: min(320px, 88vw);
	background: var(--wf-bg);
	border: 1px solid var(--wf-line);
	border-radius: var(--wf-radius);
	box-shadow: var(--wf-shadow);
	padding: 0.75rem;
	z-index: 120;
}

/* ------------------------------------------------------------------ */
/* Search form                                                         */
/* ------------------------------------------------------------------ */

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

.search-field {
	flex: 1;
	min-width: 0;
	padding: 0.7em 1em;
	font-size: 1rem;
	font-family: var(--wf-body-font);
	border: 1px solid var(--wf-line);
	border-radius: var(--wf-radius);
	background: var(--wf-bg);
	color: var(--wf-ink);
}

.search-field:focus {
	border-color: var(--wf-secondary);
}

.search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7em 1em;
	min-width: 48px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(400px, 58vh, 620px);
	background: var(--wf-primary);
	overflow: hidden;
}

.hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-plain {
	background: linear-gradient(135deg, var(--wf-primary), var(--wf-secondary));
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 14, 22, 0.78) 0%, rgba(8, 14, 22, 0.35) 55%, rgba(8, 14, 22, 0.15) 100%);
}

.hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-block: 2.5rem;
}

.hero-title {
	color: var(--wf-on-dark);
	margin-bottom: 0.3em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-sub {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
	max-width: 40em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-search {
	max-width: 540px;
	margin-top: 1.25rem;
}

.hero-search .search-field {
	border: none;
	padding: 0.85em 1.1em;
	box-shadow: var(--wf-shadow);
}

.hero-cta {
	margin-top: 1.25rem;
}

/* ------------------------------------------------------------------ */
/* Sections & grids                                                    */
/* ------------------------------------------------------------------ */

.home-section,
.related-articles {
	padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

.section-tint {
	background: var(--wf-tint);
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.section-head h2 {
	margin: 0;
	position: relative;
	padding-bottom: 0.5rem;
}

.section-head h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--wf-accent);
}

.section-head-link {
	font-weight: 600;
	white-space: nowrap;
}

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

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */

.card {
	display: flex;
	flex-direction: column;
	background: var(--wf-bg);
	border: 1px solid var(--wf-line);
	border-radius: var(--wf-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wf-shadow);
}

.card-media {
	display: block;
	line-height: 0;
}

.card-img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

.card-img-fallback {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, var(--wf-primary), var(--wf-secondary));
}

.card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 1.2rem 1.2rem;
	gap: 0.45rem;
}

.card-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.card-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
}

.card-title a {
	color: var(--wf-ink);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--wf-secondary);
	text-decoration: underline;
}

.card-excerpt {
	margin: 0;
	color: var(--wf-muted);
	font-size: 0.95rem;
}

.card-meta {
	margin-top: auto;
	padding-top: 0.4rem;
	color: var(--wf-muted);
	font-size: 0.85rem;
}

/* ------------------------------------------------------------------ */
/* Breadcrumbs                                                         */
/* ------------------------------------------------------------------ */

.breadcrumbs {
	font-size: 0.85rem;
	color: var(--wf-muted);
	margin: 1rem 0 0.75rem;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}

.breadcrumbs ol {
	list-style: none;
	display: flex;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
}

.breadcrumbs li {
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.breadcrumbs li + li::before {
	content: "/";
	color: var(--wf-line);
}

.breadcrumbs a {
	color: var(--wf-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--wf-secondary);
	text-decoration: underline;
}

/* Rank Math / Yoast markup */
.breadcrumbs .separator {
	color: var(--wf-line);
	margin-inline: 0.15rem;
}

/* ------------------------------------------------------------------ */
/* Single article                                                      */
/* ------------------------------------------------------------------ */

.entry {
	padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.entry-header {
	margin: 0.75rem 0 1.5rem;
}

.entry-kicker {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	margin-bottom: 0.6rem;
}

.entry-title {
	margin-bottom: 0.35em;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	color: var(--wf-muted);
	font-size: 0.9rem;
}

.entry-meta .meta-item + .meta-item::before {
	content: "·";
	margin-right: 1rem;
}

.entry-thumb {
	margin: 0 0 1.75rem;
}

.entry-thumb img {
	width: 100%;
	height: auto;
	border-radius: var(--wf-radius);
}

.entry-thumb figcaption {
	font-size: 0.85rem;
	color: var(--wf-muted);
	margin-top: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Prose (long-form content + core blocks)                             */
/* ------------------------------------------------------------------ */

.prose {
	font-size: 1.06rem;
}

.prose > * {
	margin-block: 0 1.25em;
}

.prose h2 {
	margin-top: 1.6em;
}

.prose h3 {
	margin-top: 1.3em;
}

.prose img {
	border-radius: var(--wf-radius);
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose blockquote,
.prose .wp-block-quote {
	margin: 1.5em 0;
	padding: 0.5em 0 0.5em 1.25em;
	border-left: 4px solid var(--wf-accent);
	color: var(--wf-muted);
	font-style: italic;
}

.prose .wp-block-quote cite {
	font-style: normal;
	font-size: 0.9rem;
}

.prose table,
.prose .wp-block-table table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95rem;
}

.prose .wp-block-table {
	overflow-x: auto;
}

.prose table th,
.prose table td {
	border: 1px solid var(--wf-line);
	padding: 0.6em 0.8em;
	text-align: left;
}

.prose table th {
	background: var(--wf-tint);
}

.prose code {
	background: var(--wf-tint);
	padding: 0.15em 0.4em;
	border-radius: 4px;
	font-size: 0.9em;
}

.prose .wp-block-image figcaption,
.prose .wp-caption-text {
	font-size: 0.85rem;
	color: var(--wf-muted);
	text-align: center;
	margin-top: 0.5rem;
}

.prose .wp-block-separator {
	border: none;
	border-top: 1px solid var(--wf-line);
	margin-block: 2em;
}

.prose .alignwide {
	/* Bleed grows with the viewport and collapses to zero on narrow screens. */
	margin-inline: calc(-1 * clamp(0px, (100vw - var(--wf-narrow) - 2rem) / 2, 220px));
}

.prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
	border-radius: 0;
}

.prose .alignfull img {
	border-radius: 0;
}

.prose .alignleft {
	float: left;
	margin: 0.3em 1.25em 0.75em 0;
	max-width: 50%;
}

.prose .alignright {
	float: right;
	margin: 0.3em 0 0.75em 1.25em;
	max-width: 50%;
}

.prose .aligncenter {
	margin-inline: auto;
	display: block;
}

.page-links {
	margin-top: 1.5rem;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Post navigation (prev/next in pillar)                                */
/* ------------------------------------------------------------------ */

.post-nav {
	display: grid;
	gap: 1rem;
	padding-block: 1rem 2rem;
}

.post-nav-link {
	display: block;
	border: 1px solid var(--wf-line);
	border-radius: var(--wf-radius);
	padding: 1rem 1.2rem;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-nav-link:hover {
	border-color: var(--wf-secondary);
	box-shadow: var(--wf-shadow);
}

.post-nav-next {
	text-align: right;
}

.post-nav-label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wf-muted);
	margin-bottom: 0.25rem;
}

.post-nav-title {
	font-weight: 600;
	color: var(--wf-ink);
}

/* ------------------------------------------------------------------ */
/* Archives / pillar hubs                                              */
/* ------------------------------------------------------------------ */

.archive-hero {
	background: var(--wf-tint);
	padding-block: 1rem 2rem;
	border-bottom: 1px solid var(--wf-line);
}

.archive-title {
	margin-bottom: 0.2em;
}

.archive-count {
	color: var(--wf-muted);
	margin: 0;
}

.archive-search {
	max-width: 480px;
	margin-top: 1rem;
}

.term-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
}

.term-chips a {
	display: inline-block;
	padding: 0.35em 0.9em;
	background: var(--wf-bg);
	border: 1px solid var(--wf-line);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.term-chips a:hover {
	border-color: var(--wf-secondary);
	background: var(--wf-bg);
}

.archive-description {
	padding-block: 1.5rem 0;
}

.archive-grid-wrap {
	padding-block: 2rem 3rem;
}

.no-results-wrap .grid {
	margin-top: 1.5rem;
}

.no-results {
	color: var(--wf-muted);
}

/* Pagination */
.pagination {
	margin-top: 2.5rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 0.55em 0.9em;
	text-align: center;
	border: 1px solid var(--wf-line);
	border-radius: var(--wf-radius);
	text-decoration: none;
	color: var(--wf-ink);
	font-weight: 600;
}

.pagination .page-numbers.current {
	background: var(--wf-secondary);
	border-color: var(--wf-secondary);
	color: var(--wf-on-dark);
}

.pagination .page-numbers.dots {
	border: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--wf-secondary);
	color: var(--wf-secondary);
}

/* ------------------------------------------------------------------ */
/* Comments                                                            */
/* ------------------------------------------------------------------ */

.comments-area {
	padding-block: 1rem 3rem;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .comment {
	border-top: 1px solid var(--wf-line);
	padding: 1.25rem 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 1.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.7em 1em;
	font-size: 1rem;
	font-family: var(--wf-body-font);
	border: 1px solid var(--wf-line);
	border-radius: var(--wf-radius);
}

.comment-form input[type="submit"] {
	background: var(--wf-secondary);
	color: var(--wf-on-dark);
	border: none;
	border-radius: var(--wf-radius);
	padding: 0.75em 1.5em;
	font-weight: 600;
	cursor: pointer;
}

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

.site-footer {
	background: var(--wf-primary);
	color: rgba(255, 255, 255, 0.85);
	margin-top: auto;
}

.footer-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
	padding-block: 3rem 2rem;
}

.footer-brand {
	font-family: var(--wf-heading-font);
	font-weight: var(--wf-heading-weight);
	font-size: 1.2rem;
	color: var(--wf-on-dark);
	margin-bottom: 0.5rem;
}

.footer-about-text {
	font-size: 0.95rem;
	max-width: 36em;
}

.footer-heading {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wf-accent);
	margin-bottom: 0.9rem;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin-bottom: 0.5rem;
}

.footer-menu a,
.site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.footer-menu a:hover,
.site-footer a:hover {
	color: var(--wf-on-dark);
	text-decoration: underline;
}

.social-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
}

.social-links a {
	display: inline-block;
	padding: 0.35em 0.9em;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
}

.social-links a:hover {
	border-color: var(--wf-accent);
	text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-block: 1.1rem;
	font-size: 0.85rem;
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	justify-content: space-between;
}

.footer-bottom p {
	margin: 0;
}

.legal-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

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

	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

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

	.post-nav-prev:only-child {
		grid-column: 1;
	}

	.post-nav-next:only-child {
		grid-column: 2;
	}
}

@media (min-width: 980px) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Desktop nav: horizontal bar with dropdowns */
	.nav-toggle {
		display: none;
	}

	.site-nav,
	.no-js .site-nav,
	.nav-open .site-nav {
		display: block;
		flex-basis: auto;
		order: 0;
		max-height: none;
		overflow: visible;
	}

	.site-nav .menu {
		display: flex;
		gap: 0.25rem;
		padding: 0;
	}

	.site-nav .menu > li {
		position: relative;
	}

	.site-nav .menu a {
		border-bottom: none;
		padding: 0.6rem 0.8rem;
		border-radius: var(--wf-radius);
		white-space: nowrap;
	}

	.site-nav .menu > li > a:hover {
		background: var(--wf-tint);
	}

	.wf-header-brand .site-nav .menu > li > a:hover {
		background: rgba(255, 255, 255, 0.12);
	}

	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		background: var(--wf-bg);
		border: 1px solid var(--wf-line);
		border-radius: var(--wf-radius);
		box-shadow: var(--wf-shadow);
		padding: 0.4rem;
		display: none;
		z-index: 110;
	}

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

	.site-nav .sub-menu a {
		color: var(--wf-ink);
		padding: 0.5rem 0.75rem;
	}

	.site-nav .sub-menu a:hover {
		background: var(--wf-tint);
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
