/* ==========================================================================
   TodayTechGuru — main stylesheet
   Tokens → base → layout → header → components → pages → tools → utilities
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--bg: #f6f7fb;
	--surface: #ffffff;
	--surface-2: #f1f3f9;
	--surface-3: #e9ecf5;
	--ink: #0b1020;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e3e7f0;
	--line-2: #d5dbe7;
	--brand: #4f46e5;
	--brand-2: #7c3aed;
	--accent: #06b6d4;
	--brand-ink: #4338ca;
	--brand-soft: #eef0ff;
	--grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #06b6d4 100%);
	--grad-text: linear-gradient(100deg, #7c3aed, #4f46e5 55%, #0891b2);
	--wa: #25d366;
	--wa-ink: #128c4a;
	--ok: #059669;
	--bad: #e11d48;
	--warn: #d97706;
	--radius: 18px;
	--radius-sm: 12px;
	--radius-xs: 8px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
	--shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .12);
	--shadow-lg: 0 24px 60px -20px rgba(30, 27, 75, .35);
	--header-h: 68px;
	--container: 1240px;
	--font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #070a13;
	--surface: #0d1220;
	--surface-2: #121a2c;
	--surface-3: #19223a;
	--ink: #f1f5f9;
	--ink-2: #cbd5e1;
	--muted: #94a3b8;
	--line: #1d2640;
	--line-2: #29345a;
	--brand: #818cf8;
	--brand-2: #a78bfa;
	--accent: #22d3ee;
	--brand-ink: #a5b4fc;
	--brand-soft: rgba(129, 140, 248, .12);
	--grad-text: linear-gradient(100deg, #c4b5fd, #818cf8 55%, #22d3ee);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(99, 102, 241, .25); }
:where(svg[viewBox="0 0 24 24"]) { width: 1.25em; height: 1.25em; flex: none; }
.ttg-icon { flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ttg-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.ttg-skip:focus { top: 12px; color: var(--bg); }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.ttg-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.ttg-container--narrow { max-width: 820px; }
.ttg-container--tool { max-width: 1040px; }
.ttg-main { min-height: 50vh; }
.ttg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 32px 56px; align-items: start; }
.ttg-layout__main { min-width: 0; }
.ttg-sidebar { min-width: 0; }
.ttg-sidebar__inner { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.admin-bar .ttg-sidebar__inner { top: calc(var(--header-h) + 52px); }
.ttg-grid { display: grid; gap: 24px; }
.ttg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ttg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ttg-center { text-align: center; margin-top: 28px; }
.ttg-muted { color: var(--muted); }

/* ---------- Text helpers ---------- */
.ttg-grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ttg-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.ttg-eyebrow .ttg-icon { width: 14px; height: 14px; }
.ttg-eyebrow--light { color: #c7d2fe; }
.ttg-kbd { font-family: var(--mono); font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); box-shadow: 0 1px 0 var(--line-2); }

/* ---------- Buttons ---------- */
.ttg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; text-decoration: none; }
.ttg-btn:hover { transform: translateY(-1px); }
.ttg-btn:active { transform: translateY(0); }
.ttg-btn .ttg-icon { width: 18px; height: 18px; }
.ttg-btn--sm { min-height: 36px; padding: 7px 13px; font-size: 14px; border-radius: 10px; }
.ttg-btn--sm .ttg-icon { width: 16px; height: 16px; }
.ttg-btn--block { width: 100%; }
.ttg-btn--grad { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(79, 70, 229, .55); }
.ttg-btn--grad:hover { color: #fff; box-shadow: 0 10px 26px -8px rgba(79, 70, 229, .7); }
.ttg-btn--soft { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.ttg-btn--soft:hover { color: var(--ink); border-color: var(--brand); }
.ttg-btn--white { background: #fff; color: #1e1b4b; }
.ttg-btn--white:hover { color: #1e1b4b; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); }
.ttg-btn--wa { background: var(--wa); color: #06341b; }
.ttg-btn--wa:hover { color: #06341b; background: #2fe077; }
.ttg-btn--ghost-wa { background: transparent; color: var(--wa-ink); border-color: rgba(37, 211, 102, .55); }
.ttg-btn--ghost-wa:hover { background: rgba(37, 211, 102, .1); color: var(--wa-ink); }
[data-theme="dark"] .ttg-btn--ghost-wa { color: #4ade80; }
.ttg-btn--wa-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.ttg-btn--wa-light .ttg-icon { color: #4ade80; }
.ttg-btn--wa-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.ttg-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: .2s var(--ease); }
.ttg-iconbtn:hover { color: var(--brand); border-color: var(--brand); }
.ttg-iconbtn .ttg-icon { width: 18px; height: 18px; }
.ttg-iconbtn--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #e2e8f0; }
.ttg-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--brand); white-space: nowrap; }
.ttg-more .ttg-icon { width: 16px; height: 16px; transition: transform .2s; }
.ttg-more:hover .ttg-icon { transform: translateX(3px); }

/* ---------- Chips & pills ---------- */
.ttg-chip { --c: var(--brand); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); white-space: nowrap; }
.ttg-chip:hover { color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
[data-theme="dark"] .ttg-chip { color: color-mix(in srgb, var(--c) 55%, #fff); }
.ttg-chip--solid, [data-theme="dark"] .ttg-chip--solid { background: var(--c); color: #fff; border-color: transparent; }
.ttg-chip--solid:hover { color: #fff; filter: brightness(1.08); }
.ttg-chip--text { background: none; border: 0; padding: 0; }
.ttg-chip--soft { color: var(--ink-2); background: var(--surface); border-color: var(--line); }
.ttg-chip--soft:hover { color: var(--c); border-color: var(--c); background: var(--surface); }
[data-theme="dark"] .ttg-chip--soft { color: var(--ink-2); }
.ttg-chip small { color: var(--muted); font-weight: 500; }
.ttg-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
a.ttg-pill:hover { color: var(--brand); border-color: var(--brand); }
.ttg-pill--dark { background: rgba(255, 255, 255, .08); color: #e2e8f0; border-color: rgba(255, 255, 255, .14); }

/* ---------- Meta ---------- */
.ttg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.ttg-meta__author { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; }
.ttg-meta__avatar { width: 22px; height: 22px; border-radius: 50%; }
.ttg-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }

/* ---------- Announcement ---------- */
.ttg-announce { background: #0b0f1d; color: #cbd5e1; font-size: 13.5px; position: relative; overflow: hidden; }
.ttg-announce::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 80px at 20% 0%, rgba(124, 58, 237, .45), transparent), radial-gradient(500px 80px at 90% 100%, rgba(6, 182, 212, .35), transparent); pointer-events: none; }
.ttg-announce__inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-right: 44px; }
.ttg-announce p { margin: 0; text-align: center; }
.ttg-announce a { color: #fff; font-weight: 600; margin-left: 6px; display: inline-flex; align-items: center; gap: 4px; }
.ttg-announce a .ttg-icon { width: 14px; height: 14px; }
.ttg-announce__badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; flex: none; }
.ttg-announce__badge .ttg-icon { width: 12px; height: 12px; }
.ttg-announce__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #94a3b8; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.ttg-announce__close:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.ttg-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.admin-bar .ttg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ttg-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ttg-header { top: 0; } }
.ttg-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(15, 23, 42, .35); }
.ttg-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.ttg-logo { display: inline-flex; align-items: center; flex: none; }
.ttg-logo__img { height: 36px; width: auto; }
.ttg-logo__img--dark { display: none; }
[data-theme="dark"] .ttg-logo__img--light { display: none; }
[data-theme="dark"] .ttg-logo__img--dark { display: block; }
.ttg-nav { flex: 1 1 auto; min-width: 0; overflow-x: clip; overflow-y: visible; }
.ttg-nav__list .ttg-nav__more > .sub-menu { left: auto; right: 0; }
.ttg-nav__list .ttg-nav__more.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ttg-nav__list .ttg-nav__more .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 4px 12px; min-width: 0; background: none; }
.ttg-nav__more .sub-menu .menu-item-has-children > a::after { display: none; }
.ttg-nav__more .sub-menu > li > a { font-weight: 600; }
.ttg-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.ttg-nav__list > li { position: relative; }
.ttg-nav__list > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 11px; border-radius: 10px; color: var(--ink-2); font-weight: 550; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
.ttg-nav__list > li > a:hover, .ttg-nav__list > li.current-menu-item > a, .ttg-nav__list > li.current-menu-ancestor > a, .ttg-nav__list > li.current-cat > a { color: var(--ink); background: var(--surface-2); }
.ttg-nav__list .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 4px; opacity: .6; }
.ttg-nav__list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); z-index: 70; }
.ttg-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.ttg-nav__list li:hover > .sub-menu, .ttg-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ttg-nav__list .sub-menu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; }
.ttg-nav__list .sub-menu a:hover { background: var(--surface-2); color: var(--ink); }
.ttg-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.ttg-searchbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 14px; transition: border-color .2s; }
.ttg-searchbtn:hover { border-color: var(--brand); color: var(--ink-2); }
.ttg-searchbtn .ttg-icon { width: 18px; height: 18px; }
.ttg-searchbtn__text { min-width: 64px; text-align: left; }
.ttg-header__actions .ttg-searchbtn__text { display: none; }
.ttg-header__actions .ttg-searchbtn { padding: 0 8px 0 11px; }
.ttg-searchbtn--wide { width: 100%; height: 46px; margin: 4px 0 16px; }
.ttg-theme-toggle .ttg-theme-toggle__sun { display: none; }
[data-theme="dark"] .ttg-theme-toggle .ttg-theme-toggle__sun { display: block; }
[data-theme="dark"] .ttg-theme-toggle .ttg-theme-toggle__moon { display: none; }
.ttg-burger { display: none; }

