

.mm-g-page {
	--mm-g-ink: #1a1208;
	--mm-g-muted: #6b5a45;
	--mm-g-line: rgba(139, 90, 30, 0.18);
	--mm-g-paper: #fffaf3;
	--mm-g-sand: #f3e8d6;
	--mm-g-ember: var(--mm-brand, #ef9217);
	--mm-g-ember-deep: var(--mm-brand-dark, #c56f00);
	--mm-g-night: #1f160c;
	width: 100%;
	color: var(--mm-g-ink);
}

.mm-g-page.is-hidden,
.mm-g-page .is-hidden {
	display: none !important;
}

.mm-g-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .65rem 1rem;
	margin-bottom: .85rem;
}

.mm-g-topbar__home,
.mm-g-topbar__menu {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem .9rem;
	font-weight: 700;
	font-size: .88rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, color .18s ease;
}

.mm-g-topbar__home {
	color: #fff;
	background: var(--mm-g-night);
}

.mm-g-topbar__home:hover {
	color: #fff;
	background: var(--mm-g-ember-deep);
	transform: translateY(-1px);
}

.mm-g-topbar__menu {
	margin-left: auto;
	color: var(--mm-g-ink);
	background: #fff;
	border-color: var(--mm-g-line);
}

.mm-g-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	font-size: .86rem;
	font-weight: 600;
	color: var(--mm-g-muted);
}

.mm-g-crumbs a {
	color: var(--mm-g-ember-deep);
	text-decoration: none;
}

.mm-g-crumbs a:hover {
	text-decoration: underline;
}

.mm-g-shell {
	display: grid;
	grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
	gap: .9rem;
	align-items: start;
}

.mm-g-page--read .mm-g-shell {
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
}

.mm-g-rail {
	flex-direction: column;
	position: sticky;
	top: .75rem;
	max-height: calc(100vh - 1.5rem);
	background: linear-gradient(180deg, #2a1c0e 0%, #1a1208 100%);
	color: #f8ecd8;
	border: 1px solid rgba(255, 186, 90, 0.22);
	box-shadow: 0 16px 36px rgba(20, 12, 4, 0.28);
	overflow: hidden;
}

.mm-g-rail__brand {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .95rem 1rem;
	font-size: 1rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255, 210, 122, 0.18);
	background: linear-gradient(90deg, rgba(239, 146, 23, 0.35), transparent);
}

.mm-g-rail__brand i {
	font-size: 1.2rem;
	color: #ffc857;
}

.mm-g-rail__scroll {
	overflow: auto;
	padding: .55rem 0 1rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 186, 90, 0.45) transparent;
}

.mm-g-rail__group + .mm-g-rail__group {
	margin-top: .35rem;
	padding-top: .35rem;
	border-top: 1px solid rgba(255, 210, 122, 0.1);
}

.mm-g-rail__label {
	margin: 0;
	padding: .45rem 1rem .2rem;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 210, 122, 0.72);
}

.mm-g-rail__nav {
	display: flex;
	flex-direction: column;
}

.mm-g-rail__link {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .48rem 1rem;
	color: rgba(255, 246, 230, 0.88);
	text-decoration: none;
	font-size: .84rem;
	font-weight: 600;
	line-height: 1.25;
	border-left: 3px solid transparent;
	transition: background .15s ease, color .15s ease, border-color .15s ease, padding-left .15s ease;
}

.mm-g-rail__link img,
.mm-g-rail__link i {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	object-fit: contain;
	opacity: .9;
}

.mm-g-rail__link:hover {
	background: rgba(239, 146, 23, 0.16);
	color: #fff;
	border-left-color: rgba(255, 200, 100, 0.55);
	padding-left: 1.15rem;
}

.mm-g-rail__link.is-active {
	background: linear-gradient(90deg, rgba(239, 146, 23, 0.42), rgba(239, 146, 23, 0.08));
	border-left-color: #ffc857;
	color: #fff;
}

.mm-g-main {
	min-width: 0;
	background: var(--mm-g-paper);
	border: 1px solid var(--mm-g-line);
	box-shadow: 0 12px 28px rgba(40, 24, 8, 0.08);
	overflow: hidden;
}

.mm-g-hero {
	position: relative;
	min-height: clamp(220px, 32vw, 320px);
	display: flex;
	align-items: flex-end;
	background:
		url("../../img/button/bn_beginners_guide.webp") center / cover no-repeat,
		linear-gradient(135deg, #1f160c, #8a4a00);
	overflow: hidden;
	animation: mm-g-fade-in .55s ease both;
}

.mm-g-hero__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(18, 10, 4, 0.92) 0%, rgba(18, 10, 4, 0.72) 48%, rgba(138, 74, 0, 0.35) 100%),
		radial-gradient(80% 120% at 90% 10%, rgba(255, 186, 90, 0.28), transparent 55%);
	pointer-events: none;
}

.mm-g-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 1.6rem 1.4rem 1.5rem;
	color: #fff;
}

