/**
 * Ministry of Board Games — component styles.
 *
 * Tokens come from theme.json (var(--wp--preset--*) and var(--wp--custom--*)).
 * Naming: mobg-{component}__{element}--{modifier}; block style variations use
 * WordPress' is-style-mobg-* classes so editors can apply them from the UI.
 *
 * Contents
 *  1. Base & accessibility
 *  2. Utilities: tints, illustrations, eyebrow, stamp, lead
 *  3. Buttons
 *  4. Legal Notice bar
 *  5. Header & navigation (desktop + mobile overlay)
 *  6. Hero & promo cards
 *  7. Sections, section heads, panels
 *  8. Cards, tracks, grids, empty states, pagination
 *  9. About / charter / document / features / ticks
 * 10. Membership band, team note, closing CTA
 * 11. Page banner, breadcrumbs, content, singles, slots
 * 12. Footer
 * 13. Forms & search
 * 14. Comments, 404, misc
 * 15. Editor-only helpers
 * 16. Reduced motion
 */

/* ---------------------------------------------------------------------------
 * 1. Base & accessibility
 * ------------------------------------------------------------------------ */

:root {
	--mobg-navy: var(--wp--preset--color--navy, #031441);
	--mobg-line: var(--wp--preset--color--line, #D8D3C4);
	--mobg-radius-sm: var(--wp--custom--radius--sm, 6px);
	--mobg-radius-md: var(--wp--custom--radius--md, 12px);
	--mobg-radius-lg: var(--wp--custom--radius--lg, 20px);
	--mobg-radius-xl: var(--wp--custom--radius--xl, 32px);
	--mobg-ease: var(--wp--custom--transition, 180ms cubic-bezier(.2,.7,.3,1));
	--mobg-header-h: 76px;
	--mobg-sticky-top: var(--wp-admin--admin-bar--height, 0px);
}

html {
	scroll-padding-top: calc(var(--mobg-sticky-top) + 16px);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

/* Template parts sit flush: no global block gap between header, main and footer. */
body .wp-site-blocks > * + * {
	margin-block-start: 0;
}

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

::selection {
	background: var(--wp--preset--color--seal);
	color: var(--wp--preset--color--navy);
}

/* Focus: navy ring on light surfaces, gold/white ring on dark surfaces. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
	border-radius: 0;
}

:where(.mobg-notice, .mobg-footer, .is-style-mobg-stripes, .has-navy-background-color) :where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--seal);
}

:where(.mobg-promo) :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--white);
}

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--wp--preset--color--seal);
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	z-index: 100000;
}

.mobg-content--canvas > .alignfull,
.mobg-main > .alignfull {
	margin-block: 0;
}

.mobg-main {
	position: relative;
	z-index: 1;
}

/* ---------------------------------------------------------------------------
 * 2. Utilities
 * ------------------------------------------------------------------------ */

.mobg-tint--cone { background-color: var(--wp--preset--color--cone-50); }
.mobg-tint--thistle { background-color: var(--wp--preset--color--thistle-50); }
.mobg-tint--tartan { background-color: var(--wp--preset--color--tartan-50); }
.mobg-tint--loch { background-color: var(--wp--preset--color--loch-50); }

.mobg-illus { position: relative; }
.mobg-illus--dice { --mobg-illus: url("../images/illus/dice.svg"); }
.mobg-illus--meeple { --mobg-illus: url("../images/illus/meeple.svg"); }
.mobg-illus--seal { --mobg-illus: url("../images/illus/seal.svg"); }
.mobg-illus--cone { --mobg-illus: url("../images/illus/cone.svg"); }
.mobg-illus--shield { --mobg-illus: url("../images/illus/shield.svg"); }
.mobg-illus--cards { --mobg-illus: url("../images/illus/cards.svg"); }

/* Eyebrow: plain short label, no leading rule and no dash. */
.is-style-mobg-eyebrow {
	display: block;
	margin: 0 0 .5rem;
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 750;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cone);
}

.has-text-align-center.is-style-mobg-eyebrow { text-align: center; }

/* Badge (status, label): strictly square, flat, never rotated. */
.is-style-mobg-stamp {
	display: block;
	width: fit-content;
	margin-top: 0;
	padding: .4em .8em .35em;
	font-family: var(--wp--preset--font-family--ui);
	font-size: .75rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cone);
	background: var(--wp--preset--color--paper);
	border: 2px solid currentColor;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}

.is-style-mobg-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

/* ---------------------------------------------------------------------------
 * 3. Buttons
 * ------------------------------------------------------------------------ */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
	text-decoration: none;
	transition: background-color var(--mobg-ease), color var(--mobg-ease), border-color var(--mobg-ease), transform var(--mobg-ease), box-shadow var(--mobg-ease);
}

.wp-block-button__link:active { transform: translateY(1px); }

.is-style-mobg-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
}

.is-style-mobg-outline .wp-block-button__link:hover,
.is-style-mobg-outline .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.is-style-mobg-accent .wp-block-button__link {
	background: var(--wp--preset--color--cone);
	border-color: var(--wp--preset--color--cone);
	color: var(--wp--preset--color--white);
	box-shadow: 0 6px 18px rgba(194, 65, 12, .22);
}

.is-style-mobg-accent .wp-block-button__link:hover,
.is-style-mobg-accent .wp-block-button__link:focus-visible {
	background: #9A3412;
	border-color: #9A3412;
	color: var(--wp--preset--color--white);
}

.is-style-mobg-light .wp-block-button__link {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	padding: .6rem 1.15rem;
	min-height: 40px;
}

.is-style-mobg-light .wp-block-button__link:hover,
.is-style-mobg-light .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--parchment);
	border-color: var(--wp--preset--color--parchment);
	color: var(--wp--preset--color--navy);
}

