/* Theme Trình Giải Toán */

/* ---------- Màu và kích thước ---------- */
:root {
	--font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bg: #f6f8ff;
	--surface: #ffffff;
	--surface-2: #eef2fd;
	--ink: #23314d;
	--muted: #5d6b86;
	--line: #e3e8f4;
	--primary: #ff7a45;
	--primary-dark: #e85d27;
	--primary-soft: #fff1e8;
	--blue: #3d7bfd;
	--green: #22b07d;
	--pink: #f0508f;
	--purple: #8b5cf6;
	--teal: #12a4b6;
	--orange: #ff9f1c;
	--red: #ef4444;
	--navy: #121a35;
	--navy-2: #1b2547;
	--lv-tieu-hoc: #22b07d;
	--lv-thcs: #3d7bfd;
	--lv-thpt: #8b5cf6;
	--radius: 18px;
	--radius-lg: 26px;
	--shadow: 0 6px 20px rgba(35, 49, 77, .07);
	--shadow-lg: 0 14px 34px rgba(35, 49, 77, .12);
	--wrap: 1200px;
	--header-h: 72px;
	color-scheme: light;
}

:root[data-mode="dark"] {
	--bg: #0b1020;
	--surface: #141b33;
	--surface-2: #1a2342;
	--ink: #e9edf8;
	--muted: #a2adc8;
	--line: #263052;
	--primary-soft: #2a1d1c;
	--shadow: 0 6px 20px rgba(0, 0, 0, .3);
	--shadow-lg: 0 14px 34px rgba(0, 0, 0, .4);
	--navy: #070b18;
	--navy-2: #10162c;
	color-scheme: dark;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg);
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 900; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.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;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

.tgtt-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.tgtt-wrap--narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.tgtt-main { min-height: 60vh; }

.tgtt-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--primary); color: #fff; padding: 10px 16px;
	border-radius: 12px; font-weight: 800; text-decoration: none; transition: top .15s;
}
.tgtt-skip:focus { top: 12px; color: #fff; }

.tgtt-icon { flex: none; }

/* ---------- Nút ---------- */
.tgtt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
	font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
	transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.tgtt-btn:hover { transform: translateY(-2px); }
.tgtt-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(232, 93, 39, .28); }
.tgtt-btn--primary:hover { background: var(--primary-dark); color: #fff; }
.tgtt-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.tgtt-btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.tgtt-btn--light { background: #fff; color: var(--primary-dark); }
.tgtt-btn--light:hover { color: var(--primary-dark); box-shadow: 0 8px 18px rgba(0, 0, 0, .15); }
.tgtt-btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.tgtt-btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tgtt-btn .tgtt-icon { width: 18px; height: 18px; }

.tgtt-pill {
	display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
	background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; font-size: .88rem; text-decoration: none;
}
:root[data-mode="dark"] .tgtt-pill { color: #ffb08f; }

/* ---------- Header ---------- */
.tgtt-header {
	position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .tgtt-header { background: var(--surface); } }
.admin-bar .tgtt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tgtt-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tgtt-header { top: 0; } }

/* Cài đặt TGT → Header */
.tgtt-no-sticky .tgtt-header { position: relative; top: auto; }
.tgtt-topbar { background: #23314d; color: #fff; font-size: .9rem; font-weight: 700; text-align: center; padding: 7px 0; }
.tgtt-topbar a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.tgtt-topbar a:hover { color: #fff; opacity: .9; }
.tgtt-header__cta { padding: 9px 18px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 600px) { .tgtt-header__cta { display: none; } }

.tgtt-header__bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.tgtt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.tgtt-brand:hover { color: var(--ink); }
.tgtt-brand img { width: 44px; height: 44px; display: block; border-radius: 13px; }
.tgtt-brand__name { display: block; font-weight: 900; font-size: 1.2rem; line-height: 1.1; letter-spacing: -.01em; }
.tgtt-brand__tag { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); }

.tgtt-nav { margin-left: auto; }
.tgtt-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.tgtt-menu > li { position: relative; display: flex; align-items: center; }
.tgtt-menu a {
	display: block; padding: 9px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 800;
	font-size: .97rem; white-space: nowrap; transition: background .12s, color .12s;
}
.tgtt-menu a:hover, .tgtt-menu > li:focus-within > a { background: var(--surface-2); color: var(--primary-dark); }
.tgtt-menu .current-menu-item > a, .tgtt-menu .current-menu-ancestor > a, .tgtt-menu .current_page_item > a { color: var(--primary-dark); background: var(--primary-soft); }
:root[data-mode="dark"] .tgtt-menu .current-menu-item > a, :root[data-mode="dark"] .tgtt-menu a:hover { color: #ffb08f; }
.tgtt-menu > .menu-item-has-children > a { padding-right: 4px; }

.tgtt-sub-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; margin-left: -2px;
	border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.tgtt-sub-toggle .tgtt-icon { width: 16px; height: 16px; transition: transform .15s; }
.tgtt-sub-toggle[aria-expanded="true"] .tgtt-icon { transform: rotate(180deg); }

.tgtt-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; min-width: 240px; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.tgtt-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.tgtt-menu > li:hover > .sub-menu, .tgtt-menu > li:focus-within > .sub-menu, .tgtt-menu > li.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
}
.tgtt-menu .sub-menu a { padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: .94rem; }
.tgtt-menu .sub-menu .sub-menu { display: none; }
/* Menu nhiều mục (lớp 1–12, công cụ) chia cột */
.tgtt-menu .sub-menu:has(> li:nth-child(9)) { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); min-width: 460px; }
.tgtt-menu .sub-menu:has(> li:nth-child(12)) { grid-template-columns: repeat(3, minmax(150px, 1fr)); min-width: 500px; }
.tgtt-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }

.tgtt-nav__search { display: none; }

.tgtt-header__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.tgtt-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 800;
	transition: background .12s, border-color .12s;
}
.tgtt-icon-btn:hover { background: var(--surface-2); border-color: var(--primary); }
[data-tgtt-mode] .tgtt-icon--sun { display: none; }
:root[data-mode="dark"] [data-tgtt-mode] .tgtt-icon--sun { display: block; }
:root[data-mode="dark"] [data-tgtt-mode] .tgtt-icon--moon { display: none; }
.tgtt-menu-btn { display: none; }
.tgtt-menu-btn .tgtt-icon--close { display: none; }
.tgtt-menu-btn[aria-expanded="true"] .tgtt-icon--close { display: block; }
.tgtt-menu-btn[aria-expanded="true"] .tgtt-icon--menu { display: none; }

