/*!
 * GeekMag 3 – main stylesheet
 * Tokens → base → layout → header → components → article → widgets → footer.
 */

/* ------------------------------------------------------------------ */
/* Fonts (self-hosted)                                                 */
/* ------------------------------------------------------------------ */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"), url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
	--gm-accent: #f37920;
	--gm-brand: #283044;
	--gm-brand-deep: #202637;

	--gm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gm-font-heading: "Poppins", "Inter", system-ui, sans-serif;
	--gm-font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--gm-container: 1320px;
	--gm-gutter: clamp(16px, 3vw, 28px);
	--gm-gap: clamp(18px, 2.4vw, 28px);
	--gm-sidebar: 340px;
	--gm-radius-sm: 8px;
	--gm-radius: 14px;
	--gm-radius-lg: 20px;
	--gm-logo-h: 72px;
	--gm-header-pad: 28px;
	--gm-logo-w-mobile: 200px;
	--gm-nav-h: 64px;
	--gm-ease: cubic-bezier(.2, .7, .2, 1);

	/* Light scheme */
	--gm-bg: #f4f5f7;
	--gm-surface: #ffffff;
	--gm-surface-2: #f1f3f6;
	--gm-surface-3: #e8ebf0;
	--gm-text: #2b3242;
	--gm-heading: #161c2a;
	--gm-muted: #5f6879;
	--gm-border: #e3e6ec;
	--gm-border-strong: #cfd4dd;
	--gm-accent-text: color-mix(in srgb, var(--gm-accent) 78%, #3a1600);
	--gm-accent-soft: color-mix(in srgb, var(--gm-accent) 12%, transparent);
	--gm-on-accent: #ffffff;
	--gm-code-bg: #0f1420;
	--gm-code-text: #e6e9ef;
	--gm-inline-code-bg: color-mix(in srgb, var(--gm-accent) 10%, var(--gm-surface-2));
	--gm-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
	--gm-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px -6px rgba(16, 24, 40, .10);
	--gm-shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, .25);
	--gm-header-text: rgba(255, 255, 255, .92);
	--gm-header-muted: rgba(255, 255, 255, .62);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--gm-bg: #0d111a;
	--gm-surface: #151b27;
	--gm-surface-2: #1b2232;
	--gm-surface-3: #242d40;
	--gm-text: #cfd5e1;
	--gm-heading: #f3f5f9;
	--gm-muted: #929cb0;
	--gm-border: #262f42;
	--gm-border-strong: #34405a;
	--gm-accent-text: color-mix(in srgb, var(--gm-accent) 82%, #ffffff);
	--gm-accent-soft: color-mix(in srgb, var(--gm-accent) 18%, transparent);
	--gm-code-bg: #0a0e16;
	--gm-inline-code-bg: #222b3d;
	--gm-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--gm-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -8px rgba(0, 0, 0, .55);
	--gm-shadow-lg: 0 20px 44px -12px rgba(0, 0, 0, .7);
	--gm-brand: color-mix(in srgb, var(--gm-brand) 55%, #0b0f17);
	--gm-brand-deep: #090c13;
	color-scheme: dark;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--gm-nav-h) + 16px); }
body {
	margin: 0;
	background: var(--gm-bg);
	color: var(--gm-text);
	font-family: var(--gm-font);
	font-size: 16px;
	line-height: 1.6;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color .25s var(--gm-ease), color .25s var(--gm-ease);
}
body.custom-background { background-color: var(--gm-bg); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--gm-accent-text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gm-accent); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--gm-heading); font-family: var(--gm-font-heading); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.45rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }
p { margin: 0 0 1.1em; }
hr { height: 1px; margin: 2em 0; border: 0; background: var(--gm-border); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--gm-accent) 30%, transparent); }
:focus-visible { outline: 2px solid var(--gm-accent); outline-offset: 2px; border-radius: 4px; }
.gm-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.gm-skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; border-radius: var(--gm-radius-sm); background: var(--gm-accent); color: #fff; font-weight: 600; transform: translateY(-200%); transition: transform .2s; }
.gm-skip-link:focus { transform: none; color: #fff; }
.clear, .clearfix { clear: both; }
.gm-accent { color: var(--gm-accent-text); }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sticky, .bypostauthor { position: relative; }
.wp-caption, figure { max-width: 100%; margin: 0 0 1.5em; }
.wp-caption-text, figcaption { margin-top: .6em; color: var(--gm-muted); font-size: .875rem; text-align: center; }

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */
.gm-container { width: 100%; max-width: calc(var(--gm-container) + 2 * var(--gm-gutter)); margin-inline: auto; padding-inline: var(--gm-gutter); }
.gm-main { display: block; outline: 0; }
.gm-page { padding-block: clamp(20px, 3vw, 40px) clamp(40px, 5vw, 72px); }
.gm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gm-gap) clamp(28px, 3vw, 44px); align-items: start; }
.gm-layout--sidebar { grid-template-columns: minmax(0, 1fr) var(--gm-sidebar); }
.gm-layout__main { min-width: 0; }
.gm-layout__aside { min-width: 0; height: 100%; }
.gm-sidebar.is-sticky { position: sticky; top: calc(var(--gm-sticky-offset, 16px) + 16px); }
.gm-layout--full .gm-article, .gm-layout--full .gm-comments, .gm-layout--full .gm-author--box, .gm-layout--full .gm-postnav, .gm-layout--full .gm-review, .gm-layout--full > .gm-layout__main > .gm-ad { max-width: 880px; margin-inline: auto; }
@media (max-width: 1080px) {
	.gm-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
	.gm-sidebar.is-sticky { position: static; }
}

