/* Table, Solid design (spec §3.7): flat filled shapes. The table on a pale tint of the accent with no
   border (a small lift in the light scheme), the header and footer filled with the accent, rows told apart by a deeper tint
   instead of lines, solid buttons in cells, and filled controls. 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-solid .hafe-table {
	--hafe-shadow: var(--hafe-solid-lift);
	--hafe-radius: 1rem;
	--hafe-panel: color-mix(in srgb, var(--hafe-accent) 7%, var(--hafe-surface));
	--hafe-deep: color-mix(in srgb, var(--hafe-accent) 85%, #000);
	--hafe-line: color-mix(in srgb, var(--hafe-accent) 16%, var(--hafe-surface));
}

.hafe-design-solid .hafe-table {
	--hafe-table-head: var(--hafe-accent);
	--hafe-table-head-ink: var(--hafe-on-accent);
	--hafe-table-stripe: color-mix(in srgb, var(--hafe-accent) 13%, var(--hafe-surface));
	--hafe-table-wash: var(--hafe-tint-strong);
	--hafe-table-rows: 0px;
}

.hafe-scheme-dark.hafe-design-solid .hafe-table {
	--hafe-table-stripe: color-mix(in srgb, var(--hafe-accent) 15%, var(--hafe-surface));
	--hafe-table-wash: color-mix(in srgb, var(--hafe-accent) 24%, var(--hafe-surface));
}

.hafe-design-solid .hafe-table__frame {
	border-color: var(--hafe-table-border, transparent);
	background: var(--hafe-table-bg, var(--hafe-panel));
}

/* In the header and footer, what would be in the accent turns light. */
.hafe-design-solid .hafe-table__table > thead > tr > *,
.hafe-design-solid .hafe-table__table > tfoot > tr > * {
	--hafe-accent-ink: var(--hafe-on-accent);
	--hafe-line: rgb(255 255 255 / 25%);
}

.hafe-design-solid .hafe-table__table > thead :focus-visible,
.hafe-design-solid .hafe-table__table > tfoot :focus-visible {
	outline-color: var(--hafe-on-accent);
}

.hafe-design-solid .hafe-table .hafe-table__button {
	background: var(--hafe-table-button-bg, var(--hafe-accent));
	color: var(--hafe-table-button-color, var(--hafe-on-accent));
}

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

.hafe-design-solid .hafe-table .hafe-table__table > :is(thead, tfoot) .hafe-table__button {
	background: var(--hafe-table-button-bg, var(--hafe-on-accent));
	color: var(--hafe-table-button-color, var(--hafe-deep));
}

.hafe-design-solid .hafe-table .hafe-table__search:not(#hafe-never),
.hafe-design-solid .hafe-table .hafe-table__size,
.hafe-design-solid .hafe-table .hafe-table__page.hafe-table__page:not([aria-current="page"]) {
	border-color: var(--hafe-table-tools-border, transparent);
	background: var(--hafe-table-tools-bg, var(--hafe-panel));
}

.hafe-design-solid .hafe-table .hafe-table__page.hafe-table__page:not(:disabled, [aria-current="page"]):hover {
	background: var(--hafe-tint-strong);
}

.hafe-design-solid .hafe-table .hafe-table__search:focus:not(#hafe-never),
.hafe-design-solid .hafe-table .hafe-table__size:focus {
	border-color: var(--hafe-accent);
}
