/*!
 * MyGeneratorLab — base.css
 * Split from main.css for conditional loading (v3.6.0).
 */

/* 1. Design tokens & reset
-------------------------------------------------- */

:root {
	--mgl-primary: #ff5722;
	--mgl-primary-dark: #d9481a;
	--mgl-primary-soft: #fff3ec;
	--mgl-ink: #1b1b1d;
	--mgl-text: #333336;
	--mgl-muted: #6d7278;
	--mgl-bg: #ffffff;
	--mgl-bg-soft: #f6f7f9;
	--mgl-bg-dark: #141416;
	--mgl-header-bg: #1a1a1c;
	--mgl-border: #e7e9ec;
	--mgl-success: #15803d;
	--mgl-danger: #c2410c;
	--mgl-warning-bg: #fffbeb;
	--mgl-warning-border: #fde68a;
	--mgl-warning-text: #92400e;
	--mgl-radius: 12px;
	--mgl-radius-lg: 16px;
	--mgl-shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.06);
	--mgl-shadow-md: 0 8px 24px rgba(16, 18, 22, 0.1);
	--mgl-shadow-lg: 0 18px 44px rgba(16, 18, 22, 0.14);
	--mgl-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mgl-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--mgl-max: 1240px;
	--mgl-article-max: 740px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: var(--mgl-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--mgl-text);
	background: var(--mgl-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--mgl-primary);
	text-decoration: none;
}

a:hover {
	color: var(--mgl-primary-dark);
}

.mgl-icon {
	fill: currentColor;
	flex-shrink: 0;
}

.mgl-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--mgl-ink);
	color: #fff;
	padding: 12px 18px;
	z-index: 9999;
	border-radius: 0 0 8px 0;
	font-weight: 700;
}

.mgl-skip-link:focus {
	left: 8px;
	top: 8px;
	color: #fff;
}


/* 2. Base typography
-------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	color: var(--mgl-ink);
	line-height: 1.22;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin-top: 0;
}

p {
	margin: 0 0 1.1em;
}


/* 3. Layout & containers
-------------------------------------------------- */

.mgl-container {
	max-width: var(--mgl-max);
	margin: 0 auto;
	padding: 0 24px;
}

.mgl-narrow {
	max-width: 880px;
}

.mgl-content {
	padding: 0 0 72px;
}

.mgl-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}

.mgl-main {
	min-width: 0;
}

.mgl-page-head {
	padding: 44px 0 8px;
	max-width: 720px;
}

.mgl-page-title {
	font-size: 36px;
	margin: 0 0 8px;
}

.mgl-page-sub {
	color: var(--mgl-muted);
	font-size: 18px;
	margin: 0;
}


/* 4. Topbar
-------------------------------------------------- */

.mgl-topbar {
	background: #0e0e10;
	color: #b9bcc2;
	font-size: 12.5px;
}

.mgl-topbar-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 36px;
}

.mgl-topbar-date {
	font-weight: 600;
	white-space: nowrap;
}

.mgl-topbar-tagline {
	color: #8a8f96;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
}

.mgl-topbar-social {
	display: flex;
	gap: 2px;
	margin-left: auto;
}

.mgl-topbar-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	color: #b9bcc2;
}

.mgl-topbar-social a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.mgl-topbar-social .mgl-icon {
	width: 15px;
	height: 15px;
}


/* 5. Header / navigation / search
-------------------------------------------------- */

.mgl-header {
	background: var(--mgl-header-bg);
	position: sticky;
	top: 0;
	z-index: 500;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.mgl-header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 72px;
	position: relative;
}

.mgl-logo {
	flex-shrink: 0;
}

.mgl-logo img {
	display: block;
	width: 200px;
	height: auto;
}

.mgl-nav {
	flex: 1;
}

.mgl-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mgl-menu a {
	display: block;
	color: #e8eaed;
	font-weight: 700;
	font-size: 15px;
	padding: 10px 14px;
	border-radius: 8px;
	white-space: nowrap;
	position: relative;
}

.mgl-menu a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
	text-decoration: none;
}

.mgl-menu .current-menu-item > a,
.mgl-menu .current-post-ancestor > a {
	color: #fff;
}

.mgl-menu .current-menu-item > a::after,
.mgl-menu .current-post-ancestor > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 3px;
	border-radius: 2px;
	background: var(--mgl-primary);
}

