/*
Theme Name: ToolBuck Child
Description: Child theme for ToolBuck. Neutral site, one accent color that means "this price is low".
Template: generatepress
Version: 0.2.0
Text Domain: toolbuck-child
*/

/* Tokens from docs/design-spec.md. The accent is used on deal signals and nothing else. */
:root {
	--tb-ink: #1A1A1A;
	--tb-surface: #FFFFFF;
	--tb-ground: #F6F6F4;
	--tb-placeholder: #ECECEA;
	--tb-border: #D8D8D4;
	--tb-muted: #595959;
	--tb-accent: #C0271D;

	--tb-font-display: "Zilla Slab", Rockwell, Georgia, serif;
	--tb-font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--tb-radius: 6px;
	--tb-wrap: 1180px;
	--tb-gap: 20px;
}

/* Base */
body {
	background: var(--tb-ground);
	color: var(--tb-ink);
	font-family: var(--tb-font-body);
	font-size: 17px;
	line-height: 1.55;
}

h1, h2, h3, h4,
.tb-price,
.tb-logo {
	font-family: var(--tb-font-display);
	font-weight: 700;
	color: var(--tb-ink);
	line-height: 1.15;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 10px; }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0 0 6px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }

a { color: var(--tb-ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--tb-ink); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--tb-ink); outline-offset: 2px; }

.tb-icon { flex: none; vertical-align: middle; }

