/*
 * Mero11 theme: layout and app shell. No colour literals (all colours are
 * var(--token) from the plugin's assets/css/tokens.css). Sizes come from
 * bin/scales.json: spacing 0 2 4 8 10 12 16 20 24 32 40 48 64 80, radii
 * 0 5 10 14 16 20 999, controls 44, header 56/64, tab bar 56.
 *
 * Phones: header on top, bottom tab bar (fixed). From 900px: a top bar under
 * the brand row (items flagged `bar`, with mega menus) and no tab bar. The
 * drawer holds everything that is not a tab.
 */

:root {
	--m11-header-h: 56px;
	--m11-tabbar-h: 56px;
		--m11-gutter: 16px;
	--m11-section-gap: 24px;
	--m11-max: 1344px;
	--m11-safe-top: env(safe-area-inset-top, 0px);
	--m11-safe-right: env(safe-area-inset-right, 0px);
	--m11-safe-bottom: env(safe-area-inset-bottom, 0px);
	--m11-safe-left: env(safe-area-inset-left, 0px);
	--m11-font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--m11-font-display: var(--wp--preset--font-family--display, system-ui, sans-serif);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* Anchors and focused fields never hide under the sticky header. */
	scroll-padding-top: calc(var(--m11-header-h) + var(--m11-safe-top) + 8px);
	-webkit-tap-highlight-color: transparent;
}

a,
button,
summary,
[role="button"],
input,
select,
textarea {
	touch-action: manipulation;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--m11-font-body);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	font-family: var(--m11-font-display);
	font-weight: 700;
	margin: 0;
}

h1 {
	font-size: 24px;
	line-height: 32px;
}

h2 {
	font-size: 18px;
	line-height: 24px;
}

h3 {
	font-size: 16px;
	line-height: 24px;
}

a {
	color: var(--accent-text);
}

p {
	margin: 0 0 12px;
}

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

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

/* Focus: visible on every interactive element, never removed. */
:focus-visible {
	outline: 2px solid var(--accent-text);
	outline-offset: 2px;
}

/* Skip link */
.m11-skip {
	position: absolute;
	left: 8px;
	top: -80px;
	z-index: 100;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 10px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	text-decoration: none;
}

.m11-skip:focus {
	top: 8px;
}

/* ---------- Shell grid ---------- */

.m11-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
	grid-template-areas:
		"header"
		"main"
		"footer";
	min-height: 100vh;
	min-height: 100dvh;
	padding-bottom: calc(var(--m11-tabbar-h) + var(--m11-safe-bottom));
}

/* Template-part wrappers and the nav root add no box of their own. */
.m11-part,
.m11-appnav {
	display: contents;
}

.m11-header {
	grid-area: header;
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

/* WordPress adds a block-gap margin to every child after the first of a layout group: the bar has none. */
.m11-header > *,
.m11-header__row > *,
.m11-header__tools > * {
	margin-block: 0;
}

.m11-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	max-width: var(--m11-max);
	min-height: calc(var(--m11-header-h) + var(--m11-safe-top));
	margin: 0 auto;
	padding: var(--m11-safe-top) calc(var(--m11-gutter) + var(--m11-safe-right)) 0 calc(var(--m11-gutter) + var(--m11-safe-left));
}

.m11-brand {
	margin: 0;
	font-family: var(--m11-font-display);
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
}

.m11-brand a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--text);
	text-decoration: none;
}

.m11-header__tools {
	display: flex;
	align-items: center;
	gap: 4px;
}

.m11-header__controls {
	display: none;
}

.m11-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Search: an icon link on phones, a field on desktop. */
form.m11-search,
.m11-topnav,
.m11-util {
	display: none;
}

.m11-wordmark {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--text);
	font-family: var(--m11-font-display);
	font-size: 30px;
	line-height: 32px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.m11-wordmark span {
	color: var(--accent);
}

.m11-main {
	grid-area: main;
	width: 100%;
	max-width: var(--m11-max);
	margin: 0 auto;
	padding: var(--m11-section-gap) calc(var(--m11-gutter) + var(--m11-safe-right)) var(--m11-section-gap) calc(var(--m11-gutter) + var(--m11-safe-left));
}

.m11-main > .wp-block-post-title,
.m11-main > .wp-block-query-title {
	margin-bottom: 16px;
}

