/* ==========================================================================
   Techager Redesign — front-end styles
   Works on top of GeneratePress. Every rule is scoped to .tg-* classes or
   body.tg-on so nothing leaks into wp-admin or other plugins.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--tg-brand: #6b1f78;
	--tg-brand-2: #b0245e;
	--tg-accent: #f2811d;
	--tg-grad: linear-gradient(120deg, #6b1f78 0%, #b0245e 55%, #f2811d 100%);

	--tg-bg: #f7f6f9;
	--tg-surface: #ffffff;
	--tg-surface-2: #f1eef4;
	--tg-ink: #16131b;
	--tg-ink-2: #3b3642;
	--tg-muted: #6b6575;
	--tg-line: #e9e5ee;
	--tg-tint: #f4ecf6;
	--tg-link: #6b1f78;
	--tg-dark: #121016;

	--tg-radius: 16px;
	--tg-radius-sm: 10px;
	--tg-shadow: 0 1px 2px rgba(22, 19, 27, .05), 0 10px 28px -14px rgba(22, 19, 27, .18);
	--tg-shadow-lg: 0 2px 4px rgba(22, 19, 27, .06), 0 24px 48px -20px rgba(22, 19, 27, .28);

	--tg-font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tg-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--tg-topbar-h: 38px;
	--tg-container: 1240px;
	--tg-gutter: 24px;
}

html[data-theme="dark"] {
	--tg-bg: #0e0c12;
	--tg-surface: #17141d;
	--tg-surface-2: #201c27;
	--tg-ink: #f2eff6;
	--tg-ink-2: #d7d2de;
	--tg-muted: #a39cac;
	--tg-line: #2b2633;
	--tg-tint: #2a1e31;
	--tg-link: #dcaaea;
	--tg-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
	--tg-shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

/* ---------- Base ---------- */
body.tg-on {
	background: var(--tg-bg);
	color: var(--tg-ink);
	font-family: var(--tg-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	margin: 0;
}
:where(body.tg-on) *, :where(body.tg-on) *::before, :where(body.tg-on) *::after { box-sizing: border-box; }
:where(body.tg-on) img { max-width: 100%; height: auto; }
:where(.tg-header, .tg-footer, .tg-drawer, main.tg-home, main.tg-post, main.tg-archive) img { display: block; }
:where(body.tg-on) a { color: var(--tg-link); }
:where(body.tg-on) :is(h1, h2, h3, h4) {
	font-family: var(--tg-font-head);
	color: var(--tg-ink);
	letter-spacing: -0.02em;
	line-height: 1.2;
	font-weight: 800;
}
body.tg-lock { overflow: hidden; }

.tg-container {
	width: 100%;
	max-width: var(--tg-container);
	margin: 0 auto;
	padding: 0 var(--tg-gutter);
}
.tg-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.tg-icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }

/* Hide GeneratePress chrome that the plugin replaces */
body.tg-on .site-header,
body.tg-on #site-navigation,
body.tg-on #mobile-header,
body.tg-on .site-footer:not(.tg-footer),
body.tg-on .generate-back-to-top { display: none !important; }

/* Full-width canvas on plugin templates */
body.tg-tpl .site.grid-container { max-width: none !important; padding: 0 !important; background: transparent; }
body.tg-tpl .site-content { display: block !important; padding: 0 !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.tg-header {
	position: sticky;
	top: calc(var(--tg-topbar-h) * -1);
	z-index: 900;
}
.admin-bar .tg-header { top: calc(32px - var(--tg-topbar-h)); }

.tg-topbar {
	background: var(--tg-dark);
	color: #c9c3d1;
	font-size: 13px;
	height: var(--tg-topbar-h);
}
.tg-topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tg-topbar__left { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1; }
.tg-topbar__date { white-space: nowrap; color: #9e97a8; }
.tg-trending { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; max-width: 640px; }
.tg-trending__label {
	background: var(--tg-grad); color: #fff; font-weight: 700; font-size: 11px;
	text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; flex: none;
}
.tg-trending__track { position: relative; overflow: hidden; height: 20px; min-width: 0; flex: 1; }
.tg-trending__item {
	position: absolute; inset: 0; color: #ece8f1 !important; text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.tg-trending__item.is-active { opacity: 1; transform: none; }
.tg-trending__item:hover { color: #fff !important; text-decoration: underline; }
.tg-topbar__right { display: flex; align-items: center; gap: 18px; flex: none; }
.tg-topbar__links { display: flex; gap: 16px; }
.tg-topbar__links a { color: #c9c3d1 !important; text-decoration: none; }
.tg-topbar__links a:hover { color: #fff !important; }

.tg-social { display: flex; gap: 6px; }
.tg-social a {
	width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 8px;
	color: #c9c3d1 !important; transition: background .2s, color .2s;
}
.tg-social a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.tg-social .tg-icon { width: 15px; height: 15px; }

.tg-mainbar {
	background: color-mix(in srgb, var(--tg-surface) 92%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--tg-line);
}
.tg-mainbar__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.tg-logo { display: inline-flex; align-items: center; flex: none; }
.tg-logo img { height: 44px; width: auto; max-width: none; }
/* White logo on dark backgrounds (override with a custom dark logo in settings) */
html[data-theme="dark"] .tg-logo img:not(.tg-logo__dark),
.tg-footer .tg-logo img:not(.tg-logo__dark) { filter: brightness(0) invert(1); }
.tg-logo__dark { display: none; }
html[data-theme="dark"] .tg-logo.has-dark img:not(.tg-logo__dark),
.tg-footer .tg-logo.has-dark img:not(.tg-logo__dark) { display: none; }
html[data-theme="dark"] .tg-logo.has-dark .tg-logo__dark,
.tg-footer .tg-logo.has-dark .tg-logo__dark { display: block; }

/* Primary menu (wp_nav_menu markup) */
.tg-nav { flex: 1; display: flex; justify-content: center; }
.tg-menu, .tg-menu ul { list-style: none; margin: 0; padding: 0; }
.tg-menu { display: flex; align-items: center; gap: 2px; }
.tg-menu > li { position: relative; }
.tg-menu > li > a {
	display: flex; align-items: center; gap: 4px;
	padding: 10px 14px; border-radius: 10px;
	color: var(--tg-ink) !important; text-decoration: none;
	font-family: var(--tg-font-head); font-weight: 700; font-size: 15px;
	transition: background .2s, color .2s;
}
.tg-menu > li > a:hover,
.tg-menu > li:focus-within > a { background: var(--tg-surface-2); }
.tg-menu > li.current-menu-item > a,
.tg-menu > li.current-menu-ancestor > a,
.tg-menu > li.current-menu-parent > a { color: var(--tg-brand-2) !important; }
.tg-menu > li.menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-left: 4px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); opacity: .55;
}
.tg-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
	background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 14px;
	box-shadow: var(--tg-shadow-lg); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.tg-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.tg-menu > li:hover > .sub-menu,
.tg-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tg-menu .sub-menu a {
	display: block; padding: 9px 12px; border-radius: 9px; color: var(--tg-ink-2) !important;
	text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.tg-menu .sub-menu a:hover { background: var(--tg-tint); color: var(--tg-brand) !important; }
html[data-theme="dark"] .tg-menu .sub-menu a:hover { color: var(--tg-link) !important; }
.tg-sub-toggle { display: none; }

.tg-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.tg-icon-btn {
	width: 42px; height: 42px; display: inline-grid; place-items: center;
	border-radius: 12px; border: 1px solid var(--tg-line); background: var(--tg-surface);
	color: var(--tg-ink); cursor: pointer; padding: 0; transition: background .2s, border-color .2s, transform .1s;
}
.tg-icon-btn:hover { background: var(--tg-surface-2); }
.tg-icon-btn:active { transform: scale(.96); }
.tg-icon-btn .tg-icon { width: 19px; height: 19px; }
.tg-theme-toggle .tg-i-sun { display: none; }
html[data-theme="dark"] .tg-theme-toggle .tg-i-sun { display: inline-block; }
html[data-theme="dark"] .tg-theme-toggle .tg-i-moon { display: none; }
.tg-menu-toggle { display: none; }

/* Search panel */
.tg-search-panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--tg-surface); border-bottom: 1px solid var(--tg-line);
	box-shadow: var(--tg-shadow-lg); padding: 22px 0;
}
.tg-search-panel[hidden] { display: none; }
.tg-searchform { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; min-width: 0; width: 100%; }
.tg-searchform input[type="search"] {
	flex: 1; min-width: 0; width: 100%; height: 52px; padding: 0 18px; font-size: 17px; font-family: inherit;
	border-radius: 14px; border: 1px solid var(--tg-line); background: var(--tg-bg); color: var(--tg-ink);
	outline: none;
}
.tg-searchform input[type="search"]:focus { border-color: var(--tg-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tg-brand) 18%, transparent); }
.tg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 52px; padding: 0 24px; border-radius: 14px; border: 0; cursor: pointer;
	background: var(--tg-grad); color: #fff !important; font-weight: 700; font-family: var(--tg-font-head);
	font-size: 15px; text-decoration: none; transition: filter .2s, transform .1s;
}
.tg-btn:hover { filter: brightness(1.08); }
.tg-btn:active { transform: scale(.98); }

/* Reading progress (single posts) */
.tg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.tg-progress span { display: block; height: 100%; width: 0; background: var(--tg-grad); }
.admin-bar .tg-progress { top: 32px; }

/* Mobile drawer */
.tg-drawer { position: fixed; inset: 0; z-index: 1001; }
.tg-drawer[hidden] { display: none; }
.tg-drawer__scrim { position: absolute; inset: 0; background: rgba(10, 8, 14, .55); animation: tg-fade .2s; }
.tg-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
	background: var(--tg-surface); display: flex; flex-direction: column; overflow-y: auto;
	animation: tg-slide .25s cubic-bezier(.2, .8, .2, 1);
}
.tg-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--tg-line); }
.tg-drawer__head .tg-logo img { height: 36px; }
.tg-drawer__body { padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 22px; }
.tg-drawer .tg-searchform input[type="search"] { height: 46px; font-size: 16px; }
.tg-drawer .tg-searchform input[type="search"] { min-width: 0; }
.tg-drawer .tg-searchform .tg-btn { height: 46px; width: 46px; padding: 0; flex: none; }
.tg-drawer .tg-searchform .tg-btn span { display: none; }
.tg-drawer .tg-menu { flex-direction: column; align-items: stretch; gap: 0; }
.tg-drawer .tg-menu > li { border-bottom: 1px solid var(--tg-line); display: flex; flex-wrap: wrap; align-items: center; }
.tg-drawer .tg-menu > li > a { flex: 1; padding: 14px 4px; font-size: 17px; border-radius: 0; }
.tg-drawer .tg-menu > li > a:hover,
.tg-drawer .tg-menu > li:focus-within > a { background: none; }
.tg-drawer .tg-menu > li.menu-item-has-children > a::after { display: none; }
.tg-drawer .tg-sub-toggle {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
	border: 1px solid var(--tg-line); background: none; color: var(--tg-ink); cursor: pointer;
}
.tg-drawer .tg-sub-toggle .tg-icon { transition: transform .2s; }
.tg-drawer li.is-open > .tg-sub-toggle .tg-icon { transform: rotate(180deg); }
.tg-drawer .tg-menu .sub-menu {
	position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
	min-width: 0; width: 100%; padding: 0 0 10px 6px; display: none; background: none;
}
.tg-drawer li.is-open > .sub-menu { display: block; }
.tg-drawer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.tg-drawer__links a { color: var(--tg-muted) !important; text-decoration: none; }
.tg-drawer .tg-social a { width: 40px; height: 40px; border: 1px solid var(--tg-line); color: var(--tg-ink) !important; }
.tg-drawer .tg-social .tg-icon { width: 18px; height: 18px; }