.tb-wrap {
	max-width: var(--tb-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* GeneratePress containers: our templates span the full content width. */
.site.grid-container { max-width: var(--tb-wrap); }
.site-content { display: block; }
.tb-main { padding: 24px 20px 64px; min-width: 0; }
.tb-muted { color: var(--tb-muted); }
.tb-lede { font-size: 1.08rem; max-width: 46em; margin: 0 0 8px; }
.tb-note { color: var(--tb-muted); font-size: 0.92rem; margin: 0; }
.tb-note--below { margin-top: 16px; }
.tb-kicker { margin: 0 0 14px; max-width: 46em; }

/* Header: horizontal logo and search only. */
.tb-header { background: var(--tb-ink); color: #FFFFFF; }
.tb-header__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	flex-wrap: wrap;
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Logo (item 4). The gap before the block equals the block's left padding. */
.tb-logo {
	color: #FFFFFF;
	font-size: 1.9rem;
	text-decoration: none;
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: center;
	gap: 0.32em;
	min-height: 44px;
}
.tb-logo:hover, .tb-logo:focus { color: #FFFFFF; }
.tb-logo__mark { width: 1.2em; height: 1.2em; flex: none; display: block; }
.tb-logo__word { display: inline-flex; align-items: center; font-weight: 700; line-height: 1; }
.tb-logo__buck {
	display: inline-block;
	font-weight: 600;
	background: #FFFFFF;
	color: var(--tb-ink);
	padding: 0.03em 0.2em 0.1em;
	margin-left: 0.2em;
	border-radius: 0.12em;
}
.tb-logo--small { font-size: 1.35rem; min-height: 0; }

.tb-search { display: flex; flex: 0 1 380px; min-width: 240px; }
.tb-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	border: 1px solid #FFFFFF;
	border-right: 0;
	border-radius: var(--tb-radius) 0 0 var(--tb-radius);
	background: #FFFFFF;
	color: var(--tb-ink);
	padding: 0 12px;
	font: inherit;
	font-size: 0.95rem;
}
.tb-search button {
	height: 44px;
	border: 1px solid #FFFFFF;
	border-radius: 0 var(--tb-radius) var(--tb-radius) 0;
	background: var(--tb-ink);
	color: #FFFFFF;
	padding: 0 16px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tb-search button:hover, .tb-search button:focus { background: #FFFFFF; color: var(--tb-ink); }

.tb-nav { background: var(--tb-surface); border-bottom: 1px solid var(--tb-border); }
.tb-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px 6px;
	overflow-x: auto;
	white-space: nowrap;
}
.tb-nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 12px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}
.tb-nav li:first-child a { padding-left: 0; }
.tb-nav a:hover, .tb-nav a:focus, .tb-nav a[aria-current="page"] { border-bottom-color: var(--tb-ink); }

/* Hero */
.tb-hero { padding: 10px 0 24px; }
.tb-hero--archive { padding-bottom: 16px; }
.tb-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	color: var(--tb-muted);
	font-size: 0.95rem;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.tb-hero__stats strong { color: var(--tb-ink); }
.tb-sublinks { margin: 10px 0 0; font-size: 0.96rem; }
.tb-sublinks span { color: var(--tb-muted); }

.tb-section { margin: 0 0 40px; }
.tb-section > .tb-module__head { margin-bottom: 14px; border-radius: var(--tb-radius); border: 1px solid var(--tb-border); }

/* Module pattern (item 11): light gray header strip, small icon, 15px bold title. */
.tb-module {
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	overflow: hidden;
	min-width: 0;
}
.tb-module__head {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 14px;
	background: var(--tb-placeholder);
}
.tb-module__title {
	font-family: var(--tb-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}
.tb-module__more { margin-left: auto; font-size: 0.86rem; font-weight: 600; white-space: nowrap; padding: 8px 0; }
.tb-module__foot { margin: 0; padding: 8px 14px 10px; font-size: 0.78rem; color: var(--tb-muted); border-top: 1px solid var(--tb-border); }

/* Filter bar (item 9): three dropdowns and sort. Options are plain links. */
.tb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.tb-filter { position: relative; }
.tb-filter--sort { margin-left: auto; }
.tb-filter summary {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 4px 12px;
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	cursor: pointer;
	list-style: none;
	font-size: 0.95rem;
	white-space: nowrap;
}
.tb-filter summary::-webkit-details-marker { display: none; }
.tb-filter summary:hover, .tb-filter[open] summary { border-color: var(--tb-ink); }
.tb-filter__label { color: var(--tb-muted); }
.tb-filter__value { font-weight: 700; }
.tb-filter[open] summary .tb-icon { transform: rotate(180deg); }
.tb-filter ul {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	left: 0;
	min-width: 230px;
	max-height: 60vh;
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: var(--tb-surface);
	border: 1px solid var(--tb-ink);
	border-radius: var(--tb-radius);
	box-shadow: 0 8px 24px rgba(26, 26, 26, 0.14);
}
.tb-filter--sort ul { left: auto; right: 0; }
.tb-filter li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
	padding: 4px 10px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
}
.tb-filter li a:hover, .tb-filter li a:focus { background: var(--tb-placeholder); }
.tb-filter li a[aria-current="true"] { background: var(--tb-ink); color: #FFFFFF; }
.tb-filter li a span { color: var(--tb-muted); font-weight: 400; }
.tb-filter li a[aria-current="true"] span { color: #FFFFFF; }
.tb-filter__child a { padding-left: 26px; font-weight: 400; }

/* Card grid */
.tb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: var(--tb-gap);
}

/* Deal card (item 5) */
.tb-card {
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
	min-width: 0;
}
.tb-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tb-card__heading { margin: 0; font: inherit; min-width: 0; }
.tb-card__link { display: block; text-decoration: none; }
.tb-card__link:hover .tb-card__title, .tb-card__link:focus .tb-card__title,
.tb-card__link:hover .tb-card__name, .tb-card__link:focus .tb-card__name { text-decoration: underline; }
.tb-card__title {
	display: block;
	font-family: var(--tb-font-display);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.15;
	margin: 0;
	overflow-wrap: anywhere;
}
.tb-card__icon { color: var(--tb-ink); margin-top: -1px; }
.tb-card__meta { margin: 0; font-size: 0.86rem; color: var(--tb-muted); }
.tb-card__meta a { color: var(--tb-muted); }
.tb-card__name { display: block; margin: 6px 0 0; font-family: var(--tb-font-body); font-size: 1rem; line-height: 1.35; font-weight: 600; }
.tb-card__price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.tb-card__avg { margin: 2px 0 0; font-size: 0.9rem; color: var(--tb-muted); white-space: nowrap; }
.tb-spark { width: 104px; height: 32px; flex: 0 1 auto; min-width: 0; }

/* Product images. Hotlinked from Amazon, always contained, never cropped. Every rule here
   hangs off a class that is only output while images are on. */
.tb-media { display: flex; align-items: center; justify-content: center; background: #FFFFFF; overflow: hidden; }
.tb-media__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.tb-media__icon { display: none; color: var(--tb-border); }
.tb-media.is-empty .tb-media__img { display: none; }
.tb-media.is-empty .tb-media__icon { display: block; }

/* Card: a fixed 16:10 box across the top of the header, inside the tool-page link. */
.tb-card--media .tb-card__head { position: relative; padding-top: calc(62.5% + 12px); }
.tb-media--card { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 16 / 10; }

/* Row: a small thumbnail at the left. */
.tb-media--row { flex: none; width: 44px; height: 44px; border-radius: 4px; }
.tb-media--row.is-empty { background: var(--tb-ground); }
.tb-media--row .tb-media__icon { color: var(--tb-muted); }
.tb-media--row + .tb-row__main { flex: 1 1 auto; }

/* Tool page: the image sits above the Specs module in the right column. */
.tb-tool__side { display: flex; flex-direction: column; gap: var(--tb-gap); min-width: 0; }
.tb-tool__image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 300px;
	padding: 16px;
	background: #FFFFFF;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
}
.tb-tool__image[hidden] { display: none; }
.tb-tool__image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }

/* Price and signals */
.tb-price { font-size: 1.9rem; margin: 0; }
.tb-price.is-low { color: var(--tb-accent); }
.tb-price--xl { font-size: clamp(2.4rem, 6vw, 3.1rem); }

.tb-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tb-badge, .tb-flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 28px;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
}
.tb-badge { background: var(--tb-accent); color: #FFFFFF; border: 1px solid var(--tb-accent); }
.tb-flag { background: var(--tb-surface); color: var(--tb-ink); border: 1px solid var(--tb-ink); font-weight: 600; }
.tb-flag--wait { font-weight: 700; }
.tb-flag--quiet { border-color: var(--tb-border); color: var(--tb-muted); }

.tb-checked { margin: 0; font-size: 0.82rem; color: var(--tb-muted); }

.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 8px 18px;
	background: var(--tb-ink);
	color: #FFFFFF;
	border: 2px solid var(--tb-ink);
	border-radius: var(--tb-radius);
	font-weight: 700;
	text-decoration: none;
	text-align: center;
}
.tb-btn:hover, .tb-btn:focus { background: #FFFFFF; color: var(--tb-ink); }
.tb-btn--ghost { background: transparent; color: var(--tb-ink); }
.tb-btn--ghost:hover, .tb-btn--ghost:focus { background: var(--tb-ink); color: #FFFFFF; }

/* Stamp (item 13): uppercase, letter-spaced, tilted, double border. One per tool page. */
.tb-stamp {
	flex: none;
	margin: 0;
	padding: 3px;
	border: 2px solid currentColor;
	border-radius: 6px;
	transform: rotate(-7deg);
	color: var(--tb-ink);
}
.tb-stamp span {
	display: block;
	padding: 5px 14px 4px;
	border: 1px solid currentColor;
	border-radius: 3px;
	font-family: var(--tb-font-body);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	text-indent: 0.16em;
}
.tb-stamp--buy { color: var(--tb-accent); }
.tb-stamp--fair { color: var(--tb-muted); }
.tb-stamp--wait { color: var(--tb-ink); }

/* How it works */
.tb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--tb-gap); margin: 0; padding: 0; list-style: none; }
.tb-steps li { background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius); padding: 18px; }
.tb-steps p { margin: 0; color: var(--tb-muted); }

/* Hub tiles (item 9) */
.tb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--tb-gap); margin: 0; padding: 0; list-style: none; }
.tb-tile { background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius); padding: 16px 18px 14px; }
.tb-tile__icon { display: block; margin-bottom: 8px; }
.tb-tile__title { font-size: 1.3rem; margin: 0 0 6px; }
.tb-tile__title span, .tb-tile__children span { color: var(--tb-muted); font-family: var(--tb-font-body); font-weight: 400; font-size: 0.9rem; }
.tb-tile__note { margin: 0 0 6px; color: var(--tb-muted); font-size: 0.92rem; }
.tb-tile__children { margin: 0; padding: 0; list-style: none; font-size: 0.96rem; }
.tb-tile__children a { display: inline-flex; align-items: center; min-height: 34px; }