/* ---------- Drawer ---------- */
.ttg-drawer { position: fixed; inset: 0; z-index: 200; }
.ttg-drawer__overlay, .ttg-search__overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: ttg-fade .2s ease; }
.ttg-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--surface); padding: 16px 20px 28px; overflow-y: auto; box-shadow: var(--shadow-lg); animation: ttg-slide .28s var(--ease); display: flex; flex-direction: column; }
.ttg-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ttg-drawer__head .ttg-logo__img { height: 30px; }
.ttg-drawer__list, .ttg-drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.ttg-drawer__list > li { border-bottom: 1px solid var(--line); }
.ttg-drawer__list a { display: block; padding: 13px 4px; color: var(--ink); font-weight: 600; font-size: 16px; }
.ttg-drawer__list .sub-menu { padding: 0 0 10px 12px; }
.ttg-drawer__list .sub-menu a { padding: 7px 4px; font-weight: 500; color: var(--ink-2); font-size: 15px; }
.ttg-drawer__cta { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
@keyframes ttg-fade { from { opacity: 0; } }
@keyframes ttg-slide { from { transform: translateX(100%); } }
@keyframes ttg-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- Search palette ---------- */
.ttg-search { position: fixed; inset: 0; z-index: 210; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.ttg-search__panel { position: relative; width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: ttg-pop .2s var(--ease); }
.ttg-search__form { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ttg-search__form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; color: var(--ink); padding: 6px 0; }
.ttg-search__form input::-webkit-search-cancel-button { display: none; }
.ttg-search__form .ttg-kbd { cursor: pointer; }
.ttg-search__results { overflow-y: auto; }
.ttg-search__results:empty { display: none; }
.ttg-search__results ul { list-style: none; margin: 0; padding: 8px; }
.ttg-search__results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--ink); }
.ttg-search__results a:hover, .ttg-search__results a.is-active { background: var(--brand-soft); }
.ttg-search__results .ttg-search__kind { flex: none; font-size: 12px; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.ttg-search__results p { margin: 0; padding: 18px 16px; color: var(--muted); font-size: 14.5px; }
.ttg-search__suggest { padding: 14px 16px 18px; }
.ttg-search__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Progress & floating ---------- */
.ttg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.ttg-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.ttg-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: inline-flex; align-items: center; gap: 0; height: 58px; padding: 0; border-radius: 999px; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(18, 140, 74, .6); transition: gap .25s var(--ease), padding .25s var(--ease); }
.ttg-wa-float:hover { color: #fff; gap: 8px; padding-right: 20px; }
.ttg-wa-float::before { content: ""; position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); z-index: -1; animation: ttg-pulse 2.4s infinite; }
.ttg-wa-float__icon { width: 58px; height: 58px; display: grid; place-items: center; flex: none; }
.ttg-wa-float__icon .ttg-icon { width: 30px; height: 30px; }
.ttg-wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 15px; transition: max-width .3s var(--ease); }
.ttg-wa-float:hover .ttg-wa-float__label, .ttg-wa-float:focus-visible .ttg-wa-float__label { max-width: 180px; }
@keyframes ttg-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.ttg-top { position: fixed; right: 29px; bottom: 90px; z-index: 140; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--shadow); transition: .2s; }
.ttg-top:hover { color: var(--brand); border-color: var(--brand); }
body:not(:has(.ttg-wa-float)) .ttg-top { bottom: 24px; }

/* ---------- Breadcrumbs ---------- */
.ttg-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 14px; padding: 0; font-size: 13.5px; color: var(--muted); }
.ttg-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ttg-crumbs a { color: var(--muted); }
.ttg-crumbs a:hover { color: var(--brand); }
.ttg-crumbs .ttg-icon { width: 12px; height: 12px; opacity: .6; }
.ttg-crumbs [aria-current] { color: var(--ink-2); display: inline-block; max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Thumbs ---------- */
.ttg-thumb { position: relative; display: block; overflow: hidden; background: var(--surface-2); border-radius: 14px; aspect-ratio: 5 / 3; }
.ttg-thumb img, .ttg-thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ttg-thumb__ph { --c: var(--brand); position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--c) 70%, #fff) 0%, transparent 45%), linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #0b1020)); }
.ttg-thumb__ph::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(circle at 70% 80%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 80%, #000, transparent 70%); }
.ttg-thumb__ph .ttg-icon { width: 40px; height: 40px; opacity: .9; position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.ttg-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; min-width: 0; }
.ttg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ttg-card:hover .ttg-thumb img { transform: scale(1.04); }
.ttg-card__body { padding: 14px 8px 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: flex-start; }
.ttg-card__title { font-size: 19px; line-height: 1.3; margin: 0; }
.ttg-card__title a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); }
.ttg-card__title a:hover { background-size: 100% 1.5px; }
.ttg-card__excerpt { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ttg-card .ttg-meta { margin-top: auto; }
.ttg-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ttg-row__thumb { aspect-ratio: 4 / 3; border-radius: 10px; }
.ttg-row__thumb .ttg-thumb__ph .ttg-icon { width: 24px; height: 24px; }
.ttg-row__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; align-items: flex-start; }
.ttg-row__title { font-size: 15.5px; line-height: 1.35; margin: 0; font-weight: 650; }
.ttg-row__title a { color: var(--ink); }
.ttg-row__title a:hover { color: var(--brand); }
.ttg-row .ttg-meta { font-size: 12.5px; }
.ttg-list { display: grid; gap: 16px; }
.ttg-listitem { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ttg-listitem__body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 6px 4px; min-width: 0; }
.ttg-listitem__title { font-size: 21px; margin: 0; }
.ttg-listitem__title a { color: var(--ink); }
.ttg-listitem__title a:hover { color: var(--brand); }
.ttg-listitem__excerpt { color: var(--muted); margin: 0; }