@keyframes tg-fade { from { opacity: 0; } }
@keyframes tg-slide { from { transform: translateX(100%); } }

/* ==========================================================================
   Shared building blocks
   ========================================================================== */
.tg-section { padding: 44px 0 8px; }
.tg-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tg-sec-title { margin: 0; font-size: 26px; display: flex; align-items: center; gap: 12px; }
.tg-sec-title::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: var(--tg-grad); flex: none; }
.tg-sec-more {
	font-family: var(--tg-font-head); font-weight: 700; font-size: 14px; color: var(--tg-ink) !important;
	text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	padding: 8px 14px; border: 1px solid var(--tg-line); border-radius: 999px; background: var(--tg-surface);
	transition: border-color .2s, color .2s;
}
.tg-sec-more:hover { border-color: var(--tg-brand-2); color: var(--tg-brand-2) !important; }
.tg-sec-more .tg-icon { width: 15px; height: 15px; }

.tg-pill {
	display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
	background: var(--tg-tint); color: var(--tg-brand) !important; text-decoration: none;
	font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	font-family: var(--tg-font-head); white-space: nowrap;
}
html[data-theme="dark"] .tg-pill { color: var(--tg-link) !important; }
.tg-pill:hover { background: var(--tg-brand); color: #fff !important; }
.tg-pill--solid { background: var(--tg-grad); color: #fff !important; }
.tg-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.tg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--tg-muted); font-size: 13.5px; }
.tg-meta > * + *::before { content: "•"; margin: 0 8px; opacity: .55; }
.tg-meta a { color: inherit !important; text-decoration: none; font-weight: 600; }
.tg-meta a:hover { color: var(--tg-ink) !important; }

/* Cards */
.tg-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: var(--tg-radius);
	overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tg-card:hover { transform: translateY(-3px); box-shadow: var(--tg-shadow-lg); border-color: transparent; }
