/* ==========================================================================
   GrabModApk — modern design layer for the 5Play theme
   Loaded last in <head>. Overrides the legacy theme styles with one
   consistent token system for light and dark mode.

   Contents
   01. Tokens (light / dark) + legacy variable mapping
   02. Base & typography
   03. Header, navigation, search, mobile drawer
   04. Page heads (home hero, category, search, 404)
   05. Sections, section titles, "view all" buttons
   06. App cards (latest / related / category grids)
   07. Popular apps strip
   08. Home categories
   09. News cards (home strip, news archive)
   10. App page: hero, specs, actions, telegram
   11. App page: content tabs, article typography, TOC
   12. Download block
   13. Comments + forms
   14. Static pages, alerts, pagination
   15. Footer
   16. Modals, misc plugins, ads
   17. Utilities: focus, motion, print
   ========================================================================== */

/* 01. TOKENS ============================================================== */
:root {
	--gma-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--gma-bg: #f4f6f9;
	--gma-surface: #ffffff;
	--gma-surface-2: #f1f4f8;
	--gma-surface-3: #e8edf3;
	--gma-border: #e3e8ef;
	--gma-border-strong: #d2d9e2;

	--gma-text: #0f1a2a;
	--gma-text-2: #3b4859;
	--gma-muted: #687586;

	--gma-brand: #0e9f5b;
	--gma-brand-hover: #0b8a4e;
	--gma-brand-ink: #ffffff;
	--gma-brand-soft: #e5f6ed;
	--gma-brand-text: #0a7d47;

	--gma-telegram: #1d8fd1;
	--gma-telegram-soft: #e7f3fb;
	--gma-new: #e5484d;
	--gma-star: #f5a524;

	--gma-tint-green-bg: #e5f6ed;   --gma-tint-green-fg: #0e9f5b;
	--gma-tint-yellow-bg: #fff3d6;  --gma-tint-yellow-fg: #b7791f;
	--gma-tint-blue-bg: #e6f0ff;    --gma-tint-blue-fg: #2563eb;
	--gma-tint-purple-bg: #f0e9ff;  --gma-tint-purple-fg: #7c3aed;
	--gma-tint-red-bg: #ffe9e7;     --gma-tint-red-fg: #dc3b2f;

	--gma-radius-sm: 8px;
	--gma-radius: 12px;
	--gma-radius-lg: 16px;
	--gma-radius-xl: 20px;
	--gma-icon-radius: 22%;

	--gma-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
	--gma-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px -4px rgba(16, 24, 40, .08);
	--gma-shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, .22);
	--gma-icon-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 4px 10px -2px rgba(16, 24, 40, .12);

	--gma-header-h: 64px;
	--gma-header-bg: rgba(255, 255, 255, .88);
	--gma-focus: 0 0 0 3px rgba(14, 159, 91, .35);
	--gma-container: 80rem;
	--gma-reading: 60rem;

	/* legacy theme variables, remapped so untouched templates follow the system */
	--font: var(--gma-font);
	--fonts: var(--gma-font);
	--tcolor: var(--gma-text);
	--bgcolor: var(--gma-bg);
	--lcolor: var(--gma-brand-text);
	--color_link: var(--gma-muted);
	--lhcolor: var(--gma-brand-text);
	--color_link_hover: var(--gma-brand-text);
	--color_link_menu: var(--gma-text-2);
	--color_link_menu_dark: var(--gma-text-2);
	--color_svg: var(--gma-brand);
	--colorsvg: var(--gma-brand);
	--main-heading: var(--gma-brand);
	--color_button: var(--gma-brand);
	--color_button_hover: var(--gma-brand-hover);
	--rgbacolorbackground: var(--gma-brand-soft);
	--header-bg: var(--gma-surface);
	--footer-bg: var(--gma-surface);
	--entry-bg: var(--gma-surface);
	--entry-info: var(--gma-muted);
	--entry-info-sep: var(--gma-border);
	--entry-label: var(--gma-surface);
	--block-bg: var(--gma-surface);
	--block-dark-bg: var(--gma-surface);
	--modal-bg: var(--gma-surface);
	--dark-section-bg: transparent;
	--dark-section-grad: none;
	--form-control-bg: var(--gma-surface);
	--form-control-brd: var(--gma-border-strong);
	--form-control-brd-f: var(--gma-brand);
	--placeholder: var(--gma-muted);
	--line: var(--gma-border);
	--spoiler: var(--gma-surface-2);
	--spoiler-h: var(--gma-brand-soft);
	--searchsug: var(--gma-surface);
	--searchsug-item: var(--gma-surface-2);
	--coms-meta: var(--gma-muted);
	--coms-meta-h: var(--gma-text-2);
	--cat-menu: var(--gma-surface-2);
	--cat-menu-h: var(--gma-brand-soft);
	--scrollbar: var(--gma-surface-2);
	--scrollbar-thumb: var(--gma-border-strong);
	--scrollbar-track: var(--gma-surface-2);
	--s_green: var(--gma-brand);
	--color_news: var(--gma-new);
	--color_mods: var(--gma-brand-text);
	--opacity: 1;
	--putih: var(--gma-surface);
	--homes_titles_colors: var(--gma-text);
	--homes_titles_colors_dark: var(--gma-text);

	color-scheme: light;
}

html.darktheme {
	--gma-bg: #0b1016;
	--gma-surface: #121922;
	--gma-surface-2: #18212c;
	--gma-surface-3: #202b38;
	--gma-border: #232f3d;
	--gma-border-strong: #2f3d4f;

	--gma-text: #e8edf3;
	--gma-text-2: #b7c2cf;
	--gma-muted: #8b98a8;

	--gma-brand: #22c07a;
	--gma-brand-hover: #3dd68f;
	--gma-brand-ink: #03140b;
	--gma-brand-soft: rgba(34, 192, 122, .13);
	--gma-brand-text: #4cdb98;

	--gma-telegram: #4fb3ea;
	--gma-telegram-soft: rgba(79, 179, 234, .12);
	--gma-new: #ff6b6f;

	--gma-tint-green-bg: rgba(34, 192, 122, .14);   --gma-tint-green-fg: #4cdb98;
	--gma-tint-yellow-bg: rgba(245, 165, 36, .14);  --gma-tint-yellow-fg: #f6c35b;
	--gma-tint-blue-bg: rgba(96, 150, 255, .14);    --gma-tint-blue-fg: #86aeff;
	--gma-tint-purple-bg: rgba(167, 128, 255, .15); --gma-tint-purple-fg: #b9a0ff;
	--gma-tint-red-bg: rgba(255, 107, 95, .14);     --gma-tint-red-fg: #ff8d84;

	--gma-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--gma-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 20px -6px rgba(0, 0, 0, .45);
	--gma-shadow-lg: 0 20px 44px -12px rgba(0, 0, 0, .6);
	--gma-icon-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px -2px rgba(0, 0, 0, .4);

	--gma-header-bg: rgba(18, 25, 34, .86);
	--gma-focus: 0 0 0 3px rgba(34, 192, 122, .4);

	--tcolor: var(--gma-text);
	--bgcolor: var(--gma-bg);
	--bgcolor_dark: var(--gma-bg);
	--header-bg: var(--gma-surface);
	--footer-bg: var(--gma-surface);
	--entry-bg: var(--gma-surface);
	--entry-info: var(--gma-muted);
	--entry-info-sep: var(--gma-border);
	--entry-label: var(--gma-surface);
	--entry-pattern: none;
	--block-bg: var(--gma-surface);
	--block-dark-bg: var(--gma-surface);
	--modal-bg: var(--gma-surface);
	--dark-section-bg: transparent;
	--dark-section-grad: none;
	--form-control-bg: var(--gma-surface-2);
	--form-control-brd: var(--gma-border-strong);
	--form-control-brd-f: var(--gma-brand);
	--placeholder: var(--gma-muted);
	--line: var(--gma-border);
	--spoiler: var(--gma-surface-2);
	--spoiler-h: var(--gma-brand-soft);
	--searchsug: var(--gma-surface);
	--searchsug-item: var(--gma-surface-2);
	--coms-meta: var(--gma-muted);
	--coms-meta-h: var(--gma-text-2);
	--cat-menu: var(--gma-surface-2);
	--cat-menu-h: var(--gma-brand-soft);
	--scrollbar: var(--gma-surface);
	--scrollbar-thumb: var(--gma-border-strong);
	--scrollbar-track: var(--gma-surface);
	--loading-bg: rgba(11, 16, 22, .9);
	--color_link_menu_dark: var(--gma-text-2);
	--homes_titles_colors_dark: var(--gma-text);

	color-scheme: dark;
}

/* 01b. ACCENT COLOURS (header colour picker, html[data-accent]) ============ */
:root { --gma-grad-a: #1BC47D; --gma-grad-b: #0A8749; }
html.darktheme { --gma-grad-a: #3DDC97; --gma-grad-b: #1BC47D; }

html[data-accent="blue"] {
	--gma-brand: #2563eb; --gma-brand-hover: #1d4ed8; --gma-brand-ink: #ffffff;
	--gma-brand-soft: #e8f0fe; --gma-brand-text: #1d4ed8;
	--gma-grad-a: #4f8bff; --gma-grad-b: #1d4ed8;
	--gma-focus: 0 0 0 3px rgba(37, 99, 235, .35);
}
html.darktheme[data-accent="blue"] {
	--gma-brand: #4f8cff; --gma-brand-hover: #74a5ff; --gma-brand-ink: #04122e;
	--gma-brand-soft: rgba(79, 140, 255, .14); --gma-brand-text: #8db8ff;
	--gma-grad-a: #8db8ff; --gma-grad-b: #4f8cff;
	--gma-focus: 0 0 0 3px rgba(79, 140, 255, .4);
}
html[data-accent="orange"] {
	--gma-brand: #ea580c; --gma-brand-hover: #c2410c; --gma-brand-ink: #ffffff;
	--gma-brand-soft: #fff0e6; --gma-brand-text: #c2410c;
	--gma-grad-a: #fb923c; --gma-grad-b: #dc4a06;
	--gma-focus: 0 0 0 3px rgba(234, 88, 12, .35);
}
html.darktheme[data-accent="orange"] {
	--gma-brand: #fb8a3c; --gma-brand-hover: #ffa366; --gma-brand-ink: #1f0d02;
	--gma-brand-soft: rgba(251, 138, 60, .14); --gma-brand-text: #ffad75;
	--gma-grad-a: #ffb27a; --gma-grad-b: #fb8a3c;
	--gma-focus: 0 0 0 3px rgba(251, 138, 60, .4);
}
html[data-accent="purple"] {
	--gma-brand: #7c3aed; --gma-brand-hover: #6d28d9; --gma-brand-ink: #ffffff;
	--gma-brand-soft: #f1eafe; --gma-brand-text: #6d28d9;
	--gma-grad-a: #a37bff; --gma-grad-b: #6d28d9;
	--gma-focus: 0 0 0 3px rgba(124, 58, 237, .35);
}
html.darktheme[data-accent="purple"] {
	--gma-brand: #a37bff; --gma-brand-hover: #b996ff; --gma-brand-ink: #14072e;
	--gma-brand-soft: rgba(163, 123, 255, .15); --gma-brand-text: #c4a8ff;
	--gma-grad-a: #c4a8ff; --gma-grad-b: #a37bff;
	--gma-focus: 0 0 0 3px rgba(163, 123, 255, .4);
}
html[data-accent="rose"] {
	--gma-brand: #e11d48; --gma-brand-hover: #be123c; --gma-brand-ink: #ffffff;
	--gma-brand-soft: #ffe8ee; --gma-brand-text: #be123c;
	--gma-grad-a: #fb7185; --gma-grad-b: #d4123e;
	--gma-focus: 0 0 0 3px rgba(225, 29, 72, .32);
}
html.darktheme[data-accent="rose"] {
	--gma-brand: #ff5c80; --gma-brand-hover: #ff7d99; --gma-brand-ink: #2a0610;
	--gma-brand-soft: rgba(255, 92, 128, .14); --gma-brand-text: #ff94ab;
	--gma-grad-a: #ff94ab; --gma-grad-b: #ff5c80;
	--gma-focus: 0 0 0 3px rgba(255, 92, 128, .4);
}
/* amber: dark text on the yellow buttons, darker gold for text on white */
html[data-accent="amber"] {
	--gma-brand: #e0aa0c; --gma-brand-hover: #c99608; --gma-brand-ink: #1f1600;
	--gma-brand-soft: #fff6d6; --gma-brand-text: #8a6500;
	--gma-grad-a: #f7c53a; --gma-grad-b: #c48a00;
	--gma-focus: 0 0 0 3px rgba(224, 170, 12, .4);
}
html.darktheme[data-accent="amber"] {
	--gma-brand: #f5c542; --gma-brand-hover: #ffd666; --gma-brand-ink: #1f1600;
	--gma-brand-soft: rgba(245, 197, 66, .14); --gma-brand-text: #ffd666;
	--gma-grad-a: #ffe08a; --gma-grad-b: #f5c542;
	--gma-focus: 0 0 0 3px rgba(245, 197, 66, .4);
}
html[data-accent="amber"] body .gma-logo-text b { color: var(--gma-brand-text); }
html.darktheme[data-accent="amber"] body .gma-logo-text b { color: var(--gma-brand); }

/* green-tinted icons (section titles etc.) follow the accent too */
html[data-accent] { --gma-tint-green-bg: var(--gma-brand-soft); --gma-tint-green-fg: var(--gma-brand); }

/* logo mark follows the accent */
html body .gma-logo-mark stop:first-child { stop-color: var(--gma-grad-a); }
html body .gma-logo-mark stop:last-child { stop-color: var(--gma-grad-b); }
html body .gma-logo-mark path[stroke="#0E9F5B"] { stroke: var(--gma-grad-b); }
html.darktheme body .gma-logo-mark stop:first-child { stop-color: color-mix(in srgb, var(--gma-grad-b) 85%, #fff); }
html.darktheme body .gma-logo-mark stop:last-child { stop-color: color-mix(in srgb, var(--gma-grad-b) 70%, #000); }
html.darktheme body .gma-logo-mark path[stroke="#0E9F5B"] { stroke: color-mix(in srgb, var(--gma-grad-b) 70%, #000); }

/* 02. BASE & TYPOGRAPHY ==================================================== */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--gma-header-h) + 16px);
	background-color: var(--gma-bg);
}

/* light and dark share every size; the dark selector below only repeats the colours,
   because it is more specific and would otherwise beat the @media font-size rules */
html.darktheme body {
	background-color: var(--gma-bg) !important;
	color: var(--gma-text) !important;
}
html body {
	font-family: var(--gma-font) !important;
	background-color: var(--gma-bg) !important;
	color: var(--gma-text) !important;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
	html body { font-size: 16px; }
}

html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
	font-family: var(--gma-font);
	color: inherit;
	letter-spacing: -.01em;
}

html body a { color: var(--gma-brand-text); }
html body a:hover { color: var(--gma-brand-hover); }

html body ::selection { background: var(--gma-brand-soft); color: var(--gma-text); }

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

/* decorative blobs / clouds / illustrations of the old theme */
html body .background,
html body .dark-head .background,
html body .dark-foot .background,
html body .view-app-head .background,
html body .bg-img-blur,
html body .bg-clouds,
html body .bg-circle-green,
html body .bg-circle-purple,
html body .bg-circle-yellow,
html body .recom-post-bg,
html body .page-head-main > img {
	display: none !important;
}

html body .wrp { max-width: var(--gma-container); }
@media (min-width: 640px) {
	html body .wrp,
	html body .wrp-min { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
	html body .wrp,
	html body .wrp-min { padding-left: 2rem; padding-right: 2rem; }
}
html body .wrp-min { max-width: var(--gma-reading); }

html body hr { border: 0; border-top: 1px solid var(--gma-border); margin: 1.5rem 0; }

html body .c-muted,
html.darktheme body .c-muted,
html body .q-search-label { color: var(--gma-muted) !important; }
html body .c-green { color: var(--gma-brand) !important; }

/* scrollbars */
html body ::-webkit-scrollbar { width: 10px; height: 10px; }
html body ::-webkit-scrollbar-track { background: transparent; }
html body ::-webkit-scrollbar-thumb { background: var(--gma-border-strong); border-radius: 10px; border: 2px solid var(--gma-bg); }

/* 03. HEADER ============================================================== */
html body .header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--gma-header-h);
	pointer-events: auto;
	background: transparent;
	border-bottom: 1px solid var(--gma-border);
}
/* the blur sits on a pseudo element: a backdrop-filter on .header itself would
   trap the fixed mobile drawer inside the 64px header */
html body .header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--gma-header-bg);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
}

html body .header .wrp-min {
	max-width: var(--gma-container);
	height: 100%;
	padding-left: 1rem;
	padding-right: 1rem;
}
@media (min-width: 640px) {
	html body .header .wrp-min { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
	html body .header .wrp-min { padding-left: 2rem; padding-right: 2rem; }
}

html body .header-panel {
	height: var(--gma-header-h);
	padding: 0;
	gap: .75rem;
	background: transparent;
	border-radius: 0 !important;
	box-shadow: none;
}

html body .logotype {
	display: inline-flex;
	align-items: center;
	padding: 0;
	flex: 0 0 auto;
}
html body .logotype img {
	display: block;
	height: 34px;
	width: auto;
	max-width: 132px;
	object-fit: contain;
}

/* brand logo: inline SVG mark + text wordmark (works in light and dark mode) */
html body .gma-logo {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	line-height: 1;
	white-space: nowrap;
}
html body .gma-logo-mark {
	display: block;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 8px;
}
html body .gma-logo-text {
	font-family: var(--gma-font);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 32px;
	letter-spacing: -.03em;
	color: var(--gma-text);
}
html body .gma-logo-text b { font-weight: 800; color: var(--gma-brand); }
html body .logotype:hover .gma-logo-text { color: var(--gma-text); }
@media (max-width: 359px) {
	html body .gma-logo-mark { width: 32px; height: 32px; }
	html body .gma-logo-text { font-size: 1.125rem; }
}
html body .footer-panel .logo-icon,
html body .footer-panel .logo-icon .gma-logo-mark { width: 32px; height: 32px; max-width: 32px; overflow: visible; }
html body .page-cdn-head .gma-logo-mark { width: 40px; height: 40px; }
html body .page-cdn-head .gma-logo-text { font-size: 1.5rem; }

/* header right-side buttons */
html body .head-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .375rem;
	min-width: 0;
	margin-left: auto;
}
html body .head-right > * { float: none; margin: 0; }
@media (max-width: 400px) {
	html body .head-right { gap: .125rem; }
	html body .head-right .gma-icon-btn { width: 36px !important; min-width: 36px; height: 36px !important; }
	html body .gma-logo { gap: .3rem; }
	html body .gma-logo-mark { width: 28px; height: 28px; }
	html body .gma-logo-text { font-size: 1.1875rem; line-height: 28px; }
}

html body .gma-icon-btn,
html body .q-search-call,
html body .log-in,
html body .head-right .dropdown-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--gma-radius);
	background: transparent !important;
	color: var(--gma-text-2) !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	box-shadow: none;
}
html body .gma-icon-btn:hover,
html body .q-search-call:hover,
html body .log-in:hover,
html body .head-right .dropdown-btn:hover {
	background: var(--gma-surface-2) !important;
	color: var(--gma-text) !important;
}
html body .gma-icon-btn svg,
html body .q-search-call svg,
html body .log-in svg { width: 22px; height: 22px; display: block; }

