/* Table, Outline design (spec §3.7): drawn with lines. A framed card with the soft shadow and small
   corners, a grid of lines between rows and columns, no band behind the header but a line in the
   accent under it, outlined buttons in cells, and controls with small corners. Loaded after
   table.css, only where the design is chosen. It changes design tokens and our own fallbacks, never
   a property a Style control writes, so the Style tab still wins. */
.hafe-design-outline .hafe-table {
	--hafe-radius: 0.5rem;
	--hafe-radius-sm: 0.375rem;
	--hafe-pill: 0.375rem;
}

.hafe-design-outline .hafe-table {
	--hafe-table-head: var(--hafe-table-bg, var(--hafe-surface));
	--hafe-table-cols: var(--hafe-table-line-width, 1px);
}

/* Twice a row's line, in the accent unless the lines have a colour of their own. */
.hafe-design-outline .hafe-table .hafe-table__table > thead > tr > th {
	border-block-end-width: calc(2 * var(--hafe-table-line, var(--hafe-table-rows)));
	border-block-end-color: var(--hafe-table-line-color, var(--hafe-accent));
}

.hafe-design-outline .hafe-table .hafe-table__button {
	border-color: var(--hafe-table-button-bg, var(--hafe-accent));
	background: var(--hafe-table-button-bg, none);
}

.hafe-design-outline .hafe-table .hafe-table__button:hover {
	background: var(--hafe-table-button-bg, var(--hafe-tint));
}