.is-style-mobg-arrow .wp-block-button__link {
	background: transparent;
	border-color: transparent;
	color: var(--wp--preset--color--navy);
	padding-inline: 0;
	min-height: 44px;
}

.is-style-mobg-arrow .wp-block-button__link::after,
.mobg-card__link::after {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("../images/illus/arrow.svg") center / contain no-repeat;
	mask: url("../images/illus/arrow.svg") center / contain no-repeat;
	transition: transform var(--mobg-ease);
}

.is-style-mobg-arrow .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--cone);
	border-color: transparent;
}

.is-style-mobg-arrow .wp-block-button__link:hover::after,
.mobg-card__link:hover::after {
	transform: translateX(3px);
}

/* Account button: outline pill with person icon; icon-only below 1280px. */
.is-style-mobg-account .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	padding-inline: .9rem 1.1rem;
}

.is-style-mobg-account .wp-block-button__link::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("../images/illus/account.svg") center / contain no-repeat;
	mask: url("../images/illus/account.svg") center / contain no-repeat;
}

.is-style-mobg-account .wp-block-button__link:hover,
.is-style-mobg-account .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* ---------------------------------------------------------------------------
 * 4. Legal Notice bar
 * ------------------------------------------------------------------------ */

.mobg-notice-wrap { position: relative; z-index: 60; }

.mobg-notice {
	position: relative;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .5rem clamp(1rem, 4vw, 2rem) calc(.5rem + 4px) !important;
	font-family: var(--wp--preset--font-family--ui);
	font-size: .8125rem;
	line-height: 1.45;
}

/* Traffic-cone stripe along the bottom edge — a nod to the cone in the crest. */
.mobg-notice::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: repeating-linear-gradient(-45deg, var(--wp--preset--color--cone) 0 10px, var(--wp--preset--color--white) 10px 20px);
}

.mobg-notice > p { margin: 0; }

.mobg-notice__label {
	flex: 0 0 auto;
	padding: .15em .6em;
	border: 1.5px solid var(--wp--preset--color--seal);
	border-radius: 0;
	color: var(--wp--preset--color--seal);
	font-size: .6875rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mobg-notice__text { flex: 1 1 auto; min-width: 0; }

.mobg-notice a {
	color: var(--wp--preset--color--white);
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.mobg-notice a:hover { color: var(--wp--preset--color--seal); }

/* JS-enhanced marquee (only when motion is allowed and the text overflows). */
.mobg-notice.is-marquee .mobg-notice__text { overflow: hidden; }

.mobg-notice__track {
	display: flex;
	width: max-content;
	gap: 4rem;
	animation: mobg-marquee var(--mobg-marquee-duration, 40s) linear infinite;
	will-change: transform;
}

.mobg-notice__track > span { white-space: nowrap; }

.mobg-notice.is-paused .mobg-notice__track,
.mobg-notice.is-marquee:hover .mobg-notice__track,
.mobg-notice.is-marquee:focus-within .mobg-notice__track {
	animation-play-state: paused;
}

@keyframes mobg-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-50% - 2rem)); }
}

.mobg-notice__toggle {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, .5);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--white);
	cursor: pointer;
}

.mobg-notice__toggle:hover { border-color: var(--wp--preset--color--seal); color: var(--wp--preset--color--seal); }

.mobg-notice__toggle::before {
	content: "";
	width: 10px;
	height: 12px;
	border-inline: 3px solid currentColor;
}

.mobg-notice__toggle[aria-pressed="true"]::before {
	width: 0;
	height: 0;
	border-block: 6px solid transparent;
	border-inline: 10px solid currentColor;
	border-inline-end: 0;
	margin-left: 3px;
}

@media (max-width: 599.98px) {
	.mobg-notice { align-items: center; font-size: .75rem; }
	.mobg-notice__label { display: none; }
	.mobg-notice__text { white-space: nowrap; overflow: hidden; }
	.mobg-notice__text a { white-space: nowrap; }
}
@media (max-width: 599.98px) and (prefers-reduced-motion: reduce) {
	.mobg-notice__text { white-space: normal; overflow: visible; }
}

/* ---------------------------------------------------------------------------
 * 5. Header & navigation
 * ------------------------------------------------------------------------ */

.mobg-site-header {
	/* Static header: it scrolls away with the page (no sticky header). */
	position: relative;
	z-index: 50;
}

@media (max-width: 600px) {
	.admin-bar .mobg-site-header { top: 0; }
}

.mobg-header {
	border-bottom: 1px solid var(--mobg-line);
	transition: box-shadow var(--mobg-ease);
}

.mobg-site-header.is-scrolled .mobg-header {
	box-shadow: 0 6px 24px rgba(3, 20, 65, .08);
}

.mobg-header__inner {
	min-height: var(--mobg-header-h);
	gap: clamp(.75rem, 2vw, 2rem);
	padding-block: .625rem;
}

.mobg-header__logo { flex: 0 0 auto; margin: 0; line-height: 0; }

.mobg-header__logo img,
.mobg-header__logo .custom-logo {
	width: clamp(150px, 16vw, 196px) !important;
	height: auto;
}

.mobg-header__logo a { display: inline-block; }

.mobg-nav-primary {
	flex: 1 1 auto;
	--navigation-layout-justify: center;
}

.mobg-nav-primary .wp-block-navigation__container {
	gap: clamp(1rem, 1.8vw, 2rem);
}

.mobg-nav-primary .wp-block-navigation-item__content {
	position: relative;
	padding-block: .6rem;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	letter-spacing: .01em;
}

.mobg-nav-primary .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset: auto 0 .2rem 0;
	height: 2px;
	border-radius: 0;
	background: var(--wp--preset--color--cone);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--mobg-ease);
}