/* theme toggle icons */
html body .gma-theme-toggle .i__sun { display: none !important; }
html body .gma-theme-toggle .i__moon { display: block !important; }
html.darktheme body .gma-theme-toggle .i__sun { display: block !important; }
html.darktheme body .gma-theme-toggle .i__moon { display: none !important; }

/* old floating dark-mode button (kept hidden in case a cached header prints it) */
html body .toolbar { display: none !important; }

/* desktop navigation */
@media (min-width: 992px) {
	html body .head-tools {
		flex: 1 1 auto;
		display: flex !important;
		align-items: center;
		min-width: 0;
	}
	html body .head-tools-panel {
		max-width: none;
		margin: 0 0 0 1.5rem;
		width: 100%;
		display: flex;
		align-items: center;
		position: relative;
	}
	html body .hmenu {
		display: flex;
		align-items: center;
		gap: .25rem;
		padding: 0;
	}
	html body .hmenu > a {
		width: auto;
		max-width: none;
		flex: 0 0 auto;
		padding: 0;
		font-size: .9375rem;
		font-weight: 600;
		line-height: 1;
		color: var(--gma-text-2) !important;
	}
	html body .hmenu > a > span {
		display: flex;
		align-items: center;
		gap: .5rem;
		padding: .625rem .875rem;
		border-radius: var(--gma-radius);
		transition: background-color .15s ease, color .15s ease;
	}
	html body .hmenu > a:hover > span { background: var(--gma-surface-2); color: var(--gma-text); }
	html body .hmenu > a.active > span,
	html body .hmenu > a[aria-current="page"] > span { background: var(--gma-brand-soft); color: var(--gma-brand-text); }
	html body .hmenu > a .c-icon {
		min-width: 0;
		max-width: none;
		width: 20px;
		height: 20px;
		margin: 0;
		padding: 0;
		background: none !important;
		box-shadow: none !important;
		transform: none !important;
	}
	html body .hmenu > a .c-icon,
	html body .hmenu > a .c-icon[class*="s-"] { color: var(--gma-muted); }
	html body .hmenu > a .c-icon > svg { width: 18px; height: 18px; color: currentColor; }
	html body .hmenu > a:hover .c-icon[class*="s-"] { color: var(--gma-text-2); }
	html body .hmenu > a.active .c-icon[class*="s-"] { color: var(--gma-brand); }
	html body .hmenu > a.active > span { font-weight: 700; }

	/* desktop inline search (opens over the menu) */
	html body .q-search {
		position: absolute;
		inset: 0;
		display: none;
		align-items: center;
		background: transparent;
		z-index: 2;
	}
	html body .q-search.open { display: flex !important; }
	html body .header.qs .hmenu { visibility: hidden; }
	html body .q-search-box { width: 100%; max-width: 36rem; position: relative; }
	html body .q-search-label { display: none; }

	html body .gma-m-search,
	html body .menu-butter,
	html body .menu-close { display: none !important; }
	html body .q-search-call .qs-2 { display: none; }
	html body .header.qs .q-search-call .qs-1 { display: none; }
	html body .header.qs .q-search-call .qs-2 { display: block; }
}

/* shared search field (header + drawer) */
html body .q-search-box {
	position: relative;
	display: flex;
	align-items: center;
}
html body .q-search-text {
	width: 100%;
	height: 44px;
	padding: 0 3rem 0 1rem;
	font: inherit;
	font-size: .9375rem;
	color: var(--gma-text);
	background: var(--gma-surface-2);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	outline: none;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
html body .q-search-text::placeholder { color: var(--gma-muted); }
html body .q-search-text { border-radius: var(--gma-radius) !important; }
html body .q-search-text:focus {
	background: var(--gma-surface);
	border-color: var(--gma-brand);
	box-shadow: var(--gma-focus);
}
html body .q-search-btn {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 9px;
	background: var(--gma-brand);
	color: var(--gma-brand-ink);
	cursor: pointer;
}
html body .q-search-btn:hover { background: var(--gma-brand-hover); }
html body .q-search-btn,
html body .q-search-btn:hover { color: var(--gma-brand-ink) !important; }
html body .q-search-btn svg { width: 20px; height: 20px; color: currentColor !important; }

/* mobile header + drawer */
@media (max-width: 991px) {
	html body .header-panel { justify-content: space-between; }
	html body .header-panel .logotype { margin: 0 auto 0 .25rem; }
	html body .menu-butter {
		order: -1;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border-radius: var(--gma-radius);
		color: var(--gma-text) !important;
	}
	html body .menu-butter:hover { background: var(--gma-surface-2); }
	html body .butterbrod { width: 20px; height: 14px; }
	html body .butterbrod > i { border-top-width: 2px; border-radius: 2px; }
	html body .q-search-call { display: none !important; }
	html body .gma-m-search { display: inline-flex !important; }

	html body .head-tools {
		background-color: rgba(8, 12, 18, .5);
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
	}
	html body .head-tools-panel {
		width: min(86vw, 22rem);
		min-height: 100%;
		padding: 1.25rem 1rem 2rem;
		background: var(--gma-surface);
		border-radius: 0;
		box-shadow: var(--gma-shadow-lg);
		transform: translateX(-100%);
		transition: transform .28s cubic-bezier(.2, .8, .2, 1);
	}
	html body .head-tools.open .head-tools-panel { transform: translateX(0); }
	html body .head-tools-panel::before { height: 2.75rem; }
	html body .menu-close {
		top: .75rem;
		right: .75rem;
		left: auto;
		margin: 0;
		width: 40px;
		height: 40px;
		border-radius: var(--gma-radius);
		background: var(--gma-surface-2) !important;
		color: var(--gma-text) !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		border: 0;
	}
	html body .q-search { margin-bottom: 1.25rem; padding-top: 0; }
	html body .q-search .q-search-box { flex-wrap: wrap; }
	html body .q-search .q-search-btn { top: auto; bottom: 4px; transform: none; }
	html body .q-search-label {
		position: static;
		display: block;
		flex: 0 0 100%;
		text-align: left;
		margin-bottom: .5rem;
		font-size: .75rem;
		font-weight: 700;
		letter-spacing: .06em;
		opacity: 1;
	}
	html body .hmenu { display: flex; flex-direction: column; gap: .25rem; margin: 0; }
	html body .hmenu > a {
		max-width: none;
		flex: 0 0 auto;
		width: 100%;
		padding: 0;
		color: var(--gma-text) !important;
		font-weight: 600;
		font-size: 1rem;
	}
	html body .hmenu > a > span,
	html body .hmenu > a span[itemprop="name"] {
		display: flex !important;
		align-items: center;
		gap: .875rem;
		padding: .625rem .75rem;
		text-align: left;
		border-radius: var(--gma-radius);
		background: transparent !important;
	}
	html body .hmenu > a:hover > span,
	html body .hmenu > a.active > span { background: var(--gma-surface-2) !important; }
	html body .hmenu > a .c-icon {
		display: inline-flex;
		margin: 0;
		min-width: 36px;
		max-width: 36px;
		height: 36px;
		padding: 0;
		align-items: center;
		justify-content: center;
	}
	html body .hmenu > a .c-icon > svg { width: 20px; height: 20px; }
	html body .hmenu > a .c-icon[class*="s-"] { background-color: var(--gma-surface-2) !important; color: var(--gma-text-2); }
	html body .hmenu > a.active .c-icon[class*="s-"] { background-color: var(--gma-brand-soft) !important; color: var(--gma-brand); }
	html body .hmenu > a.active > span { color: var(--gma-brand-text); }
}

/* colored icon tiles (section titles, menu) */
html body .c-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	max-width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 10px;
	box-shadow: none !important;
	background-image: none !important;
	vertical-align: middle;
}
html body .c-icon > svg { width: 18px; height: 18px; color: currentColor; }
html body .c-icon.s-green  { background-color: var(--gma-tint-green-bg) !important;  color: var(--gma-tint-green-fg); }
html body .c-icon.s-yellow { background-color: var(--gma-tint-yellow-bg) !important; color: var(--gma-tint-yellow-fg); }
html body .c-icon.s-blue   { background-color: var(--gma-tint-blue-bg) !important;   color: var(--gma-tint-blue-fg); }
html body .c-icon.s-purple { background-color: var(--gma-tint-purple-bg) !important; color: var(--gma-tint-purple-fg); }
html body .c-icon.s-red    { background-color: var(--gma-tint-red-bg) !important;    color: var(--gma-tint-red-fg); }

/* 04. PAGE HEADS ========================================================== */
html body .page-head-main,
html body .dark-head,
html body .page-head-cat {
	margin-top: 0 !important;
}

/* home hero */
html body .page-head-main {
	position: relative;
	overflow: visible;
	pointer-events: auto;
	text-align: center;
	padding: 2.5rem 1rem 1rem;
	margin-bottom: 1.5rem;
}
html.darktheme body div.page-head-main h1.title { color: var(--gma-text) !important; }
html body div.page-head-main h1.title {
	max-width: 40rem;
	margin: 0 auto;
	font-size: 1.75rem;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.025em;
	color: var(--gma-text) !important;
	text-transform: none !important;
	text-wrap: balance;
}
html body .gma-hero-sub {
	max-width: 34rem;
	margin: .75rem auto 0;
	font-size: 1rem;
	color: var(--gma-muted);
}
html body .gma-hero-search {
	max-width: 36rem;
	margin: 1.5rem auto 0;
}
html body .gma-hero-search .q-search-text {
	height: 52px;
	padding-left: 1.125rem;
	font-size: 1rem;
	background: var(--gma-surface);
	border-color: var(--gma-border-strong);
	box-shadow: var(--gma-shadow);
}
html body .gma-hero-search .q-search-btn { width: 44px; height: 44px; right: 4px; border-radius: 10px; }
@media (min-width: 768px) {
	html body .page-head-main { padding: 3.5rem 1rem 1.5rem; }
	html body div.page-head-main h1.title { font-size: 2.5rem; }
	html body .gma-hero-sub { font-size: 1.0625rem; }
}
html body .page-head-main + .section { margin-top: 0; }

/* hero: soft brand glow + dot grid behind the heading */
html body .page-head-main {
	isolation: isolate;
	padding-top: 2.75rem;
}
html body .page-head-main::before {
	content: "";
	position: absolute;
	inset: -1rem 0 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(42rem 18rem at 50% 0%, color-mix(in srgb, var(--gma-brand) 14%, transparent), transparent 70%),
		radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--gma-text) 9%, transparent) 1px, transparent 0) 0 0 / 22px 22px;
	-webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
	mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
}
html body .gma-hero-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--gma-grad-a) 0%, var(--gma-grad-b) 100%);
	color: #fff;
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--gma-brand) 65%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
}
html[data-accent="amber"] body .gma-hero-badge { color: #1f1600; }
html body .gma-hero-accent {
	color: var(--gma-brand-text);
	background: linear-gradient(90deg, var(--gma-grad-a), var(--gma-grad-b));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}


/* trending chips under the search box */
html body .gma-hero-trending {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	max-width: 40rem;
	margin: 1.125rem auto 0;
}
html body .gma-hero-trending-label {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	margin-right: .125rem;
	font-size: .8125rem;
	font-weight: 700;
	color: var(--gma-muted);
}
html body .gma-hero-trending-label svg { color: var(--gma-brand); }
html body .gma-hero-trending .gma-chip { height: 32px; padding: 0 .875rem; font-size: .8125rem; }
@media (max-width: 559px) {
	html body .gma-hero-trending { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: -1rem; margin-right: -1rem; padding: 0 1rem; }
	html body .gma-hero-trending::-webkit-scrollbar { display: none; }
	html body .gma-hero-trending > * { flex: 0 0 auto; }
}

/* real numbers */
html body .gma-hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .25rem 1.25rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--gma-muted);
}
html body .gma-hero-stats li { display: inline-flex; align-items: center; gap: .3rem; list-style: none; }
html body .gma-hero-stats li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	margin-right: 1rem;
	border-radius: 50%;
	background: var(--gma-border-strong);
}
html body .gma-hero-stats b { font-weight: 800; color: var(--gma-text); }
@media (max-width: 559px) {
	html body .gma-hero-stats { gap: .25rem .875rem; }
	html body .gma-hero-stats li + li::before { display: none; }
}

/* category / search / 404 heads */
html.darktheme body .page-head-cat { background: none !important; color: var(--gma-text); }
html body .page-head-cat {
	background: none !important;
	color: var(--gma-text);
	padding: 1.5rem 0 1.25rem;
}
html body .page-head-cat .wrp-min { padding-top: 0; max-width: var(--gma-container); }
html body .head-cat-title { display: flex; align-items: center; gap: 1rem; }
html body .head-cat-title .title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--gma-text);
}
@media (min-width: 768px) {
	html body .head-cat-title .title { font-size: 2rem; }
}
html body .head-cat-tools { margin-left: auto; }
html body .cat-menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--gma-radius);
	border: 1px solid var(--gma-border);
	background: var(--gma-surface);
	color: var(--gma-text-2);
}
html body .cat-menu-list ul { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 0 0; margin: 0; }
html body .cat-menu-list li { list-style: none; margin: 0; padding: 0; width: auto; max-width: none; flex: 0 0 auto; }
html body .cat-menu-list a {
	display: inline-flex;
	padding: .5rem .875rem;
	border-radius: 999px;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	color: var(--gma-text-2);
	font-size: .875rem;
	font-weight: 600;
}
html body .cat-menu-list a:hover { border-color: var(--gma-brand); color: var(--gma-brand-text); }

html body .page-cat-bg { background: none; }
html body .page-cat-cont { margin-top: 0 !important; margin-bottom: 2.5rem; }

/* 04b. ARCHIVE HEAD (category / tag / developer: template/archive-head.php) == */
html body .gma-arch-head {
	width: 100%;
	max-width: var(--gma-container);
	margin: 0 auto;
	padding: 1rem 1rem 1.25rem;
}
@media (min-width: 640px) {
	html body .gma-arch-head { padding: 1.25rem 1.5rem 1.5rem; }
}
@media (min-width: 1024px) {
	html body .gma-arch-head { padding: 1.5rem 2rem 1.75rem; }
}
html body .gma-arch-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .875rem; }
html body .gma-arch-title h1 {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.025em;
	color: var(--gma-text);
}
@media (min-width: 768px) {
	html body .gma-arch-title h1 { font-size: 2.25rem; }
}
html body .gma-arch-count {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 .625rem;
	border-radius: 999px;
	background: var(--gma-brand-soft);
	color: var(--gma-brand-text);
	font-size: .8125rem;
	font-weight: 700;
	white-space: nowrap;
}
html body .gma-arch-desc { max-width: 48rem; margin-top: .5rem; color: var(--gma-muted); font-size: .9375rem; line-height: 1.6; }
html body .gma-arch-desc p { margin: 0 0 .5em; }

html body .gma-arch-chips {
	display: flex;
	gap: .5rem;
	margin: 1.125rem -1rem 0;
	padding: .125rem 1rem .375rem;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
html body .gma-arch-chips::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
	html body .gma-arch-chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
html body .gma-chip {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	height: 38px;
	padding: 0 1rem;
	border: 1px solid var(--gma-border);
	border-radius: 999px;
	background: var(--gma-surface);
	color: var(--gma-text-2) !important;
	font-size: .875rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none !important;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
html body .gma-chip:hover { border-color: var(--gma-brand); color: var(--gma-brand-text) !important; }
html body .gma-chip.is-active {
	border-color: var(--gma-brand);
	background: var(--gma-brand);
	color: var(--gma-brand-ink) !important;
}

html body .gma-arch-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: 1.125rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gma-border);
}
html body .gma-arch-page { font-size: .875rem; font-weight: 600; color: var(--gma-muted); }
html body .gma-sort {
	display: inline-flex;
	gap: .25rem;
	margin-left: auto;
	padding: .25rem;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	background: var(--gma-surface-2);
}
html body .gma-sort-item {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 .875rem;
	border-radius: 9px;
	color: var(--gma-muted) !important;
	font-size: .8125rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: color .15s ease, background-color .15s ease;
}
html body .gma-sort-item:hover { color: var(--gma-text) !important; }
html body .gma-sort-item.is-active {
	background: var(--gma-surface);
	color: var(--gma-text) !important;
	box-shadow: var(--gma-shadow-sm);
}

