/*
Theme Name: Open Tech Ed
Author: Nathan Nagele
Author URI: https://www.nathannagele.com
Theme URI: https://www.openteched.com
Description: Block theme for Open Tech Ed, a free library of hands-on technology and engineering curriculum. Built on the Open Tech Ed design system: drafting-paper ground, near-black ink, one burnt-orange accent, Barlow and IBM Plex Mono, square corners. Organizes content into branches, units, and lessons, with a block for embedding HTML simulations.
Version: 0.6.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: openteched
Tags: full-site-editing, block-patterns, education
*/

/* Shorthands for design-system tokens. */
:root {
	--ote-paper: var(--wp--preset--color--paper);
	--ote-panel: var(--wp--preset--color--panel);
	--ote-ink: var(--wp--preset--color--ink);
	--ote-muted: var(--wp--preset--color--muted);
	--ote-accent: var(--wp--preset--color--accent);
	--ote-accent-strong: var(--wp--preset--color--accent-strong);
	--ote-border: var(--wp--preset--color--border);
	--ote-rule: var(--wp--preset--color--rule);
	--ote-sans: var(--wp--preset--font-family--sans);
	--ote-mono: var(--wp--preset--font-family--mono);
	/* Section divider colors: dark in both themes. */
	--ote-section-ground: #1c1a17;
	--ote-section-text: #f2efe6;
	--ote-section-muted: #a8a29a;
	--ote-section-accent: #e8853f;
}

/* ---------- Base ---------- */

/* Light, warm theme only: keep browser controls light even on dark-mode devices. */
:root {
	color-scheme: light;
}

body {
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--ote-accent);
	color: var(--wp--preset--color--on-accent);
}

:where(a, button, input, select, textarea, summary, iframe, .wp-element-button):focus-visible {
	outline: 3px solid var(--ote-accent);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.wp-element-button,
.wp-block-button__link {
	min-height: 44px;
}

/* Outline button: 2px ink outline, no fill. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ote-ink);
	border: 2px solid var(--ote-ink);
	padding: 10px 18px;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--ote-panel);
	color: var(--ote-ink);
}

/* Form fields: controls are outlined in ink. */
.wp-block-search__input,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
	border: 2px solid var(--ote-ink);
	border-radius: 0;
	background: var(--wp--preset--color--part);
	color: var(--ote-ink);
	font-family: var(--ote-sans);
	min-height: 44px;
}

.wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	gap: 8px;
}

/* ---------- Eyebrow, subtitle, note ---------- */

/* Uppercase mono label in accent, with a 2px rule running to the right. */
.is-style-eyebrow,
.ote-eyebrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-family: var(--ote-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ote-accent);
}

.is-style-eyebrow::after,
.ote-eyebrow::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--ote-rule);
}

.is-style-eyebrow + :where(h1, h2, h3, .wp-block-post-title, .wp-block-heading),
.ote-eyebrow + :where(h1, h2, h3, .wp-block-post-title, .wp-block-heading) {
	margin-top: 0.5rem;
}

/* Eyebrow on blocks that carry their own type styles (site title, post date). */
.wp-block-site-title.is-style-eyebrow,
.wp-block-post-date.is-style-eyebrow {
	font-family: var(--ote-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ote-accent);
}

.is-style-section .wp-block-site-title.is-style-eyebrow {
	color: var(--ote-section-accent);
}

/* One muted sentence under a title. */
.ote-subtitle,
.is-style-subtitle {
	color: var(--ote-muted);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.35;
	max-width: 40rem;
}

:where(h1, h2, h3, .wp-block-post-title, .wp-block-heading) + :where(.ote-subtitle, .is-style-subtitle) {
	margin-top: 0.5rem;
}

/* Teacher-voice takeaway in mono. */
.is-style-note {
	font-family: var(--ote-mono);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--ote-muted);
}

/* ---------- Header ---------- */

.ote-header {
	border-bottom: 2px solid var(--ote-rule);
}

.ote-brand .wp-block-site-logo img {
	display: block;
	width: auto;
	height: 30px;
}