.mgl-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.mgl-search-toggle,
.mgl-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.mgl-search-toggle:hover,
.mgl-menu-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
}

.mgl-menu-toggle {
	display: none;
}

.mgl-search-bar {
	background: #232326;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 14px 0;
}

.mgl-search-bar[hidden] {
	display: none;
}

/* Search form */
.mgl-search-form {
	display: flex;
	gap: 10px;
	max-width: 560px;
}

.mgl-search-label {
	flex: 1;
}

.mgl-search-input {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--mgl-border);
	border-radius: 10px;
	font-size: 16px;
	font-family: inherit;
	background: #fff;
	color: var(--mgl-text);
}

.mgl-search-input:focus {
	outline: 2px solid var(--mgl-primary);
	border-color: var(--mgl-primary);
}

.mgl-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	border: 0;
	border-radius: 10px;
	background: var(--mgl-primary);
	color: #fff;
	cursor: pointer;
}

.mgl-search-submit:hover {
	background: var(--mgl-primary-dark);
}


/* 9. Post cards & grids
-------------------------------------------------- */

.mgl-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.mgl-post-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mgl-post-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mgl-related .mgl-post-grid {
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 20px;
}

.mgl-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
	transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
	height: 100%;
}

.mgl-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
	border-color: #d1d5db;
}

.mgl-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
	position: relative;
}

.mgl-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mgl-card:hover .mgl-card-image img {
	transform: scale(1.04);
}

.mgl-card-image-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #fff2eb 0%, #fde8dd 100%);
	color: var(--mgl-primary);
	text-decoration: none;
}

.mgl-card-image-fallback .mgl-icon {
	width: 44px;
	height: 44px;
	opacity: 0.85;
	transition: transform 0.3s ease;
}

.mgl-card:hover .mgl-card-image-fallback .mgl-icon {
	transform: scale(1.1) rotate(6deg);
}

.mgl-card-fallback-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mgl-primary);
	padding: 4px 10px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mgl-card-body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.mgl-card-cat {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mgl-primary);
	background: var(--mgl-primary-soft);
	padding: 4px 10px;
	border-radius: 16px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.mgl-card-cat:hover {
	background: var(--mgl-primary);
	color: #ffffff;
	text-decoration: none;
}

.mgl-card-title {
	margin: 8px 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 2.7em;
}

.mgl-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.mgl-card-title a:hover {
	color: var(--mgl-primary);
	text-decoration: none;
}

.mgl-card-excerpt {
	margin: 0 0 14px;
	color: #4b5563;
	font-size: 13.5px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 3.1em;
}

.mgl-card-meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f1f4f8;
	color: #6b7280;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.mgl-card-author {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #374151;
	font-weight: 600;
}