.mobg-nav-primary .wp-block-navigation-item__content:hover::after,
.mobg-nav-primary .current-menu-item > .wp-block-navigation-item__content::after,
.mobg-nav-primary .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
}

.mobg-nav-primary .current-menu-item > .wp-block-navigation-item__content,
.mobg-nav-primary .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--navy);
	font-weight: 750;
}

/* Mobile-only membership/account items: hidden in the desktop bar. */
.mobg-nav-primary .wp-block-navigation__responsive-container:not(.is-menu-open) .mobg-nav-mobile-only {
	display: none;
}

.mobg-header__actions { flex: 0 0 auto; gap: .5rem; align-items: center; }
.mobg-header__actions > * { margin: 0 !important; }
.mobg-header__search,
.mobg-header__search .wp-block-search__inside-wrapper { display: flex; align-items: center; }
.mobg-header__buttons { gap: .5rem; }

/* Header search (button-only, expands on click). */
.mobg-header__search .wp-block-search__button {
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	margin: 0;
	border: 2px solid var(--mobg-line);
	border-radius: 0;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--navy);
}

.mobg-header__search .wp-block-search__button:hover { border-color: var(--wp--preset--color--navy); }

.mobg-header__search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }

.mobg-header__search .wp-block-search__inside-wrapper { border: 0; padding: 0; }

.mobg-header__search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	min-width: 220px;
	margin-right: .4rem;
}

/* Hamburger + close icons. */
.mobg-nav-primary .wp-block-navigation__responsive-container-open,
.mobg-nav-primary .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	place-items: center;
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 0;
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--paper);
}

.mobg-nav-primary .wp-block-navigation__responsive-container-open svg,
.mobg-nav-primary .wp-block-navigation__responsive-container-close svg { width: 24px; height: 24px; }

/* Collapse to the overlay below 1080px (core's own breakpoint is 600px). */
@media (max-width: 1079.98px) {
	.mobg-nav-primary {
		flex: 0 0 auto;
		order: 3;
	}

	.mobg-header .mobg-header__actions { order: 2; margin-left: auto; }

	.mobg-nav-primary .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-grid;
	}

	.mobg-nav-primary .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.mobg-header .mobg-header__search { display: none; }
}

@media (max-width: 781.98px) {
	:root { --mobg-header-h: 64px; }
	.mobg-header .mobg-header__actions { display: none; }
	.mobg-nav-primary { margin-left: auto; }
}

@media (max-width: 1279.98px) {
	.is-style-mobg-account .wp-block-button__link {
		width: 44px;
		padding: 0;
		font-size: 0;
		gap: 0;
	}
}

/* Overlay menu (all widths where it is open). */
/* The open overlay must sit above the Legal Notice bar. */
.mobg-site-header:has(.is-menu-open) { z-index: 100; }

.mobg-nav-primary .wp-block-navigation__responsive-container.is-menu-open {
	padding: calc(var(--mobg-sticky-top) + 1rem) clamp(1.25rem, 5vw, 2rem) 2rem !important;
	background-color: var(--wp--preset--color--paper);
	background-image: radial-gradient(rgba(3, 20, 65, .07) 1px, transparent 1px);
	background-size: 18px 18px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mobg-nav-primary .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4rem !important;
	align-items: stretch !important;
	max-width: 560px;
	margin-inline: auto;
}

.mobg-nav-primary .is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
	align-items: stretch !important;
}

.mobg-nav-primary .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--mobg-line);
}

.mobg-nav-primary .is-menu-open .wp-block-navigation-item__content {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 1rem .25rem !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 5vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
}

.mobg-nav-primary .is-menu-open .current-menu-item > .wp-block-navigation-item__content,
.mobg-nav-primary .is-menu-open .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--cone);
}

.mobg-nav-primary .is-menu-open .mobg-nav-mobile-only { border-bottom: 0; }

.mobg-nav-primary .is-menu-open .mobg-nav-cta { margin-top: 1.5rem; }

.mobg-nav-primary .is-menu-open .mobg-nav-cta .wp-block-navigation-item__content {
	display: flex;
	justify-content: center;
	padding: 1rem 1.5rem !important;
	border-radius: 0;
	background: var(--wp--preset--color--cone);
	color: var(--wp--preset--color--white) !important;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 1.0625rem;
	font-weight: 700;
	text-align: center;
}

.mobg-nav-primary .is-menu-open .mobg-nav-account .wp-block-navigation-item__content {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	margin-top: .75rem;
	padding: .9rem 1.5rem !important;
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
}

.mobg-nav-primary .is-menu-open .mobg-nav-account .wp-block-navigation-item__content::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("../images/illus/account.svg") center / contain no-repeat;
	mask: url("../images/illus/account.svg") center / contain no-repeat;
}

.mobg-nav-primary .is-menu-open .wp-block-navigation__responsive-container-close {
	display: inline-grid;
	position: absolute;
	top: calc(var(--mobg-sticky-top) + 1rem);
	right: clamp(1rem, 4vw, 2rem);
}

/* ---------------------------------------------------------------------------
 * 6. Hero & promo cards
 * ------------------------------------------------------------------------ */

.mobg-hero {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(rgba(3, 20, 65, .08) 1px, transparent 1px),
		linear-gradient(180deg, var(--wp--preset--color--parchment), var(--wp--preset--color--paper));
	background-size: 22px 22px, 100% 100%;
	border-bottom: 1px solid var(--mobg-line);
}

.mobg-hero__intro { position: relative; z-index: 1; }

.mobg-hero__stamp { margin-bottom: 1.25rem !important; }

.mobg-hero__title {
	margin-block: 0 1.25rem;
	text-wrap: balance;
}

.mobg-hero__accent {
	display: block;
	color: var(--wp--preset--color--cone);
}