.tgtt-searchbar { border-top: 1px solid var(--line); padding: 14px 0; background: var(--surface); }
.tgtt-searchbar[hidden] { display: none; }

/* ---------- Ô tìm kiếm ---------- */
.tgtt-search {
	display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; padding: 6px 6px 6px 16px; border-radius: 999px;
	background: var(--surface); border: 2px solid var(--line); transition: border-color .15s, box-shadow .15s;
}
.tgtt-searchbar .tgtt-search { margin: 0 auto; }
.tgtt-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 123, 253, .12); }
.tgtt-search .tgtt-icon { color: var(--muted); }
.tgtt-search__input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; outline: none; font-size: 1rem; }
.tgtt-search__input::-webkit-search-cancel-button { cursor: pointer; }
.tgtt-search__btn {
	border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; padding: 10px 20px; cursor: pointer;
}
.tgtt-search__btn:hover { background: var(--primary-dark); }

/* ---------- Khu vực ---------- */
.tgtt-section { padding: 56px 0; }
.tgtt-section--tight { padding: 36px 0; }
.tgtt-section--soft { background: var(--surface-2); }
.tgtt-wrap.tgtt-section { padding-left: 20px; padding-right: 20px; }
.tgtt-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.tgtt-section__title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.tgtt-kicker { margin: 0 0 4px; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-dark); }
:root[data-mode="dark"] .tgtt-kicker { color: #ffb08f; }
.tgtt-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tgtt-more .tgtt-icon { width: 18px; height: 18px; transition: transform .15s; }
.tgtt-more:hover .tgtt-icon { transform: translateX(3px); }

/* ---------- Hero ---------- */
.tgtt-hero {
	position: relative; overflow: hidden; padding: 56px 0 64px;
	background:
		radial-gradient(circle at 8% 18%, rgba(255, 122, 69, .18) 0, transparent 38%),
		radial-gradient(circle at 92% 8%, rgba(61, 123, 253, .16) 0, transparent 40%),
		radial-gradient(circle at 75% 100%, rgba(139, 92, 246, .14) 0, transparent 38%),
		var(--bg);
}
.tgtt-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.tgtt-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin-bottom: 16px; letter-spacing: -.02em; }
.tgtt-hero__title mark { background: none; color: var(--primary); position: relative; z-index: 0; }
.tgtt-hero__title mark::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: rgba(255, 122, 69, .22); border-radius: 6px; z-index: -1;
}
.tgtt-hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 580px; margin-bottom: 22px; }
.tgtt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.tgtt-hero__search { margin-bottom: 22px; }
.tgtt-hero__search .tgtt-search { box-shadow: var(--shadow); }
.tgtt-hero__art img { display: block; width: 100%; max-width: 460px; margin: 0 auto; animation: tgtt-float 5s ease-in-out infinite; }
@keyframes tgtt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.tgtt-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 600px; }
.tgtt-stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); }
.tgtt-stats strong { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.1; color: var(--primary-dark); }
:root[data-mode="dark"] .tgtt-stats strong { color: #ffb08f; }
.tgtt-stats span { font-size: .85rem; font-weight: 700; color: var(--muted); }

/* ---------- Tab cấp học ---------- */
.tgtt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tgtt-tab {
	padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink);
	font-weight: 800; cursor: pointer; text-decoration: none; font-size: .95rem; transition: all .12s;
}
.tgtt-tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.tgtt-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tgtt-page-head .tgtt-tabs { margin: 18px 0 0; }