.tg-card__media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tg-surface-2); }
.tg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tg-card:hover .tg-card__media img { transform: scale(1.05); }
.tg-card__media--empty { background: var(--tg-grad); opacity: .85; }
.tg-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.tg-card__title { margin: 0; font-size: 19px; line-height: 1.3; }
.tg-card__title a { color: var(--tg-ink) !important; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.tg-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tg-card:hover .tg-card__title a { background-size: 100% 1.5px; }
.tg-card .tg-pill, .tg-card .tg-meta a { position: relative; z-index: 2; }
.tg-card .tg-pill { align-self: flex-start; }
.tg-card__excerpt {
	margin: 0; color: var(--tg-muted); font-size: 15px; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tg-card .tg-meta { margin-top: auto; }

/* Row card (thumbnail left) */
.tg-card--row { flex-direction: row; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.tg-card--row .tg-card__media { width: 112px; flex: none; aspect-ratio: 4 / 3; border-radius: 10px; }
.tg-card--row .tg-card__body { padding: 0; gap: 6px; }
.tg-card--row .tg-card__title { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tg-card--row .tg-meta { font-size: 12.5px; }
.tg-card--row:hover { transform: none; }
.tg-card--row .tg-pill { height: 20px; font-size: 10.5px; align-self: flex-start; }

/* Overlay card (hero) */
.tg-card--overlay { min-height: 460px; justify-content: flex-end; border: 0; color: #fff; }
.tg-card--overlay .tg-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.tg-card--overlay .tg-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(14, 10, 20, 0) 25%, rgba(14, 10, 20, .55) 55%, rgba(14, 10, 20, .92) 100%);
}
.tg-card--overlay .tg-card__body { position: relative; z-index: 1; padding: 32px; gap: 14px; flex: none; }
.tg-card--overlay .tg-card__title { font-size: 34px; line-height: 1.15; max-width: 22ch; }
.tg-card--overlay .tg-card__title a { color: #fff !important; }
.tg-card--overlay .tg-card__excerpt { color: rgba(255, 255, 255, .82); font-size: 16px; max-width: 60ch; }
.tg-card--overlay .tg-meta { color: rgba(255, 255, 255, .78); }
.tg-card--overlay .tg-meta a:hover { color: #fff !important; }
.tg-card--overlay .tg-pill { background: rgba(255, 255, 255, .16); color: #fff !important; backdrop-filter: blur(6px); align-self: flex-start; }
.tg-card--overlay .tg-pill:hover { background: #fff; color: var(--tg-brand) !important; }

/* Grids */
.tg-grid { display: grid; gap: 24px; }
.tg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg-grid--4 .tg-card__title { font-size: 17px; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.tg-hero { padding: 32px 0 8px; }
.tg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; }
.tg-hero__grid > .tg-card--overlay { min-height: 520px; }
.tg-hero__side {
	display: flex; flex-direction: column; gap: 4px; background: var(--tg-surface);
	border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 14px 10px;
}
.tg-hero__side-title { margin: 4px 12px 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--tg-muted); font-family: var(--tg-font-head); }
.tg-hero__side .tg-card--row { border: 0; background: none; }
.tg-hero__side .tg-card--row + .tg-card--row { border-top: 1px solid var(--tg-line); border-radius: 0; }

.tg-topics { padding: 28px 0 0; }
.tg-topics__row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tg-topics__row::-webkit-scrollbar { display: none; }
.tg-topic {
	flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
	background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 999px;
	color: var(--tg-ink) !important; text-decoration: none; font-weight: 700; font-family: var(--tg-font-head); font-size: 14.5px;
	transition: border-color .2s, transform .2s;
}
.tg-topic:hover { border-color: var(--tg-brand-2); transform: translateY(-2px); }
.tg-topic__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tg-tint); color: var(--tg-brand); }
html[data-theme="dark"] .tg-topic__icon { color: var(--tg-link); }
.tg-topic__icon .tg-icon { width: 16px; height: 16px; }
.tg-topic__count { color: var(--tg-muted); font-weight: 500; font-size: 13px; }

.tg-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.tg-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 96px; }
.admin-bar .tg-sidebar { top: 128px; }

.tg-widget { background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 22px; }
.tg-widget__title { margin: 0 0 16px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--tg-muted); }

.tg-rank { list-style: none; margin: 0; padding: 0; counter-reset: tg-rank; display: flex; flex-direction: column; }
.tg-rank li { counter-increment: tg-rank; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--tg-line); }
.tg-rank li:first-child { border-top: 0; padding-top: 0; }
.tg-rank li::before {
	content: counter(tg-rank, decimal-leading-zero); font-family: var(--tg-font-head); font-weight: 800; font-size: 24px; line-height: 1;
	background: var(--tg-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tg-rank a { color: var(--tg-ink) !important; text-decoration: none; font-family: var(--tg-font-head); font-weight: 700; font-size: 15px; line-height: 1.35; }
.tg-rank a:hover { color: var(--tg-brand-2) !important; }
.tg-rank .tg-meta { margin-top: 4px; font-size: 12.5px; }

.tg-ad { text-align: center; }
.tg-ad__label { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tg-muted); margin-bottom: 8px; }
.tg-ad:empty, .tg-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

.tg-follow-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tg-follow-mini a {
	display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--tg-line);
	color: var(--tg-ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s;
}
.tg-follow-mini a:hover { background: var(--tg-tint); border-color: transparent; }
.tg-follow-mini .tg-icon { color: var(--tg-brand-2); }

/* Dark band */
.tg-band { margin-top: 52px; padding: 52px 0 56px; background: var(--tg-dark); color: #e9e5ef; position: relative; overflow: hidden; }
.tg-band::before {
	content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -320px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(176, 36, 94, .45), transparent);
}
.tg-band::after {
	content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -300px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(242, 129, 29, .25), transparent);
}
.tg-band > .tg-container { position: relative; z-index: 1; }
.tg-band .tg-sec-title { color: #fff; }
.tg-band .tg-sec-more { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff !important; }
.tg-band .tg-sec-more:hover { border-color: #fff; }
.tg-band .tg-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.tg-band .tg-card__title a { color: #fff !important; }
.tg-band .tg-card .tg-meta { color: #a8a1b2; }
.tg-band .tg-pill { background: rgba(255, 255, 255, .12); color: #fff !important; }
.tg-band__sub { color: #a8a1b2; margin: -12px 0 24px; max-width: 60ch; }

/* Three-column topic lists */
.tg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tg-col .tg-sec-head { margin-bottom: 16px; }
.tg-col .tg-sec-title { font-size: 21px; }
.tg-col .tg-sec-title::before { height: 21px; }
.tg-list { list-style: none; margin: 14px 0 0; padding: 0; }
.tg-list li { padding: 14px 0; border-top: 1px solid var(--tg-line); }
.tg-list a { color: var(--tg-ink) !important; text-decoration: none; font-family: var(--tg-font-head); font-weight: 700; font-size: 15.5px; line-height: 1.35; display: block; }
.tg-list a:hover { color: var(--tg-brand-2) !important; }
.tg-list .tg-meta { margin-top: 5px; font-size: 12.5px; }

/* Follow band */
.tg-follow { margin: 56px 0 64px; }
.tg-follow__box {
	position: relative; overflow: hidden; border-radius: 24px; padding: 44px 48px; background: var(--tg-grad); color: #fff;
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.tg-follow__box::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 18px 18px;
	mask-image: linear-gradient(90deg, transparent 30%, #000);
	-webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.tg-follow__box h2 { color: #fff !important; margin: 0 0 8px; font-size: 32px; }
.tg-follow__box p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 17px; max-width: 46ch; }
.tg-follow__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; z-index: 1; }
.tg-follow__links a {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
	background: rgba(255, 255, 255, .14); color: #fff !important; text-decoration: none; font-weight: 700; font-family: var(--tg-font-head);
	backdrop-filter: blur(6px); transition: background .2s, transform .15s;
}
.tg-follow__links a:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }
.tg-follow__links small { display: block; font-weight: 500; font-family: var(--tg-font-body); opacity: .8; font-size: 12.5px; }

/* ==========================================================================
   Archive (category, tag, author, search)
   ========================================================================== */
.tg-archive-head { padding: 40px 0 8px; }
.tg-archive-head__box {
	background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 20px; padding: 32px 36px;
	position: relative; overflow: hidden;
}
.tg-archive-head__box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tg-grad); }
.tg-archive-head h1 { margin: 6px 0 8px; font-size: 38px; }
.tg-archive-head p { margin: 0; color: var(--tg-muted); max-width: 70ch; }
.tg-archive-head .tg-pills { margin-top: 18px; }
.tg-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--tg-brand-2); font-family: var(--tg-font-head); }

.tg-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 40px 0 64px; }
.tg-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 12px;
	border: 1px solid var(--tg-line); background: var(--tg-surface); color: var(--tg-ink) !important; text-decoration: none; font-weight: 700;
}
.tg-pagination .page-numbers.current { background: var(--tg-grad); border-color: transparent; color: #fff !important; }
.tg-pagination .page-numbers.dots { border: 0; background: none; }
.tg-pagination a.page-numbers:hover { border-color: var(--tg-brand-2); }

.tg-empty { text-align: center; padding: 60px 20px; background: var(--tg-surface); border: 1px dashed var(--tg-line); border-radius: 20px; }

/* ==========================================================================
   Single post
   ========================================================================== */
.tg-post { padding: 28px 0 0; }
.tg-crumbs { font-size: 13.5px; color: var(--tg-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tg-crumbs a { color: var(--tg-muted) !important; text-decoration: none; }
.tg-crumbs a:hover { color: var(--tg-ink) !important; }
.tg-crumbs .tg-sep { opacity: .5; }
.tg-crumbs [aria-current] { color: var(--tg-ink); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tg-post-head { max-width: 900px; margin: 22px 0 28px; }
.tg-post-title { font-size: clamp(30px, 4.2vw, 50px) !important; line-height: 1.1 !important; margin: 14px 0 14px; letter-spacing: -0.03em !important; }
.tg-post-dek { font-size: 19px; color: var(--tg-muted); margin: 0 0 22px; max-width: 64ch; line-height: 1.55; }
.tg-post-byline { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--tg-line); }
.tg-author-chip { display: flex; align-items: center; gap: 12px; }
.tg-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: var(--tg-grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--tg-font-head); }
.tg-author-chip__name { font-weight: 700; color: var(--tg-ink) !important; text-decoration: none; font-family: var(--tg-font-head); }
.tg-author-chip .tg-meta { font-size: 13px; }

.tg-share { display: flex; align-items: center; gap: 8px; }
.tg-share__label { font-size: 13px; color: var(--tg-muted); margin-right: 4px; }
.tg-share a, .tg-share button {
	width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%;
	border: 1px solid var(--tg-line); background: var(--tg-surface); color: var(--tg-ink) !important; cursor: pointer; padding: 0;
	transition: background .2s, color .2s, border-color .2s;
}
.tg-share a:hover, .tg-share button:hover { background: var(--tg-ink); color: var(--tg-surface) !important; border-color: var(--tg-ink); }
.tg-share .tg-icon { width: 16px; height: 16px; }
.tg-share button.is-copied { background: #16a34a; border-color: #16a34a; color: #fff !important; }

.tg-post-hero { margin: 0 0 40px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--tg-surface-2); }
.tg-post-hero img { width: 100%; height: 100%; object-fit: cover; }

.tg-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.tg-post-main { min-width: 0; max-width: 740px; }
.tg-post-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.admin-bar .tg-post-aside { top: 132px; }

/* Table of contents */
.tg-toc { background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 20px 8px 14px 20px; }
.tg-toc__title { margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--tg-muted); font-family: var(--tg-font-head); display: flex; justify-content: space-between; align-items: center; padding-right: 12px; }
.tg-toc ol { list-style: none; margin: 0; padding: 0 12px 0 0; max-height: calc(100vh - 260px); overflow-y: auto; counter-reset: tg-toc; scrollbar-width: thin; }
.tg-toc li { counter-increment: tg-toc; }
.tg-toc a {
	display: grid; grid-template-columns: 26px 1fr; padding: 7px 10px 7px 0; border-radius: 8px;
	color: var(--tg-ink-2) !important; text-decoration: none; font-size: 14px; line-height: 1.4;
	border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px; transition: color .2s, border-color .2s, background .2s;
}
.tg-toc a::before { content: counter(tg-toc) "."; color: var(--tg-muted); font-weight: 600; font-size: 13px; }
.tg-toc a:hover { color: var(--tg-ink) !important; background: var(--tg-surface-2); }
.tg-toc a.is-active { color: var(--tg-brand-2) !important; border-left-color: var(--tg-brand-2); font-weight: 600; }
html[data-theme="dark"] .tg-toc a.is-active { color: var(--tg-link) !important; border-left-color: var(--tg-link); }
.tg-toc--inline { display: none; margin: 0 0 32px; padding: 0; }
.tg-toc--inline summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-family: var(--tg-font-head); font-weight: 800; }
.tg-toc--inline summary::-webkit-details-marker { display: none; }
.tg-toc--inline summary .tg-icon { transition: transform .2s; }
.tg-toc--inline[open] summary .tg-icon { transform: rotate(180deg); }
.tg-toc--inline ol { padding: 0 16px 14px 20px; max-height: none; }

/* Prose */
.tg-prose { font-size: 18.5px; line-height: 1.78; color: var(--tg-ink-2); overflow-wrap: break-word; }
.tg-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.tg-prose h2 { font-size: 30px; margin: 1.9em 0 .6em; color: var(--tg-ink); scroll-margin-top: 110px; }
.tg-prose h3 { font-size: 23px; margin: 1.6em 0 .5em; color: var(--tg-ink); scroll-margin-top: 110px; }
.tg-prose h4 { font-size: 19px; margin: 1.4em 0 .5em; }
.tg-prose > h2:first-child, .tg-prose > h3:first-child { margin-top: 0; }
.tg-prose strong { color: var(--tg-ink); }
.tg-prose a {
	color: var(--tg-link) !important; font-weight: 600; text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--tg-link) 35%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.tg-prose a:hover { text-decoration-color: var(--tg-brand-2); }
.tg-prose ul, .tg-prose ol { padding-left: 1.3em; }
.tg-prose li { margin-bottom: .45em; }
.tg-prose li::marker { color: var(--tg-brand-2); font-weight: 700; }
.tg-prose blockquote {
	margin: 1.6em 0; padding: 20px 26px; border-left: 4px solid; border-image: var(--tg-grad) 1;
	background: var(--tg-surface); font-size: 1.08em; color: var(--tg-ink); font-style: normal;
}
.tg-prose blockquote p:last-child { margin-bottom: 0; }
.tg-prose img, .tg-prose figure img { border-radius: 14px; }
.tg-prose figure { margin-left: 0; margin-right: 0; }
.tg-prose figcaption { font-size: 14px; color: var(--tg-muted); text-align: center; margin-top: 8px; }
.tg-prose code { background: var(--tg-surface-2); padding: .12em .4em; border-radius: 6px; font-size: .88em; }
.tg-prose pre { background: #15121a; color: #ece8f1; padding: 20px; border-radius: 14px; overflow-x: auto; font-size: 15px; }
.tg-prose pre code { background: none; padding: 0; }
.tg-prose .wp-block-table, .tg-prose figure.wp-block-table { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--tg-line); border-radius: 14px; background: var(--tg-surface); }
.tg-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; margin: 0; }
.tg-prose .wp-block-table table { border: 0; }
.tg-prose th, .tg-prose td { padding: 12px 16px; text-align: left; border: 0; border-bottom: 1px solid var(--tg-line); vertical-align: top; }
.tg-prose thead th, .tg-prose tr:first-child th { background: var(--tg-surface-2); color: var(--tg-ink); font-family: var(--tg-font-head); font-weight: 800; font-size: 14px; }
.tg-prose tr:last-child td { border-bottom: 0; }
.tg-prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--tg-surface-2) 45%, transparent); }
.tg-prose hr { border: 0; height: 1px; background: var(--tg-line); margin: 2.4em 0; }