.mobg-hero .is-style-mobg-lead {
	max-width: 640px;
	margin-inline: auto;
	text-wrap: pretty;
}

.mobg-hero__actions { margin-top: 2rem; gap: .75rem; }

.mobg-promos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	align-items: start;
	margin-top: var(--wp--preset--spacing--70) !important;
}

.mobg-promo {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	margin: 0 !important;
	padding: 1.75rem 1.5rem;
	overflow: hidden;
	isolation: isolate;
	border-radius: 0;
	color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform var(--mobg-ease), box-shadow var(--mobg-ease);
}

.mobg-promo:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); }

.mobg-promo--cone { background: var(--wp--preset--color--cone); }
.mobg-promo--thistle { background: var(--wp--preset--color--thistle); }
.mobg-promo--loch { background: var(--wp--preset--color--loch); }
.mobg-promo--tartan { background: var(--wp--preset--color--tartan); }

/* Staggered "scattered on the table" layout from the reference theme. */
.mobg-promo:nth-child(1) { min-height: 340px; }
.mobg-promo:nth-child(2) { margin-top: 3.5rem !important; min-height: 280px; }
.mobg-promo:nth-child(3) { margin-top: 1.5rem !important; min-height: 300px; }
.mobg-promo:nth-child(4) { min-height: 330px; }

/* Large soft circle + illustration (reference: circle behind product image). */
.mobg-promo::after {
	content: "";
	position: absolute;
	right: -70px;
	bottom: -70px;
	z-index: -1;
	width: 240px;
	height: 240px;
	border-radius: 0;
	background: rgba(255, 255, 255, .14);
}

.mobg-promo::before {
	content: "";
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: -1;
	width: 120px;
	height: 120px;
	background: var(--mobg-illus) center / contain no-repeat;
	filter: brightness(0) invert(1);
	opacity: .9;
}

.mobg-promo__title {
	margin: 0 0 .5rem;
	color: var(--wp--preset--color--white);
	font-size: clamp(1.4rem, 1.1rem + .9vw, 1.75rem);
	line-height: 1.15;
	max-width: 12ch;
}

.mobg-promo__text {
	margin: 0 0 1.25rem;
	max-width: 22ch;
	font-size: var(--wp--preset--font-size--small);
	color: rgba(255, 255, 255, .92);
}

.mobg-promo .wp-block-buttons { margin-top: auto; }

@media (max-width: 1079.98px) {
	.mobg-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mobg-promo:nth-child(n) { margin-top: 0 !important; min-height: 260px; }
	.mobg-promo:nth-child(even) { margin-top: 2rem !important; }
}

@media (max-width: 599.98px) {
	.mobg-promos { grid-template-columns: 1fr; }
	.mobg-promo:nth-child(n) { margin-top: 0 !important; min-height: 220px; }
}

/* ---------------------------------------------------------------------------
 * 7. Sections, heads, panels
 * ------------------------------------------------------------------------ */

.mobg-section { position: relative; }

.mobg-section-head {
	gap: 1rem 2rem;
	margin-bottom: var(--wp--preset--spacing--50);
}

.mobg-section-head__text { max-width: 660px; }

.mobg-section-head h2 { margin: 0; }

.mobg-section-head__intro {
	margin: .75rem 0 0;
	color: var(--wp--preset--color--muted);
}

.mobg-section-head__action { margin: 0; }

.is-style-mobg-panel {
	position: relative;
	padding: clamp(1.5rem, 4vw, 3.5rem);
	border-radius: 0;
	background: var(--wp--preset--color--thistle-50);
	overflow: hidden;
}

/* Reference: hand-drawn burst near the section label + dashed path behind cards. */
.mobg-library-panel::before {
	content: "";
	position: absolute;
	top: 22px;
	right: 28px;
	width: 56px;
	height: 56px;
	background: url("../images/illus/burst.svg") center / contain no-repeat;
	opacity: .9;
	pointer-events: none;
}

.mobg-library-panel::after {
	content: "";
	position: absolute;
	inset: auto -10% -40px -10%;
	height: 160px;
	border-top: 2px dashed rgba(107, 63, 160, .25);
	border-radius: 0;
	pointer-events: none;
}

.mobg-library-panel > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------------
 * 8. Cards, tracks, grids, empty states, pagination
 * ------------------------------------------------------------------------ */

.mobg-cards { list-style: none; margin: 0; padding: 0; }

.mobg-grid { gap: clamp(1rem, 2vw, 1.75rem) !important; }

/* Horizontal track (reference: carousel) — native scroll + snap; JS adds arrows. */
.mobg-track {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, calc((100% - 2 * 1.5rem) / 3));
	gap: 1.5rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 2px;
	padding: 4px 2px 1.25rem;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--navy-500) transparent;
}

.mobg-track > li { scroll-snap-align: start; margin: 0 !important; display: flex; }

@media (max-width: 781.98px) {
	.mobg-track { grid-auto-columns: 82%; gap: 1rem; }
}

.mobg-track-nav {
	display: flex;
	justify-content: flex-end;
	gap: .6rem;
	margin: 0 0 1rem;
}

.mobg-track-nav[hidden] { display: none; }

.mobg-track-nav button {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	transition: background-color var(--mobg-ease), opacity var(--mobg-ease), transform var(--mobg-ease);
}

.mobg-track-nav button:first-child { background: var(--wp--preset--color--cone); }

.mobg-track-nav button::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("../images/illus/arrow.svg") center / contain no-repeat;
	mask: url("../images/illus/arrow.svg") center / contain no-repeat;
}

.mobg-track-nav button:first-child::before { transform: scaleX(-1); }

.mobg-track-nav button:hover { transform: translateY(-2px); }

.mobg-track-nav button:disabled { opacity: .35; cursor: default; transform: none; }

