/*
Theme Name:   Math Outreach
Theme URI:    https://math-outreach.ch
Description:  Thème classique de math-outreach.ch — portail quadrilingue de la médiation mathématique en Suisse. Direction visuelle « Récré géométrique » : chaleureux, ludique, sobre. Formes géométriques élémentaires comme langage décoratif ; la couleur code les catégories d'offres. Accueil (héros, carte, agenda), archives filtrables et fiches pour activités et événements.
Version:      0.5.0
Requires PHP: 8.1
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  math-outreach
*/

/* =========================================================
   1. Design tokens — « Récré géométrique »
   ========================================================= */
:root {
	/* Colours */
	--bg: #FFFCF7;            /* warm off-white page */
	--surface: #FFFFFF;       /* cards, rows, fields */
	--surface-alt: #FBF6EA;   /* alternating section band */
	--ink: #264653;           /* headings, strong text, footer */
	--text: #52616B;          /* body text */
	--muted: #66747A;         /* meta, baseline — darkened from #7C8B90 for AA on small text */
	--teal: #2A9D8F;          /* primary */
	--teal-dark: #21867A;     /* primary hover */
	--teal-text: #1F7468;     /* text on teal pastel; in-text links */
	--teal-10: #D4EBE7;       /* teal pastel */
	--coral: #E76F51;         /* accent */
	--coral-text: #AE4526;    /* text on coral pastel */
	--coral-10: #FADFD3;      /* coral pastel */
	--sun: #E9C46A;           /* sand-yellow accent */
	--sun-deep: #E9A23B;      /* AA-safe yellow for links/borders on white */
	--sun-text: #8A6A15;      /* text on yellow pastel */
	--sun-10: #FAF0D3;        /* yellow pastel */
	--border-soft: #E8E0CE;   /* search field border */
	--border-chip: #CBD5D9;   /* canton pill border */
	--pill-off: #F3EDE0;      /* inactive pill (lang, toggles) */

	/* Type */
	--font-display: "Baloo 2", system-ui, "Segoe UI", sans-serif;
	--font-body: "Nunito Sans", system-ui, "Segoe UI", sans-serif;

	/* Radii */
	--r-pill: 999px;
	--r-card: 20px;
	--r-row: 18px;
	--r-date: 16px;
	--r-block: 24px;

	/* Shadows */
	--sh-card: 0 10px 26px rgba(38, 70, 83, 0.08);
	--sh-row: 0 6px 18px rgba(38, 70, 83, 0.07);
	--sh-btn: 0 10px 24px rgba(42, 157, 143, 0.28);
	--sh-hover: 0 16px 34px rgba(38, 70, 83, 0.13);
	--sh-header: 0 6px 20px rgba(38, 70, 83, 0.08);

	/* Layout */
	--mo-maxw: 1240px;
	--mo-gutter: clamp(1.25rem, 4vw, 3rem);

	/* ---- Legacy aliases: keep plugin CSS (mo-front.css) on the same
	   palette regardless of stylesheet load order. ---- */
	--mo-primary: var(--teal);
	--mo-primary-dark: var(--teal-dark);
	--mo-primary-soft: var(--teal-10);
	--mo-accent: var(--coral);
	--mo-accent-dark: var(--coral-text);
	--mo-ink: var(--ink);
	--mo-ink-soft: var(--text);
	--mo-text: var(--text);
	--mo-text-muted: var(--muted);
	--mo-line: var(--border-soft);
	--mo-border: var(--border-soft);
	--mo-bg: var(--bg);
	--mo-surface: var(--surface);
	--mo-focus: var(--ink);
	--mo-badge-bg: var(--teal-10);
	--mo-radius: 12px;
	--mo-radius-lg: 18px;
	--mo-shadow: var(--sh-row);
	--mo-font: var(--font-body);
	--mo-maxw-legacy: 72rem;
}

/* =========================================================
   2. Light reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

figure, blockquote { margin: 0 0 1.25rem; }

table { border-collapse: collapse; width: 100%; }

th, td { padding: 0.55rem 0.8rem; border: 1px solid var(--border-soft); text-align: left; }

/* =========================================================
   3. Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.55em;
	font-family: var(--font-display);
	line-height: 1.15;
	color: var(--ink);
	font-weight: 700;
	overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.7rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: 1.3rem; }

p, ul, ol { margin: 0 0 1.1rem; }

a {
	color: var(--teal-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color 0.15s ease;
}

a:hover { color: var(--coral-text); text-decoration: underline; }

strong, b { font-weight: 800; color: var(--ink); }

code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.925em; }

pre {
	overflow-x: auto;
	padding: 1rem;
	background: var(--surface-alt);
	border-radius: 14px;
}

hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2rem 0; }

/* =========================================================
   4. Accessibility helpers
   ========================================================= */
:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
	border-radius: 4px;
}

.mo-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.65rem 1.1rem;
	background: var(--ink);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	border-radius: 0 0 12px 0;
	text-decoration: none;
}

.mo-skip-link:focus { left: 0; color: #fff; }

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

/* =========================================================
   5. Layout containers & sections
   ========================================================= */
.mo-container {
	max-width: var(--mo-maxw);
	margin-inline: auto;
	padding-inline: var(--mo-gutter);
}

.mo-section { padding-block: clamp(2.75rem, 5vw, 4rem); }

.mo-section--alt { background: var(--surface-alt); }

.mo-section > .mo-container > h2 { margin-bottom: 1.4rem; }

/* Section heading with the geometric shape trio + optional "see all" link */
.mo-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1.5rem;
}

.mo-section-head h2 { margin-bottom: 0; }

.mo-heading { display: flex; align-items: center; gap: 0.75rem; }

.mo-heading h2 { margin: 0; }

.mo-more-link {
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 0.85rem;
	color: var(--teal-text);
	white-space: nowrap;
	text-decoration: none;
}

.mo-more-link:hover { color: var(--coral-text); text-decoration: underline; }

/* Decorative geometric trio (● ■ ▲) — purely visual */
.mo-shapes {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
}

.mo-shapes span { display: block; }

.mo-shapes .s-circle { width: 11px; height: 11px; border-radius: 50%; background: var(--teal); }
.mo-shapes .s-square { width: 11px; height: 11px; border-radius: 3px; background: var(--sun); }
.mo-shapes .s-triangle { width: 13px; height: 11px; background: var(--coral); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }

/* =========================================================
   6. Buttons
   ========================================================= */
.mo-btn,
.mo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.7rem;
	border: 2px solid transparent;
	border-radius: var(--r-pill);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.mo-btn:hover, .mo-button:hover { text-decoration: none; }

.mo-btn--primary,
.mo-button--primary {
	background: var(--teal);
	color: #fff;
	box-shadow: var(--sh-btn);
}

.mo-btn--primary:hover,
.mo-button--primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }

.mo-btn--primary:active,
.mo-button--primary:active { transform: translateY(0); }

.mo-btn--secondary {
	background: var(--coral-10);
	color: var(--coral-text);
}

.mo-btn--secondary:hover { background: #F6CBB9; color: var(--coral-text); transform: translateY(-1px); }

.mo-btn--coral {
	background: var(--coral);
	color: #fff;
	box-shadow: 0 10px 24px rgba(231, 111, 81, 0.28);
}

.mo-btn--coral:hover { background: #D65B3D; color: #fff; transform: translateY(-1px); }

.mo-btn--outline-ink {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}

.mo-btn--outline-ink:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }

/* Ghost: quiet secondary action (e.g. "Suggest a correction") */
.mo-btn--ghost {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--border-chip);
	box-shadow: none;
}

.mo-btn--ghost:hover { background: var(--teal-10); border-color: var(--teal); color: var(--teal-text); }

/* Small button variant (banners) */
.mo-btn--sm { padding: 0.75rem 1.5rem; font-size: 0.95rem; }

