/*
Theme Name: Mechanic Tool Set
Template: aff-base
Description: Garage look for mechanic-tool-set.com: steel grey, tool-chest red, caution yellow and knurled textures.
Version: 1.0.0
*/

:root {
	--bg: #eef0f2;
	--surface: #ffffff;
	--surface-2: #e3e7eb;
	--ink: #16191d;
	--ink-2: #363d45;
	--muted: #5f6872;
	--line: #cdd3d9;
	--accent: #c8102e;
	--accent-ink: #ffffff;
	--accent-soft: #fbe4e7;
	--accent-2: #f2b705;
	--good: #23773b;
	--bad: #b3261e;
	--radius: 6px;
	--radius-sm: 4px;
	--shadow: 0 1px 0 rgba(22, 25, 29, .06), 0 8px 22px rgba(22, 25, 29, .10);
	--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display-weight: 700;
	--display-tracking: .005em;
	--caution: repeating-linear-gradient(-45deg, #f2b705 0 10px, #16191d 10px 20px);
	--knurl: repeating-linear-gradient(45deg, rgba(22, 25, 29, .16) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, rgba(22, 25, 29, .16) 0 1px, transparent 1px 5px);
}

/* ---------- Header: brushed steel, caution stripe on top, knurled band below ---------- */
.site-header {
	border-bottom: 0;
	backdrop-filter: none;
	background:
		repeating-linear-gradient(45deg, rgba(22, 25, 29, .30) 0 1px, transparent 1px 4px) left bottom / 100% 5px no-repeat,
		repeating-linear-gradient(-45deg, rgba(22, 25, 29, .30) 0 1px, transparent 1px 4px) left bottom / 100% 5px no-repeat,
		linear-gradient(180deg, #fbfcfc 0%, #e4e8eb 100%);
	box-shadow: 0 2px 10px rgba(22, 25, 29, .08);
}
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--caution); }
.site-header__inner { min-height: 74px; padding-top: 5px; }
.brand__name { font-size: 25px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.nav__list a { font: 600 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; border-radius: var(--radius-sm); padding: 10px 12px; }
.nav__list a:hover, .nav__list .current-menu-item a { background: var(--ink); color: #fff; }
.nav-toggle { border-radius: var(--radius-sm); }

/* ---------- Buttons and kicker ---------- */
.btn { border-radius: var(--radius-sm); font: 700 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.btn--primary { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22); }
.btn--ghost { border-width: 2px; }
.kicker { display: inline-block; padding: 6px 10px 5px; background: var(--ink); color: var(--accent-2); border-radius: 3px; font-family: var(--font-display); font-size: 14px; letter-spacing: .14em; }

/* ---------- Hero: pegboard wall ---------- */
.hero {
	position: relative;
	border-bottom: 0;
	padding-bottom: 72px;
	background:
		radial-gradient(circle, rgba(22, 25, 29, .11) 0 2px, transparent 2.6px) 0 0 / 22px 22px,
		linear-gradient(135deg, #f6f7f8 0%, #e1e5e9 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--caution); }
.hero__title { text-transform: uppercase; font-size: clamp(42px, 5.8vw, 70px); line-height: .98; letter-spacing: .005em; }
.hero__text { color: var(--ink-2); }

/* ---------- Headings ---------- */
.section__head h2 { text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.section__head h2::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--accent); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.prose h2 { padding-left: 14px; border-left: 5px solid var(--accent); }
.article__title, .silo-head h1 { text-transform: uppercase; line-height: 1.02; }

/* ---------- Silo tiles: tool-chest drawers with chrome pulls ---------- */
.silo {
	position: relative;
	padding: 22px 20px 40px;
	border: 0;
	border-radius: var(--radius);
	color: #fff;
	background: linear-gradient(180deg, #dc2235 0%, #b10f24 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 3px 0 #7d0a19;
}
.silo::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 15px; height: 8px; border-radius: 4px; background: linear-gradient(#ffffff, #8e98a2); box-shadow: 0 2px 2px rgba(0, 0, 0, .35); }
.silo:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 7px 0 #7d0a19, 0 14px 22px rgba(22, 25, 29, .2); }
.silo__icon { color: #fff; }
.silo__name { text-transform: uppercase; font-size: 22px; letter-spacing: .02em; }
.silo__count { color: rgba(255, 255, 255, .82); }

/* ---------- Cards ---------- */
.card__link { border-top: 4px solid var(--ink); }
.card__link:hover { border-color: transparent; border-top-color: var(--accent); }
.card--lg .card__link { background: var(--knurl), linear-gradient(160deg, #e3e7eb, #ffffff 62%); background-size: 100% 6px, auto; background-repeat: no-repeat; background-position: top left, 0 0; }
.card__more { text-transform: uppercase; font-family: var(--font-display); letter-spacing: .06em; font-size: 15.5px; }

/* ---------- Tool teaser: dark steel pegboard ---------- */
.teaser__inner { background: radial-gradient(circle, rgba(255, 255, 255, .07) 0 2px, transparent 2.6px) 0 0 / 22px 22px, #1d2126; color: #c9d0d6; border-radius: var(--radius); }
.teaser__copy h2 { color: #fff; text-transform: uppercase; }
.teaser .kicker { background: var(--accent-2); color: var(--ink); }

/* ---------- Promise: caution-taped cards ---------- */
.promise__item { border-top: 0; position: relative; padding-top: 32px; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.promise__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--caution); border-radius: var(--radius) var(--radius) 0 0; }
.promise__item h3 { text-transform: uppercase; }

/* ---------- Quick picks: numbered hex-nut bullets ---------- */
.quick-picks { counter-reset: qp; border-left: 6px solid var(--accent); border-radius: var(--radius); }
.quick-picks li { counter-increment: qp; position: relative; padding-left: 66px; }
.quick-picks li::before { content: counter(qp); position: absolute; left: 18px; top: 15px; width: 33px; height: 29px; display: grid; place-items: center; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--accent-2); color: var(--ink); font: 800 16px/1 var(--font-display); }
.quick-picks li strong { font-size: 19px; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- Product box: caution-striped edge, gunmetal icon plate ---------- */
.aff-product { position: relative; overflow: hidden; padding-left: 30px; border-radius: var(--radius); }
.aff-product::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--caution); }
.aff-product__icon { background: #1d2126; color: var(--accent-2); border-radius: var(--radius-sm); }
.aff-product__badge { background: var(--ink); color: var(--accent-2); border-radius: 3px; }
.aff-product__name { font-size: 19px; }
.aff-product__btn, .aff-cta__btn { background: var(--accent); color: #fff; border-radius: var(--radius-sm); font: 700 16px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22); }
.aff-cta { border-left: 6px solid; border-image: var(--caution) 1; }
.aff-cta__label { color: var(--accent); }

/* ---------- Tables, TOC, FAQ ---------- */
.prose th { background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 15.5px; letter-spacing: .04em; text-transform: uppercase; }
.prose tbody tr:nth-child(even) td { background: #f6f7f8; }
.prose tbody tr:hover td { background: #fff4cf; }
.aff-tablefilter__bar input { border-radius: var(--radius-sm); }
.aff-disclosure { border-left: 4px solid var(--accent-2); }

/* ---------- Footer: gunmetal with knurl and caution stripe ---------- */
.site-footer {
	position: relative;
	background:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 5px),
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 5px),
		#1b1f24;
	color: #b8c0c8;
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--caution); }
.site-footer__title { color: var(--accent-2); font-family: var(--font-display); font-size: 14px; }
.site-footer .brand__name { text-transform: uppercase; font-weight: 800; }

/* ---------- Tools ---------- */
.aff-tool { border-top: 6px solid var(--ink); border-radius: var(--radius); }
.aff-tool h3 { text-transform: uppercase; letter-spacing: .02em; }
.aff-tool__result { background: #fff7dc; border-left: 4px solid var(--accent-2); }
.aff-tool__result p { margin: 0 0 .5em; }
.aff-tool__result p:last-child { margin-bottom: 0; }
.mtc-conv__eq { font-size: 18px; }
.mtc-conv__eq strong { font-size: 26px; }
.mtc-verdict { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 15.5px; }
.mtc-verdict--yes { background: #e3f1e6; color: #1b5e2e; }
.mtc-verdict--close { background: #fff0bf; color: #6b4f00; }
.mtc-verdict--no { background: #fbe4e7; color: #8c1323; }
.mtc-conv__hint, .mtc-conv__drive { font-size: 15px; color: var(--ink-2); }
.mtc-conv__scale { margin-top: 14px; }
.mtc-conv__scale svg { width: 100%; max-width: 560px; height: auto; display: block; }
.mtc-sc__no { fill: #f1d3d7; }
.mtc-sc__close { fill: #ffe08a; }
.mtc-sc__yes { fill: #9fd3ad; }
.mtc-sc__tick, .mtc-sc__zero { stroke: #16191d; stroke-width: 1.5; }
.mtc-sc__zero { stroke-width: 2.5; }
.mtc-sc__num { font: 500 11px var(--font-body); fill: #5f6872; }
.mtc-sc__lbl { font: 700 13px var(--font-display); fill: #16191d; letter-spacing: .03em; }
.mtc-sc__mark { fill: var(--accent); }
.mtc-conv__pairs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.mtc-conv__pairs-label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.mtc-conv__chip, .mtc-drive__tabs button { min-height: 40px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: 600 15px/1 var(--font-display); letter-spacing: .04em; cursor: pointer; }
.mtc-conv__chip:hover, .mtc-drive__tabs button:hover { border-color: var(--ink); }
.mtc-tool__note { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }

.mtc-drive__svg svg { width: 100%; height: auto; display: block; }
.mtc-drive__sq { cursor: pointer; }
.mtc-drive__face { fill: #b9c1c8; stroke: #5d6771; stroke-width: 1.5; transition: fill .15s; }
.mtc-drive__bevel { fill: #ffffff; opacity: .35; }
.mtc-drive__dot { fill: #3a424a; }
.mtc-drive__dim { stroke: #8f99a3; stroke-width: 1.5; }
.mtc-drive__lbl { font: 700 24px var(--font-display); fill: #16191d; }
.mtc-drive__mm { font: 500 17px var(--font-body); fill: #5f6872; }
.mtc-drive__ruler line { stroke: #16191d; stroke-width: 2; }
.mtc-drive__ruler text { font: 600 16px var(--font-body); fill: #363d45; }
.mtc-drive__sq.is-on .mtc-drive__face { fill: var(--accent); stroke: #7d0a19; }
.mtc-drive__sq.is-on .mtc-drive__dim { stroke: var(--accent); }
.mtc-drive__sq.is-on .mtc-drive__lbl { fill: var(--accent); }
.mtc-drive__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.mtc-drive__tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--accent-2); }
.mtc-drive__panel dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.mtc-drive__panel dl div { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.mtc-drive__panel dt { font: 700 12.5px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.mtc-drive__panel dd { margin: 0; font: 700 18px/1.25 var(--font-display); color: var(--ink); }
.mtc-drive__panel p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

@media (max-width: 760px) {
	.hero { padding-bottom: 52px; }
	.aff-product { padding-left: 24px; }
	.aff-tool { padding: 18px 16px; }
	.mtc-drive__panel dl { grid-template-columns: 1fr; }
	.quick-picks li { padding-left: 60px; }
}
