/* Maheri Mother Group — moving domain strips (header and footer). Palette: maheri-site-inventory/mother-group-construction-brief.md §7.7 */
.mmg-strip {
	--mmg-sand: #f4ede1;
	--mmg-khaki: #c8b08a;
	--mmg-wood: #6b4a2f;
	--mmg-green: #1f5b34;
	--mmg-spring: #8bc34a;
	--mmg-sun: #f2b705;
	--mmg-soil: #2b2118;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
	font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	letter-spacing: .01em;
	color: var(--mmg-sand);
	background: linear-gradient(90deg, var(--mmg-green) 0%, #2d6a3e 45%, var(--mmg-wood) 100%);
	border-bottom: 2px solid var(--mmg-sun);
	direction: ltr;
	text-align: left;
}
.mmg-strip *,
.mmg-strip *::before,
.mmg-strip *::after { box-sizing: border-box; }
.mmg-strip--bottom {
	background: linear-gradient(90deg, var(--mmg-wood) 0%, #4f3622 50%, var(--mmg-green) 100%);
	border-bottom: 0;
	border-top: 2px solid var(--mmg-sun);
}

/* Badge: fixed on the left, the domains run behind it. */
.mmg-strip .mmg-badge {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px 0 14px;
	margin: 0;
	color: var(--mmg-soil);
	background: var(--mmg-sun);
	font-weight: 800;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	text-decoration: none;
	white-space: nowrap;
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	padding-right: 24px;
}
.mmg-strip a.mmg-badge:hover,
.mmg-strip a.mmg-badge:focus-visible { color: var(--mmg-soil); background: #ffc928; text-decoration: none; }
.mmg-strip .mmg-badge__mark {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	border-radius: 3px;
	background:
		linear-gradient(135deg, var(--mmg-green) 0 50%, transparent 50%),
		linear-gradient(315deg, var(--mmg-wood) 0 50%, transparent 50%),
		var(--mmg-spring);
	box-shadow: 0 0 0 2px rgba(43, 33, 24, .25);
}

.mmg-strip .mmg-viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.mmg-strip .mmg-track {
	display: flex;
	width: max-content;
	animation: mmg-run var(--mmg-duration, 60s) linear infinite;
	will-change: transform;
}
.mmg-strip--bottom .mmg-track { animation-direction: reverse; }
.mmg-strip:hover .mmg-track,
.mmg-strip:focus-within .mmg-track { animation-play-state: paused; }

.mmg-strip ul.mmg-group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mmg-strip ul.mmg-group > li {
	margin: 0;
	padding: 0 6px;
	list-style: none;
	background: none;
	border: 0;
}
.mmg-strip ul.mmg-group > li::before,
.mmg-strip ul.mmg-group > li::marker { content: none; }

.mmg-strip .mmg-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border-radius: 999px;
	color: var(--mmg-sand);
	text-decoration: none;
	white-space: nowrap;
	background: rgba(43, 33, 24, .22);
	border: 1px solid rgba(244, 237, 225, .18);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mmg-strip a.mmg-item:hover,
.mmg-strip a.mmg-item:focus-visible {
	color: var(--mmg-soil);
	background: var(--mmg-sun);
	border-color: var(--mmg-sun);
	text-decoration: none;
}
.mmg-strip a.mmg-item:focus-visible,
.mmg-strip a.mmg-badge:focus-visible { outline: 2px solid var(--mmg-sand); outline-offset: 2px; }
.mmg-strip .mmg-domain { font-weight: 800; color: inherit; }
.mmg-strip .mmg-item .mmg-label {
	font-weight: 600;
	font-size: 12px;
	color: #e6d6b8;
}
.mmg-strip a.mmg-item:hover .mmg-label,
.mmg-strip a.mmg-item:focus-visible .mmg-label { color: var(--mmg-wood); }
.mmg-strip .mmg-label::before { content: "·"; margin-right: 7px; opacity: .7; }
.mmg-strip .mmg-dot {
	width: 9px;
	height: 9px;
	flex: 0 0 9px;
	border-radius: 2px;
	transform: rotate(45deg);
	background: var(--mmg-dot, var(--mmg-sun));
	box-shadow: 0 0 0 1px rgba(43, 33, 24, .35);
}
.mmg-strip .mmg-c0 { --mmg-dot: var(--mmg-sun); }
.mmg-strip .mmg-c1 { --mmg-dot: var(--mmg-spring); }
.mmg-strip .mmg-c2 { --mmg-dot: var(--mmg-khaki); }
.mmg-strip .mmg-c3 { --mmg-dot: #a5d66f; }
.mmg-strip .mmg-c4 { --mmg-dot: #d9a066; }
.mmg-strip .mmg-c5 { --mmg-dot: var(--mmg-sand); }

@keyframes mmg-run {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 600px) {
	.mmg-strip { min-height: 32px; font-size: 12px; }
	.mmg-strip .mmg-badge { gap: 6px; padding-left: 8px; padding-right: 16px; font-size: 10px; letter-spacing: .03em; }
	.mmg-strip .mmg-badge__mark { width: 11px; height: 11px; flex-basis: 11px; }
	.mmg-strip .mmg-label { display: none; }
}

/* Less motion: a still row that can be scrolled sideways; the copy used for the loop is not needed. */
@media (prefers-reduced-motion: reduce) {
	.mmg-strip .mmg-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
	.mmg-strip .mmg-track { animation: none; }
	.mmg-strip ul.mmg-group[aria-hidden="true"],
	.mmg-strip ul.mmg-group > li[aria-hidden="true"] { display: none; }
}

@media print {
	.mmg-strip { display: none !important; }
}

/* Hub pages: the "Part of Mother Group" line on top and the notes. */
.mmg-part-of {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #f4ede1;
	border: 1px solid #c8b08a;
	color: #6b4a2f;
	font-size: .85em;
	letter-spacing: .02em;
}
.mmg-part-of strong { color: #1f5b34; }
.mmg-note {
	padding: 10px 14px;
	border-left: 4px solid #f2b705;
	background: #f4ede1;
	color: #2b2118;
	font-size: .92em;
}
h1.mmg-title { margin: .2em 0 .5em; color: #1f5b34; font-weight: 800; line-height: 1.15; }
ul.mmg-list { margin: 0 0 1.2em; padding-left: 1.3em; list-style: none; }
ul.mmg-list > li { position: relative; margin: .35em 0; padding-left: .4em; }
ul.mmg-list > li::before {
	content: "";
	position: absolute;
	left: -1.05em;
	top: .5em;
	width: .55em;
	height: .55em;
	border-radius: 2px;
	transform: rotate(45deg);
	background: #8bc34a;
}
ul.mmg-list > li:nth-child(3n+2)::before { background: #c8b08a; }
ul.mmg-list > li:nth-child(3n)::before { background: #f2b705; }
.mmg-cta .wp-block-button__link,
.mmg-cta .wp-block-button__link:visited {
	background: #f2b705;
	color: #2b2118;
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
}
.mmg-cta .wp-block-button__link:hover,
.mmg-cta .wp-block-button__link:focus-visible { background: #1f5b34; color: #f4ede1; }