/* Tool page */
.tb-crumbs { font-size: 0.9rem; color: var(--tb-muted); margin: 0 0 12px; }
.tb-crumbs a { color: var(--tb-muted); }
.tb-crumbs a[aria-current="page"] { color: var(--tb-ink); text-decoration: none; }
.tb-tool__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 28px; align-items: start; margin: 0 0 24px; }
.tb-tool__under { margin: 0 0 16px; color: var(--tb-muted); font-size: 0.95rem; }
.tb-tool__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tb-tool__usual { margin: 2px 0 0; color: var(--tb-muted); }
.tb-verdict { display: flex; align-items: center; gap: 20px; margin: 20px 0; padding: 4px 0 4px 6px; }
.tb-verdict__text { margin: 0; max-width: 34em; }
.tb-tool__cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tb-tool__cta .tb-btn { min-width: 220px; }

.tb-specs__table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: 0.94rem; }
.tb-specs__table th, .tb-specs__table td { padding: 9px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--tb-border); vertical-align: top; }
.tb-specs__table tbody tr:last-child th, .tb-specs__table tbody tr:last-child td { border-bottom: 0; }
.tb-specs__table th { width: 38%; font-weight: 600; color: var(--tb-muted); }
.tb-specs__table thead th { background: var(--tb-ground); color: var(--tb-ink); width: auto; }