.ote-brand .wp-block-site-title {
	margin: 0;
}

.ote-header .wp-block-navigation a {
	text-decoration: none;
}

.ote-header .wp-block-navigation a:hover {
	color: var(--ote-accent);
}

.ote-header-end {
	gap: 1.25rem;
}

/* ---------- Section divider (kept only for blocks saved with the old dark style) ---------- */

.is-style-section,
.is-style-blueprint {
	background: var(--ote-section-ground);
	color: var(--ote-section-text);
}

.is-style-section :where(h1, h2, h3, .wp-block-heading, .wp-block-site-tagline),
.is-style-blueprint :where(h1, h2, h3, .wp-block-heading, .wp-block-site-tagline) {
	color: var(--ote-section-text);
}

.is-style-section .is-style-eyebrow,
.is-style-section .ote-eyebrow,
.is-style-blueprint .is-style-eyebrow {
	color: var(--ote-section-accent);
}

.is-style-section .is-style-eyebrow::after,
.is-style-section .ote-eyebrow::after,
.is-style-blueprint .is-style-eyebrow::after {
	display: none;
}

.is-style-section :where(.ote-subtitle, .is-style-subtitle, .is-style-note),
.is-style-blueprint :where(.ote-subtitle, .is-style-subtitle, .is-style-note) {
	color: var(--ote-section-muted);
}

.is-style-section a:where(:not(.wp-element-button, .wp-block-button__link)) {
	color: var(--ote-section-accent);
}

.is-style-section .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--ote-section-text);
	border-color: var(--ote-section-text);
}

.is-style-section .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(242, 239, 230, 0.08);
}

/* ---------- Panel block style (light raised surface) ---------- */

.is-style-panel {
	background: var(--ote-panel);
	border: 1px solid var(--ote-border);
	padding: var(--wp--preset--spacing--40);
}

/* ---------- Front page hero ---------- */

.ote-hero {
	border-bottom: 2px solid var(--ote-rule);
}

.ote-hero .ote-hero__name {
	margin: 0;
}

.ote-hero__title {
	font-family: var(--ote-sans);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--ote-ink);
	max-width: 16ch;
	margin-block: 0.75rem 0;
	text-wrap: balance;
}

.ote-hero .ote-subtitle {
	margin-top: 1.25rem;
	max-width: 36rem;
}

/* The cover's short accent rule under the subtitle. */
.ote-hero .ote-subtitle::after {
	content: "";
	display: block;
	width: 140px;
	height: 3px;
	margin-top: 1.75rem;
	background: var(--ote-accent);
}

.ote-hero .wp-block-buttons {
	margin-top: 2rem;
}

/* ---------- Breadcrumbs (as an eyebrow) ---------- */

.ote-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.6rem;
}

.ote-breadcrumbs li + li::before {
	content: "·";
	content: "·" / "";
	margin-right: 0.6rem;
}

.ote-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.ote-breadcrumbs a:hover {
	color: var(--ote-accent-strong);
	text-decoration: underline;
}

.ote-breadcrumbs + .wp-block-post-title {
	margin-top: 0.5rem;
}

/* ---------- Curriculum details ---------- */

.ote-title-block {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	border-top: 1px solid var(--ote-border);
	border-left: 1px solid var(--ote-border);
	background: var(--ote-panel);
}

.ote-title-block__cell {
	flex: 1 1 9rem;
	padding: 0.6rem 0.9rem 0.7rem;
	border-right: 1px solid var(--ote-border);
	border-bottom: 1px solid var(--ote-border);
}

.ote-title-block__cell--wide {
	flex-basis: 100%;
}

.ote-title-block dt {
	margin: 0 0 0.2rem;
	font-family: var(--ote-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ote-muted);
}

.ote-title-block dd {
	margin: 0;
	font-weight: 600;
	line-height: 1.35;
}

.ote-title-block dd a {
	text-decoration: none;
}

.ote-title-block dd a:hover {
	text-decoration: underline;
}

/* ---------- Lesson content ---------- */

.ote-lesson-content > h2 {
	margin-block-start: 2.75rem;
	padding-top: 0.75rem;
	border-top: 2px solid var(--ote-rule);
}

