/*
 * Landmark — main stylesheet.
 * Mobile-first. Single brand: torontotourism.org. All tokens are baked in
 * here (no Customizer preset injection). Design language: "Modern Landmark" —
 * lake navy, CN-blue, sky accent, Archivo throughout, and the roundel's
 * base-bar-and-tick motif as the recurring ornament.
 */

/* ------------------------------------------------------------------ */
/* Font — self-hosted Archivo variable (latin subset, 35 KB)           */
/* ------------------------------------------------------------------ */

@font-face {
	font-family: 'Archivo';
	src: url('../fonts/archivo-var-latin.woff2') format('woff2') tech('variations'),
		url('../fonts/archivo-var-latin.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
	/* Brand — matches the logo exactly. */
	--wf-primary: #13324f;   /* lake navy */
	--wf-secondary: #1b5e8f; /* CN blue — 6.9:1 on white */
	--wf-accent: #7fd4e6;    /* sky — 7.8:1 on navy */
	--wf-tint: #eef4f9;
	--wf-sky-soft: #d9eef5;
	--wf-navy-deep: #0d2334;

	--wf-radius: 8px;
	--wf-heading-font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--wf-body-font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--wf-heading-weight: 800;
	--wf-heading-spacing: -0.015em;

	--wf-ink: #182430;
	--wf-muted: #51636f;
	--wf-line: #dbe5ed;
	--wf-bg: #ffffff;
	--wf-on-dark: #ffffff;
	--wf-on-dark-soft: #b8cddc; /* 8:1 on navy */
	--wf-container: 1200px;
	--wf-narrow: 720px;
	--wf-shadow: 0 1px 2px rgba(10, 30, 50, 0.06), 0 10px 30px rgba(10, 30, 50, 0.09);
}

/* ------------------------------------------------------------------ */
/* 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: 5.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: 1.0625rem;
	line-height: 1.7;
	color: var(--wf-ink);
	background: var(--wf-bg);
	-webkit-font-smoothing: antialiased;
	/* Sticky footer: .site-footer carries margin-top: auto. */
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
	width: 100%;
}

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.15;
	color: var(--wf-ink);
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

p {
	margin: 0 0 1.2em;
}

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

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

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

/* On dark surfaces the blue ring vanishes — use the sky accent there. */
.site-footer :focus-visible,
.hero :focus-visible {
	outline-color: var(--wf-accent);
}

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

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

/* 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,
.comment-form input[type="submit"] {
	display: inline-block;
	background: var(--wf-primary);
	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: 700;
	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,
.comment-form input[type="submit"]:hover {
	background: var(--wf-secondary);
	color: var(--wf-on-dark);
}

.wf-btn:active,
.wp-block-button__link:active,
.search-submit:active,
.wp-element-button:active {
	transform: translateY(1px);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wf-bg);
	/* Signature: the sky base-bar rides the top edge of every page. */
	border-top: 4px solid var(--wf-accent);
	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: 68px;
	flex-wrap: wrap;
	padding-block: 0.5rem;
}

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

.brand-link {
	display: block;
	line-height: 0;
}

.brand-logo {
	display: block;
	height: 42px;
	width: auto;
}

.brand-mark {
	display: block;
	width: 64px;
	height: 64px;
}

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

/* 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-family: var(--wf-body-font);
	font-size: 0.9rem;
	font-weight: 700;
	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 - 76px);
	max-height: calc(100dvh - 76px);
	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);
}

.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);
	color: var(--wf-secondary);
}

.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 1.1em;
	font-size: 1rem;
	font-family: var(--wf-body-font);
	border: 1px solid var(--wf-line);
	border-radius: 999px;
	background: var(--wf-bg);
	color: var(--wf-ink);
}

.search-field:focus {
	border-color: var(--wf-secondary);
	outline: none;
	box-shadow: 0 0 0 3px var(--wf-sky-soft);
}

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

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

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

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

.hero-plain {
	/* No photo: hold the flat navy — the type carries it. */
	background: var(--wf-primary);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(9, 21, 34, 0.82) 0%, rgba(9, 21, 34, 0.38) 55%, rgba(9, 21, 34, 0.12) 100%);
}

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

.hero-title {
	color: var(--wf-on-dark);
	font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem);
	margin-bottom: 0.25em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* The roundel's base bar + tower tick, drawn under the hero title. */
.hero-rule {
	position: relative;
	width: 128px;
	height: 16px;
	margin: 0 0 1rem;
}

.hero-rule::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	border-radius: 2px;
	background: var(--wf-accent);
}

