/*
 * Drawing Sheet hairline tables and grid width.
 * Managed by the template; uses fallbacks when Drawing Sheet tokens are absent.
 */

.md-typeset__table {
	display: inline-block;
	min-width: 100%;
	box-sizing: border-box;
}

.md-typeset table:not([class]) {
	display: table;
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
	border: none;
	border-radius: 0;
	background-color: var(--paper, var(--md-default-bg-color, #ffffff));
	font-variant-numeric: tabular-nums;
}

.md-typeset table:not([class]) thead th {
	min-width: auto;
	font-family: var(--font-body, var(--md-text-font, "Inter", sans-serif));
	font-size: var(--t-label, 11.5px);
	line-height: 1.2;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ink-3, #64748B);
	padding: 10px 12px;
	border-top: none;
	border-left: none;
	border-right: none;
	border-bottom: var(--hairline, 1px) solid var(--ink, #0F172A);
	vertical-align: bottom;
}

.md-typeset table:not([class]) tbody td {
	font-size: var(--t-small, 14px);
	line-height: 1.55;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
	color: var(--ink-2, #334155);
	padding: 10px 12px;
	border-top: var(--hairline, 1px) solid var(--rule, #E4E8EF);
	border-left: none;
	border-right: none;
	border-bottom: none;
	vertical-align: middle;
}

.md-typeset table:not([class]) tbody tr:last-child td {
	border-bottom: var(--hairline, 1px) solid var(--rule, #E4E8EF);
}

.md-typeset table:not([class]) tbody tr:hover {
	background-color: var(--paper-alt, #FAFBFC);
	box-shadow: none;
}

/* Right-align numeric cells explicitly marked via markdown align (`--:`) or class. */
.md-typeset table:not([class]) th[style*="text-align: right"],
.md-typeset table:not([class]) td[style*="text-align: right"],
.md-typeset table:not([class]) th.num,
.md-typeset table:not([class]) td.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.md-grid {
	max-width: 72rem;
}