.gm-grid { display: grid; gap: var(--gm-gap); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.gm-grid--2 { --cols: 2; }
.gm-grid--3 { --cols: 3; }
.gm-grid--4 { --cols: 4; }
.gm-stack { display: grid; gap: var(--gm-gap); }
@media (max-width: 1180px) { .gm-grid--4 { --cols: 3; } }
@media (max-width: 960px) { .gm-grid--3, .gm-grid--4 { --cols: 2; } }
@media (max-width: 620px) { .gm-grid { --cols: 1; } }
.gm-layout--sidebar .gm-grid--3 { --cols: 2; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.gm-header { position: relative; z-index: 50; color: var(--gm-header-text); }
.gm-topbar { background: var(--gm-brand-deep); font-size: .85rem; }
.gm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.gm-topbar__date { color: var(--gm-header-muted); }
.gm-topmenu { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.gm-topmenu a { color: var(--gm-header-muted); }
.gm-topmenu a:hover { color: #fff; }

.gm-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gm-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--gm-header-muted); transition: background .15s, color .15s, transform .15s; }
.gm-social a:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: translateY(-1px); }
.gm-social .gm-icon { width: 17px; height: 17px; }

.gm-masthead { background: var(--gm-brand); background-size: cover; background-position: center; }
.gm-masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: var(--gm-header-pad); }
.gm-logo { margin: 0; font-size: inherit; line-height: 0; }
.gm-logo a { display: inline-block; }
.gm-logo img { display: block; width: auto; height: var(--gm-logo-h); max-width: min(100%, 420px); object-fit: contain; }
.gm-logo__text { color: #fff; font-family: var(--gm-font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.gm-masthead__ad { flex: 0 1 728px; min-width: 0; max-width: 728px; overflow: hidden; }
.gm-header--v2 .gm-masthead__inner { flex-direction: column; text-align: center; }
.gm-header--v3 .gm-logo--full img { height: auto; max-height: 220px; width: 100%; max-width: 100%; }
.gm-header--v3 .gm-masthead__inner { justify-content: center; }

.gm-navbar { position: relative; z-index: 40; background: var(--gm-surface); color: var(--gm-heading); border-bottom: 1px solid var(--gm-border); box-shadow: var(--gm-shadow-sm); transition: background .25s, box-shadow .2s; }
.gm-navbar.is-sticky-enabled { position: sticky; top: var(--gm-adminbar, 0px); }
.gm-navbar.is-stuck { box-shadow: 0 6px 24px -10px rgba(16, 24, 40, .25); }
.gm-navbar__inner { display: flex; align-items: center; gap: 20px; min-height: var(--gm-nav-h); }
.gm-navbar__brand { display: none; flex: none; }
.gm-navbar__brand .gm-logo img { height: 34px; }
.gm-navbar--v4 { background: var(--gm-brand); color: var(--gm-header-text); border-bottom: 0; }
.gm-navbar--v4 .gm-navbar__brand,
.gm-navbar.is-stuck .gm-navbar__brand { display: block; }
.gm-navbar--v4 .gm-navbar__brand .gm-logo img { height: min(var(--gm-logo-h), 48px); }
.gm-navbar.is-stuck:not(.gm-navbar--v4) { background: color-mix(in srgb, var(--gm-brand) 96%, transparent); color: var(--gm-header-text); border-bottom-color: transparent; backdrop-filter: saturate(1.4) blur(10px); }

.gm-nav { flex: 1 1 auto; min-width: 0; }
.gm-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gm-menu li { position: relative; }
.gm-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; color: inherit; font-family: var(--gm-font-heading); font-size: 1rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.gm-menu > li > a:hover, .gm-menu > li:focus-within > a { background: var(--gm-surface-2); color: var(--gm-heading); }
.gm-navbar.is-stuck .gm-menu > li > a:hover, .gm-navbar--v4 .gm-menu > li > a:hover,
.gm-navbar.is-stuck .gm-menu > li:focus-within > a, .gm-navbar--v4 .gm-menu > li:focus-within > a { background: rgba(255, 255, 255, .1); color: #fff; }
.gm-menu > .current-menu-item > a, .gm-menu > .current-menu-ancestor > a, .gm-menu > .current-post-ancestor > a, .gm-menu > .current-category-ancestor > a { color: var(--gm-accent-text); }
.gm-navbar.is-stuck .gm-menu > .current-menu-item > a, .gm-navbar--v4 .gm-menu > .current-menu-item > a { color: var(--gm-accent); }
.gm-menu > .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.gm-menu .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 240px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); box-shadow: var(--gm-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s; }
.gm-menu .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.gm-menu li:hover > .sub-menu, .gm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.gm-menu .sub-menu .sub-menu { top: -8px; left: calc(100% + 8px); }
.gm-menu .sub-menu a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--gm-text); font-size: .95rem; font-weight: 500; }
.gm-menu .sub-menu a:hover, .gm-menu .sub-menu .current-menu-item > a { background: var(--gm-accent-soft); color: var(--gm-accent-text); }
.gm-menu .sub-menu .menu-item-has-children > a::after { content: "›"; opacity: .6; }

.gm-navbar__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gm-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; transition: background .15s, color .15s; }
.gm-iconbtn:hover { background: var(--gm-surface-2); color: var(--gm-accent-text); }
.gm-navbar.is-stuck .gm-iconbtn:hover, .gm-navbar--v4 .gm-iconbtn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.gm-iconbtn .gm-icon { width: 21px; height: 21px; }
.gm-menu-open { display: none; }
.gm-theme-toggle__sun { display: none; }
[data-theme="dark"] .gm-theme-toggle__sun { display: block; }
[data-theme="dark"] .gm-theme-toggle__moon { display: none; }

@media (max-width: 1080px) {
	.gm-topbar, .gm-masthead { display: none; }
	.gm-nav { display: none; }
	.gm-menu-open { display: inline-grid; }
	.gm-navbar { position: sticky; top: var(--gm-adminbar, 0px); background: var(--gm-brand); color: var(--gm-header-text); border-bottom: 0; }
	.gm-navbar__brand { display: block; }
	.gm-navbar__brand .gm-logo img { height: 36px; max-width: var(--gm-logo-w-mobile); }
	.gm-iconbtn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
	:root { --gm-nav-h: 60px; }
}

/* Search overlay */
.gm-search, .gm-drawer { position: fixed; inset: 0; z-index: 200; }
.gm-search[hidden], .gm-drawer[hidden] { display: none; }
.gm-search__backdrop, .gm-drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 11, 18, .6); backdrop-filter: blur(4px); animation: gm-fade .2s ease; }
.gm-search__panel { position: relative; width: min(760px, calc(100% - 32px)); margin: min(14vh, 120px) auto 0; padding: 22px; border-radius: var(--gm-radius-lg); background: var(--gm-surface); box-shadow: var(--gm-shadow-lg); animation: gm-pop .22s var(--gm-ease); }
.gm-search__panel .gm-searchform { padding-right: 46px; }
.gm-search__close { position: absolute; top: 22px; right: 18px; }
.gm-search__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: var(--gm-muted); font-size: .85rem; }
.gm-search__suggest > span { margin-right: 4px; font-weight: 600; }

/* Drawer */
.gm-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 18px; width: min(380px, 88vw); padding: 18px 18px 28px; overflow-y: auto; background: var(--gm-surface); box-shadow: var(--gm-shadow-lg); animation: gm-slide .25s var(--gm-ease); }
.gm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 14px; margin: -18px -18px 0; padding: 16px 18px; background: var(--gm-brand); }
.gm-drawer__head .gm-logo img { height: 36px; }
.gm-drawer__head .gm-iconbtn { color: #fff; }
.gm-drawer__head .gm-iconbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.gm-drawer-menu { margin: 0; padding: 0; list-style: none; }
.gm-drawer-menu li { position: relative; }
.gm-drawer-menu a { display: block; padding: 12px 44px 12px 12px; border-radius: 10px; color: var(--gm-heading); font-family: var(--gm-font-heading); font-weight: 600; }
.gm-drawer-menu a:hover, .gm-drawer-menu .current-menu-item > a { background: var(--gm-accent-soft); color: var(--gm-accent-text); }
.gm-drawer-menu .sub-menu { display: none; margin: 0 0 6px 12px; padding: 0 0 0 10px; list-style: none; border-left: 2px solid var(--gm-border); }
.gm-drawer-menu .sub-menu a { font-family: var(--gm-font); font-weight: 500; font-size: .95rem; padding-block: 9px; }
.gm-drawer-menu li.is-open > .sub-menu { display: block; }
.gm-subtoggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--gm-muted); cursor: pointer; }
.gm-subtoggle:hover { background: var(--gm-surface-2); }
.gm-subtoggle .gm-icon { transition: transform .2s; }
li.is-open > .gm-subtoggle .gm-icon { transform: rotate(180deg); }
.gm-drawer__nav--secondary { padding-top: 12px; border-top: 1px solid var(--gm-border); }
.gm-drawer__nav--secondary a { font-family: var(--gm-font); font-weight: 500; color: var(--gm-muted); }
.gm-social--drawer a { color: var(--gm-muted); background: var(--gm-surface-2); }
.gm-social--drawer a:hover { color: var(--gm-accent-text); background: var(--gm-accent-soft); }
body.gm-lock { overflow: hidden; }

@keyframes gm-fade { from { opacity: 0; } }
@keyframes gm-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes gm-slide { from { transform: translateX(100%); } }