.mgl-card-author img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.mgl-card-author a {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.mgl-card-author a:hover {
	color: var(--mgl-primary);
	text-decoration: none;
}

.mgl-card-meta-dot {
	color: #9ca3af;
}

.mgl-card-date {
	white-space: nowrap;
	color: #6b7280;
	font-size: 12px;
}


/* 10. Buttons, badges
-------------------------------------------------- */

.mgl-btn,
.wp-block-button__link {
	display: inline-block;
	background: var(--mgl-primary);
	color: #fff !important;
	font-weight: 800;
	padding: 13px 28px;
	border-radius: 10px;
	border: 0;
	text-decoration: none !important;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mgl-btn:hover,
.wp-block-button__link:hover {
	background: var(--mgl-primary-dark);
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(255, 87, 34, 0.35);
}

.mgl-btn-outline {
	background: #fff;
	color: var(--mgl-primary) !important;
	border: 2px solid var(--mgl-primary);
	box-shadow: none;
}

.mgl-btn-outline:hover {
	background: var(--mgl-primary);
	color: #fff !important;
}

.mgl-badge {
	display: inline-block;
	background: var(--mgl-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 6px 14px;
	border-radius: 20px;
}

a.mgl-badge:hover {
	color: #fff;
	background: var(--mgl-primary-dark);
	text-decoration: none;
}

.mgl-badge-sm {
	font-size: 10.5px;
	padding: 4px 10px;
}


/* 24. Footer
-------------------------------------------------- */

.mgl-footer {
	background: var(--mgl-bg-dark);
	color: #b9bdc4;
	margin-top: 0;
}

.mgl-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 44px;
	padding: 64px 0 48px;
}

.mgl-footer-brand img {
	width: 200px;
	height: auto;
	margin-bottom: 18px;
	display: block;
}

.mgl-footer-brand p {
	font-size: 14.5px;
	line-height: 1.65;
	max-width: 320px;
	color: #9aa0a8;
}

.mgl-footer-col h3 {
	color: #fff;
	font-size: 15px;
	margin: 0 0 18px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mgl-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mgl-footer-col li {
	margin-bottom: 11px;
	font-size: 14.5px;
}

.mgl-footer-col a {
	color: #b9bdc4;
}

.mgl-footer-col a:hover {
	color: var(--mgl-primary);
	text-decoration: none;
}

.mgl-footer-social {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.mgl-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mgl-footer-social a:hover {
	background: var(--mgl-primary);
	transform: translateY(-3px);
	text-decoration: none;
}

.mgl-footer-social .mgl-icon {
	width: 18px;
	height: 18px;
}

.mgl-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #8a8f96;
}

.mgl-footer-bottom p {
	margin: 0;
}


/* 25. Utilities
-------------------------------------------------- */

.mgl-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 0;
	background: var(--mgl-primary);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--mgl-shadow-md);
	z-index: 400;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s ease, transform 0.18s ease;
}

.mgl-back-to-top[hidden] {
	display: none;
}

.mgl-back-to-top:hover {
	background: var(--mgl-primary-dark);
	transform: translateY(-3px);
}

.mgl-404 {
	text-align: center;
	padding: 80px 20px;
}

.mgl-404-code {
	font-size: 110px;
	font-weight: 800;
	color: var(--mgl-border);
	margin: 0;
	line-height: 1;
	letter-spacing: -0.03em;
}

.mgl-404 h1 {
	font-size: 36px;
	margin: 8px 0 12px;
}

.mgl-404 .mgl-search-form {
	margin: 24px auto;
}

.mgl-404 .mgl-btn {
	margin-top: 8px;
}


/* 27. Accessibility & focus
-------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--mgl-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.mgl-nav a:focus-visible {
	outline-offset: -1px;
}

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

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

	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}


/* 28. Responsive (split)
-------------------------------------------------- */
@media (max-width: 1024px) {
	.mgl-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 36px;
	}
	.mgl-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mgl-post-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.mgl-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 768px) {
	body {
		font-size: 16px;
	}
	.mgl-container {
		padding: 0 18px;
	}
	.mgl-topbar-tagline {
		display: none;
	}
	.mgl-topbar-inner {
		justify-content: space-between;
	}
	.mgl-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #222224;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}
	.mgl-nav.open {
		display: block;
	}
	.mgl-menu {
		flex-direction: column;
		align-items: stretch;
		padding: 10px 18px 18px;
	}
	.mgl-menu a {
		padding: 13px 6px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
		border-radius: 0;
	}
	.mgl-menu .current-menu-item > a::after,
	.mgl-menu .current-post-ancestor > a::after {
		display: none;
	}
	.mgl-menu-toggle {
		display: inline-flex;
	}
	.mgl-header-inner {
		height: 64px;
		gap: 14px;
	}
	.mgl-logo img {
		width: 160px;
	}
	.mgl-post-grid,
	.mgl-post-grid-2,
	.mgl-post-grid-3,
	.mgl-post-grid-4 {
		grid-template-columns: 1fr;
	}
	.mgl-home-section {
		padding: 40px 0 4px;
	}
	.mgl-section-title {
		font-size: 23px;
	}
	.mgl-product {
		padding: 22px 18px;
	}
	.mgl-footer-grid {
		grid-template-columns: 1fr;
		gap: 34px;
		padding: 48px 0 36px;
	}
	.mgl-footer-bottom {
		flex-direction: column;
	}
	.mgl-back-to-top {
		right: 16px;
		bottom: 16px;
	}
}

