/* TVA Mock Tests. Everything is scoped to .tmt / .tmt-catalogue so the theme is not affected. */
.tmt, .tmt-catalogue, .tmt-series, .tmt-about {
	--tmt-accent: #0072c6;
	--tmt-accent-d: #005a9e;
	--tmt-ink: #1a3a52;
	--tmt-mut: #5b6b7d;
	--tmt-line: #c4dded;
	--tmt-soft: #f2f8fd;
	--tmt-card: #fff;
	--tmt-gold: #b87800;
	--tmt-good: #127a3e;
	--tmt-good-bg: #e3f5ea;
	--tmt-bad: #b42318;
	--tmt-bad-bg: #fdecea;
	--tmt-warn: #a35a00;
	--tmt-warn-bg: #fff1dc;
	--tmt-head: 'Space Grotesk', var(--font-head, system-ui), -apple-system, 'Segoe UI', sans-serif;
	--tmt-body: 'Barlow', var(--font-body, system-ui), -apple-system, 'Segoe UI', sans-serif;
	--tmt-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	font-family: var(--tmt-body);
	color: var(--tmt-ink);
	line-height: 1.5;
	max-width: 1100px;
	margin: 0 auto 32px !important;
	width: 100%;
	box-sizing: border-box;
}
.tmt *, .tmt *::before, .tmt *::after, .tmt-catalogue *, .tmt-series *, .tmt-about * { box-sizing: border-box; }
.tmt [hidden] { display: none !important; }
.tmt h2, .tmt h3, .tmt-catalogue h2, .tmt-about h2, .tmt-about h3 { font-family: var(--tmt-head); color: var(--tmt-ink); line-height: 1.2; }
:where(.tmt) button, :where(.tmt) input, :where(.tmt) select { font-family: inherit; }
.tmt-opt, .tmt-palette button, .tmt-filter button, .tmt-flag { font-family: var(--tmt-body) !important; }

/* fractions and small math */
.tmt-frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .9em; line-height: 1.15; margin: 0 .15em; }
.tmt-frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 .2em .05em; }
.tmt-frac > span:last-child { padding: .05em .2em 0; }
.tmt sup, .tmt sub { font-size: .72em; }

/* intro */
.tmt-intro, .tmt-run, .tmt-result > .tmt-panel, .tmt-res-top { background: var(--tmt-card); border: 1px solid var(--tmt-line); border-radius: 16px; box-shadow: 0 6px 24px rgba(0, 114, 198, .07); }
.tmt-intro { padding: 28px clamp(16px, 4vw, 36px); }
.tmt-code { display: inline-block; font-family: var(--tmt-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tmt-gold); font-weight: 700; }
.tmt-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 6px 0 12px; }
.tmt-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.tmt-chips li { background: var(--tmt-soft); border: 1px solid var(--tmt-line); border-radius: 999px; padding: 3px 12px; font-size: .86rem; font-weight: 600; margin: 0; }
.tmt-lead { font-size: 1.05rem; margin: 0 0 16px; }
.tmt-rules { background: var(--tmt-soft); border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; font-size: .95rem; }
.tmt-rules ol { margin: 6px 0 0 1.2em; padding: 0; }
.tmt-rules li { margin: 3px 0; }
.tmt-form h3 { font-size: 1.15rem; margin: 0 0 12px; }
.tmt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.tmt-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; margin: 0; }
.tmt-form input[type=text], .tmt-form input[type=email], .tmt-form input[type=tel], .tmt-form select {
	width: 100%; padding: 11px 13px; border: 1.5px solid var(--tmt-line); border-radius: 10px; font: inherit; font-weight: 400; color: var(--tmt-ink); background: #fff; min-height: 46px; margin: 0;
}
.tmt-form input:focus, .tmt-form select:focus { outline: none; border-color: var(--tmt-accent); box-shadow: 0 0 0 3px rgba(0, 114, 198, .15); }
.tmt-form .tmt-bad { border-color: var(--tmt-bad); }
.tmt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tmt-form .tmt-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; margin: 16px 0 0; font-size: .9rem; color: var(--tmt-mut); }
.tmt-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--tmt-accent); }
.tmt-error { background: var(--tmt-bad-bg); color: var(--tmt-bad); border-radius: 10px; padding: 10px 14px; margin: 14px 0 0; font-weight: 600; font-size: .92rem; }
.tmt-start { margin-top: 18px; min-width: 200px; }
.tmt-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--tmt-warn-bg); color: var(--tmt-warn); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-weight: 600; }
.tmt-banner-actions { display: flex; gap: 8px; }
.tmt-back { max-width: 1100px; margin: 0 auto 10px; }