html body .gma-arch-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	max-width: 32rem;
	margin: 1rem auto 2rem;
	padding: 2.5rem 1.5rem;
	text-align: center;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-xl);
}
html body .gma-arch-empty strong { font-size: 1.125rem; font-weight: 800; color: var(--gma-text); }
html body .gma-arch-empty span { font-size: .9375rem; color: var(--gma-muted); }
html body .gma-arch-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; margin-top: .75rem; }
html body .gma-arch-empty-actions .btn { display: inline-flex; align-items: center; height: 42px; padding: 0 1.125rem; }

/* 04c. SEARCH PAGE (search.php) ============================================ */
html body .gma-search-head { padding-top: 1.5rem; }
html body .gma-search-big {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 44rem;
	margin: 0 0 1.25rem;
}
html body .gma-search-big-icon { position: absolute; left: 1rem; color: var(--gma-muted); pointer-events: none; }
html body .gma-search-big input {
	width: 100%;
	height: 56px;
	padding: 0 7.5rem 0 3rem;
	border: 1px solid var(--gma-border-strong) !important;
	border-radius: 14px !important;
	background: var(--gma-surface) !important;
	box-shadow: var(--gma-shadow-sm);
	color: var(--gma-text);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
}
html body .gma-search-big input:focus { border-color: var(--gma-brand) !important; box-shadow: var(--gma-focus); outline: none; }
html body .gma-search-big input::-webkit-search-cancel-button { cursor: pointer; }
html body .gma-search-big-btn {
	position: absolute;
	right: 6px;
	height: 44px;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 10px;
	background: var(--gma-brand);
	color: var(--gma-brand-ink);
	font: inherit;
	font-size: .9375rem;
	font-weight: 800;
	cursor: pointer;
	transition: background-color .15s ease;
}
html body .gma-search-big-btn:hover { background: var(--gma-brand-hover); }
@media (max-width: 479px) {
	html body .gma-search-big input { padding-right: 5.75rem; font-size: 1rem; }
	html body .gma-search-big-btn { padding: 0 .875rem; }
}
html body .gma-search-head .gma-arch-title h1 { font-size: 1.5rem; overflow-wrap: anywhere; }
@media (min-width: 768px) {
	html body .gma-search-head .gma-arch-title h1 { font-size: 1.875rem; }
}
html body .gma-chip-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	margin: 0 -.375rem 0 .5rem;
	padding: 0 .375rem;
	border-radius: 999px;
	background: var(--gma-surface-2);
	color: var(--gma-muted);
	font-size: .6875rem;
	font-weight: 800;
}
html body .gma-chip.is-active .gma-chip-count { background: rgba(255, 255, 255, .22); color: inherit; }
html.darktheme body .gma-chip.is-active .gma-chip-count { background: rgba(0, 0, 0, .18); }

html body .gma-search-empty {
	max-width: 40rem;
	margin: .5rem 0 2rem;
	padding: 1.75rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-xl);
}
html body .gma-search-empty strong { display: block; margin-bottom: .5rem; font-size: 1.125rem; font-weight: 800; color: var(--gma-text); overflow-wrap: anywhere; }
html body .gma-search-empty > span { display: block; color: var(--gma-muted); }
html body .gma-search-empty ul { margin: .25rem 0 0; padding: 0 0 0 1.25rem; list-style: disc; color: var(--gma-text-2); font-size: .9375rem; line-height: 1.7; }
html body .gma-search-empty li { list-style: disc; margin: 0 0 .25rem; padding: 0; }
html body .gma-search-empty li::marker { color: var(--gma-brand); }
html body .gma-search-empty-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--gma-border); }
html body .gma-search-popular { margin-top: .5rem; }
html body .page-search-bg .entry-listpage { display: flex; flex-wrap: wrap; }

/* breadcrumbs */
html body .wrp-min.speedbar {
	max-width: var(--gma-container);
	padding: 1rem 1rem 0 !important;
}
@media (min-width: 640px) {
	html body .wrp-min.speedbar { padding: 1.25rem 1.5rem 0 !important; }
}
@media (min-width: 1024px) {
	html body .wrp-min.speedbar { padding: 1.25rem 2rem 0 !important; }
}
html body .view-app ~ * .speedbar,
html body .speedbar + #dle-content .speedbar { display: none; }
html body .speedbar-panel {
	display: block;
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	border-radius: 0;
	color: var(--gma-muted) !important;
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.5;
	text-transform: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
html body .speedbar-panel a,
html body .breadcrumbs__link { color: var(--gma-text-2) !important; }
html body .speedbar-panel a:hover { color: var(--gma-brand-text) !important; }
html body .breadcrumbs__separator { padding: 0 .375rem; opacity: .6; }
html body .breadcrumbs__current { color: var(--gma-muted); }

/* 05. SECTIONS ============================================================ */
html body .section { margin-bottom: 2.5rem; }
@media (min-width: 1040px) {
	html body .section { margin-bottom: 3rem; }
}
html body .section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
html body .section-title,
html body .b-head .section-title {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 1rem;
	font-size: 1.125rem;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -.015em;
	color: var(--gma-text);
}
html body .section-head .section-title { margin: 0 auto 0 0; }
html body .section-title > .c-icon { margin: 0; }
@media (min-width: 640px) {
	html body .section-title { font-size: 1.25rem; }
}
@media (min-width: 992px) {
	html body .section-title { font-size: 1.375rem; }
}

/* "View all" links */
html body .btn-all,
html body a.btn.btn-all {
	display: inline-flex !important;
	align-items: center;
	gap: .25rem;
	width: auto !important;
	height: 36px !important;
	padding: 0 .875rem !important;
	border-radius: 999px;
	background: var(--gma-surface) !important;
	background-image: none !important;
	border: 1px solid var(--gma-border);
	box-shadow: none !important;
	color: var(--gma-text-2) !important;
	font-size: .8125rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	transition: border-color .15s ease, color .15s ease;
}
html body .btn-all:hover,
html body a.btn.btn-all:hover { border-color: var(--gma-brand) !important; color: var(--gma-brand-text) !important; background: var(--gma-surface) !important; }
html body .btn-all > span { display: inline !important; }
html body .btn-all > svg { display: block !important; width: 16px; height: 16px; }
@media (max-width: 479px) {
	html body .btn-all > span { display: none !important; }
	html body .btn-all { padding: 0 !important; width: 36px !important; justify-content: center; }
}

/* generic buttons */
html body .btn {
	font-family: inherit;
	font-weight: 700;
	border-radius: var(--gma-radius);
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none !important;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
html body .btn.s-green,
html body .btn.s-button,
html body .btn.s-blue,
html body .btn.s-yellow:not(.btn-all) {
	background: var(--gma-brand) !important;
	background-image: none !important;
	color: var(--gma-brand-ink) !important;
	border: 1px solid transparent;
}
html body .btn.s-green:hover,
html body .btn.s-button:hover,
html body .btn.s-blue:hover { background: var(--gma-brand-hover) !important; }
html body .btn.s-yellow:not(.btn-all) {
	background: var(--gma-surface-2) !important;
	color: var(--gma-text) !important;
	border: 1px solid var(--gma-border);
}
html body .btn-border {
	background: transparent !important;
	border: 1px solid var(--gma-border-strong) !important;
	color: var(--gma-text) !important;
}
html body .btn-border:hover { border-color: var(--gma-text-2) !important; background: var(--gma-surface-2) !important; }

/* 06. APP CARDS ============================================================ */
html body .entry-list,
html body .entry-listpage { margin: -.375rem; }
html body .entry-list .entry,
html body .entry-listpage .entry { padding: .375rem; }
@media (min-width: 640px) {
	html body .entry-list,
	html body .entry-listpage { margin: -.5rem; }
	html body .entry-list .entry,
	html body .entry-listpage .entry { padding: .5rem; }
}

html body .entry-app > .item {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-align: center;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-sm);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
html body .entry-app > .item::before,
html body .entry-app > .item::after { display: none !important; content: none !important; }
@media (hover: hover) {
	html body .entry-app > .item:hover {
		border-color: var(--gma-border-strong);
		box-shadow: var(--gma-shadow);
		transform: translateY(-2px);
	}
	html body .entry-app > .item:hover .img > img { transform: none; }
}

html body .entry-app .img {
	width: 72px;
	height: 72px;
	margin: 1.25rem auto .875rem;
	border-radius: var(--gma-icon-radius);
}
@media (min-width: 640px) {
	html body .entry-app .img { width: 84px; height: 84px; margin-top: 1.5rem; }
}
html body .entry-app .img > img,
html body .recom-post .img img,
html body .view-app-img .img img,
html body .b-nobugs-icon .img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--gma-icon-radius);
	box-shadow: var(--gma-icon-shadow) !important;
	background: var(--gma-surface-2);
}

html body .entry-app .title {
	margin: 0 0 .25rem;
	padding: 0 .875rem;
	font-size: .875rem;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: -.005em;
	color: var(--gma-text);
}
html body .entry-app .title > a,
html body .entry-app .title > a > span { color: inherit !important; }
html body .entry-app .title > a > span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 2.7em;
	line-height: 1.35em;
}
html body .entry-app .item-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
@media (min-width: 640px) {
	html body .entry-app .title { font-size: .9375rem; }
}

html body .entry-app .genre,
html body span.genre.truncate {
	margin: 0 .875rem auto;
	font-size: .75rem;
	font-weight: 600;
	color: var(--gma-muted) !important;
}

html body .entry-app-info {
	display: flex;
	margin: .875rem 0 0;
	padding: 0;
	border-top: 1px solid var(--gma-border);
	color: var(--gma-muted);
	font-size: .6875rem;
	font-weight: 600;
}
html body .entry-app-info::before { display: none; }
html body .entry-app-info > li {
	list-style: none;
	flex: 1 1 50%;
	max-width: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .25rem;
	padding: .625rem .375rem;
	min-width: 0;
}
html body .entry-app-info > li + li { border-left: 1px solid var(--gma-border); }
html body .entry-app-info > li svg {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: 0;
	flex: 0 0 auto;
	color: var(--gma-brand);
}
html body .entry-app-info > li .truncate {
	color: var(--gma-text-2) !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
html body .entry-app-info > li .truncate:empty::after { content: "—"; color: var(--gma-muted); }

/* labels: new / today / mod */
html body .entry-app .label,
html body .label {
	position: absolute;
	top: .625rem;
	left: .625rem;
	margin: 0;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	height: 20px;
	padding: 0 .5rem;
	font-size: .625rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1;
	text-transform: uppercase;
	border-radius: 999px;
	background: var(--gma-surface-2) !important;
	color: var(--gma-text-2) !important;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
html body .label::before {
	width: 6px;
	height: 6px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: currentColor;
	box-shadow: none !important;
}
html body .label-new { color: var(--gma-new) !important; background: color-mix(in srgb, var(--gma-new) 10%, transparent) !important; }
html body .label-updates,
html body .label-up { color: var(--gma-tint-blue-fg) !important; background: var(--gma-tint-blue-bg) !important; }

html body .img .post__modpaid {
	top: auto;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	height: 18px;
	padding: 0 .4rem;
	border-radius: 999px;
	line-height: 18px;
	font-size: .5625rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: var(--gma-brand) !important;
	color: var(--gma-brand-ink) !important;
	box-shadow: 0 0 0 2px var(--gma-surface);
}

/* app card v2: one clean meta line (Android + version chip) */
html body .entry-app > .item { padding-bottom: .875rem; }
html body .entry-app .img { width: 76px; height: 76px; margin: 2.125rem auto 1rem; }
@media (min-width: 640px) {
	html body .entry-app .img { width: 88px; height: 88px; margin-top: 2.125rem; }
}
html body .entry-app .title { padding: 0 .875rem; }
html body .entry-app .genre,
html body .entry-app span.genre.truncate {
	display: block;
	margin: .125rem .875rem 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
html body .gma-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin: auto .875rem 0;
	padding-top: .875rem;
	font-size: .75rem;
	font-weight: 600;
	color: var(--gma-muted);
}
html body .gma-card-req { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; white-space: nowrap; }
html body .gma-card-req svg { flex: 0 0 auto; color: var(--gma-brand); }
html body .gma-card-ver {
	min-width: 0;
	max-width: 62%;
	padding: .2rem .5rem;
	border-radius: 999px;
	background: var(--gma-surface-2);
	color: var(--gma-text-2);
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
@media (hover: hover) {
	html body .entry-app > .item:hover .gma-card-ver { background: var(--gma-brand); color: var(--gma-brand-ink); }
	html body .entry-app > .item:hover .title { color: var(--gma-brand-text); }
}
/* status pill sits in the corner, away from the icon */
html body .entry-app .label { top: .625rem; left: .625rem; height: 19px; font-size: .5625rem; }
html body .entry-app .img .post__modpaid { bottom: -9px; }

/* grid columns */
html body .list-c6 .entry { max-width: 50%; flex: 0 0 50%; }
@media (min-width: 560px) {
	html body .list-c6 .entry { max-width: 33.3333%; flex: 0 0 33.3333%; }
}
@media (min-width: 860px) {
	html body .list-c6 .entry { max-width: 25%; flex: 0 0 25%; }
}
@media (min-width: 1100px) {
	html body .list-c6 .entry { max-width: 20%; flex: 0 0 20%; }
}
@media (min-width: 1280px) {
	html body .list-c6 .entry { max-width: 16.6666%; flex: 0 0 16.6666%; }
}
/* on the narrow app page (related / version lists) keep 4 per row max */
@media (min-width: 860px) {
	html body .view-app .list-c6 .entry,
	html body .section-related .list-c6 .entry { max-width: 25%; flex: 0 0 25%; }
}
@media (min-width: 860px) and (max-width: 1299px) {
	html body .section-related .list-c6 .entry { display: block; }
}

/* 07. POPULAR APPS STRIP =================================================== */
html body .recom-post {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 1.25rem 1rem 1rem;
	text-align: center;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-sm);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
html body .recom-post::before { display: none !important; }
@media (hover: hover) {
	html body .recom-post:hover { border-color: var(--gma-border-strong); box-shadow: var(--gma-shadow); transform: translateY(-2px); }
	html body .recom-post:hover .img img { transform: none; }
}
html body .recom-post .img { width: 88px; height: 88px; margin: 0; }
@media (min-width: 1140px) {
	html body .recom-post .img { width: 96px; height: 96px; }
}
html body .recom-post .title {
	margin: .875rem 0 0;
	padding: 0;
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.35;
	max-width: 100%;
}
html body .recom-post .title a { color: var(--gma-text) !important; }
html body .recom-post .title .truncate {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: normal;
	overflow: hidden;
}
html body .recom-post .item-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
html body .recom-post-vers {
	position: absolute;
	top: .75rem;
	right: .75rem;
	left: auto;
	margin: 0;
	width: auto;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	padding: .25rem .5rem;
	border-radius: 999px;
	background: var(--gma-surface-2);
	color: var(--gma-text-2);
	font-size: .75rem;
	font-weight: 700;
}
html body .recom-post-vers > svg { display: none; }
html body .recom-post-vers::before {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--gma-star);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center/contain no-repeat;
}
html body .recom-post-vers .truncate { color: var(--gma-text-2) !important; }
@media (min-width: 992px) {
	html body .recom-list { margin-top: -.5rem; }
}
@media (max-width: 991px) {
	html body .scroll-entry-list { margin: 0 -1rem; padding: 0; }
	html body .scroll-entry-list .entry-list {
		margin: 0;
		padding: .25rem 1rem .75rem;
		gap: .75rem;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 1rem;
		scrollbar-width: none;
	}
	html body .scroll-entry-list .entry-list::-webkit-scrollbar { display: none; }
	html body .scroll-entry-list .entry-list::before,
	html body .scroll-entry-list .entry-list::after { display: none !important; }
	html body .scroll-entry-list .entry { min-width: 10.5rem; padding: 0; scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 991px) {
	html body .scroll-entry-list { margin: 0 -1.5rem; }
	html body .scroll-entry-list .entry-list { padding-left: 1.5rem; padding-right: 1.5rem; scroll-padding: 0 1.5rem; }
}

/* Telegram call-to-action widget on the home page (inline-styled in the widget) */
html body .custom-html-widget > a[href*="t.me"] {
	display: inline-flex !important;
	align-items: center;
	gap: .625rem !important;
	padding: .75rem 1.125rem !important;
	border-radius: var(--gma-radius) !important;
	background: var(--gma-telegram-soft) !important;
	color: var(--gma-telegram) !important;
	border: 1px solid color-mix(in srgb, var(--gma-telegram) 25%, transparent);
	box-shadow: none !important;
	font-weight: 700 !important;
	font-size: .9375rem;
}
html body .custom-html-widget > a[href*="t.me"]:hover { background: color-mix(in srgb, var(--gma-telegram) 16%, transparent) !important; }

/* 08. HOME CATEGORIES ====================================================== */
html body .home-categories {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .625rem;
}
@media (min-width: 560px) {
	html body .home-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
	html body .home-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
	html body .home-categories { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
html body .home-categories > a {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: .75rem;
	min-height: 64px;
	margin: 0 !important;
	padding: .75rem .875rem !important;
	background: var(--gma-surface) !important;
	color: var(--gma-text) !important;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg) !important;
	text-align: left;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
html body .home-categories > a:hover {
	border-color: var(--gma-brand) !important;
	box-shadow: var(--gma-shadow);
	transform: translateY(-1px);
}
html body .home-categories .gma-cat-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--gma-brand-soft);
	color: var(--gma-brand-text);
	font-style: normal;
	transition: background-color .15s ease, color .15s ease;
}
html body .home-categories > a:hover .gma-cat-icon { background: var(--gma-brand); color: var(--gma-brand-ink); }
html body .home-categories .gma-cat-text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
html body .home-categories .gma-cat-text > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .9375rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}
html body .home-categories .gma-cat-count {
	font-size: .75rem;
	font-weight: 600;
	color: var(--gma-muted);
}

/* home: latest news uses the article cards */
html body .section-news .gma-home-news { margin-top: .25rem; }

/* 09. NEWS CARDS =========================================================== */
html.darktheme body .dark-foot { background: var(--gma-surface) !important; border-radius: 0 !important; color: var(--gma-text); }
html body .dark-foot {
	padding-top: 2.5rem;
	margin-top: 1rem;
	background: var(--gma-surface) !important;
	border-top: 1px solid var(--gma-border);
	border-radius: 0 !important;
	color: var(--gma-text);
}
html body .dark-section { color: var(--gma-text); background-color: transparent; }
/* pages where the footer area holds only the footer (no "latest news" widget) */
html body .dark-foot:has(> .footer:first-child),
html.darktheme body .dark-foot:has(> .footer:first-child) {
	padding-top: 0;
	margin-top: 0;
	border-top: 0;
	background: transparent !important;
}

html body .entry-news > .item,
html body .dark-foot .entry-news > .item {
	background: var(--gma-surface) !important;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease;
}
html body .dark-foot .entry-news > .item { background: var(--gma-bg) !important; }
html body .entry-news > .item:hover { border-color: var(--gma-border-strong); box-shadow: var(--gma-shadow); }
html body .entry-news .pic,
html body .dark-foot .entry-news .pic { background: var(--gma-surface-2) !important; }
html body .entry-news .pic::after,
html body .entry-news .fit-cover::after { display: none !important; }
html body .entry-news .title { font-size: 1.0625rem; font-weight: 800; line-height: 1.35; margin-bottom: .5rem; }
html body .entry-news .title a,
html body .entry-news .title a span { color: var(--gma-text) !important; }
html body .entry-news .item-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
html body .entry-news .description { color: var(--gma-muted); opacity: 1; font-size: .875rem; }
html body .meta { color: var(--gma-muted); font-size: .75rem; }
html body .meta-date,
html body .dark-foot .entry-news .meta-date {
	padding: .2rem .5rem;
	border-radius: 999px;
	background: var(--gma-surface-2) !important;
	color: var(--gma-text-2) !important;
	font-weight: 700;
}
html body .meta-view { display: inline-flex; align-items: center; gap: .25rem; }
html body .meta-view svg { width: 14px; height: 14px; }

/* news archive (archive-news.php) */
html body .news-archive-wrap { background: transparent !important; padding: 1.5rem 0 3rem; }
html body .news-archive-inner { max-width: var(--gma-container); padding: 0 1rem; }
@media (min-width: 640px) {
	html body .news-archive-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
	html body .news-archive-inner { padding: 0 2rem; }
}

html body .news-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1rem;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	font-size: .8125rem;
	font-weight: 500;
	color: var(--gma-muted);
}
html body .news-breadcrumb a { color: var(--gma-text-2); display: inline-flex; }
html body .news-breadcrumb svg { width: 16px; height: 16px; fill: currentColor; }
html body .news-breadcrumb .sep { color: var(--gma-muted); }
html body .news-section-title {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--gma-text);
}
@media (min-width: 768px) {
	html body .news-section-title { font-size: 2rem; }
}
html body .news-section-title .title-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--gma-tint-yellow-bg);
	color: var(--gma-tint-yellow-fg);
	font-size: 1.125rem;
}
html body .news-card-grid { gap: 1rem; }
@media (min-width: 640px) {
	html body .news-card-grid { gap: 1.25rem; }
}
html body .news-card {
	position: relative;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-sm);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