/* ---------- Thẻ lớp ---------- */
.tgtt-grades { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tgtt-grade {
	--c: var(--lv-tieu-hoc);
	display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px 16px; border-radius: var(--radius);
	text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid color-mix(in srgb, var(--c) 30%, transparent);
	box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
	position: relative; overflow: hidden;
}
.tgtt-grade::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.tgtt-grade:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c); color: var(--ink); }
.tgtt-grade--thcs { --c: var(--lv-thcs); }
.tgtt-grade--thpt { --c: var(--lv-thpt); }
.tgtt-grade__small { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.tgtt-grade__num { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.tgtt-grade__meta { font-size: .78rem; font-weight: 700; color: var(--muted); text-align: center; }
.tgtt-grade[hidden] { display: none; }

/* ---------- Thẻ công cụ ---------- */
.tgtt-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tgtt-tools--page { margin-top: 26px; }
.tgtt-tool {
	--c: var(--orange);
	display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface);
	border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tgtt-tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c); color: var(--ink); }
.tgtt-c-green { --c: var(--green); } .tgtt-c-pink { --c: var(--pink); } .tgtt-c-blue { --c: var(--blue); }
.tgtt-c-purple { --c: var(--purple); } .tgtt-c-teal { --c: var(--teal); } .tgtt-c-red { --c: var(--red); } .tgtt-c-orange { --c: var(--orange); }
.tgtt-tool__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.7rem;
	background: color-mix(in srgb, var(--c) 16%, transparent);
}
.tgtt-tool__tag { align-self: flex-start; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tgtt-tool__name { font-weight: 900; font-size: 1.08rem; line-height: 1.3; }
.tgtt-tool__desc { font-size: .9rem; color: var(--muted); line-height: 1.5; flex: 1; }
.tgtt-tool__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--c); font-size: .95rem; }
.tgtt-tool__go .tgtt-icon { width: 16px; height: 16px; }