.m11-main > * + * {
	margin-block-start: var(--m11-section-gap);
}

.m11-main > .wp-block-post-title + *,
.m11-main > .wp-block-query-title + * {
	margin-block-start: 0;
}

/* Page content shares the page column with the title: no extra global padding, wide blocks start at the left edge, and prose keeps a readable line length. */
.m11-main .entry-content.has-global-pad {
	padding-inline: 0;
}

/* WordPress's constrained layout centres children with !important margins, so these must match. */
.m11-main .entry-content > * {
	margin-inline: 0 !important;
}

.m11-main .entry-content > .alignwide,
.m11-main .entry-content > .alignfull {
	max-width: none;
}

.m11-main .entry-content > .prose,
.m11-main .entry-content > :where(p, h2, h3, h4, ul, ol, blockquote) {
	max-width: 720px;
}

/* Heading rhythm: a heading sits closer to the text it introduces than to the text before it. */
.m11-main .entry-content :where(h2, h3, h4) + :where(p, ul, ol, blockquote) {
	margin-block-start: 8px;
}

.m11-main .entry-content :where(p, ul, ol) + :where(h2, h3) {
	margin-block-start: 28px;
}

.m11-footer {
	grid-area: footer;
	padding: 16px 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	line-height: 20px;
}

/* Footer content lines up with the header and the page column: the same box, the same gutter inside it. */
.m11-footer > * {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--m11-max);
	margin-inline: auto;
	padding-inline: calc(var(--m11-gutter) + var(--m11-safe-left)) calc(var(--m11-gutter) + var(--m11-safe-right));
}

.m11-footer__groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin-block: 0 8px;
}

.m11-footer__title {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 20px;
	text-transform: uppercase;
	color: var(--text);
}

.m11-footer__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.m11-footer__nav a {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 44px;
	color: var(--muted);
	text-decoration: none;
}

.m11-footer__nav a:hover {
	color: var(--text);
}

.m11-footer__note {
	margin-block: 0;
}

/* With a mouse the footer links need no 44px tall row: 32px keeps the menu compact. Touch screens keep the 44px target. */
@media (hover: hover) and (pointer: fine) {
	.m11-footer__nav a {
		min-height: 32px;
	}
}

/* Left aligned, so the first column starts where the logo and the page content start. */
.m11-footer,
.m11-footer__groups,
.m11-footer__nav,
.m11-footer__note {
	text-align: left;
}

@media (min-width: 768px) {
	.m11-footer__groups {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	}
}

/* ---------- Buttons and icon buttons ---------- */

.m11-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}

.m11-iconbtn:hover {
	background: var(--surface-2);
}

.m11-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border: 2px solid var(--accent);
	border-radius: 10px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	text-decoration: none;
}

.m11-button--secondary {
	background: transparent;
	border-color: var(--control-line);
	color: var(--text);
}

.m11-notfound h1 {
	margin-bottom: 12px;
}

/* ---------- Navigation: shared link look ---------- */

.m11-nav__list,
.m11-tabbar__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.m11-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.m11-nav__link:hover {
	background: var(--surface-2);
}

.m11-nav__link[aria-current="page"] {
	background: var(--accent-tint);
	color: var(--accent-text);
	font-weight: 700;
}

.m11-icon {
	flex: none;
	width: 24px;
	height: 24px;
}

/* ---------- Bottom tab bar (phones) ---------- */

.m11-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	height: calc(var(--m11-tabbar-h) + var(--m11-safe-bottom));
	padding: 0 var(--m11-safe-right) var(--m11-safe-bottom) var(--m11-safe-left);
	background: var(--surface);
	border-top: 1px solid var(--line);
}

.m11-tabbar__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	height: var(--m11-tabbar-h);
}

.m11-tabbar__list > li {
	display: flex;
}

.m11-tabbar .m11-nav__link {
	flex: 1;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	padding: 0 4px;
	border-radius: 0;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	text-align: center;
}

.m11-tabbar .m11-nav__link[aria-current="page"] {
	background: transparent;
	box-shadow: inset 0 2px 0 var(--accent);
}