html body .news-card:hover { border-color: var(--gma-border-strong); box-shadow: var(--gma-shadow); transform: translateY(-2px); }
html body .news-card:hover .news-card-img img { transform: none; }
html body .news-card-img { background: var(--gma-surface-2); }
html body .news-card-badge {
	background: var(--gma-surface);
	color: var(--gma-text-2);
	font-weight: 700;
	font-size: .625rem;
	letter-spacing: .06em;
	box-shadow: var(--gma-shadow-sm);
}
html body .news-card-body { padding: 1rem 1.125rem 1.25rem; }
html body .news-card-date {
	color: var(--gma-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
html body .news-card-title { font-size: 1.0625rem; font-weight: 800; line-height: 1.35; color: var(--gma-text); }
html body .news-card-title a { color: var(--gma-text); }
html body .news-card-title a::after { content: ""; position: absolute; inset: 0; }
html body .news-card-title a:hover { color: var(--gma-brand-text); }
html body .news-card-excerpt { color: var(--gma-muted); font-size: .875rem; }
html body .news-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 .75rem;
	border-radius: var(--gma-radius);
	border: 1px solid var(--gma-border);
	background: var(--gma-surface);
	color: var(--gma-text-2);
	box-shadow: none;
	font-weight: 700;
}
html body .news-pagination .page-numbers:hover { border-color: var(--gma-brand); color: var(--gma-brand-text); }
html body .news-pagination .page-numbers.current { background: var(--gma-brand); border-color: var(--gma-brand); color: var(--gma-brand-ink); }

/* 09b. NEWS / BLOG (template/news-*.php) ================================== */
html body #ez-toc-container,
html body .ez-toc-widget-container { display: none !important; }

html body .gma-news-wrap { padding-bottom: 2.5rem; }
html body .gma-news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 640px) {
	html body .gma-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 1024px) {
	html body .gma-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

html body .gma-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-sm);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) {
	html body .gma-news-card:hover { border-color: var(--gma-border-strong); box-shadow: var(--gma-shadow); transform: translateY(-2px); }
}
html body .gma-news-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--gma-surface-2);
}
html body .gma-news-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body .gma-news-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--gma-brand);
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--gma-brand) 16%, transparent) 0%, transparent 60%),
		radial-gradient(90% 90% at 100% 100%, color-mix(in srgb, var(--gma-tint-blue-fg) 12%, transparent) 0%, transparent 60%),
		var(--gma-surface-2);
}
html body .gma-news-ph svg { opacity: .55; }
html body .gma-news-body { display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto; padding: 1rem 1.125rem 1.125rem; }
html body .gma-news-top { display: flex; align-items: center; gap: .625rem; font-size: .75rem; font-weight: 600; color: var(--gma-muted); }
html body .gma-news-cat {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 .5rem;
	border-radius: 999px;
	background: var(--gma-brand-soft);
	color: var(--gma-brand-text) !important;
	font-size: .6875rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none !important;
}
html body .gma-news-title { margin: 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
html body .gma-news-title a { color: var(--gma-text) !important; text-decoration: none !important; }
html body .gma-news-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
html body .gma-news-card:hover .gma-news-title a { color: var(--gma-brand-text) !important; }
html body .gma-news-excerpt {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .875rem;
	line-height: 1.55;
	color: var(--gma-muted);
}
html body .gma-news-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .25rem; font-size: .75rem; font-weight: 600; color: var(--gma-muted); }
html body .gma-news-more { display: inline-flex; align-items: center; gap: .25rem; color: var(--gma-brand-text); font-weight: 800; font-size: .875rem; }

/* phones: compact rows (thumbnail left) for everything except the featured card */
@media (max-width: 639px) {
	html body .gma-news-grid { gap: .75rem; }
	html body .gma-news-card:not(.is-featured) { flex-direction: row; align-items: flex-start; }
	html body .gma-news-card:not(.is-featured) .gma-news-media {
		flex: 0 0 96px;
		width: 96px;
		aspect-ratio: 1;
		margin: .875rem 0 .875rem .875rem;
		border-radius: var(--gma-radius);
	}
	html body .gma-news-card:not(.is-featured) .gma-news-ph svg { width: 28px; height: 28px; }
	html body .gma-news-card:not(.is-featured) .gma-news-body { gap: .375rem; padding: .875rem; min-width: 0; }
	html body .gma-news-card:not(.is-featured) .gma-news-title {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: .9375rem;
	}
	html body .gma-news-card:not(.is-featured) .gma-news-excerpt { display: none; }
	html body .gma-news-card:not(.is-featured) .gma-news-top { gap: .5rem; flex-wrap: wrap; }
}

/* featured (newest) article */
html body .gma-news-card.is-featured { margin-bottom: 1.25rem; }
html body .gma-news-card.is-featured .gma-news-title { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; }
html body .gma-news-card.is-featured .gma-news-excerpt { -webkit-line-clamp: 3; font-size: .9375rem; }
@media (max-width: 767px) {
	html body .gma-news-card.is-featured .gma-news-media.is-ph { aspect-ratio: 21 / 9; }
}
@media (min-width: 768px) {
	html body .gma-news-card.is-featured { flex-direction: row; }
	html body .gma-news-card.is-featured .gma-news-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; }
	html body .gma-news-card.is-featured .gma-news-body { justify-content: center; padding: 2rem; gap: .75rem; }
	html body .gma-news-card.is-featured .gma-news-title { font-size: 1.75rem; }
	html body .gma-news-card.is-featured .gma-news-meta { margin-top: .5rem; }
}

/* pagination (paginate_links) */
html body .gma-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; margin-top: 2rem; }
html body .gma-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 .75rem;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	background: var(--gma-surface);
	color: var(--gma-text-2) !important;
	font-weight: 700;
	text-decoration: none !important;
}
html body .gma-pagination a.page-numbers:hover { border-color: var(--gma-brand); color: var(--gma-brand-text) !important; }
html body .gma-pagination .page-numbers.current { background: var(--gma-brand); border-color: var(--gma-brand); color: var(--gma-brand-ink) !important; }
html body .gma-pagination .page-numbers.dots { border: 0; background: none; }

/* single article */
html body .gma-article { width: 100%; max-width: 48rem; margin: 0 auto; padding: 0 1rem 1rem; }
@media (min-width: 640px) {
	html body .gma-article { padding: 0 1.5rem 1rem; }
}
html body .wrp-min.speedbar:has(+ .gma-article) { max-width: 48rem; }
html body .gma-article-head { padding: 1.25rem 0 1.25rem; }
html body .gma-article-title {
	margin: .75rem 0 0;
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.025em;
	color: var(--gma-text);
}
@media (min-width: 768px) {
	html body .gma-article-title { font-size: 2.5rem; }
}
html body .gma-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .375rem .875rem;
	margin-top: 1rem;
	font-size: .875rem;
	font-weight: 500;
	color: var(--gma-muted);
}
html body .gma-article-meta > * + *::before { content: "·"; margin-right: .875rem; color: var(--gma-border-strong); }
html body .gma-article-author { display: inline-flex; align-items: center; gap: .5rem; color: var(--gma-text); font-weight: 700; }
html body .gma-article-author::before { display: none; }
@media (max-width: 639px) {
	html body .gma-article-author { flex-basis: 100%; }
	html body .gma-article-author + *::before { display: none; }
}
html body .gma-article-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--gma-surface-2); }
html body .gma-article-cover { margin: 0 0 1.25rem; overflow: hidden; border-radius: var(--gma-radius-xl); background: var(--gma-surface-2); }
html body .gma-article-cover img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
html body .gma-article-ad { margin-bottom: 1rem; text-align: center; overflow: hidden; }
html body .gma-article-card {
	padding: 1.25rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-xl);
	box-shadow: var(--gma-shadow-sm);
}
@media (min-width: 640px) {
	html body .gma-article-card { padding: 2rem 2.25rem; }
}
html body .gma-article-body { display: block !important; }
html body .gma-article-edit { margin: 1rem 0 0; font-size: .8125rem; }

/* share */
html body .gma-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--gma-border);
}
html body .gma-share-label { font-size: .9375rem; font-weight: 800; color: var(--gma-text); }
html body .gma-share-list { display: flex; flex-wrap: wrap; gap: .5rem; }
html body .gma-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .375rem;
	min-width: 40px;
	height: 40px;
	padding: 0 .625rem;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	background: var(--gma-surface);
	color: var(--gma-text-2) !important;
	font: inherit;
	font-size: .8125rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
html body .gma-share-whatsapp:hover { border-color: #25D366; color: #1da851 !important; background: rgba(37, 211, 102, .08); }
html body .gma-share-telegram:hover { border-color: #229ED9; color: #1c8cc2 !important; background: rgba(34, 158, 217, .08); }
html body .gma-share-x:hover { border-color: var(--gma-text); color: var(--gma-text) !important; }
html body .gma-share-facebook:hover { border-color: #1877F2; color: #1877F2 !important; background: rgba(24, 119, 242, .08); }
html body .gma-share-copy:hover,
html body .gma-share-copy.is-copied { border-color: var(--gma-brand); color: var(--gma-brand-text) !important; background: var(--gma-brand-soft); }

/* previous / next */
html body .gma-article-nav { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: 1rem; }
@media (min-width: 640px) {
	html body .gma-article-nav { grid-template-columns: 1fr 1fr; }
}
html body .gma-article-nav-item {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1rem 1.125rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	text-decoration: none !important;
	transition: border-color .15s ease;
}
html body .gma-article-nav-item:hover { border-color: var(--gma-brand); }
html body .gma-article-nav-item.is-next { text-align: right; }
html body .gma-article-nav-item span { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gma-muted); }
html body .gma-article-nav-item b { font-size: .9375rem; font-weight: 700; line-height: 1.4; color: var(--gma-text); }
html body .gma-article-comments { margin-top: 1rem; }
html body .gma-article-comments .block { margin-top: 1rem; }
html body .gma-article-related { margin-top: 1rem; }

/* 10. APP PAGE (single.php, template/app-*.php) ============================ */

/* layout: one column; from 1100px the "App info" card becomes a sticky sidebar */
html body .gma-app-layout {
	width: calc(100% - 1.5rem);
	max-width: calc(var(--gma-reading) - 4rem);
	margin: .25rem auto 2rem;
}
@media (min-width: 640px) {
	html body .gma-app-layout { width: calc(100% - 3rem); }
}
@media (min-width: 1100px) {
	html body .gma-app-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		grid-template-rows: repeat(16, auto);
		column-gap: 1.75rem;
		row-gap: 0;
		align-items: start;
		width: calc(100% - 4rem);
		max-width: 76rem;
	}
	html body .gma-app-layout > * { grid-column: 1; min-width: 0; }
	html body .gma-app-layout > .gma-app-aside {
		grid-column: 2;
		grid-row: 1 / -1;
		position: sticky;
		top: calc(var(--gma-header-h) + 1rem);
		margin-top: 1rem;
	}
}
/* breadcrumbs line up with the layout */
html body .wrp-min.speedbar.gma-app-speedbar { max-width: calc(var(--gma-reading) - 4rem); width: calc(100% - 1.5rem); padding-left: 0 !important; padding-right: 0 !important; }
@media (min-width: 640px) {
	html body .wrp-min.speedbar.gma-app-speedbar { width: calc(100% - 3rem); }
}
@media (min-width: 1100px) {
	html body .wrp-min.speedbar.gma-app-speedbar { width: calc(100% - 4rem); max-width: 76rem; }
}

/* hero card */
html body .gma-app-hero {
	margin-top: 1rem;
	padding: 1.25rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-xl);
	box-shadow: var(--gma-shadow-sm);
	color: var(--gma-text);
}
@media (min-width: 640px) {
	html body .gma-app-hero { padding: 1.75rem 2rem 2rem; }
}
html body .gma-app-id { display: flex; align-items: flex-start; gap: 1rem; }
@media (min-width: 640px) {
	html body .gma-app-id { gap: 1.5rem; align-items: center; }
}
html body .gma-app-icon {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	border-radius: var(--gma-icon-radius);
	object-fit: cover;
	background: var(--gma-surface-2);
	box-shadow: var(--gma-icon-shadow);
}
@media (min-width: 640px) {
	html body .gma-app-icon { width: 112px; height: 112px; }
}
html body .gma-app-headline { min-width: 0; flex: 1 1 auto; }
html body .gma-app-title {
	margin: 0;
	padding: 0;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.02em;
	color: var(--gma-text) !important;
	overflow-wrap: anywhere;
}
@media (min-width: 640px) {
	html body .gma-app-title { font-size: 1.75rem; }
}
html body .gma-app-by {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .125rem .5rem;
	margin: .5rem 0 0;
	font-size: .875rem;
	font-weight: 600;
	color: var(--gma-muted);
}
html body .gma-app-by > * + *::before { content: "·"; margin-right: .5rem; color: var(--gma-border-strong); }
@media (max-width: 639px) {
	html body .gma-app-by { flex-direction: column; align-items: flex-start; }
	html body .gma-app-by > * + *::before { display: none; }
}
html body .gma-app-dev { color: var(--gma-brand-text) !important; font-weight: 700; text-decoration: none !important; }
html body .gma-app-cat { color: var(--gma-text-2) !important; text-decoration: none !important; }
html body .gma-app-dev:hover,
html body .gma-app-cat:hover { text-decoration: underline !important; }
html body .gma-app-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin: .625rem 0 0; }
html body .gma-app-tag {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	height: 24px;
	padding: 0 .5rem;
	border-radius: 999px;
	font-size: .6875rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	background: var(--gma-surface-2);
	color: var(--gma-text-2);
}
html body .gma-app-tag.is-mod { background: var(--gma-brand-soft); color: var(--gma-brand-text); }

/* key facts: one row with dividers, swipes sideways on small phones */
html body .gma-app-stats {
	display: flex;
	margin: 1.25rem -1.25rem 0;
	padding: .25rem 1.25rem;
	overflow-x: auto;
	scrollbar-width: none;
	border-top: 1px solid var(--gma-border);
	border-bottom: 1px solid var(--gma-border);
}
html body .gma-app-stats::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
	html body .gma-app-stats {
		margin: 1.5rem 0 0;
		padding: .75rem 0;
		border: 1px solid var(--gma-border);
		border-radius: var(--gma-radius-lg);
		background: var(--gma-surface-2);
	}
}
html body .gma-app-stat {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	justify-content: flex-end;
	gap: .125rem;
	flex: 1 0 auto;
	min-width: 5.5rem;
	padding: .5rem .875rem;
	text-align: center;
}
html body .gma-app-stat + .gma-app-stat { border-left: 1px solid var(--gma-border); }
html body .gma-app-stat dt {
	margin: 0;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--gma-muted);
}
html body .gma-app-stat dd {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	margin: 0;
	font-size: .9375rem;
	font-weight: 800;
	color: var(--gma-text);
	white-space: nowrap;
}
html body .gma-app-stat.is-rating dd svg { color: var(--gma-star); }