.ote-callout-safety {
	background: var(--ote-panel);
	border: 1px solid var(--ote-border);
	border-top: 4px solid var(--ote-ink);
	padding: 1rem 1.25rem 1.25rem;
}

.ote-callout-safety > :first-child {
	margin-top: 0;
}

.ote-lesson-content > .ote-callout-safety > h2,
.ote-callout-safety > h2 {
	border-top: 0;
	padding-top: 0;
	margin-top: 0.4rem;
}

/* ---------- Curriculum listing ---------- */

.ote-children {
	margin-block-start: var(--wp--preset--spacing--60);
}

.ote-children__heading {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--medium);
}

.ote-num {
	font-family: var(--ote-mono);
	font-variant-numeric: tabular-nums;
	color: var(--ote-accent);
}

/* Table layout */
.ote-parts-list__scroll {
	overflow-x: auto;
}

.ote-parts-list {
	width: 100%;
	border-collapse: collapse;
	border-top: 2px solid var(--ote-ink);
}

.ote-parts-list th {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--ote-border);
	text-align: left;
	font-family: var(--ote-mono);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ote-muted);
}

.ote-parts-list td {
	padding: 0.85rem 0.75rem;
	border-bottom: 1px solid var(--ote-border);
	vertical-align: top;
}

.ote-parts-list__num {
	width: 3.5rem;
	font-family: var(--ote-mono);
	font-variant-numeric: tabular-nums;
	color: var(--ote-accent);
}

.ote-parts-list__item a {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--ote-ink);
	text-decoration: none;
}

.ote-parts-list__item a:hover {
	color: var(--ote-accent);
	text-decoration: underline;
}

.ote-parts-list__summary {
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--ote-muted);
}

.ote-parts-list__meta {
	white-space: nowrap;
	font-family: var(--ote-mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--ote-muted);
}

/* Column layout (the design system's category grid) */
.ote-sheets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 2rem 1.5rem;
}

.ote-sheet {
	position: relative;
	border-top: 4px solid var(--ote-ink);
	padding-top: 1rem;
}

.ote-sheet__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
}

.ote-sheet__title .ote-num {
	margin-right: 0.5rem;
	font-size: 0.9em;
}

.ote-sheet__title a {
	color: var(--ote-ink);
	text-decoration: none;
}

.ote-sheet__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ote-sheet__title a:focus-visible {
	outline: none;
}

.ote-sheet:focus-within {
	outline: 3px solid var(--ote-accent);
	outline-offset: 4px;
}

.ote-sheet:hover {
	border-top-color: var(--ote-accent);
}

.ote-sheet:hover .ote-sheet__title a {
	color: var(--ote-accent);
}

.ote-sheet__summary {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: var(--ote-muted);
}

.ote-sheet__meta {
	margin: 0.75rem 0 0;
	font-family: var(--ote-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ote-muted);
}

/* Compact list (sidebars) */
.ote-children--compact {
	margin-block-start: 0;
}

.ote-compact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--ote-ink);
}

.ote-compact-list a {
	display: flex;
	gap: 0.6rem;
	padding: 0.55rem 0.25rem;
	border-bottom: 1px solid var(--ote-border);
	color: var(--ote-ink);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
}

.ote-compact-list a:hover {
	color: var(--ote-accent);
}

.ote-compact-list__num {
	min-width: 2.25rem;
	font-family: var(--ote-mono);
	font-variant-numeric: tabular-nums;
	color: var(--ote-accent);
}

.ote-compact-list .is-current a {
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--ote-accent);
	padding-left: 0.75rem;
}

/* ---------- Previous / next ---------- */

.ote-sequence {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-block-start: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 2px solid var(--ote-rule);
}

.ote-sequence__link {
	display: block;
	padding: 0.75rem 1rem;
	border: 2px solid var(--ote-ink);
	color: var(--ote-ink);
	text-decoration: none;
}

.ote-sequence__link:hover {
	background: var(--ote-panel);
	color: var(--ote-ink);
}