/* Progress */
.gm-progress { position: fixed; top: var(--gm-adminbar, 0px); left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none; }
.gm-progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gm-accent), color-mix(in srgb, var(--gm-accent) 60%, #ffd29b)); }

/* ------------------------------------------------------------------ */
/* UI elements                                                         */
/* ------------------------------------------------------------------ */
.gm-btn, .geekmag-button, input[type="submit"], button[type="submit"], .wp-block-button__link, .gm-prose .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border: 1px solid transparent; border-radius: 12px;
	background: var(--gm-accent); color: var(--gm-on-accent);
	font-family: var(--gm-font-heading); font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none;
	cursor: pointer; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--gm-accent) 80%, transparent);
	transition: transform .15s var(--gm-ease), box-shadow .15s, background .15s, color .15s;
}
.gm-btn:hover, .geekmag-button:hover, input[type="submit"]:hover, button[type="submit"]:hover, .wp-block-button__link:hover { color: var(--gm-on-accent); background: color-mix(in srgb, var(--gm-accent) 90%, #000); transform: translateY(-1px); box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--gm-accent) 90%, transparent); }
.gm-btn:active, .geekmag-button:active { transform: none; }
.gm-btn--ghost { background: var(--gm-surface); color: var(--gm-heading); border-color: var(--gm-border-strong); box-shadow: none; }
.gm-btn--ghost:hover { background: var(--gm-surface); color: var(--gm-accent-text); border-color: var(--gm-accent); box-shadow: none; }
.gm-btn--sm { padding: 7px 13px; font-size: .85rem; border-radius: 10px; }
.geekmag-button.small { padding: 7px 14px; font-size: .85rem; }
.geekmag-button.large { padding: 14px 26px; font-size: 1.05rem; }
.gm-prose .geekmag-button, .gm-prose .geekmag-button:hover { color: var(--gm-on-accent); text-decoration: none; }

.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--gm-accent); color: var(--gm-on-accent); font-family: var(--gm-font-heading); font-size: .72rem; font-weight: 600; letter-spacing: .02em; line-height: 1.4; text-transform: uppercase; }
.gm-chip:hover { color: var(--gm-on-accent); background: color-mix(in srgb, var(--gm-accent) 85%, #000); }
.gm-chip--soft { background: var(--gm-surface-2); color: var(--gm-text); text-transform: none; font-size: .82rem; letter-spacing: 0; padding: 6px 12px; }
.gm-chip--soft:hover { background: var(--gm-accent-soft); color: var(--gm-accent-text); }
.gm-chips--filters { margin-top: 14px; }

.gm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--gm-muted); font-size: .82rem; line-height: 1.4; }
.gm-meta__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
a.gm-meta__item:hover { color: var(--gm-accent-text); }
.gm-meta__item .gm-icon { width: 14px; height: 14px; opacity: .8; }
.gm-meta__author img { width: 22px; height: 22px; border-radius: 50%; }
.gm-meta--lg { font-size: .9rem; gap: 6px 18px; }
.gm-meta--lg .gm-meta__author { color: var(--gm-heading); font-weight: 600; }
.gm-meta--lg .gm-meta__author img { width: 32px; height: 32px; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--gm-border-strong); border-radius: 12px; background: var(--gm-surface); color: var(--gm-heading);
	transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--gm-accent); box-shadow: 0 0 0 4px var(--gm-accent-soft); }
::placeholder { color: var(--gm-muted); opacity: .8; }
label { font-weight: 500; }

.gm-searchform { position: relative; display: flex; align-items: center; gap: 8px; }
.gm-searchform__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gm-muted); pointer-events: none; }
.gm-searchform__input.gm-searchform__input { padding-left: 42px; min-height: 48px; }
.gm-searchform__submit.gm-searchform__submit { flex: none; min-height: 48px; }
.gm-searchform input::-webkit-search-cancel-button { cursor: pointer; }

/* ------------------------------------------------------------------ */
/* Page header                                                         */
/* ------------------------------------------------------------------ */
.gm-page-header { position: relative; margin-bottom: var(--gm-gap); padding: clamp(22px, 3vw, 34px); border-radius: var(--gm-radius-lg); background: var(--gm-surface); border: 1px solid var(--gm-border); overflow: hidden; }
.gm-page-header::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--gm-accent); }
.gm-page-header__eyebrow { margin: 0 0 6px; color: var(--gm-accent-text); font-family: var(--gm-font-heading); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gm-page-header__title { margin: 0; }
.gm-page-header__desc { margin-top: 10px; color: var(--gm-muted); max-width: 70ch; }
.gm-page-header__desc p:last-child { margin: 0; }
.gm-page-header__count { margin: 10px 0 0; color: var(--gm-muted); font-size: .9rem; }
.gm-page-header .gm-searchform { margin-top: 16px; max-width: 620px; }

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */
.gm-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); box-shadow: var(--gm-shadow-sm); transition: transform .2s var(--gm-ease), box-shadow .2s var(--gm-ease), border-color .2s; }
.gm-card:hover { transform: translateY(-3px); box-shadow: var(--gm-shadow); border-color: var(--gm-border-strong); }
.gm-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gm-surface-3); }
.gm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--gm-ease); }
.gm-card:hover .gm-card__media img { transform: scale(1.04); }
.gm-card__format { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(13, 17, 26, .7); color: #fff; backdrop-filter: blur(6px); }
.gm-card__format .gm-icon { width: 15px; height: 15px; }
.gm-format-video .gm-icon { margin-left: 2px; fill: currentColor; }
.gm-review-badge { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 99px; background: var(--gm-accent); color: #fff; font-family: var(--gm-font-heading); font-size: .8rem; font-weight: 700; }
.gm-review-badge small { font-size: .7em; }
.gm-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.gm-card__title { margin: 0; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.005em; }
.gm-card__title a { color: var(--gm-heading); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--gm-ease), color .15s; }
.gm-card__title a:hover { color: var(--gm-accent-text); background-size: 100% 2px; }
.gm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gm-card .gm-chips, .gm-card .gm-meta a, .gm-card .wpulike { position: relative; z-index: 2; }
.gm-card__excerpt { color: var(--gm-muted); font-size: .92rem; line-height: 1.6; }
.gm-card__excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gm-card__excerpt .wpulike { margin-top: 12px; }
.gm-card .gm-meta { margin-top: auto; }
.gm-card .gm-card__title + .gm-meta { margin-top: 0; }
.gm-card.is-sticky { border-color: color-mix(in srgb, var(--gm-accent) 50%, var(--gm-border)); }

/* default – horizontal */
.gm-card--default { display: grid; grid-template-columns: minmax(200px, 38%) 1fr; }
.gm-card--default .gm-card__media { aspect-ratio: auto; min-height: 100%; }
.gm-card--default.no-media { grid-template-columns: 1fr; }
.gm-card--default .gm-card__body { padding: 22px 24px; justify-content: center; }
.gm-card--default .gm-card__title { font-size: 1.3rem; }
.gm-card--default .gm-card__title + .gm-meta { margin-top: 0; }
@media (max-width: 700px) {
	.gm-card--default { grid-template-columns: 1fr; }
	.gm-card--default .gm-card__media { aspect-ratio: 16 / 9; }
}

/* xs – compact */
.gm-card--xs .gm-card__body { gap: 8px; padding: 14px 16px 16px; }
.gm-card--xs .gm-card__title { font-size: 1rem; line-height: 1.35; }
.gm-card--xs .gm-chip { font-size: .66rem; }

/* list – row */
.gm-card--list { flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; box-shadow: none; }
.gm-card--list:hover { transform: none; box-shadow: none; background: var(--gm-surface-2); }
.gm-card--list .gm-card__media { flex: none; width: 128px; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; }
body.gm-list-square .gm-card--list .gm-card__media { width: 84px; aspect-ratio: 1; }
.gm-card--list .gm-card__format { top: 6px; right: 6px; width: 24px; height: 24px; }
.gm-card--list .gm-card__format .gm-icon { width: 11px; height: 11px; }
.gm-card--list .gm-review-badge { left: 6px; bottom: 6px; font-size: .7rem; padding: 2px 6px; }
.gm-card--list .gm-card__body { gap: 6px; padding: 0; }
.gm-card--list .gm-card__title { font-size: .95rem; line-height: 1.35; }
.gm-card--list .gm-card__title a { background: none; }

/* overlay – image background */
.gm-card--overlay { min-height: 360px; color: #fff; border: 0; }
.gm-card--overlay .gm-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.gm-card--overlay .gm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 20, 0) 25%, rgba(10, 13, 20, .88) 100%); }
.gm-card--overlay .gm-card__body { position: relative; justify-content: flex-end; z-index: 1; pointer-events: none; }
.gm-card--overlay .gm-card__body a { pointer-events: auto; }
.gm-card--overlay .gm-card__title a, .gm-card--overlay .gm-meta { color: #fff; }

/* quote format */
.gm-card__quote { position: relative; margin: 0; padding: 4px 0 0 18px; border-left: 3px solid var(--gm-accent); }
.gm-card__quote .gm-card__title { font-style: italic; }
.gm-card__quote cite { display: block; margin-top: 8px; color: var(--gm-muted); font-size: .88rem; font-style: normal; }

/* ------------------------------------------------------------------ */
/* Section titles (GeekMag widgets)                                    */
/* ------------------------------------------------------------------ */
.gm-section-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 18px; }
.gm-section-title__text { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); text-transform: none; }
.gm-section-title__text::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--gm-accent); }
.gm-section-title::after { content: ""; flex: 1 1 60px; order: 2; height: 1px; background: var(--gm-border); }
.gm-section-title__link { order: 3; display: inline-flex; align-items: center; gap: 6px; color: var(--gm-muted); font-size: .85rem; font-weight: 600; }
.gm-section-title__link:hover { color: var(--gm-accent-text); }
.gm-section-title__link .gm-icon { width: 15px; height: 15px; }
.gm-section-title__sub { order: 4; flex-basis: 100%; margin: 0; color: var(--gm-muted); font-size: .92rem; }