/* actions */
html body .gma-app-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.25rem; }
html body .gma-app-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	height: 52px;
	padding: 0 1.5rem;
	border: 0;
	border-radius: var(--gma-radius);
	background: var(--gma-brand) !important;
	color: var(--gma-brand-ink) !important;
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--gma-brand) 70%, transparent);
	transition: background-color .15s ease, transform .15s ease;
}
html body .gma-app-cta:hover { background: var(--gma-brand-hover) !important; transform: translateY(-1px); }
html body .gma-app-cta small {
	padding: .2rem .5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .2);
	font-size: .75rem;
	font-weight: 700;
}
html.darktheme body .gma-app-cta small { background: rgba(0, 0, 0, .16); }
html body .gma-app-hero .gma-app-cta { flex: 1 1 100%; }
@media (min-width: 640px) {
	html body .gma-app-hero .gma-app-cta { flex: 0 0 auto; min-width: 15rem; }
}
html body .gma-app-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .375rem;
	height: 48px;
	margin: 0 !important;
	padding: 0 1.125rem;
	border: 1px solid var(--gma-border-strong) !important;
	border-radius: var(--gma-radius);
	background: var(--gma-surface) !important;
	color: var(--gma-text) !important;
	font: inherit;
	font-size: .9375rem;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
html body .gma-app-btn:hover { background: var(--gma-surface-2) !important; }
html body .gma-app-hero .gma-app-btn { flex: 1 1 auto; }
html body .gma-app-btn--icon { flex: 0 0 48px !important; width: 48px; padding: 0; }
@media (min-width: 640px) {
	html body .gma-app-hero .gma-app-cta,
	html body .gma-app-hero .gma-app-btn { height: 52px; }
	html body .gma-app-hero .gma-app-btn { flex: 0 0 auto; }
	html body .gma-app-btn--icon { flex-basis: 52px !important; width: 52px; }
}

/* app page: Share button + share card */
html body .gma-share-pop { position: relative; display: flex; }
html body .gma-app-hero .gma-share-pop { flex: 1 1 auto; }
@media (min-width: 640px) {
	html body .gma-app-hero .gma-share-pop { flex: 0 0 auto; }
}
html body .gma-app-btn.gma-app-share {
	width: 100%;
	gap: .5rem;
	border-color: transparent !important;
	background: var(--gma-brand-soft) !important;
	color: var(--gma-brand-text) !important;
}
html body .gma-app-btn.gma-app-share:hover,
html body .gma-share-pop.is-open .gma-app-share { background: var(--gma-brand) !important; color: var(--gma-brand-ink) !important; }
html body .gma-share-card {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 60;
	width: min(320px, calc(100vw - 2rem));
	padding: 1rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px) scale(.98);
	transform-origin: top right;
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
html body .gma-share-pop.is-open .gma-share-card {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .15s ease, transform .15s ease, visibility 0s;
}
html body .gma-share-card-title {
	margin: 0 0 .875rem !important;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gma-muted);
}
html body .gma-share-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
html body .gma-share-net {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .375rem;
	padding: .375rem 0;
	border-radius: var(--gma-radius);
	color: var(--gma-text-2) !important;
	font-size: .75rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .15s ease;
}
html body .gma-share-net:hover { background: var(--gma-surface-2); }
html body .gma-share-net-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: #fff;
	background: #6b7280;
	transition: transform .15s ease;
}
html body .gma-share-net:hover .gma-share-net-ico { transform: translateY(-2px); }
html body .gma-share-net--whatsapp .gma-share-net-ico { background: #25d366; }
html body .gma-share-net--telegram .gma-share-net-ico { background: #229ed9; }
html body .gma-share-net--x .gma-share-net-ico { background: #0f1419; }
html.darktheme body .gma-share-net--x .gma-share-net-ico { background: #e7e9ea; color: #0f1419; }
html body .gma-share-net--facebook .gma-share-net-ico { background: #1877f2; }
html body .gma-share-copyrow {
	display: flex;
	align-items: center;
	gap: .5rem;
	width: 100%;
	margin-top: .875rem;
	padding: .375rem .375rem .375rem .75rem;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	background: var(--gma-surface-2);
	font: inherit;
	cursor: pointer;
	text-align: left;
}
html body .gma-share-copyrow-url {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .8125rem;
	color: var(--gma-muted);
}
html body .gma-share-copyrow-btn {
	flex: 0 0 auto;
	padding: .4rem .75rem;
	border-radius: 8px;
	background: var(--gma-brand);
	color: var(--gma-brand-ink);
	font-size: .8125rem;
	font-weight: 700;
}
html body .gma-share-copyrow.is-copied .gma-share-copyrow-btn { background: var(--gma-text); color: var(--gma-surface); }

/* telegram link under the actions */
html body .gma-app-hero > br { display: none; }
html body .tele-join { margin: 1rem 0 0; }
html body .tele-join a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: 100%;
	margin: 0 !important;
	padding: .75rem 1rem !important;
	font-size: .9375rem;
	font-weight: 700;
	color: var(--gma-telegram) !important;
	background: var(--gma-telegram-soft) !important;
	border: 1px solid color-mix(in srgb, var(--gma-telegram) 22%, transparent);
	border-radius: var(--gma-radius) !important;
	white-space: normal;
}
html body .tele-join a:hover { background: color-mix(in srgb, var(--gma-telegram) 16%, transparent) !important; }
html body .tele-join a svg { width: 18px !important; height: 18px !important; top: 0 !important; fill: currentColor !important; }

html body .gma-app-ad { margin-top: 1rem; text-align: center; overflow: hidden; }

/* screenshots (Google Play extractor): one swipeable row */
html body .b-screens .b-cont { padding-top: 0; }
html body .b-screens .screenshots {
	display: flex !important;
	gap: .625rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: .25rem;
}
html body .b-screens .screenshots a { flex: 0 0 auto; scroll-snap-align: start; }
html body .b-screens .screenshots img {
	display: block;
	height: 220px;
	width: auto;
	max-width: none !important;
	border-radius: var(--gma-radius);
	border: 1px solid var(--gma-border);
}

/* "App info" card */
html body .gma-app-aside { margin-top: 1rem; }
html body .gma-app-side {
	padding: 1.25rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-xl);
	box-shadow: var(--gma-shadow-sm);
}
@media (min-width: 640px) and (max-width: 1099px) {
	html body .gma-app-side { padding: 1.75rem 2rem; }
}
html body .gma-app-side-head,
html body .gma-app-side-cta { display: none !important; }
@media (min-width: 1100px) {
	html body .gma-app-side { box-shadow: var(--gma-shadow); }
	html body .gma-app-side-head { display: flex !important; align-items: center; gap: .75rem; }
	html body .gma-app-side-head img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--gma-icon-radius); object-fit: cover; }
	html body .gma-app-side-head div { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
	html body .gma-app-side-head strong {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: .9375rem;
		font-weight: 800;
		line-height: 1.3;
		color: var(--gma-text);
	}
	html body .gma-app-side-head span { font-size: .8125rem; font-weight: 600; color: var(--gma-muted); }
	html body .gma-app-side-cta { display: flex !important; width: 100%; height: 48px; margin: 1rem 0 1.25rem; }
}
html body .gma-app-info-title {
	margin: 0 0 .5rem !important;
	padding: 0 !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	color: var(--gma-text) !important;
}
html body .gma-app-info { margin: 0; }
html body .gma-app-info > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: .625rem 0;
	border-top: 1px solid var(--gma-border);
	font-size: .875rem;
}
html body .gma-app-info > div:first-child { border-top: 0; }
html body .gma-app-info dt { flex: 0 0 auto; margin: 0; font-weight: 600; color: var(--gma-muted); }
html body .gma-app-info dd { margin: 0; min-width: 0; text-align: right; font-weight: 700; color: var(--gma-text); overflow-wrap: anywhere; }
html body .gma-app-info dd a { color: var(--gma-brand-text) !important; text-decoration: none !important; }
html body .gma-app-info dd a:hover { text-decoration: underline !important; }
html body .gma-app-info dd a svg { vertical-align: -2px; }
html body .gma-app-info code {
	padding: .125rem .375rem;
	border-radius: 6px;
	background: var(--gma-surface-2);
	font-size: .75rem;
	font-weight: 600;
	color: var(--gma-text-2);
}

/* phones: sticky download bar */
html body .gma-app-bar {
	position: fixed;
	left: .75rem;
	right: .75rem;
	bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .5rem .5rem .5rem .625rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(calc(100% + 1rem));
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility 0s linear .25s;
}
html body .gma-app-bar.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility 0s;
}
html body .gma-app-bar img { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--gma-icon-radius); object-fit: cover; }
html body .gma-app-bar-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
html body .gma-app-bar-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 800; color: var(--gma-text); }
html body .gma-app-bar-text span { font-size: .75rem; font-weight: 600; color: var(--gma-muted); }
html body .gma-app-bar .gma-app-cta { flex: 0 0 auto; height: 44px; padding: 0 1.125rem; font-size: .9375rem; box-shadow: none; }
@media (min-width: 640px) {
	html body .gma-app-bar { width: min(32rem, calc(100% - 3rem)); margin: 0 auto; }
}
@media (min-width: 1100px) {
	html body .gma-app-bar { display: none; }
}
@media (max-width: 1099px) {
	html body:has(.gma-app-bar) .gma-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
	html body.gma-app-bar-on .upper.scrollup { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important; }
}

/* toast (share / copy feedback) */
html body .gma-toast {
	position: fixed;
	left: 50%;
	bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
	z-index: 1000;
	max-width: calc(100% - 2rem);
	padding: .625rem 1rem;
	border-radius: 999px;
	background: var(--gma-text);
	color: var(--gma-bg);
	font-size: .875rem;
	font-weight: 700;
	box-shadow: var(--gma-shadow-lg);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, .5rem);
	transition: opacity .2s ease, transform .2s ease;
}
html body .gma-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html body.gma-app-bar-on .gma-toast { bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }

/* the description card and everything below it use the layout width */
html body .gma-app-layout > .block { margin-top: 1rem; }

/* 11. CONTENT BLOCKS / ARTICLE ============================================= */
html.darktheme body .block { background: var(--gma-surface) !important; color: var(--gma-text); }
html body .block,
html body .dark-section .block {
	background: var(--gma-surface) !important;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-xl);
	box-shadow: var(--gma-shadow-sm);
	margin-top: 1rem;
	color: var(--gma-text);
}
html body .b-cont,
html body .b-head,
html body .b-icon-title { padding: 1.25rem; }
@media (min-width: 640px) {
	html body .b-cont,
	html body .b-head,
	html body .b-icon-title { padding: 1.75rem 2rem; }
}

/* tabs */
html body .b-tabs {
	display: flex;
	gap: .25rem;
	padding: 0 1.25rem;
	border-bottom: 1px solid var(--gma-border);
	overflow-x: auto;
	scrollbar-width: none;
}
@media (min-width: 640px) {
	html body .b-tabs { padding: 0 2rem; }
}
html body .b-tabs::-webkit-scrollbar { display: none; }
html body .b-tabs .tab-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 52px;
	line-height: 1;
	padding: 0 .75rem;
	margin: 0;
	font-size: .9375rem;
	font-weight: 700;
	color: var(--gma-muted) !important;
	background: none !important;
	border: 0;
	white-space: nowrap;
	opacity: 1;
}
html body .b-tabs .tab-item::before { display: none !important; }
html body .b-tabs .tab-item::after,
html body .b-tabs .tab-item.active::after {
	content: "";
	position: absolute;
	top: auto;
	left: .75rem;
	right: .75rem;
	bottom: -1px;
	width: auto;
	height: 2px;
	margin: 0;
	border: 0 !important;
	border-radius: 2px;
	background: var(--gma-brand);
	box-shadow: none;
	opacity: 0;
	transform: none;
}
html body .b-tabs .tab-item:hover { color: var(--gma-text) !important; }
html body .b-tabs .tab-item.active { color: var(--gma-text) !important; }
html body .b-tabs .tab-item.active::after { opacity: 1; }

/* article typography (.text is used by app pages, news and static pages) */
html body .text,
html body .tab-pane.text {
	font-size: 1rem !important;
	line-height: 1.75 !important;
	color: var(--gma-text-2) !important;
	padding: 0 !important;
	overflow-wrap: anywhere;
}
@media (min-width: 768px) {
	html body .text { font-size: 1.0625rem !important; }
}
html body .text > :first-child { margin-top: 0 !important; }
html body .text p {
	margin: 0 0 1.1em !important;
	color: var(--gma-text-2) !important;
	line-height: 1.75 !important;
	background: none !important;
	padding: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}
html body .text h1,
html body .text h2,
html body .text h3,
html body .text h4,
html body .text h5 {
	display: block !important;
	margin: 2em 0 .6em !important;
	padding: 0 !important;
	color: var(--gma-text) !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	letter-spacing: -.015em;
	scroll-margin-top: calc(var(--gma-header-h) + 16px);
}
html body .text h2::before,
html body .text h3::before { content: none !important; display: none !important; }
html body .text h1 { font-size: 1.75em !important; }
html body .text h2 { font-size: 1.45em !important; }
html body .text h3 { font-size: 1.22em !important; }
html body .text h4 { font-size: 1.06em !important; font-weight: 700 !important; }
html body .text h5 { font-size: 1em !important; font-weight: 700 !important; }
html body .text h2:last-of-type { background: none !important; box-shadow: none !important; }

html body .text strong,
html body .text b { color: var(--gma-text) !important; font-weight: 700; }
html body .text p strong { color: var(--gma-text) !important; }
html body .text em { color: inherit !important; }
html body .text a {
	color: var(--gma-brand-text) !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in srgb, var(--gma-brand-text) 40%, transparent);
}
html body .text a:hover { text-decoration-color: currentColor; }

/* lists: real bullets instead of boxed rows */
html body .text ul,
html body .text ol {
	margin: 0 0 1.25em !important;
	padding: 0 0 0 1.4em !important;
	list-style: none !important;
}
html body .text ol { list-style: decimal !important; }
html body .text ol > li::marker { color: var(--gma-brand-text); font-weight: 700; }
html body .text ul > li,
html body .text ol > li {
	position: relative;
	margin: 0 0 .5em !important;
	padding: 0 0 0 .2em !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--gma-text-2) !important;
	font-size: inherit !important;
	box-shadow: none !important;
}
html body .text ul > li::before {
	content: "";
	position: absolute;
	left: -1.05em;
	top: .72em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gma-brand);
}
html body .text li > p { margin: 0 !important; }

/* tables */
html body .text table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	margin: 1.25em 0 1.5em;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	font-size: .9375em;
	line-height: 1.5;
	-webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
	html body .text table { display: table; }
}
html body .text th,
html body .text td {
	padding: .75em 1em;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--gma-border);
	color: var(--gma-text-2);
	min-width: 8rem;
}
html body .text tr:last-child > td { border-bottom: 0; }
html body .text thead td,
html body .text thead th,
html body .text th {
	background: var(--gma-surface-2);
	color: var(--gma-text);
	font-weight: 700;
}
html body .text tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--gma-surface-2) 55%, transparent); }

html body .text blockquote {
	margin: 1.5em 0;
	padding: 1em 1.25em;
	border-left: 3px solid var(--gma-brand);
	background: var(--gma-surface-2);
	border-radius: 0 var(--gma-radius) var(--gma-radius) 0;
	color: var(--gma-text);
}
html body .text code {
	padding: .15em .4em;
	border-radius: 6px;
	background: var(--gma-surface-2) !important;
	color: var(--gma-text) !important;
	font-size: .875em !important;
}
html body .text img { border-radius: var(--gma-radius); }
html body .text iframe { max-width: 100%; border-radius: var(--gma-radius); }
html body .text hr { margin: 2em 0; }

/* table of contents (built by template/loop/content.php) */
html body .gma-toc {
	margin: 0 0 2rem;
	padding: 0;
	background: var(--gma-surface-2);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: none;
	overflow: hidden;
}
html body .gma-toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: .875rem 1.125rem;
	background: none;
	border: 0;
	font: inherit;
	color: var(--gma-text);
	cursor: pointer;
	text-align: left;
}
html body .gma-toc-header-left { display: flex; align-items: center; gap: .625rem; font-weight: 800; font-size: .9375rem; color: var(--gma-text); }
html body .gma-toc-header-left svg { width: 18px; height: 18px; fill: var(--gma-brand); }
html body .gma-toc-toggle {
	font-size: .8125rem;
	font-weight: 700;
	color: var(--gma-brand-text);
	background: none;
	padding: 0;
}
html body .gma-toc-body { padding: 0 .625rem .75rem; }
html body .gma-toc-list {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	counter-reset: none;
}
html body .gma-toc-list li {
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
}
html body .gma-toc-list li::before { display: none !important; }
html body .gma-toc-list li a {
	display: flex;
	align-items: baseline;
	gap: .625rem;
	padding: .45rem .5rem;
	border: 0;
	border-radius: var(--gma-radius-sm);
	background: none !important;
	color: var(--gma-text-2) !important;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none !important;
}
html body .gma-toc-list li a:hover { background: var(--gma-surface) !important; color: var(--gma-brand-text) !important; }
html body .gma-toc-list li.gma-toc-sub a { padding-left: 2.125rem; font-weight: 500; }
html body .gma-toc-num {
	flex: 0 0 auto;
	min-width: 1.25rem;
	height: auto;
	padding: 0;
	background: none !important;
	color: var(--gma-muted);
	font-size: .8125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	display: inline;
}
html body .gma-toc-sub .gma-toc-num { display: none; }

