/*
Theme Name: NCIS - National College of Indigenous Scholars
Theme URI: https://ncis.example.ca/
Author: NCIS
Description: WordPress implementation of the NCIS Lovable site.
Version: 1.3.5
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ncis
Tags: education, nonprofit, indigenous, custom-menu, custom-logo, featured-images, wide-blocks, translation-ready
*/

:root {
  --brand-coal: #000000;
  --brand-sky: #0086d4;
  --brand-sun: #ffcf00;
  --brand-fire: #f6324a;
  --brand-snow: #ffffff;
  --brand-rain: #1e77a4;
  --brand-gold: var(--brand-sun);
  --brand-red: var(--brand-fire);
  --brand-blue: var(--brand-sky);
  --brand-ink: var(--brand-coal);
  --cream: var(--brand-snow);
  --card: var(--brand-snow);
  --secondary: color-mix(in srgb, var(--brand-sky) 6%, var(--brand-snow));
  --muted: color-mix(in srgb, var(--brand-sky) 4%, var(--brand-snow));
  --muted-foreground: color-mix(in srgb, var(--brand-coal) 65%, var(--brand-snow));
  --border: color-mix(in srgb, var(--brand-coal) 15%, var(--brand-snow));
  --font-display: "all-round-gothic", ui-rounded, "Arial Rounded MT Bold", sans-serif;
  --font-sans: "myriad-pro", Arial, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --container-wide: 1280px;
  --container-six: 1152px;
  --container-hero: 1024px;
  --container-content: 896px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brand-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

img,
svg { display: block; max-width: 100%; height: auto; }

iframe { border: 0; }

a { color: inherit; }

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--brand-sky);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.2;
}

h3,
h4,
h5,
h6 {
  color: var(--brand-rain);
  font-weight: 700;
}

p { margin: 0; }

.site-shell { display: flex; min-height: 100vh; flex-direction: column; }
.site-content { flex: 1; }

.container { width: 100%; margin-inline: auto; padding-inline: 24px; }
.container--wide { max-width: var(--container-wide); }
.container--six { max-width: var(--container-six); }
.container--hero { max-width: var(--container-hero); }
.container--content { max-width: var(--container-content); }

.icon-svg { width: 20px; height: 20px; flex: 0 0 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 {
  z-index: 99999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--card);
  color: var(--brand-ink);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--cream) 85%, transparent);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-brand,
.footer-brand { display: flex; align-items: center; text-decoration: none; }
.site-logo { width: auto; height: 44px; }
.site-logo--footer { height: 48px; filter: brightness(0) invert(1); }

.site-logo-fallback {
  display: block;
  max-width: 300px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
}

.site-logo-fallback--footer { color: var(--cream); font-size: 18px; }

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav .menu-item { position: relative; }

.primary-nav .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  padding: 8px 16px;
  color: color-mix(in oklab, var(--brand-ink) 80%, transparent);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}

.primary-nav .menu-item > a:hover {
  background: var(--secondary);
  color: var(--brand-ink);
}

.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--brand-ink); }

.nav-chevron { width: 14px; height: 14px; opacity: .6; }

.primary-nav .menu-item-has-children > a:not(:has(.nav-chevron))::after {
  width: 6px;
  height: 6px;
  margin: -3px 2px 0 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  opacity: .6;
  transform: rotate(45deg);
}

.primary-nav .sub-menu {
  position: absolute;
  visibility: hidden;
  z-index: 20;
  top: 100%;
  left: 0;
  min-width: 256px;
  margin: 8px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 10px 15px -3px color-mix(in oklab, var(--brand-ink) 14%, transparent), 0 4px 6px -4px color-mix(in oklab, var(--brand-ink) 14%, transparent);
  list-style: none;
  opacity: 0;
  transform: translateY(4px);
  transition: visibility .15s ease, opacity .15s ease, transform .15s ease;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-nav .sub-menu .menu-item > a {
  display: block;
  border-radius: 0;
  padding: 12px 16px;
  color: color-mix(in oklab, var(--brand-ink) 85%, transparent);
  line-height: 20px;
}

.primary-nav .sub-menu .menu-item > a:hover { background: var(--secondary); color: var(--brand-ink); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--brand-ink);
  cursor: pointer;
}