.mobg-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 10px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--mobg-line);
	border-radius: 0;
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform var(--mobg-ease), box-shadow var(--mobg-ease), border-color var(--mobg-ease);
}

.mobg-card:hover,
.mobg-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--card);
	border-color: #C9C2AE;
}

.mobg-card__frame {
	position: relative;
	aspect-ratio: 4 / 3;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 0;
}

/* Placeholder illustration, covered by the featured image when one exists. */
.mobg-card__frame::before,
.mobg-feature::before,
.mobg-empty::before,
.mobg-404::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 38%;
	height: 50%;
	background: var(--mobg-illus) center / contain no-repeat;
	opacity: .38;
	pointer-events: none;
}

.mobg-card__frame .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.mobg-card__frame .wp-block-post-featured-image a,
.mobg-card__frame .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.mobg-card__body {
	flex: 1 1 auto;
	gap: .5rem !important;
	padding: 1rem .6rem .5rem;
}

.mobg-card__body > * { margin: 0 !important; }

.mobg-card__title {
	font-size: clamp(1.2rem, 1.05rem + .4vw, 1.375rem);
	line-height: 1.25;
}

.mobg-card__title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.mobg-card__title a:hover { color: var(--wp--preset--color--cone); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.mobg-card__excerpt,
.mobg-card__excerpt p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.mobg-card__excerpt .wp-block-post-excerpt__more-text { display: none; }

.mobg-card__terms a,
.mobg-banner__terms a {
	color: var(--wp--preset--color--thistle);
	text-decoration: none;
}

.mobg-card__link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: auto !important;
	padding-top: .35rem;
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--cone);
	text-decoration: none;
}

.mobg-card__link:hover { color: var(--wp--preset--color--navy); }

/* Empty state. */
.mobg-empty {
	position: relative;
	padding: 7.5rem 1.5rem 2.25rem;
	text-align: center;
	background: var(--wp--preset--color--paper);
	border: 2px dashed #C9C2AE;
	border-radius: 0;
}

.mobg-empty::before {
	inset: 1.5rem 0 auto;
	width: 84px;
	height: 84px;
	opacity: .55;
}

.mobg-empty > * { margin-inline: auto; }
.mobg-empty .is-style-mobg-stamp { margin-bottom: .75rem; }
.mobg-empty__title { font-size: var(--wp--preset--font-size--xx-large); margin-block: .25rem .5rem; }
.mobg-empty p:not(.is-style-mobg-stamp) { color: var(--wp--preset--color--muted); max-width: 46ch; }
.mobg-empty .wp-block-buttons { justify-content: center; }

.mobg-library-panel .mobg-empty { background: var(--wp--preset--color--white); }

/* Pagination. */
.mobg-pagination {
	margin-top: var(--wp--preset--spacing--60);
	gap: .4rem;
}

.mobg-pagination a,
.mobg-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 .9rem;
	border-radius: 0;
	border: 2px solid var(--mobg-line);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
}

.mobg-pagination a:hover { border-color: var(--wp--preset--color--navy); }

.mobg-pagination .page-numbers.current {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.mobg-pagination .page-numbers.dots { border-color: transparent; }

/* ---------------------------------------------------------------------------
 * 9. About, charter, document, features, ticks
 * ------------------------------------------------------------------------ */

.is-style-mobg-underline::after {
	content: "";
	display: block;
	width: min(180px, 50%);
	height: 14px;
	margin-top: .6rem;
	background: url("../images/illus/scribble.svg") left center / 100% 100% no-repeat;
}

.has-text-align-center.is-style-mobg-underline::after { margin-inline: auto; }

.is-style-mobg-document {
	position: relative;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background-color: var(--wp--preset--color--white);
	background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(3, 20, 65, .05) 31px 32px);
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 0;
	box-shadow: var(--wp--preset--shadow--stamp);
}

.mobg-charter__file,
.mobg-doc__meta,
.mobg-doc__meta p,
.mobg-doc__updated {
	margin: 0 0 1rem;
	padding-bottom: .6rem;
	font-family: var(--wp--preset--font-family--ui);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.mobg-charter__file { border-bottom: 2px dashed var(--mobg-line); }

.mobg-doc__meta { border-bottom: 2px dashed var(--mobg-line); margin-bottom: 1.5rem; }
.mobg-doc__meta > * { margin: 0 !important; padding: 0 !important; border: 0 !important; }

.mobg-charter h3 { margin-top: 0; }

.mobg-charter__stamp {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	margin: 0 !important;
	font-size: 1rem !important;
	color: var(--wp--preset--color--tartan) !important;
	transform: none !important;
	opacity: .9;
}

.is-style-mobg-ticks {
	list-style: none;
	padding-left: 0;
	margin-bottom: 3.5rem;
}

.is-style-mobg-ticks li {
	position: relative;
	padding-left: 2.25rem;
	margin-bottom: .75rem;
}

.is-style-mobg-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 0;
	background: var(--wp--preset--color--tartan-50);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--tartan);
}

.is-style-mobg-ticks li::after {
	content: "";
	position: absolute;
	left: .3rem;
	top: calc(.2em + .3rem);
	width: .8rem;
	height: .8rem;
	background: var(--wp--preset--color--tartan);
	-webkit-mask: url("../images/illus/tick.svg") center / contain no-repeat;
	mask: url("../images/illus/tick.svg") center / contain no-repeat;
}

.is-style-mobg-card {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--mobg-line);
	border-radius: 0;
	box-shadow: var(--wp--preset--shadow--soft);
}

.mobg-features { margin-block: var(--wp--preset--spacing--60) !important; }

.mobg-feature {
	position: relative;
	padding-top: 7rem !important;
	overflow: hidden;
}

.mobg-feature::before {
	inset: 1.5rem auto auto 1.5rem;
	width: 72px;
	height: 72px;
	margin: 0;
	opacity: .6;
}