.geekmag-view-more { margin-top: 18px; text-align: center; }
.geekmag-view-more a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid var(--gm-border-strong); border-radius: 99px; background: var(--gm-surface); color: var(--gm-heading); font-family: var(--gm-font-heading); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: border-color .15s, color .15s, background .15s; }
.geekmag-view-more a:hover { border-color: var(--gm-accent); color: var(--gm-accent-text); background: var(--gm-accent-soft); }

/* ------------------------------------------------------------------ */
/* Sidebar & widgets                                                   */
/* ------------------------------------------------------------------ */
.gm-sidebar { display: grid; gap: var(--gm-gap); }
.geekmag-sidebar-box { min-width: 0; padding: 22px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); }
.gm-widget-heading, .geekmag-sidebar-box > h4, .widget-title { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.05rem; }
.gm-widget-heading::before, .geekmag-sidebar-box > h4::before { content: ""; width: 5px; height: 1.05em; border-radius: 3px; background: var(--gm-accent); }
.geekmag-sidebar-box ul { margin: 0; padding: 0; list-style: none; }
.geekmag-sidebar-box li { padding: 9px 0; border-bottom: 1px solid var(--gm-border); }
.geekmag-sidebar-box li:last-child { border-bottom: 0; padding-bottom: 0; }
.geekmag-sidebar-box li:first-child { padding-top: 0; }
.geekmag-sidebar-box li a { color: var(--gm-text); }
.geekmag-sidebar-box li a:hover { color: var(--gm-accent-text); }
.widget_categories li, .widget_archive li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.widget_categories li > ul { flex-basis: 100%; padding-left: 12px; margin-top: 8px; }
.gm-count { min-width: 28px; padding: 2px 8px; border-radius: 99px; background: var(--gm-surface-2); color: var(--gm-muted); font-size: .75rem; font-weight: 600; text-align: center; }
.widget_recent_entries .post-date { display: block; margin-top: 2px; color: var(--gm-muted); font-size: .8rem; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a { padding: 6px 12px; border-radius: 99px; background: var(--gm-surface-2); color: var(--gm-text); font-size: .85rem !important; }
.tagcloud a:hover { background: var(--gm-accent-soft); color: var(--gm-accent-text); }
.widget_search .geekmag-sidebar-box, .geekmag-sidebar-box.widget_search { padding: 14px; }
.gm-sidebar .geekmag-sidebar-box.widget_custom_html, .gm-sidebar .geekmag-sidebar-box.widget_text { overflow: hidden; }
.gm-sidebar .widget_custom_html:has(ins.adsbygoogle) { padding: 10px; background: transparent; border-style: dashed; }
.ko-fi-button, .kofi-button { text-align: center; }
.so-widget-sow-button .sow-button-base a { border-radius: 12px !important; font-family: var(--gm-font-heading) !important; font-weight: 600 !important; box-shadow: none !important; }

/* ------------------------------------------------------------------ */
/* Single article                                                      */
/* ------------------------------------------------------------------ */
.gm-article { min-width: 0; }
.gm-article__header { margin-bottom: 24px; }
.gm-article__header .gm-chips { margin-bottom: 14px; }
.gm-article__title { margin: 0 0 14px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); line-height: 1.15; letter-spacing: -.02em; }
.gm-article__subtitle { margin: -4px 0 18px; color: var(--gm-muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
.gm-article__header--quote .gm-article__title { font-style: italic; border-left: 4px solid var(--gm-accent); padding-left: 18px; }
.gm-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-block: 1px solid var(--gm-border); }
.gm-breadcrumbs { margin-bottom: 14px; color: var(--gm-muted); font-size: .82rem; }
.gm-breadcrumbs a { color: var(--gm-muted); }
.gm-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gm-breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.gm-article__media { margin: 0 0 28px; overflow: hidden; border-radius: var(--gm-radius-lg); background: var(--gm-surface-3); box-shadow: var(--gm-shadow); }
.gm-article__media > img { display: block; width: 100%; }
.gm-article__media--audio { box-shadow: none; background: transparent; }

.gm-embed, .geekmag-iframe { position: relative; overflow: hidden; border-radius: var(--gm-radius); background: #000; }
.gm-embed iframe, .geekmag-iframe iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.gm-article__media .gm-embed { border-radius: 0; }
.wp-block-embed { margin: 1.6em 0; }
.wp-block-embed__wrapper iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--gm-radius); }

/* Prose */
.gm-prose { color: var(--gm-text); font-size: clamp(1.02rem, .98rem + .2vw, 1.12rem); line-height: 1.78; overflow-wrap: break-word; }
.gm-prose > * { margin-block: 0 1.15em; }
.gm-prose h2, .gm-prose h3, .gm-prose h4 { margin: 1.9em 0 .6em; scroll-margin-top: calc(var(--gm-nav-h) + 20px); }
.gm-prose h2 { position: relative; padding-left: 16px; font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem); }
.gm-prose h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 3px; background: var(--gm-accent); }
.gm-prose h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); }
.gm-prose a:not(.geekmag-button):not(.gm-btn):not(.wp-block-button__link):not([class*="t2f-"]) { color: var(--gm-accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--gm-accent) 45%, transparent); }
.gm-prose a:not(.geekmag-button):not(.gm-btn):not(.wp-block-button__link):not([class*="t2f-"]):hover { text-decoration-color: currentColor; }
.gm-prose .t2f-nav a, .gm-prose a.t2f-btn, .gm-prose .t2f-btns a { text-decoration: none !important; }
.gm-prose strong, .gm-prose b { color: var(--gm-heading); font-weight: 650; }
.gm-prose ul, .gm-prose ol { padding-left: 1.4em; }
.gm-prose li { margin: .35em 0; }
.gm-prose li::marker { color: var(--gm-accent); font-weight: 600; }
.gm-prose img { border-radius: var(--gm-radius-sm); }
.gm-prose figure img, .gm-prose .wp-caption img { display: block; margin-inline: auto; }
.gm-prose blockquote, .gm-prose .wp-block-quote { position: relative; margin: 1.8em 0; padding: 22px 24px 22px 28px; border: 0; border-left: 4px solid var(--gm-accent); border-radius: 0 var(--gm-radius) var(--gm-radius) 0; background: var(--gm-surface-2); color: var(--gm-heading); font-size: 1.05em; }
.gm-prose blockquote p:last-child { margin-bottom: 0; }
.gm-prose blockquote cite { display: block; margin-top: 10px; color: var(--gm-muted); font-size: .85em; font-style: normal; }
.gm-prose code, .gm-prose kbd { padding: .15em .4em; border-radius: 6px; background: var(--gm-inline-code-bg); color: var(--gm-heading); font-family: var(--gm-font-mono); font-size: .86em; }
.gm-prose kbd { border: 1px solid var(--gm-border-strong); border-bottom-width: 2px; }
.gm-prose pre { position: relative; margin: 1.6em 0; padding: 18px 20px; overflow-x: auto; border-radius: var(--gm-radius); background: var(--gm-code-bg); color: var(--gm-code-text); font-family: var(--gm-font-mono); font-size: .88rem; line-height: 1.65; tab-size: 4; box-shadow: var(--gm-shadow); }
.gm-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.gm-code-copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; background: rgba(255, 255, 255, .06); color: #cfd5e1; font-family: var(--gm-font); font-size: .75rem; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.gm-prose pre:hover .gm-code-copy, .gm-code-copy:focus-visible, .gm-code-copy.is-done { opacity: 1; }
.gm-code-copy:hover { background: rgba(255, 255, 255, .14); }
.gm-code-copy .gm-icon { width: 14px; height: 14px; }
@media (hover: none) { .gm-code-copy { opacity: 1; } }
.gm-table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); -webkit-overflow-scrolling: touch; }
.gm-prose table { width: 100%; margin: 0; border-collapse: collapse; font-size: .92em; }
.gm-prose th, .gm-prose td { padding: 11px 14px; border-bottom: 1px solid var(--gm-border); text-align: left; vertical-align: top; }
.gm-prose thead th, .gm-prose tr:first-child th { background: var(--gm-surface-2); color: var(--gm-heading); font-weight: 650; }
.gm-prose tbody tr:last-child td { border-bottom: 0; }
.gm-prose tbody tr:hover { background: color-mix(in srgb, var(--gm-surface-2) 60%, transparent); }
.gm-prose .gm-table-wrap table { border: 0; }
.gm-prose hr { margin: 2.4em 0; }
.gm-prose iframe { max-width: 100%; border-radius: var(--gm-radius); }
.gm-prose .geekmag-highlight, .gm-prose mark { padding: .05em .3em; border-radius: 4px; background: color-mix(in srgb, var(--gm-accent) 22%, transparent); color: inherit; }
.gm-prose .wp-block-image figcaption { margin-bottom: 0; }
.gm-prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gm-prose .gallery-item { margin: 0; }
.gm-prose .gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.gm-prose::after { content: ""; display: table; clear: both; }
.gm-intro { margin-bottom: var(--gm-gap); }