.menu-toggle .menu-icon { width: 20px; height: 20px; }
.menu-toggle .menu-icon--close { display: none; }
.menu-toggle.is-open .menu-icon--open { display: none; }
.menu-toggle.is-open .menu-icon--close { display: block; }

/* Common controls */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}

.button:hover { transform: translateY(-2px); }
.button--gold { background: var(--brand-gold); color: var(--brand-ink); }
.button--outline { border-color: color-mix(in oklab, var(--cream) 40%, transparent); color: var(--cream); }
.button--outline:hover { background: color-mix(in oklab, var(--cream) 10%, transparent); }
.button--large { padding: 14px 28px; }
.button--light {
	background: var(--brand-snow);
	color: var(--brand-ink);
}

.button--light:hover {
	background: color-mix(
		in srgb,
		var(--brand-snow) 90%,
		var(--brand-gold)
	);
}

.button .icon-svg,
.text-link .icon-svg,
.card-link .icon-svg,
.back-link .icon-svg,
.map-link .icon-svg { width: 16px; height: 16px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-red);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .25em;
  line-height: 16px;
  text-transform: uppercase;
}

.eyebrow::before { width: 32px; height: 1px; background: currentColor; content: ""; }
.eyebrow--red { color: var(--brand-red); }
.eyebrow--blue { color: var(--brand-blue); }
.eyebrow--ink { color: color-mix(in oklab, var(--brand-ink) 70%, transparent); }
.eyebrow--ink::before { background: var(--brand-gold); }

.section-tint { background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.section-border-top { border-top: 1px solid var(--border); }

/* Homepage */
.home-hero { position: relative; isolation: isolate; overflow: hidden; }
.home-hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-overlay { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to right, color-mix(in oklab, var(--brand-ink) 85%, transparent), color-mix(in oklab, var(--brand-ink) 60%, transparent), color-mix(in oklab, var(--brand-ink) 20%, transparent)); }
.home-hero-inner { padding-top: 112px; padding-bottom: 112px; }
.home-hero-content { max-width: 768px; color: var(--cream); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid color-mix(in oklab, var(--cream) 30%, transparent);
  border-radius: 9999px;
  background: color-mix(in oklab, var(--cream) 10%, transparent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 16px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold); }

.home-hero h1 { color: var(--cream); font-size: 36px; line-height: 1.05; }
.home-hero h1 em { color: var(--brand-gold); font-style: italic; }
.home-hero-content > p { max-width: 576px; margin-top: 24px; color: color-mix(in oklab, var(--cream) 85%, transparent); font-size: 18px; line-height: 1.625; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }

.brand-bar {
	display: flex;
	width: 100%;
	height: 6px;
}

.brand-bar span {
	flex: 1;
}

.brand-bar span:nth-child(1) {
	background: var(--brand-red);
}

.brand-bar span:nth-child(2) {
	background: var(--brand-gold);
}

.brand-bar span:nth-child(3) {
	background: var(--brand-blue);
}

/* Permanent bar at the bottom of the Hero. */
.home-hero > .brand-bar {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
}

/* Optional bar at the top of its associated section. */
.brand-bar--section {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10;
}

.home-intro { border-bottom: 1px solid var(--border); }
.home-intro-grid { display: grid; gap: 40px; padding-top: 80px; padding-bottom: 80px; }
.home-intro h2 { margin-top: 16px; font-size: 30px; line-height: 1.2; }
.home-intro-copy { color: color-mix(in oklab, var(--brand-ink) 80%, transparent); font-size: 18px; line-height: 1.625; }
.home-intro-copy p + p { margin-top: 20px; }

.home-priorities { padding-top: 96px; padding-bottom: 96px; }
.feature-card-section {
	position: relative;
	overflow: hidden;
}