.hero-rule::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: var(--wf-accent);
}

.hero-sub {
	color: var(--wf-on-dark-soft);
	font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
	max-width: 38em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-search {
	max-width: 560px;
	margin-top: 1.4rem;
}

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

.hero-cta {
	margin-top: 1.4rem;
	background: var(--wf-accent);
	color: var(--wf-primary);
}

.hero-cta:hover {
	background: var(--wf-on-dark);
	color: var(--wf-primary);
}

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

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

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

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

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

/* Two-tone base bar: navy stub + sky run — the mark's palette in a line. */
.section-head h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 68px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--wf-primary) 0 20px, var(--wf-accent) 20px 100%);
}

.section-head-link {
	font-weight: 700;
	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: 12px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
	transform: translateY(-3px);
	border-color: var(--wf-accent);
	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;
}

/* No featured image: navy panel with the roundel mark, centered. */
.card-img-fallback {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	background-color: var(--wf-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 96 96%22 width=%2296%22 height=%2296%22%3E %3Ccircle cx=%2248%22 cy=%2248%22 r=%2244.5%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%223%22/%3E %3Crect x=%2246.4%22 y=%2213%22 width=%223.2%22 height=%2214%22 rx=%221.6%22 fill=%22%23ffffff%22/%3E %3Cellipse cx=%2248%22 cy=%2233.5%22 rx=%2213%22 ry=%225%22 fill=%22%23ffffff%22/%3E %3Cellipse cx=%2248%22 cy=%2240.5%22 rx=%228%22 ry=%223%22 fill=%22%237fd4e6%22/%3E %3Cpath d=%22M44 44.5 L52 44.5 L56 77 L40 77 Z%22 fill=%22%23ffffff%22/%3E %3Crect x=%2233%22 y=%2277%22 width=%2230%22 height=%223.2%22 rx=%221.6%22 fill=%22%237fd4e6%22/%3E %3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 72px 72px;
}

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

.card-kicker {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--wf-secondary);
}

.card-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	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;
	text-decoration-color: var(--wf-accent);
	text-decoration-thickness: 2px;
}

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

.card-meta {
	margin-top: auto;
	padding-top: 0.45rem;
	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.08em;
	text-decoration: none;
	color: var(--wf-secondary);
	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: 12px;
}

.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.0625rem;
}

.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.85em 1.1em;
	border-left: 3px solid var(--wf-accent);
	border-radius: 0 var(--wf-radius) var(--wf-radius) 0;
	background: var(--wf-tint);
	color: var(--wf-ink);
}

.prose blockquote > :last-child,
.prose .wp-block-quote > :last-child {
	margin-bottom: 0;
}

.prose .wp-block-quote cite {
	font-style: normal;
	font-size: 0.9rem;
	color: var(--wf-muted);
}

.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);
	font-weight: 700;
}

.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: 700;
}

/* ------------------------------------------------------------------ */
/* 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: 12px;
	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-accent);
	box-shadow: var(--wf-shadow);
}

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

.post-nav-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wf-secondary);
	margin-bottom: 0.25rem;
}

.post-nav-title {
	font-weight: 700;
	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.4em 1em;
	background: var(--wf-sky-soft);
	color: var(--wf-primary);
	border: none;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.term-chips a:hover {
	background: var(--wf-primary);
	color: var(--wf-on-dark);
}

.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: 700;
}

.pagination .page-numbers.current {
	background: var(--wf-primary);
	border-color: var(--wf-primary);
	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);
	background: var(--wf-bg);
	color: var(--wf-ink);
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--wf-secondary);
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block: 1rem;
	font-weight: 700;
}

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

.site-footer {
	background: var(--wf-primary);
	color: var(--wf-on-dark-soft);
	margin-top: auto;
}

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

.footer-brand {
	margin-bottom: 0.9rem;
	line-height: 0;
}

.footer-brand .brand-logo {
	height: 46px;
	width: auto;
}

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

.footer-heading {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	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: var(--wf-on-dark-soft);
	text-decoration: none;
}

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

.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 {
	background: var(--wf-navy-deep);
	border-top: none;
	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-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.15rem;
		padding: 0;
	}

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

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

	.site-nav .menu > li > a:hover {
		background: none;
		color: var(--wf-secondary);
		text-decoration: underline;
		text-decoration-color: var(--wf-accent);
		text-decoration-thickness: 3px;
		text-underline-offset: 6px;
	}

	.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: 10px;
		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);
		text-decoration: none;
	}
}

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

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

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