/* Dark mode: neutralise legacy inline colours from older posts */
[data-theme="dark"] .gm-prose [style*="color: #000"], [data-theme="dark"] .gm-prose [style*="color:#000"],
[data-theme="dark"] .gm-prose [style*="color: #333"], [data-theme="dark"] .gm-prose [style*="color: #222"],
[data-theme="dark"] .gm-prose [style*="color: rgb(0, 0, 0)"], [data-theme="dark"] .gm-prose [style*="color: #1"],
[data-theme="dark"] .gm-prose font[color] { color: inherit !important; }
[data-theme="dark"] .gm-prose [style*="background-color: #fff"], [data-theme="dark"] .gm-prose [style*="background: #fff"],
[data-theme="dark"] .gm-prose [style*="background-color: rgb(255, 255, 255)"] { background-color: var(--gm-surface-2) !important; }
/* Tips2Fix ".t2f" article kit – map its palette to dark */
[data-theme="dark"] .t2f { --ink: var(--gm-text); --mut: var(--gm-muted); --line: var(--gm-border-strong); --soft: color-mix(in srgb, var(--gm-accent) 12%, var(--gm-surface)); --card: var(--gm-surface-2); --bsoft: #16233d; --rsoft: #2d1719; --gsoft: #12291d; --od: var(--gm-accent-text); color: var(--gm-text) !important; }
[data-theme="dark"] .t2f code { background: var(--gm-inline-code-bg) !important; border-color: var(--gm-border) !important; color: var(--gm-heading); }
[data-theme="dark"] .t2f .t2f-nav a, [data-theme="dark"] .t2f .t2f-btn.ghost { background: var(--gm-surface-2) !important; color: var(--gm-heading) !important; }
[data-theme="dark"] .t2f h2, [data-theme="dark"] .t2f h3, [data-theme="dark"] .t2f strong { color: var(--gm-heading); }
[data-theme="dark"] .t2f [style*="background:#fff"], [data-theme="dark"] .t2f [style*="background: #fff"] { background: var(--gm-surface-2) !important; }

/* Table of contents */
.gm-toc { margin: 0 0 2em; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface-2); font-size: .95rem; }
.gm-toc__title { display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: var(--gm-heading); font-family: var(--gm-font-heading); font-weight: 600; cursor: pointer; list-style: none; }
.gm-toc__title::-webkit-details-marker { display: none; }
.gm-toc__title .gm-icon { color: var(--gm-accent); }
.gm-toc__chev { margin-left: auto; color: var(--gm-muted) !important; transition: transform .2s; }
.gm-toc[open] .gm-toc__chev { transform: rotate(180deg); }
.gm-toc__list { margin: 0; padding: 0 18px 16px 52px; }
.gm-toc__list li { margin: .3em 0; }
.gm-toc__list ol { margin: .3em 0 .4em; padding-left: 1.1em; list-style: disc; }
.gm-toc__list a { color: var(--gm-text) !important; text-decoration: none !important; }
.gm-toc__list a:hover, .gm-toc__list a.is-active { color: var(--gm-accent-text) !important; }
.gm-toc__list li::marker { color: var(--gm-muted); }

/* Article footer */
.gm-article__footer { display: grid; gap: 22px; margin-top: 28px; }
.gm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gm-tags__icon { color: var(--gm-muted); }
.gm-tag { padding: 6px 12px; border-radius: 99px; background: var(--gm-surface-2); color: var(--gm-text); font-size: .85rem; }
.gm-tag::before { content: "#"; opacity: .5; }
.gm-tag:hover { background: var(--gm-accent-soft); color: var(--gm-accent-text); }
.gm-article .wpulike { margin: 0; }