/* After the article */
.tg-post-foot { margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--tg-line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tg-post-foot .tg-pills a { height: 30px; padding: 0 13px; font-size: 12px; }

.tg-authorbox {
	margin: 32px 0 0; padding: 28px; display: grid; grid-template-columns: 84px 1fr; gap: 22px;
	background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 20px; position: relative; overflow: hidden;
}
.tg-authorbox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tg-grad); }
.tg-authorbox .tg-avatar { width: 84px; height: 84px; font-size: 26px; }
.tg-authorbox__kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--tg-muted); font-weight: 700; }
.tg-authorbox h3 { margin: 2px 0 8px; font-size: 22px; }
.tg-authorbox p { margin: 0 0 12px; color: var(--tg-ink-2); font-size: 15.5px; }
.tg-authorbox__link { font-weight: 700; font-family: var(--tg-font-head); font-size: 14px; color: var(--tg-brand-2) !important; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
html[data-theme="dark"] .tg-authorbox__link { color: var(--tg-link) !important; }

.tg-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; }
.tg-postnav a {
	display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--tg-line);
	background: var(--tg-surface); text-decoration: none; transition: border-color .2s, transform .2s;
}
.tg-postnav a:hover { border-color: var(--tg-brand-2); transform: translateY(-2px); }
.tg-postnav small { color: var(--tg-muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tg-postnav strong { color: var(--tg-ink); font-family: var(--tg-font-head); font-size: 15.5px; line-height: 1.35; }
.tg-postnav a:last-child { text-align: right; }

.tg-related { padding: 56px 0 8px; }
.tg-comments { max-width: 740px; padding: 32px 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.tg-footer { background: var(--tg-dark); color: #b7b0c1; margin-top: 64px; position: relative; font-size: 15px; }
.tg-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tg-grad); }
.tg-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.tg-footer__brand p { margin: 18px 0 22px; max-width: 38ch; line-height: 1.65; }
.tg-footer .tg-logo img { height: 46px; }
.tg-footer h3 { color: #fff !important; font-size: 14px !important; text-transform: uppercase; letter-spacing: .12em !important; margin: 6px 0 18px; }
.tg-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tg-footer ul a { color: #b7b0c1 !important; text-decoration: none; transition: color .2s, padding .2s; }
.tg-footer ul a:hover { color: #fff !important; padding-left: 4px; }
.tg-footer .tg-social { gap: 10px; }
.tg-footer .tg-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #e9e5ef !important; }
.tg-footer .tg-social a:hover { background: var(--tg-grad); }
.tg-footer .tg-social .tg-icon { width: 18px; height: 18px; }
.tg-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: 14px; }
.tg-footer__bottom .tg-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tg-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.tg-footer__legal a, .tg-totop { color: #b7b0c1 !important; text-decoration: none; }
.tg-footer__legal a:hover, .tg-totop:hover { color: #fff !important; }
.tg-totop { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ==========================================================================
   Plugin-only pieces
   ========================================================================== */
.tg-logo__text { font-family: var(--tg-font-head); font-weight: 800; font-size: 24px; color: var(--tg-ink); letter-spacing: -0.02em; }
.tg-footer .tg-logo__text { color: #fff; }
.tg-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.tg-card--span { grid-column: 1 / -1; min-height: 420px; }
.tg-card--span .tg-card__title { font-size: 32px; }
.tg-archive-head__box.has-avatar { display: flex; align-items: center; gap: 24px; }
.tg-archive-head__box .tg-avatar { width: 84px; height: 84px; font-size: 26px; }
.tg-archive-head__desc { color: var(--tg-muted); max-width: 70ch; }
.tg-archive-head__desc p { margin: 0 0 .6em; }
.tg-archive-head__desc p:last-child { margin-bottom: 0; }
.tg-archive-head__search { margin-top: 18px; max-width: 620px; }
.tg-archive-head__search .tg-searchform { margin: 0; }
.tg-empty .tg-searchform { margin-top: 18px; }
.tg-pagination .tg-icon { width: 18px; height: 18px; }
img.tg-avatar { border-radius: 50%; object-fit: cover; background: var(--tg-surface-2); }
.tg-postnav > span:empty { display: none; }

/* Ad slots and ad widgets */
.tg-ad--inline { margin: 2em 0; text-align: center; }
.tg-widget:has(ins.adsbygoogle) { background: transparent; border: 0; padding: 0; }
.tg-widget:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.tg-ad--inline:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Keep GeneratePress's own button focus colours off our controls */
.tg-icon-btn:focus, .tg-icon-btn:hover { background: var(--tg-surface-2); color: var(--tg-ink); }
.tg-share a:focus, .tg-share button:focus { color: var(--tg-ink); }
.tg-share button:hover, .tg-share button:focus-visible { background: var(--tg-ink); color: var(--tg-surface); }
.tg-btn:focus, .tg-btn:hover { background: var(--tg-grad); color: #fff; }
.tg-drawer .tg-sub-toggle:hover, .tg-drawer .tg-sub-toggle:focus { background: var(--tg-surface-2); color: var(--tg-ink); }
.tg-icon-btn:focus-visible, .tg-btn:focus-visible, .tg-share a:focus-visible, .tg-share button:focus-visible,
.tg-sub-toggle:focus-visible, .tg-menu a:focus-visible, .tg-topic:focus-visible, .tg-card__title a:focus-visible {
	outline: 2px solid var(--tg-brand-2); outline-offset: 2px;
}

/* Lists and spacing that GeneratePress sets globally */
.tg-prose ul, .tg-prose ol { margin: 0 0 1.15em; }
.tg-prose.entry-content { margin-top: 0; }
.tg-prose .wp-block-image, .tg-prose .wp-block-embed { margin: 1.8em 0; }
.tg-prose iframe { max-width: 100%; }

/* Comments (GeneratePress comment template) */
.tg-comments .comments-area { margin: 0; padding: 28px; background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 20px; }
.tg-comments .comments-title, .tg-comments .comment-reply-title { font-size: 22px; }
.tg-comments input[type="text"], .tg-comments input[type="email"], .tg-comments input[type="url"], .tg-comments textarea {
	background: var(--tg-bg); color: var(--tg-ink); border: 1px solid var(--tg-line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.tg-comments .form-submit .submit, .tg-comments input[type="submit"] {
	background: var(--tg-grad); color: #fff; border: 0; border-radius: 12px; padding: 12px 22px; font-weight: 700; font-family: var(--tg-font-head); cursor: pointer;
}

/* GeneratePress palette remapped to ours (also makes GP pages follow dark mode) */
body.tg-on {
	--contrast: var(--tg-ink);
	--contrast-2: var(--tg-ink-2);
	--contrast-3: var(--tg-muted);
	--base: var(--tg-line);
	--base-2: var(--tg-bg);
	--base-3: var(--tg-surface);
	--accent: var(--tg-link);
}

/* Pages that still use GeneratePress templates (About, Contact, 404 …) */
body.tg-on:not(.tg-tpl) .site.grid-container { max-width: var(--tg-container); margin-top: 32px; padding-left: var(--tg-gutter); padding-right: var(--tg-gutter); background: transparent; }
body.tg-on:not(.tg-tpl) .inside-article,
body.tg-on:not(.tg-tpl) .sidebar .widget,
body.tg-on:not(.tg-tpl) .comments-area,
body.tg-on:not(.tg-tpl) .page-header,
body.tg-on:not(.tg-tpl) .paging-navigation { background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); color: var(--tg-ink); }
body.tg-on:not(.tg-tpl) .entry-title { font-family: var(--tg-font-head); font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; }
body.tg-on:not(.tg-tpl) .entry-content { font-size: 18px; line-height: 1.75; color: var(--tg-ink-2); }
body.tg-on:not(.tg-tpl) .entry-content a { color: var(--tg-link); text-underline-offset: 3px; }
body.tg-on:not(.tg-tpl) .sidebar .widget-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--tg-muted); }
body.tg-on:not(.tg-tpl) .sidebar .widget a { color: var(--tg-ink); text-decoration: none; }
body.tg-on:not(.tg-tpl) .sidebar .widget:has(ins.adsbygoogle) { background: transparent; border: 0; padding: 0; }
body.tg-on:not(.tg-tpl) .entry-meta, body.tg-on:not(.tg-tpl) .entry-meta a { color: var(--tg-muted); }
/* Block widgets and search forms from WordPress / GeneratePress */
body.tg-on .sidebar .widget :is(h2, h3).wp-block-heading,
body.tg-on .sidebar .widget .wp-block-search__label,
.tg-widget :is(h2, h3).wp-block-heading,
.tg-widget .wp-block-search__label {
	font-family: var(--tg-font-head); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--tg-muted); margin: 0 0 14px;
}
body.tg-on .wp-block-search__inside-wrapper { gap: 8px; }
body.tg-on .wp-block-search__input, body.tg-on .search-form .search-field {
	background: var(--tg-bg); color: var(--tg-ink); border: 1px solid var(--tg-line); border-radius: 12px; padding: 10px 14px; min-width: 0;
}
body.tg-on .wp-block-search__button, body.tg-on .search-form .search-submit {
	background: var(--tg-grad); color: #fff; border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 700; font-family: var(--tg-font-head); margin-left: 0;
}
body.tg-on .search-form { display: flex; gap: 8px; }
body.tg-on .sidebar .widget ul { margin-left: 0; padding-left: 0; list-style: none; }
body.tg-on .sidebar .widget li { padding: 6px 0; }
body.tg-on input[type="text"], body.tg-on input[type="email"], body.tg-on input[type="url"], body.tg-on input[type="tel"], body.tg-on textarea, body.tg-on select {
	background: var(--tg-surface); color: var(--tg-ink); border-color: var(--tg-line);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.tg-nav { display: none; }
	.tg-menu-toggle { display: inline-grid; }
	.tg-mainbar__inner { justify-content: space-between; }
	.tg-split, .tg-post-layout { grid-template-columns: minmax(0, 1fr); }
	.tg-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-post-aside { display: none; }
	.tg-toc--inline { display: block; }
	.tg-post-main { max-width: none; }
	.tg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-footer__grid { grid-template-columns: 1fr 1fr; }
	.tg-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.tg-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.tg-hero__grid > .tg-card--overlay { min-height: 420px; }
	.tg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.tg-follow__box { grid-template-columns: minmax(0, 1fr); padding: 34px 28px; }
	.tg-topbar__date, .tg-topbar__links { display: none; }
}

@media (max-width: 640px) {
	:root { --tg-gutter: 16px; --tg-topbar-h: 34px; }
	.tg-topbar .tg-social { display: none; }
	.tg-mainbar__inner { height: 62px; gap: 12px; }
	.tg-logo img { height: 34px; }
	.tg-icon-btn { width: 40px; height: 40px; }
	.tg-actions .tg-search-toggle { display: none; }
	.tg-grid--2, .tg-grid--3, .tg-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.tg-sidebar { grid-template-columns: minmax(0, 1fr); }
	.tg-card--overlay .tg-card__body { padding: 22px; }
	.tg-card--overlay .tg-card__title { font-size: 26px; }
	.tg-hero { padding-top: 18px; }
	.tg-hero__grid > .tg-card--overlay { min-height: 380px; }
	.tg-hero__grid > .tg-card--overlay .tg-card__excerpt { display: none; }
	.tg-section { padding-top: 36px; }
	.tg-sec-title { font-size: 22px; }
	.tg-sec-title::before { height: 22px; }
	/* compact horizontal cards for 4-up rows on phones */
	.tg-grid--4 .tg-card { flex-direction: row; align-items: stretch; }
	.tg-grid--4 .tg-card__media { width: 124px; flex: none; aspect-ratio: auto; min-height: 104px; }
	.tg-grid--4 .tg-card__body { padding: 12px 14px; gap: 6px; }
	.tg-grid--4 .tg-card__title { font-size: 15.5px; }
	.tg-grid--4 .tg-card__excerpt { display: none; }
	.tg-grid--4 .tg-pill { height: 20px; font-size: 10.5px; align-self: flex-start; }
	.tg-grid--4 .tg-meta { font-size: 12.5px; }
	.tg-band { padding: 40px 0 44px; margin-top: 40px; }
	.tg-follow__box h2 { font-size: 26px; }
	.tg-follow__links { grid-template-columns: 1fr 1fr; }
	.tg-post-title { font-size: 30px !important; }
	.tg-post-dek { font-size: 17px; }
	.tg-post-hero { border-radius: 14px; margin-bottom: 28px; aspect-ratio: 16 / 9; }
	.tg-post-byline { flex-direction: column; align-items: flex-start; }
	.tg-prose { font-size: 17.5px; line-height: 1.72; }
	.tg-prose h2 { font-size: 25px; }
	.tg-prose h3 { font-size: 20.5px; }
	.tg-authorbox { grid-template-columns: minmax(0, 1fr); padding: 22px; }
	.tg-postnav { grid-template-columns: minmax(0, 1fr); }
	.tg-postnav a:last-child { text-align: left; }
	.tg-archive-head__box { padding: 24px 22px; }
	.tg-archive-head h1 { font-size: 30px; }
	.tg-archive-head__box.has-avatar { flex-direction: column; align-items: flex-start; }
	.tg-card--span { min-height: 360px; }
	.tg-card--span .tg-card__title { font-size: 25px; }
	.tg-card--span .tg-card__excerpt { display: none; }
	.tg-comments .comments-area { padding: 20px; }
	body.tg-on:not(.tg-tpl) .site.grid-container { margin-top: 16px; }
	.tg-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 48px; }
	.tg-footer__bottom .tg-container { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.tg-card, .tg-card__media img, .tg-trending__item, .tg-drawer__panel, .tg-drawer__scrim { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Pages (About, Contact, Authors, legal, standard, 404)
   ========================================================================== */
.tg-page-hero {
	position: relative; overflow: hidden; background: var(--tg-surface);
	border-bottom: 1px solid var(--tg-line); padding: 34px 0 76px;
}
.tg-page-hero::before {
	content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -420px; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--tg-brand-2) 22%, transparent), transparent);
	pointer-events: none;
}
.tg-page-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(color-mix(in srgb, var(--tg-brand) 16%, transparent) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(100deg, transparent 45%, #000 85%);
	-webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 85%);
}
.tg-page-hero__inner { position: relative; z-index: 1; }
.tg-page-hero .tg-crumbs { margin-bottom: 28px; }
.tg-page-title { font-size: clamp(34px, 5vw, 58px) !important; line-height: 1.06 !important; letter-spacing: -0.035em !important; margin: 10px 0 16px !important; max-width: 20ch; }
.tg-page-dek { font-size: 19px; color: var(--tg-muted); max-width: 62ch; margin: 0; line-height: 1.6; }
.tg-page-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tg-chip {
	display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
	background: var(--tg-bg); border: 1px solid var(--tg-line); font-size: 13.5px; font-weight: 600; color: var(--tg-ink-2);
}
.tg-chip .tg-icon { width: 15px; height: 15px; color: var(--tg-brand-2); }

.tg-page-body { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: -40px; position: relative; z-index: 2; }
.tg-page-body--toc { grid-template-columns: 260px minmax(0, 820px); justify-content: start; justify-items: stretch; gap: 48px; align-items: start; }
.tg-page-main { width: 100%; max-width: 820px; }
.tg-page-aside { position: sticky; top: 100px; margin-top: 40px; }
.admin-bar .tg-page-aside { top: 132px; }
.tg-page-aside .tg-toc ol { max-height: calc(100vh - 200px); }
.tg-page-card { background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 24px; padding: 48px 56px; box-shadow: var(--tg-shadow); }
.tg-page-card.tg-prose { font-size: 18px; }
.tg-page-card.tg-prose > :last-child { margin-bottom: 0; }
.tg-prose .tg-lead { font-size: 1.16em; line-height: 1.6; color: var(--tg-ink); }
.tg-prose address { font-style: normal; }

/* Value cards inside page content (Columns block with class tg-values) */
.tg-prose .wp-block-columns.tg-values { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.2em 0 2em; counter-reset: tg-val; }
.tg-prose .tg-values .wp-block-column {
	counter-increment: tg-val; background: var(--tg-bg); border: 1px solid var(--tg-line); border-radius: 18px; padding: 22px 22px 20px; margin: 0;
}
.tg-prose .tg-values .wp-block-column::before {
	content: counter(tg-val, decimal-leading-zero); display: block; font-family: var(--tg-font-head); font-weight: 800; font-size: 22px; line-height: 1; margin-bottom: 12px;
	background: var(--tg-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tg-prose .tg-values h3 { font-size: 18px; margin: 0 0 6px; }
.tg-prose .tg-values p { font-size: 15.5px; line-height: 1.6; margin: 0; color: var(--tg-ink-2); }

/* "Questions?" card under legal pages */
.tg-help-card {
	display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 24px 28px; border-radius: 20px;
	background: var(--tg-tint); border: 1px solid color-mix(in srgb, var(--tg-brand) 14%, transparent);
}
.tg-help-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tg-grad); color: #fff; flex: none; }
.tg-help-card h2 { font-size: 19px !important; margin: 0 0 4px; }
.tg-help-card p { margin: 0; color: var(--tg-ink-2); font-size: 15px; }
.tg-help-card .tg-btn { margin-left: auto; flex: none; height: 46px; }

.tg-btn--ghost { background: transparent; color: var(--tg-ink) !important; border: 1px solid var(--tg-line); }
.tg-btn--ghost:hover, .tg-btn--ghost:focus { background: var(--tg-surface-2); color: var(--tg-ink); }
.tg-btn--light, .tg-btn--light:hover, .tg-btn--light:focus { background: #fff; color: var(--tg-brand) !important; }

/* Contact */
.tg-contact__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; margin-top: -40px; position: relative; z-index: 2; align-items: start; }
.tg-contact__card { padding: 40px 44px; scroll-margin-top: 110px; }
.tg-contact__title { font-size: 26px !important; margin: 0 0 6px !important; }
.tg-contact__sub { color: var(--tg-muted); margin: 0 0 26px; }
.tg-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.tg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tg-field label { display: block; font-family: var(--tg-font-head); font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--tg-ink); }
body.tg-on .tg-field input[type="text"], body.tg-on .tg-field input[type="email"], body.tg-on .tg-field select, body.tg-on .tg-field textarea {
	display: block; width: 100%; height: 52px; padding: 0 16px; margin: 0; border-radius: 12px; border: 1px solid var(--tg-line);
	background: var(--tg-bg); color: var(--tg-ink); font-family: inherit; font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background .2s;
}
body.tg-on .tg-field textarea { height: auto; min-height: 180px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
body.tg-on .tg-field select {
	appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
body.tg-on .tg-field :is(input, select, textarea):focus { outline: none; border-color: var(--tg-brand); background-color: var(--tg-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tg-brand) 16%, transparent); }
body.tg-on .tg-field.has-error :is(input, select, textarea) { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.tg-field--check label { display: flex; gap: 10px; align-items: flex-start; font-family: var(--tg-font-body); font-weight: 500; font-size: 14.5px; color: var(--tg-ink-2); margin: 0; cursor: pointer; }
.tg-field--check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--tg-brand); flex: none; }
.tg-field--check.has-error label { color: #dc2626; }
.tg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tg-form__submit { align-self: flex-start; height: 54px; padding: 0 30px; font-size: 16px; }
.tg-form-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; margin: 0 0 22px; font-size: 15px; }
.tg-form-alert .tg-icon { flex: none; margin-top: 2px; }
.tg-form-alert ul { margin: 4px 0 0; padding-left: 18px; }
html[data-theme="dark"] .tg-form-alert { background: #3a1219; color: #fecaca; border-color: #7f1d1d; }
.tg-form-done { text-align: center; padding: 26px 8px 10px; }
.tg-form-done__icon { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; margin-bottom: 14px; }
.tg-form-done__icon .tg-icon { width: 36px; height: 36px; }
.tg-form-done h2 { font-size: 26px !important; margin: 0 0 8px !important; }
.tg-form-done p { color: var(--tg-muted); max-width: 46ch; margin: 0 auto 22px; }

.tg-contact__info { display: flex; flex-direction: column; gap: 16px; }
.tg-info-card { display: flex; gap: 16px; padding: 22px; background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 18px; box-shadow: var(--tg-shadow); }
.tg-info-card > div { min-width: 0; }
.tg-info-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tg-tint); color: var(--tg-brand); flex: none; }
html[data-theme="dark"] .tg-info-card__icon { color: var(--tg-link); }
.tg-info-card h3 { font-size: 16px !important; margin: 2px 0 6px !important; }
.tg-info-card p { margin: 0 0 8px; color: var(--tg-ink-2); font-size: 15px; line-height: 1.55; }
.tg-info-card address { font-style: normal; color: var(--tg-ink-2); line-height: 1.6; font-size: 15px; margin: 0; }
.tg-info-card__big { font-family: var(--tg-font-head); font-weight: 700; font-size: 17px; color: var(--tg-ink) !important; text-decoration: none; overflow-wrap: anywhere; }
.tg-info-card__big:hover { color: var(--tg-brand-2) !important; }
.tg-info-card__link { font-family: var(--tg-font-head); font-weight: 700; font-size: 14.5px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.tg-copy--text {
	display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 10px; margin: 8px 0 0; border-radius: 8px;
	border: 1px solid var(--tg-line); background: transparent; color: var(--tg-muted); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.tg-copy--text .tg-icon { width: 14px; height: 14px; }
.tg-copy--text:hover, .tg-copy--text:focus { background: var(--tg-surface-2); color: var(--tg-ink); }
.tg-copy--text.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.tg-info-card--accent { background: var(--tg-grad); border: 0; color: #fff; }
.tg-info-card--accent .tg-info-card__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.tg-info-card--accent h3 { color: #fff !important; }
.tg-info-card--accent p { color: rgba(255, 255, 255, .88); }
.tg-info-card--accent .tg-info-card__link { color: #fff !important; }
.tg-social--card { gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.tg-social--card a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--tg-line); color: var(--tg-ink) !important; }
.tg-social--card a:hover { background: var(--tg-ink); color: var(--tg-surface) !important; }
.tg-social--card .tg-icon { width: 17px; height: 17px; }

/* FAQ */
.tg-faq { padding-top: 64px; }
.tg-faq__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.tg-faq__head h2 { font-size: 34px; margin: 8px 0 10px; }
.tg-faq__head p { color: var(--tg-muted); margin: 0; }
.tg-faq__list { display: flex; flex-direction: column; gap: 12px; }
.tg-faq__item { background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 16px; padding: 0 22px; transition: border-color .2s; }
.tg-faq__item[open] { border-color: color-mix(in srgb, var(--tg-brand-2) 40%, var(--tg-line)); }
.tg-faq__item summary { list-style: none; cursor: pointer; padding: 19px 0; font-family: var(--tg-font-head); font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--tg-ink); }
.tg-faq__item summary::-webkit-details-marker { display: none; }
.tg-faq__item summary .tg-icon { transition: transform .2s; color: var(--tg-muted); }
.tg-faq__item[open] summary .tg-icon { transform: rotate(180deg); }
.tg-faq__item p { margin: -4px 0 20px; color: var(--tg-ink-2); line-height: 1.65; }

/* About */
.tg-stats { margin-top: -40px; position: relative; z-index: 2; }
.tg-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 22px; box-shadow: var(--tg-shadow-lg); overflow: hidden; }
.tg-stat { padding: 26px 28px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--tg-line); }
.tg-stat:first-child { border-left: 0; }
.tg-stat__icon { color: var(--tg-brand-2); margin-bottom: 8px; }
.tg-stat__icon .tg-icon { width: 22px; height: 22px; }
.tg-stat strong { font-family: var(--tg-font-head); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; background: var(--tg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tg-stat > span:last-child { color: var(--tg-muted); font-size: 14px; font-weight: 500; }
.tg-about .tg-page-body, .tg-authors .tg-page-body { margin-top: 40px; }
.tg-authors__team { padding-top: 0; margin-top: -40px; position: relative; z-index: 2; }
.tg-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tg-topic-card {
	display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 18px;
	text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tg-topic-card:hover { transform: translateY(-3px); border-color: var(--tg-brand-2); box-shadow: var(--tg-shadow); }
.tg-topic-card .tg-topic__icon { width: 42px; height: 42px; margin-bottom: 10px; }
.tg-topic-card .tg-topic__icon .tg-icon { width: 20px; height: 20px; }
.tg-topic-card strong { font-family: var(--tg-font-head); font-size: 17px; color: var(--tg-ink); }
.tg-topic-card > span:last-child { font-size: 13.5px; color: var(--tg-muted); }

/* Team cards */
.tg-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.tg-team--few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-person { display: flex; gap: 22px; padding: 28px; background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 22px; position: relative; overflow: hidden; box-shadow: var(--tg-shadow); }
.tg-person::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tg-grad); }
.tg-person__photo { flex: none; text-decoration: none; }
.tg-person__photo .tg-avatar { width: 92px; height: 92px; font-size: 30px; box-shadow: 0 0 0 4px var(--tg-surface), 0 0 0 6px color-mix(in srgb, var(--tg-brand-2) 35%, transparent); }
.tg-person__body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.tg-person__name { font-size: 22px !important; margin: 2px 0 0 !important; }
.tg-person__name a { color: var(--tg-ink) !important; text-decoration: none; }
.tg-person__role { margin-top: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--tg-brand-2); font-family: var(--tg-font-head); }
html[data-theme="dark"] .tg-person__role { color: var(--tg-link); }
.tg-person__bio { color: var(--tg-ink-2); font-size: 15px; line-height: 1.62; margin: 12px 0 16px; }
.tg-person__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--tg-line); }
.tg-person__posts { font-family: var(--tg-font-head); font-weight: 700; font-size: 14px; color: var(--tg-ink) !important; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.tg-person__posts:hover { color: var(--tg-brand-2) !important; }
.tg-person__posts .tg-icon { width: 15px; height: 15px; }
.tg-person__links { display: flex; gap: 6px; }
.tg-person__links a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--tg-line); display: grid; place-items: center; color: var(--tg-ink) !important; transition: background .2s, color .2s; }
.tg-person__links a:hover { background: #0a66c2; border-color: #0a66c2; color: #fff !important; }
.tg-person__links .tg-icon { width: 15px; height: 15px; }

/* Closing call to action */
.tg-page-cta { margin-top: 64px; }
.tg-page-cta__actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; position: relative; z-index: 1; }
.tg-page-cta__actions .tg-btn { height: 52px; }
.tg-social--light { gap: 10px; }
.tg-social--light a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff !important; }
.tg-social--light a:hover { background: rgba(255, 255, 255, .3); }
.tg-social--light .tg-icon { width: 18px; height: 18px; }

/* 404 */
.tg-page-hero--404 { text-align: center; padding: 56px 0 76px; }
.tg-page-hero--404 .tg-page-title { max-width: none; }
.tg-page-hero--404 .tg-page-dek { margin: 0 auto; }
.tg-404__code { font-family: var(--tg-font-head); font-weight: 800; font-size: clamp(96px, 18vw, 184px); line-height: .9; letter-spacing: -0.06em; background: var(--tg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tg-404__search { max-width: 620px; margin: 30px auto 0; }
.tg-404__cats { justify-content: center; margin-top: 22px; }
.tg-404 .tg-section { padding-top: 48px; }

@media (max-width: 1100px) {
	.tg-page-body--toc { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.tg-page-aside { display: none; }
	.tg-contact__grid { grid-template-columns: minmax(0, 1fr); }
	.tg-contact__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-faq__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.tg-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.tg-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-stat:nth-child(3) { border-left: 0; }
	.tg-stat:nth-child(n+3) { border-top: 1px solid var(--tg-line); }
	.tg-team, .tg-team--few { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.tg-page-hero { padding: 22px 0 64px; }
	.tg-page-hero .tg-crumbs { margin-bottom: 18px; }
	.tg-page-dek { font-size: 17px; }
	.tg-page-card { padding: 26px 20px; border-radius: 18px; }
	.tg-page-card.tg-prose { font-size: 17px; }
	.tg-contact__card { padding: 26px 20px; }
	.tg-form__row { grid-template-columns: minmax(0, 1fr); }
	.tg-form__submit { align-self: stretch; }
	.tg-contact__info { display: flex; }
	.tg-faq__head h2 { font-size: 28px; }
	.tg-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tg-topic-card { padding: 16px; }
	.tg-person { flex-direction: column; gap: 16px; padding: 22px; }
	.tg-help-card { flex-direction: column; align-items: flex-start; }
	.tg-help-card .tg-btn { margin-left: 0; }
	.tg-prose .wp-block-columns.tg-values { grid-template-columns: minmax(0, 1fr); }
	.tg-stat { padding: 20px; }
	.tg-stat strong { font-size: 28px; }
	.tg-page-hero--404 { padding: 36px 0 56px; }
}

/* Brighter gradient for gradient-filled numbers on dark backgrounds */
html[data-theme="dark"] .tg-stat strong,
html[data-theme="dark"] .tg-404__code,
html[data-theme="dark"] .tg-rank li::before,
html[data-theme="dark"] .tg-prose .tg-values .wp-block-column::before {
	background-image: linear-gradient(120deg, #d99ae9 0%, #f27fae 55%, #f8ab66 100%);
}

/* ==========================================================================
   v1.2: homepage headline (H1) and the redesigned About page
   ========================================================================== */
.tg-grad-text { background: var(--tg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .tg-grad-text { background-image: linear-gradient(120deg, #d99ae9 0%, #f27fae 55%, #f8ab66 100%); }

.tg-home-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 30px; }
.tg-home-title { margin: 0 !important; font-size: clamp(26px, 3.2vw, 38px) !important; line-height: 1.08 !important; letter-spacing: -0.035em !important; }
.tg-home-tagline { margin: 0; color: var(--tg-muted); font-size: 15.5px; line-height: 1.5; max-width: 46ch; text-align: right; }
.tg-home .tg-hero { padding-top: 20px; }

/* About: split hero */
.tg-page-hero--about { padding-bottom: 100px; }
.tg-about-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.tg-about-hero--solo { grid-template-columns: minmax(0, 1fr); }
.tg-about-hero .tg-page-title { max-width: 13ch; }
.tg-about-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tg-about-hero__actions .tg-btn { height: 50px; padding: 0 22px; }
.tg-about-hero__art { position: relative; padding: 14px 6px 22px 22px; }
.tg-collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 172px 172px; gap: 14px; }
.tg-collage__item { margin: 0; border-radius: 20px; overflow: hidden; background: var(--tg-surface-2); box-shadow: var(--tg-shadow-lg); }
.tg-collage__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-collage__item--1 { grid-row: 1 / span 2; }
.tg-float {
	position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
	background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 16px; box-shadow: var(--tg-shadow-lg);
}
.tg-float strong { display: block; font-family: var(--tg-font-head); font-size: 14.5px; color: var(--tg-ink); line-height: 1.25; }
.tg-float small { display: block; font-size: 12.5px; color: var(--tg-muted); line-height: 1.3; }
.tg-float--team { left: -8px; bottom: 0; }
.tg-float--recent { right: -14px; top: -4px; }
.tg-float__avatars { display: flex; padding-left: 4px; }
.tg-float__avatars .tg-avatar { width: 36px; height: 36px; font-size: 13px; border: 2px solid var(--tg-surface); margin-left: -10px; }
.tg-float__avatars .tg-avatar:first-child { margin-left: 0; }
.tg-float__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--tg-grad); color: #fff; flex: none; }
.tg-float__icon .tg-icon { width: 18px; height: 18px; }

/* Statement (lead paragraph) */
.tg-statement { padding: 76px 0 16px; }
.tg-statement__text { max-width: 900px; margin: 0 auto; text-align: center; }
.tg-statement__text::before { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--tg-grad); margin: 0 auto 28px; }
.tg-statement__text p { font-family: var(--tg-font-head); font-weight: 600; font-size: clamp(21px, 2.4vw, 29px); line-height: 1.45; letter-spacing: -0.015em; color: var(--tg-ink); margin: 0; }
.tg-statement__text p + p { margin-top: .8em; }
.tg-statement__text a { color: var(--tg-link); text-underline-offset: 4px; }
.tg-statement.tg-secs--authors { padding-top: 56px; }
.tg-statement.tg-secs--authors p { font-family: var(--tg-font-body); font-weight: 500; font-size: clamp(18px, 1.8vw, 21px); color: var(--tg-ink-2); }

/* Full-width content sections: heading left, text right */
.tg-secs { padding: 28px 0 8px; }
.tg-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; padding: 52px 0; border-top: 1px solid var(--tg-line); scroll-margin-top: 100px; }
.tg-sec:first-child { border-top: 0; }
.tg-sec__head { position: sticky; top: 110px; align-self: start; }
.admin-bar .tg-sec__head { top: 142px; }
.tg-sec__title { font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.15 !important; margin: 0 !important; display: flex; gap: 14px; align-items: flex-start; letter-spacing: -0.03em !important; }
.tg-sec__title::before { content: ""; width: 6px; height: .95em; margin-top: .14em; border-radius: 3px; background: var(--tg-grad); flex: none; }
.tg-sec__title strong { font-weight: inherit; }
.tg-sec__body { font-size: 18px; max-width: 760px; }
.tg-sec__body > :first-child { margin-top: 0; }
.tg-sec__body > :last-child { margin-bottom: 0; }
.tg-sec__body .wp-block-columns.tg-values { margin: 0; }
.tg-sec__body .tg-values .wp-block-column { background: var(--tg-surface); box-shadow: var(--tg-shadow); }
.tg-page-body--plain { margin-top: 48px; }

/* Compact topic cards */
.tg-topic-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.tg-topic-card .tg-topic__icon { margin: 0; flex: none; }
.tg-topic-card__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tg-topic-card__text strong { font-size: 16px; }
.tg-topic-card__text span { font-size: 13px; color: var(--tg-muted); }
.tg-topic-card__arrow { width: 16px; height: 16px; color: var(--tg-muted); transition: transform .2s, color .2s; }
.tg-topic-card:hover .tg-topic-card__arrow { transform: translateX(3px); color: var(--tg-brand-2); }
.tg-about-topics { padding-top: 36px; }
.tg-section[id] { scroll-margin-top: 100px; }

@media (max-width: 1100px) {
	.tg-about-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.tg-about-hero__art { max-width: 640px; padding-left: 0; }
	.tg-float--team { left: 14px; bottom: -6px; }
	.tg-float--recent { right: 14px; }
}
@media (max-width: 900px) {
	.tg-home-intro { flex-direction: column; align-items: flex-start; gap: 6px; }
	.tg-home-tagline { text-align: left; }
	.tg-sec { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 36px 0; }
	.tg-sec__head { position: static; }
}
@media (max-width: 640px) {
	.tg-home-intro { padding-top: 20px; }
	.tg-home .tg-hero { padding-top: 14px; }
	.tg-home-tagline { font-size: 14.5px; }
	.tg-page-hero--about { padding-bottom: 72px; }
	.tg-collage { grid-template-rows: 112px 112px; gap: 10px; }
	.tg-collage__item { border-radius: 14px; }
	.tg-float { display: none; }
	.tg-about-hero__art { padding: 0; }
	.tg-about-hero__actions .tg-btn { flex: 1; }
	.tg-statement { padding: 48px 0 0; }
	.tg-statement__text { text-align: left; }
	.tg-statement__text::before { margin-left: 0; }
	.tg-sec__body { font-size: 17px; }
}

/* Closing banner: actions aligned to the right edge */
.tg-page-cta .tg-follow__box { grid-template-columns: minmax(0, 1fr) auto; }
.tg-page-cta__actions { align-items: flex-end; justify-self: end; }
@media (max-width: 900px) {
	.tg-page-cta .tg-follow__box { grid-template-columns: minmax(0, 1fr); }
	.tg-page-cta__actions { align-items: flex-start; justify-self: start; }
}

/* Phones: stacked topic cards and single-line hero buttons */
@media (max-width: 640px) {
	.tg-topic-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
	.tg-topic-card__arrow { display: none; }
	.tg-topic-card__text strong { font-size: 15.5px; overflow-wrap: normal; word-break: normal; }
	.tg-about-hero__actions .tg-btn { padding: 0 14px; font-size: 14.5px; white-space: nowrap; gap: 6px; }
	.tg-about-hero__actions .tg-btn .tg-icon { width: 17px; height: 17px; }
}

/* ==========================================================================
   v1.3: About page sections
   ========================================================================== */
.tg-statement__more { max-width: 760px; margin: 28px auto 0; text-align: left; font-size: 18px; }
.tg-statement__more > :last-child { margin-bottom: 0; }

.tg-center-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.tg-center-head h2 { font-size: clamp(28px, 3vw, 38px) !important; margin: 8px 0 0 !important; letter-spacing: -0.03em !important; }
.tg-center-head p { color: var(--tg-muted); margin: 12px 0 0; font-size: 17px; }

/* Story + at a glance */
.tg-story { padding-top: 64px; scroll-margin-top: 90px; }
.tg-story__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.tg-story__grid--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.tg-story__text h2 { font-size: clamp(28px, 3vw, 40px) !important; line-height: 1.12 !important; letter-spacing: -0.03em !important; margin: 10px 0 22px !important; max-width: 18ch; }
.tg-story__text p { font-size: 18px; line-height: 1.75; color: var(--tg-ink-2); margin: 0 0 1.1em; }
.tg-story__text p:first-of-type { font-size: 19.5px; color: var(--tg-ink); }
.tg-story__text p:last-child { margin-bottom: 0; }
.tg-glance { position: relative; overflow: hidden; background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 22px; padding: 28px; box-shadow: var(--tg-shadow-lg); }
.tg-glance::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tg-grad); }
.tg-glance__title { font-size: 13px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .1em !important; color: var(--tg-muted) !important; margin: 0 0 8px !important; }
.tg-glance__list { margin: 0; }
.tg-glance__row { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--tg-line); }
.tg-glance__row:last-child { border-bottom: 0; }
.tg-glance__icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tg-tint); color: var(--tg-brand); }
html[data-theme="dark"] .tg-glance__icon { color: var(--tg-link); }
.tg-glance__icon .tg-icon { width: 18px; height: 18px; }
.tg-glance__row dt { font-size: 12.5px; color: var(--tg-muted); font-weight: 600; margin: 0; line-height: 1.3; }
.tg-glance__row dd { margin: 2px 0 0; font-family: var(--tg-font-head); font-weight: 700; font-size: 15.5px; color: var(--tg-ink); line-height: 1.35; overflow-wrap: anywhere; }
.tg-glance__row dd a { color: var(--tg-ink) !important; text-decoration: none; }
.tg-glance__row dd a:hover { color: var(--tg-brand-2) !important; }
.tg-glance__social { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--tg-line); flex-wrap: wrap; }
.tg-glance__social > span { font-size: 13px; font-weight: 700; color: var(--tg-muted); }

