body[data-color-scheme="light"] {
	--card-button-bg: #f5f5f7;
	--card-button-bg-hover: #eeeeee;
}

body[data-color-scheme="dark"] {
	--card-button-bg: #1d1d1f;
	--card-button-bg-hover: #1a1a1a;
}

.callout {
	padding: 0 !important;
	overflow: hidden;
}

.card-padding,
.card-padding-sm {
	padding: 3em 3em 1.5em;
}

.card-padding-sm {
	padding: 1.5em 3em;
	background-color: var(--card-button-bg);
}

@media only screen and (max-width: 734px) {
	.card-padding,
	.card-padding-sm {
		padding: 1.5em 1.5em;
	}
}

.card-padding-sm.card-opener:hover {
	background-color: var(--card-button-bg-hover);
}

.model-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

@media only screen and (max-width: 1068px) {
	.model-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
	}

	.model-grid > div:nth-child(1) {
		order: 2;
	}

	.model-grid > div:nth-child(2) {
		order: 1;
	}

	.model-image {
		width: 100%;
		max-height: 340px;
		object-fit: cover;
		object-position: top;
	}
}

.code-badge {
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 600;
	background-color: lightgrey;
	padding: 2px 10px 0;
	border-radius: 3px;
	width: fit-content;
	opacity: 0.75;
}

body[data-color-scheme="dark"] .code-badge {
	background-color: #666;
	color: #fff !important;
	opacity: 1;
}

.model-name {
	margin-top: 0.5em;
	margin-bottom: 0em;
}

.model-column-flex {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

hr {
	margin: 0;
	padding: 0;
}

.link.icon {
	width: fit-content;
}

.details-container h3 {
	margin-bottom: 0.75em !important;
}

/* ========== Tables ========== */
.table-container {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px;
}

@media only screen and (max-width: 1068px) {
	table {
		min-width: 750px;
	}
}

th,
td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

body[data-color-scheme="dark"] th,
body[data-color-scheme="dark"] td {
	border-bottom: 1px solid #333;
}

th {
	font-weight: 600;
	color: #333;
}

.links-subhead + p {
	margin-top: 0.8em !important;
}

/* ========== Table overrides ========== */

html body[data-color-scheme="dark"] table.variants-table tbody td,
html body[data-color-scheme="dark"] table.variants-table tr td {
	background-color: inherit !important;
}

table.variants-table tbody tr:last-of-type td {
	border-color: none !important;
	border: 0;
}

table.variants-table {
	border-radius: 12px;
	overflow: hidden;
}

html body[data-color-scheme="dark"] table.variants-table {
	background: #111;
}

html body[data-color-scheme="light"] table.variants-table {
	background: #fff;
}

.table-container.table-data table {
	table-layout: fixed;
}

.table-container.table-data table thead th:nth-child(1),
.table-container.table-data table tbody td:nth-child(1) {
	width: 15%;
}

.table-container.table-data table thead th:nth-child(2),
.table-container.table-data table tbody td:nth-child(2) {
	width: 20%;
}

.table-container.table-data table thead th:nth-child(3),
.table-container.table-data table tbody td:nth-child(3) {
	width: 15%;
}

.table-container.table-data table thead th:nth-child(4),
.table-container.table-data table tbody td:nth-child(4) {
	width: 25%;
}

.table-container.table-data table thead th:nth-child(5),
.table-container.table-data table tbody td:nth-child(5) {
	width: 25%;
}