/* "read more" spoilers / accordions */
html body details.ac summary { cursor: pointer; }
html body .showH { color: var(--gma-text-2); }

/* 12. DOWNLOAD BLOCK (template/loop/download.php) ========================== */
html body .gma-dlb { padding: 1.25rem; scroll-margin-top: calc(var(--gma-header-h) + 16px); }
@media (min-width: 640px) {
	html body .gma-dlb { padding: 1.75rem 2rem 2rem; }
}
html body .gma-dlb-head { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.25rem; }
html body .gma-dlb-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--gma-icon-radius); object-fit: cover; background: var(--gma-surface-2); }
html body .gma-dlb-head-text { min-width: 0; }
html body .gma-dlb-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 1.0625rem !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
	color: var(--gma-text) !important;
	overflow-wrap: anywhere;
}
@media (min-width: 640px) {
	html body .gma-dlb-title { font-size: 1.1875rem !important; }
}
html body .gma-dlb-meta { margin: .25rem 0 0 !important; font-size: .8125rem; font-weight: 600; color: var(--gma-muted); }
html body .gma-dlb-ad { margin: 0 0 1rem; text-align: center; overflow: hidden; }

html body .gma-dlb-mod {
	margin: 0 0 1rem;
	padding: .875rem 1rem;
	border-radius: var(--gma-radius);
	background: var(--gma-brand-soft);
	color: var(--gma-text-2);
	font-size: .9375rem;
	line-height: 1.6;
}
html body .gma-dlb-mod-title {
	display: flex;
	align-items: center;
	gap: .375rem;
	margin-bottom: .25rem;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--gma-brand-text);
}
html body .gma-dlb-mod-body > :last-child { margin-bottom: 0 !important; }
html body .gma-dlb-mod-body p { margin: 0 0 .5em; }
html body .gma-dlb-mod-body ul,
html body .gma-dlb-mod-body ol { margin: .25rem 0 0; padding-left: 1.25rem; }
html body .gma-dlb-mod-body ul li { list-style: disc; }
html body .gma-dlb-mod-body ol li { list-style: decimal; }

html body .gma-dlb-more { margin: .5rem 0 0; }
html body .gma-dlb > .gma-dlb-more { margin: 0 0 1rem; }
html body .gma-dlb-more summary {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	font-size: .875rem;
	font-weight: 700;
	color: var(--gma-brand-text);
	cursor: pointer;
	list-style: none;
}
html body .gma-dlb-more summary::-webkit-details-marker { display: none; }
html body .gma-dlb-more summary::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .15s ease;
}
html body .gma-dlb-more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
html body .gma-dlb-more > div { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: var(--gma-text-2); }
html body .gma-dlb-note { margin: -.25rem 0 .25rem .25rem; }

/* options reuse the download page list (.gma-dl-option); on the app page the label reads "Download" */
html body .gma-dlb-options .gma-dl-option { text-decoration: none !important; }
html body .gma-dlb-options .gma-dl-option-text b {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: normal;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
html body .gma-dlb-options .gma-dl-option-go {
	flex: 0 0 auto;
	padding: .3rem .75rem;
	border-radius: 999px;
	background: var(--gma-surface-2);
	color: var(--gma-text);
	font-size: .8125rem;
	font-weight: 800;
}
html body .gma-dlb-options .gma-dl-option.is-primary .gma-dl-option-go { background: rgba(255, 255, 255, .2); color: inherit; opacity: 1; }
html.darktheme body .gma-dlb-options .gma-dl-option.is-primary .gma-dl-option-go { background: rgba(0, 0, 0, .16); }
@media (max-width: 380px) {
	html body .gma-dlb-options .gma-dl-option-go { display: none; }
}

html body .gma-dlb-empty {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1rem;
	border: 1px dashed var(--gma-border-strong);
	border-radius: var(--gma-radius);
	text-align: center;
	font-size: .875rem;
	color: var(--gma-muted);
}
html body .gma-dlb-empty strong { font-size: .9375rem; color: var(--gma-text); }

html body .gma-dlb-safe { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--gma-border); }
html body .gma-dlb-safe summary {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .875rem;
	font-weight: 700;
	color: var(--gma-text-2);
	cursor: pointer;
	list-style: none;
}
html body .gma-dlb-safe summary::-webkit-details-marker { display: none; }
html body .gma-dlb-safe summary svg { color: var(--gma-brand); }
html body .gma-dlb-safe summary:hover { color: var(--gma-text); }
html body .gma-dlb-safe-body { margin-top: .625rem; font-size: .875rem; line-height: 1.65; color: var(--gma-muted); }
html body .gma-dlb-safe-body p { margin: 0; }

/* stand-alone download pages (template/file.php, template/download.php) */
html body .page-cdn-back > a { gap: .75rem; font-weight: 700; color: var(--gma-text-2); }
html body .page-cdn-back .c-icon {
	margin: 0 !important;
	width: 40px;
	min-width: 40px;
	height: 40px;
	border-radius: var(--gma-radius);
	background: var(--gma-surface) !important;
	border: 1px solid var(--gma-border);
	color: var(--gma-text) !important;
}
html body .page-cdn-back .c-icon svg { width: 20px; height: 20px; }
html body .page-cdn .cdn-img .img img { border-radius: var(--gma-icon-radius); box-shadow: var(--gma-shadow); }
html body .page-cdn .title { color: var(--gma-text); font-weight: 800; letter-spacing: -.015em; }
html body .page-cdn .cdn-meta { color: var(--gma-muted); font-weight: 700; }
html body .page-cdn .download-btn-group { justify-content: center; width: 100%; }
html body .page-cdn .download-btn { width: 100%; max-width: 22rem; justify-content: center; }
html body .page-cdn .download-btn > a { display: block; width: 100%; }
html body .page-cdn .download-btn .btn,
html body .page-cdn .download-btn input[type="button"] {
	width: 100%;
	height: 54px;
	padding: 0 2rem;
	border: 0;
	border-radius: 14px;
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 800;
	cursor: pointer;
}
html body .page-cdn .md5 { color: var(--gma-muted); }

/* 12b. DOWNLOAD PAGE (template/file.php) =================================== */
html body.gma-dl-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
html body .gma-dl-top {
	display: flex;
	align-items: center;
	gap: .75rem;
	width: 100%;
	max-width: 42rem;
	margin: 0 auto;
	padding: 1rem 1rem .5rem;
}
html body .gma-dl-back {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	height: 40px;
	padding: 0 .875rem 0 .625rem;
	border: 1px solid var(--gma-border);
	border-radius: 999px;
	background: var(--gma-surface);
	color: var(--gma-text-2) !important;
	font-size: .875rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: border-color .15s ease, color .15s ease;
}
html body .gma-dl-back:hover { border-color: var(--gma-border-strong); color: var(--gma-text) !important; }
html body .gma-dl-logo { display: inline-flex; margin: 0 auto; text-decoration: none !important; }
html body .gma-dl-logo .gma-logo-mark { width: 32px; height: 32px; }
html body .gma-dl-logo .gma-logo-text { font-size: 1.125rem; }
html body .gma-dl-top .gma-theme-toggle { display: inline-flex !important; }
@media (max-width: 479px) {
	html body .gma-dl-back span { display: none; }
	html body .gma-dl-back { width: 40px; padding: 0; justify-content: center; }
}

html body .gma-dl {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	max-width: 42rem;
	margin: 0 auto;
	padding: .5rem 1rem 2rem;
	flex: 1 0 auto;
}
html body .gma-dl-card,
html body .gma-dl-steps {
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-xl);
	box-shadow: var(--gma-shadow-sm);
	padding: 1.25rem;
}
@media (min-width: 640px) {
	html body .gma-dl-card,
	html body .gma-dl-steps { padding: 1.75rem; }
}

html body .gma-dl-app { display: flex; align-items: center; gap: 1rem; }
html body .gma-dl-icon {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: var(--gma-icon-radius);
	object-fit: cover;
	background: var(--gma-surface-2);
	box-shadow: var(--gma-icon-shadow);
}
@media (min-width: 640px) {
	html body .gma-dl-icon { width: 88px; height: 88px; }
}
html body .gma-dl-app-text { min-width: 0; }
html body .gma-dl-title {
	margin: 0;
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.015em;
	color: var(--gma-text);
}
@media (min-width: 640px) {
	html body .gma-dl-title { font-size: 1.375rem; }
}
html body .gma-dl-file {
	margin: .25rem 0 0;
	font-size: .875rem;
	font-weight: 500;
	color: var(--gma-muted);
	overflow-wrap: anywhere;
}

html body .gma-dl-chips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 559px) {
	html body .gma-dl-chips li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 560px) {
	html body .gma-dl-chips { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
}
html body .gma-dl-chips li {
	display: flex;
	flex-direction: column;
	gap: .125rem;
	min-width: 0;
	margin: 0;
	padding: .625rem .75rem;
	border-radius: var(--gma-radius);
	background: var(--gma-surface-2);
}
html body .gma-dl-chips span {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--gma-muted);
}
html body .gma-dl-chips b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .9375rem;
	font-weight: 700;
	color: var(--gma-text);
}
html body .gma-dl-mod {
	margin: .75rem 0 0;
	padding: .75rem 1rem;
	border-radius: var(--gma-radius);
	background: var(--gma-brand-soft);
	color: var(--gma-text-2);
	font-size: .875rem;
	line-height: 1.5;
}
html body .gma-dl-mod b { color: var(--gma-brand-text); font-weight: 800; margin-right: .25rem; }

/* countdown */
html body .gma-dl-wait {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.25rem;
	padding: 1.25rem;
	border-radius: var(--gma-radius-lg);
	background: var(--gma-surface-2);
}
html body .gma-dl-wait[hidden],
html body .gma-dl-ready[hidden] { display: none; }
html body .gma-dl-ring { position: relative; flex: 0 0 auto; width: 76px; height: 76px; }
html body .gma-dl-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
html body .gma-dl-ring circle { fill: none; stroke-width: 9; }
html body .gma-dl-ring-track { stroke: var(--gma-border); }
html body .gma-dl-ring-bar { stroke: var(--gma-brand); stroke-linecap: round; }
html body .gma-dl-count {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--gma-text);
}
html body .gma-dl-wait-text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
html body .gma-dl-wait-text strong { font-size: 1rem; font-weight: 800; color: var(--gma-text); }
html body .gma-dl-wait-text span { font-size: .875rem; color: var(--gma-muted); }

/* ready */
html body .gma-dl-ready { margin-top: 1.25rem; }
html body .gma-dl-ready.is-in .gma-dl-btn { animation: gma-dl-pop .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes gma-dl-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
html body .gma-dl-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .625rem;
	width: 100%;
	min-height: 56px;
	padding: .75rem 1.25rem;
	border: 0;
	border-radius: 14px;
	background: var(--gma-brand);
	color: var(--gma-brand-ink) !important;
	font-size: 1.0625rem;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--gma-brand) 60%, transparent);
	transition: background-color .15s ease, transform .15s ease;
}
html body .gma-dl-btn:hover { background: var(--gma-brand-hover); transform: translateY(-1px); }
html body .gma-dl-btn svg { flex: 0 0 auto; }
html body .gma-dl-btn small {
	margin-left: .375rem;
	padding: .2rem .5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .2);
	font-size: .75rem;
	font-weight: 700;
	vertical-align: 1px;
}
html.darktheme body .gma-dl-btn small { background: rgba(0, 0, 0, .18); }
html body .gma-dl-btn--ghost {
	min-height: 46px;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border-strong);
	color: var(--gma-text) !important;
	box-shadow: none;
	font-size: .9375rem;
}
html body .gma-dl-btn--ghost:hover { background: var(--gma-surface-2); }
html body .gma-dl-note { margin: .625rem 0 0; text-align: center; font-size: .8125rem; color: var(--gma-muted); }
html body .gma-dl-error {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: 1.25rem;
	padding: 1.25rem;
	border-radius: var(--gma-radius-lg);
	background: var(--gma-tint-red-bg);
	text-align: center;
}
html body .gma-dl-error strong { font-size: 1rem; color: var(--gma-text); }
html body .gma-dl-error span { font-size: .875rem; color: var(--gma-text-2); margin-bottom: .25rem; }

/* download options list (template/download.php) */
html body .gma-dl-options { display: flex; flex-direction: column; gap: .625rem; }
html body .gma-dl-option {
	display: flex;
	align-items: center;
	gap: .875rem;
	min-height: 64px;
	padding: .75rem .875rem .75rem .75rem;
	border: 1px solid var(--gma-border);
	border-radius: 14px;
	background: var(--gma-surface);
	color: var(--gma-text) !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
html body .gma-dl-option:hover { border-color: var(--gma-brand); background: var(--gma-surface-2); }
html body .gma-dl-option-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--gma-brand-soft);
	color: var(--gma-brand);
}
html body .gma-dl-option-text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; flex: 1 1 auto; }
html body .gma-dl-option-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 700; }
html body .gma-dl-option-text span { font-size: .8125rem; font-weight: 500; color: var(--gma-muted); }
html body .gma-dl-option-go { display: flex; color: var(--gma-muted); }
html body .gma-dl-option.is-primary {
	border-color: transparent;
	background: var(--gma-brand);
	color: var(--gma-brand-ink) !important;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--gma-brand) 60%, transparent);
}
html body .gma-dl-option.is-primary:hover { background: var(--gma-brand-hover); transform: translateY(-1px); }
html body .gma-dl-option.is-primary .gma-dl-option-icon { background: rgba(255, 255, 255, .2); color: inherit; }
html.darktheme body .gma-dl-option.is-primary .gma-dl-option-icon { background: rgba(0, 0, 0, .15); }
html body .gma-dl-option.is-primary .gma-dl-option-text span,
html body .gma-dl-option.is-primary .gma-dl-option-go { color: inherit; opacity: .85; }
html body .gma-dl-ready.is-in .gma-dl-option { animation: gma-dl-pop .28s cubic-bezier(.2, .8, .2, 1) both; }
html body .gma-dl-ready.is-in .gma-dl-option:nth-of-type(2) { animation-delay: .04s; }
html body .gma-dl-ready.is-in .gma-dl-option:nth-of-type(3) { animation-delay: .08s; }
html body .gma-dl-ready.is-in .gma-dl-option:nth-of-type(n+4) { animation-delay: .12s; }
html body .gma-dl-option-note {
	margin: .25rem 0 -.125rem;
	font-size: .8125rem;
	line-height: 1.5;
	color: var(--gma-text-2);
}
html body .gma-dl-option-note p { margin: 0; }

/* install steps */
html body .gma-dl-steps h2 { margin: 0 0 1rem; font-size: 1.0625rem; font-weight: 800; color: var(--gma-text); }
html body .gma-dl-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: gma-step; display: grid; gap: .875rem; }
html body .gma-dl-steps li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .125rem;
	margin: 0;
	padding-left: 2.75rem;
	min-height: 32px;
	counter-increment: gma-step;
}
html body .gma-dl-steps li::before {
	content: counter(gma-step);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--gma-brand-soft);
	color: var(--gma-brand-text);
	font-size: .875rem;
	font-weight: 800;
}
html body .gma-dl-steps li b { font-size: .9375rem; font-weight: 700; color: var(--gma-text); }
html body .gma-dl-steps li span { font-size: .875rem; line-height: 1.5; color: var(--gma-muted); }
html body .gma-dl-help { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--gma-border); font-size: .875rem; color: var(--gma-muted); }
html body .gma-dl-help a { font-weight: 700; color: var(--gma-brand-text) !important; }

html body .gma-dl-ad { text-align: center; overflow: hidden; }
html body .gma-dl .tele-join { margin: 0; }
html body .gma-dl-foot { padding: 1.25rem 1rem 1.75rem; text-align: center; }
html body .gma-dl-foot .copyright,
html body .gma-dl-foot .copyright p { margin: 0; padding: 0; font-size: .8125rem; font-weight: 500; color: var(--gma-muted) !important; }

/* "safe to download" popup */
html body .details-safe,
html body .fancybox-content {
	background: var(--gma-surface) !important;
	color: var(--gma-text-2);
	border-radius: var(--gma-radius-lg) !important;
	font-size: .9375rem;
	line-height: 1.6;
}
html body .details-safe .title { color: var(--gma-text); font-weight: 800; }
html body .details-safe .closed {
	width: auto;
	padding: 0 1.25rem;
	height: 40px;
	line-height: 40px;
	border-radius: var(--gma-radius);
	background: var(--gma-brand) !important;
	color: var(--gma-brand-ink);
	font-weight: 700;
}

/* version history */
html body .version_history .big_title,
html body .version_history { color: var(--gma-text); }

