/**
 * Specifications tab.
 *
 * SITC supplies a bare <table class="generic"> with <th colspan="2"> rows
 * acting as section headings and <td> pairs for each label and value. These
 * rules give that structure a readable shape without fighting the theme.
 */

.kjl-sitc-specs {
	--kjl-spec-border: rgba(0, 0, 0, .1);
	--kjl-spec-muted: rgba(0, 0, 0, .6);
	--kjl-spec-head-bg: rgba(0, 0, 0, .04);

	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.kjl-sitc-specs table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: .9375rem;
}

.kjl-sitc-specs td,
.kjl-sitc-specs th {
	padding: .5rem .75rem;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--kjl-spec-border);
}

/* Section headings: SITC emits these as <th colspan="2">. */
.kjl-sitc-specs th[colspan] {
	background: var(--kjl-spec-head-bg);
	font-weight: 700;
	font-size: .8125rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding-top: .875rem;
	padding-bottom: .875rem;
}

/* Label column. */
.kjl-sitc-specs td:first-child {
	width: 42%;
	color: var(--kjl-spec-muted);
}

/* Value column. */
.kjl-sitc-specs td:last-child {
	font-weight: 500;
}

.kjl-sitc-specs tr:last-child td {
	border-bottom: 0;
}

/* Zebra striping only within value rows, so headings stay distinct. */
.kjl-sitc-specs tbody tr:nth-of-type(even) td {
	background: rgba(0, 0, 0, .015);
}

@media (max-width: 600px) {
	.kjl-sitc-specs table,
	.kjl-sitc-specs tbody,
	.kjl-sitc-specs tr,
	.kjl-sitc-specs td {
		display: block;
		width: 100%;
	}

	.kjl-sitc-specs th[colspan] {
		display: block;
		width: 100%;
	}

	.kjl-sitc-specs td:first-child {
		width: 100%;
		padding-bottom: 0;
		font-size: .8125rem;
	}

	.kjl-sitc-specs td:last-child {
		padding-top: .125rem;
	}

	.kjl-sitc-specs tr {
		border-bottom: 1px solid var(--kjl-spec-border);
		padding: .25rem 0;
	}

	.kjl-sitc-specs td {
		border-bottom: 0;
	}
}