.gm-share { padding: 20px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); }
.gm-share__label { margin: 0 0 12px; color: var(--gm-heading); font-family: var(--gm-font-heading); font-weight: 600; }
.gm-share__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gm-share__btn { --c: var(--gm-surface-3); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 10px; background: var(--c); color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; transition: transform .15s, filter .15s; }
.gm-share__btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); }
.gm-share__btn .gm-icon { width: 16px; height: 16px; }
.gm-share__btn--x { --c: #111; }
.gm-share__btn--facebook { --c: #1877f2; }
.gm-share__btn--whatsapp { --c: #1fae53; }
.gm-share__btn--telegram { --c: #229ed9; }
.gm-share__btn--reddit { --c: #ff4500; }
.gm-share__btn--linkedin { --c: #0a66c2; }
.gm-share__btn--pinterest { --c: #e60023; }
.gm-share__btn--email, .gm-share__btn--copy, .gm-share__btn--native { --c: var(--gm-surface-2); color: var(--gm-heading); }
.gm-share__btn--email:hover, .gm-share__btn--copy:hover, .gm-share__btn--native:hover { color: var(--gm-accent-text); }
[data-theme="dark"] .gm-share__btn--x { --c: #000; box-shadow: inset 0 0 0 1px var(--gm-border-strong); }
@media (max-width: 620px) { .gm-share__btn span { display: none; } .gm-share__btn { padding: 11px; } .gm-share__btn--native span, .gm-share__btn--copy span { display: inline; } }

.gm-ad { margin: 0 0 28px; text-align: center; overflow: hidden; }
.gm-ad--after { margin-top: 28px; }
.gm-footer-ad { margin-bottom: 40px; text-align: center; overflow: hidden; }

/* Author box */
.gm-author { display: flex; gap: 22px; margin-top: 36px; padding: 24px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius-lg); background: var(--gm-surface); }
.gm-author__avatar img { display: block; width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 0 0 4px var(--gm-accent-soft); }
.gm-author--archive { margin: 0 0 var(--gm-gap); align-items: center; }
.gm-author--archive .gm-author__avatar img { width: 112px; height: 112px; }
.gm-author__eyebrow { margin: 0 0 2px; color: var(--gm-accent-text); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gm-author__name { margin: 0 0 8px; }
.gm-author__name a { color: var(--gm-heading); }
.gm-author__desc { color: var(--gm-muted); font-size: .95rem; }
.gm-author__desc p:last-child { margin-bottom: 0; }
.gm-author__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.gm-social--author a { color: var(--gm-muted); background: var(--gm-surface-2); }
.gm-social--author a:hover { color: var(--gm-accent-text); background: var(--gm-accent-soft); }
@media (max-width: 560px) { .gm-author { flex-direction: column; } }

/* Post navigation */
.gm-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.gm-postnav__item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); color: var(--gm-heading); transition: border-color .15s, transform .15s; }
.gm-postnav__item:hover { border-color: var(--gm-accent); color: var(--gm-heading); transform: translateY(-2px); }
.gm-postnav__item--next { flex-direction: row-reverse; text-align: right; }
.gm-postnav__item--empty { border: 0; background: none; }
.gm-postnav__thumb img { display: block; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.gm-postnav__text { display: grid; gap: 4px; min-width: 0; }
.gm-postnav__label { display: inline-flex; align-items: center; gap: 6px; color: var(--gm-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.gm-postnav__item--next .gm-postnav__label { justify-content: flex-end; }
.gm-postnav__title { display: -webkit-box; overflow: hidden; font-family: var(--gm-font-heading); font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 620px) { .gm-postnav { grid-template-columns: 1fr; } .gm-postnav__item--empty { display: none; } }

.gm-related { margin-top: 40px; }

/* Review */
.gm-review { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin: 0 0 28px; padding: 24px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius-lg); background: var(--gm-surface); }
.gm-review__score { display: grid; place-content: center; gap: 4px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--gm-accent) calc(var(--score) * 1%), var(--gm-surface-3) 0); text-align: center; position: relative; }
.gm-review__score::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--gm-surface); }
.gm-review__num, .gm-review__verdict { position: relative; }
.gm-review__num { color: var(--gm-heading); font-family: var(--gm-font-heading); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.gm-review__num small { font-size: .5em; }
.gm-review__verdict { color: var(--gm-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.gm-review__bars { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.gm-review__label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--gm-heading); }
.gm-review__bar { display: block; height: 8px; border-radius: 99px; background: var(--gm-surface-3); overflow: hidden; }
.gm-review__bar span { display: block; height: 100%; border-radius: inherit; background: var(--gm-accent); }
@media (max-width: 620px) { .gm-review { grid-template-columns: 1fr; } .gm-review__score { width: 150px; margin-inline: auto; } }

/* Comments */
.gm-comments { margin-top: 40px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--gm-border); border-radius: var(--gm-radius-lg); background: var(--gm-surface); }
.gm-comments__title { margin-bottom: 20px; }
.gm-comments__list, .gm-comments__list .children { margin: 0; padding: 0; list-style: none; }
.gm-comments__list .children { margin-left: clamp(16px, 4vw, 48px); padding-left: 16px; border-left: 2px solid var(--gm-border); }
.gm-comment__body { padding: 16px 0; border-bottom: 1px solid var(--gm-border); }
.gm-comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.gm-comment__avatar { border-radius: 50%; }
.gm-comment__who { display: grid; line-height: 1.3; }
.gm-comment__author { color: var(--gm-heading); font-style: normal; font-weight: 600; }
.gm-comment__author a { color: inherit; }
.gm-comment__date { color: var(--gm-muted); font-size: .8rem; }
.gm-comment__text { font-size: .97rem; }
.gm-comment__text p:last-child { margin-bottom: 0; }
.gm-comment__pending { color: var(--gm-accent-text); font-size: .85rem; }
.gm-comment__actions { display: flex; gap: 14px; margin-top: 8px; font-size: .85rem; font-weight: 600; }
.bypostauthor > .gm-comment__body .gm-comment__author::after { content: "Author"; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--gm-accent-soft); color: var(--gm-accent-text); font-size: .7rem; vertical-align: 2px; }
.gm-comments__form { margin-top: 24px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; font-size: .9rem; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; }
.comment-form-cookies-consent input { width: auto; margin-top: 4px; }
.comment-notes, .logged-in-as { color: var(--gm-muted); font-size: .88rem; }
.comment-reply-title small { margin-left: 10px; font-size: .8rem; }

/* Pagination */
.gm-pagination { margin-top: 36px; }
.gm-pagination ul, .comments-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gm-pagination .page-numbers, .comments-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--gm-border); border-radius: 12px; background: var(--gm-surface); color: var(--gm-heading); font-weight: 600; }
.gm-pagination a.page-numbers:hover { border-color: var(--gm-accent); color: var(--gm-accent-text); }
.gm-pagination .page-numbers.current, .comments-pagination .current { border-color: var(--gm-accent); background: var(--gm-accent); color: #fff; }
.gm-pagination .dots { border: 0; background: none; }
.gm-page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 24px; font-weight: 600; }
.gm-page-links a span, .gm-page-links > span:not(:first-child) { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--gm-border); }

/* Empty / 404 */
.gm-empty, .gm-404 { padding: clamp(28px, 5vw, 60px) 20px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius-lg); background: var(--gm-surface); text-align: center; }
.gm-empty .gm-searchform, .gm-404 .gm-searchform { max-width: 560px; margin: 22px auto; }
.gm-empty__icon { width: 44px; height: 44px; color: var(--gm-accent); }
.gm-404 { margin-bottom: 40px; }
.gm-404__code { margin: 0; font-family: var(--gm-font-heading); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--gm-accent), color-mix(in srgb, var(--gm-accent) 50%, #ffd29b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gm-404__text { max-width: 52ch; margin-inline: auto; color: var(--gm-muted); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.gm-footer { background: var(--gm-brand); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.gm-footer a { color: rgba(255, 255, 255, .72); }
.gm-footer a:hover { color: var(--gm-accent); }
.gm-footer h1, .gm-footer h2, .gm-footer h3, .gm-footer h4, .gm-footer h5, .gm-footer h6 { color: #fff; }
.gm-footer__widgets { padding-block: clamp(40px, 5vw, 64px); }
.gm-footer .geekmag-sidebar-box { padding: 0; border: 0; background: transparent; }
.gm-footer .geekmag-sidebar-box li { border-color: rgba(255, 255, 255, .08); }
.gm-footer .geekmag-sidebar-box li a { color: rgba(255, 255, 255, .72); }
.gm-footer .geekmag-sidebar-box li a:hover { color: var(--gm-accent); }
.gm-footer .gm-widget-heading, .gm-footer .widget-title, .gm-footer .geekmag-sidebar-box > h4 { color: #fff; }
.gm-footer .gm-count, .gm-footer .tagcloud a { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); }
.gm-footer .panel-grid-cell .so-panel { margin-bottom: 28px; }
.gm-footer .widget_nav_menu a { font-weight: 600; }
.gm-footer__bar { background: var(--gm-brand-deep); }
.gm-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 22px; }
.gm-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.gm-footer__brand .gm-logo img { height: 34px; opacity: .9; }
.gm-footer__credits { font-size: .88rem; }
.gm-footer__credits p { margin: 0; }
.gm-social--footer a { background: rgba(255, 255, 255, .06); }

.gm-totop { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--gm-accent); color: #fff; box-shadow: var(--gm-shadow-lg); cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.gm-totop.is-visible { opacity: 1; transform: none; }
.gm-totop[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Page builder (SiteOrigin) & GeekMag widgets                         */
/* ------------------------------------------------------------------ */
.gm-builder .so-panel { margin-bottom: clamp(28px, 3vw, 40px) !important; }
.gm-builder .so-panel:last-child { margin-bottom: 0 !important; }
.gm-builder .panel-grid { margin-bottom: 0 !important; }
.gm-builder .panel-grid-cell .widget_custom_html { overflow: hidden; }
.gm-builder .so-panel.widget_search, .gm-builder .widget_search { padding: 14px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); }
.gm-builder .widget_ko_fi_widget, .gm-builder .so-panel.widget_ko_fi_widget { padding: 20px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); color: var(--gm-muted); font-size: .92rem; }
@media (min-width: 781px) {
	.geekmag-sticky-scroll { align-items: flex-start !important; }
	.geekmag-sticky-scroll > .panel-grid-cell { position: sticky; top: calc(var(--gm-sticky-offset, 16px) + 16px); }
}