.mm-g-hero__kicker {
	margin: 0 0 .35rem;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #ffd27a;
	animation: mm-g-rise .5s ease both;
}

.mm-g-hero__brand {
	margin: 0 0 .55rem;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-weight: 900;
	line-height: .95;
	letter-spacing: -.02em;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
	animation: mm-g-rise .55s .05s ease both;
}

.mm-g-hero__lead {
	margin: 0 0 1rem;
	max-width: 34rem;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 246, 230, 0.9);
	animation: mm-g-rise .55s .1s ease both;
}

.mm-g-search {
	display: flex;
	align-items: center;
	gap: .6rem;
	max-width: 26rem;
	padding: .7rem 1rem;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(255, 210, 122, 0.55);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	color: var(--mm-g-ink);
	animation: mm-g-rise .55s .16s ease both;
}

.mm-g-search i {
	color: var(--mm-g-ember-deep);
}

.mm-g-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: .98rem;
	font-weight: 650;
}

.mm-g-path {
	padding: 1.35rem 1.25rem 1.1rem;
	background:
		linear-gradient(180deg, rgba(255, 210, 122, 0.16), transparent 60%),
		var(--mm-g-sand);
	border-bottom: 1px solid var(--mm-g-line);
}

.mm-g-path__head {
	margin-bottom: 1rem;
}

.mm-g-path__head h2 {
	margin: 0 0 .3rem;
	font-size: 1.25rem;
	font-weight: 850;
}

.mm-g-path__head p {
	margin: 0;
	color: var(--mm-g-muted);
	font-size: .92rem;
}

.mm-g-path__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: .7rem;
	counter-reset: none;
}

.mm-g-path__step {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: .7rem;
	padding: .85rem .9rem;
	min-height: 78px;
	text-decoration: none;
	color: var(--mm-g-ink);
	background: #fff;
	border: 1px solid rgba(239, 146, 23, 0.28);
	box-shadow: 0 8px 18px rgba(80, 45, 10, 0.06);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
	animation: mm-g-rise .45s var(--mm-g-delay, 0ms) ease both;
}

.mm-g-path__step:hover {
	transform: translateY(-3px);
	border-color: var(--mm-g-ember);
	box-shadow: 0 14px 28px rgba(80, 45, 10, 0.12);
	color: var(--mm-g-ember-deep);
}

.mm-g-path__num {
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
	font-weight: 900;
	font-size: .9rem;
	color: #fff;
	background: linear-gradient(135deg, var(--mm-g-ember), var(--mm-g-ember-deep));
}

.mm-g-path__body {
	display: flex;
	align-items: center;
	gap: .55rem;
	min-width: 0;
}

.mm-g-path__body img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.mm-g-path__body strong {
	font-size: .92rem;
	line-height: 1.25;
}

.mm-g-path__step > i {
	opacity: .45;
	transition: transform .2s ease, opacity .2s ease;
}

.mm-g-path__step:hover > i {
	opacity: 1;
	transform: translateX(3px);
}

.mm-g-browse {
	padding: 1.25rem 1.2rem 1.4rem;
}

.mm-g-browse__bar {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	margin-bottom: 1rem;
}

.mm-g-browse__bar h2 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 850;
}

.mm-g-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.mm-g-chip {
	padding: .42rem .8rem;
	font-size: .78rem;
	font-weight: 800;
	border: 1px solid var(--mm-g-line);
	background: #fff;
	color: var(--mm-g-muted);
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.mm-g-chip:hover {
	border-color: var(--mm-g-ember);
	color: var(--mm-g-ember-deep);
	transform: translateY(-1px);
}

.mm-g-chip.is-active {
	background: linear-gradient(90deg, var(--mm-g-ember), var(--mm-g-ember-deep));
	border-color: var(--mm-g-ember-deep);
	color: #fff;
}

.mm-g-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: .9rem;
}

.mm-g-tile {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--mm-g-line);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mm-g-tile:hover {
	transform: translateY(-4px);
	border-color: rgba(239, 146, 23, 0.5);
	box-shadow: 0 16px 32px rgba(40, 24, 8, 0.12);
	color: inherit;
}

.mm-g-tile__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #1a1208;
	overflow: hidden;
}

.mm-g-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.mm-g-tile:hover .mm-g-tile__media img {
	transform: scale(1.05);
}

.mm-g-tile__tag {
	position: absolute;
	left: .65rem;
	bottom: .65rem;
	padding: .22rem .55rem;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #1f160c;
	background: rgba(255, 210, 122, 0.95);
}

.mm-g-tile__copy {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	padding: .9rem .95rem 1rem;
	flex: 1;
}

.mm-g-tile__copy strong {
	font-size: 1.02rem;
	line-height: 1.3;
}

