/*
 * 3task Toolbar: content elements.
 * Low specificity (:where) so themes can override everything; colours follow the theme text colour.
 */
:where(.threece-accordion, .threece-tabs, .threece-item, .threece-spoiler, .threece-tab, .threece-notice, .threece-columns, .threece-button) {
	box-sizing: border-box;
}

/*
 * Element accent (tab "Design"): the chosen palette colour arrives as --threece-element-accent on body; without a
 * choice it follows the theme (primary, else accent colour), else WordPress blue. Text in the accent ("ink") is
 * darkened if needed, so it stays readable on light surfaces; text on an accent surface turns white or black by
 * contrast. Browsers without relative colours keep the plain accent and white.
 */
:where(.threece-accordion, .threece-tabs, .threece-item, .threece-spoiler, .threece-tab, .threece-notice, .threece-button, .threece-toc, .threece-countdown, .threece-video, .threece-table, .threece-table-scroll) {
	--threece-ea: var(--threece-element-accent, var(--wp--preset--color--primary, var(--wp--preset--color--accent, #2271b1)));
	--threece-ink: var(--threece-ea);
	--threece-etint: color-mix(in srgb, var(--threece-ea) 10%, transparent);
	--threece-dir: 1;
}

:where(.threece-button) {
	--threece-on-accent: #fff;
	--threece-accent-ink: var(--threece-accent);
}

@supports (color: oklch(from red l c h)) {
	:where(.threece-accordion, .threece-tabs, .threece-item, .threece-spoiler, .threece-tab, .threece-notice, .threece-button, .threece-toc, .threece-countdown, .threece-video, .threece-table, .threece-table-scroll) {
		--threece-ink: oklch(from var(--threece-ea) min(l, 0.46) c h);
	}

	:where(.threece-button) {
		--threece-on-accent: oklch(from var(--threece-accent) clamp(0, (0.565 - l) * 1000, 1) 0 0);
		--threece-accent-ink: oklch(from var(--threece-accent) min(l, 0.46) c h);
	}
}

:where(.threece-notice:dir(rtl), .threece-button:dir(rtl)) {
	--threece-dir: -1;
}

:where(.threece-accordion, .threece-tabs, .threece-item, .threece-spoiler, .threece-tab) {
	--threece-line: color-mix(in srgb, currentColor 18%, transparent);
	--threece-soft: color-mix(in srgb, currentColor 5%, transparent);
	--threece-radius: 6px;
	margin-block: 1.5em;
}

:where(.threece-accordion) > :where(.threece-item) {
	margin: 0;
}

:where(.threece-item, .threece-spoiler) {
	border: 1px solid var(--threece-line);
	border-radius: var(--threece-radius);
}

:where(.threece-accordion) > :where(.threece-item + .threece-item) {
	margin-top: -1px;
}

:where(.threece-item__title, .threece-spoiler__title) {
	cursor: pointer;
	font-weight: 600;
	padding: 0.75em 1em;
}

:where(.threece-item[open], .threece-spoiler[open]) > :where(summary) {
	background: var(--threece-soft);
}

:where(.threece-item__content, .threece-spoiler__content) {
	padding: 0.75em 1em;
}

:where(.threece-item__content, .threece-spoiler__content, .threece-tabs__panel) > :first-child {
	margin-top: 0;
}

:where(.threece-item__content, .threece-spoiler__content, .threece-tabs__panel) > :last-child {
	margin-bottom: 0;
}

:where(.threece-tabs__list) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em;
	border-bottom: 1px solid var(--threece-line);
}

/* Tabs are buttons, and many themes style every button (GeneratePress: grey surface, white text, own font, hover).
   Exception to :where like the button text colour: two classes beat "button" and "button:hover". A theme
   restyles tabs with .threece-tabs .threece-tabs__tab plus one more selector. */
.threece-tabs .threece-tabs__tab {
	background: none;
	border: 1px solid transparent;
	border-bottom: 0;
	border-radius: var(--threece-radius) var(--threece-radius) 0 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	padding: 0.6em 1em;
	text-transform: inherit;
}

.threece-tabs .threece-tabs__tab:where([aria-selected="true"]) {
	background: var(--threece-soft);
	border-color: var(--threece-line);
	font-weight: 600;
}

:where(.threece-tabs__tab:focus-visible, .threece-item__title:focus-visible, .threece-spoiler__title:focus-visible) {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

:where(.threece-tabs__panel) {
	padding: 1em 0;
}

/* Without JavaScript every panel stays visible and shows its tab title; with JavaScript the tab list takes over. */
:where(.threece-tabs:not(.threece-tabs--ready)) :where(.threece-tabs__list),
:where(.threece-tabs--ready) :where(.threece-tabs__panel-title) {
	display: none;
}

:where(.threece-tabs__panel-title) {
	font-weight: 600;
	margin-bottom: 0.5em;
}

:where(.threece-tab__title) {
	font-weight: 600;
}

/* Tabs on phones: one scrolling row, or every content one below the other with its title. */
@media (max-width: 600px) {
	:where(.threece-tabs--mobile-scroll) :where(.threece-tabs__list) {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-top: 4px;
	}

	:where(.threece-tabs--mobile-scroll) :where(.threece-tabs__tab) {
		flex: none;
		white-space: nowrap;
	}

	:where(.threece-tabs--mobile-stack.threece-tabs--ready) :where(.threece-tabs__list) {
		display: none;
	}

	:where(.threece-tabs--mobile-stack.threece-tabs--ready) :where(.threece-tabs__panel-title) {
		display: block;
	}

	:where(.threece-tabs--mobile-stack) :where(.threece-tabs__panel[hidden]) {
		display: block;
	}
}

/* Notice box */
:where(.threece-notice) {
	--threece-accent: #2271b1;
	background: color-mix(in srgb, var(--threece-accent) 8%, transparent);
	border-inline-start: 4px solid var(--threece-accent);
	border-radius: var(--threece-radius);
	display: flex;
	gap: 0.75em;
	margin-block: 1.5em;
	padding: 1em 1.25em;
}

:where(.threece-notice--tip) {
	--threece-accent: #8a6d00;
}

:where(.threece-notice--warning) {
	--threece-accent: #b32d2e;
}

:where(.threece-notice--success) {
	--threece-accent: #1a7f37;
}

:where(.threece-notice__icon) {
	color: var(--threece-accent);
	flex: none;
	line-height: 0;
	padding-top: 0.1em;
}

:where(.threece-notice__title) {
	font-weight: 600;
}

:where(.threece-notice__body) > :first-child {
	margin-top: 0;
}

:where(.threece-notice__body) > :last-child {
	margin-bottom: 0;
}

/* Button */
:where(.threece-button) {
	--threece-accent: var(--threece-ea);
	background: var(--threece-accent);
	border: 2px solid var(--threece-accent);
	border-radius: var(--threece-radius, 6px);
	display: inline-block;
	font-weight: 600;
	margin-block: 0.25em;
	padding: 0.6em 1.2em;
	text-decoration: none;
}

/* Themes colour links; the button text keeps enough contrast (one class beats a plain a selector). */
.threece-button,
.threece-button:visited,
.threece-button:hover,
.threece-button:focus {
	color: var(--threece-on-accent);
	text-decoration: none;
}

.threece-button.threece-button--outline,
.threece-button.threece-button--outline:visited,
.threece-button.threece-button--outline:hover {
	color: var(--threece-accent-ink);
}

:where(.threece-button--secondary) {
	--threece-accent: #50575e;
}

:where(.threece-button--outline) {
	background: transparent;
	color: var(--threece-accent);
}

:where(.threece-button:focus-visible) {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

:where(.threece-button--no-link) {
	cursor: default;
	opacity: 0.7;
}

/* Columns: widths from the span attribute, stacked on small screens */
:where(.threece-columns) {
	display: grid;
	gap: 1.5em;
	grid-template-columns: var(--threece-columns, 1fr 1fr);
	margin-block: 1.5em;
}

:where(.threece-column) > :first-child {
	margin-top: 0;
}

:where(.threece-column) > :last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	:where(.threece-columns) {
		grid-template-columns: 1fr;
	}
}

/* Table of contents */
:where(.threece-toc) {
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 6px;
	box-sizing: border-box;
	margin-block: 1.5em;
	padding: 0.75em 1em;
}

:where(.threece-toc__title) {
	cursor: pointer;
	font-weight: 600;
}

:where(.threece-toc__list) {
	margin: 0.5em 0 0;
}

:where(.threece-toc) :where(ul, ol) :where(ul, ol) {
	margin-block: 0.25em;
}

/* Video with two-click consent */
:where(.threece-video) {
	margin: 1.5em 0;
}

:where(.threece-video__frame) {
	align-items: center;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #1d2327, #3c434a);
	border-radius: 6px;
	color: #fff;
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

:where(.threece-video__poster) {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

:where(.threece-video__title) {
	background: linear-gradient(rgba(0, 0, 0, 0.6), transparent);
	font-weight: 600;
	inset: 0 0 auto;
	padding: 0.75em 1em 2em;
	position: absolute;
}

.threece-video__play {
	align-items: center;
	background: rgba(0, 0, 0, 0.7);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	height: 72px;
	justify-content: center;
	padding: 0 0 0 4px;
	position: relative;
	width: 72px;
}

.threece-video__play:hover,
.threece-video__play:focus-visible {
	background: #b32d2e;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

:where(.threece-video__iframe) {
	border: 0;
	height: 100%;
	width: 100%;
}

:where(.threece-video__notice) {
	font-size: 0.85em;
	margin-top: 0.4em;
	opacity: 0.8;
}

/* Countdown */
:where(.threece-countdown) {
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 6px;
	box-sizing: border-box;
	margin: 1.5em 0;
	padding: 1em 1.25em;
	text-align: center;
}

:where(.threece-countdown) > p {
	margin: 0;
}

:where(.threece-countdown__clock:not([hidden])) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	justify-content: center;
	margin: 0.6em 0;
}

:where(.threece-countdown__unit) {
	display: flex;
	flex-direction: column;
	min-width: 4.5em;
}

:where(.threece-countdown__value) {
	font-size: 2em;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1.1;
}

:where(.threece-countdown__label) {
	font-size: 0.8em;
	opacity: 0.8;
}

:where(.threece-countdown__expired) {
	font-weight: 600;
}

/* Tooltip: hidden with display:none, so a closed explanation never widens the page. */
:where(.threece-tooltip) {
	position: relative;
}

:where(.threece-tooltip__term) {
	border-bottom: 1px dotted currentColor;
	cursor: help;
}

:where(.threece-tooltip__term):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.threece-tooltip__text {
	background: #1d2327;
	border-radius: 6px;
	bottom: 100%;
	box-sizing: border-box;
	color: #fff;
	display: none;
	font-size: 0.875rem;
	font-weight: 400;
	left: 50%;
	line-height: 1.4;
	margin-bottom: 6px;
	max-width: min(18rem, calc(100vw - 16px));
	padding: 0.45em 0.7em;
	position: absolute;
	text-align: start;
	transform: translateX(calc(-50% + var(--threece-shift, 0px)));
	width: max-content;
	z-index: 1000;
}

/* Bridge over the gap, so the pointer can move onto the explanation without closing it. */
.threece-tooltip__text::after {
	content: "";
	height: 6px;
	left: 0;
	position: absolute;
	right: 0;
	top: 100%;
}

.threece-tooltip:hover > .threece-tooltip__text,
.threece-tooltip:focus-within > .threece-tooltip__text {
	display: block;
}

.threece-tooltip.threece-tooltip--closed > .threece-tooltip__text {
	display: none;
}

/* QR code */
:where(.threece-qr) {
	margin: 1.5em 0;
}

:where(.threece-qr) svg {
	display: block;
	height: auto;
	max-width: 100%;
}

/* Table styles: only tables with the class threece-table, chosen in the table dialog. */
:where(.threece-table-scroll) {
	margin: 1.5em 0;
	max-width: 100%;
	overflow-x: auto;
}

:where(.threece-table-scroll):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

:where(.threece-table) {
	margin: 0;
	min-width: 100%;
}

/* Row lines of the templates need collapsed borders; some themes set "separate" on every table (GeneratePress). */
.threece-table {
	border-collapse: collapse;
}

/* The frame carries the outer margin; themes that give every table a margin (GeneratePress) would leave a gap
   inside it. Two classes beat "table". */
.threece-table-scroll > .threece-table {
	margin: 0;
}

:where(.threece-table) :where(th, td) {
	padding: 0.55em 0.8em;
	text-align: start;
	vertical-align: top;
}

:where(.threece-table) :where(thead th, thead td, tr > th) {
	border-bottom: 2px solid color-mix(in srgb, currentColor 35%, transparent);
	font-weight: 600;
}

:where(.threece-table) :where(tbody tr) {
	border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

:where(.threece-table--striped) :where(tbody tr:nth-child(odd)) {
	background: color-mix(in srgb, currentColor 6%, transparent);
}

:where(.threece-table--bordered) :where(th, td) {
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

:where(.threece-table--compact) :where(th, td) {
	padding: 0.3em 0.5em;
}

:where(.threece-table) :where(caption) {
	caption-side: top;
	font-weight: 600;
	padding-bottom: 0.4em;
	text-align: start;
}

/* Old content of Shortcodes Ultimate shown with plain HTML (quote, label). */
:where(.threece-quote) footer {
	font-size: 0.9em;
	margin-top: 0.4em;
}

:where(.threece-label) {
	border: 1px solid currentColor;
	border-radius: 3px;
	font-size: 0.85em;
	padding: 0 0.35em;
}

/* Table style templates (chosen in the "Table style" dialog). The accent follows the theme unless a color is
   picked; every palette color carries white text at 4.5:1 or more (WCAG AA). */
:where(.threece-table) {
	--threece-accent: var(--wp--preset--color--primary, currentColor);
	--threece-line: color-mix(in srgb, currentColor 15%, transparent);
	--threece-tint: color-mix(in srgb, var(--threece-accent) 10%, transparent);
}

.threece-table--accent-blue { --threece-accent: #1d4ed8; }
.threece-table--accent-green { --threece-accent: #15803d; }
.threece-table--accent-red { --threece-accent: #b91c1c; }
.threece-table--accent-purple { --threece-accent: #6d28d9; }
.threece-table--accent-orange { --threece-accent: #c2410c; }
.threece-table--accent-teal { --threece-accent: #0f766e; }
.threece-table--accent-gray { --threece-accent: #4b5563; }
.threece-table--accent-black { --threece-accent: #111827; }

/* Templates */
:where(.threece-table--style-striped) :where(tbody tr:nth-child(odd)) {
	background: var(--threece-tint);
}

:where(.threece-table--style-grid, .threece-table--style-compact) :where(th, td) {
	border: 1px solid var(--threece-line);
}

:where(.threece-table--style-minimal) :where(tbody tr) {
	border-bottom: 0;
}

:where(.threece-table--style-minimal) :where(thead th, tr > th) {
	border-bottom-width: 1px;
}

.threece-table--style-header :where(thead th, thead td) {
	background: var(--threece-tint);
	border-bottom: 2px solid var(--threece-accent);
}

.threece-table--style-header[class*="threece-table--accent-"] :where(thead th, thead td) {
	background: var(--threece-accent);
	border-bottom-color: var(--threece-accent);
	color: #fff;
}

:where(.threece-table--style-pricing) :where(th, td) {
	padding: 0.8em 1em;
}

:where(.threece-table--style-pricing) :where(thead th) {
	font-size: 0.85em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

:where(.threece-table--style-pricing) :where(tbody td:first-child) {
	font-weight: 600;
}

:where(.threece-table--style-pricing) :where(td:last-child, th:last-child) {
	font-weight: 600;
	text-align: end;
}

:where(.threece-table--style-compare) :where(th, td) {
	border: 1px solid var(--threece-line);
	text-align: center;
}

:where(.threece-table--style-compare) :where(th:first-child, td:first-child) {
	background: var(--wp--preset--color--base, Canvas);
	font-weight: 600;
	left: 0;
	position: sticky;
	text-align: start;
}

:where(.threece-table--style-compact) :where(th, td) {
	padding: 0.25em 0.5em;
}

/* Switches */
:where(.threece-table--head) :where(thead th, thead td, tr > th) {
	border-bottom: 2px solid var(--threece-accent);
	font-weight: 700;
}

:where(.threece-table--firstcol) :where(tbody td:first-child) {
	font-weight: 700;
}

:where(.threece-table--zebra) :where(tbody tr:nth-child(odd)) {
	background: var(--threece-tint);
}

:where(.threece-table--hover) :where(tbody tr:hover) {
	background: color-mix(in srgb, var(--threece-accent) 16%, transparent);
}

:where(.threece-table--numbers) :where(td:not(:first-child), th:not(:first-child)) {
	font-variant-numeric: tabular-nums;
	text-align: end;
}

:where(.threece-table--dense) :where(th, td) {
	padding: 0.25em 0.5em;
}

/* Sorting */
.threece-table .threece-sort {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-align: inherit;
}

.threece-table .threece-sort::after {
	content: "\2195";
	display: inline-block;
	margin-inline-start: 0.35em;
	opacity: 0.45;
}

.threece-table [aria-sort="ascending"] .threece-sort::after {
	content: "\25B2";
	opacity: 1;
}

.threece-table [aria-sort="descending"] .threece-sort::after {
	content: "\25BC";
	opacity: 1;
}

.threece-table .threece-sort:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Cards on phones: each row a card, each cell with its column header. */
@media (max-width: 600px) {
	.threece-table--stack,
	.threece-table--stack :where(tbody, tr, td) {
		box-sizing: border-box;
		display: block;
		min-width: 0;
		width: 100%;
	}

	.threece-table--stack thead {
		display: none;
	}

	/* Rows of header cells only; a separate rule, so a browser without :has() still hides the thead above. */
	.threece-table--stack tr:not(:has(> td)) {
		display: none;
	}

	.threece-table--stack tr {
		border: 1px solid var(--threece-line);
		border-radius: 6px;
		margin-bottom: 0.75em;
		padding: 0.25em 0;
	}

	.threece-table--stack td[data-label] {
		display: grid;
		gap: 0.75em;
		grid-template-columns: minmax(6em, 40%) 1fr;
		text-align: start;
	}

	.threece-table--stack td[data-label]::before {
		content: attr(data-label);
		font-weight: 600;
	}
}

/* Footnotes: raised number in the text, list at the end of the post. */
:where(.threece-fn) {
	line-height: 0;
}

:where(.threece-fn) > a {
	padding: 0 0.15em;
	text-decoration: none;
}

:where(.threece-footnotes, .threece-fn) {
	--threece-line: color-mix(in srgb, currentColor 18%, transparent);
	--threece-soft: color-mix(in srgb, currentColor 8%, transparent);
}

:where(.threece-footnotes) {
	border-top: 1px solid var(--threece-line);
	font-size: 0.9em;
	margin-top: 2em;
	padding-top: 0.75em;
}

:where(.threece-footnotes) > ol {
	margin: 0;
	padding-inline-start: 1.5em;
}

:where(.threece-footnotes__back) {
	text-decoration: none;
}

:where(.threece-footnotes) li:target,
:where(.threece-fn) > a:target {
	background: var(--threece-soft);
}

/*
 * Style "Weich" (tab "Design"): no lines, soft surfaces, round corners, the accent on the active part.
 * Tables with a template from the table dialog keep their template; only "clean" tables follow the style.
 */
:where(.threece-style-weich) :where(.threece-accordion, .threece-tabs, .threece-item, .threece-spoiler, .threece-tab, .threece-notice) {
	--threece-radius: 12px;
}

:where(.threece-style-weich) :where(.threece-tabs__list) {
	background: var(--threece-soft);
	border-bottom: 0;
	border-radius: 999px;
	display: inline-flex;
	gap: 2px;
	max-width: 100%;
	padding: 4px;
}

:where(.threece-style-weich) .threece-tabs .threece-tabs__tab {
	border: 0;
	border-radius: 999px;
	padding: 0.45em 1.1em;
}

:where(.threece-style-weich) .threece-tabs .threece-tabs__tab:where([aria-selected="true"]) {
	background: var(--wp--preset--color--base, #fff);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
	color: var(--threece-ink);
}

:where(.threece-style-weich) :where(.threece-item, .threece-spoiler) {
	background: var(--threece-soft);
	border: 0;
}

:where(.threece-style-weich) :where(.threece-accordion) > :where(.threece-item + .threece-item) {
	margin-top: 0.5em;
}

:where(.threece-style-weich) :where(.threece-item[open], .threece-spoiler[open]) > :where(summary) {
	background: transparent;
	color: var(--threece-ink);
}

:where(.threece-style-weich) :where(.threece-item__content, .threece-spoiler__content) {
	padding-top: 0;
}

:where(.threece-style-weich) :where(.threece-notice) {
	border-inline-start-width: 0;
}

:where(.threece-style-weich) :where(.threece-button) {
	border-radius: 999px;
}

:where(.threece-style-weich) :where(.threece-toc) {
	background: var(--threece-etint);
	border: 0;
}

:where(.threece-style-weich) :where(.threece-toc__title) {
	color: var(--threece-ink);
}

:where(.threece-style-weich) :where(.threece-countdown) {
	background: var(--threece-soft, color-mix(in srgb, currentColor 5%, transparent));
	border: 0;
}

:where(.threece-style-weich) :where(.threece-countdown__value) {
	color: var(--threece-ink);
}

:where(.threece-style-weich) :where(.threece-video__frame) {
	border-radius: 16px;
}

:where(.threece-style-weich) :where(.threece-table-scroll:has(> .threece-table--style-clean, > .threece-table:not([class*="threece-table--style-"]))) {
	background: color-mix(in srgb, currentColor 5%, transparent);
	border-radius: 12px;
}

:where(.threece-style-weich) .threece-table:where(.threece-table--style-clean, :not([class*="threece-table--style-"])),
:where(.threece-style-weich) .threece-table:where(.threece-table--style-clean, :not([class*="threece-table--style-"])) :where(th, td, tbody tr) {
	border: 0;
}

:where(.threece-style-weich) :where(.threece-table--style-clean, .threece-table:not([class*="threece-table--style-"])) :where(thead th, thead td) {
	background: var(--threece-etint);
	border-bottom: 0;
	color: var(--threece-ink);
}

:where(.threece-style-weich) :where(.threece-table--style-clean, .threece-table:not([class*="threece-table--style-"])) :where(tbody tr:nth-child(even)) {
	background: var(--wp--preset--color--base, #fff);
}

/*
 * Style "Kontur": strong lines in the text colour, square corners, a hard offset shadow (mirrored right to left).
 */
:where(.threece-style-kontur) :where(.threece-accordion, .threece-tabs, .threece-item, .threece-spoiler, .threece-tab, .threece-notice) {
	--threece-line: color-mix(in srgb, currentColor 85%, transparent);
	--threece-radius: 0px;
}

:where(.threece-style-kontur) :where(.threece-tabs__list) {
	border-bottom: 2px solid currentColor;
	gap: 0;
}

:where(.threece-style-kontur) .threece-tabs .threece-tabs__tab {
	border: 0;
	border-radius: 0;
	font-size: 0.78em;
	letter-spacing: 0.06em;
	padding: 0.6em 1.1em;
	text-transform: uppercase;
}

:where(.threece-style-kontur) .threece-tabs .threece-tabs__tab:where([aria-selected="true"]) {
	background: var(--wp--preset--color--contrast, #1f2328);
	color: var(--wp--preset--color--base, #fff);
}

:where(.threece-style-kontur) :where(.threece-accordion) {
	border-top: 2px solid currentColor;
}

:where(.threece-style-kontur) :where(.threece-item, .threece-spoiler) {
	border: 0;
	border-bottom: 1px solid var(--threece-line);
}

:where(.threece-style-kontur) :where(.threece-spoiler) {
	border-top: 2px solid currentColor;
}

:where(.threece-style-kontur) :where(.threece-accordion) > :where(.threece-item + .threece-item) {
	margin-top: 0;
}

:where(.threece-style-kontur) :where(.threece-item__title, .threece-spoiler__title, .threece-item__content, .threece-spoiler__content) {
	padding-inline: 0;
}

:where(.threece-style-kontur) :where(.threece-item[open], .threece-spoiler[open]) > :where(summary) {
	background: transparent;
}

:where(.threece-style-kontur) :where(.threece-notice) {
	border: 2px solid currentColor;
	box-shadow: calc(5px * var(--threece-dir)) 5px 0 var(--threece-accent);
}

:where(.threece-style-kontur) :where(.threece-button) {
	border-color: var(--wp--preset--color--contrast, #1f2328);
	border-radius: 0;
	box-shadow: calc(4px * var(--threece-dir)) 4px 0 var(--wp--preset--color--contrast, #1f2328);
}

:where(.threece-style-kontur) :where(.threece-toc) {
	border: 2px solid currentColor;
	border-radius: 0;
}

:where(.threece-style-kontur) :where(.threece-toc__title) {
	font-size: 0.78em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:where(.threece-style-kontur) :where(.threece-toc__list li)::marker {
	color: var(--threece-ink);
	font-weight: 700;
}

:where(.threece-style-kontur) :where(.threece-countdown) {
	border: 2px solid currentColor;
	border-radius: 0;
}

:where(.threece-style-kontur) :where(.threece-countdown__value) {
	font-family: ui-monospace, Menlo, Consolas, monospace;
}

:where(.threece-style-kontur) :where(.threece-video__frame) {
	border-radius: 0;
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

:where(.threece-style-kontur) .threece-table:where(.threece-table--style-clean, :not([class*="threece-table--style-"])) {
	border: 0;
	border-top: 2px solid currentColor;
}

:where(.threece-style-kontur) .threece-table:where(.threece-table--style-clean, :not([class*="threece-table--style-"])) :where(th, td) {
	border: 0;
}

:where(.threece-style-kontur) .threece-table:where(.threece-table--style-clean, :not([class*="threece-table--style-"])) :where(tbody tr) {
	border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}

:where(.threece-style-kontur) .threece-table:where(.threece-table--style-clean, :not([class*="threece-table--style-"])) :where(thead th, thead td) {
	border-bottom: 2px solid currentColor;
	font-size: 0.8em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