/* 31. MyGeneratorLab 3.1 modern UI layer (split)
-------------------------------------------------- */
:root {
	--mgl-primary: #f05a28;
	--mgl-primary-dark: #c94419;
	--mgl-primary-soft: #fff1e9;
	--mgl-ink: #111827;
	--mgl-text: #344054;
	--mgl-muted: #667085;
	--mgl-bg-soft: #f7f8fa;
	--mgl-border: #e4e7ec;
	--mgl-radius: 14px;
	--mgl-radius-lg: 20px;
	--mgl-shadow-sm: 0 2px 8px rgba(16, 24, 40, .05);
	--mgl-shadow-md: 0 12px 30px rgba(16, 24, 40, .11);
	--mgl-shadow-lg: 0 20px 48px rgba(16, 24, 40, .15);
}
body {
	background: #fbfcfe;
}
.mgl-header {
	background: rgba(17, 24, 39, .96); backdrop-filter: blur(14px);
}
.mgl-topbar {
	background: #0b1220;
}
.mgl-card {
	border-radius: 18px;
}
.mgl-card:hover {
	transform: translateY(-7px);
}
.mgl-card-body {
	padding: 22px 24px 24px;
}
.mgl-card-meta {
	gap: 8px;
}
.mgl-card-author {
	display: inline-flex; align-items: center; gap: 7px;
}
.mgl-card-author img {
	width: 24px; height: 24px; border-radius: 50%;
}
.mgl-card-author a {
	color: var(--mgl-ink); font-weight: 700;
}
.mgl-card-author a:hover {
	color: var(--mgl-primary);
}
.mgl-section-title {
	letter-spacing: -.03em;
}
.mgl-badge {
	box-shadow: 0 4px 12px rgba(240, 90, 40, .18);
}
.mgl-author-identity {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.mgl-author-trigger {
	color: inherit;
	text-decoration: none;
	cursor: pointer !important;
	border-bottom: none !important;
	transition: color 0.18s ease;
}
.mgl-author-trigger:hover,
.mgl-author-trigger:focus-visible {
	color: var(--mgl-primary);
	text-decoration: none;
	cursor: pointer;
}
.mgl-author-popover {
	position: absolute;
	z-index: 50;
	left: 50%;
	bottom: calc(100% + 14px);
	width: 320px;
	max-width: calc(100vw - 32px);
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background: #111827;
	color: #ffffff;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px) scale(0.96);
	transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
	text-align: left;
	pointer-events: none;
}
.mgl-author-popover::before {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 18px;
	background: transparent;
	pointer-events: auto;
}
.mgl-author-popover::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 12px;
	height: 12px;
	background: #111827;
	border-right: 1px solid rgba(255, 255, 255, 0.14);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	transform: translateX(-50%) rotate(45deg);
}
.mgl-author-identity:hover .mgl-author-popover,
.mgl-author-identity:focus-within .mgl-author-popover {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0) scale(1);
	pointer-events: auto;
}
.mgl-author-popover-top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}
.mgl-author-popover-avatar-wrap {
	position: relative;
	flex-shrink: 0;
}
.mgl-author-popover-avatar-wrap img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.mgl-author-popover-badge {
	position: absolute;
	bottom: -1px;
	right: -1px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--mgl-primary);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #111827;
}
.mgl-author-popover-badge .mgl-icon {
	width: 10px;
	height: 10px;
}
.mgl-author-popover-info {
	min-width: 0;
	flex: 1;
}
.mgl-author-popover-name {
	display: block;
	font-size: 15.5px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.25;
}
.mgl-author-popover-title {
	display: block;
	margin-top: 3px;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mgl-author-popover-count {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	color: var(--mgl-primary-light, #ffb293);
}
.mgl-author-popover-bio {
	display: block;
	margin: 0 0 12px;
	color: #d1d5db;
	font-size: 13px;
	line-height: 1.55;
}
.mgl-author-popover-expertise {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	font-size: 11.5px;
}
.mgl-author-popover-exp-label {
	color: #94a3b8;
	font-weight: 700;
	flex-shrink: 0;
}
.mgl-author-popover-exp-val {
	color: #f1f5f9;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mgl-author-popover-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mgl-author-popover-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ffffff;
	background: var(--mgl-primary);
	font-size: 12px;
	font-weight: 800;
	padding: 6px 12px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}
.mgl-author-popover-view-btn:hover {
	background: var(--mgl-primary-dark, #d84515);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}
.mgl-author-popover-view-btn .mgl-icon {
	width: 12px;
	height: 12px;
}
.mgl-author-popover-social,
.mgl-author-popover-website {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	padding: 5px 8px;
	border-radius: 6px;
	transition: color 0.15s ease, background 0.15s ease;
}
.mgl-author-popover-social:hover,
.mgl-author-popover-website:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	text-decoration: none;
}
.mgl-author-popover-social .mgl-icon,
.mgl-author-popover-website .mgl-icon {
	width: 14px;
	height: 14px;
}
.mgl-author-header {
	max-width: 920px; margin: 0 auto; padding: 54px 0 34px; gap: 28px;
}
.mgl-author-header-avatar img {
	width: 112px; height: 112px; object-fit: cover; border-radius: 50%;
	border: 4px solid #fff; box-shadow: 0 8px 24px rgba(16,24,40,.12);
	flex-shrink: 0; aspect-ratio: 1 / 1;
}
.mgl-author-header-content {
	min-width: 0;
}
.mgl-author-header-meta {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--mgl-muted); font-size: 13px; font-weight: 700;
}
.mgl-author-header-meta a {
	display: inline-flex; align-items: center; gap: 5px;
}
.mgl-author-header-meta .mgl-icon {
	width: 14px; height: 14px; transform: rotate(45deg);
}
.mgl-footer {
	background: #101828;
}
.mgl-footer-col h3 {
	color: #f8fafc;
}
.mgl-footer-social a {
	border-radius: 12px;
}
:focus-visible {
	outline: 3px solid rgba(240, 90, 40, .45); outline-offset: 3px;
}
@media (max-width: 768px) {
	.mgl-author-popover {
		left: 0; transform: translate(0, 8px);
	}
	.mgl-author-popover::after {
		left: 28px;
	}
	.mgl-author-identity:hover .mgl-author-popover, .mgl-author-identity:focus-within .mgl-author-popover {
		transform: translate(0, 0);
	}
	.mgl-author-header {
		align-items: flex-start; padding-top: 34px;
	}
	.mgl-author-header-avatar img {
		width: 84px; height: 84px;
	}
}

/* 32. MyGeneratorLab article UX, responsive TOC, navigation and subscriptions (split)
-------------------------------------------------- */
.mgl-category-strip {
	background: #fff; border-bottom: 1px solid #e7eaf0;
}
.mgl-category-strip-inner {
	display: flex; align-items: center; gap: 24px; min-height: 42px; overflow-x: auto; scrollbar-width: none;
}
.mgl-category-strip-inner::-webkit-scrollbar {
	display: none;
}
.mgl-category-strip a {
	color: #475467; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.mgl-category-strip a:hover {
	color: var(--mgl-primary);
}

/* Dynamic menu strip. */
.mgl-category-menu {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: max-content;
}

.mgl-category-menu a {
	display: block;
	color: #475467;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
	padding: 11px 0;
}

.mgl-category-menu a:hover,
.mgl-category-menu .current-menu-item > a {
	color: var(--mgl-primary);
}

.mgl-author-header-role {
	margin: -4px 0 10px; color: var(--mgl-primary); font-size: 14px; font-weight: 800;
}
.mgl-post-date-published, .mgl-post-date-updated {
	white-space: nowrap;
}

/* 36. Prevent horizontal scroll on mobile
-------------------------------------------------- */

html, body { overflow-x: hidden; max-width: 100%; }
.mgl-container { box-sizing: border-box; width: 100%; }



/* 38. Archive and other pages — comprehensive responsive polish (split)
-------------------------------------------------- */
@media (max-width: 768px) {
	.mgl-page-title {
		font-size: clamp(22px, 7vw, 36px);
	}
	.mgl-page-sub {
		font-size: 15px;
	}
	.mgl-page-head {
		padding: 28px 0 8px;
	}
}
@media (max-width: 1024px) {
	.mgl-layout {
		grid-template-columns: 1fr;
	}
	.mgl-layout > aside {
		order: 99;
	}
}
@media (max-width: 900px) {
	.mgl-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.mgl-post-grid,
  .mgl-post-grid-2,
  .mgl-post-grid-3,
  .mgl-post-grid-4 {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 600px) {
	.mgl-footer-grid {
		grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px;
	}
	.mgl-footer-bottom {
		flex-direction: column; gap: 8px; text-align: center;
	}
	.mgl-footer-brand img {
		width: 160px;
	}
	.mgl-author-header {
		flex-direction: column; gap: 16px;
	}
	.mgl-author-header img {
		width: 80px !important; height: 80px !important;
	}
}
@media (max-width: 480px) {
	.page-numbers {
		padding: 9px 13px; font-size: 14px;
	}
}
@media (max-width: 400px) {
	.mgl-product {
		padding: 16px;
	}
}
img, video, iframe, embed, object {
	max-width: 100%; height: auto;
}
@media (max-width: 480px) {
	.mgl-section-title {
		font-size: 20px;
	}
	.mgl-home-section {
		padding: 32px 0 4px;
	}
}
@media (max-width: 1024px) {
	.mgl-back-to-top {
		bottom: 80px;
	}
}
@media (max-width: 600px) {
	.mgl-back-to-top {
		right: 14px; bottom: 76px; width: 44px; height: 44px;
	}
}

/* 38. Final article UX polish — TOC alignment, author media and post cards (split)
-------------------------------------------------- */
.mgl-author-identity {
	z-index: 20;
}
.mgl-author-popover {
	z-index: 1000;
}
.mgl-card-title a,
.mgl-card-excerpt,
.mgl-card-author {
	min-width: 0;
}
.mgl-card-author {
	line-height: 1.35;
}
.mgl-card-author .mgl-author-identity {
	max-width: 100%;
	min-width: 0;
}
.mgl-card-author .mgl-author-trigger {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mgl-card:focus-within {
	border-color: #d1d5db;
	box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}
@media (max-width: 560px) {
	.mgl-card-body {
		padding: 18px 18px 20px;
	}
}

/* 39. Final cross-device UX fixes — TOC, archives, article media and overflow (split)
-------------------------------------------------- */
.mgl-card-excerpt,
.mgl-card-title {
	min-width: 0;
}
@media (max-width: 768px) {
	.mgl-author-header-content {
		width: 100%;
	}
	.mgl-author-header-meta {
		justify-content: center;
		gap: 8px 14px;
	}
	.mgl-post-grid {
		gap: 18px;
	}
	.mgl-card-body {
		padding: 18px 18px 20px;
	}
	.mgl-card-meta {
		align-items: flex-start;
		justify-content: flex-start;
		gap: 8px 10px;
	}
	.mgl-card-author {
		min-width: 0;
		max-width: 100%;
	}
	.mgl-card-author a {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.mgl-card-date {
		white-space: normal;
		max-width: 100%;
	}
	.pagination {
		margin-top: 30px;
		overflow-x: auto;
		padding: 2px 2px 8px;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.pagination::-webkit-scrollbar {
		display: none;
	}
	.page-numbers {
		margin: 0 2px;
		padding: 10px 13px;
	}
}
@media (max-width: 560px) {
	.mgl-container {
		padding-left: 14px;
		padding-right: 14px;
	}
	.mgl-post-grid,
	.mgl-post-grid-2,
	.mgl-post-grid-3,
	.mgl-post-grid-4 {
		gap: 16px;
	}
	.mgl-card-title {
		font-size: 17px;
		line-height: 1.35;
	}
	.mgl-card-excerpt {
		font-size: 13px;
	}
	.mgl-card-meta {
		font-size: 11.5px;
	}
	.mgl-card-author img {
		width: 22px;
		height: 22px;
	}
	.mgl-author-header-meta {
		font-size: 12px;
	}
}
@media (max-width: 400px) {
	.mgl-card-body {
		padding: 16px;
	}
	.mgl-card-title {
		font-size: 16px;
	}
	.mgl-card-excerpt {
		display: none;
	}
	.mgl-card-meta {
		padding-top: 11px;
	}
}
@media (max-width: 768px) {
	.mgl-product {
		padding: 20px 16px;
		margin: 28px 0;
	}
	.mgl-contact-card,
	.mgl-contact-aside-card {
		padding: 20px;
	}
}
@media (max-width: 480px) {
	.mgl-contact-page {
		padding-top: 28px;
	}
	.mgl-contact-grid {
		gap: 16px;
	}
	.mgl-contact-submit-row {
		align-items: stretch;
	}
	.mgl-contact-submit {
		width: 100%;
	}
}