/* Masonry widget = CSS grid */
.geekmag-masonry-grid { min-width: 0; }
.gm-widget-grid { display: grid; gap: var(--gm-gap); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.gm-widget-grid.geekmag-one-column { --cols: 1; }
.gm-widget-grid.geekmag-two-columns { --cols: 2; }
.gm-widget-grid.geekmag-three-columns { --cols: 3; }
.gm-widget-grid.geekmag-four-columns { --cols: 4; }
@media (max-width: 1180px) { .gm-widget-grid.geekmag-four-columns { --cols: 3; } }
@media (max-width: 960px) { .gm-widget-grid.geekmag-three-columns, .gm-widget-grid.geekmag-four-columns { --cols: 2; } }
@media (max-width: 620px) { .gm-widget-grid { --cols: 1 !important; } }

/* List widget */
.gm-list-widget { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); }
.gm-list-widget .gm-card--list { border: 0; }
.gm-list-widget .gm-list-widget__featured .gm-card { border: 0; box-shadow: none; }
.gm-list-widget .gm-list-widget__featured .gm-card:hover { transform: none; }
.gm-list-widget .gm-list-widget__featured .gm-card__media { border-radius: 12px; }
.gm-list-widget .gm-list-widget__featured .gm-card__body { padding: 12px 4px 8px; }
.gm-list-widget.is-numbered { counter-reset: gmrank; }
.gm-list-widget.is-numbered .gm-card--list { counter-increment: gmrank; }
.gm-list-widget .geekmag-view-more { margin-top: 8px; }
.geekmag-sidebar-box .gm-list-widget, .gm-footer .gm-list-widget { padding: 0; border: 0; background: none; }
.geekmag-sidebar-box .gm-card--list { margin-inline: -10px; }
.geekmag-sidebar-box .gm-card--list .gm-card__media { width: 112px; }
body.gm-list-square .geekmag-sidebar-box .gm-card--list .gm-card__media { width: 72px; }
.gm-footer .gm-card--list:hover { background: rgba(255, 255, 255, .05); }
.gm-footer .gm-card--list .gm-card__title a { color: #fff; }
.gm-footer .gm-card--list .gm-meta { color: rgba(255, 255, 255, .55); }
.gm-footer .gm-card { background: transparent; border: 0; }

/* Slider */
.gm-slider { position: relative; overflow: hidden; border-radius: var(--gm-radius-lg); background: var(--gm-brand); box-shadow: var(--gm-shadow); }
.gm-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gm-slider__track::-webkit-scrollbar { display: none; }
.gm-slider__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gm-slider__slide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gm-slider__nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #161c2a; box-shadow: var(--gm-shadow); cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; }
.gm-slider:hover .gm-slider__nav, .gm-slider__nav:focus-visible { opacity: 1; }
.gm-slider__nav:hover { transform: scale(1.06); }
.gm-slider__nav--prev { left: 14px; }
.gm-slider__nav--next { right: 14px; }
.gm-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.gm-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .25s, background .25s; }
.gm-slider__dot.is-active { width: 26px; background: var(--gm-accent); }
@media (hover: none) { .gm-slider__nav { display: none; } }