.feature-card-section__background {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.feature-card-section__overlay {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: rgb(255 255 255 / 30%);
	pointer-events: none;
}

.feature-card-section > .container {
	position: relative;
	z-index: 2;
}
.section-heading-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-heading-row h2 { max-width: 672px; margin-top: 16px; font-size: 36px; line-height: 1.15; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.card-grid { display: grid; gap: 24px; margin-top: 48px; }
.index-cards-section .card-grid { margin-top: 0; }

.feature-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--brand-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px color-mix(in oklab, var(--brand-ink) 12%, transparent), 0 8px 10px -6px color-mix(in oklab, var(--brand-ink) 12%, transparent); }
.card-accent { position: absolute; top: 0; right: 0; left: 0; height: 4px; }
.card-accent--red { background: var(--brand-red); }
.card-accent--blue { background: var(--brand-blue); }
.card-accent--gold { background: var(--brand-gold); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--secondary); }
.card-icon .icon-svg { width: 20px; height: 20px; }
.feature-card h2,
.feature-card h3 { margin-top: 24px; font-size: 24px; line-height: 1.333; }
.feature-card p { flex: 1; margin-top: 12px; color: var(--muted-foreground); font-size: 14px; line-height: 1.625; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; font-weight: 600; }
.card-link .icon-svg { transition: transform .15s ease; }
.feature-card:hover .card-link .icon-svg { transform: translateX(4px); }

.home-approach { border-top: 1px solid var(--border); }
.split-grid { display: grid; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.split-media { position: relative; order: 2; }
.split-media-bg { position: absolute; top: -16px; left: -16px; width: 100%; height: 100%; border-radius: 16px; background: color-mix(in oklab, var(--brand-gold) 25%, transparent); }
.split-media img { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; object-fit: cover; }
.split-copy { order: 1; }
.split-copy h2 { margin-top: 16px; font-size: 36px; line-height: 1.15; }
.split-copy > p { margin-top: 24px; color: color-mix(in oklab, var(--brand-ink) 80%, transparent); font-size: 18px; line-height: 1.625; }
.dot-list { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; color: color-mix(in oklab, var(--brand-ink) 85%, transparent); list-style: none; }
.dot-list li { position: relative; padding-left: 18px; }
.dot-list li::before { position: absolute; top: 9px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-red); content: ""; }

.home-cta {
	position: relative;
	overflow: hidden;
	background: var(--brand-gold);
	color: var(--brand-ink);
}

.home-cta__background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cta-row {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	padding-top: 80px;
	padding-bottom: 80px;
}

.cta-row > div {
	max-width: 672px;
}

.cta-row h2 {
	color: var(--brand-ink);
	font-size: 30px;
	line-height: 1.2;
}

.cta-row p {
	margin-top: 16px;
	color: color-mix(
		in srgb,
		var(--brand-ink) 75%,
		transparent
	);
}