/* Legacy aliases (kept so any stray markup still looks reasonable) */
.mo-btn--on-dark { background: var(--teal); color: #fff; box-shadow: var(--sh-btn); }
.mo-btn--on-dark:hover { background: var(--teal-dark); color: #fff; }
.mo-btn--outline-on-dark { background: var(--coral-10); color: var(--coral-text); }
.mo-btn--outline-on-dark:hover { background: #F6CBB9; color: var(--coral-text); }

@media (prefers-reduced-motion: reduce) {
	.mo-btn, .mo-button { transition: background-color 0.15s ease, color 0.15s ease; }
	.mo-btn:hover, .mo-button:hover { transform: none; }
}

/* =========================================================
   7. Site header, navigation, language switcher
   ========================================================= */
.mo-site-header {
	background: var(--bg);
	position: sticky;
	top: 0;
	z-index: 100;
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.mo-site-header.is-stuck {
	background: rgba(255, 252, 247, 0.92);
	-webkit-backdrop-filter: saturate(1.2) blur(8px);
	backdrop-filter: saturate(1.2) blur(8px);
	box-shadow: var(--sh-header);
}

.mo-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: 4.25rem;
	padding-block: 0.85rem;
}

.mo-brand { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; flex-wrap: wrap; }

.mo-brand__name {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--teal);
	text-decoration: none;
	white-space: nowrap;
}

.mo-brand__name .mo-brand__tld { color: var(--coral); }

.mo-brand__name:hover { color: var(--teal-dark); }

.mo-brand__tagline {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mo-header-tools { display: flex; align-items: center; gap: 1.5rem; }

.mo-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.35rem;
	align-items: center;
}

.mo-nav a {
	display: inline-block;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	color: var(--ink);
	font-weight: 800;
	font-size: 0.9375rem;
	text-decoration: none;
	white-space: nowrap;
	position: relative;
}

.mo-nav a:hover { color: var(--teal); }

.mo-nav a::after {
	content: "";
	position: absolute;
	left: 0.65rem;
	right: 0.65rem;
	bottom: 0.05rem;
	height: 2px;
	border-radius: 2px;
	background: var(--teal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.15s ease;
}

.mo-nav a:hover::after,
.mo-nav .current-menu-item > a::after,
.mo-nav a[aria-current="page"]::after { transform: scaleX(1); }

.mo-nav .current-menu-item > a,
.mo-nav a[aria-current="page"] { color: var(--teal); }

/* Language switcher — pills */
.mo-lang-switcher ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 5px;
}

.mo-lang-switcher a {
	display: inline-block;
	padding: 5px 9px;
	border-radius: var(--r-pill);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
	background: var(--pill-off);
	color: var(--text);
}

.mo-lang-switcher a:hover { background: #E9E0CE; color: var(--ink); }

.mo-lang-switcher a[aria-current="page"] {
	background: var(--teal-text);
	color: #fff;
}

/* Mobile toggle */
.mo-nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	border: 2px solid var(--ink);
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	cursor: pointer;
}

.mo-nav-toggle__bars {
	display: inline-block;
	width: 1.1rem;
	height: 2px;
	background: currentColor;
	position: relative;
}

.mo-nav-toggle__bars::before,
.mo-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.mo-nav-toggle__bars::before { top: -6px; }
.mo-nav-toggle__bars::after { top: 6px; }

@media (max-width: 900px) {
	.mo-nav-toggle { display: inline-flex; }

	.mo-header-tools {
		position: absolute;
		inset: 100% 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1.25rem var(--mo-gutter) 1.5rem;
		background: var(--surface);
		border-bottom: 1px solid var(--border-soft);
		box-shadow: var(--sh-header);
		display: none;
	}

	.mo-header-tools.is-open { display: flex; }

	.mo-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }

	.mo-nav a { display: block; padding: 0.7rem 0.65rem; font-size: 1.05rem; }

	.mo-lang-switcher ul { align-self: flex-start; flex-wrap: wrap; }
}

/* =========================================================
   8. Hero
   ========================================================= */
.mo-hero {
	position: relative;
	overflow: hidden;
	background: var(--bg);
	padding-block: clamp(3.5rem, 8vw, 6.25rem);
}

.mo-hero__inner { position: relative; z-index: 1; }

.mo-hero h1 {
	color: var(--ink);
	font-size: clamp(2.375rem, 5vw, 3.625rem); /* 38px → 58px, per the hi-fi handoff */
	max-width: 17ch;
	margin-bottom: 0;
}

.mo-hero__sub {
	font-size: clamp(1.05rem, 2vw, 1.1875rem);
	font-weight: 600;
	line-height: 1.6;
	color: var(--text);
	max-width: 52ch;
	margin: 1.25rem 0 0;
}

.mo-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }

/* Decorative shapes (aria-hidden), behind the text */
.mo-hero__shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.mo-hero__shape { position: absolute; }

.mo-hero__shape--circle {
	width: 210px; height: 210px; border-radius: 50%;
	background: var(--teal-10);
	right: 8%; top: 8%;
}

.mo-hero__shape--square {
	width: 92px; height: 92px; border-radius: 22px;
	background: var(--sun-10);
	right: 26%; bottom: 20%;
	transform: rotate(14deg);
}