/* 13. COMMENTS & FORMS ===================================================== */
html body .b-comments .b-head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-bottom: 0;
}
html body .b-comments .b-head .section-title { margin: 0 auto 0 0; }
html body .comments-tree-list { margin: 0; padding: 0; }
html body .comments-tree-item { list-style: none; margin: 0; padding: 0; }
html body .comment {
	margin: 0 !important;
	padding: 1rem 0 !important;
	background: none !important;
	border: 0 !important;
	border-bottom: 1px solid var(--gma-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
html body .comments-tree-list > .comments-tree-item:last-child .comment { border-bottom: 0 !important; }
html body .comment-head {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: .75rem;
	row-gap: .125rem;
	align-items: center;
	min-height: 0;
	padding: 0 !important;
	margin: 0 0 .5rem !important;
	border: 0 !important;
	background: none !important;
	text-align: left;
}
html body .comment-head::after { display: none !important; }
html body .comment-head .avatar-status {
	position: static;
	grid-row: 1 / span 2;
	width: 36px;
	height: 36px;
	margin: 0;
}
html body .avatar-status::after { display: none; }
html body .comment-head .avatar { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; overflow: hidden; background: var(--gma-surface-2); }
html body .comment-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
html body .comment-head .name { grid-column: 2; margin: 0; line-height: 1.3; }
html body .comment-head .name,
html body .comment-head .name a { color: var(--gma-text) !important; font-weight: 700; font-size: .9375rem; }
html body .comment-head .comment-meta { grid-column: 2; }
html body .comment-meta { display: flex; align-items: center; gap: .5rem; margin: 0; }
html body .comment-meta .date,
html body .comment-meta time { color: var(--gma-muted) !important; font-size: .75rem; }
html body .group-label {
	padding: .1rem .45rem;
	border-radius: 999px;
	background: var(--gma-surface-2) !important;
	color: var(--gma-muted) !important;
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .03em;
}
html body .comment-text {
	padding: 0 0 0 calc(36px + .75rem) !important;
	color: var(--gma-text-2);
	font-size: .9375rem;
	line-height: 1.6;
}
html body .comment-text p { margin: 0 0 .5rem; }
html body .comment-foot { padding: 0 0 0 calc(36px + .75rem) !important; border: 0 !important; margin: 0; }
html body .comment-tools { margin: 0; padding: 0; }
html body .comment-reply-link {
	font-size: .8125rem;
	font-weight: 700;
	color: var(--gma-muted) !important;
}
html body .comment-reply-link:hover { color: var(--gma-brand-text) !important; }
html body .comments-tree-list .children,
html body .comments-tree-list ol { padding-left: 1.5rem; border-left: 2px solid var(--gma-border); margin-left: 1rem; }

/* form controls */
html body .form-control,
html body input[type="text"],
html body input[type="email"],
html body input[type="url"],
html body input[type="password"],
html body input[type="search"],
html body textarea,
html body select {
	font: inherit;
	font-size: .9375rem;
	color: var(--gma-text);
	background-color: var(--form-control-bg);
	border: 1px solid var(--gma-border-strong);
	border-radius: var(--gma-radius);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
html body .form-control:focus,
html body input:focus,
html body textarea:focus,
html body select:focus {
	outline: none;
	border-color: var(--gma-brand);
	box-shadow: var(--gma-focus);
}
html body ::placeholder { color: var(--gma-muted); opacity: 1; }
html body #dle-comments-form,
html body .comment-respond { margin: 0; }
html body .comment-notes,
html body .logged-in-as,
html body .addcomment-post,
html body .b-comments .c-muted,
html body #addcom-block .section-title + p,
html body #addcom-block small {
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: var(--gma-muted) !important;
	font-size: .8125rem !important;
}
html body .b-add-comments label.c-muted,
html body .comment-form label.c-muted {
	display: flex;
	align-items: center;
	gap: .5rem;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-size: .8125rem !important;
	font-weight: 500;
	color: var(--gma-muted) !important;
}
html body .b-add-comments textarea,
html body .b-add-comments .form-control,
html body .comment-form textarea,
html body .comment-form .form-control {
	width: 100%;
	min-height: 46px;
	padding: .75rem 1rem;
	border-radius: var(--gma-radius) !important;
	border: 1px solid var(--gma-border-strong) !important;
	background: var(--form-control-bg) !important;
}
html body .b-add-comments textarea { min-height: 120px; resize: vertical; }
html body .b-add-comments input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gma-brand); }
html body .form-submit .btn,
html body .form-submit input[type="submit"],
html body #submit {
	height: 46px;
	padding: 0 1.5rem;
	border: 0;
	border-radius: var(--gma-radius);
	background: var(--gma-brand) !important;
	background-image: none !important;
	color: var(--gma-brand-ink) !important;
	font-weight: 800;
	cursor: pointer;
	box-shadow: none !important;
}
html body .form-submit .btn:hover,
html body #submit:hover { background: var(--gma-brand-hover) !important; }

/* 14. STATIC PAGES, ALERTS, SEARCH, PAGINATION ============================== */
html body .page-sys { padding-top: 1.5rem; }
html body .static-page .title {
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 1.25rem;
	color: var(--gma-text);
}

html body .alert {
	max-width: 40rem;
	margin: 0 auto 2rem;
}
html body .alert_in {
	padding: 1.5rem;
	background: var(--gma-surface) !important;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	color: var(--gma-text-2);
	box-shadow: var(--gma-shadow-sm);
}
html body .alert-title { display: flex; align-items: center; gap: .625rem; font-weight: 800; font-size: 1.125rem; color: var(--gma-text); margin-bottom: .5rem; }
html body .alert-title i { color: var(--gma-brand); display: flex; }
html body .gma-404-search { margin: 1rem 0 .75rem; }
html body .gma-404-search .q-search-text { background: var(--gma-surface); }
html body .gma-404-home { display: inline-flex; align-items: center; height: 42px; padding: 0 1.125rem; }

/* search page */
html body .search-box,
html body .search-box.s-green {
	padding: 0 !important;
	margin: 0 0 1.5rem;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	border-radius: 0;
}
html body .search-box-field { position: relative; display: flex; align-items: center; }
html body .search-box-field input {
	width: 100%;
	height: 52px;
	padding: 0 3.5rem 0 1.125rem;
	background: var(--gma-surface) !important;
	border: 1px solid var(--gma-border-strong) !important;
	border-radius: var(--gma-radius) !important;
	color: var(--gma-text) !important;
	font-size: 1rem;
	box-shadow: var(--gma-shadow-sm);
}
html body .search-box-btn {
	position: absolute;
	right: 4px;
	top: 4px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 10px;
	background: var(--gma-brand) !important;
	color: var(--gma-brand-ink) !important;
	cursor: pointer;
}
html body .search-box-btn svg { width: 22px !important; height: 22px !important; color: currentColor !important; fill: currentColor; }
html body #fullsearch .wrp-min { max-width: none; padding: 0 .375rem !important; }
@media (min-width: 640px) {
	html body #fullsearch .wrp-min { padding: 0 .5rem !important; }
}
html body .search_result_num { margin-top: .75rem; color: var(--gma-muted) !important; font-size: .875rem; }
html body .page-search-bg #dle-content > form,
html body #fullsearch { width: 100%; flex: 0 0 100%; }

/* pagination */
html body .navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	margin: 2rem 0 0;
	padding: 0;
}
html body .pages-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .375rem;
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}
html body .pages-list a,
html body .pages-list span,
html body .page_prev > a,
html body .page_next > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 .75rem;
	margin: 0 !important;
	border-radius: var(--gma-radius) !important;
	border: 1px solid var(--gma-border);
	background: var(--gma-surface) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--gma-text-2) !important;
	font-size: .9375rem;
	font-weight: 700;
	transition: border-color .15s ease, color .15s ease;
}
html body .pages-list a:hover,
html body .page_prev > a:hover,
html body .page_next > a:hover {
	border-color: var(--gma-brand) !important;
	color: var(--gma-brand-text) !important;
	background: var(--gma-surface) !important;
}
html body .pages-list span:not(.nav_ext) {
	background: var(--gma-brand) !important;
	border-color: var(--gma-brand) !important;
	color: var(--gma-brand-ink) !important;
}
html body .pages-list .nav_ext { border: 0; background: none !important; }
html body .page_prev > a svg,
html body .page_next > a svg { width: 20px; height: 20px; }
html body .pages {
	flex: 0 1 auto;
	overflow: visible;
	background: none !important;
	border-radius: 0;
}
html body .pages::before,
html body .pages::after,
html body .pages-list::before,
html body .pages-list::after { display: none !important; }
html body .pages-list { margin: 0 !important; overflow: visible; }
html body .page_prev,
html body .page_next { margin: 0; }
html body .page_prev > span,
html body .page_next > span { display: none; }

/* 15. FOOTER ============================================================== */
html body .footer {
	background: var(--gma-surface) !important;
	border-top: 1px solid var(--gma-border);
	color: var(--gma-muted);
	margin-top: 2rem;
}
html body .dark-foot .footer { margin-top: 2.5rem; }
html body .footer .wrp-min { max-width: var(--gma-container); padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) {
	html body .footer .wrp-min { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
	html body .footer .wrp-min { padding-left: 2rem; padding-right: 2rem; }
}
html body .footer-panel {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: auto !important;
	min-height: 72px;
	padding: 1.25rem 0 !important;
	background: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
@media (max-width: 767px) {
	html body .footer-panel { flex-direction: column; justify-content: center; text-align: center; padding-bottom: 1.5rem !important; }
}
html body .footer-panel .logotype {
	position: static;
	display: inline-flex !important;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}
html body .footer-panel .logo-icon { max-width: 32px; }
html body .footer-panel .logo-icon img { width: 32px; height: 32px; object-fit: contain; }
html body .footer-cont {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.5rem;
	flex: 1 1 auto;
	height: auto !important;
	font-size: .875rem;
	color: var(--gma-muted);
}
@media (max-width: 767px) {
	html body .footer-cont { flex-direction: column; justify-content: center; }
}
html body .footer-cont .copyright,
html body .footer-cont .copyright p { margin: 0; color: var(--gma-muted) !important; font-size: .875rem; }
html body .footer-cont .copyright a,
html body .copyright a { color: var(--gma-text-2) !important; font-weight: 600; }
html body .footer-cont > a[href*="t.me"],
html body .footer-cont > a[aria-label] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--gma-surface-2);
	--color_sosmed_icon: var(--gma-text-2);
}
html body .footer-cont > a[aria-label]:hover { background: var(--gma-brand-soft); --color_sosmed_icon: var(--gma-brand); }
html body .footer-cont > a[aria-label] svg { width: 30px; height: 30px; display: block; transform: translate(8px, 8px); }
html body .footer-submenu-links {
	margin-left: auto;
	padding: 0 !important;
	gap: .5rem 1.25rem !important;
}
@media (max-width: 767px) {
	html body .footer-submenu-links { margin: 0 auto; }
}
html body .footer-submenu-links a { color: var(--gma-text-2) !important; font-weight: 600; font-size: .875rem; }
html body .footer-submenu-links a:hover { color: var(--gma-brand-text) !important; }

html body .upper.scrollup {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 50;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 50%;
	background: var(--gma-surface) !important;
	border: 1px solid var(--gma-border);
	box-shadow: var(--gma-shadow);
	color: var(--gma-text-2) !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
html body.gma-scrolled .upper.scrollup {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .2s ease, transform .2s ease;
}
html body .upper.scrollup:hover { color: var(--gma-brand) !important; }
html body .upper.scrollup svg { width: 20px; height: 20px; }

/* 15b. FOOTER (template/footer-bar.php) ===================================== */
html body .gma-footer {
	margin-top: 2.5rem;
	background: var(--gma-surface) !important;
	border-top: 1px solid var(--gma-border);
	color: var(--gma-muted);
}
html body .dark-foot .gma-footer { margin-top: 2.5rem; }
html body .gma-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2.5rem;
	padding: 2rem 0 1.5rem;
}
html body .gma-foot-brand { display: flex; flex-direction: column; gap: .5rem; max-width: 22rem; margin-right: auto; }
html body .gma-foot-logo { display: inline-flex; text-decoration: none !important; }
html body .gma-foot-logo .gma-logo-mark { width: 32px; height: 32px; }
html body .gma-foot-logo .gma-logo-text { font-size: 1.1875rem; }
html body .gma-foot-tagline { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--gma-muted); }
html body .gma-foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
html body .gma-foot-links a {
	color: var(--gma-text-2) !important;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none !important;
}
html body .gma-foot-links a:hover { color: var(--gma-brand-text) !important; }
html body .gma-foot-social { display: flex; gap: .5rem; }
html body .gma-foot-social:empty { display: none; }
html body .gma-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	background: var(--gma-surface);
	color: var(--gma-text-2) !important;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
html body .gma-social:hover { border-color: var(--gma-brand); color: var(--gma-brand) !important; background: var(--gma-brand-soft); }
html body .gma-social svg { display: block; width: 18px; height: 18px; }
html body .gma-foot-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	padding: 1rem 0 1.25rem;
	border-top: 1px solid var(--gma-border);
}
html body .gma-foot-bottom .copyright,
html body .gma-foot-bottom .copyright p {
	margin: 0;
	padding: 0;
	max-width: none;
	font-size: .8125rem;
	font-weight: 500;
	color: var(--gma-muted) !important;
	text-align: left;
}
html body .gma-foot-bottom .copyright a { color: var(--gma-text-2) !important; font-weight: 600; }
@media (max-width: 767px) {
	html body .gma-foot { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.75rem 0 1.25rem; }
	html body .gma-foot-links { gap: .625rem 1.25rem; }
	html body .gma-foot-bottom { padding-bottom: 5rem; }
}

/* 16. MODALS, PLUGINS, ADS ================================================= */
html body .modal-content,
html body .dropdown-menu,
html body .remodal {
	background: var(--gma-surface) !important;
	color: var(--gma-text);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg) !important;
	box-shadow: var(--gma-shadow-lg) !important;
}
html body .modal-title,
html body #report-post-modal-title { color: var(--gma-text) !important; font-weight: 800; }
html body .modal-backdrop { background: rgba(8, 12, 18, .6); }
html body .remodal-cancel,
html body .remodal-confirm {
	border-radius: var(--gma-radius) !important;
	font-weight: 700;
	min-width: 7rem;
}
html body .remodal-cancel { background: var(--gma-surface-2) !important; color: var(--gma-text) !important; }
html body .remodal-confirm { background: var(--gma-brand) !important; color: var(--gma-brand-ink) !important; }
html body .remodal-overlay { background: rgba(8, 12, 18, .6) !important; }
html body .dropdown-menu a { color: var(--gma-text-2) !important; }
html body .dropdown-menu a:hover { background: var(--gma-surface-2); color: var(--gma-text) !important; }

/* star ratings plugin */
html body .kk-star-ratings .kksr-legend { opacity: 1 !important; color: var(--gma-muted); }

/* ads: never overflow on phones */
html body ins.adsbygoogle { max-width: 100%; overflow: hidden; }
html body .ads-here,
html body .adv,
html body .ads { max-width: 100%; overflow: hidden; }

/* legacy custom rule that faded whole cards */
html body time.meta-date,
html body div.meta.muted,
html body div.entry-list.list-c3,
html body div.entry.entry-news,
html body .entry-coms .description,
html body time.date.muted,
html body span.fw-b.truncate,
html body div.entry.entry-coms div.item,
html body div.item h2.title a.item-link span.truncate { opacity: 1 !important; }

/* 16b. SEARCH TRIGGER + SEARCH PALETTE ===================================== */
html body .gma-search-trigger {
	display: none;
	align-items: center;
	gap: .5rem;
	width: 260px;
	height: 40px;
	padding: 0 .5rem 0 .75rem;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	background: var(--gma-surface-2);
	color: var(--gma-muted);
	font: inherit;
	font-size: .875rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
html body .gma-search-trigger:hover { border-color: var(--gma-border-strong); background: var(--gma-surface); color: var(--gma-text-2); }
html body .gma-search-trigger svg { flex: 0 0 auto; color: currentColor; }
html body .gma-search-trigger-text { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .gma-kbd,
html body .gma-sp kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 .375rem;
	border: 1px solid var(--gma-border);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: var(--gma-surface);
	color: var(--gma-muted);
	font: inherit;
	font-size: .6875rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}
@media (min-width: 992px) {
	html body .gma-search-trigger { display: inline-flex; }
	html body .head-tools .q-search { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1140px) {
	html body .gma-search-trigger { width: 190px; }
	html body .gma-search-trigger .gma-kbd { display: none; }
}

html.gma-sp-open,
html.gma-sp-open body { overflow: hidden; }
html body .gma-sp {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 1rem 1rem;
}
html body .gma-sp[hidden] { display: none; }
html body .gma-sp-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 18, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .18s ease;
}
html body .gma-sp-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: min(560px, 76vh);
	overflow: hidden;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-lg);
	opacity: 0;
	transform: translateY(-8px) scale(.985);
	transition: opacity .18s ease, transform .18s ease;
}
html body .gma-sp.is-open .gma-sp-backdrop { opacity: 1; }
html body .gma-sp.is-open .gma-sp-panel { opacity: 1; transform: none; }

html body .gma-sp-bar {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex: 0 0 auto;
	height: 60px;
	padding: 0 .75rem 0 1rem;
	margin: 0;
	border-bottom: 1px solid var(--gma-border);
}
html body .gma-sp-bar-icon { display: flex; color: var(--gma-brand); }
html body input.gma-sp-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0 .25rem;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--gma-text);
	font-size: 1.0625rem;
	font-weight: 500;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
html body input.gma-sp-input::-webkit-search-cancel-button { display: none; }
html body .gma-sp-clear,
html body .gma-sp-cancel,
html body .gma-sp-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	color: var(--gma-muted);
	cursor: pointer;
	font: inherit;
}
html body .gma-sp-clear { width: 32px; height: 32px; border-radius: 8px; }
html body .gma-sp-clear[hidden] { display: none; }
html body .gma-sp-clear:hover,
html body .gma-sp-remove:hover { background: var(--gma-surface-2); color: var(--gma-text); }
html body .gma-sp-cancel { display: none; padding: 0 .25rem; font-size: .9375rem; font-weight: 700; color: var(--gma-brand-text); }