/* Shared page hero */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.page-hero-glow { position: absolute; top: 0; right: -96px; width: 50%; height: 100%; background: linear-gradient(to left, color-mix(in oklab, var(--brand-gold) 20%, transparent), transparent); pointer-events: none; }
.page-hero-inner { position: relative; padding-top: 80px; padding-bottom: 80px; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { max-width: 768px; font-size: 36px; line-height: 1.05; }
.page-hero p { max-width: 672px; margin-top: 24px; color: var(--muted-foreground); font-size: 18px; line-height: 1.625; }

/* About */
.about-intro-grid { display: grid; gap: 56px; padding-top: 80px; padding-bottom: 80px; }
.about-copy { display: grid; gap: 24px; color: color-mix(in oklab, var(--brand-ink) 85%, transparent); font-size: 18px; line-height: 1.625; }
.info-card,
.value-card,
.partners-card { border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.info-card { padding: 32px; }
.info-card h3 { font-size: 24px; line-height: 1.333; }
.info-card p { margin-top: 12px; color: color-mix(in oklab, var(--brand-ink) 80%, transparent); }
.info-card hr { height: 1px; margin: 24px 0; border: 0; background: var(--border); }
.about-values { padding-top: 80px; padding-bottom: 80px; }
.about-values h2 { font-size: 30px; }
.value-grid { display: grid; gap: 24px; margin-top: 40px; }
.value-card { padding: 32px; }
.value-number { font-family: var(--font-display); font-size: 48px; line-height: 1; }
.value-number--red { color: var(--brand-red); }
.value-number--blue { color: var(--brand-blue); }
.value-number--gold { color: var(--brand-gold); }
.value-card h3 { margin-top: 16px; font-size: 24px; line-height: 1.333; }
.value-card p { margin-top: 12px; color: color-mix(in oklab, var(--brand-ink) 80%, transparent); line-height: 1.625; }
.partnership-grid { display: grid; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.partnership-grid > img { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; object-fit: cover; }
.partnership-grid h2 { margin-top: 16px; font-size: 30px; line-height: 1.2; }
.partnership-grid p { margin-top: 20px; color: color-mix(in oklab, var(--brand-ink) 80%, transparent); font-size: 18px; line-height: 1.625; }

/* Contact */
.contact-section { padding-top: 80px; padding-bottom: 80px; }
.contact-grid { display: grid; gap: 40px; }
.contact-details { display: grid; align-content: start; gap: 32px; }
.contact-row { display: flex; gap: 16px; }
.contact-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: color-mix(in oklab, var(--brand-gold) 25%, transparent); }
.contact-icon .icon-svg { width: 20px; height: 20px; }
.contact-row h3 { font-family: var(--font-display); font-size: 18px; line-height: 28px; }
.contact-lines { margin-top: 4px; color: color-mix(in oklab, var(--brand-ink) 80%, transparent); }
.contact-lines > div + div,
.contact-lines p + p { margin-top: 4px; }
.contact-lines p { margin: 0; }
.contact-lines a { text-underline-offset: 4px; }
.contact-lines a:hover { color: var(--brand-red); }
.partners-card { padding: 24px; }
.partners-card h3 { font-size: 18px; }
.partners-card p { margin-top: 8px; color: var(--muted-foreground); font-size: 14px; }
.partner-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.partner-item { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.partner-item--text { padding: 4px 12px; border-radius: 9999px; background: var(--secondary); font-size: 12px; font-weight: 500; }
.partner-item--image { min-width: 112px; height: 64px; padding: 10px 16px; border-radius: 10px; background: var(--card); }
.partner-item--image img { width: auto; max-width: 150px; height: auto; max-height: 42px; object-fit: contain; }
.map-column { display: grid; align-content: start; gap: 24px; }
.map-frame { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; }
.map-frame iframe { display: block; width: 100%; height: 380px; }
.map-link { display: inline-flex; align-items: center; gap: 8px; width: max-content; font-size: 14px; font-weight: 600; text-decoration: none; }
.map-link:hover { color: var(--brand-red); }

/* Index and detail routes */
.index-cards-section { padding-top: 80px; padding-bottom: 80px; }
.content-page { padding-top: 64px; padding-bottom: 64px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; color: color-mix(in oklab, var(--brand-ink) 70%, transparent); font-size: 14px; font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--brand-ink); }
.content-page-image { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 40px; border-radius: 16px; object-fit: cover; }
.prose-content { color: color-mix(in oklab, var(--brand-ink) 85%, transparent); font-size: 18px; line-height: 1.625; }
.prose-content > * + * { margin-top: 24px; }
.prose-content h2 { padding-top: 16px; font-size: 24px; line-height: 1.333; }
.prose-content ul { margin-bottom: 0; padding-left: 24px; }
.prose-content li + li { margin-top: 8px; }
.prose-content .muted-italic { color: var(--muted-foreground); font-style: italic; }
.detail-related-content {
	padding-top: 96px;
	padding-bottom: 96px;
	border-top: 1px solid var(--border);
}

/* Generic WordPress templates */
.section { padding-top: 96px; padding-bottom: 96px; }
.section > .container { max-width: var(--container-wide); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.btn-dark { background: var(--brand-ink); color: var(--cream); }
.single-post,
.archive-page { padding-top: 64px; padding-bottom: 96px; }
.blog-listing { padding-top: 80px; padding-bottom: 96px; }
.single-post .back-link { margin-bottom: 32px; }
.single-post__image { margin-bottom: 40px; overflow: hidden; border-radius: var(--radius-lg); }
.single-post__image img { width: 100%; max-height: 560px; object-fit: cover; }
.single-post .entry-content { font-size: 18px; line-height: 1.625; }
.single-post .entry-content > * + * { margin-top: 24px; }
.single-post .entry-content h2 { padding-top: 16px; font-size: 36px; }
.single-post .entry-content h3 { padding-top: 8px; font-size: 26px; }
.single-post .entry-content img { border-radius: var(--radius); }
.single-post .entry-content a { color: var(--brand-rain); text-underline-offset: 3px; }
.single-post__footer { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.single-post__terms { color: var(--muted-foreground); font-size: 14px; }
.single-post__terms span { margin-right: 4px; font-weight: 700; }
.single-post__terms a { color: var(--brand-rain); }
.post-list { display: grid; gap: 32px; }
.post-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.post-card__image { display: block; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card img { transition: transform .25s ease; }
.post-card:hover img { transform: scale(1.025); }
.post-card .body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.post-card h2 { font-size: 24px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--brand-rain); }
.post-card .meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted-foreground); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.post-card .meta a { color: var(--brand-rain); text-decoration: none; }
.post-card .body > p { flex: 1; margin-top: 14px; color: var(--muted-foreground); line-height: 1.625; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--border); border-radius: 9999px; text-decoration: none; }
.pagination .current { border-color: var(--brand-ink); background: var(--brand-ink); color: var(--cream); }
.post-card .read-more { display: inline-flex; align-items: center; gap: 8px; width: max-content; margin-top: 20px; color: var(--brand-rain); font-size: 14px; font-weight: 700; text-decoration: none; }
.post-card .read-more .icon-svg { width: 16px; height: 16px; transition: transform .15s ease; }
.post-card .read-more:hover .icon-svg { transform: translateX(4px); }
.empty-state { padding: 64px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); text-align: center; }
.empty-state h2 { font-size: 30px; }
.empty-state p { margin-top: 12px; color: var(--muted-foreground); }
.search-form { display: flex; max-width: 640px; gap: 12px; margin-top: 32px; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font: inherit; }
.comments-area { max-width: 720px; margin: 64px auto 0; }
.comment-list { margin: 24px 0; padding: 0; list-style: none; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font: inherit; }

/* Footer */
.site-footer {
	margin-top: 96px;
	background: var(--cream);
	color: var(--brand-ink);
}

.footer-grid {
	display: grid;
	gap: 48px;
	padding-top: 64px;
	padding-bottom: 64px;
}

.footer-brand .site-logo {
	width: auto;
	height: 48px;
	filter: none;
}

.footer-description {
	max-width: 384px;
	margin-top: 20px;
	color: color-mix(in oklab, var(--brand-ink) 70%, transparent);
	font-size: 14px;
	line-height: 1.625;
}

.footer-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin-top: 24px;
}