.mo-hero__shape--triangle {
	width: 120px; height: 104px;
	background: var(--coral-10);
	right: 6%; bottom: 24%;
	clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

@media (max-width: 900px) {
	.mo-hero__shape { opacity: 0.6; transform: scale(0.6); }
	.mo-hero__shape--square { transform: rotate(14deg) scale(0.6); }
	.mo-hero__shape--circle { right: -4%; }
}

@media (max-width: 620px) {
	.mo-hero__shapes { display: none; }
}

/* =========================================================
   9. Home: map + events split, card grid, banners
   ========================================================= */
.mo-home-split {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: start;
}

@media (max-width: 960px) {
	.mo-home-split { grid-template-columns: 1fr; }
}

.mo-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1100px) { .mo-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .mo-card-grid { grid-template-columns: 1fr; } }

/* Double CTA banner */
.mo-banner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

@media (max-width: 760px) { .mo-banner { grid-template-columns: 1fr; } }

.mo-banner__cell {
	border-radius: var(--r-block);
	padding: clamp(1.75rem, 4vw, 2.25rem);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.875rem;
}

.mo-banner__cell--creators { background: var(--teal-10); }
.mo-banner__cell--forum { background: var(--sun-10); }

.mo-banner__cell h2 { font-size: clamp(1.35rem, 2.5vw, 1.625rem); margin: 0; color: var(--ink); }

.mo-banner__cell p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--text); }

.mo-banner__cell--forum p { color: #5B5236; }

.mo-badge-en {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	background: rgba(38, 70, 83, 0.1);
	border: 1px solid rgba(38, 70, 83, 0.2);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	vertical-align: middle;
	color: var(--ink);
}

/* Notices when the plugin is inactive */
.mo-plugin-missing {
	padding: 1rem 1.25rem;
	border: 1px dashed var(--border-soft);
	border-radius: 14px;
	background: var(--surface);
	color: var(--muted);
	font-size: 0.95rem;
}

/* =========================================================
   10. Archive layout: filter bar on top + results
   ========================================================= */
.mo-archive-header { margin-bottom: 1.5rem; }

.mo-archive-layout { display: block; }

.mo-archive-sidebar { margin-bottom: 1.5rem; }

.mo-results { min-width: 0; }

.mo-no-results {
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: var(--muted);
	background: var(--surface);
	border: 1px dashed var(--border-soft);
	border-radius: var(--r-card);
}

.mo-past-events { margin-top: 3rem; }

.mo-past-events > h2 {
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-soft);
}

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

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

.mo-pagination .page-numbers {
	display: inline-block;
	min-width: 2.6rem;
	padding: 0.45rem 0.8rem;
	border: 1.5px solid var(--border-soft);
	border-radius: var(--r-pill);
	background: var(--surface);
	text-align: center;
	text-decoration: none;
	color: var(--teal-text);
	font-weight: 800;
}

.mo-pagination .page-numbers.current {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}

.mo-pagination a.page-numbers:hover { background: var(--teal-10); }

/* =========================================================
   11. Fallback entry card (parts/entry-card-fallback.php)
   ========================================================= */
.mo-card-fallback {
	background: var(--surface);
	border-radius: var(--r-card);
	overflow: hidden;
	box-shadow: var(--sh-card);
	display: flex;
	flex-direction: column;
}

.mo-card-fallback__thumb { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }

.mo-card-fallback__body { padding: 1.375rem; display: flex; flex-direction: column; gap: 0.6rem; }

.mo-card-fallback__title { font-size: 1.3rem; margin: 0; }

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

.mo-card-fallback__title a:hover { color: var(--teal); text-decoration: none; }

.mo-card-fallback__excerpt { font-size: 0.9rem; color: var(--text); margin: 0; }

/* =========================================================
   12. Single: content + meta aside
   ========================================================= */
.mo-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 2.5rem;
	align-items: start;
	margin-top: 1.5rem;
}

@media (max-width: 900px) {
	.mo-single-layout { grid-template-columns: minmax(0, 1fr); }
}

.mo-single-header { margin-bottom: 1.5rem; }

.mo-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

/* Single-page title */
.single-mo_activity .mo-single-header h1,
.single-mo_event .mo-single-header h1 { font-size: clamp(1.9rem, 3.5vw, 2.4rem); }

.mo-single-aside > * + * { margin-top: 1.5rem; }

.mo-single-aside .mo-aside-box {
	background: var(--surface);
	border-radius: var(--r-card);
	box-shadow: var(--sh-card);
	padding: 1.5rem;
}

.mo-entry-content { max-width: 46rem; font-size: 1.0625rem; }

.mo-entry-content img { border-radius: 14px; }

.mo-entry-content > *:first-child { margin-top: 0; }

.mo-entry-content h2 { margin-top: 2rem; }

/* Attached documents */
.mo-documents { margin-top: 2.5rem; }