.ote-sequence__link--next {
	grid-column: 2;
	text-align: right;
}

.ote-sequence__dir {
	display: block;
	font-family: var(--ote-mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ote-accent);
}

.ote-sequence__title {
	font-weight: 600;
}

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

	.ote-sequence__link--next {
		grid-column: 1;
	}
}

/* ---------- Simulation embed ---------- */

.ote-sim {
	margin-block: var(--wp--preset--spacing--50);
	margin-inline: 0;
	border: 1px solid var(--ote-border);
	background: var(--ote-panel);
}

.ote-sim__frame {
	height: min(var(--ote-sim-height, 640px), 85vh);
	background: var(--wp--preset--color--part);
}

.ote-sim__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ote-sim__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.55rem 0.9rem;
	border-top: 1px solid var(--ote-border);
	font-family: var(--ote-mono);
	font-size: 0.8125rem;
	color: var(--ote-muted);
}

.ote-sim__title {
	font-family: var(--ote-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--ote-ink);
}

/* ---------- Sidebar template ---------- */

@media (min-width: 782px) {
	.ote-with-sidebar > .wp-block-column:last-child {
		border-left: 1px solid var(--ote-border);
		padding-left: var(--wp--preset--spacing--40);
	}

	.ote-sidebar {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem);
	}
}

.ote-sidebar {
	display: grid;
	gap: var(--wp--preset--spacing--50);
}

.ote-sidebar > * {
	margin: 0;
}

.ote-sidebar .ote-children__heading {
	font-size: var(--wp--preset--font-size--base);
}

/* ---------- Footer ---------- */

.ote-footer {
	border-top: 2px solid var(--ote-rule);
	font-family: var(--ote-mono);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
	color: var(--ote-muted);
}

.ote-footer p {
	margin: 0;
}

.ote-footer a {
	color: var(--ote-accent);
}

.ote-footer .wp-block-site-logo img {
	display: block;
	width: auto;
	height: 14px;
}

.ote-footer__fine {
	max-width: 52rem;
}

/* ---------- Curriculum listing: icon grid ---------- */

.ote-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
	gap: 0.75rem;
}

.ote-tile__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	height: 100%;
	box-sizing: border-box;
	padding: 1.25rem 1rem 1rem;
	background: var(--ote-panel);
	border: 1px solid var(--ote-border);
	color: var(--ote-ink);
	text-decoration: none;
}

.ote-tile__link:hover {
	border-color: var(--ote-ink);
	color: var(--ote-ink);
}

.ote-tile__link:hover .ote-tile__name {
	color: var(--ote-accent);
}

.ote-tile__icon {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.ote-tile__icon--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border: 2px solid var(--ote-ink);
	font-family: var(--ote-mono);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ote-ink);
}

.ote-tile__name {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.25;
}

.ote-tile__meta {
	margin-top: auto;
	font-family: var(--ote-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ote-muted);
}

/* ---------- Curriculum listing: outline ---------- */

.ote-outline {
	border-top: 2px solid var(--ote-ink);
}

.ote-outline__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ote-outline__list .ote-outline__list {
	margin-left: 1.25rem;
	padding-left: 1rem;
	border-left: 1px solid var(--ote-border);
}

.ote-outline__row {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.6rem;
	padding: 0.55rem 0;
}

.ote-outline__row a {
	color: var(--ote-ink);
	font-weight: 600;
	text-decoration: none;
}

.ote-outline__row a:hover {
	color: var(--ote-accent);
	text-decoration: underline;
}

.ote-outline__list--1 > li > .ote-outline__row a,
.ote-outline__list--1 > li > details > summary .ote-outline__row a {
	font-size: 1.125rem;
}

.ote-outline__list:not(.ote-outline__list--1) .ote-outline__row a {
	font-weight: 400;
}

.ote-outline__type {
	font-family: var(--ote-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ote-muted);
}

.ote-outline__list--1 > li {
	border-bottom: 1px solid var(--ote-border);
}

.ote-outline summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.ote-outline summary::-webkit-details-marker {
	display: none;
}