.mobg-feature.mobg-tint--cone { background: var(--wp--preset--color--cone-50); }
.mobg-feature.mobg-tint--thistle { background: var(--wp--preset--color--thistle-50); }
.mobg-feature.mobg-tint--tartan { background: var(--wp--preset--color--tartan-50); }

.mobg-feature__title { font-size: var(--wp--preset--font-size--x-large); margin-top: 0; }

.is-style-mobg-framed img {
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 0;
	box-shadow: var(--wp--preset--shadow--stamp);
}

hr.wp-block-separator.is-style-mobg-perforated {
	width: 100% !important;
	max-width: var(--wp--style--global--wide-size, 1240px) !important;
	border: 0 !important;
	height: 2px !important;
	background: repeating-linear-gradient(90deg, currentColor 0 8px, transparent 8px 14px);
	opacity: .5;
}

/* ---------------------------------------------------------------------------
 * 10. Membership band, team note, CTA
 * ------------------------------------------------------------------------ */

.is-style-mobg-stripes {
	position: relative;
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
	overflow: hidden;
	isolation: isolate;
	border-radius: 0;
	background: var(--wp--preset--gradient--navy-depth);
	color: var(--wp--preset--color--navy-100);
}

.is-style-mobg-stripes::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 10px;
	background: repeating-linear-gradient(-45deg, var(--wp--preset--color--cone) 0 14px, var(--wp--preset--color--white) 14px 28px);
}

.is-style-mobg-stripes::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -30px;
	z-index: -1;
	width: clamp(180px, 28vw, 320px);
	aspect-ratio: 1;
	background: url("../images/illus/cone.svg") center / contain no-repeat;
	filter: brightness(0) invert(1);
	opacity: .1;
	transform: none;
}

.is-style-mobg-stripes :where(h1, h2, h3, h4) { color: var(--wp--preset--color--white); }
.is-style-mobg-stripes .is-style-mobg-eyebrow { color: var(--wp--preset--color--seal); }
.is-style-mobg-stripes a:not(.wp-block-button__link) { color: var(--wp--preset--color--white); }

.mobg-member { text-align: left; }
.mobg-member > * { margin-left: 0 !important; }
.mobg-member h2 { margin-top: .25rem; }
.mobg-member .wp-block-buttons { margin-top: 1.75rem; gap: .75rem; }

.mobg-team-note {
	gap: 1rem 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 2px dashed #C9C2AE;
	border-radius: 0;
	background: var(--wp--preset--color--paper);
}

.mobg-team-note p { margin: 0; }
.mobg-team-note p:not(.is-style-mobg-stamp) { flex: 1 1 280px; color: var(--wp--preset--color--muted); }
.mobg-team-note .is-style-mobg-stamp { color: var(--wp--preset--color--loch); }

.mobg-section--cta { overflow: hidden; }

.mobg-cta__title {
	font-size: var(--wp--preset--font-size--colossal);
	margin-bottom: .75rem;
}

.mobg-section--cta .wp-block-buttons { margin-top: 1.75rem; gap: .75rem; }

/* ---------------------------------------------------------------------------
 * 11. Page banner, breadcrumbs, content, singles, slots
 * ------------------------------------------------------------------------ */

.mobg-banner {
	position: relative;
	overflow: hidden;
	background-image: radial-gradient(rgba(3, 20, 65, .07) 1px, transparent 1px);
	background-size: 22px 22px;
	border-bottom: 1px solid var(--mobg-line);
}

.mobg-banner::after {
	content: "";
	position: absolute;
	right: max(1rem, calc((100% - 1240px) / 2));
	bottom: -26px;
	width: 150px;
	height: 150px;
	background: url("../images/illus/seal.svg") center / contain no-repeat;
	opacity: .08;
	transform: none;
	pointer-events: none;
}

.mobg-banner > * { position: relative; z-index: 1; }

.mobg-banner__title {
	margin-block: .5rem .75rem;
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	line-height: 1.1;
	text-wrap: balance;
}

.mobg-banner > .mobg-banner__intro { max-width: none; }