.m11-tabbar .m11-nav__label {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* App feel: pressed feedback, a firmer active tab, and the icon stays put. */
.m11-tabbar .m11-nav__link:active {
	background: var(--surface-2);
}

.m11-tabbar .m11-nav__link[aria-current="page"] {
	color: var(--accent-text);
	font-weight: 700;
}

.m11-iconbtn:active,
.m11-ctl:active,
.m11-nav__link:active {
	background: var(--surface-2);
}

/* Phones and tablets: 16px fields stop iOS zooming the page on focus. */
@media (max-width: 899px) {
	input,
	select,
	textarea {
		font-size: 16px;
	}

	.m11-header {
		box-shadow: 0 1px 0 var(--line);
	}
}

/* Landscape phones: keep the page, not the chrome. */
@media (max-height: 480px) and (orientation: landscape) {
	:root {
		--m11-tabbar-h: 48px;
	}

	.m11-tabbar .m11-nav__link {
		flex-direction: row;
		justify-content: center;
		gap: 6px;
	}
}

/* ---------- Drawer ---------- */

.m11-drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: var(--scrim);
}

.m11-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(100%, 320px);
	padding: calc(8px + var(--m11-safe-top)) calc(16px + var(--m11-safe-right)) calc(16px + var(--m11-safe-bottom)) 16px;
	overflow-y: auto;
	background: var(--surface);
	border-left: 1px solid var(--line);
	animation: m11-drawer-in 0.18s ease-out;
}

.m11-drawer[hidden],
.m11-drawer-backdrop[hidden] {
	display: none;
}

@keyframes m11-drawer-in {
	from {
		transform: translateX(24px);
		opacity: 0;
	}

	to {
		transform: none;
		opacity: 1;
	}
}

html.m11-drawer-open {
	overflow: hidden;
}

.m11-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.m11-drawer__title {
	margin: 0;
	font-family: var(--m11-font-display);
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
}