html body .gma-sp-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: .375rem .5rem .5rem; }
html body .gma-sp-group + .gma-sp-group,
html body .gma-sp-group + .gma-sp-option,
html body .gma-sp-empty + .gma-sp-option { margin-top: .25rem; }
html body .gma-sp-group-title {
	padding: .75rem .75rem .375rem;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gma-muted);
}
html body .gma-sp-option {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 48px;
	padding: .5rem .75rem;
	border-radius: 10px;
	color: var(--gma-text) !important;
	text-decoration: none !important;
	scroll-margin: .5rem;
}
html body .gma-sp-option.is-active { background: var(--gma-surface-2); }
html body .gma-sp-thumb {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--gma-surface-2);
	box-shadow: inset 0 0 0 1px var(--gma-border);
}
html body .gma-sp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body .gma-sp-text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; flex: 1 1 auto; }
html body .gma-sp-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.35;
}
html body .gma-sp-title mark { background: none; color: var(--gma-brand-text); font-weight: 800; padding: 0; }
html body .gma-sp-meta { font-size: .75rem; font-weight: 500; color: var(--gma-muted); }
html body .gma-sp-go { display: flex; color: var(--gma-muted); opacity: 0; transition: opacity .12s ease; }
html body .gma-sp-option.is-active .gma-sp-go { opacity: 1; }
html body .gma-sp-lead {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--gma-surface-2);
	color: var(--gma-muted);
}
html body .gma-sp-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 500; }
html body .gma-sp-all .gma-sp-lead { background: var(--gma-brand-soft); color: var(--gma-brand); }
html body .gma-sp-all .gma-sp-label strong { font-weight: 700; color: var(--gma-text); }
html body .gma-sp-row { position: relative; }
html body .gma-sp-row .gma-sp-option { padding-right: 3rem; }
html body .gma-sp-remove {
	position: absolute;
	top: 50%;
	right: .5rem;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 8px;
}
html body .gma-sp-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: .25rem .75rem .75rem; }
html body .gma-sp-chip {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 .875rem;
	border: 1px solid var(--gma-border);
	border-radius: 999px;
	background: var(--gma-surface);
	color: var(--gma-text-2) !important;
	font-size: .8125rem;
	font-weight: 600;
	text-decoration: none !important;
}
html body .gma-sp-chip:hover { border-color: var(--gma-brand); color: var(--gma-brand-text) !important; }
html body .gma-sp-hint { font-size: .8125rem; color: var(--gma-muted); padding: .25rem 0; }
html body .gma-sp-empty { display: flex; flex-direction: column; gap: .25rem; padding: 1.5rem .75rem 1rem; text-align: center; }
html body .gma-sp-empty strong { font-size: .9375rem; color: var(--gma-text); }
html body .gma-sp-empty span { font-size: .8125rem; color: var(--gma-muted); }
html body .gma-sp-skel { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; }
html body .gma-sp-skel > span:first-child { flex: 0 0 40px; height: 40px; border-radius: 10px; }
html body .gma-sp-skel > span:last-child { display: flex; flex-direction: column; gap: .375rem; flex: 1 1 auto; }
html body .gma-sp-skel i { display: block; height: 10px; border-radius: 6px; width: 70%; }
html body .gma-sp-skel i + i { width: 35%; }
html body .gma-sp-skel > span:first-child,
html body .gma-sp-skel i {
	background: linear-gradient(90deg, var(--gma-surface-2) 0%, var(--gma-surface-3) 50%, var(--gma-surface-2) 100%);
	background-size: 200% 100%;
	animation: gma-shimmer 1.1s linear infinite;
}
@keyframes gma-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
html body .gma-sp-foot {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 0 0 auto;
	padding: .625rem 1rem;
	border-top: 1px solid var(--gma-border);
	background: var(--gma-surface);
	color: var(--gma-muted);
	font-size: .75rem;
}
html body .gma-sp-foot > span { display: inline-flex; align-items: center; gap: .25rem; }
html body .gma-sp-foot kbd { min-width: 20px; height: 20px; padding: 0 .25rem; }
html body .gma-sp-foot kbd svg { width: 12px; height: 12px; }
html body .gma-sp-status { margin-left: auto; }

@media (max-width: 639px) {
	html body .gma-sp { padding: 0; }
	html body .gma-sp-panel {
		max-width: none;
		max-height: none;
		height: 100%;
		border: 0;
		border-radius: 0;
		transform: translateY(12px);
	}
	html body .gma-sp-bar { height: 64px; padding: 0 .75rem; }
	html body .gma-sp-cancel { display: inline-flex; }
	html body .gma-sp-foot { display: none; }
	html body .gma-sp-option { min-height: 56px; }
}

/* search palette: start screen (trending + category tiles) */
html body .gma-sp-panel { max-width: 680px; border-radius: var(--gma-radius-xl); }
html body .gma-sp-bar { height: 64px; padding: 0 .875rem 0 1.125rem; }
html body .gma-sp-bar-icon svg { width: 22px; height: 22px; }
html body input.gma-sp-input { font-size: 1.125rem; }
html body .gma-sp-esc {
	display: none;
	align-items: center;
	height: 26px;
	padding: 0 .5rem;
	border: 1px solid var(--gma-border-strong);
	border-radius: 7px;
	background: var(--gma-surface-2);
	color: var(--gma-muted);
	font: inherit;
	font-size: .75rem;
	font-weight: 700;
	cursor: pointer;
}
html body .gma-sp-esc:hover { color: var(--gma-text); border-color: var(--gma-muted); }
@media (min-width: 640px) {
	html body .gma-sp-esc { display: inline-flex; }
}
html body .gma-sp-trending .gma-sp-option { gap: .875rem; }
html body .gma-sp-trending .gma-sp-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
html body .gma-sp-rank {
	flex: 0 0 auto;
	margin-left: auto;
	padding: .2rem .5rem;
	border-radius: 999px;
	background: var(--gma-surface-2);
	color: var(--gma-muted);
	font-size: .75rem;
	font-weight: 800;
}
html body .gma-sp-option.is-active .gma-sp-rank { background: var(--gma-brand-soft); color: var(--gma-brand-text); }
html body .gma-sp-cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .5rem;
	padding: .25rem .75rem .875rem;
}
@media (min-width: 560px) {
	html body .gma-sp-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
html body .gma-sp-cat {
	display: flex;
	align-items: center;
	gap: .625rem;
	min-width: 0;
	padding: .625rem .75rem;
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius);
	background: var(--gma-surface);
	color: var(--gma-text) !important;
	text-decoration: none !important;
	transition: border-color .15s ease, background-color .15s ease;
}
html body .gma-sp-cat:hover,
html body .gma-sp-cat:focus-visible { border-color: var(--gma-brand); background: var(--gma-surface-2); outline: 0; }
html body .gma-sp-cat-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--gma-brand-soft);
	color: var(--gma-brand-text);
}
html body .gma-sp-cat-icon svg { width: 18px; height: 18px; }
html body .gma-sp-cat-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
html body .gma-sp-cat-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; font-weight: 700; }
html body .gma-sp-cat-text small { font-size: .6875rem; font-weight: 600; color: var(--gma-muted); }

/* 16c. TELEGRAM BANNER (home widget) ======================================= */
html body .gma-tg {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1rem 1rem 1.125rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-sm);
	transition: opacity .2s ease, transform .2s ease;
}
html body .gma-tg-leaving { opacity: 0; transform: translateY(-4px) scale(.99); }
html body .gma-tg-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: #229ED9;
	color: #fff;
}
html body .gma-tg-icon svg { transform: translateX(-1px); }
html body .gma-tg-text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; flex: 1 1 auto; }
html body .gma-tg-text strong { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: var(--gma-text); }
html body .gma-tg-text span { font-size: .875rem; color: var(--gma-muted); }
html body .gma-tg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 42px;
	padding: 0 1.125rem;
	border-radius: var(--gma-radius);
	background: #229ED9;
	color: #fff !important;
	font-size: .9375rem;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .15s ease;
}
html body .gma-tg-btn:hover { background: #1c8cc2; }
html body .gma-tg-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin-left: -.25rem;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--gma-muted);
	cursor: pointer;
}
html body .gma-tg-close:hover { background: var(--gma-surface-2); color: var(--gma-text); }
@media (max-width: 639px) {
	/* phones: one compact row (icon, title, Join, close) */
	html body .gma-tg { flex-wrap: nowrap; gap: .625rem; padding: .625rem .375rem .625rem .625rem; border-radius: var(--gma-radius); }
	html body .gma-tg-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; }
	html body .gma-tg-icon svg { width: 18px; height: 18px; }
	html body .gma-tg-text { padding: 0; }
	html body .gma-tg-text strong {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: .8125rem;
		line-height: 1.3;
	}
	html body .gma-tg-text span { display: none; }
	html body .gma-tg-btn { flex: 0 0 auto; height: 34px; padding: 0 .75rem; border-radius: 9px; font-size: .8125rem; }
	html body .gma-tg-close { position: static; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; border-radius: 8px; }
	html body .gma-tg-close svg { width: 16px; height: 16px; }
	html body section:has(.gma-tg) { margin-top: 0; margin-bottom: 1.5rem; }
	html body .section:has(+ section .gma-tg) { margin-bottom: 1rem; }
}
html.gma-tg-off section:has(.gma-tg),
html.gma-tg-off .gma-tg { display: none !important; }

/* 16d. ACCENT PICKER (header) ============================================== */
html body .gma-accent { position: relative; display: flex; align-items: center; }
html body .gma-accent-toggle { position: relative; }
/* small dot on the palette icon shows the current colour */
html body .gma-accent-now {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--gma-brand);
	box-shadow: 0 0 0 2px var(--gma-surface);
	transition: background-color .2s ease;
}
html body .gma-accent-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: -3rem;
	z-index: 120;
	width: 232px;
	padding: .875rem .875rem 1rem;
	background: var(--gma-surface);
	border: 1px solid var(--gma-border);
	border-radius: var(--gma-radius-lg);
	box-shadow: var(--gma-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px) scale(.98);
	transform-origin: top right;
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
@media (min-width: 768px) {
	html body .gma-accent-panel { right: 0; }
}
html body .gma-accent.is-open .gma-accent-panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .15s ease, transform .15s ease, visibility 0s;
}
html body .gma-accent-title {
	margin: 0 0 .75rem !important;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gma-muted);
}
html body .gma-accent-list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: .5rem;
}
html body .gma-accent-dot {
	position: relative;
	width: 28px;
	height: 28px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dot);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
html body .gma-accent-dot:hover { transform: scale(1.1); }
html body .gma-accent-dot[aria-checked="true"] { box-shadow: 0 0 0 2px var(--gma-surface), 0 0 0 4px var(--dot); }
/* tick on the selected colour */
html body .gma-accent-dot[aria-checked="true"]::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.55 17.6 4.6 12.65l1.4-1.4 3.55 3.55 8.45-8.45 1.4 1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.55 17.6 4.6 12.65l1.4-1.4 3.55 3.55 8.45-8.45 1.4 1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
html body .gma-accent-dot[data-accent="amber"][aria-checked="true"]::after { background: #1f1600; }
html body .gma-accent-dot:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--gma-surface), 0 0 0 4px var(--gma-text); }

/* menu icons (outline set from gma_nav_icons) */
html body .hmenu .gma-nav-ico { background: none !important; box-shadow: none !important; color: inherit !important; }
html body .hmenu .gma-nav-ico svg { width: 20px; height: 20px; fill: none !important; stroke: currentColor; }

/* phones/tablets: hamburger sits close to the logo */
@media (max-width: 991px) {
	html body .header-panel > .menu-butter { margin-left: -10px !important; margin-right: -12px !important; }
	html body .header-panel > .logotype { margin-left: 0 !important; }
}

/* 03b. MOBILE DRAWER (header.php #mobilemenu) =============================== */
html body .gma-drawer-head,
html body .gma-drawer-extra { display: none; }
@media (max-width: 991px) {
	html body .head-tools-panel {
		display: flex !important;
		flex-direction: column;
		padding: .875rem 1rem 1.5rem;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	html body .head-tools-panel::before { display: none; }
	html body .gma-drawer-head {
		order: -2;
		display: flex;
		align-items: center;
		height: 44px;
		margin: 0 3rem 1rem 0;
	}
	html body .head-tools-panel .q-search { order: -1; margin-bottom: 1rem; }
	html body .head-tools-panel .q-search-label { display: none !important; }
	html body .head-tools-panel .q-search .q-search-btn { top: 50%; bottom: auto; transform: translateY(-50%); }
	html body .head-tools-panel .q-search-text { height: 48px; border-radius: var(--gma-radius) !important; background: var(--gma-surface-2) !important; border-color: transparent !important; }
	html body .head-tools-panel .q-search-text:focus { background: var(--gma-surface) !important; border-color: var(--gma-brand) !important; }
	html body .menu-close { top: .875rem !important; }

	/* menu items with icon tiles */
	html body .head-tools .hmenu > a > span { padding: .5rem .625rem; font-weight: 700; }
	html body .head-tools .hmenu > a .gma-nav-ico {
		min-width: 38px;
		max-width: 38px;
		height: 38px;
		border-radius: 11px;
		background: var(--gma-surface-2) !important;
		color: var(--gma-text-2) !important;
	}
	html body .head-tools .hmenu > a.active .gma-nav-ico,
	html body .head-tools .hmenu > a[aria-current="page"] .gma-nav-ico { background: var(--gma-brand) !important; color: var(--gma-brand-ink) !important; }
	html body .head-tools .hmenu > a.active > span { background: var(--gma-brand-soft) !important; }
	html body .head-tools .hmenu > a > span::after {
		content: "";
		width: 16px;
		height: 16px;
		margin-left: auto;
		background: var(--gma-border-strong);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.29 6.71a1 1 0 0 0 0 1.41L13.17 12l-3.88 3.88a1 1 0 1 0 1.41 1.41l4.59-4.59a1 1 0 0 0 0-1.41L10.7 6.7a1 1 0 0 0-1.41.01z'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.29 6.71a1 1 0 0 0 0 1.41L13.17 12l-3.88 3.88a1 1 0 1 0 1.41 1.41l4.59-4.59a1 1 0 0 0 0-1.41L10.7 6.7a1 1 0 0 0-1.41.01z'/%3E%3C/svg%3E") center / contain no-repeat;
	}
	html body .head-tools .hmenu > a.active > span::after { background: var(--gma-brand); }

	/* appearance, telegram, links */
	html body .gma-drawer-extra { display: block; margin-top: 1.25rem; }
	html body .gma-drawer-title {
		margin: 0 0 .5rem .25rem !important;
		font-size: .6875rem;
		font-weight: 800;
		letter-spacing: .07em;
		text-transform: uppercase;
		color: var(--gma-muted);
	}
	html body .gma-drawer-card {
		border: 1px solid var(--gma-border);
		border-radius: var(--gma-radius-lg);
		background: var(--gma-surface);
		overflow: hidden;
	}
	html body .gma-drawer-row {
		display: flex;
		align-items: center;
		gap: .75rem;
		width: 100%;
		min-height: 52px;
		margin: 0;
		padding: .5rem .75rem;
		border: 0;
		background: none;
		color: var(--gma-text);
		font: inherit;
		font-size: .9375rem;
		font-weight: 600;
		text-align: left;
		cursor: pointer;
	}
	html body button.gma-drawer-row { border-bottom: 1px solid var(--gma-border); }
	html body .gma-drawer-row-ico {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border-radius: 9px;
		background: var(--gma-surface-2);
		color: var(--gma-text-2);
	}
	html body .gma-drawer-row-text { flex: 1 1 auto; }
	html body .gma-switch {
		position: relative;
		flex: 0 0 auto;
		width: 42px;
		height: 24px;
		border-radius: 999px;
		background: var(--gma-border-strong);
		transition: background-color .2s ease;
	}
	html body .gma-switch i {
		position: absolute;
		top: 3px;
		left: 3px;
		width: 18px;
		height: 18px;
		border-radius: 50%;
		background: #fff;
		box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
		transition: transform .2s ease;
	}
	html.darktheme body .gma-switch { background: var(--gma-brand); }
	html.darktheme body .gma-switch i { transform: translateX(18px); }
	html body .gma-drawer-colors { min-height: 0; padding-bottom: .25rem; cursor: default; }
	html body .gma-drawer-dots { display: flex; gap: .625rem; padding: .375rem .75rem .875rem calc(.75rem + 32px + .75rem); }
	html body .gma-drawer-dots .gma-accent-dot { width: 26px; height: 26px; margin: 0; }
	html body .gma-drawer-tg {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: .5rem;
		height: 48px;
		margin-top: .875rem;
		border-radius: var(--gma-radius);
		background: var(--gma-telegram-soft);
		color: var(--gma-telegram) !important;
		font-weight: 700;
		text-decoration: none !important;
	}
	html body .gma-drawer-links {
		display: flex;
		flex-wrap: wrap;
		gap: .375rem 1rem;
		margin-top: 1.125rem;
		padding: 0 .25rem;
	}
	html body .gma-drawer-links a { font-size: .8125rem; font-weight: 600; color: var(--gma-muted) !important; text-decoration: none !important; }
	html body .gma-drawer-links a:hover { color: var(--gma-text) !important; }
}

/* search palette on phones: always full width, nothing pushed off-screen */
@media (max-width: 639px) {
	html body .gma-sp-panel { width: 100% !important; max-width: 100vw !important; border-radius: 0 !important; overflow-x: hidden; }
	html body .gma-sp-bar { padding: 0 .75rem !important; gap: .5rem; }
	html body .gma-sp-bar > * { min-width: 0; }
	html body .gma-sp-cancel { flex: 0 0 auto; }
	html body .gma-sp-body { overflow-x: hidden; padding-left: .375rem; padding-right: .375rem; }
	html body .gma-sp-trending .gma-sp-option { gap: .75rem; }
	html body .gma-sp-rank { padding: .15rem .4rem; font-size: .6875rem; }
	html body .gma-sp-cats { padding-left: .5rem; padding-right: .5rem; }
}
@media (max-width: 359px) {
	html body .gma-sp-rank { display: none; }
}

/* 17. UTILITIES ============================================================ */
html body a:focus-visible,
html body button:focus-visible,
html body [tabindex]:focus-visible,
html body .btn:focus-visible {
	outline: 2px solid var(--gma-brand);
	outline-offset: 2px;
	border-radius: var(--gma-radius-sm);
}

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

@media print {
	html body .header,
	html body .footer,
	html body .dark-foot,
	html body .b-comments,
	html body .upper.scrollup,
	html body ins.adsbygoogle { display: none !important; }
	html body .block { border: 0; box-shadow: none; }
}