.footer-logo {
	display: flex;
	align-items: center;
}

.footer-logo__image {
	display: block;
	width: auto;
	max-width: 70px;
	max-height: 80px;
	object-fit: contain;
}

.site-footer h3 {
	color: var(--brand-rain);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 20px;
	text-transform: uppercase;
}

.site-footer ul {
	display: grid;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	font-size: 14px;
	list-style: none;
}

.site-footer a {
	color: color-mix(in oklab, var(--brand-ink) 80%, transparent);
	text-decoration: none;
	transition: color .15s ease;
}

.site-footer a:hover {
	color: var(--brand-red);
}

.site-footer address {
	display: grid;
	gap: 8px;
	margin-top: 20px;
	color: color-mix(in oklab, var(--brand-ink) 80%, transparent);
	font-size: 14px;
	font-style: normal;
}

.footer-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid color-mix(in oklab, var(--brand-ink) 25%, transparent);
	border-radius: 50%;
	color: var(--brand-ink);
	transition:
		background-color .15s ease,
		border-color .15s ease,
		color .15s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
	border-color: var(--brand-red);
	background: transparent;
	color: var(--brand-red);
}

.social-icon {
	width: 18px;
	height: 18px;
}

.footer-brand-bars {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 24px;
}

.footer-brand-bars span {
	width: 32px;
	height: 6px;
}