.mm-g-tile__excerpt {
	font-size: .86rem;
	line-height: 1.45;
	color: var(--mm-g-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mm-g-tile__cta {
	margin-top: auto;
	padding-top: .35rem;
	font-size: .84rem;
	font-weight: 800;
	color: var(--mm-g-ember-deep);
	display: inline-flex;
	align-items: center;
	gap: .25rem;
}

.mm-g-tile:hover .mm-g-tile__cta i {
	transform: translateX(3px);
}

.mm-g-tile__cta i {
	transition: transform .2s ease;
}

.mm-g-empty {
	margin: .5rem 0;
	padding: 1rem;
	text-align: center;
	color: var(--mm-g-muted);
	grid-column: 1 / -1;
}

.mm-g-empty--soft {
	background: transparent;
	border: 0;
}

.mm-g-pager {
	grid-column: 1 / -1;
	margin-top: .4rem;
}

.mm-g-pager ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .35rem;
	list-style: none;
	margin: 0;
	padding: .85rem;
	background: #fff;
	border: 1px solid var(--mm-g-line);
}

.mm-g-pager a {
	display: inline-flex;
	align-items: center;
	padding: .4rem .7rem;
	font-weight: 700;
	font-size: .86rem;
	color: var(--mm-g-ink);
	text-decoration: none;
	border: 1px solid var(--mm-g-line);
	background: #fff;
}

.mm-g-pager li.is-current a,
.mm-g-pager a:hover {
	background: linear-gradient(90deg, var(--mm-g-ember), var(--mm-g-ember-deep));
	border-color: var(--mm-g-ember-deep);
	color: #fff;
}

.mm-g-read {
	background: #fff;
}

.mm-g-read__hero {
	position: relative;
	min-height: clamp(200px, 28vw, 280px);
	display: flex;
	align-items: flex-end;
	background-image: var(--mm-g-hero);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.mm-g-read__hero-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 10, 4, 0.25) 0%, rgba(18, 10, 4, 0.88) 100%);
}

.mm-g-read__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 1.35rem 1.4rem 1.4rem;
	color: #fff;
	animation: mm-g-rise .5s ease both;
}

.mm-g-read__back {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-bottom: .75rem;
	padding: .4rem .75rem;
	font-size: .84rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(4px);
	transition: background .15s ease;
}

.mm-g-read__back:hover {
	color: #fff;
	background: rgba(239, 146, 23, 0.85);
}

.mm-g-read__back--solid {
	background: var(--mm-g-night);
	border-color: var(--mm-g-night);
	margin-bottom: 0;
}

.mm-g-read__title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 900;
	line-height: 1.2;
	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.mm-g-read__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.1rem;
	margin-top: .65rem;
	font-size: .86rem;
	opacity: .92;
}

.mm-g-read__prose {
	padding: 1.4rem clamp(1rem, 3vw, 2rem) 1.6rem;
	max-width: 52rem;
	margin: 0 auto;
	line-height: 1.75;
	font-size: 1.02rem;
	overflow-wrap: anywhere;
	word-break: break-word;
	animation: mm-g-fade-in .45s .08s ease both;
}

.mm-g-read__prose img {
	max-width: 100%;
	height: auto;
}

.mm-g-read__prose p {
	margin: 0 0 .9rem;
}

.mm-g-read__foot {
	padding: 0 1.25rem 1.4rem;
	max-width: 52rem;
	margin: 0 auto;
}

.mm-g-read--empty {
	padding: 1.25rem;
}

.mm-g-drawer {
	border-right: 1px solid rgba(255, 186, 90, 0.25);
}

.mm-g-drawer__head {
	background: linear-gradient(90deg, var(--mm-g-ember), var(--mm-g-ember-deep));
	color: #fff;
}

.mm-g-drawer__body {
	padding: 0;
	background: #1f160c;
	color: #f8ecd8;
}

.mm-g-drawer__body .mm-g-rail__label {
	color: rgba(255, 210, 122, 0.72);
}

.mm-g-drawer__body .mm-g-rail__link {
	color: rgba(255, 246, 230, 0.88);
}

.mm-g-drawer__body .mm-g-rail__link:hover,
.mm-g-drawer__body .mm-g-rail__link.is-active {
	color: #fff;
}

@keyframes mm-g-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mm-g-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.mm-g-hero,
	.mm-g-hero__kicker,
	.mm-g-hero__brand,
	.mm-g-hero__lead,
	.mm-g-search,
	.mm-g-path__step,
	.mm-g-read__hero-inner,
	.mm-g-read__prose {
		animation: none !important;
	}

	.mm-g-tile,
	.mm-g-path__step,
	.mm-g-tile__media img {
		transition: none !important;
	}
}

@media (max-width: 991.98px) {
	.mm-g-shell,
	.mm-g-page--read .mm-g-shell {
		grid-template-columns: 1fr;
	}

	.mm-g-hero {
		min-height: 240px;
	}
}

@media (max-width: 575.98px) {
	.mm-g-path__list,
	.mm-g-grid {
		grid-template-columns: 1fr;
	}

	.mm-g-hero__inner,
	.mm-g-path,
	.mm-g-browse {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}