/* Values */
.tg-values-sec { padding-top: 80px; }
.tg-value-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg-value-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg-value-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-value-grid--1 { grid-template-columns: minmax(0, 1fr); }
.tg-value {
	position: relative; padding: 28px 24px 26px; background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 20px;
	box-shadow: var(--tg-shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tg-value:hover { transform: translateY(-4px); box-shadow: var(--tg-shadow-lg); border-color: color-mix(in srgb, var(--tg-brand-2) 35%, var(--tg-line)); }
.tg-value__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tg-grad); color: #fff; margin-bottom: 20px; box-shadow: 0 10px 22px -10px rgba(176, 36, 94, .55); }
.tg-value__icon .tg-icon { width: 24px; height: 24px; }
.tg-value__num { position: absolute; top: 22px; right: 24px; font-family: var(--tg-font-head); font-weight: 800; font-size: 30px; line-height: 1; color: var(--tg-line); }
.tg-value h3 { font-size: 19px !important; margin: 0 0 8px !important; }
.tg-value p { margin: 0; color: var(--tg-ink-2); font-size: 15.5px; line-height: 1.62; }

/* Process */
.tg-process { margin-top: 80px; padding: 72px 0 80px; background: var(--tg-surface); border-top: 1px solid var(--tg-line); border-bottom: 1px solid var(--tg-line); position: relative; overflow: hidden; }
.tg-process::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(color-mix(in srgb, var(--tg-brand) 12%, transparent) 1px, transparent 1px); background-size: 22px 22px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.tg-process > .tg-container { position: relative; }
.tg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: none; }
.tg-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg-steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-steps::before {
	content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px;
	background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--tg-brand-2) 45%, transparent) 0 8px, transparent 8px 16px);
}
.tg-step { position: relative; text-align: center; padding: 0 6px; margin: 0; }
.tg-step__dot {
	position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px;
	background: var(--tg-surface); color: var(--tg-brand-2); border: 2px solid color-mix(in srgb, var(--tg-brand-2) 40%, var(--tg-line));
	box-shadow: 0 0 0 8px var(--tg-surface);
}
html[data-theme="dark"] .tg-step__dot { color: var(--tg-link); }
.tg-step__dot .tg-icon { width: 26px; height: 26px; }
.tg-step:hover .tg-step__dot { background: var(--tg-grad); color: #fff; border-color: transparent; }
.tg-step__label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--tg-brand-2); font-family: var(--tg-font-head); margin-bottom: 6px; }
html[data-theme="dark"] .tg-step__label { color: var(--tg-link); }
.tg-step h3 { font-size: 20px !important; margin: 0 0 8px !important; }
.tg-step p { margin: 0 auto; color: var(--tg-ink-2); font-size: 15.5px; line-height: 1.6; max-width: 30ch; }