.mobg-banner__intro p,
.mobg-banner__content p {
	max-width: 680px;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

.mobg-banner__content { margin-top: .5rem; }
.mobg-banner__content > * { margin-left: 0 !important; }

.mobg-breadcrumbs {
	margin: 0;
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

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

.mobg-breadcrumbs li { display: inline-flex; align-items: center; gap: .25rem; }

.mobg-breadcrumbs li + li::before {
	content: "/";
	color: #9AA0B4;
	padding-inline: .25rem;
}

.mobg-breadcrumbs a { color: var(--wp--preset--color--navy); text-decoration: none; font-weight: 600; }
.mobg-breadcrumbs a:hover { text-decoration: underline; }
.mobg-breadcrumbs [aria-current] { color: var(--wp--preset--color--muted); }

.mobg-content > * + * { margin-block-start: 1.25rem; }

.mobg-content :where(h2) { margin-block-start: 2.5rem; }
.mobg-content :where(h3) { margin-block-start: 2rem; }

.mobg-content a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.mobg-feature-image img { border-radius: 0; }

.mobg-byline {
	gap: .5rem 1.25rem;
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.mobg-byline > * { margin: 0; }

.mobg-tags a {
	display: inline-block;
	margin: 0 .3rem .3rem 0;
	padding: .3rem .75rem;
	border-radius: 0;
	background: var(--wp--preset--color--navy-100);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.mobg-tags .wp-block-post-terms__separator { display: none; }

.mobg-post-nav { gap: 1rem; font-family: var(--wp--preset--font-family--ui); }
.mobg-post-nav a { font-weight: 650; }

/* Singles (events, games). */
.mobg-single__media { aspect-ratio: auto; min-height: 220px; border-radius: 0; margin-bottom: 1.5rem !important; }
.mobg-single__media .wp-block-post-featured-image { position: relative; inset: auto; }
.mobg-single__media .wp-block-post-featured-image img { border-radius: 0; }
.mobg-single--game .mobg-single__media { aspect-ratio: 1; }
.mobg-single--game .mobg-single__media .wp-block-post-featured-image { position: absolute; inset: 0; }
.mobg-single--event .mobg-single__media:has(img) { min-height: 0; }
.mobg-single--event .mobg-single__media:has(img)::before { display: none; }

.mobg-aside--sticky {
	position: sticky;
	top: calc(var(--mobg-sticky-top) + 1.5rem);
}

.mobg-aside > .mobg-slot + .mobg-slot {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--mobg-line);
}

/* Without plugin data the aside is empty: hide it and let the main column breathe. */
.mobg-split__aside:not(:has(.mobg-slot)) { display: none; }

.mobg-split:not(:has(.mobg-split__aside .mobg-slot)) > .mobg-split__main {
	flex-basis: 100% !important;
	max-width: 860px;
}

.mobg-game-actions { gap: .75rem; margin-top: 1.25rem; }
.mobg-game-actions:not(:has(.mobg-slot)) { display: none; }

.mobg-slot { margin-block: 1.25rem; }
.mobg-banner .mobg-slot { margin-block: .5rem; }

/* ---------------------------------------------------------------------------
 * 12. Footer
 * ------------------------------------------------------------------------ */

.mobg-footer {
	position: relative;
	font-family: var(--wp--preset--font-family--body);
}

.mobg-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: repeating-linear-gradient(-45deg, var(--wp--preset--color--cone) 0 12px, var(--wp--preset--color--white) 12px 24px);
}

.mobg-footer__logo { margin: 0 0 1.25rem; }
.mobg-footer__logo img { width: 240px; height: auto; aspect-ratio: 960 / 277; }
.mobg-footer__brand p { max-width: 38ch; color: var(--wp--preset--color--navy-100); }

.mobg-footer__heading {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--ui);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--seal);
}

.mobg-footer__nav { font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--medium); font-weight: 700; }

.mobg-footer__nav .wp-block-navigation__container { gap: .7rem !important; }

.mobg-footer__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	padding-block: .15rem;
}

.mobg-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--seal);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.mobg-footer__social { margin-top: 1.25rem; }
.mobg-footer__social .wp-social-link a { padding: .4rem; }
.mobg-footer__social .wp-social-link:hover { transform: none; color: var(--wp--preset--color--seal); }

.mobg-footer__rule { margin-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40) !important; color: var(--wp--preset--color--navy-100); }

.mobg-footer__base { gap: .5rem 2rem; font-family: var(--wp--preset--font-family--ui); }
.mobg-footer__base p { margin: 0; color: var(--wp--preset--color--navy-100); font-size: var(--wp--preset--font-size--x-small); }
.mobg-footer__independence { max-width: 60ch; }

@media (max-width: 781.98px) {
	.mobg-footer__cols { gap: 2rem !important; }
	.mobg-footer__base { flex-direction: column; }
}

/* ---------------------------------------------------------------------------
 * 13. Forms & search
 * ------------------------------------------------------------------------ */

:where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], input[type="date"], select, textarea) {
	width: 100%;
	min-height: 48px;
	padding: .7rem .95rem;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	border: 2px solid #857E6B;
	border-radius: 0;
	transition: border-color var(--mobg-ease), box-shadow var(--mobg-ease);
}

:where(input, select, textarea):hover { border-color: var(--wp--preset--color--navy-500); }

:where(input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--navy);
}

label {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
}

input[type="checkbox"],
input[type="radio"] { accent-color: var(--wp--preset--color--navy); width: 1.15rem; height: 1.15rem; }

.mobg-search-big { max-width: 560px; margin-top: 1rem; }

.mobg-search-big .wp-block-search__inside-wrapper {
	padding: 4px;
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 0;
	background: var(--wp--preset--color--white);
}

.mobg-search-big .wp-block-search__input { border: 0; min-height: 44px; border-radius: 0; }
.mobg-search-big .wp-block-search__input:focus-visible { outline-offset: 0; }
.mobg-search-big .wp-block-search__button { border-radius: 0; margin: 0; min-width: 48px; }
.mobg-search-big .wp-block-search__button svg { fill: currentColor; }

.mobg-account .login-username,
.mobg-account .login-password,
.mobg-account .login-remember,
.mobg-account .login-submit { margin: 0 0 1rem; }

.mobg-account .login-username label,
.mobg-account .login-password label { display: block; margin-bottom: .35rem; }

.mobg-account .button-primary,
.mobg-account input[type="submit"] {
	min-height: 48px;
	padding: .8rem 1.6rem;
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 0;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	cursor: pointer;
}

.mobg-account .button-primary:hover { background: var(--wp--preset--color--navy-700); }
.mobg-account__title { margin-top: 0; font-size: var(--wp--preset--font-size--xx-large); }

/* ---------------------------------------------------------------------------
 * 14. Comments, 404, misc
 * ------------------------------------------------------------------------ */

.mobg-comment {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--mobg-line);
}

.mobg-comment .wp-block-avatar img { border-radius: 0; }

.mobg-404 {
	position: relative;
	padding-top: 9rem;
	text-align: center;
}

.mobg-404::before {
	inset: 0 0 auto;
	width: 120px;
	height: 120px;
	opacity: .5;
}

.mobg-404 .mobg-search-big { margin-inline: auto; }
.mobg-404 .wp-block-buttons { margin-top: 1.5rem; gap: .75rem; }

.wp-block-quote cite { font-family: var(--wp--preset--font-family--ui); }