.mo-documents ul { list-style: none; margin: 0; padding: 0; }

.mo-documents li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--border-soft);
}

.mo-documents li:last-child { border-bottom: 0; }

.mo-documents .mo-doc-meta {
	font-size: 0.78rem;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mo-documents__license { font-size: 0.85rem; color: var(--muted); margin-top: 0.85rem; }

/* Suggest an edit */
.mo-suggest-edit {
	margin-top: 2.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--teal-10);
	border-radius: var(--r-block);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.mo-suggest-edit p { margin: 0; color: var(--ink); }

.mo-back-link {
	display: inline-block;
	margin-top: 2rem;
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
}

.mo-back-link::before { content: "←\00a0"; }

.mo-back-link:hover { text-decoration: none; }

.mo-related-section { margin-top: 3rem; }

/* Single-header badges: type + language pills, teaser, machine-translation. */
.mo-badges .mo-badge {
	display: inline-block;
	padding: 5px 11px;
	border-radius: var(--r-pill);
	background: var(--teal-10);
	color: var(--teal-text);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mo-badge--accent { background: var(--coral-10); color: var(--coral-text); }

/* Machine-translation badge (auto-translated content pending review). */
.mo-badge--mt { background: #EFE4FA; color: #5A2CA0; }

.mo-badge a { color: inherit; text-decoration: none; }

.mo-badge a:hover { color: inherit; text-decoration: underline; }

/* =========================================================
   13. Generic content (page.php / index.php)
   ========================================================= */
.mo-content-narrow { max-width: 46rem; }

.page .mo-content-narrow, .mo-content-narrow { font-size: 1.0625rem; }

.mo-index-list article {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--border-soft);
}

.mo-index-list article:last-of-type { border-bottom: 0; }

.mo-index-list .entry-title { font-size: 1.4rem; margin-bottom: 0.35rem; }

.mo-index-list .entry-title a { text-decoration: none; color: var(--ink); }

.mo-index-list .entry-title a:hover { color: var(--teal); }

.mo-entry-date { font-size: 0.85rem; color: var(--muted); }

/* Generic single/page header spacing */
.mo-page-header { margin-bottom: 1.25rem; }

/* =========================================================
   14. Footer
   ========================================================= */
.mo-site-footer {
	margin-top: 3.5rem;
	background: var(--ink);
	color: rgba(255, 252, 247, 0.8);
	font-size: 0.95rem;
}

.mo-site-footer a { color: #fff; text-decoration: none; }

.mo-site-footer a:hover { color: var(--sun); text-decoration: underline; }

.mo-site-footer__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 2.5rem;
	padding-block: clamp(2.25rem, 5vw, 3rem);
}

@media (max-width: 720px) { .mo-site-footer__cols { grid-template-columns: 1fr; gap: 1.75rem; } }

.mo-site-footer h2 {
	color: #fff;
	font-size: 0.95rem;
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.9rem;
	font-weight: 800;
}

.mo-site-footer__about p { color: rgba(255, 252, 247, 0.8); line-height: 1.6; }

.mo-site-footer ul { list-style: none; margin: 0; padding: 0; }

.mo-site-footer li { margin-bottom: 0.5rem; font-weight: 800; font-size: 0.85rem; }

.mo-site-footer__license { font-size: 0.82rem; color: rgba(255, 252, 247, 0.62); margin-top: 1rem; font-weight: 600; }

.mo-site-footer__bottom {
	border-top: 1px solid rgba(255, 252, 247, 0.15);
	padding-block: 1.1rem;
	font-size: 0.8rem;
	color: rgba(255, 252, 247, 0.72);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.mo-site-footer__bottom-brand { display: flex; align-items: center; gap: 0.75rem; }

.mo-site-footer__bottom-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.mo-site-footer__bottom-brand .mo-brand-mark {
	font-family: var(--font-display);
	font-weight: 700;
	color: #fff;
	font-size: 0.95rem;
}

.mo-site-footer__bottom .mo-license-tag { font-weight: 700; letter-spacing: 0.02em; }

/* =========================================================
   15. Plugin container wrappers (home)
   ========================================================= */
.mo-map-wrap { border-radius: var(--r-block); }

.mo-front-filters { margin-top: 0.5rem; }

/* WordPress core alignment classes (minimal) */
.alignleft { float: left; margin: 0.25rem 1.25rem 1rem 0; }
.alignright { float: right; margin: 0.25rem 0 1rem 1.25rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 600px) {
	.alignleft, .alignright { float: none; margin: 0 0 1rem; }
}