/* Topics / team spacing on About */
.tg-about .tg-about-topics { padding-top: 72px; }
.tg-about #team { padding-top: 64px; }

/* Transparency & trust */
.tg-trust-sec { padding-top: 64px; }
.tg-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tg-trust--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-trust--1 { grid-template-columns: minmax(0, 1fr); }
.tg-trust__card {
	display: flex; flex-direction: column; gap: 6px; padding: 26px; background: var(--tg-surface); border: 1px solid var(--tg-line); border-radius: 20px;
	text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tg-trust__card:hover { transform: translateY(-3px); border-color: var(--tg-brand-2); box-shadow: var(--tg-shadow); }
.tg-trust__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tg-tint); color: var(--tg-brand); margin-bottom: 10px; }
html[data-theme="dark"] .tg-trust__icon { color: var(--tg-link); }
.tg-trust__card h3 { font-size: 18px !important; margin: 0 !important; color: var(--tg-ink) !important; }
.tg-trust__card p { margin: 0 0 8px; color: var(--tg-ink-2); font-size: 15px; line-height: 1.6; }
.tg-trust__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--tg-font-head); font-weight: 700; font-size: 14.5px; color: var(--tg-brand-2); }
html[data-theme="dark"] .tg-trust__link { color: var(--tg-link); }
.tg-trust__link .tg-icon { width: 15px; height: 15px; transition: transform .2s; }
.tg-trust__card:hover .tg-trust__link .tg-icon { transform: translateX(3px); }