/* ---------- Khối luyện đề ---------- */
.tgtt-promo {
	display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 40px; border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #2b2366 100%); color: #e9edf8; position: relative; overflow: hidden;
}
.tgtt-promo::after {
	content: "∑ π √ ∞ ÷"; position: absolute; right: -10px; bottom: -30px; font-size: 7rem; font-weight: 900; color: rgba(255, 255, 255, .05);
	white-space: nowrap; pointer-events: none;
}
.tgtt-promo .tgtt-kicker { color: #ffb08f; }
.tgtt-promo__title { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.tgtt-promo p { color: #c6cde3; }
.tgtt-promo__stats { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tgtt-promo__stats li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px; text-align: center; }
.tgtt-promo__stats strong { display: block; font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1.2; }
.tgtt-promo__stats span { font-size: .8rem; font-weight: 700; color: #aab4d0; }

.tgtt-demo {
	position: relative; z-index: 1; max-width: 380px; margin: 0 auto; background: #fff; color: #23314d; border-radius: 22px; padding: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transform: rotate(2deg);
}
.tgtt-demo__bar { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; color: #5d6b86; }
.tgtt-demo__progress { height: 8px; background: #e3e8f4; border-radius: 999px; margin: 10px 0 14px; overflow: hidden; }
.tgtt-demo__progress span { display: block; height: 100%; background: linear-gradient(90deg, #ff7a45, #f0508f); border-radius: 999px; }
.tgtt-demo__q { font-weight: 900; color: #23314d !important; margin-bottom: 12px; }
.tgtt-demo__opt { margin: 0 0 8px; padding: 9px 14px; border: 2px solid #e3e8f4; border-radius: 14px; font-weight: 700; color: #23314d !important; }
.tgtt-demo__opt.is-right { border-color: #16a34a; background: #e8f8ee; color: #15803d !important; }

/* ---------- Thẻ bộ đề ---------- */
.tgtt-sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tgtt-set {
	--c: var(--lv-tieu-hoc);
	display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--surface);
	border: 1px solid var(--line); border-left: 6px solid var(--c); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
	transition: transform .15s, box-shadow .15s;
}
.tgtt-set:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tgtt-set--thcs { --c: var(--lv-thcs); }
.tgtt-set--thpt { --c: var(--lv-thpt); }
.tgtt-set--chung { --c: var(--orange); }
.tgtt-set__top { display: flex; flex-wrap: wrap; gap: 6px; }
.tgtt-set__grade { font-size: .78rem; font-weight: 900; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--c); }
.tgtt-set__type { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tgtt-set__title { font-weight: 900; font-size: 1.05rem; line-height: 1.35; flex: 1; }
.tgtt-set__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.tgtt-set__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--c); font-size: .95rem; }
.tgtt-set__go .tgtt-icon { width: 16px; height: 16px; }

.tgtt-grade-row + .tgtt-grade-row { margin-top: 26px; }
.tgtt-grade-row__title { font-size: 1.1rem; margin-bottom: 12px; }
.tgtt-grade-row__title a { color: var(--ink); text-decoration: none; }
.tgtt-grade-row__title a:hover { color: var(--primary-dark); }
.tgtt-level-block + .tgtt-level-block { border-top: 1px solid var(--line); }
.tgtt-level-block .tgtt-section__title { margin-bottom: 18px; }

/* ---------- Thẻ bài viết ---------- */
.tgtt-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tgtt-post {
	display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.tgtt-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tgtt-post__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #ffe2d3, #dfe8ff); }
.tgtt-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tgtt-post__placeholder { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900; color: rgba(35, 49, 77, .35); }
.tgtt-post__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tgtt-post__cat { align-self: flex-start; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-dark); }
.tgtt-post__title { font-size: 1.12rem; margin: 0; }
.tgtt-post__title a { color: var(--ink); text-decoration: none; }
.tgtt-post__title a:hover { color: var(--primary-dark); }
.tgtt-post__excerpt { font-size: .93rem; color: var(--muted); margin: 0; flex: 1; }
.tgtt-post__date { font-size: .82rem; font-weight: 700; color: var(--muted); }

.tgtt-result {
	display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface);
	border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
}
.tgtt-result:hover { color: var(--ink); border-color: var(--primary); }
.tgtt-result__type { align-self: flex-start; font-size: .75rem; font-weight: 900; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tgtt-result__title { font-weight: 900; font-size: 1.08rem; }
.tgtt-result__excerpt { font-size: .92rem; color: var(--muted); }

/* ---------- Hỏi đáp ---------- */
.tgtt-faq { display: grid; gap: 12px; }
.tgtt-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tgtt-faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 900;
	list-style: none; font-size: 1.04rem;
}
.tgtt-faq__item summary::-webkit-details-marker { display: none; }
.tgtt-faq__item summary .tgtt-icon { color: var(--primary); transition: transform .15s; }
.tgtt-faq__item[open] summary .tgtt-icon { transform: rotate(180deg); }
.tgtt-faq__item p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Dải cộng đồng ---------- */
.tgtt-band {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 40px;
	border-radius: var(--radius-lg); background: linear-gradient(120deg, #ff7a45 0%, #f0508f 55%, #8b5cf6 100%); color: #fff;
	box-shadow: 0 16px 36px rgba(240, 80, 143, .25);
}
.tgtt-band__title { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; }
.tgtt-band p { margin: 0; color: rgba(255, 255, 255, .92); max-width: 560px; }
.tgtt-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Đầu trang con ---------- */
.tgtt-page-head {
	padding: 30px 0 28px; border-bottom: 1px solid var(--line);
	background: radial-gradient(circle at 90% 0%, rgba(61, 123, 253, .1) 0, transparent 40%), radial-gradient(circle at 0% 100%, rgba(255, 122, 69, .1) 0, transparent 40%), var(--surface);
}
.tgtt-page-head__title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 8px; }
.tgtt-page-head__desc { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 720px; }
.tgtt-page-head__desc p { margin: 0; }
.tgtt-page-head__search { margin-top: 16px; }
.tgtt-page-head--thcs .tgtt-page-head__title { color: var(--lv-thcs); }
.tgtt-page-head--thpt .tgtt-page-head__title { color: var(--lv-thpt); }
.tgtt-page-head--tieu-hoc .tgtt-page-head__title { color: var(--lv-tieu-hoc); }

.tgtt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; margin-bottom: 12px; color: var(--muted); }
.tgtt-crumbs a { color: var(--muted); text-decoration: none; }
.tgtt-crumbs a:hover { color: var(--primary-dark); }
.tgtt-crumbs__current { color: var(--ink); }

.tgtt-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-weight: 700; font-size: .92rem; margin: 0; }
.tgtt-meta a { color: inherit; }

.tgtt-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tgtt-chips li, .tgtt-chips a {
	display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 800; font-size: .9rem; color: var(--ink); text-decoration: none;
}
.tgtt-chips li:has(a) { padding: 0; }
.tgtt-chips a:hover { background: var(--primary-soft); color: var(--primary-dark); }

.tgtt-grade-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tgtt-grade-chip {
	--c: var(--lv-tieu-hoc);
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 900;
	text-decoration: none; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 2px solid transparent;
}
.tgtt-grade-chip--thcs { --c: var(--lv-thcs); }
.tgtt-grade-chip--thpt { --c: var(--lv-thpt); }
.tgtt-grade-chip:hover { border-color: var(--c); color: var(--c); }
.tgtt-grade-chip.is-current { background: var(--c); color: #fff; }

/* ---------- Nội dung ---------- */
.tgtt-content { font-size: 1.06rem; }
.tgtt-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.tgtt-content--wide > * { max-width: none; }
.tgtt-content > .alignwide { max-width: 1100px; }
.tgtt-content > .alignfull { max-width: none; }
.tgtt-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.tgtt-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.tgtt-content img { border-radius: 14px; }
.tgtt-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 5px solid var(--primary); background: var(--surface); border-radius: 0 14px 14px 0; }
.tgtt-content pre { background: var(--navy); color: #e9edf8; padding: 16px; border-radius: 14px; overflow: auto; }
.tgtt-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .96em; }
.tgtt-content th, .tgtt-content td { border: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
/* Bảng soạn bằng trình soạn thảo cổ điển: thuộc tính border/width cũ không làm vỡ giao diện. */
.tgtt-content table[border] td, .tgtt-content table[border] th { border-color: var(--line); }
.tgtt-content table:is(.tgt-table, .tgt-table-striped) th,
.tgtt-content table:is(.tgt-table, .tgt-table-striped) thead td { background: var(--surface-2); font-weight: 800; }
.tgtt-content table.tgt-table-striped tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.tgtt-content table.tgt-table-plain td, .tgtt-content table.tgt-table-plain th { border-color: transparent; }
.tgtt-content table caption { font-weight: 800; margin-bottom: 6px; }
@media (max-width: 700px) {
	/* Bảng rộng cuộn ngang trên điện thoại thay vì tràn khung. */
	.tgtt-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100% !important; height: auto !important; }
}
.tgtt-content .wp-block-button__link { border-radius: 999px; font-weight: 800; }
.tgtt-content :where(ul, ol) { padding-left: 1.3em; }
.tgtt-content li { margin-bottom: .4em; }

.tgtt-article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 34px; padding-bottom: 50px; }
.has-sidebar .tgtt-article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.tgtt-article__thumb { margin: 0 auto 26px; max-width: 900px; }
.tgtt-article__thumb img { border-radius: var(--radius-lg); width: 100%; }
.tgtt-tags { max-width: 760px; margin: 26px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tgtt-tags a { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--ink); }
.tgtt-postnav { max-width: 760px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tgtt-postnav > div { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tgtt-postnav__next { text-align: right; grid-column: 2; }
.tgtt-postnav span { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); }
.tgtt-postnav a { font-weight: 800; text-decoration: none; color: var(--ink); }

.tgtt-sidebar .tgtt-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.tgtt-widget__title, .tgtt-widget h2 { font-size: 1.05rem; margin-bottom: 10px; }
.tgtt-widget a { color: var(--ink); text-decoration: none; font-weight: 700; }
.tgtt-widget a:hover { color: var(--primary-dark); }
.tgtt-widget li { margin-bottom: 6px; }
.tgtt-widget .wp-block-search__label { font-weight: 800; display: block; margin-bottom: 6px; }
.tgtt-widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.tgtt-widget .wp-block-search__input { flex: 1; min-width: 0; padding: 9px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); }
.tgtt-widget .wp-block-search__button { border: 0; border-radius: 999px; padding: 9px 16px; background: var(--primary); color: #fff; font-weight: 800; cursor: pointer; }
.has-sidebar .tgtt-content > *, .has-sidebar .tgtt-comments, .has-sidebar .tgtt-tags, .has-sidebar .tgtt-postnav { margin-left: 0; }
.tgtt-widget ul { margin: 0; padding-left: 1.1em; }

/* ---------- Bình luận ---------- */
.tgtt-comments-wrap { margin-top: 36px; }
.tgtt-comments { max-width: 760px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.tgtt-comments__title { font-size: 1.35rem; }
.tgtt-comments__list, .tgtt-comments__list .children { list-style: none; margin: 0; padding: 0; }
.tgtt-comments__list .children { padding-left: 24px; }
.tgtt-comments__list .comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.tgtt-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.tgtt-comments__list .comment-author img { border-radius: 50%; }
.tgtt-comments__list .says { display: none; }
.tgtt-comments__list .comment-metadata { font-size: .82rem; margin: 2px 0 8px; }
.tgtt-comments__list .comment-metadata a { color: var(--muted); text-decoration: none; }
.tgtt-comments__list .reply a { font-weight: 800; font-size: .9rem; }
.comment-form label { display: block; font-weight: 800; margin-bottom: 4px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); outline: none;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--blue); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 600; }
.comment-form .submit {
	border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; padding: 12px 24px; cursor: pointer;
}
.comment-form .submit:hover { background: var(--primary-dark); }
.comment-notes, .logged-in-as { color: var(--muted); font-size: .92rem; }

/* ---------- Phân trang, trống, 404 ---------- */
.tgtt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.tgtt-pager .page-numbers, .tgtt-pager a, .tgtt-pager > span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); font-weight: 800; text-decoration: none; color: var(--ink);
}
.tgtt-pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.tgtt-empty { text-align: center; padding: 40px 20px; color: var(--muted); font-weight: 700; background: var(--surface); border-radius: var(--radius); border: 2px dashed var(--line); }
.tgtt-empty__icon { font-size: 2.6rem; margin: 0 0 6px; }
.tgtt-404 { text-align: center; }
.tgtt-404__num { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; margin: 0 0 10px; color: var(--primary); letter-spacing: -.04em; }
.tgtt-404__num span { color: var(--blue); }
.tgtt-404__search .tgtt-search { margin: 24px auto; }
.tgtt-404__actions { justify-content: center; }

/* ---------- Footer ---------- */
.tgtt-footer { background: var(--navy); color: #c6cde3; padding-top: 52px; margin-top: 0; }
.tgtt-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 40px; }
.tgtt-footer .tgtt-brand { color: #fff; margin-bottom: 14px; }
.tgtt-footer .tgtt-brand__tag { color: #aab4d0; }
.tgtt-footer__about p { font-size: .95rem; }
.tgtt-footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.tgtt-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tgtt-footer__list--grades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tgtt-footer a { color: #c6cde3; text-decoration: none; font-weight: 600; font-size: .95rem; }
.tgtt-footer a:hover { color: #fff; text-decoration: underline; }
.tgtt-footer__links a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-weight: 800; }
.tgtt-footer__links a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.tgtt-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.tgtt-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.tgtt-social a:hover { background: var(--primary); color: #fff; text-decoration: none; }
.tgtt-social .tgtt-icon { width: 20px; height: 20px; }
.tgtt-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.tgtt-footer__bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.tgtt-footer__bottom p { margin: 0; font-size: .9rem; }
.tgtt-totop { display: inline-flex; align-items: center; gap: 6px; font-weight: 800 !important; }
.tgtt-totop .tgtt-icon { width: 18px; height: 18px; }

/* ---------- Plugin trong theme ---------- */
.tgtt-content--wide .tgt { max-width: none; }
:root[data-mode="dark"] .tgt {
	--tgt-ink: #e9edf8; --tgt-muted: #a2adc8; --tgt-bg: #0b1020; --tgt-card: #141b33; --tgt-line: #263052;
	--tgt-grid: #263052; --tgt-axis: #a2adc8; --tgt-canvas: #141b33;
	--tgt-ok-bg: rgba(22, 163, 74, .18); --tgt-bad-bg: rgba(220, 38, 38, .18); --tgt-warn-bg: rgba(255, 159, 28, .16);
}
.tgt .tgt-quiz__top { top: var(--header-h); background: var(--surface); }
.admin-bar .tgt .tgt-quiz__top { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .tgt .tgt-quiz__top { top: calc(var(--header-h) + 46px); } }
@media (max-width: 600px) { .admin-bar .tgt .tgt-quiz__top { top: var(--header-h); } }
:root[data-mode="dark"] .tgt .tgt-hero { background: linear-gradient(135deg, #2a1d1c 0%, #142046 55%, #221a45 100%); }

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1100px) {
	.tgtt-menu a { padding: 9px 10px; font-size: .93rem; }
	.tgtt-brand__tag { display: none; }
	.tgtt-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tgtt-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Menu điện thoại ---------- */
@media (max-width: 960px) {
	:root { --header-h: 64px; }
	/* backdrop-filter làm menu cố định bị giới hạn trong header, nên tắt trên điện thoại */
	.tgtt-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
	.tgtt-menu-btn { display: inline-flex; }
	.tgtt-search-btn { display: none; }
	.tgtt-header__actions { margin-left: auto; }
	.tgtt-nav {
		position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 99; margin: 0; padding: 16px 20px 40px;
		background: var(--surface); overflow-y: auto; display: none; border-top: 1px solid var(--line);
	}
	.admin-bar .tgtt-nav { top: calc(var(--header-h) + 46px); }
	.tgtt-nav.is-open { display: block; }
	.tgtt-nav__search { display: block; margin-top: 18px; }
	.tgtt-menu { flex-direction: column; align-items: stretch; gap: 4px; }
	.tgtt-menu > li { flex-wrap: wrap; }
	.tgtt-menu > li > a { flex: 1; font-size: 1.08rem; padding: 12px 14px; }
	.tgtt-sub-toggle { width: 44px; height: 44px; background: var(--surface-2); }
	.tgtt-menu .sub-menu {
		position: static; display: none; width: 100%; min-width: 0; margin: 4px 0 8px; padding: 6px; opacity: 1; visibility: visible;
		transform: none; box-shadow: none; background: var(--surface-2); border: 0;
	}
	.tgtt-menu > li > .sub-menu, .tgtt-menu > li > .sub-menu:has(> li:nth-child(9)) { display: none; grid-template-columns: 1fr 1fr; min-width: 0; }
	.tgtt-menu > li.is-open > .sub-menu, .tgtt-menu > li.is-open > .sub-menu:has(> li:nth-child(9)) { display: grid; }
	.tgtt-menu > li > .sub-menu:has(> li:nth-child(12)) { grid-template-columns: repeat(3, 1fr); }
	.tgtt-menu .sub-menu li { min-width: 0; }
	.tgtt-menu .sub-menu a { white-space: normal; }
	body.tgtt-menu-open { overflow: hidden; }

	.tgtt-hero { padding: 36px 0 44px; }
	.tgtt-hero__grid { grid-template-columns: 1fr; gap: 10px; }
	.tgtt-hero__art { order: -1; }
	.tgtt-hero__art img { max-width: 300px; }
	.tgtt-grades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tgtt-sets, .tgtt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tgtt-promo { grid-template-columns: 1fr; padding: 30px 24px; }
	.has-sidebar .tgtt-article-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 600px) {
	body { font-size: 16px; }
	.tgtt-wrap, .tgtt-wrap.tgtt-section { padding-left: 16px; padding-right: 16px; }
	.tgtt-brand img { width: 38px; height: 38px; }
	.tgtt-brand__name { font-size: 1.05rem; }
	.tgtt-menu-btn__label { display: none; }
	.tgtt-section { padding: 40px 0; }
	.tgtt-section--tight { padding: 28px 0; }
	.tgtt-hero__art { display: none; }
	.tgtt-hero__actions .tgtt-btn { flex: 1; padding: 12px 14px; font-size: .95rem; white-space: nowrap; }
	.tgtt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tgtt-grades { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.tgtt-grade { padding: 14px 6px 12px; }
	.tgtt-grade__num { font-size: 2.1rem; }
	.tgtt-grade__meta { font-size: .7rem; }
	.tgtt-tools, .tgtt-sets, .tgtt-posts { grid-template-columns: minmax(0, 1fr); }
	.tgtt-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tgtt-tool { padding: 14px; }
	.tgtt-tool__desc { display: none; }
	.tgtt-tool__icon { width: 44px; height: 44px; font-size: 1.4rem; }
	.tgtt-tool__name { font-size: .98rem; }
	.tgtt-promo__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tgtt-band { padding: 26px 22px; }
	.tgtt-band__actions .tgtt-btn { flex: 1; }
	.tgtt-search__btn { padding: 10px 14px; }
	.tgtt-footer__grid { grid-template-columns: 1fr; gap: 26px; }
	.tgtt-postnav { grid-template-columns: 1fr; }
	.tgtt-postnav__next { grid-column: auto; }
	.tgtt-menu > li > .sub-menu, .tgtt-menu > li > .sub-menu:has(> li:nth-child(9)) { grid-template-columns: 1fr; }
	.tgtt-menu > li > .sub-menu:has(> li:nth-child(12)) { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Chủ đề Toán học ---------- */
.tgt-cd--orange { --cd: #ff7a45; }
.tgt-cd--blue { --cd: #3d7bfd; }
.tgt-cd--green { --cd: #16a36f; }
.tgt-cd--pink { --cd: #e63e82; }
.tgt-cd--purple { --cd: #8b5cf6; }
.tgt-cd--teal { --cd: #0f97a8; }
.tgt-cd--red { --cd: #e5484d; }
.tgtt-set__topics { display: flex; flex-wrap: wrap; gap: 5px; }
.tgtt-set__topic { font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--cd, var(--blue)) 13%, var(--surface)); color: var(--ink); white-space: nowrap; }
.tgtt-chips--topics a { background: color-mix(in srgb, var(--cd, var(--blue)) 13%, var(--surface)); }
.tgtt-chips--topics a:hover { background: color-mix(in srgb, var(--cd, var(--blue)) 24%, var(--surface)); color: var(--ink); }
.tgtt-page-head--cd .tgtt-page-head__title { color: var(--cd); }
.tgtt-page-head--cd {
	background: radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--cd) 16%, transparent) 0, transparent 45%), radial-gradient(circle at 0% 100%, rgba(255, 122, 69, .08) 0, transparent 40%), var(--surface);
}
.tgtt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.tgtt-filter__label { font-weight: 800; font-size: .9rem; color: var(--muted); margin-right: 2px; }
.tgtt-filter .tgtt-tab { font-size: .88rem; padding: 6px 13px; }
.tgtt-filter__more { font-weight: 800; font-size: .9rem; text-decoration: none; margin-left: 4px; }
[data-tgtt-filter-empty] { padding-top: 30px; }
.tgtt-set[hidden], .tgtt-grade-row[hidden], .tgtt-section[hidden], [data-tgtt-filter-empty][hidden] { display: none; }