/* Plus/minus in mono, like a drawing callout. */
.ote-outline summary::before {
	content: "+";
	flex: none;
	width: 1rem;
	font-family: var(--ote-mono);
	color: var(--ote-accent);
}

.ote-outline details[open] > summary::before {
	content: "−";
}

.ote-outline__leaf {
	padding-left: 1.5rem;
}

/* ---------- Table of contents ---------- */

.ote-toc {
	padding: 1.25rem 1.5rem 0.75rem;
	background: var(--ote-panel);
	border: 1px solid var(--ote-border);
}

.ote-toc__label {
	margin: 0;
}

.ote-toc__heading {
	margin: 0.4rem 0 1rem;
	font-size: var(--wp--preset--font-size--medium);
}

.ote-toc__heading a {
	color: var(--ote-ink);
	text-decoration: none;
}

.ote-toc__heading a:hover {
	color: var(--ote-accent);
}

.ote-toc .ote-outline__list--1 > li:last-child {
	border-bottom: 0;
}

.ote-outline .is-current > .ote-outline__row > a,
.ote-outline .is-current > details > summary .ote-outline__row > a {
	color: var(--ote-accent);
}

/* ---------- Content structure styles (from the design system) ---------- */

/* Steps: numbered 01, 02 in mono accent. */
ol.is-style-steps {
	list-style: none;
	padding-left: 0;
	counter-reset: ote-step;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

ol.is-style-steps > li {
	counter-increment: ote-step;
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	gap: 0 0.75rem;
	font-size: 1.125rem;
	line-height: 1.35;
}

ol.is-style-steps > li::before {
	content: counter(ote-step, decimal-leading-zero);
	font-family: var(--ote-mono);
	font-variant-numeric: tabular-nums;
	color: var(--ote-accent);
}

/* Checklist: two columns of numbered rules. */
.is-style-checklist {
	list-style: none;
	padding-left: 0;
	counter-reset: ote-rule;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 0.6rem 3rem;
}

.is-style-checklist > li {
	counter-increment: ote-rule;
	display: flex;
	gap: 0.85rem;
	font-size: var(--wp--preset--font-size--small);
}

.is-style-checklist > li::before {
	content: counter(ote-rule, decimal-leading-zero);
	flex: none;
	font-family: var(--ote-mono);
	font-variant-numeric: tabular-nums;
	color: var(--ote-accent);
}

/* Category grid: ruled columns. */
.wp-block-columns.is-style-category-grid > .wp-block-column {
	border-top: 4px solid var(--ote-ink);
	padding-top: 1rem;
}

.wp-block-columns.is-style-category-grid > .wp-block-column.ote-cat--note {
	border-top-color: var(--ote-accent);
}

.wp-block-columns.is-style-category-grid > .ote-cat--note p {
	font-family: var(--ote-mono);
	font-size: 0.8125rem;
	color: var(--ote-accent);
}

.wp-block-columns.is-style-category-grid h3 {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
}

.wp-block-columns.is-style-category-grid p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: var(--ote-muted);
}

/* DO / DON'T badges. Always ✓ or ✗ plus the word. */
.is-style-badge-do,
.is-style-badge-dont {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	padding: 6px 11px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.is-style-badge-do {
	background: var(--wp--preset--color--good);
}

.is-style-badge-dont {
	background: var(--wp--preset--color--bad);
}

/* Vocabulary strip. */
.ote-vocab {
	border-top: 2px solid var(--ote-ink);
	padding-top: 1rem;
}

.ote-vocab__term {
	margin: 0;
	font-family: var(--ote-mono);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ote-accent);
}

.ote-vocab .wp-block-column > .ote-vocab__term + p {
	margin-top: 0.25rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
}

/* Definition callout. */
.ote-definition__label {
	margin: 0;
	font-family: var(--ote-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ote-muted);
}

.ote-definition__text {
	margin-top: 0.75rem;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

/* ---------- Editor-only notices ---------- */

.ote-editor-notice {
	padding: 1rem;
	border: 1px dashed var(--ote-muted);
	background: var(--ote-panel);
	color: var(--ote-muted);
	font-family: var(--ote-mono);
	font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