/* Price History */
.tb-chart { margin: 0 0 20px; }
.tb-chart__head { flex-wrap: wrap; }
.tb-chart__toggles { display: flex; gap: 6px; margin-left: auto; }
.tb-chart input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-chart__toggles label {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 2px 12px;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-surface);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}
.tb-chart__panels { padding: 14px 16px 14px; }
.tb-chart__panel { display: none; }
#tb-range-90:checked ~ .tb-chart__panels .tb-chart__panel--90,
#tb-range-365:checked ~ .tb-chart__panels .tb-chart__panel--365,
#tb-range-all:checked ~ .tb-chart__panels .tb-chart__panel--all { display: block; }
#tb-range-90:checked ~ .tb-chart__head label[for="tb-range-90"],
#tb-range-365:checked ~ .tb-chart__head label[for="tb-range-365"],
#tb-range-all:checked ~ .tb-chart__head label[for="tb-range-all"] { background: var(--tb-ink); border-color: var(--tb-ink); color: #FFFFFF; }
#tb-range-90:focus-visible ~ .tb-chart__head label[for="tb-range-90"],
#tb-range-365:focus-visible ~ .tb-chart__head label[for="tb-range-365"],
#tb-range-all:focus-visible ~ .tb-chart__head label[for="tb-range-all"] { outline: 3px solid var(--tb-ink); outline-offset: 2px; }
.tb-chart__svg { display: block; width: 100%; height: auto; }
.tb-chart__svg--narrow { display: none; }
.tb-chart__note, .tb-chart__legend { margin: 8px 0 0; font-size: 0.88rem; color: var(--tb-muted); }
.tb-chart__legend { margin-top: 2px; }
.tb-chart__empty { margin: 0; color: var(--tb-muted); }

.tb-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.tb-stats li { background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius); padding: 12px 14px; min-width: 0; }
.tb-stats__label { display: block; font-size: 0.86rem; color: var(--tb-muted); }
.tb-stats__value { display: block; font-family: var(--tb-font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.tb-stats__value--range { font-size: 1.15rem; line-height: 1.52; }
.tb-stats__value.is-low { color: var(--tb-accent); }
.tb-stats__sub { display: block; font-size: 0.8rem; color: var(--tb-muted); }

/* Six compact modules, three across on desktop. */
.tb-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tb-gap); margin: 0 0 28px; align-items: start; }