/* buttons */
.tmt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 11px 20px; font-family: var(--tmt-head) !important; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, border-color .15s, color .15s, transform .1s; min-height: 44px; }
.tmt-btn:active { transform: translateY(1px); }
.tmt-btn:disabled { opacity: .5; cursor: not-allowed; }
.tmt-btn-primary { background: var(--tmt-accent); color: #fff !important; }
.tmt-btn-primary:hover:not(:disabled) { background: var(--tmt-accent-d); }
.tmt-btn-ghost { background: #fff; color: var(--tmt-ink) !important; border-color: var(--tmt-line); }
.tmt-btn-ghost:hover:not(:disabled) { border-color: var(--tmt-accent); color: var(--tmt-accent) !important; }
.tmt-btn-wa { background: #1fa855; color: #fff !important; }
.tmt-btn-wa:hover { background: #178a45; }
.tmt-sm { padding: 6px 12px; min-height: 34px; font-size: .85rem; }
.tmt :focus-visible { outline: 3px solid rgba(0, 114, 198, .45); outline-offset: 2px; }

/* running test */
.tmt-run { overflow: hidden; }
.tmt-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(14px, 3vw, 24px); background: var(--tmt-ink); color: #fff; }
.tmt-bar-title { font-family: var(--tmt-head); font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmt-timer { display: inline-flex; align-items: center; gap: 6px; font-family: var(--tmt-mono); font-weight: 700; font-size: 1.05rem; background: rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: 8px; flex: none; }
.tmt-timer.tmt-warn { background: #ffb85c; color: #3d2600; }
.tmt-timer.tmt-danger { background: #ff6b5c; color: #fff; animation: tmt-pulse 1s infinite; }
@keyframes tmt-pulse { 50% { opacity: .65; } }
.tmt-progress { height: 4px; background: var(--tmt-soft); }
.tmt-progress span { display: block; height: 100%; width: 0; background: var(--tmt-accent); transition: width .25s; }
.tmt-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.tmt-qcard { padding: clamp(16px, 3vw, 28px); min-height: 380px; }
.tmt-qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--tmt-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tmt-mut); margin-bottom: 12px; }
.tmt-flag { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--tmt-line); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-family: var(--tmt-body) !important; font-size: .82rem !important; text-transform: none; letter-spacing: 0; color: var(--tmt-mut); }
.tmt-flag.on { background: var(--tmt-warn-bg); border-color: #ffb85c; color: var(--tmt-warn); font-weight: 700; }
.tmt-qtext { font-size: 1.12rem; font-weight: 500; margin: 0 0 18px; }
.tmt-opts { display: grid; gap: 10px; }
.tmt-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--tmt-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--tmt-ink); font-size: 1.02rem; transition: border-color .12s, background .12s; }
.tmt-opt:hover { border-color: var(--tmt-accent); background: var(--tmt-soft); }
.tmt-opt.on { border-color: var(--tmt-accent); background: #e6f2fb; box-shadow: inset 0 0 0 1px var(--tmt-accent); }
.tmt-letter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--tmt-soft); border: 1px solid var(--tmt-line); font-family: var(--tmt-head); font-weight: 700; font-size: .9rem; }
.tmt-opt.on .tmt-letter { background: var(--tmt-accent); border-color: var(--tmt-accent); color: #fff; }
.tmt-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.tmt-side { border-left: 1px solid var(--tmt-line); background: #fafcfe; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tmt-side-h { font-family: var(--tmt-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tmt-mut); }
.tmt-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tmt-palette button { aspect-ratio: 1; border: 1.5px solid var(--tmt-line); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--tmt-ink); position: relative; padding: 0; min-height: 36px; }
.tmt-palette button.a { background: var(--tmt-accent); border-color: var(--tmt-accent); color: #fff; }
.tmt-palette button.f::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #ffb85c; border: 2px solid #fff; }
.tmt-palette button.cur { box-shadow: 0 0 0 2px var(--tmt-ink); }
.tmt-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: .78rem; color: var(--tmt-mut); }
.tmt-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--tmt-line); margin-right: 5px; vertical-align: -1px; }
.tmt-legend i.a { background: var(--tmt-accent); border-color: var(--tmt-accent); }
.tmt-legend i.f { background: #ffb85c; border-color: #ffb85c; border-radius: 50%; }
.tmt-count { font-weight: 700; font-size: .92rem; }
.tmt-finish { width: 100%; }
.tmt-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; min-height: 300px; font-weight: 600; font-size: 1.05rem; }
.tmt-spin { width: 36px; height: 36px; border: 4px solid var(--tmt-soft); border-top-color: var(--tmt-accent); border-radius: 50%; animation: tmt-spin .8s linear infinite; }
@keyframes tmt-spin { to { transform: rotate(360deg); } }
.tmt-fail p { color: var(--tmt-bad); max-width: 420px; margin: 0; }

.tmt-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 25, 40, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tmt-modal-box { background: #fff; border-radius: 16px; padding: 24px; max-width: 440px; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.tmt-modal-box h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tmt-modal-box p { margin: 0 0 18px; color: var(--tmt-mut); }
.tmt-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* result */
.tmt-result { display: flex; flex-direction: column; gap: 18px; }
.tmt-res-top { display: flex; align-items: center; gap: clamp(16px, 4vw, 36px); padding: clamp(18px, 4vw, 32px); border-top: 5px solid var(--tmt-accent); }
.tmt-res-top.band-excellent, .tmt-res-top.band-good { border-top-color: var(--tmt-good); }
.tmt-res-top.band-fair { border-top-color: #e5a100; }
.tmt-res-top.band-low { border-top-color: var(--tmt-bad); }
.tmt-ring { position: relative; width: 150px; height: 150px; flex: none; }
.tmt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tmt-ring circle { fill: none; stroke-width: 11; }
.tmt-ring .bg { stroke: var(--tmt-soft); }
.tmt-ring .fg { stroke: var(--tmt-accent); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.band-excellent .tmt-ring .fg, .band-good .tmt-ring .fg { stroke: var(--tmt-good); }
.band-fair .tmt-ring .fg { stroke: #e5a100; }
.band-low .tmt-ring .fg { stroke: var(--tmt-bad); }
.tmt-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tmt-ring-txt b { font-family: var(--tmt-head); font-size: 2.2rem; line-height: 1; }
.tmt-ring-txt small { font-size: 1rem; color: var(--tmt-mut); }
.tmt-ring-txt span { font-family: var(--tmt-mono); font-weight: 700; color: var(--tmt-mut); margin-top: 4px; }
.tmt-res-sum h2 { margin: 4px 0 6px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.tmt-res-sum p { margin: 0 0 12px; }
.tmt-res-sum .tmt-chips { margin: 0; }
.tmt-panel { padding: clamp(16px, 3vw, 26px); }
.tmt-panel h3 { margin: 0 0 14px; font-size: 1.2rem; }
.tmt-topics { display: grid; gap: 9px; }
.tmt-topic { display: grid; grid-template-columns: minmax(120px, 230px) 1fr 48px; align-items: center; gap: 12px; font-size: .94rem; }
.tmt-topic-bar { height: 10px; background: var(--tmt-soft); border-radius: 99px; overflow: hidden; }
.tmt-topic-bar i { display: block; height: 100%; border-radius: 99px; }
.tmt-topic-bar i.hi { background: var(--tmt-good); }
.tmt-topic-bar i.mid { background: #e5a100; }
.tmt-topic-bar i.lo { background: var(--tmt-bad); }
.tmt-topic-n { text-align: right; font-family: var(--tmt-mono); font-weight: 700; font-size: .85rem; }
.tmt-focus { margin: 16px 0 0; background: var(--tmt-soft); border-radius: 10px; padding: 10px 14px; }
.tmt-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.tmt-review-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tmt-review-h h3 { margin: 0; }
.tmt-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.tmt-filter button { border: 1.5px solid var(--tmt-line); background: #fff; border-radius: 999px; padding: 5px 13px; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--tmt-ink); }
.tmt-filter button.on { background: var(--tmt-ink); border-color: var(--tmt-ink); color: #fff; }
.tmt-review { display: grid; gap: 10px; }
.tmt-rq { border: 1px solid var(--tmt-line); border-left: 5px solid var(--tmt-good); border-radius: 12px; background: #fff; }
.tmt-rq.bad { border-left-color: var(--tmt-bad); }
.tmt-rq.none { border-left-color: #e5a100; }
.tmt-rq summary { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.tmt-rq summary::-webkit-details-marker { display: none; }
.tmt-rq-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tmt-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.tmt-rq-q { flex: 1; font-weight: 500; }
.tmt-rq-tag { flex: none; font-size: .75rem; font-weight: 700; border-radius: 6px; padding: 3px 8px; background: var(--tmt-good-bg); color: var(--tmt-good); }
.tmt-rq.bad .tmt-rq-tag { background: var(--tmt-bad-bg); color: var(--tmt-bad); }
.tmt-rq.none .tmt-rq-tag { background: var(--tmt-warn-bg); color: var(--tmt-warn); }
.tmt-rq-body { padding: 0 14px 14px 54px; }
.tmt-rq-opts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tmt-rq-opts li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--tmt-line); border-radius: 10px; padding: 7px 10px; margin: 0; }
.tmt-rq-opts li em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 700; }
.tmt-rq-opts li.right { border-color: var(--tmt-good); background: var(--tmt-good-bg); }
.tmt-rq-opts li.right em { color: var(--tmt-good); }
.tmt-rq-opts li.wrong { border-color: var(--tmt-bad); background: var(--tmt-bad-bg); }
.tmt-rq-opts li.wrong em { color: var(--tmt-bad); }
.tmt-rq-opts .tmt-letter { width: 26px; height: 26px; font-size: .8rem; }
.tmt-steps { background: var(--tmt-soft); border-radius: 10px; padding: 12px 14px; }
.tmt-steps ol { margin: 6px 0 0 1.2em; padding: 0; }
.tmt-steps li { margin: 4px 0; }
.tmt-rq-topic { display: inline-block; margin-top: 10px; font-size: .8rem; color: var(--tmt-mut); }

/* catalogue */
.tmt-cat-group { margin: 0 0 28px; }
.tmt-cat-group h2 { font-size: 1.25rem; margin: 0 0 12px; }
.tmt-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tmt-cat-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--tmt-line); border-left: 4px solid var(--tmt-accent); border-radius: 12px; padding: 16px; color: var(--tmt-ink) !important; text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.tmt-cat-card:hover { box-shadow: 0 10px 22px rgba(0, 114, 198, .12); transform: translateY(-2px); }
.tmt-cat-name { font-family: var(--tmt-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.tmt-cat-meta { font-size: .85rem; color: var(--tmt-mut); }
.tmt-cat-go { font-family: var(--tmt-head); font-weight: 700; color: var(--tmt-accent); margin-top: 6px; font-size: .9rem; }

@media (max-width: 760px) {
	.tmt-body { grid-template-columns: 1fr; }
	.tmt-side { border-left: 0; border-top: 1px solid var(--tmt-line); }
	.tmt-palette { grid-template-columns: repeat(10, 1fr); }
	.tmt-qcard { min-height: 0; }
	.tmt-res-top { flex-direction: column; text-align: center; }
	.tmt-res-sum .tmt-chips { justify-content: center; }
	.tmt-topic { grid-template-columns: 1fr 44px; }
	.tmt-topic-bar { grid-column: 1 / -1; grid-row: 2; }
	.tmt-rq-body { padding-left: 14px; }
}
@media (max-width: 560px) {
	.tmt-grid { grid-template-columns: 1fr; }
	.tmt-palette { grid-template-columns: repeat(5, 1fr); }
	.tmt-start, .tmt-cta .tmt-btn { width: 100%; }
	.tmt-nav .tmt-btn { flex: 1; padding-left: 10px; padding-right: 10px; }
	.tmt-bar-title { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
	.tmt *, .tmt-catalogue * { animation: none !important; transition: none !important; }
}

/* pseudocode blocks inside questions */
.tmt-qtext code, .tmt-rq-q code, .tmt-steps code {
	display: block; margin: 10px 0 2px; padding: 12px 14px; background: #f4f7fb; border: 1px solid var(--tmt-line); border-radius: 10px;
	font-family: var(--tmt-mono); font-size: .9rem; line-height: 1.65; color: var(--tmt-ink); white-space: normal; overflow-x: auto;
}
.tmt-opt-text, .tmt-rq-opts li > span:not(.tmt-letter) { overflow-wrap: anywhere; }

/* ---- 1.3: diagrams, recurring dots and data tables inside questions ---- */
.tmt-fig { display: block; margin: 14px auto 16px; width: 100%; background: #fff; border: 1px solid var(--tmt-line); border-radius: 12px; padding: 8px; box-sizing: border-box; }
.tmt-fig svg { display: block; width: 100%; height: auto; max-width: 100%; }
.tmt-rq-q .tmt-fig { max-width: 340px !important; margin: 10px 0; }
.tmt-rec { position: relative; display: inline-block; }
.tmt-rec::before { content: ""; position: absolute; left: 50%; top: -.12em; width: .22em; height: .22em; margin-left: -.11em; border-radius: 50%; background: currentColor; }
.tmt-tablewrap { overflow-x: auto; margin: 12px 0 14px; }
.tmt-table { border-collapse: collapse; min-width: 60%; font-size: .95rem; background: #fff; margin: 0; }
.tmt-table th, .tmt-table td { border: 1px solid var(--tmt-line); padding: 7px 12px; text-align: center; min-width: 52px; height: 1.6em; }
.tmt-table thead th, .tmt-table tbody th { background: var(--tmt-soft); font-weight: 700; }
.tmt-qtext sup, .tmt-opt-text sup, .tmt-steps sup, .tmt-rq-q sup { font-size: .72em; line-height: 0; }
.tmt-opt-label { font-weight: 400; color: var(--tmt-mut); font-size: .85em; }

/* long (full-paper) tests: compact palette and a "next unanswered" button */
.tmt-palette.tmt-pal-many { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; max-height: 320px; overflow-y: auto; overflow-x: hidden; padding: 3px; }
.tmt-palette.tmt-pal-many button { aspect-ratio: auto; height: 24px; min-height: 24px; min-width: 0; width: 100%; padding: 0; font-size: .68rem; border-radius: 5px; border-width: 1px; }
.tmt-palette.tmt-pal-many button.f::after { width: 7px; height: 7px; top: -2px; right: -2px; border-width: 1px; }
.tmt-nextun { width: 100%; }
@media (max-width: 760px) { .tmt-palette.tmt-pal-many { max-height: 170px; } }

/* series landing page */
.tmt-series section { margin: 0 0 30px; }
.tmt-series h2 { font-family: var(--tmt-head); color: #1a3a52; line-height: 1.2; margin: 0 0 12px; }
.tmt-series-hero { background: linear-gradient(135deg, #f2f8fd, #fff); border: 1px solid var(--tmt-line); border-radius: 16px; padding: 22px; }
.tmt-series-lead { font-size: 1.08rem; margin: 8px 0 16px; }
.tmt-count-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: #1a3a52; color: #fff; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.tmt-count-label { font-size: .92rem; opacity: .85; }
.tmt-count-num { font-family: var(--tmt-head); font-size: 1.3rem; font-weight: 700; color: #ffd27a; }
.tmt-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.tmt-facts div { background: #fff; border: 1px solid var(--tmt-line); border-radius: 10px; padding: 10px 12px; }
.tmt-facts dt { font-family: var(--tmt-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tmt-mut); margin: 0; }
.tmt-facts dd { margin: 2px 0 0; font-weight: 700; }
.tmt-topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.tmt-topic-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--tmt-line); padding: 6px 0; margin: 0; }
.tmt-topic-list b { color: var(--tmt-accent); white-space: nowrap; }
.tmt-series-tips ol { margin: 0 0 0 1.2em; padding: 0; }
.tmt-series-tips li { margin: 0 0 6px; }
.tmt-series-faq details { background: #fff; border: 1px solid var(--tmt-line); border-radius: 10px; padding: 0 14px; margin: 0 0 8px; }
.tmt-series-faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.tmt-series-faq details p { margin: 0 0 12px; }
.tmt-cat-series { margin: -4px 0 12px; font-weight: 600; }
.tmt-about { margin: -4px auto 32px !important; padding: 20px 22px; background: #fff; border: 1px solid #c4dded; border-radius: 16px; color: #1a3a52; }
.tmt-about h2 { font-size: 1.4rem !important; margin: 0 0 10px !important; font-weight: 700; }
.tmt-about h3 { font-size: 1.12rem !important; margin: 18px 0 8px !important; font-weight: 700; }
.tmt-about-links { margin: 16px 0 0; }

/* worked examples, topic guide, last updated */
.tmt-examples { list-style: none; counter-reset: ex; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.tmt-ex { counter-increment: ex; background: var(--tmt-soft); border: 1px solid var(--tmt-line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.tmt-ex-topic { display: inline-block; font-family: var(--tmt-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tmt-gold); font-weight: 700; }
.tmt-ex-topic::before { content: "Example " counter(ex) " · "; }
.tmt-ex-q { margin: 4px 0 6px; font-weight: 500; }
.tmt-ex summary { cursor: pointer; color: var(--tmt-accent); font-weight: 700; font-size: .92rem; }
.tmt-ex-steps { margin: 8px 0 6px 1.2em; padding: 0; }
.tmt-ex-a { margin: 0; }
.tmt-ex sup, .tmt-series-guide sup { font-size: .72em; line-height: 0; }
.tmt-series-guide dl { margin: 0; display: grid; gap: 10px; }
.tmt-series-guide dt { font-weight: 700; margin: 0; }
.tmt-series-guide dd { margin: 2px 0 0; color: var(--tmt-ink); }
.tmt-updated { font-size: .85rem; color: var(--tmt-mut); margin: 14px 0 0; }