/* Optional footer background image */
.site-footer.has-background-image {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.site-footer__background {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.site-footer__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: color-mix(in srgb, var(--cream) 10%, transparent);
	pointer-events: none;
}

.site-footer.has-background-image .brand-bar,
.site-footer.has-background-image .footer-grid,
.site-footer.has-background-image .footer-bottom-wrap {
	position: relative;
	z-index: 2;
}

/* Correct brand order: red, yellow, blue */
.footer-brand-bars span:nth-child(1) {
	background: var(--brand-red);
}

.footer-brand-bars span:nth-child(2) {
	background: var(--brand-gold);
}

.footer-brand-bars span:nth-child(3) {
	background: var(--brand-blue);
}

.footer-bottom-wrap {
	border-top: 1px solid color-mix(in oklab, var(--brand-ink) 10%, transparent);
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 24px;
	padding-bottom: 24px;
	color: color-mix(in oklab, var(--brand-ink) 60%, transparent);
	font-size: 12px;
}

/* WordPress helpers */
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
.alignwide { max-width: 1100px; margin-right: auto; margin-left: auto; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }

@media (min-width: 768px) {
  .home-hero-inner { padding-top: 160px; padding-bottom: 160px; }
  .home-hero h1 { font-size: 60px; }
  .home-intro-grid { grid-template-columns: 4fr 8fr; }
  .home-intro h2 { font-size: 36px; }
  .section-heading-row { flex-direction: row; align-items: flex-end; }
  .section-heading-row h2 { font-size: 48px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .split-media { order: 1; }
  .split-copy { order: 2; }
  .split-copy h2 { font-size: 48px; }
  .cta-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-row h2 { font-size: 36px; }
  .page-hero-inner { padding-top: 112px; padding-bottom: 112px; }
  .page-hero h1 { font-size: 60px; }
  .about-intro-grid { grid-template-columns: 3fr 2fr; }
  .about-values h2 { font-size: 36px; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partnership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partnership-grid h2 { font-size: 36px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; }
}

@media (min-width: 1024px) {
  .home-hero h1 { font-size: 72px; }
}

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    display: none;
    top: 100%;
    right: 0;
    left: 0;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--cream);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { max-width: 1280px; margin-inline: auto; flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav .menu-item > a { display: flex; border-radius: 6px; padding: 8px 12px; }
  .primary-nav .menu-item-has-children > a .nav-chevron,
  .primary-nav .menu-item-has-children > a::after { display: none; }
  .primary-nav .sub-menu {
    position: static;
    visibility: visible;
    min-width: 0;
    margin: 0 0 0 16px;
    padding: 0 0 0 12px;
    overflow: visible;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }
  .primary-nav .sub-menu .menu-item > a { border-radius: 6px; padding: 8px 12px; color: color-mix(in oklab, var(--brand-ink) 75%, transparent); }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 767px) {
  .site-footer { margin-top: 96px; }
}

/* Sections containing optional brand bars */
.feature-card-section,
.home-approach,
.site-footer {
	position: relative;
}

/* Related Blog posts on detail pages */
.detail-related-content {
	padding-top: 96px;
	padding-bottom: 96px;
	border-top: 1px solid var(--border);
}

.related-posts-section {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.related-posts-section.has-background-image {
	background: transparent;
}

.related-posts-section__background {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.related-posts-section.has-background-image::before {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: color-mix(
		in srgb,
		var(--brand-snow) 30%,
		transparent
	);
	content: "";
	pointer-events: none;
}

.related-posts-section > .container {
	position: relative;
	z-index: 2;
}

.related-posts-section > .brand-bar {
	z-index: 3;
}

.related-post-grid {
	display: grid;
	gap: 24px;
	margin-top: 48px;
}

.related-post-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--card);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.related-post-card:hover,
.related-post-card:focus-within {
	transform: translateY(-4px);
	box-shadow:
		0 20px 25px -5px
		color-mix(in oklab, var(--brand-ink) 12%, transparent),
		0 8px 10px -6px
		color-mix(in oklab, var(--brand-ink) 12%, transparent);
}

.related-post-card__link {
	position: relative;
	display: flex;
	height: 100%;
	flex-direction: column;
	color: var(--brand-ink);
	text-decoration: none;
}

.related-post-card__link:focus-visible {
	outline: 3px solid var(--brand-sky);
	outline-offset: -3px;
}

.related-post-card .card-accent {
	z-index: 1;
}

.related-post-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--secondary);
}

.related-post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.related-post-card:hover .related-post-card__image {
	transform: scale(1.035);
}

.related-post-card__placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: var(--brand-rain);
}

.related-post-card__placeholder .icon-svg {
	width: 48px;
	height: 48px;
}

.related-post-card__body {
	display: block;
	padding: 24px;
}

.related-post-card__category {
	display: block;
	color: var(--brand-rain);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.related-post-card h3 {
	margin-top: 10px;
	font-size: 24px;
	line-height: 1.25;
	transition: color 0.15s ease;
}

.related-post-card:hover h3 {
	color: var(--brand-sky);
}

@media (min-width: 768px) {
	.related-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}