.m11-drawer__controls {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.m11-drawer__account {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

/* ---------- Display controls (language, theme, text-only) ---------- */

.m11-controls {
	display: flex;
	align-items: center;
	gap: 4px;
}

.m11-controls--list {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.m11-ctl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.m11-ctl:hover {
	background: var(--surface-2);
}

.m11-ctl .m11-icon {
	width: 20px;
	height: 20px;
}

.m11-controls--list .m11-ctl {
	justify-content: flex-start;
	width: 100%;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
}

.m11-ctl__label {
	flex: 1;
	text-align: left;
}

.m11-ctl__state {
	font-size: 13px;
	line-height: 20px;
	font-weight: 700;
}

/* The visible state is picked from <html>, so a cached page is never wrong. */
.m11-lang--to-en,
.m11-theme--to-light,
.m11-state--on,
.m11-textonly--on {
	display: none;
}

html:lang(ne) .m11-lang--to-ne,
html[data-theme="dark"] .m11-theme--to-dark,
html[data-theme="dark"] .m11-state--off,
html.m11-text-only .m11-textonly--off {
	display: none;
}

html:lang(ne) .m11-lang--to-en,
html[data-theme="dark"] .m11-theme--to-light,
html[data-theme="dark"] .m11-state--on,
html.m11-text-only .m11-textonly--on {
	display: inline;
}

.m11-ctl[aria-pressed="true"] {
	background: var(--accent-tint);
}

/* ---------- Tablet ---------- */

@media (min-width: 768px) {
	:root {
		--m11-gutter: 24px;
		--m11-section-gap: 28px;
	}

	h1 {
		font-size: 26px;
		line-height: 32px;
	}

	.m11-tabbar .m11-nav__link {
		font-size: 13px;
	}
}

/* ---------- Desktop: top bar with mega menus, no tab bar ---------- */

@media (min-width: 900px) {
	:root {
		--m11-header-h: 72px;
		--m11-gutter: 32px;
		--m11-section-gap: 32px;
	}

	h1 {
		font-size: 28px;
		line-height: 36px;
	}

	.m11-shell {
		padding-bottom: 0;
	}

	.m11-wordmark {
		font-size: 40px;
		line-height: 40px;
	}

	/* Wordmark left, main menu in the middle, search right. */
	.m11-header__row {
		display: grid;
		grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
		gap: 24px;
	}

	.m11-header__tools {
		justify-content: flex-end;
		justify-self: end;
		gap: 12px;
	}

	/* Utility bar: Nepal time on the left, display controls and the member link on the right. */
	.m11-util {
		display: block;
		background: var(--badge-disc);
		color: var(--badge-glyph);
		font-size: 13px;
		line-height: 20px;
	}

	.m11-util__in {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		max-width: var(--m11-max);
		min-height: 40px;
		margin: 0 auto;
		padding: 0 calc(var(--m11-gutter) + var(--m11-safe-right)) 0 calc(var(--m11-gutter) + var(--m11-safe-left));
	}

	.m11-util__tools {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.m11-util .m11-ctl {
		min-height: 40px;
		padding: 0 10px;
		color: inherit;
		font-size: 13px;
	}

	.m11-util .m11-ctl:hover {
		background: transparent;
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.m11-util .m11-ctl[aria-pressed="true"] {
		background: transparent;
		text-decoration: underline;
	}

	.m11-util :focus-visible {
		outline-color: var(--badge-glyph);
	}

	.m11-util__account {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
		padding: 0 10px;
		color: inherit;
		font-weight: 700;
		text-decoration: none;
	}

	.m11-util__account:hover {
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.m11-tabbar,
	.m11-menu__btn,
	.m11-menu__search,
	.m11-drawer__account {
		display: none;
	}

	.m11-menu {
		gap: 12px;
	}

	form.m11-search {
		display: flex;
		align-items: center;
		width: min(280px, 28vw);
		height: 44px;
		border: 1px solid var(--control-line);
		border-radius: 999px;
		background: var(--surface);
	}

	form.m11-search:focus-within {
		border-color: var(--text);
	}

	form.m11-search .m11-search__input {
		flex: 1;
		min-width: 0;
		height: 100%;
		padding: 0 4px 0 16px;
		border: 0;
		background: transparent;
		color: var(--text);
		font: inherit;
		outline: none;
	}

	form.m11-search .m11-search__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 100%;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: var(--text);
		cursor: pointer;
	}

	form.m11-search .m11-search__btn .m11-icon {
		width: 20px;
		height: 20px;
	}

	/* Top bar */
	.m11-topnav {
		display: block;
		align-self: stretch;
		justify-self: center;
	}

	.m11-topnav__list {
		display: flex;
		align-items: stretch;
		gap: 4px;
		height: 100%;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.m11-topnav__item {
		display: flex;
		align-items: stretch;
	}

	.m11-topnav__link {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 48px;
		padding: 0 12px;
		border: 0;
		border-bottom: 3px solid transparent;
		text-transform: uppercase;
		background: transparent;
		color: var(--text);
		font: inherit;
		font-family: var(--m11-font-display);
		font-size: 18px;
		line-height: 24px;
		font-weight: 700;
		letter-spacing: 0.02em;
		text-decoration: none;
		cursor: pointer;
	}

	/* The label and its arrow are one control: the background covers both, not just the label. */
	.m11-topnav__item:hover,
	.m11-topnav__item.is-open {
		background: var(--surface-2);
	}

	.m11-topnav__link[aria-current="page"] {
		border-bottom-color: var(--accent);
	}

	.m11-topnav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		margin-inline-start: -10px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--muted);
		cursor: pointer;
	}

	.m11-topnav__toggle:hover {
		color: var(--text);
	}

	.m11-topnav__toggle .m11-icon,
	.m11-topnav__more .m11-icon {
		width: 16px;
		height: 16px;
		transition: transform 0.15s ease;
	}

	.m11-topnav__item.is-open .m11-topnav__toggle .m11-icon,
	.m11-topnav__item.is-open .m11-topnav__more .m11-icon {
		transform: rotate(180deg);
	}

	/* Mega panel: full width under the bar. */
	.m11-mega {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 25;
		background: var(--surface);
		border-bottom: 1px solid var(--line-strong);
		box-shadow: 0 16px 24px -16px var(--scrim);
	}

	.m11-mega[hidden] {
		display: none;
	}

	.m11-mega__inner {
		width: 100%;
		max-width: var(--m11-max);
		margin: 0 auto;
		padding: 24px calc(var(--m11-gutter) + var(--m11-safe-right)) 28px calc(var(--m11-gutter) + var(--m11-safe-left));
	}

	.m11-mega__grid {
		display: grid;
		gap: 32px;
	}

	.m11-mega__grid--news {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	}

	.m11-mega__grid--cols {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		margin-bottom: 8px;
	}

	.m11-mega__heading {
		margin: 0 0 8px;
		color: var(--muted);
		font-size: 12px;
		line-height: 20px;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.m11-mega__lead {
		display: flex;
		flex-direction: column;
		gap: 6px;
		color: var(--text);
		text-decoration: none;
	}

	.m11-mega__lead img {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		object-fit: cover;
		border-radius: 14px;
		background: var(--surface-2);
	}

	.m11-mega__lead-title {
		font-family: var(--m11-font-display);
		font-size: 24px;
		line-height: 28px;
		font-weight: 700;
	}

	.m11-mega__lead:hover .m11-mega__lead-title {
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.m11-mega__kicker,
	.m11-mega__meta {
		color: var(--muted);
		font-size: 13px;
		line-height: 20px;
	}

	.m11-mega__list,
	.m11-mega__matches {
		margin: 0 0 8px;
		padding: 0;
		list-style: none;
	}

	.m11-mega__list--cols {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		column-gap: 32px;
	}

	.m11-mega__list a,
	.m11-mega__matches a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		min-height: 44px;
		padding: 6px 0;
		border-bottom: 1px solid var(--line);
		color: var(--text);
		font-weight: 600;
		text-decoration: none;
	}

	.m11-mega__list a:hover,
	.m11-mega__matches a:hover {
		color: var(--accent-text);
	}

	.m11-mega__list a[aria-current="page"] {
		color: var(--accent-text);
	}

	.m11-mega__matches {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		column-gap: 32px;
	}

	.m11-mega__teams {
		font-family: var(--m11-font-display);
		font-size: 20px;
		line-height: 24px;
		font-weight: 700;
	}

	.m11-mega__live {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		color: var(--accent-text);
		font-size: 13px;
		font-weight: 700;
	}

	.m11-mega .m11-badge__dot {
		display: inline-block;
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--accent);
	}

	.m11-mega__all {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		color: var(--text);
		font-weight: 700;
		text-decoration: underline;
		text-underline-offset: 3px;
	}
}

@media (min-width: 900px) and (max-width: 1199px) {
	.m11-topnav__link {
		padding: 0 8px;
		font-size: 16px;
	}

	form.m11-search {
		width: 180px;
	}
}

/* ---------- Text-only mode (weak connections) ---------- */

html.m11-text-only img,
html.m11-text-only picture,
html.m11-text-only video,
html.m11-text-only canvas,
html.m11-text-only .m11-media {
	display: none !important;
}

html.m11-text-only *,
html.m11-text-only *::before,
html.m11-text-only *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Side navigation (a plugin's pages, via the filter mero11_side_nav): left sidebar and a slim top bar on desktop ---------- */

.m11-sidenav,
.m11-sidebar-bar {
	display: none;
}

@media (min-width: 900px) {
	.m11-side-nav {
		--m11-side-w: 248px;
		--m11-bar-top: var(--wp-admin--admin-bar--height, 0px);
	}

	.m11-side-nav .m11-shell {
		padding-left: var(--m11-side-w);
	}

	.m11-side-nav .m11-header {
		top: var(--m11-bar-top);
	}

	.m11-side-nav .m11-header__row,
	.m11-side-nav .m11-util {
		display: none;
	}

	/* The slim bar: display controls, profile and menu at the right. */
	.m11-side-nav .m11-sidebar-bar {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
		min-height: 64px;
		padding: 0 var(--m11-gutter);
	}

	.m11-side-nav .m11-sidenav {
		position: fixed;
		top: var(--m11-bar-top);
		bottom: 0;
		left: 0;
		z-index: 21;
		display: flex;
		flex-direction: column;
		gap: 20px;
		width: var(--m11-side-w);
		padding: 20px 16px 16px;
		overflow-y: auto;
		border-right: 1px solid var(--line);
		background: var(--surface);
	}

	.m11-side-nav .m11-sidenav .m11-wordmark {
		padding: 0 12px;
		font-size: 32px;
		line-height: 36px;
	}

	.m11-sidenav__list {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.m11-sidenav__foot {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin-top: auto;
	}

	/* The tab bar is a phone control; the sidebar replaces it. */
	.m11-side-nav .m11-tabbar {
		display: none;
	}
}

.m11-wordmark__tag {
	margin-left: 2px;
	font-size: 0.6em;
	font-weight: 700;
	letter-spacing: 0.02em;
}