/* ---------- Page heads ---------- */
.ttg-pagehead { position: relative; padding: 36px 0 32px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 220px at 10% -10%, color-mix(in srgb, var(--c, #7c3aed) 14%, transparent), transparent 70%), radial-gradient(700px 200px at 100% 0%, rgba(6, 182, 212, .10), transparent 70%), var(--surface); overflow: hidden; }
.ttg-pagehead::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; opacity: .45; mask-image: linear-gradient(90deg, transparent, #000 55%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%, transparent); }
.ttg-pagehead > .ttg-container { position: relative; z-index: 1; }
.ttg-pagehead__title { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.03em; margin: 0; }
.ttg-pagehead__page { color: var(--muted); font-weight: 500; font-size: .6em; }
.ttg-pagehead__desc { color: var(--ink-2); font-size: 17.5px; max-width: 72ch; margin: 14px 0 0; }
.ttg-pagehead__desc p { margin: 0; }
.ttg-pagehead__count { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.ttg-pagehead__row { display: flex; align-items: center; gap: 18px; }
.ttg-pagehead__icon { --c: var(--brand); width: 60px; height: 60px; flex: none; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b1020)); box-shadow: 0 10px 26px -10px var(--c); }
.ttg-pagehead__icon--grad { background: var(--grad); }
.ttg-pagehead__search { margin-top: 20px; max-width: 620px; }
.ttg-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Homepage ---------- */
.ttg-today { padding: 28px 0 8px; }
.ttg-today__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ttg-today__date { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ttg-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ttg-live 2s infinite; }
@keyframes ttg-live { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.ttg-today__title { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.035em; margin: 0; font-weight: 750; }
.ttg-today__search { display: flex; align-items: center; gap: 10px; width: min(420px, 40%); height: 50px; padding: 0 10px 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); box-shadow: var(--shadow-sm); font-size: 15px; transition: border-color .2s, box-shadow .2s; flex: none; }
.ttg-today__search span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttg-today__search:hover { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.ttg-ticker { margin-top: 18px; }
.ttg-ticker__inner { display: flex; align-items: center; gap: 12px; }
.ttg-ticker__label { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ttg-ticker__label .ttg-icon { width: 16px; height: 16px; }
.ttg-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ttg-ticker__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: ttg-marquee 60s linear infinite; }
.ttg-ticker__viewport:hover .ttg-ticker__track { animation-play-state: paused; }
.ttg-ticker__track li { padding: 0 22px; position: relative; white-space: nowrap; font-size: 14.5px; }
.ttg-ticker__track li::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); transform: translate(-50%, -50%); opacity: .6; }
.ttg-ticker__track a { color: var(--ink-2); font-weight: 500; }
.ttg-ticker__track a:hover { color: var(--brand); }
@keyframes ttg-marquee { to { transform: translateX(-50%); } }

.ttg-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; grid-template-areas: "lead lead a tile" "lead lead b c"; gap: 18px; margin-top: 22px; }
.ttg-bento__lead { grid-area: lead; position: relative; min-height: 520px; border-radius: 24px; overflow: hidden; background: #0b1020; isolation: isolate; }
.ttg-bento__img { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: 0; }
.ttg-bento__lead:hover .ttg-bento__img img { transform: scale(1.03); }
.ttg-bento__lead .ttg-thumb__ph { place-items: start center; padding-top: 18%; }
.ttg-bento__lead .ttg-thumb__ph .ttg-icon { width: 110px; height: 110px; opacity: .35; }
.ttg-bento__overlay { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; color: #e2e8f0; }
.ttg-bento__lead::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(3, 7, 18, 0) 25%, rgba(3, 7, 18, .55) 55%, rgba(3, 7, 18, .92) 100%); pointer-events: none; }
.ttg-bento__title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.03em; margin: 0; }
.ttg-bento__title a { color: #fff; }
.ttg-bento__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ttg-bento__excerpt { margin: 0; color: #cbd5e1; font-size: 16px; max-width: 60ch; }
.ttg-bento__overlay .ttg-meta, .ttg-bento__overlay .ttg-meta__author { color: #cbd5e1; }
.ttg-bento__item { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.ttg-bento__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ttg-bento__item--1 { grid-area: a; }
.ttg-bento__item--2 { grid-area: b; }
.ttg-bento__item--3 { grid-area: c; }
.ttg-bento__thumb { aspect-ratio: 16 / 9; border-radius: 12px; }
.ttg-bento__body { padding: 12px 6px 6px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; }
.ttg-bento__small { font-size: 16.5px; line-height: 1.3; margin: 0; }
.ttg-bento__small a { color: var(--ink); }
.ttg-bento__small a:hover { color: var(--brand); }
.ttg-bento__body .ttg-meta { margin-top: auto; }
.ttg-bento__tile { grid-area: tile; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; color: #fff; overflow: hidden; background: #0b1020; isolation: isolate; }
.ttg-bento__tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 200px at 0% 0%, rgba(124, 58, 237, .85), transparent 70%), radial-gradient(260px 220px at 100% 100%, rgba(6, 182, 212, .7), transparent 70%), #111733; }
.ttg-bento__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; }
.ttg-bento__tile:hover { color: #fff; }
.ttg-bento__tileicon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); }
.ttg-bento__tilekicker { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #c7d2fe; }
.ttg-bento__tile strong { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.ttg-bento__tilelinks { display: flex; flex-wrap: wrap; gap: 6px; }
.ttg-bento__tilelinks span { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #e0e7ff; }
.ttg-bento__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.ttg-bento__go .ttg-icon { transition: transform .2s; }
.ttg-bento__tile:hover .ttg-bento__go .ttg-icon { transform: translateX(4px); }

.ttg-topics { margin-top: 26px; }
.ttg-topics__scroller { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.ttg-topic { --c: var(--brand); scroll-snap-align: start; flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14.5px; transition: .2s var(--ease); }
.ttg-topic:hover { border-color: var(--c); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px -12px var(--c); }
.ttg-topic__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.ttg-topic__icon .ttg-icon { width: 18px; height: 18px; }
.ttg-topic__count { font-size: 12px; color: var(--muted); font-weight: 500; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); }

.ttg-sectionhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ttg-sectionhead--center { justify-content: center; text-align: center; }
.ttg-sectionhead__title { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.03em; margin: 0; }
.ttg-band { padding: 56px 0; background: var(--surface); border-block: 1px solid var(--line); }
.ttg-band--tools { background: radial-gradient(800px 260px at 0% 0%, rgba(124, 58, 237, .08), transparent 70%), radial-gradient(700px 240px at 100% 100%, rgba(6, 182, 212, .08), transparent 70%), var(--surface); }

.ttg-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 56px 16px; }
.ttg-section { --c: var(--brand); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; position: relative; overflow: hidden; }
.ttg-section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent)); }
.ttg-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ttg-section__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.ttg-section__title { font-size: 20px; margin: 0; flex: 1; }
.ttg-section__title a { color: var(--ink); }
.ttg-section .ttg-more { color: var(--c); font-size: 13.5px; }
[data-theme="dark"] .ttg-section .ttg-more { color: color-mix(in srgb, var(--c) 60%, #fff); }
.ttg-section .ttg-card { border: 0; padding: 0; background: none; box-shadow: none; transform: none; }
.ttg-section .ttg-card__body { padding: 12px 0 14px; }
.ttg-section .ttg-card__title { font-size: 17.5px; }
.ttg-section .ttg-card .ttg-chip { display: none; }

.ttg-home-dir { padding-block: 56px 8px; }
.ttg-guestband { position: relative; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px; border-radius: 28px; color: #e2e8f0; background: #0b1020; overflow: hidden; isolation: isolate; }
.ttg-guestband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 0% 0%, rgba(124, 58, 237, .6), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(6, 182, 212, .45), transparent 70%); }
.ttg-guestband h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.ttg-guestband p { color: #cbd5e1; font-size: 16.5px; }
.ttg-guestband__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ttg-guestband__stats, .ttg-gphero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.ttg-guestband__stats div, .ttg-gphero__stats div { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.ttg-guestband__stats dt, .ttg-gphero__stats dt { font-size: 13px; color: #a5b4fc; font-weight: 600; }
.ttg-guestband__stats dd, .ttg-gphero__stats dd { margin: 4px 0 0; font-size: 28px; font-weight: 750; color: #fff; letter-spacing: -.03em; }
.ttg-home-nl { padding-block: 56px 64px; }

/* ---------- Newsletter ---------- */
.ttg-nl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.ttg-nl__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad); margin-bottom: 12px; }
.ttg-nl__title { font-size: 19px; margin: 0 0 6px; }
.ttg-nl__text { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.ttg-nl__form { display: flex; flex-wrap: wrap; gap: 8px; }
.ttg-nl__form input[type="email"] { flex: 1 1 180px; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); }
.ttg-nl__form input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ttg-nl__form .ttg-notice { flex: 1 1 100%; }
.ttg-nl--card .ttg-nl__form .ttg-btn { flex: 1 1 100%; }
.ttg-nl--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px 40px; background: radial-gradient(600px 200px at 0% 0%, rgba(124, 58, 237, .1), transparent 70%), radial-gradient(500px 220px at 100% 100%, rgba(6, 182, 212, .1), transparent 70%), var(--surface); border-radius: 24px; }
.ttg-nl--wide .ttg-nl__title { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; }
.ttg-nl--wide .ttg-nl__text { margin: 0; font-size: 16px; }
.ttg-nl--wide .ttg-nl__form input[type="email"] { height: 52px; font-size: 16px; }
.ttg-nl--wide .ttg-nl__form .ttg-btn { min-height: 52px; padding-inline: 22px; }

/* ---------- Sidebar widgets ---------- */
.ttg-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.ttg-widget__title { display: flex; align-items: center; gap: 8px; font-size: 16.5px; margin: 0 0 14px; }
.ttg-widget__title .ttg-icon { width: 18px; height: 18px; color: var(--brand); }
.ttg-widget--nl { padding: 0; border: 0; background: none; }
.ttg-widget--ad { padding: 12px; }
.ttg-widget ul:not([class]) { margin: 0; padding-left: 18px; }
.ttg-ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ttg-ranked li { counter-increment: rank; border-top: 1px solid var(--line); }
.ttg-ranked li:first-child { border-top: 0; }
.ttg-ranked a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; padding: 11px 0; color: var(--ink); }
.ttg-ranked a::before { content: counter(rank, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-weight: 700; font-size: 15px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ttg-ranked__title { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.ttg-ranked a:hover .ttg-ranked__title { color: var(--brand); }
.ttg-ranked__meta { font-size: 12.5px; color: var(--muted); }
.ttg-linklist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.ttg-linklist a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.ttg-linklist a:hover { background: var(--surface-2); color: var(--ink); }
.ttg-linklist .ttg-icon { width: 16px; height: 16px; color: var(--brand); }
.ttg-topiccloud { display: flex; flex-wrap: wrap; gap: 8px; }
.ttg-widget--guest { position: relative; color: #e2e8f0; background: #0b1020; border: 0; overflow: hidden; isolation: isolate; display: grid; gap: 10px; }
.ttg-widget--guest::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 180px at 0% 0%, rgba(124, 58, 237, .7), transparent 70%), radial-gradient(260px 200px at 100% 100%, rgba(6, 182, 212, .55), transparent 70%); }
.ttg-widget--guest .ttg-widget__title { color: #fff; margin: 0; }
.ttg-widget--guest p { margin: 0 0 4px; color: #cbd5e1; font-size: 14.5px; }
.ttg-widget--guest__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .12); color: #fff; }

/* Core block widgets (if the owner adds them) */
.ttg-widget .wp-block-search__label, .ttg-widget h2.wp-block-heading { display: block; font-size: 16.5px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.ttg-widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.ttg-widget .wp-block-search__input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); }
.ttg-widget .wp-block-search__button { height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 600; margin: 0; }
.ttg-widget .wp-block-latest-posts, .ttg-widget .wp-block-latest-comments, .ttg-widget .wp-block-categories, .ttg-widget .wp-block-archives { list-style: none; margin: 0; padding: 0; }
.ttg-widget .wp-block-latest-posts li, .ttg-widget .wp-block-categories li, .ttg-widget .wp-block-archives li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ttg-widget .wp-block-latest-posts li:first-child, .ttg-widget .wp-block-categories li:first-child, .ttg-widget .wp-block-archives li:first-child { border-top: 0; }
.ttg-widget .wp-block-latest-posts a, .ttg-widget .wp-block-categories a, .ttg-widget .wp-block-archives a { color: var(--ink); font-weight: 550; }

/* ---------- Single article ---------- */
.ttg-single__head { padding: 36px 0 26px; background: radial-gradient(900px 260px at 50% -20%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.ttg-single__head .ttg-crumbs ol { justify-content: flex-start; }
.ttg-single__title { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -.035em; margin: 14px 0 0; font-weight: 750; }
.ttg-single__dek { font-size: 19px; color: var(--ink-2); margin: 16px 0 0; line-height: 1.55; }
.ttg-single__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ttg-single__avatar img { width: 44px; height: 44px; border-radius: 50%; }
.ttg-single__who { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.ttg-single__author { color: var(--ink); font-weight: 700; }
.ttg-single__role { font-size: 13px; color: var(--muted); }
.ttg-single__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.ttg-single__facts li { display: inline-flex; align-items: center; gap: 6px; }
.ttg-single__facts .ttg-icon { width: 15px; height: 15px; }
.ttg-single__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.ttg-listen .ttg-listen__pause { display: none; }
.ttg-listen.is-playing .ttg-listen__pause { display: block; }
.ttg-listen.is-playing .ttg-listen__play { display: none; }
.ttg-listen.is-playing { border-color: var(--brand); color: var(--brand); }
.ttg-aisum { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.ttg-aisum__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.ttg-aisum__label .ttg-icon { width: 16px; height: 16px; color: var(--brand-2); }
.ttg-aisum__btn { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.ttg-aisum__btn:hover { background: var(--brand-soft); color: var(--brand); }
.ttg-single__hero { margin: 8px auto 0; }
.ttg-single__hero img { width: 100%; border-radius: 24px; aspect-ratio: 5 / 3; object-fit: cover; box-shadow: var(--shadow); }
.ttg-single__hero figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.ttg-layout--article { grid-template-columns: minmax(0, 1fr) 320px; }
.ttg-layout--article .ttg-layout__main { position: relative; padding-left: 64px; }
.ttg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ttg-share--rail { position: absolute; left: 0; top: 0; height: 100%; display: block; }
.ttg-share__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 8px; }
.admin-bar .ttg-share__sticky { top: calc(var(--header-h) + 56px); }

.ttg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--muted); }
.ttg-sharebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 28px 0; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ttg-sharebar p { margin: 0; font-weight: 600; }
.ttg-authorbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 28px 0; }
.ttg-authorbox__avatar img { width: 88px; height: 88px; border-radius: 22px; }
.ttg-authorbox__name { font-size: 21px; margin: 0; }
.ttg-authorbox__name a { color: var(--ink); }
.ttg-authorbox__role { color: var(--brand); font-weight: 600; font-size: 14px; margin: 2px 0 8px; }
.ttg-authorbox__bio { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.ttg-authorbox__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ttg-authorbox__foot .ttg-iconbtn { width: 34px; height: 34px; border-radius: 10px; }
.ttg-related { margin-top: 40px; }
.ttg-related .ttg-sectionhead__title { margin-bottom: 18px; }
.ttg-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.ttg-postnav a { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.ttg-postnav a:hover { border-color: var(--brand); }
.ttg-postnav span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ttg-postnav strong { font-size: 15.5px; line-height: 1.35; }
.ttg-postnav__next { text-align: right; align-items: flex-end; grid-column: 2; }
.ttg-disclosure { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 20px; }
.ttg-disclosure .ttg-icon { width: 16px; height: 16px; margin-top: 3px; color: var(--brand); }

/* ---------- Prose ---------- */
.ttg-prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.ttg-prose > * + * { margin-top: 1.1em; }
.ttg-prose > :first-child { margin-top: 0; }
:where(.ttg-prose p) { margin: 0; }
.ttg-prose > * { margin-bottom: 0; }
.ttg-prose h2 { font-size: 1.6em; margin-top: 1.8em; letter-spacing: -.025em; }
.ttg-prose :is(h2, h3, h4) + * { margin-top: .6em; }
.ttg-prose h3 { font-size: 1.28em; margin-top: 1.6em; }
.ttg-prose h4 { font-size: 1.08em; margin-top: 1.4em; }
.ttg-prose h2, .ttg-prose h3, .ttg-prose h4 { color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.admin-bar .ttg-prose h2, .admin-bar .ttg-prose h3, .admin-bar .ttg-prose h4 { scroll-margin-top: calc(var(--header-h) + 56px); }
.ttg-prose a { color: var(--brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ttg-prose a:hover { text-decoration-color: var(--brand); }
.ttg-prose a.ttg-btn, .ttg-prose .ttg-toolcard, .ttg-prose .ttg-aicard a, .ttg-prose .ttg-authorcard { text-decoration: none; }
.ttg-prose strong { color: var(--ink); }
.ttg-prose ul, .ttg-prose ol { padding-left: 1.3em; }
.ttg-prose li + li { margin-top: .45em; }
.ttg-prose li::marker { color: var(--brand); }
.ttg-prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 14px 14px 0; font-size: 1.05em; color: var(--ink); }
.ttg-prose blockquote p { margin: 0; }
.ttg-prose img, .ttg-prose figure img { border-radius: 14px; }
.ttg-prose figure { margin-left: 0; margin-right: 0; }
.ttg-prose figcaption, .ttg-prose .wp-element-caption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.ttg-prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.ttg-prose code { font-family: var(--mono); font-size: .86em; padding: .15em .4em; border-radius: 6px; background: var(--surface-3); color: var(--ink); }
.ttg-prose pre { position: relative; font-family: var(--mono); font-size: 14.5px; line-height: 1.6; padding: 18px 20px; border-radius: 14px; background: #0b1020; color: #e2e8f0; overflow-x: auto; border: 1px solid #1d2640; }
.ttg-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.ttg-copycode { position: absolute; top: 8px; right: 8px; font-size: 12px; font-family: var(--font); padding: 4px 10px; border-radius: 8px; border: 1px solid #334155; background: #111827; color: #cbd5e1; opacity: 0; transition: opacity .2s; }
.ttg-prose pre:hover .ttg-copycode, .ttg-copycode:focus { opacity: 1; }
.ttg-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ttg-prose table, .ttg-mini { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ttg-prose th, .ttg-prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ttg-prose th { background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: 14px; }
.ttg-prose tr:last-child td { border-bottom: 0; }
.ttg-prose .wp-block-table { margin-left: 0; margin-right: 0; }
.ttg-prose .wp-block-table table { border: 0; }
.ttg-prose .wp-block-button__link { background: var(--grad); color: #fff; border-radius: 12px; text-decoration: none; font-weight: 600; }
.ttg-prose .wp-block-embed iframe { border-radius: 14px; }
.ttg-prose .alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.ttg-prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.ttg-prose .aligncenter { margin-left: auto; margin-right: auto; }
.ttg-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.ttg-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.ttg-prose::after { content: ""; display: table; clear: both; }
.ttg-prose--wide { max-width: none; }
.ttg-container > .ttg-prose { padding-block: 36px 60px; }

/* Takeaways & TOC */
.ttg-takeaways { position: relative; padding: 20px 22px 18px; border-radius: 18px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.ttg-takeaways__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; font-weight: 700; color: var(--ink); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.ttg-takeaways__title .ttg-icon { color: #f59e0b; }
.ttg-takeaways ul { margin: 0; padding: 0; list-style: none; font-size: 16.5px; }
.ttg-takeaways li { position: relative; padding-left: 26px; }
.ttg-takeaways li + li { margin-top: 6px; }
.ttg-takeaways li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.ttg-toc { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; font-size: 16px; }
.ttg-toc summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.ttg-toc summary::-webkit-details-marker { display: none; }
.ttg-toc summary .ttg-icon { width: 18px; height: 18px; color: var(--brand); }
.ttg-toc__count { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--muted); }
.ttg-toc .ttg-toc__chev { color: var(--muted); transition: transform .2s; }
.ttg-toc[open] .ttg-toc__chev { transform: rotate(180deg); }
.ttg-prose .ttg-toc__list, .ttg-toc__list { margin: 0; padding: 4px 18px 16px 44px; border-top: 1px solid var(--line); counter-reset: toc; list-style: none; }
.ttg-toc__list > li { counter-increment: toc; position: relative; }
.ttg-toc__list > li::before { content: counter(toc) "."; position: absolute; left: -24px; top: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ttg-prose .ttg-toc__list li + li { margin-top: 0; }
.ttg-toc__list a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none !important; line-height: 1.4; }
.ttg-toc__list a:hover, .ttg-toc__list a.is-active { color: var(--brand); }
.ttg-prose .ttg-toc__list ol, .ttg-toc__list ol { list-style: none; margin: 0 0 4px; padding-left: 14px; border-left: 1px solid var(--line); }
.ttg-toc__list ol a { font-size: 15px; padding: 5px 0; }

/* ---------- Ads ---------- */
.ttg-ad { margin: 24px auto; text-align: center; overflow: hidden; }
.ttg-ad__label { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ttg-ad--header { margin: 16px auto 0; }

/* ---------- Pagination ---------- */
.ttg-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.ttg-pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; }
.ttg-pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.ttg-pagination .current { background: var(--grad); color: #fff; border-color: transparent; }
.ttg-pagination .dots { border: 0; background: none; }

/* ---------- Forms ---------- */
.ttg-form { display: grid; gap: 18px; }
.ttg-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ttg-form__grid label, .ttg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ttg-form__grid label > span, .ttg-field__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ttg-form__full, .ttg-field--full { grid-column: 1 / -1; }
.ttg-form input, .ttg-form select, .ttg-form textarea, .ttg-tool input:not([type="checkbox"]):not([type="range"]):not([type="file"]), .ttg-tool select, .ttg-tool textarea, .ttg-searchform input, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.ttg-form textarea, .ttg-tool textarea, .comment-form textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.ttg-form :is(input, select, textarea):focus, .ttg-tool :is(input, select, textarea):focus, .comment-form :is(input, textarea):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ttg-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ttg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ttg-notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.ttg-notice .ttg-icon { margin-top: 2px; }
.ttg-notice--ok { background: rgba(16, 185, 129, .12); color: #047857; border: 1px solid rgba(16, 185, 129, .3); }
.ttg-notice--err { background: rgba(225, 29, 72, .1); color: #be123c; border: 1px solid rgba(225, 29, 72, .28); }
[data-theme="dark"] .ttg-notice--ok { color: #6ee7b7; }
[data-theme="dark"] .ttg-notice--err { color: #fda4af; }
.ttg-searchform { position: relative; display: flex; gap: 8px; align-items: center; }
.ttg-searchform > .ttg-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.ttg-searchform input { padding-left: 42px !important; flex: 1; }

/* ---------- Page: authors / empty / 404 / profile ---------- */
.ttg-authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.ttg-authorcard { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: .2s var(--ease); }
.ttg-authorcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.ttg-authorcard img { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 8px; }
.ttg-authorcard strong { font-size: 18px; }
.ttg-authorcard__role { color: var(--brand); font-size: 14px; font-weight: 600; }
.ttg-authorcard__bio { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.ttg-authorcard__count { font-size: 13px; color: var(--ink-2); margin-top: auto; padding-top: 6px; }
.ttg-empty { text-align: center; padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.ttg-empty__icon { width: 58px; height: 58px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--grad); }
.ttg-empty .ttg-searchform { max-width: 520px; margin: 20px auto; }
.ttg-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ttg-404 { padding: 64px 0 72px; text-align: center; }
.ttg-404__inner > h1 { font-size: clamp(28px, 4vw, 42px); }
.ttg-404__inner > p { color: var(--ink-2); max-width: 56ch; margin-inline: auto; }
.ttg-404 .ttg-searchform { max-width: 560px; margin: 24px auto; }
.ttg-404__code { font-size: clamp(90px, 16vw, 170px); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0; }
.ttg-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 56px; }
.ttg-404__latest { text-align: left; margin-bottom: 20px; }
.ttg-404 .ttg-grid { text-align: left; }
.ttg-profile { padding: 36px 0 40px; background: #0b1020; color: #cbd5e1; position: relative; overflow: hidden; isolation: isolate; }
.ttg-profile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 0% 0%, rgba(124, 58, 237, .5), transparent 70%), radial-gradient(600px 300px at 100% 100%, rgba(6, 182, 212, .35), transparent 70%); }
.ttg-profile .ttg-crumbs a, .ttg-profile .ttg-crumbs ol { color: #94a3b8; }
.ttg-profile .ttg-crumbs [aria-current] { color: #e2e8f0; }
.ttg-profile__row { display: flex; gap: 28px; align-items: flex-start; }
.ttg-profile__avatar { width: 112px; height: 112px; border-radius: 30px; border: 3px solid rgba(255, 255, 255, .2); flex: none; }
.ttg-profile__name { color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 0; }
.ttg-profile__role { color: #a5b4fc; font-weight: 600; margin: 4px 0 10px; }
.ttg-profile__bio { max-width: 70ch; }
.ttg-profile__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Guest post page ---------- */
.ttg-gphero { position: relative; padding: 40px 0 56px; background: #0b1020; color: #cbd5e1; overflow: hidden; isolation: isolate; }
.ttg-gphero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 0% 0%, rgba(124, 58, 237, .6), transparent 70%), radial-gradient(700px 400px at 100% 100%, rgba(6, 182, 212, .45), transparent 70%); }
.ttg-gphero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; }
.ttg-gphero .ttg-crumbs a, .ttg-gphero .ttg-crumbs ol { color: #94a3b8; }
.ttg-gphero .ttg-crumbs [aria-current] { color: #e2e8f0; }
.ttg-gphero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ttg-gphero__title { color: #fff; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.05; margin: 6px 0 16px; }
.ttg-gphero__lead { font-size: 18px; color: #cbd5e1; max-width: 58ch; }
.ttg-gphero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ttg-gpsec { padding-block: 56px; }
.ttg-band .ttg-gpsec { padding-block: 0; }
.ttg-gptopics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ttg-gptopic { --c: var(--brand); padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ttg-gptopic__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); margin-bottom: 14px; }
.ttg-gptopic h3 { font-size: 19px; margin: 0 0 6px; }
.ttg-gptopic p { margin: 0; color: var(--muted); font-size: 15px; }
.ttg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ttg-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.ttg-plan--hot { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.ttg-plan__badge { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ttg-plan__name { font-size: 20px; margin: 0; }
.ttg-plan__note { color: var(--muted); font-size: 14.5px; margin: 0; }
.ttg-plan__price { font-size: 46px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); margin: 10px 0 6px; line-height: 1; }
.ttg-plan__price span { font-size: 22px; vertical-align: top; margin-right: 2px; color: var(--muted); }
.ttg-plan .ttg-checklist { margin: 8px 0 22px; flex: 1; }
.ttg-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ttg-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ttg-checklist .ttg-icon { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 2px; border-radius: 50%; color: #fff; background: var(--ok); stroke-width: 3; }
.ttg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.ttg-steps li { counter-increment: step; position: relative; padding: 24px 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ttg-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 28px; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px; }
.ttg-steps strong { font-size: 18px; color: var(--ink); }
.ttg-steps span { color: var(--muted); font-size: 15px; }
.ttg-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ttg-dodont__col { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ttg-dodont__col h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 14px; }
.ttg-dodont__col--do h2 .ttg-icon { color: var(--ok); }
.ttg-dodont__col--dont h2 .ttg-icon { color: var(--bad); }
.ttg-dodont__col ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
.ttg-gpform { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.ttg-gpform__intro p { color: var(--ink-2); margin: 12px 0 20px; }
.ttg-gpform__card { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ttg-faq { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-top: 10px; }
.ttg-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; }
.ttg-faq summary::-webkit-details-marker { display: none; }
.ttg-faq summary .ttg-icon { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex: none; }
.ttg-faq[open] summary .ttg-icon { transform: rotate(180deg); }
.ttg-faq p { margin: 0 !important; padding: 0 18px 16px; color: var(--ink-2); font-size: 16px; }

/* ---------- AI directory ---------- */
.ttg-aigrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ttg-aigrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ttg-aicard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: .22s var(--ease); min-width: 0; }
.ttg-aicard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ttg-aicard.is-featured { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.ttg-aicard__link { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.ttg-aicard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ttg-aicard__head { display: flex; flex-direction: column; min-width: 0; }
.ttg-aicard__head strong { font-size: 16.5px; line-height: 1.25; }
.ttg-aicard__cat { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttg-aicard__desc { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ttg-aicard__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.ttg-aicard__foot .ttg-stars { margin-left: auto; }
.ttg-aicard__foot .ttg-stars + .ttg-stars__num { margin-left: 0; }
.ttg-aicard__pick { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; }
[data-theme="dark"] .ttg-aicard__pick { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.ttg-aicard__pick .ttg-icon { width: 13px; height: 13px; }
.ttg-ailogo { --h: 250; flex: none; display: grid; place-items: center; border-radius: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 80% 58%), hsl(calc(var(--h) + 40) 80% 45%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.ttg-ailogo--img { object-fit: cover; border-radius: 14px; }
.ttg-price { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.ttg-price--free, .ttg-price--opensource { background: rgba(16, 185, 129, .12); color: #047857; border-color: rgba(16, 185, 129, .25); }
.ttg-price--freemium { background: rgba(99, 102, 241, .12); color: #4338ca; border-color: rgba(99, 102, 241, .25); }
.ttg-price--trial { background: rgba(245, 158, 11, .14); color: #b45309; border-color: rgba(245, 158, 11, .28); }
[data-theme="dark"] .ttg-price--free, [data-theme="dark"] .ttg-price--opensource { color: #6ee7b7; }
[data-theme="dark"] .ttg-price--freemium { color: #a5b4fc; }
[data-theme="dark"] .ttg-price--trial { color: #fcd34d; }
.ttg-stars { position: relative; display: inline-block; font-size: 14px; letter-spacing: 1px; line-height: 1; vertical-align: middle; }
.ttg-stars__bg { color: var(--line-2); }
.ttg-stars__fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f59e0b; }
.ttg-stars__num { font-size: 13px; margin-left: 4px; color: var(--ink-2); vertical-align: middle; }
.ttg-dirbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; max-width: 760px; }
.ttg-dirbar__search { flex: 1 1 280px; position: relative; display: flex; align-items: center; }
.ttg-dirbar__search .ttg-icon { position: absolute; left: 14px; color: var(--muted); }
.ttg-dirbar input, .ttg-dirbar select { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 14px; font-size: 16px; }
.ttg-dirbar input { padding-left: 42px; }
.ttg-dirbar__select { flex: 0 1 200px; }
.ttg-dirbar :is(input, select):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ttg-filterchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.ttg-filterchips button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; transition: .2s; }
.ttg-filterchips button small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.ttg-filterchips button:hover { border-color: var(--brand); color: var(--brand); }
.ttg-filterchips button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ttg-filterchips button.is-active small { color: inherit; opacity: .7; }
.ttg-dir { padding-block: 28px 64px; }
.ttg-dir__count { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.ttg-submitbox { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px dashed var(--line-2); }
.ttg-submitbox > div:nth-child(2) { flex: 1 1 280px; }
.ttg-submitbox h2 { font-size: 20px; margin: 0 0 4px; }
.ttg-submitbox p { margin: 0; color: var(--muted); }
.ttg-submitbox__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.ttg-submitbox__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ttg-aihead { display: flex; align-items: flex-start; gap: 22px; }
.ttg-aihead__body { flex: 1; min-width: 0; }
.ttg-aihead__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ttg-aihead__cta { flex: none; padding-top: 30px; }
.ttg-factgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.ttg-factgrid > div { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ttg-factgrid dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.ttg-factgrid dd { margin: 6px 0 0; font-weight: 650; color: var(--ink); font-size: 15.5px; }
.ttg-box { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.ttg-box__title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 14px; }
.ttg-box__title .ttg-icon { color: var(--brand); }
.ttg-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.ttg-proscons__col { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.ttg-proscons__col h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; }
.ttg-proscons__col--pro h2 .ttg-icon { color: var(--ok); }
.ttg-proscons__col--con h2 .ttg-icon { color: var(--bad); }
.ttg-proscons__col ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; font-size: 15px; }

/* ---------- Tool cards ---------- */
.ttg-toolgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.ttg-sectionhead + .ttg-toolgrid { margin-top: 0; }
.ttg-toolgrid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ttg-toolcard { --c: var(--brand); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: .22s var(--ease); overflow: hidden; text-decoration: none !important; min-width: 0; }
.ttg-toolcard::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); transition: transform .4s var(--ease); }
.ttg-toolcard:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--c) 60%, transparent); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); color: var(--ink); }
.ttg-toolcard:hover::before { transform: scale(1.4); }
.ttg-toolcard__icon { position: relative; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b1020)); }
.ttg-toolcard__group { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); margin-top: 6px; }
[data-theme="dark"] .ttg-toolcard__group { color: color-mix(in srgb, var(--c) 60%, #fff); }
.ttg-toolcard__title { font-size: 16.5px; line-height: 1.3; }
.ttg-toolcard__desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.ttg-toolcard__go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand); }
.ttg-toolcard__go .ttg-icon { width: 16px; height: 16px; transition: transform .2s; }
.ttg-toolcard:hover .ttg-toolcard__go .ttg-icon { transform: translateX(4px); }
.ttg-toolcard.is-hidden { display: none; }

/* ---------- Tool pages ---------- */
.ttg-pagehead--tool .ttg-pagehead__desc { max-width: 64ch; }
.ttg-toolpage { padding-block: 32px 64px; }
.ttg-prose--tool { font-size: 16px; line-height: 1.6; }
.ttg-prose--tool > * + * { margin-top: 28px; }
.ttg-tool { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ttg-tool__form { display: grid; gap: 22px; }
.ttg-tool__privacy { display: flex; align-items: center; gap: 6px; margin: 18px 0 0 !important; font-size: 13px; color: var(--muted); }
.ttg-tool__privacy .ttg-icon { width: 14px; height: 14px; }
.ttg-tool__sub { font-size: 16px !important; margin: 4px 0 0 !important; }
.ttg-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ttg-field__control { position: relative; display: flex; align-items: stretch; }
.ttg-field__control input, .ttg-field__control select { flex: 1; min-width: 0; }
.ttg-field__affix { display: grid; place-items: center; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); }
.ttg-field__affix:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.ttg-field__affix:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.ttg-field__control .ttg-field__affix:first-child + input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.ttg-field__control input:has(+ .ttg-field__affix) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.ttg-field__hint { font-size: 12.5px; color: var(--muted); }
.ttg-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.ttg-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.ttg-tool input[type="range"] { width: 100%; accent-color: var(--brand); height: 28px; }
.ttg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ttg-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.ttg-stat__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.ttg-stat__value { font-size: 24px; font-weight: 750; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ttg-stat--big { background: var(--grad); border: 0; }
.ttg-stat--big .ttg-stat__label { color: rgba(255, 255, 255, .8); }
.ttg-stat--big .ttg-stat__value { color: #fff; }
.ttg-verdict { margin: 0 !important; padding: 12px 16px; border-radius: 12px; font-size: 15px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.ttg-verdict:empty { display: none; }
.ttg-verdict.is-good { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); color: #047857; }
.ttg-verdict.is-bad { background: rgba(225, 29, 72, .08); border-color: rgba(225, 29, 72, .25); color: #be123c; }
[data-theme="dark"] .ttg-verdict.is-good { color: #6ee7b7; }
[data-theme="dark"] .ttg-verdict.is-bad { color: #fda4af; }
.ttg-presets, .ttg-openin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ttg-chipbtn { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.ttg-chipbtn:hover, .ttg-chipbtn.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.ttg-codebox { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.ttg-codebox__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ttg-tool .ttg-codebox textarea { border: 0 !important; border-radius: 0 !important; background: transparent !important; font-family: var(--mono); font-size: 14px !important; min-height: 0 !important; box-shadow: none !important; }
.ttg-titles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; counter-reset: t; }
.ttg-titles:empty { display: none; }
.ttg-titles li { counter-increment: t; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.ttg-titles li::before { content: counter(t); font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 18px; }
.ttg-titles li span { flex: 1; }
.ttg-titles li small { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.ttg-titles li button { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; }
.ttg-titles li button:hover { color: var(--brand); background: var(--brand-soft); }
.ttg-score:empty { display: none; }
.ttg-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.ttg-score__ring { --p: 0; --col: var(--ok); width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--col) calc(var(--p) * 1%), var(--line) 0); }
.ttg-score__ring b { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 24px; color: var(--ink); }
.ttg-score ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.ttg-score li.is-ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.ttg-score li.is-no::before { content: "• "; color: var(--warn); font-weight: 700; }
.ttg-meter { display: flex; align-items: center; gap: 10px; margin-top: -8px; font-size: 12.5px; color: var(--muted); }
.ttg-meter span { flex: 1; height: 6px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.ttg-meter span::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--mcol, var(--ok)); border-radius: inherit; transition: width .2s; }
.ttg-meter em { font-style: normal; white-space: nowrap; }
.ttg-serp-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); justify-self: start; }
.ttg-serp-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ttg-serp-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.ttg-serp { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #dadce0; font-family: Arial, sans-serif; max-width: 652px; color: #202124; }
.ttg-serp.is-mobile { max-width: 400px; }
.ttg-serp__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ttg-serp__fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4 url("../img/favicon-32.png") center / 18px no-repeat; border: 1px solid #ecedef; flex: none; }
.ttg-serp__site span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ttg-serp__site b { font-size: 14px; font-weight: 400; color: #202124; }
.ttg-serp__site small { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttg-serp__title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 4px; overflow-wrap: anywhere; }
.ttg-serp.is-mobile .ttg-serp__title { font-size: 18px; }
.ttg-serp__desc { font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.ttg-density { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ttg-mini { font-size: 14px; }
.ttg-mini th, .ttg-mini td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.ttg-mini th { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ttg-mini td:not(:first-child), .ttg-mini th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.ttg-mini--wide { min-width: 520px; }
.ttg-faqrows { display: grid; gap: 12px; }
.ttg-faqrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ttg-faqrow textarea { grid-column: 1 / 2; min-height: 70px !important; }
.ttg-faqrow button { grid-row: 1 / 3; grid-column: 2; align-self: start; }
.ttg-drop { display: grid; place-items: center; text-align: center; gap: 4px; padding: 30px 20px; border-radius: 18px; border: 2px dashed var(--line-2); background: var(--surface-2); cursor: pointer; transition: .2s; color: var(--ink-2); }
.ttg-drop:hover, .ttg-drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.ttg-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ttg-drop span { display: flex; align-items: center; gap: 10px; }
.ttg-drop .ttg-icon { color: var(--brand); }
.ttg-drop small { color: var(--muted); }
.ttg-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.ttg-imgs:empty { display: none; }
.ttg-img { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); font-size: 13.5px; }
.ttg-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface) 0 50%) 50% / 16px 16px; }
.ttg-img div { padding: 10px 12px; display: grid; gap: 6px; }
.ttg-img strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttg-img .ttg-save { color: var(--ok); font-weight: 700; }
.ttg-img .ttg-save.is-worse { color: var(--bad); }
.ttg-pass { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ttg-pass__out { flex: 1 1 280px; min-width: 0; font-family: var(--mono); font-size: 20px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; color: var(--ink); }
.ttg-strength { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.ttg-strength span { flex: 1; height: 8px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.ttg-strength span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--scol, var(--ok)); border-radius: inherit; transition: width .25s, background .25s; }
.ttg-strength em { font-style: normal; font-weight: 600; min-width: 160px; text-align: right; }
.ttg-passlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ttg-passlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 14.5px; min-width: 0; }
.ttg-passlist li span { overflow-wrap: anywhere; min-width: 0; }
.ttg-split { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line); }
.ttg-split__p { background: var(--brand); }
.ttg-split__i { background: #f59e0b; }
.ttg-split__legend { display: flex; gap: 18px; font-size: 13.5px; color: var(--muted); margin: -12px 0 0 !important; }
.ttg-split__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.ttg-split__legend .p { background: var(--brand); }
.ttg-split__legend .i { background: #f59e0b; }
.ttg-tool-faq h2, .ttg-tool-more h2 { font-size: 24px; margin-bottom: 14px !important; }
.ttg-tool-more .ttg-toolgrid { margin-top: 0; }

/* ---------- Comments ---------- */
.ttg-comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.ttg-comments__list { list-style: none; margin: 18px 0; padding: 0; }
.ttg-comments__list .children { list-style: none; padding-left: 28px; }
.ttg-comments .comment-body { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.ttg-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.ttg-comments .comment-author img { border-radius: 50%; }
.ttg-comments .comment-metadata { font-size: 12.5px; margin: 4px 0 8px; }
.ttg-comments .comment-metadata a { color: var(--muted); }
.ttg-comments .reply a { font-size: 13.5px; font-weight: 600; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* ---------- Footer ---------- */
.ttg-footer { margin-top: 24px; background: #070a13; color: #94a3b8; padding: 0 0 28px; position: relative; overflow: hidden; }
.ttg-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .6), rgba(34, 211, 238, .6), transparent); }
.ttg-footer .ttg-logo__img--light { display: none; }
.ttg-footer .ttg-logo__img--dark { display: block; }
.ttg-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 0; border-bottom: 1px solid #1a2238; }
.ttg-footer__cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0; letter-spacing: -.03em; max-width: 24ch; }
.ttg-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ttg-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 44px 0 36px; }
.ttg-footer__brand p { margin: 16px 0 18px; font-size: 14.5px; line-height: 1.65; max-width: 44ch; }
.ttg-footer__title { color: #e2e8f0; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.ttg-footer__list, .ttg-footer__legal { list-style: none; margin: 0; padding: 0; }
.ttg-footer__list li + li { margin-top: 9px; }
.ttg-footer__list a, .ttg-footer__legal a { color: #94a3b8; font-size: 14.5px; }
.ttg-footer__list a:hover, .ttg-footer__legal a:hover { color: #fff; }
.ttg-footer .ttg-widget { background: none; border: 0; padding: 0; color: #94a3b8; margin-top: 18px; }
.ttg-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.ttg-socials .ttg-iconbtn { background: #0f1526; border-color: #1f2940; color: #cbd5e1; }
.ttg-socials .ttg-iconbtn:hover { color: #fff; border-color: #818cf8; }
.ttg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid #1a2238; font-size: 13.5px; }
.ttg-footer__bottom p { margin: 0; }
.ttg-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.ttg-header__cta { display: none; }
	.ttg-nav__list > li > a { padding: 8px 9px; font-size: 14.5px; }
}
@media (max-width: 1140px) {
	.ttg-layout, .ttg-layout--article { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
	.ttg-aigrid, .ttg-toolgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ttg-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttg-searchbtn__text, .ttg-header__actions .ttg-searchbtn .ttg-kbd { display: none; }
	.ttg-header__actions .ttg-searchbtn { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 1024px) {
	.ttg-nav { display: none; }
	.ttg-burger { display: inline-grid; }
	.ttg-header__cta { display: inline-flex; }
	.ttg-layout, .ttg-layout--article { grid-template-columns: minmax(0, 1fr); }
	.ttg-sidebar__inner { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttg-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "lead lead" "a b" "c tile"; }
	.ttg-bento__lead { min-height: 440px; }
	.ttg-guestband, .ttg-gphero__inner, .ttg-gpform, .ttg-nl--wide { grid-template-columns: minmax(0, 1fr); }
	.ttg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttg-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
	.ttg-footer__grid { grid-template-columns: 1fr 1fr; }
	.ttg-footer__brand { grid-column: 1 / -1; }
	.ttg-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttg-today__search { width: 360px; }
}
@media (max-width: 900px) {
	.ttg-layout--article .ttg-layout__main { padding-left: 0; }
	.ttg-share--rail { display: none !important; }
	.ttg-aigrid, .ttg-toolgrid, .ttg-gptopics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttg-today__inner { flex-direction: column; align-items: stretch; }
	.ttg-today__search { width: 100%; }
	.ttg-listitem { grid-template-columns: 180px minmax(0, 1fr); }
	.ttg-factgrid { grid-template-columns: minmax(0, 1fr); }
	.ttg-toolgrid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	:root { --header-h: 60px; }
	.ttg-container { padding-inline: 16px; }
	.ttg-header__inner { gap: 10px; }
	.ttg-logo__img { height: 30px; }
	.ttg-header__cta { display: none; }
	.ttg-announce__inner { justify-content: flex-start; font-size: 13px; }
	.ttg-announce__badge { display: none; }
	.ttg-announce p { text-align: left; }
	.ttg-grid--2, .ttg-grid--3, .ttg-sections, .ttg-sidebar__inner, .ttg-aigrid, .ttg-aigrid--2, .ttg-gptopics, .ttg-dodont, .ttg-proscons, .ttg-density, .ttg-titles, .ttg-postnav, .ttg-toolgrid--compact { grid-template-columns: minmax(0, 1fr); }
	.ttg-toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ttg-toolcard { padding: 16px; }
	.ttg-toolcard__desc { display: none; }
	.ttg-postnav__next { grid-column: auto; }
	.ttg-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "a" "b" "c" "tile"; gap: 14px; }
	.ttg-bento__lead { min-height: 400px; border-radius: 20px; }
	.ttg-bento__overlay { padding: 22px; }
	.ttg-bento__excerpt { display: none; }
	.ttg-bento__item { flex-direction: row; gap: 12px; align-items: center; }
	.ttg-bento__thumb { width: 110px; flex: none; aspect-ratio: 4 / 3; }
	.ttg-bento__body { padding: 0; }
	.ttg-bento__small { font-size: 15.5px; }
	.ttg-listitem { grid-template-columns: minmax(0, 1fr); }
	.ttg-fields, .ttg-form__grid, .ttg-stats, .ttg-steps { grid-template-columns: minmax(0, 1fr); }
	.ttg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttg-stat__value { font-size: 20px; }
	.ttg-tool { padding: 18px; border-radius: 20px; }
	.ttg-prose { font-size: 17px; }
	.ttg-prose .alignwide { margin-left: 0; margin-right: 0; }
	.ttg-guestband { padding: 28px 22px; border-radius: 22px; }
	.ttg-guestband__stats dd, .ttg-gphero__stats dd { font-size: 22px; }
	.ttg-nl--wide { padding: 24px 20px; }
	.ttg-authorbox { grid-template-columns: minmax(0, 1fr); }
	.ttg-profile__row { flex-direction: column; gap: 16px; }
	.ttg-aihead { flex-wrap: wrap; }
	.ttg-aihead__cta { padding-top: 0; width: 100%; }
	.ttg-aihead__cta .ttg-btn { width: 100%; }
	.ttg-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.ttg-sectionhead { flex-wrap: wrap; }
	.ttg-single__byline { align-items: flex-start; }
	.ttg-single__facts { width: 100%; }
	.ttg-wa-float { right: 14px; bottom: 14px; height: 54px; }
	.ttg-wa-float__icon, .ttg-wa-float::before { width: 54px; height: 54px; }
	.ttg-top { right: 21px; bottom: 80px; }
	.ttg-crumbs [aria-current] { max-width: 22ch; }
	.ttg-strength em { min-width: 0; }
	.ttg-score { grid-template-columns: minmax(0, 1fr); justify-items: start; }
	.ttg-gphero__stats, .ttg-guestband__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttg-search { padding-top: 12px; }
}
@media (max-width: 400px) {
	.ttg-toolgrid { grid-template-columns: minmax(0, 1fr); }
	.ttg-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.ttg-stats { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Print ---------- */
@media print {
	.ttg-header, .ttg-announce, .ttg-footer, .ttg-sidebar, .ttg-wa-float, .ttg-top, .ttg-share, .ttg-sharebar, .ttg-single__tools, .ttg-related, .ttg-postnav, .ttg-comments, .ttg-ad, .ttg-progress { display: none !important; }
	.ttg-layout { display: block; }
	body { background: #fff; color: #000; }
}
