/* Top Sport Gear Tools. Brand colours follow the Elementor kit (#F1CB00 accent, Poppins). */
.tsg-tool,
.tsg-cta,
.tsg-specs-wrap {
	--tsg-accent: #f1cb00;
	--tsg-accent-soft: #fdf6cc;
	--tsg-ink: #1a1a1a;
	--tsg-muted: #5f5f5f;
	--tsg-line: #e4e4e4;
	--tsg-bg: #ffffff;
	--tsg-bg-alt: #f7f7f7;
	font-family: "Poppins", system-ui, sans-serif;
	color: var(--tsg-ink);
}

.tsg-tool {
	background: var(--tsg-bg);
	border: 1px solid var(--tsg-line);
	border-radius: 12px;
	padding: 24px;
	margin: 24px 0 32px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tsg-finder__q {
	border: 0;
	padding: 0;
	margin: 0 0 22px;
}

.tsg-finder__q legend {
	font-weight: 600;
	font-size: 1.05rem;
	margin-bottom: 10px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tsg-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tsg-accent);
	color: var(--tsg-ink);
	font-size: 0.85rem;
	font-weight: 700;
	flex: none;
}

.tsg-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px;
}

.tsg-option {
	position: relative;
	display: block;
	cursor: pointer;
	margin: 0;
}

.tsg-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tsg-option span {
	display: block;
	height: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--tsg-line);
	border-radius: 8px;
	font-size: 0.92rem;
	line-height: 1.4;
	transition: border-color 0.15s, background-color 0.15s;
}

.tsg-option:hover span {
	border-color: #c9c9c9;
}

.tsg-option input:checked + span {
	border-color: var(--tsg-accent);
	background: var(--tsg-accent-soft);
	font-weight: 500;
}

.tsg-option input:focus-visible + span {
	outline: 2px solid var(--tsg-ink);
	outline-offset: 2px;
}

.tsg-btn,
.tsg-tool button.tsg-btn {
	display: inline-block;
	background: var(--tsg-accent);
	color: var(--tsg-ink);
	border: 0;
	border-radius: 8px;
	padding: 12px 22px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s;
}

.tsg-btn:hover,
.tsg-btn:focus {
	filter: brightness(0.94);
	color: var(--tsg-ink);
	text-decoration: none;
}

.tsg-tool button.tsg-btn--ghost {
	background: transparent;
	border: 1.5px solid var(--tsg-line);
	font-weight: 500;
	font-size: 0.9rem;
	padding: 8px 14px;
}

.tsg-error {
	color: #b42318;
	font-weight: 500;
}

.tsg-hint {
	color: var(--tsg-muted);
	font-size: 0.88rem;
	margin: 8px 0;
}

/* Finder results */
.tsg-finder__results:not(:empty) {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--tsg-line);
}

.tsg-results-title {
	margin: 0 0 14px;
}

.tsg-cards {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.tsg-card {
	border: 1px solid var(--tsg-line);
	border-radius: 10px;
	padding: 16px 18px;
	margin: 0;
}

.tsg-card--top {
	border: 2px solid var(--tsg-accent);
	background: linear-gradient(180deg, var(--tsg-accent-soft), var(--tsg-bg) 70%);
}

.tsg-card__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.tsg-card__name {
	font-weight: 700;
	font-size: 1.1rem;
}

.tsg-card__match {
	font-size: 0.8rem;
	font-weight: 600;
	background: var(--tsg-bg-alt);
	border-radius: 999px;
	padding: 3px 10px;
	white-space: nowrap;
}

.tsg-card--top .tsg-card__match {
	background: var(--tsg-accent);
}

.tsg-card__specs {
	color: var(--tsg-muted);
	font-size: 0.88rem;
	margin: 6px 0 8px;
}

.tsg-card__why {
	margin: 0 0 8px;
	padding-left: 20px;
	font-size: 0.92rem;
}

.tsg-card__why li {
	margin: 2px 0;
}

.tsg-card__meta {
	font-size: 0.85rem;
	color: var(--tsg-muted);
	margin: 0 0 6px;
}

.tsg-card__link {
	font-weight: 600;
	font-size: 0.92rem;
}

/* Spec and comparison tables */
.tsg-specs-wrap {
	overflow-x: auto;
	margin: 16px 0 6px;
	-webkit-overflow-scrolling: touch;
}

.tsg-specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin: 0;
}

.tsg-specs caption {
	text-align: left;
	font-weight: 600;
	padding: 0 0 8px;
}

.tsg-specs th,
.tsg-specs td {
	border: 1px solid var(--tsg-line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.tsg-specs thead th {
	background: var(--tsg-ink);
	color: #fff;
	font-weight: 600;
}

.tsg-specs thead th a {
	color: var(--tsg-accent);
}

.tsg-specs tbody th {
	font-weight: 600;
	background: var(--tsg-bg-alt);
	min-width: 150px;
}

.tsg-specs--compare tr.tsg-diff td {
	background: var(--tsg-accent-soft);
}

.tsg-badge {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.7rem;
	font-weight: 500;
	background: var(--tsg-line);
	border-radius: 4px;
	padding: 1px 6px;
	vertical-align: middle;
}

.tsg-specs-note {
	font-size: 0.82rem;
	color: #5f5f5f;
	margin: 0 0 24px;
}

/* Comparison pickers */
.tsg-compare__pickers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 8px;
}

.tsg-compare__picker span {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 4px;
}

.tsg-tool select,
.tsg-tool input[type="number"] {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid var(--tsg-line);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	background: var(--tsg-bg);
	color: var(--tsg-ink);
}

/* Tension calculator */
.tsg-tension__max {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 10px;
	align-items: center;
}

.tsg-inline {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.tsg-tension__result:not(:empty) {
	margin-top: 24px;
}

.tsg-tension__box {
	background: var(--tsg-accent-soft);
	border: 2px solid var(--tsg-accent);
	border-radius: 12px;
	padding: 18px 20px;
	text-align: center;
}

.tsg-tension__box p {
	margin: 4px 0;
}

.tsg-tension__label {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--tsg-muted);
}

.tsg-tension__value {
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.15;
}

.tsg-tension__kg {
	color: var(--tsg-muted);
}

.tsg-tension__notes {
	margin: 16px 0 0;
	padding-left: 20px;
	font-size: 0.92rem;
}

.tsg-tension__notes li {
	margin: 6px 0;
}

/* Call-to-action box used inside articles */
.tsg-cta {
	border-left: 5px solid var(--tsg-accent);
	background: var(--tsg-accent-soft);
	border-radius: 0 10px 10px 0;
	padding: 18px 22px;
	margin: 28px 0;
}

.tsg-cta p {
	margin: 0 0 10px;
}

.tsg-cta__title {
	font-weight: 700;
	font-size: 1.1rem;
}

@media (max-width: 600px) {
	.tsg-tool {
		padding: 16px;
	}

	.tsg-tension__max {
		grid-template-columns: 1fr;
	}

	.tsg-specs th,
	.tsg-specs td {
		padding: 8px;
	}
}