@media (max-width: 1100px) {
	.tg-story__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.tg-glance { max-width: 560px; }
	.tg-value-grid, .tg-value-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-steps, .tg-steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.tg-steps::before { display: none; }
}
@media (max-width: 900px) {
	.tg-trust, .tg-trust--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.tg-story { padding-top: 44px; }
	.tg-story__text p, .tg-story__text p:first-of-type { font-size: 17px; }
	.tg-glance { padding: 22px; }
	.tg-values-sec { padding-top: 56px; }
	.tg-value-grid, .tg-value-grid--3, .tg-value-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.tg-value { padding: 22px; }
	.tg-value__icon { width: 46px; height: 46px; margin-bottom: 14px; }
	.tg-process { margin-top: 56px; padding: 52px 0 56px; }
	.tg-steps, .tg-steps--3, .tg-steps--2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tg-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; text-align: left; padding: 0 0 26px; }
	.tg-step::before { content: ""; position: absolute; left: 25px; top: 54px; bottom: 4px; width: 2px; background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--tg-brand-2) 45%, transparent) 0 6px, transparent 6px 12px); }
	.tg-step:last-child { padding-bottom: 0; }
	.tg-step:last-child::before { display: none; }
	.tg-step__dot { grid-row: span 3; width: 52px; height: 52px; margin: 0; box-shadow: none; }
	.tg-step__dot .tg-icon { width: 22px; height: 22px; }
	.tg-step p { margin: 0; max-width: none; }
	.tg-center-head { text-align: left; margin-bottom: 28px; }
	.tg-trust-sec, .tg-about .tg-about-topics, .tg-about #team { padding-top: 48px; }
}

/* ==========================================================================
   v1.3.1: topic buttons row: wraps on computers/tablets, swipe row on phones
   ========================================================================== */
.tg-topics__row { flex-wrap: wrap; overflow: visible; gap: 10px; padding-bottom: 0; }
@media (max-width: 640px) {
	.tg-topics { padding-top: 22px; }
	.tg-topics__row {
		flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
		margin: 0 calc(var(--tg-gutter) * -1); padding: 4px var(--tg-gutter) 8px; scroll-padding: 0 var(--tg-gutter);
	}
	.tg-topic { scroll-snap-align: start; }
	.tg-topic:hover { transform: none; }
	.tg-topics__row.is-more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
	.tg-topics__row.is-more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
	.tg-topics__row.is-more-left.is-more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 56px), transparent); }
}