.gm-hero__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; color: #fff; }
.gm-hero__media { display: block; aspect-ratio: 16 / 9; }
.gm-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.gm-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 11, 18, 0) 30%, rgba(8, 11, 18, .45) 55%, rgba(8, 11, 18, .92) 100%); }
.gm-hero__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 10px; padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px) clamp(38px, 4vw, 48px); pointer-events: none; }
.gm-hero__body a, .gm-hero__body .gm-chips { pointer-events: auto; }
.gm-hero__title { margin: 0; color: #fff; font-size: clamp(1.25rem, .9rem + 1.6vw, 2.1rem); line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.gm-hero__title a { color: #fff; }
.gm-hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gm-hero__excerpt { max-width: 70ch; margin: 0; color: rgba(255, 255, 255, .82); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gm-hero__meta { color: rgba(255, 255, 255, .8); }
.gm-hero__format { position: absolute; top: 18px; right: 18px; z-index: 2; }
.gm-slider__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.gm-slider__thumb { padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.gm-slider__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gm-slider__thumb.is-active, .gm-slider__thumb:hover { opacity: 1; border-color: var(--gm-accent); }
@media (max-width: 700px) {
	.gm-slider__thumbs { display: none; }
	.gm-hero__media { aspect-ratio: 4 / 3; }
	.gm-hero__excerpt { display: none; }
}

/* Carousel (multi-item) */
.gm-carousel { position: relative; }
.gm-carousel .gm-slider__track { gap: var(--gm-gap); padding-bottom: 4px; }
.gm-carousel .gm-carousel__item { flex: 0 0 calc((100% - (var(--per, 3) - 1) * var(--gm-gap)) / var(--per, 3)); scroll-snap-align: start; min-width: 0; }
.gm-carousel { --per: 3; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.gm-carousel .gm-slider__nav { opacity: 1; top: 40%; }
.gm-carousel .gm-slider__nav--prev { left: -12px; }
.gm-carousel .gm-slider__nav--next { right: -12px; }
@media (max-width: 960px) { .gm-carousel { --per: 2; } }
@media (max-width: 620px) { .gm-carousel { --per: 1.15; } }

/* Tabs & accordion (shortcodes and widgets) */
.gm-tabs__list, .resp-tabs-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.gm-tabs__tab, .resp-tabs-list li { padding: 9px 16px; border: 1px solid var(--gm-border); border-radius: 10px; background: var(--gm-surface); color: var(--gm-heading); font-family: var(--gm-font-heading); font-size: .9rem; font-weight: 600; cursor: pointer; }
.gm-tabs__tab[aria-selected="true"], .resp-tabs-list li.resp-tab-active { border-color: var(--gm-accent); background: var(--gm-accent); color: #fff; }
.gm-tabs__panel[hidden] { display: none; }
.gm-tabs__panel { padding: 18px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); }
.geekmag-accordion-container, .gm-accordion { display: grid; gap: 8px; margin: 1.4em 0; }
.gm-accordion details, .geekmag-accordion-container details { border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); overflow: hidden; }
.gm-accordion summary, .geekmag-accordion-container summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; color: var(--gm-heading); font-family: var(--gm-font-heading); font-weight: 600; cursor: pointer; list-style: none; }
.gm-accordion summary::-webkit-details-marker, .geekmag-accordion-container summary::-webkit-details-marker { display: none; }
.gm-accordion summary::after, .geekmag-accordion-container summary::after { content: "+"; color: var(--gm-accent); font-size: 1.3em; line-height: 1; transition: transform .2s; }
.gm-accordion details[open] summary::after, .geekmag-accordion-container details[open] summary::after { transform: rotate(45deg); }
.gm-accordion__content, .geekmag-accordion-content { padding: 0 18px 16px; }
.geekmag-accordion-header { padding: 14px 18px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface); cursor: pointer; }

/* YouTube channel widget */
.gm-ytv { display: grid; grid-template-columns: minmax(0, 1fr) 340px; overflow: hidden; border-radius: var(--gm-radius-lg); background: var(--gm-brand); box-shadow: var(--gm-shadow); }
.gm-ytv__player { position: relative; background: #000; }
.gm-ytv__player iframe, .gm-ytv__player .gm-ytv__poster { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.gm-ytv__poster { position: relative; padding: 0; border: 0; background: #000 center / cover no-repeat; cursor: pointer; }
.gm-ytv__poster::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: #f00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: transform .2s; }
.gm-ytv__poster:hover::after { transform: scale(1.08); }
.gm-ytv__side { display: flex; flex-direction: column; min-height: 0; max-height: 100%; color: #fff; }
.gm-ytv__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gm-ytv__head strong { display: flex; align-items: center; gap: 8px; font-family: var(--gm-font-heading); }
.gm-ytv__head .gm-icon { color: #f00; width: 22px; height: 22px; }
.gm-ytv__head a { color: rgba(255, 255, 255, .8); font-size: .8rem; font-weight: 600; }
.gm-ytv__list { flex: 1 1 0; margin: 0; padding: 6px; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--gm-accent) transparent; }
.gm-ytv__item { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 10px; background: none; color: rgba(255, 255, 255, .85); font-size: .85rem; line-height: 1.35; text-align: left; cursor: pointer; }
.gm-ytv__item:hover, .gm-ytv__item.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.gm-ytv__item.is-active { box-shadow: inset 3px 0 0 var(--gm-accent); }
.gm-ytv__item img { width: 120px; aspect-ratio: 16 / 9; border-radius: 6px; object-fit: cover; }
.gm-ytv__item span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
@media (max-width: 960px) {
	.gm-ytv { grid-template-columns: 1fr; }
	.gm-ytv__list { max-height: 320px; }
}

/* WP ULike */
.wpulike { padding: 0 !important; }
.wpulike .wp_ulike_btn { border-radius: 10px !important; }
[data-theme="dark"] .wpulike .wp_ulike_btn { background-color: var(--gm-surface-2) !important; }
[data-theme="dark"] .wpulike .count-box { color: var(--gm-text) !important; background: var(--gm-surface-2) !important; }

/* Contact Form 7 */
.wpcf7 form { display: grid; gap: 14px; }
.wpcf7 form p { margin: 0; }
.wpcf7-response-output { border-radius: 12px; }
.wpcf7-spinner { margin: 0 10px; }

/* Lightbox */
.gm-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4vmin; background: rgba(8, 11, 18, .92); cursor: zoom-out; animation: gm-fade .2s ease; }
.gm-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; }
.gm-lightbox__close { position: absolute; top: 14px; right: 14px; color: #fff; }
.gm-lightbox__close:hover { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
.gm-prose a[data-gm-lightbox] { cursor: zoom-in; }

/* Toast */
.gm-toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; padding: 10px 18px; border-radius: 12px; background: var(--gm-heading); color: var(--gm-bg); font-size: .9rem; font-weight: 600; box-shadow: var(--gm-shadow-lg); transform: translate(-50%, 20px); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.gm-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

/* ------------------------------------------------------------------ */
/* Modern footer                                                       */
/* ------------------------------------------------------------------ */
.gm-footer__main { padding-block: clamp(44px, 6vw, 72px) clamp(32px, 4vw, 48px); border-top: 3px solid var(--gm-accent); }
.gm-footer__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.gm-footer__col { min-width: 0; }
.gm-footer__col--brand .gm-logo img { height: 40px; }
.gm-footer__about { max-width: 42ch; margin: 18px 0 18px; color: rgba(255, 255, 255, .66); font-size: .95rem; line-height: 1.65; }
.gm-footer__title { position: relative; margin: 6px 0 18px; padding-bottom: 12px; color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.gm-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--gm-accent); }
.gm-footer .gm-social { margin-left: -8px; }
.gm-footer .gm-social a { color: rgba(255, 255, 255, .7); }

.gm-yt-card { display: flex; align-items: center; gap: 12px; max-width: 360px; margin-top: 20px; padding: 12px 12px 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .04); color: #fff !important; transition: border-color .15s, background .15s, transform .15s; }
.gm-yt-card:hover { border-color: rgba(255, 0, 0, .55); background: rgba(255, 0, 0, .08); transform: translateY(-1px); }
.gm-yt-card__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #ff0000; color: #fff; }
.gm-yt-card__icon .gm-icon { width: 22px; height: 22px; }
.gm-yt-card__text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.gm-yt-card__text strong { font-size: .92rem; }
.gm-yt-card__text small { color: rgba(255, 255, 255, .6); font-size: .78rem; }
.gm-yt-card__btn { flex: none; padding: 7px 12px; border-radius: 99px; background: #fff; color: #0f0f0f; font-size: .78rem; font-weight: 700; }

.gm-footer__posts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.gm-footer__posts a { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .85); }
.gm-footer__posts a:hover .gm-footer__post-title { color: var(--gm-accent); }
.gm-footer__thumb { flex: none; width: 88px; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 9; background: rgba(255, 255, 255, .06); }
.gm-footer__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gm-footer__post { display: grid; gap: 4px; min-width: 0; }
.gm-footer__post-title { display: -webkit-box; overflow: hidden; font-size: .88rem; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color .15s; }
.gm-footer__post time { color: rgba(255, 255, 255, .45); font-size: .75rem; }

.gm-footer__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-footer__topics a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; color: rgba(255, 255, 255, .8); font-size: .82rem; transition: border-color .15s, color .15s; }
.gm-footer__topics a:hover { border-color: var(--gm-accent); color: #fff; }
.gm-footer__topics span { color: rgba(255, 255, 255, .4); font-size: .72rem; }

.gm-footer__menu ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gm-footer__menu a { display: inline-block; padding: 5px 0; color: rgba(255, 255, 255, .75); font-size: .92rem; transition: color .15s, transform .15s; }
.gm-footer__menu a:hover { color: var(--gm-accent); transform: translateX(3px); }

.gm-footer__bar { border-top: 1px solid rgba(255, 255, 255, .06); }
.gm-footer__bar-inner { padding-block: 18px; font-size: .85rem; }
.gm-footer__credits, .gm-footer__credits p { color: rgba(255, 255, 255, .55); }
.gm-footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.gm-footer__top { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .6); font: inherit; cursor: pointer; }
.gm-footer__top:hover { color: var(--gm-accent); }
.gm-footer__top .gm-icon { width: 16px; height: 16px; }
@media (max-width: 1080px) { .gm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gm-footer__grid { grid-template-columns: 1fr; } }

/* Quick answer + sources */
.gm-tldr { margin: 0 0 28px; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--gm-accent) 35%, var(--gm-border)); border-radius: var(--gm-radius); background: var(--gm-accent-soft); }
.gm-tldr__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--gm-heading); font-family: var(--gm-font-heading); font-weight: 600; }
.gm-tldr__title .gm-icon { color: var(--gm-accent); }
.gm-tldr ul { margin: 0; padding-left: 1.2em; }
.gm-tldr li { margin: .3em 0; color: var(--gm-heading); }
.gm-tldr li::marker { color: var(--gm-accent); }
.gm-sources { padding: 18px 22px; border: 1px solid var(--gm-border); border-radius: var(--gm-radius); background: var(--gm-surface-2); }
.gm-sources__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.gm-sources__title .gm-icon { color: var(--gm-accent); }
.gm-sources ol { margin: 0; padding-left: 1.3em; font-size: .92rem; }
.gm-sources li { margin: .35em 0; }
.gm-sources__host { margin-left: 6px; color: var(--gm-muted); font-size: .8rem; }

/* Code highlighting (Prism tokens) – the code block is dark in both colour schemes */
.gm-prose pre[class*="language-"], .gm-prose pre.gm-code { background: var(--gm-code-bg); }
.gm-prose pre code[class*="language-"] { color: var(--gm-code-text); text-shadow: none; white-space: pre; }
.gm-prose pre[data-lang]::before { content: attr(data-lang); }
.gm-prose .token.comment, .gm-prose .token.prolog, .gm-prose .token.doctype, .gm-prose .token.cdata { color: #7b869c; font-style: italic; }
.gm-prose .token.punctuation, .gm-prose .token.operator { color: #a9b4c8; }
.gm-prose .token.property, .gm-prose .token.tag, .gm-prose .token.constant, .gm-prose .token.symbol, .gm-prose .token.deleted { color: #ff8f6b; }
.gm-prose .token.boolean, .gm-prose .token.number { color: #c3a6ff; }
.gm-prose .token.selector, .gm-prose .token.attr-name, .gm-prose .token.string, .gm-prose .token.char, .gm-prose .token.builtin, .gm-prose .token.inserted { color: #9be38f; }
.gm-prose .token.entity, .gm-prose .token.url, .gm-prose .token.variable, .gm-prose .token.parameter { color: #ffd479; }
.gm-prose .token.atrule, .gm-prose .token.attr-value, .gm-prose .token.keyword { color: #ff9a4d; }
.gm-prose .token.function, .gm-prose .token.class-name { color: #7cc4ff; }
.gm-prose .token.regex, .gm-prose .token.important { color: #ffb86c; }
.gm-prose .token.important, .gm-prose .token.bold { font-weight: 700; }
.gm-prose .token.italic { font-style: italic; }