.wp-block-table table { border-collapse: collapse; }
.wp-block-table :where(th, td) { border-color: var(--mobg-line); padding: .6rem .8rem; }
.wp-block-table thead { border-bottom: 2px solid var(--wp--preset--color--navy); }

/* ---------------------------------------------------------------------------
 * 15. Editor-only helpers (theme.css is also the editor stylesheet)
 * ------------------------------------------------------------------------ */

.mobg-slot-placeholder {
	margin-block: 1rem;
	padding: .9rem 1.1rem;
	border: 2px dashed var(--wp--preset--color--navy-500);
	border-radius: 0;
	background: var(--wp--preset--color--navy-100);
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--ui);
	font-size: .8125rem;
}

.mobg-slot-placeholder p { margin: .25rem 0 0; color: var(--wp--preset--color--muted); }

.editor-styles-wrapper .mobg-split__aside { display: block !important; }
.editor-styles-wrapper .mobg-game-actions { display: flex !important; }

/* ---------------------------------------------------------------------------
 * 16. Reduced motion
 * ------------------------------------------------------------------------ */

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

	.mobg-card:hover,
	.mobg-card:focus-within,
	.mobg-promo:hover { transform: none; }

	.mobg-notice__track { animation: none !important; }
}

/* Slot content sits flush inside its wrapper. */
.mobg-slot > :first-child { margin-top: 0; }
.mobg-slot > :last-child { margin-bottom: 0; }
.mobg-single--event .mobg-single__media:not(:has(img)) { display: none; }

/* Brand rule: every button and button-like control is strictly square-cornered. */
.wp-element-button,
.wp-block-button__link,
.wp-block-search__button,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close,
.mobg-track-nav button,
.mobg-notice__toggle,
.mobg-pagination a,
.mobg-pagination .page-numbers,
.mobg-nav-primary .is-menu-open .mobg-nav-cta .wp-block-navigation-item__content,
.mobg-nav-primary .is-menu-open .mobg-nav-account .wp-block-navigation-item__content,
button,
input[type="submit"],
input[type="button"],
.button,
.button-primary {
	border-radius: 0;
}

/* Our Philosophy: the same block on every page, just before the author profile */
.mobg-philosophy { background: #F7F3EA; border-block: 1px solid #D8D3C4; padding: clamp(1.75rem, 4vw, 3rem) max(1.25rem, calc((100% - 1320px) / 2)); }
.mobg-philosophy > * { margin-left: 0; margin-right: 0; max-width: none; }
.mobg-philosophy__title { margin: 0 0 .5rem; font-family: var(--wp--preset--font-family--heading); font-weight: 400; font-size: clamp(2rem, 1.55rem + 1.55vw, 2.75rem); line-height: 1.12; color: #031441; }
.mobg-philosophy__slogan { margin: 0 0 1rem; font-family: var(--wp--preset--font-family--heading); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.2; color: var(--mobg-c-cone, #B5410B); }
.mobg-philosophy .mobg-philosophy__text { max-width: 66ch; margin: 0 0 1em; line-height: 1.7; color: #141B33; }
.mobg-philosophy .mobg-philosophy__sign { margin: 1.25rem 0 0; font-size: 1.1rem; color: #031441; }
.mobg-philosophy-wrap { margin: 0; }

.mobg-philosophy .mobg-philosophy__text strong { font-weight: 800; color: #031441; }

/* Philosophy: text on the left, the Ministry logo on the right */
.mobg-philosophy .mobg-philosophy__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem 3rem; align-items: center; max-width: none; }
.mobg-philosophy .mobg-philosophy__body { min-width: 0; }
.mobg-philosophy .mobg-philosophy__logo { margin: 0; display: flex; justify-content: flex-end; }
.mobg-philosophy .mobg-philosophy__logo img { display: block; width: 100%; max-width: 560px; height: auto; background: transparent; }
@media (max-width: 860px) { .mobg-philosophy .mobg-philosophy__grid { grid-template-columns: minmax(0, 1fr); } .mobg-philosophy .mobg-philosophy__logo { justify-content: flex-start; } .mobg-philosophy .mobg-philosophy__logo img { max-width: 380px; } }

/* Search results: the kind of result above each title */
.mobg-search-type { margin: 0 0 .35rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--cone); }

/* Homepage hero: text on the left, large logo on the right */
.mobg-hero, .mobg-home-hero {
	position: relative;
	overflow: hidden;
	background-image: radial-gradient(rgba(3, 20, 65, .08) 1px, transparent 1px), linear-gradient(180deg, var(--wp--preset--color--parchment), var(--wp--preset--color--paper));
	background-size: 22px 22px, 100% 100%;
	border-bottom: 1px solid var(--mobg-line);
}
.mobg-home-hero { padding: clamp(2rem, 5vw, 4.5rem) max(1.25rem, calc((100% - 1240px) / 2)); }
.mobg-home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 3rem; align-items: center; max-width: none; }
.mobg-home-hero__text { min-width: 0; text-align: left; }
.mobg-home-hero .mobg-hero__title { margin-block: 0 1.25rem; text-wrap: balance; text-align: left; }
.mobg-home-hero .is-style-mobg-lead { max-width: 40rem; margin-inline: 0; margin-block: 0 1rem; text-wrap: pretty; }
.mobg-home-hero .mobg-hero__actions { margin-top: 1.75rem; gap: .75rem; justify-content: flex-start; }
.mobg-home-hero__logo { margin: 0; display: flex; justify-content: flex-end; }
.mobg-home-hero__logo img { display: block; width: 100%; max-width: 640px; height: auto; background: transparent; }
@media (max-width: 860px) {
	.mobg-home-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.mobg-home-hero__logo { justify-content: flex-start; }
	.mobg-home-hero__logo img { max-width: 380px; }
}