/* Related-product rows (item 12) */
.tb-rows { margin: 0; padding: 0; list-style: none; }
.tb-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--tb-border); }
.tb-row:first-child { border-top: 0; }
.tb-row__main { display: flex; flex-direction: column; min-width: 0; }
.tb-row__name { font-weight: 600; overflow-wrap: anywhere; }
.tb-row.is-current .tb-row__name { font-weight: 700; }
.tb-row.is-current .tb-row__price { font-weight: 700; }
.tb-row__sub { font-size: 0.84rem; color: var(--tb-muted); line-height: 1.35; }
.tb-row__side { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.tb-row__price { font-weight: 600; white-space: nowrap; }
.tb-row__signal { font-size: 0.84rem; white-space: nowrap; }
.tb-row__signal--buy { color: var(--tb-accent); font-weight: 600; }
.tb-row__signal--wait { color: var(--tb-ink); font-weight: 600; }
.tb-row__signal--fair { color: var(--tb-muted); }

.tb-about { font-size: 0.9rem; color: var(--tb-muted); max-width: 60em; }
.tb-about p { margin: 0; }

.tb-panel {
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	padding: 20px;
}

.tb-prose { max-width: 44em; }
.tb-prose h2 { margin-top: 28px; }

/* Icon review */
.tb-iconreview { margin: 0 0 28px; }
.tb-iconreview__table td, .tb-iconreview__table th { vertical-align: middle; }
.tb-iconreview__dark { display: inline-flex; padding: 8px; background: var(--tb-ink); color: #FFFFFF; border-radius: 4px; }

/* Pagination */
.tb-pagination { margin: 28px 0 0; }
.tb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 12px;
	background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
	text-decoration: none; font-weight: 600;
}
.tb-pagination .page-numbers.current { background: var(--tb-ink); border-color: var(--tb-ink); color: #FFFFFF; }

/* Footer */
.tb-footer { background: var(--tb-ink); color: #FFFFFF; padding: 30px 0 34px; font-size: 0.95rem; }
.tb-footer a { color: #FFFFFF; }
.tb-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 16px; }
.tb-footer__tagline { font-family: var(--tb-font-display); font-weight: 600; font-size: 1.15rem; }
.tb-footer__disclosure { max-width: 52em; margin: 0 0 14px; }
.tb-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 14px; padding: 0; list-style: none; }
.tb-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.tb-footer__small { color: #D8D8D4; margin: 0; font-size: 0.88rem; }

@media (max-width: 960px) {
	.tb-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Five stats: Current on its own row, then two rows of two. No orphan. */
	.tb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-stats li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	.tb-tool__head { grid-template-columns: 1fr; }
	.tb-search { flex: 1 1 100%; }
}
@media (max-width: 600px) {
	.tb-modules { grid-template-columns: 1fr; }
	.tb-chart__svg--wide { display: none; }
	.tb-chart__svg--narrow { display: block; }
	.tb-chart__panels { padding: 12px 10px; }
	.tb-filter--sort { margin-left: 0; }
	.tb-filter ul, .tb-filter--sort ul { left: 0; right: auto; max-width: calc(100vw - 32px); }
	.tb-verdict { gap: 16px; align-items: flex-start; }
	.tb-tool__cta .tb-btn { width: 100%; }
	.tb-tool__image { height: 220px; }
	.tb-iconreview__table { font-size: 0.82rem; }
	.tb-iconreview__table th, .tb-iconreview__table td { padding: 8px 6px; }
}
@media (max-width: 480px) {
	body { font-size: 16px; }
	.tb-main { padding: 18px 16px 48px; }
	.tb-wrap { padding: 0 16px; }
	.tb-grid { grid-template-columns: 1fr; }
	.tb-logo { font-size: 1.7rem; }
}
