/* ==========================================================================
   ThermometerGuru — elite.css
   Typography rhythm, scorecard, swipeable, badges, comparison slider, single-env.
   ========================================================================== */

/* ---------- ENV PAGE HERO ---------- */
.tmg-env { color: #eef2f7; padding-top: 32px; padding-bottom: 64px; }
.tmg-env-sky { position: absolute; inset: 0; width: 100%; height: 720px; pointer-events: none; }
.tmg-env-particles { position: absolute; left: 0; right: 0; top: 0; height: 720px; pointer-events: none; }
.tmg-env-hero { padding: 64px 0 32px; position: relative; z-index: 2; }
.tmg-env-title { font-size: clamp(2.4rem, 4vw + 1rem, 3.8rem); margin: 8px 0 12px; }
.tmg-env-tag { color: #c5d2e6; font-size: 1.15rem; max-width: 720px; margin: 0 0 24px; }
.tmg-env-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 16px; max-width: 720px; }
.tmg-env-stats > div { background: rgba(255,255,255,.06); padding: 12px 14px; border-radius: 12px; }
.tmg-env-stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #93a3bb; }
.tmg-env-stats dd { margin: 4px 0 0; color: #f7fafc; font-weight: 600; font-size: 1.1rem; }
.tmg-env-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.tmg-env-body { position: relative; z-index: 2; display: grid; gap: 32px; padding: 32px 24px; }

/* ---------- SCORECARD ---------- */
.tmg-env-scorecard { padding: 24px; }
.tmg-env-scorecard header { margin-bottom: 16px; }
.tmg-scorecard-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 320px) 1fr; align-items: center; }
.tmg-scorecard-radar { width: 100%; max-width: 320px; }
.tmg-scorecard-axis { fill: #c5d2e6; font-size: 11px; font-family: var(--tmg-b-font); }
.tmg-scorecard-shape { transition: fill .3s ease, stroke .3s ease; }
.tmg-scorecard-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tmg-scorecard-list li header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.tmg-scorecard-list strong { color: #eef2f7; }
.tmg-scorecard-list span { color: #93a3bb; font-size: .85rem; }
.tmg-scorecard-bar { height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.tmg-scorecard-bar span { display: block; height: 100%; border-radius: 999px; transition: width .8s ease; }

@media (max-width: 760px) {
	.tmg-scorecard-grid { grid-template-columns: 1fr; }
	.tmg-scorecard-radar { margin: 0 auto; }
}

/* ---------- MONTHLY CHART ---------- */
.tmg-env-monthly { padding: 24px; }
.tmg-env-monthly header { margin-bottom: 12px; }
.tmg-monthly-chart { width: 100%; height: auto; }
.tmg-monthly-bar { animation: tmg-bar-rise .9s cubic-bezier(.2,.8,.2,1) forwards; transform-origin: bottom; }
@keyframes tmg-bar-rise {
	0%   { height: 0; y: var(--baseline, 240px); }
	100% { height: var(--final-h, 100); y: var(--final-y, 80); }
}
/* Use a JS hook instead, since SVG keyframe attrs differ across browsers. */
.tmg-monthly-bar.is-on { animation: none; }
.tmg-monthly-label { fill: #93a3bb; font-size: 11px; }
.tmg-monthly-note { color: #c5d2e6; margin-top: 12px; font-size: .92rem; }

/* ---------- ENV LOGISTICS ---------- */
.tmg-env-logistics { padding: 24px; }
.tmg-env-log-grid > div {
	display: grid; grid-template-columns: 32px 1fr; row-gap: 4px; column-gap: 12px;
	background: rgba(255,255,255,.04); padding: 12px 14px; border-radius: 12px;
}
.tmg-env-log-grid svg { color: var(--tmg-primary); grid-row: span 2; }
.tmg-env-log-grid strong { color: #eef2f7; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- STORYTELLING ---------- */
.tmg-env-story { display: grid; gap: 24px; }
.tmg-env-story-grid { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .tmg-env-story-grid { grid-template-columns: 1fr; } }
.tmg-env-quote { padding: 28px; position: relative; }
.tmg-env-quote-mark {
	font-family: var(--tmg-h-font); font-size: 5rem;
	color: rgba(14,165,233,.5); position: absolute; top: 0; left: 16px; line-height: 1;
}
.tmg-env-quote blockquote {
	font-family: var(--tmg-h-font); font-size: 1.3rem;
	font-style: italic; color: #eef2f7; padding: 20px 0 12px;
	border: 0;
}
.tmg-env-quote cite { color: #c5d2e6; font-style: normal; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.tmg-env-story-cols { display: grid; gap: 16px; }
.tmg-env-story-card { padding: 20px; }
.tmg-env-story-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: #eef2f7; margin: 0 0 8px; }
.tmg-env-story-card p { color: #c5d2e6; margin: 0; font-size: .95rem; }

.tmg-env-tips { padding: 24px; }
.tmg-env-tips h3 { display: flex; align-items: center; gap: 8px; color: #eef2f7; margin: 0 0 12px; }
.tmg-env-tips ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tmg-env-tips li { display: flex; align-items: center; gap: 8px; color: #c5d2e6; }
.tmg-env-tips svg { color: var(--tmg-accent); }

/* ---------- ENV KIT / RELATED ---------- */
.tmg-env-kit { padding: 32px 0; }
.tmg-env-related { padding: 32px 0; }
.tmg-env-related .tmg-card-deep { padding: 16px; }
.tmg-env-related h3 { color: #eef2f7; margin: 4px 0; font-size: 1.1rem; }
.tmg-env-related p { color: #c5d2e6; font-size: .9rem; }

/* ---------- SWIPEABLE GRID ---------- */
.tmg-swipe-dots { display: none; justify-content: center; gap: 6px; padding: 12px 0; }
@media (max-width: 720px) {
	[data-tmg-swipe] {
		display: grid !important;
		grid-auto-flow: column !important;
		grid-auto-columns: 80%;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 24px;
		padding-bottom: 12px;
	}
	[data-tmg-swipe] > * {
		scroll-snap-align: start;
	}
	.tmg-swipe-dots { display: flex; }
}
.tmg-swipe-dots span {
	width: 8px; height: 8px; border-radius: 50%;
	background: rgba(15,23,42,.2);
	transition: background .2s ease, width .2s ease;
}
.tmg-swipe-dots span.is-active { background: var(--tmg-cta); width: 22px; border-radius: 6px; }

/* ---------- COMPARISON MODAL VISUAL ---------- */
.tmg-vsplit { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: stretch; gap: 0; }
.tmg-vsplit > .tmg-vline { background: var(--tmg-line); }
.tmg-vrow {
	display: grid; grid-template-columns: 1fr 1px 1fr;
	border-bottom: 1px solid var(--tmg-line);
}
.tmg-vrow > div { padding: 12px 14px; }
.tmg-vlabel { color: var(--tmg-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- RELATED PRODUCTS ---------- */
.tmg-pgrid {
	background: var(--tmg-surface-2);
	padding: 32px 24px;
	border-radius: var(--tmg-radius);
	margin: 32px 0;
}
.tmg-pgrid-head { text-align: center; margin-bottom: 18px; }
.tmg-pgrid-title { margin: 4px 0 0; font-size: 1.4rem; }
.tmg-pgrid-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tmg-pgrid-card {
	display: grid; gap: 8px;
	background: var(--tmg-surface);
	padding: 16px; border-radius: 14px;
	border: 1px solid var(--tmg-line);
	color: var(--tmg-text);
	transition: transform .2s ease, box-shadow .2s ease;
}
.tmg-pgrid-card:hover { transform: translateY(-3px); box-shadow: var(--tmg-shadow-3); color: var(--tmg-cta); }
.tmg-pgrid-glyph { color: var(--tmg-primary); }
.tmg-pgrid-name { font-size: .98rem; }
.tmg-pgrid-cta { color: var(--tmg-cta); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------- METHODOLOGY LIST ---------- */
.tmg-method-list { display: grid; gap: 12px; padding-left: 1.2em; }
.tmg-method-list strong { color: var(--tmg-cta); }

/* ---------- TOOLS PAGE ---------- */
.tmg-tools-page-content { margin-top: 32px; }
.tmg-tools-jump {
	display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
	margin: 0 0 32px;
}
.tmg-tools-jump a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border-radius: 999px;
	background: var(--tmg-surface-2); color: var(--tmg-text); font-size: .85rem;
}
.tmg-tools-jump a:hover { background: var(--tmg-primary); color: #fff; }

/* ---------- RELATED POSTS ---------- */
.tmg-related-posts { margin: 32px 0; }
.tmg-related-posts-title { margin: 0 0 16px; }
