.sfb-terminology-switch {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .45rem .55rem;
	border: 1px solid rgba(0, 0, 0, .18);
	border-radius: .65rem;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .10);
	font-size: .875rem;
}

.sfb-terminology-switch__label {
	font-weight: 600;
}

.sfb-terminology-switch__choices {
	display: inline-flex;
	gap: .15rem;
	padding: .15rem;
	border-radius: .45rem;
	background: rgba(0, 0, 0, .06);
}

.sfb-terminology-switch button {
	appearance: none;
	border: 0;
	border-radius: .35rem;
	padding: .35rem .55rem;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	white-space: nowrap;
}

.sfb-terminology-switch button[aria-pressed="true"] {
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
	font-weight: 600;
}

.sfb-terminology-switch button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
	.sfb-terminology-switch {
		background: rgba(30, 30, 30, .96);
		border-color: rgba(255, 255, 255, .2);
	}
	.sfb-terminology-switch__choices {
		background: rgba(255, 255, 255, .1);
	}
	.sfb-terminology-switch button[aria-pressed="true"] {
		background: rgba(255, 255, 255, .14);
	}
}

@media (max-width: 680px) {
	.sfb-terminology-switch {
		left: .6rem;
		bottom: .6rem;
		max-width: calc(100vw - 1.2rem);
	}
	.sfb-terminology-switch__label {
		display: none;
	}
	.sfb-terminology-switch__choices {
		overflow-x: auto;
	}
}

/* 0.14.7: keep fixed terminology controls clear of the end of the page. */
body {
	padding-bottom: 5.5rem;
}

/* Make emphasis in running text clearer without changing table headings. */
main p strong,
main p b,
main li strong,
main li b,
article p strong,
article p b,
article li strong,
article li b {
	font-weight: 700;
}

@media (max-width: 680px) {
	body {
		padding-bottom: 5rem;
	}
}

/* Term pages: pages that explicitly use the concept. */
.sfb-term-usage__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sfb-term-usage__table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
	line-height: 1.4;
}

.sfb-term-usage__table th,
.sfb-term-usage__table td {
	border: 1px solid currentColor;
	padding: .5rem .65rem;
	text-align: left;
	vertical-align: top;
}

.sfb-term-usage__table thead th {
	font-weight: 700;
	border-bottom-width: 2px;
}

.sfb-term-usage__table th:first-child,
.sfb-term-usage__table td:first-child {
	width: 52%;
}

.sfb-term-usage__separator {
	padding: 0 .2em;
	opacity: .65;
}

@media (max-width: 720px) {
	.sfb-term-usage__table {
		min-width: 720px;
	}
}

/* Term pages render their visible H1 inside content/terms/*.md.
 * Hide the theme-generated post header/title/meta without touching the
 * Markdown heading. Support both classic and block-theme markup. */
.single-sfb_term .entry-header,
.single-sfb-term .entry-header,
.type-sfb_term .entry-header,
.type-sfb-term .entry-header,
.single-sfb_term .post-header,
.single-sfb-term .post-header,
.type-sfb_term .post-header,
.type-sfb-term .post-header,
.single-sfb_term .wp-block-post-title,
.single-sfb-term .wp-block-post-title,
.type-sfb_term .wp-block-post-title,
.type-sfb-term .wp-block-post-title,
.single-sfb_term .post-meta,
.single-sfb-term .post-meta,
.type-sfb_term .post-meta,
.type-sfb-term .post-meta,
.single-sfb_term .entry-meta,
.single-sfb-term .entry-meta,
.type-sfb_term .entry-meta,
.type-sfb-term .entry-meta,
.single-sfb_term .post-meta-wrapper,
.single-sfb-term .post-meta-wrapper,
.type-sfb_term .post-meta-wrapper,
.type-sfb-term .post-meta-wrapper,
.single-sfb_term .wp-block-post-author,
.single-sfb-term .wp-block-post-author,
.single-sfb_term .wp-block-post-author-name,
.single-sfb-term .wp-block-post-author-name,
.single-sfb_term .wp-block-post-date,
.single-sfb-term .wp-block-post-date,
.single-sfb_term .wp-block-post-terms,
.single-sfb-term .wp-block-post-terms {
	display: none !important;
}

/* Some block themes wrap the post title/meta in a Group. Modern browsers
 * support :has(); this removes that wrapper too, preventing literal remnants
 * such as "Written by in" from remaining after its dynamic fields are hidden. */
.single-sfb_term .wp-block-group:has(> .wp-block-post-title),
.single-sfb-term .wp-block-group:has(> .wp-block-post-title),
.single-sfb_term .wp-block-group:has(.wp-block-post-author-name),
.single-sfb-term .wp-block-group:has(.wp-block-post-author-name) {
	display: none !important;
}
