/* ==========================================================================
   Easy Drawing Tutorials — main stylesheet
   Design system: tokens, typography, components, layouts, utilities.
   No external dependencies. No remote fonts. No image files. Mobile-first.

   Look: an open sketchbook — off-white paper with a faint dot grid, graphite
   ink, pencil-yellow marker strokes, calm blue links, coral and sage as minor
   accents. Textures (dot grid, ruled lines, spiral binding, torn edge,
   hand-drawn underlines) are CSS gradients and inline SVG data URIs only.

   Contrast reference (WCAG AA, measured):
     ink         #2f3338 on paper #fbf7ee ............. 11.9:1
     ink         #2f3338 on pencil #f2b632 ............ 7.0:1  (buttons)
     ink-soft    #4a5058 on paper / paper-deep ........ 7.6:1 / 6.9:1
     ink-muted   #5c636d on paper / paper-deep ........ 5.7:1 / 5.2:1
     blue        #2f5f9e on paper / surface ........... 6.0:1 / 6.4:1
     blue        #2f5f9e on paper-deep / marker-soft .. 5.5:1 / 5.7:1
     blue-deep   #1f4577 on paper ..................... 9.0:1
     coral-deep  #a5432a on paper / coral-soft ........ 5.7:1 / 5.3:1
     sage-deep   #3c5a41 on sage-soft #eaf1e6 ......... 6.7:1
     pencil-ink  #6b4a00 on marker-soft #fdf1cc ....... 7.2:1
     paper       #fbf7ee on ink #2f3338 ............... 11.9:1 (closing panel)
     pencil      #f2b632 on ink #2f3338 ............... 7.0:1
     line-strong #7d848d on surface (field borders) ... 3.7:1  (non-text, 3:1)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* Colour — raw palette */
	--edt-pencil: #f2b632;
	--edt-pencil-light: #f9dc8c;
	--edt-pencil-ink: #6b4a00;
	--edt-marker-soft: #fdf1cc;
	--edt-blue: #2f5f9e;
	--edt-blue-deep: #1f4577;
	--edt-blue-soft: #e9f0f9;
	--edt-guide: #a9c3e4;
	--edt-graphite: #7d848d;
	--edt-coral: #e07a5f;
	--edt-coral-deep: #a5432a;
	--edt-coral-soft: #fcece6;
	--edt-sage: #7f9c82;
	--edt-sage-deep: #3c5a41;
	--edt-sage-soft: #eaf1e6;

	/* Colour — roles */
	--edt-paper: #fbf7ee;
	--edt-paper-deep: #f3ecdc;
	--edt-surface: #fffdf8;
	--edt-ink: #2f3338;
	--edt-ink-soft: #4a5058;
	--edt-ink-muted: #5c636d;
	--edt-line: #e4dccb;
	--edt-line-strong: var(--edt-graphite);
	--edt-accent: var(--edt-blue);
	--edt-accent-hover: var(--edt-blue-deep);
	--edt-accent-soft: var(--edt-blue-soft);
	--edt-second: var(--edt-sage-deep);
	--edt-second-soft: var(--edt-sage-soft);
	--edt-focus: var(--edt-blue-deep);

	/* Texture — a wobbly marker stroke, used under titles */
	--edt-squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7c9-5 15 4 24 0s14-4 23 0 15 4 24-1 16-2 22 1 14 2 21-2' fill='none' stroke='%23f2b632' stroke-width='4.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");

	/* Texture — the wire loops of a spiral-bound sketchbook */
	--edt-spiral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Ccircle cx='11' cy='4.5' r='2.6' fill='%232f3338' fill-opacity='.28'/%3E%3Crect x='8.6' y='3' width='4.8' height='13.5' rx='2.4' fill='%23fffdf8' stroke='%237d848d' stroke-width='1.5'/%3E%3C/svg%3E");

	/* Texture — the torn edge of a page pulled off the pad */
	--edt-torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0h160v6l-7 3-9-4-6 5-10-6-8 4-7-3-9 6-8-5-11 3-6-4-9 5-10-4-7 5-9-6-8 3-7 4-9-5-10 2z' fill='%23fbf7ee'/%3E%3C/svg%3E");

	/* Texture — the dot grid of sketchbook paper */
	--edt-dots: radial-gradient(circle, rgba(47, 95, 158, 0.16) 1px, transparent 1.4px);

	/* Typography — system stacks, nothing to download */
	--edt-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--edt-font-head: "Avenir Next", Seravek, "Gill Sans Nova", "Segoe UI Variable Display", "Segoe UI", Ubuntu, Calibri, "Helvetica Neue", Arial, sans-serif;
	--edt-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--edt-text-xs: 0.8125rem;
	--edt-text-sm: 0.875rem;
	--edt-text-base: 1rem;
	--edt-text-md: 1.0625rem;
	--edt-text-lg: 1.1875rem;
	--edt-text-xl: 1.375rem;
	--edt-text-2xl: 1.625rem;
	--edt-text-3xl: 2rem;
	--edt-text-4xl: 2.5rem;

	--edt-leading-tight: 1.2;
	--edt-leading-snug: 1.35;
	--edt-leading-normal: 1.65;
	--edt-leading-relaxed: 1.75;

	/* Spacing — 4px scale */
	--edt-s1: 0.25rem;
	--edt-s2: 0.5rem;
	--edt-s3: 0.75rem;
	--edt-s4: 1rem;
	--edt-s5: 1.5rem;
	--edt-s6: 2rem;
	--edt-s7: 2.5rem;
	--edt-s8: 3rem;
	--edt-s9: 4rem;
	--edt-s10: 5rem;

	/* Shape and shadow */
	--edt-radius-sm: 5px;
	--edt-radius: 8px;
	--edt-radius-lg: 14px;
	--edt-shadow-sm: 0 1px 2px rgba(47, 51, 56, 0.1), 0 2px 6px rgba(47, 51, 56, 0.05);
	--edt-shadow: 0 2px 4px rgba(47, 51, 56, 0.08), 0 10px 22px rgba(47, 51, 56, 0.1);
	--edt-shadow-lg: 0 14px 34px rgba(47, 51, 56, 0.16);

	/* Layout */
	--edt-container: 1180px;
	--edt-container-narrow: 780px;
	--edt-measure: 68ch;
	--edt-gutter: var(--edt-s4);

	color-scheme: light;
}

@media (min-width: 48em) {
	:root {
		--edt-gutter: var(--edt-s6);
	}
}

/* --------------------------------------------------------------------------
   2. Light reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.edt-card:hover,
	.edt-topic:hover {
		transform: none !important;
	}
}

body {
	margin: 0;
	background-color: var(--edt-paper);
	/* Sketchbook dot grid. */
	background-image: var(--edt-dots);
	background-size: 22px 22px;
	color: var(--edt-ink);
	font-family: var(--edt-font-body);
	font-size: var(--edt-text-md);
	line-height: var(--edt-leading-normal);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

figure {
	margin: 0;
}

/* Construction line */
hr {
	border: 0;
	border-top: 2px dashed var(--edt-guide);
	margin: var(--edt-s7) 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--edt-font-head);
	color: var(--edt-ink);
	line-height: var(--edt-leading-tight);
	margin: 0 0 var(--edt-s4);
	font-weight: 700;
	letter-spacing: -0.015em;
	overflow-wrap: break-word;
}

h1 {
	font-size: clamp(1.875rem, 1.35rem + 2.2vw, var(--edt-text-4xl));
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, var(--edt-text-3xl));
}

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, var(--edt-text-xl));
}

h4 {
	font-size: var(--edt-text-lg);
}

h5,
h6 {
	font-size: var(--edt-text-base);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--edt-ink-soft);
}

p {
	margin: 0 0 var(--edt-s4);
}

a {
	color: var(--edt-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--edt-accent-hover);
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: var(--edt-text-sm);
}

mark {
	background: var(--edt-pencil-light);
	color: var(--edt-ink);
	padding: 0 0.15em;
}

/* Highlighter stroke behind a few words of a heading. The gradient sits low
   on the line so it reads as a marker pass, and it follows line breaks. */
.edt-marker {
	background-image: linear-gradient(transparent 58%, var(--edt-pencil) 58%, var(--edt-pencil) 90%, transparent 90%);
	background-repeat: no-repeat;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding-inline: 0.12em;
	margin-inline: -0.12em;
	border-radius: 3px;
}

code,
kbd,
samp {
	font-family: var(--edt-font-mono);
	font-size: 0.9em;
	background: var(--edt-paper-deep);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius-sm);
	padding: 0.1em 0.35em;
}

pre {
	font-family: var(--edt-font-mono);
	font-size: var(--edt-text-sm);
	background: var(--edt-paper-deep);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius);
	padding: var(--edt-s4);
	overflow-x: auto;
	line-height: 1.5;
}

pre code {
	background: none;
	border: 0;
	padding: 0;
}

blockquote {
	margin: var(--edt-s6) 0;
	padding: var(--edt-s2) 0 var(--edt-s2) var(--edt-s5);
	border-left: 4px solid var(--edt-guide);
	font-family: var(--edt-font-head);
	font-size: var(--edt-text-lg);
	color: var(--edt-ink-soft);
}

blockquote p:last-child {
	margin-bottom: 0;
}

blockquote cite {
	display: block;
	margin-top: var(--edt-s2);
	font-family: var(--edt-font-body);
	font-size: var(--edt-text-sm);
	font-style: normal;
	color: var(--edt-ink-muted);
}

/* --------------------------------------------------------------------------
   4. Accessibility
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--edt-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

/* The main landmark only receives focus from the skip link. */
.edt-site-main:focus {
	outline: 0;
}

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

.screen-reader-text:focus {
	background-color: var(--edt-ink);
	border-radius: var(--edt-radius-sm);
	box-shadow: var(--edt-shadow);
	clip-path: none;
	color: var(--edt-surface);
	display: block;
	font-size: var(--edt-text-base);
	font-weight: 700;
	height: auto;
	left: var(--edt-s4);
	line-height: normal;
	outline-color: var(--edt-pencil);
	padding: var(--edt-s3) var(--edt-s4);
	text-decoration: none;
	top: var(--edt-s4);
	width: auto;
	z-index: 100000;
}

.edt-skip-link:focus {
	position: fixed;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

.edt-container {
	width: 100%;
	max-width: var(--edt-container);
	margin-inline: auto;
	padding-inline: var(--edt-gutter);
}

.edt-container--narrow {
	max-width: var(--edt-container-narrow);
}

.edt-site-main {
	flex: 1 0 auto;
	padding-block: var(--edt-s7) var(--edt-s9);
}

/* Used on the homepage, where the hero sits flush against the header. */
.edt-site-main--flush {
	padding-top: 0;
}

/* minmax(0, 1fr) lets the column shrink below the intrinsic width of wide
   children (tables, long words) so they scroll inside it instead of pushing
   the page sideways. */
.edt-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s7);
}

.edt-layout > * {
	min-width: 0;
}

@media (min-width: 62em) {
	.edt-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 20rem;
		gap: var(--edt-s8);
		align-items: start;
	}
}

.edt-stack > * + * {
	margin-top: var(--edt-s4);
}

.edt-section {
	margin-block: var(--edt-s9);
}

.edt-section:first-child {
	margin-top: var(--edt-s8);
}

.edt-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--edt-s2) var(--edt-s4);
	margin-bottom: var(--edt-s6);
	padding-bottom: var(--edt-s4);
	border-bottom: 2px dashed var(--edt-line);
}

.edt-section__title {
	position: relative;
	margin: 0;
	padding-bottom: var(--edt-s3);
	font-size: var(--edt-text-2xl);
}

/* A hand-drawn marker squiggle under every section title. */
.edt-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.1rem;
	width: 5rem;
	height: 0.6rem;
	background: var(--edt-squiggle) left center / 100% 100% no-repeat;
}

/* Always on its own line under the title and the "View all" link. */
.edt-section__description {
	flex: 0 0 100%;
	order: 3;
	margin: 0;
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-base);
}

.edt-section__link {
	font-size: var(--edt-text-sm);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.edt-section__link:hover {
	text-decoration: underline;
}

.edt-section__link::after {
	content: " \2192";
}

/* --------------------------------------------------------------------------
   6. Header and navigation
   -------------------------------------------------------------------------- */

.edt-site-header {
	position: relative;
	z-index: 50;
	background: var(--edt-surface);
	border-bottom: 2px solid var(--edt-ink);
}

/* Spiral binding: wire loops that straddle the bottom edge of the header. */
.edt-site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -10px;
	height: 18px;
	background: var(--edt-spiral) center top / 22px 18px repeat-x;
	pointer-events: none;
}

.edt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--edt-s4);
	min-height: 4.25rem;
	min-width: 0;
}

.edt-branding {
	display: flex;
	align-items: center;
	gap: var(--edt-s3);
	min-width: 0;
}

.edt-branding__mark {
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
}

.edt-branding__text {
	min-width: 0;
}

.edt-branding__title {
	font-family: var(--edt-font-head);
	font-size: var(--edt-text-xl);
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.02em;
}

.edt-branding__title a {
	color: var(--edt-ink);
	text-decoration: none;
}

.edt-branding__title a:hover {
	color: var(--edt-accent);
}

.edt-branding__tagline {
	margin: 0.2rem 0 0;
	font-size: var(--edt-text-xs);
	color: var(--edt-ink-muted);
	line-height: 1.3;
}

/* On the narrowest phones the tagline would wrap under the menu button. */
@media (max-width: 29.99em) {
	.edt-branding__tagline {
		display: none;
	}
}

.custom-logo-link img {
	max-height: 3rem;
	width: auto;
}

/* Mobile menu button */
.edt-menu-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: var(--edt-s2);
	background: var(--edt-surface);
	border: 1.5px solid var(--edt-line-strong);
	border-radius: var(--edt-radius-sm);
	box-shadow: none;
	color: var(--edt-ink);
	cursor: pointer;
	font: inherit;
	font-size: var(--edt-text-sm);
	font-weight: 700;
	min-height: 2.75rem;
	padding: var(--edt-s2) var(--edt-s3);
}

.edt-menu-toggle:hover {
	background: var(--edt-marker-soft);
	border-color: var(--edt-ink);
	box-shadow: none;
	color: var(--edt-ink);
	transform: none;
}

.edt-menu-toggle__bars {
	display: block;
	position: relative;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
}

.edt-menu-toggle__bars::before,
.edt-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.edt-menu-toggle__bars::before {
	top: -6px;
}

.edt-menu-toggle__bars::after {
	top: 6px;
}

.edt-header__panel {
	display: none;
	padding-bottom: var(--edt-s5);
}

.edt-header__panel.is-open {
	display: block;
}

.edt-nav__list,
.edt-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.edt-nav__list li {
	position: relative;
}

.edt-nav__list a {
	display: block;
	padding: var(--edt-s3) var(--edt-s1);
	border-bottom: 1px dashed var(--edt-line);
	color: var(--edt-ink);
	font-size: var(--edt-text-base);
	font-weight: 600;
	text-decoration: none;
}

.edt-nav__list a:hover {
	color: var(--edt-accent);
}

.edt-nav__list .sub-menu a {
	padding-left: var(--edt-s5);
	font-weight: 500;
}

.edt-nav .current-menu-item > a,
.edt-nav .current-menu-ancestor > a,
.edt-nav .current_page_item > a {
	color: var(--edt-accent);
}

.edt-header__search {
	margin-top: var(--edt-s4);
}

/* Shown only to users who can edit menus, when no menu is assigned to the
   primary location. Visitors never see this block. */
.edt-nav--empty {
	margin: 0;
	padding: var(--edt-s3) 0;
	font-size: var(--edt-text-sm);
}

@media (min-width: 62em) {
	.edt-menu-toggle {
		display: none;
	}

	/* Two rows: brand and search on the first, the full menu on the second.
	   Eight menu items fit on one line from about 1000px up; if a longer menu
	   is assigned, the list wraps instead of overflowing the page. */
	.edt-site-header .edt-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: var(--edt-s5);
	}

	.edt-header__inner {
		flex: 1 1 0;
		min-height: 4.75rem;
	}

	/* The panel wrapper dissolves so that its two children (menu and search)
	   can be placed independently in the header's flex layout. */
	.edt-header__panel,
	.edt-header__panel.is-open {
		display: contents;
	}

	.edt-header__search {
		order: 2;
		flex: 0 1 16rem;
		min-width: 11rem;
		margin-top: 0;
	}

	.edt-nav {
		order: 3;
		flex: 1 0 100%;
		min-width: 0;
		border-top: 1px dashed var(--edt-line);
		padding-block: var(--edt-s2);
	}

	.edt-nav__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--edt-s1);
		margin-inline: calc(-1 * var(--edt-s3));
	}

	.edt-nav__list a {
		border-bottom: 0;
		border-radius: var(--edt-radius-sm);
		padding: var(--edt-s2) var(--edt-s3);
		font-size: var(--edt-text-sm);
		white-space: nowrap;
	}

	.edt-nav__list a:hover {
		background: var(--edt-marker-soft);
		color: var(--edt-ink);
	}

	.edt-nav .current-menu-item > a,
	.edt-nav .current-menu-ancestor > a,
	.edt-nav .current_page_item > a {
		background: var(--edt-marker-soft);
		color: var(--edt-ink);
		box-shadow: inset 0 -3px 0 var(--edt-pencil);
	}

	/* Submenus (one level) */
	.edt-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 13rem;
		background: var(--edt-surface);
		border: 1px solid var(--edt-line);
		border-radius: var(--edt-radius);
		box-shadow: var(--edt-shadow-lg);
		padding: var(--edt-s2);
		z-index: 60;
	}

	.edt-nav__list li:hover > .sub-menu,
	.edt-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	.edt-nav__list .sub-menu a {
		padding-left: var(--edt-s3);
		white-space: normal;
	}
}

@media (min-width: 75em) {
	.edt-nav__list a {
		font-size: 0.9375rem;
		padding-inline: var(--edt-s4);
	}

	.edt-nav__list {
		margin-inline: calc(-1 * var(--edt-s4));
	}
}

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */

label {
	display: block;
	font-size: var(--edt-text-sm);
	font-weight: 700;
	margin-bottom: var(--edt-s2);
}

.edt-field {
	margin-bottom: var(--edt-s5);
}

.edt-field__hint {
	display: block;
	margin-top: var(--edt-s2);
	font-size: var(--edt-text-xs);
	font-weight: 400;
	color: var(--edt-ink-muted);
}

.edt-required {
	color: var(--edt-accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	background: var(--edt-surface);
	border: 1.5px solid var(--edt-line-strong);
	border-radius: var(--edt-radius-sm);
	color: var(--edt-ink);
	font: inherit;
	font-size: var(--edt-text-base);
	padding: var(--edt-s3);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--edt-focus);
}

textarea {
	min-height: 11rem;
	resize: vertical;
	line-height: var(--edt-leading-normal);
}

input::placeholder,
textarea::placeholder {
	color: var(--edt-ink-muted);
	opacity: 1;
}

/* Search field */
.edt-search-form {
	display: flex;
	gap: var(--edt-s2);
}

.edt-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
}

.edt-search-form input[type="search"] {
	min-height: 2.75rem;
	padding-block: var(--edt-s2);
}

.edt-search-form__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	background: var(--edt-pencil);
	border: 1.5px solid var(--edt-ink);
	border-radius: var(--edt-radius-sm);
	box-shadow: none;
	color: var(--edt-ink);
	cursor: pointer;
	padding: 0 var(--edt-s3);
}

.edt-search-form__submit:hover {
	background: var(--edt-pencil-light);
	border-color: var(--edt-ink);
	box-shadow: none;
	color: var(--edt-ink);
	transform: none;
}

.edt-search-form__submit .edt-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.edt-button,
.edt-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--edt-s2);
	/* Pencil-yellow fill with graphite text (7.0:1) and a drawn outline. */
	background: var(--edt-pencil);
	border: 1.5px solid var(--edt-ink);
	border-radius: var(--edt-radius);
	box-shadow: 0 2px 0 var(--edt-ink);
	color: var(--edt-ink);
	cursor: pointer;
	font-family: var(--edt-font-body);
	font-size: var(--edt-text-base);
	font-weight: 700;
	line-height: 1.3;
	min-height: 2.875rem;
	padding: var(--edt-s3) var(--edt-s5);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.edt-button:hover,
.edt-button:focus,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	background: var(--edt-pencil-light);
	border-color: var(--edt-ink);
	box-shadow: 0 1px 0 var(--edt-ink);
	color: var(--edt-ink);
	transform: translateY(1px);
}

.edt-button--secondary {
	background: var(--edt-surface);
	color: var(--edt-ink);
}

.edt-button--secondary:hover,
.edt-button--secondary:focus {
	background: var(--edt-marker-soft);
	color: var(--edt-ink);
}

.edt-button--small {
	font-size: var(--edt-text-sm);
	min-height: 0;
	padding: var(--edt-s2) var(--edt-s4);
}

.edt-button[disabled],
button[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

/* --------------------------------------------------------------------------
   9. Labels, categories, metadata
   -------------------------------------------------------------------------- */

.edt-eyebrow {
	display: inline-block;
	font-size: var(--edt-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--edt-coral-deep);
	text-decoration: none;
	margin-bottom: var(--edt-s2);
}

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

.edt-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--edt-s1);
	background: var(--edt-second-soft);
	border: 1px solid #cbdac8;
	border-radius: 999px;
	color: var(--edt-second);
	font-size: var(--edt-text-sm);
	font-weight: 600;
	padding: 0.3rem 0.8rem;
	text-decoration: none;
}

a.edt-chip:hover {
	background: var(--edt-marker-soft);
	border-color: var(--edt-guide);
	color: var(--edt-ink);
}

.edt-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--edt-s2) var(--edt-s4);
	color: var(--edt-ink-muted);
	font-size: var(--edt-text-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.edt-meta > li {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--edt-s2) var(--edt-s4);
}

.edt-meta__item {
	display: inline-flex;
	align-items: center;
	gap: var(--edt-s2);
}

.edt-meta a {
	color: inherit;
}

.edt-meta svg {
	flex: 0 0 auto;
	color: var(--edt-graphite);
}

.edt-icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   10. Cards and grids
   -------------------------------------------------------------------------- */

.edt-grid {
	display: grid;
	gap: var(--edt-s5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 36em) {
	.edt-grid--2,
	.edt-grid--3,
	.edt-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.edt-grid {
		gap: var(--edt-s6);
	}

	.edt-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.edt-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--edt-s5);
	}
}

.edt-card {
	display: flex;
	flex-direction: column;
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius-sm);
	box-shadow: var(--edt-shadow-sm);
	position: relative;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

/* A strip of masking tape holding the sheet to the page. */
.edt-card::before {
	content: "";
	position: absolute;
	top: -0.55rem;
	left: 50%;
	z-index: 1;
	width: 4.25rem;
	height: 1.15rem;
	margin-left: -2.125rem;
	background: rgba(242, 182, 50, 0.62);
	border-left: 1px dashed rgba(47, 51, 56, 0.18);
	border-right: 1px dashed rgba(47, 51, 56, 0.18);
	box-shadow: 0 1px 1px rgba(47, 51, 56, 0.12);
	transform: rotate(-2deg);
	pointer-events: none;
}

.edt-grid > .edt-card:nth-child(even)::before {
	background: rgba(169, 195, 228, 0.72);
	transform: rotate(1.5deg);
}

/* The sheet lifts and tilts a touch on hover only. */
.edt-card:hover {
	border-color: var(--edt-guide);
	box-shadow: var(--edt-shadow);
	transform: translateY(-3px) rotate(-0.5deg);
}

.edt-grid > .edt-card:nth-child(even):hover {
	transform: translateY(-3px) rotate(0.5deg);
}

.edt-card__media {
	display: block;
	background: var(--edt-paper-deep);
	border: 1px solid var(--edt-line);
	border-radius: 3px;
	margin: var(--edt-s3) var(--edt-s3) 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.edt-card__media img,
.edt-card-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Posts without a featured image get a blank dot-grid page with a faint
   construction sketch (circle and guide lines) in the middle. */
.edt-card__media--placeholder,
.edt-card-row__media--placeholder {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60' fill='none' stroke='%23a9c3e4' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='40' cy='30' r='17'/%3E%3Cpath d='M40 8v44M16 30h48' stroke-dasharray='3 4'/%3E%3C/svg%3E") center / auto 70% no-repeat,
		var(--edt-dots) 0 0 / 16px 16px,
		var(--edt-surface);
}

.edt-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--edt-s2);
	padding: var(--edt-s4) var(--edt-s5) var(--edt-s5);
}

.edt-grid--4 .edt-card__body {
	padding: var(--edt-s4);
}

.edt-card__title {
	font-size: var(--edt-text-lg);
	line-height: var(--edt-leading-snug);
	margin: 0;
}

.edt-grid--4 .edt-card__title {
	font-size: var(--edt-text-md);
}

.edt-card__title a,
.edt-card-row__title a,
.edt-steps__title a {
	color: var(--edt-ink);
	text-decoration: none;
}

.edt-card__title a:hover,
.edt-card-row__title a:hover,
.edt-steps__title a:hover {
	color: var(--edt-accent);
	text-decoration: underline;
}

.edt-card__excerpt {
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-sm);
	line-height: var(--edt-leading-normal);
	margin: 0;
}

.edt-card__footer {
	margin-top: auto;
	padding-top: var(--edt-s3);
	border-top: 1px dashed var(--edt-line);
}

/* Horizontal card (lists and search results) */
.edt-card-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s4);
	padding-bottom: var(--edt-s5);
	border-bottom: 2px dashed var(--edt-line);
}

.edt-card-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

@media (min-width: 36em) {
	.edt-card-row {
		grid-template-columns: 13rem minmax(0, 1fr);
		gap: var(--edt-s5);
		align-items: start;
	}
}

.edt-card-row__media {
	display: block;
	background: var(--edt-paper-deep);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

/* min-width: 0 keeps long titles from blowing out the grid column. */
.edt-card-row__body {
	min-width: 0;
}

.edt-card-row__title {
	font-size: var(--edt-text-xl);
	margin: var(--edt-s1) 0 var(--edt-s2);
}

.edt-card-row__excerpt {
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-base);
	margin: 0 0 var(--edt-s3);
}

.edt-card-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s5);
}

/* Numbered path (Start Here) */
.edt-steps {
	list-style: none;
	counter-reset: edt-step;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s4);
	margin: 0;
	padding: 0;
}

@media (min-width: 48em) {
	.edt-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--edt-s5);
	}
}

.edt-steps > li {
	counter-increment: edt-step;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: var(--edt-s4);
	align-items: start;
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius-sm);
	box-shadow: var(--edt-shadow-sm);
	padding: var(--edt-s5);
}

.edt-steps > li::before {
	content: counter(edt-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--edt-pencil);
	border: 1.5px solid var(--edt-ink);
	/* Slightly uneven, like a circle drawn by hand. */
	border-radius: 52% 48% 50% 50% / 48% 52% 50% 50%;
	color: var(--edt-ink);
	font-family: var(--edt-font-head);
	font-size: var(--edt-text-lg);
	font-weight: 800;
}

.edt-steps__title {
	font-size: var(--edt-text-lg);
	line-height: var(--edt-leading-snug);
	margin: 0 0 var(--edt-s2);
}

.edt-steps p {
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-sm);
	margin: 0;
}

/* --------------------------------------------------------------------------
   11. Homepage — hero and sections
   -------------------------------------------------------------------------- */

.edt-hero {
	/* A ruled notebook page: faint blue lines over a warm paper wash. */
	background-color: var(--edt-paper-deep);
	background-image:
		repeating-linear-gradient(180deg, transparent 0 31px, rgba(47, 95, 158, 0.1) 31px 32px),
		linear-gradient(180deg, var(--edt-marker-soft), var(--edt-paper) 85%);
	border-bottom: 2px dashed var(--edt-guide);
	padding-block: var(--edt-s8);
}

.edt-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s6);
	align-items: center;
}

@media (min-width: 62em) {
	.edt-hero {
		padding-block: var(--edt-s10);
	}

	.edt-hero__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: var(--edt-s9);
	}
}

.edt-hero__title {
	font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: var(--edt-s4);
	max-width: 17ch;
}

.edt-hero__text {
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-lg);
	line-height: var(--edt-leading-relaxed);
	max-width: 48ch;
	margin-bottom: var(--edt-s6);
}

.edt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--edt-s3);
}

/* Decorative inline SVG (no image request, no JS). It scales with its
   column: small under the text on phones, full size beside it on desktop. */
.edt-hero__figure {
	max-width: 19rem;
	margin-inline: auto;
	width: 100%;
}

@media (min-width: 36em) {
	.edt-hero__figure {
		max-width: 24rem;
	}
}

@media (min-width: 62em) {
	.edt-hero__figure {
		max-width: 31rem;
	}
}

.edt-hero__figure svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Category strip (optional "Browse by Topic" section) */
.edt-topics {
	display: grid;
	gap: var(--edt-s4);
	grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.edt-topic {
	display: flex;
	flex-direction: column;
	gap: var(--edt-s2);
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius-sm);
	box-shadow: var(--edt-shadow-sm);
	padding: var(--edt-s6) var(--edt-s4) var(--edt-s5);
	position: relative;
	text-decoration: none;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

/* A push pin holding the note to the page. */
.edt-topic::before {
	content: "";
	position: absolute;
	top: 0.6rem;
	left: 50%;
	width: 0.8rem;
	height: 0.8rem;
	margin-left: -0.4rem;
	background: radial-gradient(circle at 35% 35%, #f3a892 0 22%, var(--edt-coral) 23%);
	border-radius: 50%;
	box-shadow: 1px 2px 2px rgba(47, 51, 56, 0.3);
}

.edt-topics > li:nth-child(3n + 2) .edt-topic::before {
	background: radial-gradient(circle at 35% 35%, #c9dcf3 0 22%, var(--edt-blue) 23%);
}

.edt-topics > li:nth-child(3n) .edt-topic::before {
	background: radial-gradient(circle at 35% 35%, #fbe6ad 0 22%, var(--edt-pencil) 23%);
}

.edt-topic:hover {
	box-shadow: var(--edt-shadow);
	transform: translateY(-2px) rotate(-0.6deg);
}

.edt-topic__name {
	font-family: var(--edt-font-head);
	font-size: var(--edt-text-lg);
	font-weight: 700;
	color: var(--edt-ink);
}

.edt-topic:hover .edt-topic__name {
	color: var(--edt-accent);
}

.edt-topic__desc {
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-sm);
	line-height: var(--edt-leading-normal);
}

.edt-topic__count {
	margin-top: auto;
	padding-top: var(--edt-s2);
	color: var(--edt-ink-muted);
	font-size: var(--edt-text-xs);
}

/* Closing call to action */
.edt-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s5);
	align-items: center;
	background: var(--edt-ink);
	border-radius: var(--edt-radius-lg);
	color: var(--edt-paper);
	padding: var(--edt-s7) var(--edt-s5);
	/* Dashed construction line set inside the panel edge. */
	outline: 2px dashed rgba(169, 195, 228, 0.5);
	outline-offset: -10px;
}

@media (min-width: 48em) {
	.edt-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: var(--edt-s8);
	}
}

.edt-cta__title {
	color: var(--edt-surface);
	margin-bottom: var(--edt-s3);
}

.edt-cta__text {
	color: var(--edt-paper);
	margin: 0;
	max-width: 54ch;
}

.edt-cta .edt-button {
	background: var(--edt-pencil);
	border-color: var(--edt-pencil);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
	color: var(--edt-ink);
}

.edt-cta .edt-button:hover,
.edt-cta .edt-button:focus {
	background: var(--edt-surface);
	border-color: var(--edt-surface);
	color: var(--edt-ink);
}

.edt-cta :focus-visible {
	outline-color: var(--edt-pencil);
}

/* --------------------------------------------------------------------------
   12. Article
   -------------------------------------------------------------------------- */

.edt-breadcrumbs {
	margin-bottom: var(--edt-s5);
	font-size: var(--edt-text-sm);
	color: var(--edt-ink-muted);
}

.edt-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--edt-s1) var(--edt-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.edt-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: var(--edt-s2);
	min-width: 0;
}

.edt-breadcrumbs li + li::before {
	content: "\203A";
	color: var(--edt-graphite);
	font-weight: 700;
}

.edt-breadcrumbs a {
	color: var(--edt-ink-soft);
	text-decoration: underline;
	text-decoration-color: var(--edt-guide);
}

.edt-breadcrumbs a:hover {
	color: var(--edt-accent);
}

.edt-breadcrumbs [aria-current="page"] {
	color: var(--edt-ink-muted);
}

.edt-article__header {
	margin-bottom: var(--edt-s6);
}

.edt-article__title {
	margin-bottom: var(--edt-s4);
	max-width: 24ch;
}

.edt-article__summary {
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-lg);
	line-height: var(--edt-leading-relaxed);
	max-width: var(--edt-measure);
	margin-bottom: var(--edt-s4);
}

.edt-article__meta {
	padding-top: var(--edt-s4);
	border-top: 2px dashed var(--edt-line);
}

.edt-article__figure {
	margin-bottom: var(--edt-s6);
}

.edt-article__figure img {
	border-radius: 3px;
	width: 100%;
}

/* Figures and captions */
.edt-article__figure figcaption,
.edt-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--edt-s3);
	padding: var(--edt-s2) var(--edt-s2) var(--edt-s1);
	border-top: 2px dashed var(--edt-guide);
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-sm);
	line-height: var(--edt-leading-snug);
	text-align: left;
}

/* Body text */
.edt-content {
	font-size: var(--edt-text-md);
	line-height: var(--edt-leading-relaxed);
	min-width: 0;
}

.edt-content > * {
	max-width: var(--edt-measure);
}

.edt-content > .alignwide,
.edt-content > .alignfull,
.edt-content > .edt-tutorial-facts,
.edt-content > .edt-toc,
.edt-content > figure,
.edt-content > .wp-block-image,
.edt-content > .wp-block-gallery,
.edt-content > .wp-block-table,
.edt-content > .edt-table-wrap,
.edt-content > table,
.edt-content > .edt-ad-slot {
	max-width: 100%;
}

.edt-content h2 {
	margin-top: var(--edt-s8);
	padding-bottom: var(--edt-s3);
	background: var(--edt-squiggle) left bottom / 5rem 0.6rem no-repeat;
}

.edt-content h3 {
	margin-top: var(--edt-s6);
}

.edt-content h4 {
	margin-top: var(--edt-s5);
}

.edt-content > h2:first-child,
.edt-content > h3:first-child {
	margin-top: 0;
}

.edt-content ul,
.edt-content ol {
	margin: 0 0 var(--edt-s5);
	padding-left: 1.5em;
}

.edt-content li + li {
	margin-top: var(--edt-s2);
}

.edt-content li > ul,
.edt-content li > ol {
	margin-top: var(--edt-s2);
	margin-bottom: 0;
}

.edt-content ul:not([class]) > li::marker {
	color: var(--edt-coral);
}

/* Ordered lists are the drawing steps. Nested and classed lists keep bold
   native numbers. */
.edt-content ol {
	padding-left: 1.75em;
}

.edt-content ol > li {
	padding-left: 0.35em;
}

.edt-content ol > li::marker {
	color: var(--edt-accent);
	font-family: var(--edt-font-head);
	font-weight: 800;
}

/* Top-level steps: a pencil-yellow number disc per step, joined by a dashed
   construction line. The number comes from the built-in `list-item` counter,
   so `start` and `reversed` on the <ol> are respected. */
.edt-content > ol:not([class]) {
	list-style: none;
	padding-left: 0;
	margin-block: var(--edt-s5) var(--edt-s6);
}

.edt-content > ol:not([class]) > li {
	position: relative;
	min-height: 2.5rem;
	padding: 0.3rem 0 var(--edt-s4) 3.5rem;
}

.edt-content > ol:not([class]) > li + li {
	margin-top: var(--edt-s2);
}

.edt-content > ol:not([class]) > li:last-child {
	padding-bottom: 0;
}

.edt-content > ol:not([class]) > li::before {
	content: counter(list-item);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--edt-pencil);
	border: 1.5px solid var(--edt-ink);
	border-radius: 52% 48% 50% 50% / 48% 52% 50% 50%;
	color: var(--edt-ink);
	font-family: var(--edt-font-head);
	font-size: var(--edt-text-base);
	font-weight: 800;
	line-height: 1;
}

.edt-content > ol:not([class]) > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1.25rem - 1px);
	top: 2.85rem;
	bottom: -0.15rem;
	border-left: 2px dashed var(--edt-guide);
}

.edt-content > ol:not([class]) > li > :last-child {
	margin-bottom: 0;
}

.edt-content > ol:not([class]) > li > figure:first-child {
	margin-top: 0;
}

/* Stage figures: each drawing sits on its own sheet of paper, with the
   caption written underneath like a note in the margin. */
.edt-content figure,
.edt-content .wp-block-image {
	margin-block: var(--edt-s6);
}

.edt-content figure:not(.wp-block-table):not(.wp-block-embed):not(.wp-block-gallery),
.edt-article__figure {
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius-sm);
	box-shadow: var(--edt-shadow-sm);
	padding: var(--edt-s3);
}

.edt-content .wp-block-gallery figure {
	margin-block: 0;
}

.edt-content img {
	border-radius: 3px;
	background-color: var(--edt-surface);
	margin-inline: auto;
}

.edt-content :not(figure) > img {
	border: 1px solid var(--edt-line);
}

.edt-content a {
	text-decoration: underline;
}

/* Tables — always scroll inside their own wrapper, never the page.
   inc/toc.php wraps every table in .edt-table-wrap; the bare-table rules
   below cover the block editor and any table that escapes the wrapper. */
.edt-table-wrap,
.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-block: var(--edt-s6);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius);
	background: var(--edt-surface);
}

/* A block-editor table figure already scrolls: its inner wrapper stays plain. */
.wp-block-table .edt-table-wrap {
	overflow: visible;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.edt-content > table {
	display: block;
	overflow-x: auto;
	margin-block: var(--edt-s6);
}

.edt-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--edt-text-sm);
	line-height: var(--edt-leading-snug);
}

.edt-table-wrap table,
.wp-block-table table {
	min-width: 30rem;
	margin: 0;
}

.edt-content th,
.edt-content td,
.wp-block-table th,
.wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--edt-line);
	padding: var(--edt-s3) var(--edt-s4);
	text-align: left;
	vertical-align: top;
}

.edt-content tbody tr:last-child > *,
.wp-block-table tbody tr:last-child > * {
	border-bottom: 0;
}

.edt-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
	background: rgba(243, 236, 220, 0.5);
}

.edt-content thead th,
.wp-block-table thead th {
	background: var(--edt-accent-soft);
	border-bottom: 2px solid var(--edt-guide);
	color: var(--edt-ink);
	font-size: var(--edt-text-xs);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.edt-content tbody th {
	font-weight: 700;
}

.edt-content table caption {
	caption-side: bottom;
	padding: var(--edt-s3) var(--edt-s4);
	color: var(--edt-ink-muted);
	font-size: var(--edt-text-sm);
	text-align: left;
}

/* Callouts — used in article content and available in the block editor */
.edt-callout {
	position: relative;
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-left: 5px solid var(--edt-guide);
	border-radius: var(--edt-radius-sm);
	box-shadow: var(--edt-shadow-sm);
	padding: var(--edt-s4) var(--edt-s5) var(--edt-s5);
	margin-block: var(--edt-s6);
}

.edt-callout > :last-child {
	margin-bottom: 0;
}

.edt-callout__title {
	display: flex;
	align-items: center;
	gap: var(--edt-s2);
	font-family: var(--edt-font-body);
	font-size: var(--edt-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: var(--edt-leading-snug);
	text-transform: uppercase;
	color: var(--edt-ink-soft);
	margin: 0 0 var(--edt-s2);
}

/* Small mark before the title: a yellow dot for tips, a crossed-out disc
   for common mistakes. */
.edt-callout__title::before {
	content: "";
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: currentColor;
}

/* Tip: a sticky note in highlighter yellow. */
.edt-callout--tip {
	background: var(--edt-marker-soft);
	border-color: #f1dc9c;
	border-left-color: var(--edt-pencil);
}

.edt-callout--tip .edt-callout__title {
	color: var(--edt-pencil-ink);
}

.edt-callout--tip .edt-callout__title::before {
	background: var(--edt-pencil);
	border: 1.5px solid var(--edt-ink);
}

/* Common mistake: coral, like a correction made in red pencil. */
.edt-callout--warning {
	background: var(--edt-coral-soft);
	border-color: #f1cdc1;
	border-left-color: var(--edt-coral);
}

.edt-callout--warning .edt-callout__title {
	color: var(--edt-coral-deep);
}

.edt-callout--warning .edt-callout__title::before {
	background:
		linear-gradient(45deg, transparent 43%, var(--edt-surface) 43% 57%, transparent 57%),
		linear-gradient(-45deg, transparent 43%, var(--edt-surface) 43% 57%, transparent 57%),
		currentColor;
}

/* Tutorial facts (difficulty, time, pencils, paper, what you need): an
   index card outlined with a dashed construction line. */
.edt-tutorial-facts {
	background: var(--edt-surface);
	border: 2px dashed var(--edt-guide);
	border-radius: var(--edt-radius);
	box-shadow: var(--edt-shadow-sm);
	padding: var(--edt-s5);
	margin-bottom: var(--edt-s6);
}

.edt-tutorial-facts__title,
.edt-toc__title {
	font-family: var(--edt-font-body);
	font-size: var(--edt-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--edt-ink-soft);
	margin: 0 0 var(--edt-s4);
}

.edt-facts {
	display: grid;
	gap: var(--edt-s4);
	grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
	margin: 0;
}

.edt-facts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--edt-s3);
	min-width: 0;
}

.edt-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--edt-marker-soft);
	border: 1px solid var(--edt-pencil-light);
	border-radius: var(--edt-radius-sm);
	color: var(--edt-ink-soft);
}

.edt-facts__icon .edt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.edt-facts__label {
	display: block;
	font-family: var(--edt-font-body);
	font-size: var(--edt-text-xs);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: var(--edt-leading-snug);
	text-transform: uppercase;
	color: var(--edt-ink-muted);
	margin: 0;
}

.edt-facts__value {
	display: block;
	font-size: var(--edt-text-base);
	font-weight: 700;
	line-height: var(--edt-leading-snug);
	margin-top: 0.15rem;
}

.edt-materials {
	margin-top: var(--edt-s5);
	padding-top: var(--edt-s4);
	border-top: 1px dashed var(--edt-guide);
}

.edt-materials .edt-facts__label {
	margin-bottom: var(--edt-s3);
}

.edt-materials__list {
	list-style: none;
	display: grid;
	gap: var(--edt-s2) var(--edt-s5);
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	margin: 0;
	padding: 0;
	font-size: var(--edt-text-base);
}

.edt-materials__list li {
	display: flex;
	align-items: flex-start;
	gap: var(--edt-s3);
	margin: 0;
}

.edt-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: 0.5em;
	background: var(--edt-surface);
	border: 2px solid var(--edt-sage);
	border-radius: 2px;
}

/* Table of contents */
.edt-toc {
	background: var(--edt-accent-soft);
	border: 1px solid var(--edt-guide);
	border-left: 5px solid var(--edt-blue);
	border-radius: var(--edt-radius-sm);
	padding: var(--edt-s5);
	margin-bottom: var(--edt-s6);
}

.edt-toc__title {
	margin-bottom: var(--edt-s3);
}

.edt-toc ol {
	counter-reset: edt-toc;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--edt-text-base);
}

.edt-toc > ol > li {
	counter-increment: edt-toc;
	margin: 0;
}

.edt-toc > ol > li + li {
	margin-top: var(--edt-s2);
}

.edt-toc > ol > li > a::before {
	content: counter(edt-toc) ". ";
	color: var(--edt-blue);
	font-weight: 700;
}

.edt-toc a {
	color: var(--edt-ink);
	text-decoration: underline;
	text-decoration-color: var(--edt-guide);
}

.edt-toc a:hover {
	color: var(--edt-accent-hover);
	text-decoration-color: currentColor;
}

.edt-toc ol ol {
	margin: var(--edt-s2) 0 0 var(--edt-s5);
	font-size: var(--edt-text-sm);
}

.edt-toc ol ol li + li {
	margin-top: var(--edt-s1);
}

.edt-toc ol ol a {
	color: var(--edt-ink-soft);
}

/* FAQ */
.edt-faq {
	margin-top: var(--edt-s8);
}

.edt-faq > h2 {
	padding-bottom: var(--edt-s3);
	margin-bottom: var(--edt-s5);
	background: var(--edt-squiggle) left bottom / 5rem 0.6rem no-repeat;
}

.edt-faq__item {
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-left: 5px solid var(--edt-pencil);
	border-radius: var(--edt-radius-sm);
	margin-bottom: var(--edt-s3);
	padding: var(--edt-s4) var(--edt-s5);
}

.edt-faq__question {
	font-family: var(--edt-font-head);
	font-size: var(--edt-text-lg);
	font-weight: 700;
	margin: 0 0 var(--edt-s2);
}

.edt-faq__answer {
	color: var(--edt-ink-soft);
	max-width: var(--edt-measure);
}

.edt-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Article footer */
.edt-article__footer {
	margin-top: var(--edt-s8);
	padding-top: var(--edt-s5);
	border-top: 2px dashed var(--edt-line);
}

.edt-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--edt-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.edt-tags__label {
	font-size: var(--edt-text-sm);
	font-weight: 700;
	color: var(--edt-ink-soft);
}

/* Previous / next */
.edt-post-nav {
	margin-top: var(--edt-s7);
}

.edt-post-nav__links {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s4);
}

@media (min-width: 48em) {
	.edt-post-nav__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* When only "next" exists it moves to the right-hand column, where its
	   right-aligned text expects to sit. */
	.edt-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

.edt-post-nav__link {
	display: block;
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius);
	padding: var(--edt-s4) var(--edt-s5);
	text-decoration: none;
	height: 100%;
}

.edt-post-nav__link:hover {
	border-color: var(--edt-graphite);
	background: var(--edt-marker-soft);
}

.edt-post-nav__direction {
	display: block;
	font-size: var(--edt-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--edt-ink-muted);
	margin-bottom: var(--edt-s2);
}

.edt-post-nav__title {
	display: block;
	font-family: var(--edt-font-head);
	font-size: var(--edt-text-base);
	font-weight: 700;
	color: var(--edt-ink);
	line-height: var(--edt-leading-snug);
}

.edt-post-nav__link--prev {
	text-align: left;
}

.edt-post-nav__link--next {
	text-align: right;
}

/* --------------------------------------------------------------------------
   13. Sidebar and widgets
   -------------------------------------------------------------------------- */

.edt-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s5);
}

@media (min-width: 62em) {
	.edt-sidebar--sticky {
		position: sticky;
		top: var(--edt-s5);
	}
}

.edt-widget {
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-top: 5px solid var(--edt-pencil);
	border-radius: var(--edt-radius);
	padding: var(--edt-s5);
	font-size: var(--edt-text-base);
}

.edt-widget__title,
.edt-widget .widget-title {
	font-family: var(--edt-font-body);
	font-size: var(--edt-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--edt-ink-soft);
	margin: 0 0 var(--edt-s4);
}

.edt-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.edt-widget li + li {
	margin-top: var(--edt-s3);
	padding-top: var(--edt-s3);
	border-top: 1px dashed var(--edt-line);
}

.edt-widget a {
	color: var(--edt-ink);
	text-decoration: none;
}

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

.edt-widget .children,
.edt-widget .sub-menu {
	margin-top: var(--edt-s3);
	padding-left: var(--edt-s4);
}

/* --------------------------------------------------------------------------
   14. Archives, pagination, search, 404
   -------------------------------------------------------------------------- */

.edt-archive-header {
	margin-bottom: var(--edt-s7);
	padding-bottom: var(--edt-s5);
	border-bottom: 2px dashed var(--edt-line);
}

.edt-archive-header__title {
	margin-bottom: var(--edt-s3);
	padding-bottom: var(--edt-s4);
	background: var(--edt-squiggle) left bottom / 6.5rem 0.65rem no-repeat;
}

.edt-archive-header__description {
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-lg);
	line-height: var(--edt-leading-relaxed);
	max-width: var(--edt-measure);
	margin-top: var(--edt-s4);
}

.edt-archive-header__description > :last-child {
	margin-bottom: 0;
}

.edt-archive-header__count {
	margin: var(--edt-s3) 0 0;
	color: var(--edt-ink-muted);
	font-size: var(--edt-text-sm);
}

.edt-subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--edt-s2);
	list-style: none;
	margin: var(--edt-s4) 0 0;
	padding: 0;
}

.edt-pagination {
	margin-top: var(--edt-s8);
	padding-top: var(--edt-s5);
	border-top: 2px dashed var(--edt-line);
}

.edt-pagination .nav-links {
	display: flex;
	justify-content: center;
}

.edt-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--edt-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.edt-pagination li {
	margin: 0;
}

.edt-pagination a.page-numbers,
.edt-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: var(--edt-s3);
	background: var(--edt-surface);
	border: 1.5px solid var(--edt-line-strong);
	border-radius: var(--edt-radius-sm);
	color: var(--edt-ink);
	font-size: var(--edt-text-sm);
	font-weight: 700;
	text-decoration: none;
}

.edt-pagination a.page-numbers:hover {
	background: var(--edt-marker-soft);
	border-color: var(--edt-ink-soft);
	color: var(--edt-ink);
}

.edt-pagination span.page-numbers.current {
	background: var(--edt-ink);
	border-color: var(--edt-ink);
	color: var(--edt-surface);
}

.edt-pagination span.page-numbers.dots {
	border-color: transparent;
	background: none;
	min-width: 1.5rem;
	padding-inline: 0;
}

/* Search */
.edt-search-intro {
	margin-bottom: var(--edt-s6);
	padding-bottom: var(--edt-s5);
	border-bottom: 2px dashed var(--edt-line);
}

.edt-search-intro .edt-search-form {
	max-width: 32rem;
	margin-top: var(--edt-s4);
}

.edt-no-results {
	background: var(--edt-surface);
	border: 2px dashed var(--edt-guide);
	border-radius: var(--edt-radius);
	padding: var(--edt-s6) var(--edt-s5);
}

.edt-no-results .edt-search-form {
	max-width: 30rem;
	margin-top: var(--edt-s5);
}

.edt-no-results__suggestions {
	display: grid;
	gap: var(--edt-s2);
	list-style: none;
	margin: var(--edt-s4) 0 var(--edt-s5);
	padding: 0;
}

.edt-no-results__suggestions li {
	padding-left: 1.3em;
	position: relative;
}

.edt-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.55rem;
	height: 0.55rem;
	background: var(--edt-sage);
	border-radius: 1px;
}

/* 404 */
.edt-error-404 {
	text-align: center;
	max-width: 46rem;
	margin-inline: auto;
}

.edt-error-404__code {
	display: inline-block;
	font-family: var(--edt-font-head);
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	font-weight: 800;
	line-height: 1;
	color: var(--edt-guide);
	margin: 0 0 var(--edt-s5);
	padding-bottom: var(--edt-s3);
	background: var(--edt-squiggle) center bottom / 100% 0.75rem no-repeat;
}

/* Where supported, the number is only outlined — a sketch not yet filled in. */
@supports (-webkit-text-stroke: 2px black) {
	.edt-error-404__code {
		color: transparent;
		-webkit-text-stroke: 2px var(--edt-blue);
	}
}

.edt-error-404 .edt-search-form {
	max-width: 26rem;
	margin: var(--edt-s5) auto 0;
	text-align: left;
}

.edt-error-404 .edt-subcategories {
	justify-content: center;
	margin-top: var(--edt-s4);
}

.edt-error-404 .edt-section {
	margin-top: var(--edt-s8);
	text-align: left;
}

.edt-error-404__headline {
	margin-top: var(--edt-s7);
	font-size: var(--edt-text-xl);
}

/* --------------------------------------------------------------------------
   15. Pages and contact form
   -------------------------------------------------------------------------- */

.edt-page__header {
	margin-bottom: var(--edt-s6);
	padding-bottom: var(--edt-s5);
	border-bottom: 2px dashed var(--edt-line);
}

.edt-page__header .edt-page__title {
	margin-bottom: 0;
	padding-bottom: var(--edt-s4);
	background: var(--edt-squiggle) left bottom / 6.5rem 0.65rem no-repeat;
}

.edt-page__updated {
	margin: var(--edt-s3) 0 0;
	color: var(--edt-ink-muted);
	font-size: var(--edt-text-sm);
}

.edt-form-notice {
	border-radius: var(--edt-radius);
	padding: var(--edt-s4) var(--edt-s5);
	margin-bottom: var(--edt-s5);
	border: 1px solid;
	border-left-width: 5px;
}

.edt-form-notice > :last-child {
	margin-bottom: 0;
}

.edt-form-notice--success {
	background: #eef7ef;
	border-color: #9cc5a1;
	color: #1f5128;
}

.edt-form-notice--error {
	background: #fdeeec;
	border-color: #e3a79e;
	color: #7d2418;
}

.edt-form-notice__list {
	margin: var(--edt-s2) 0 0;
	padding-left: 1.2em;
}

.edt-form {
	max-width: 38rem;
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-top: 5px solid var(--edt-pencil);
	border-radius: var(--edt-radius);
	padding: var(--edt-s5);
}

.edt-form > :last-child {
	margin-bottom: 0;
}

.edt-form input[aria-invalid="true"],
.edt-form textarea[aria-invalid="true"] {
	border-color: #b3372a;
	border-width: 2px;
}

.edt-field__error {
	display: block;
	margin-top: var(--edt-s2);
	color: #8c2b20;
	font-size: var(--edt-text-sm);
	font-weight: 700;
}

.edt-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. Comments
   -------------------------------------------------------------------------- */

.edt-comments {
	margin-top: var(--edt-s9);
	padding-top: var(--edt-s6);
	border-top: 2px dashed var(--edt-line);
}

.edt-comments__title {
	font-size: var(--edt-text-2xl);
}

.edt-comments .comment-list {
	list-style: none;
	margin: 0 0 var(--edt-s7);
	padding: 0;
}

.edt-comments .comment-list ol.children {
	list-style: none;
	margin: var(--edt-s4) 0 0 var(--edt-s5);
	padding: 0;
}

.edt-comments .comment-body {
	background: var(--edt-surface);
	border: 1px solid var(--edt-line);
	border-radius: var(--edt-radius);
	padding: var(--edt-s5);
	margin-bottom: var(--edt-s4);
}

.edt-comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--edt-s2) var(--edt-s3);
	font-size: var(--edt-text-sm);
	color: var(--edt-ink-muted);
	margin-bottom: var(--edt-s3);
}

.edt-comments .comment-author img {
	display: inline-block;
	border-radius: 50%;
	margin-right: var(--edt-s2);
	vertical-align: middle;
}

.edt-comments .reply {
	font-size: var(--edt-text-sm);
	font-weight: 700;
}

.comment-respond .comment-form-cookies-consent label,
.comment-respond .comment-notes {
	font-weight: 400;
	font-size: var(--edt-text-sm);
	color: var(--edt-ink-soft);
	display: inline;
}

.comment-form p {
	margin-bottom: var(--edt-s4);
}

/* --------------------------------------------------------------------------
   17. Ad slots (empty and disabled by default)
   -------------------------------------------------------------------------- */

.edt-ad-slot {
	margin-block: var(--edt-s6);
	text-align: center;
	overflow: hidden;
}

.edt-ad-slot__label {
	display: block;
	margin-bottom: var(--edt-s2);
	color: var(--edt-ink-muted);
	font-size: var(--edt-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.edt-ad-slot--sidebar {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.edt-site-footer {
	background: var(--edt-paper-deep);
	margin-top: auto;
	padding-bottom: var(--edt-s6);
}

/* Torn-paper edge along the top of the footer: the page above ends in a
   ragged tear and the footer shows underneath it. */
.edt-site-footer::before {
	content: "";
	display: block;
	height: 12px;
	margin-bottom: var(--edt-s8);
	background: var(--edt-torn) left top / 160px 12px repeat-x;
	filter: drop-shadow(0 2px 1px rgba(47, 51, 56, 0.12));
}

.edt-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edt-s6);
	margin-bottom: var(--edt-s6);
}

@media (min-width: 48em) {
	.edt-footer__grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--edt-s8);
	}
}

.edt-footer__about p {
	color: var(--edt-ink-soft);
	font-size: var(--edt-text-base);
	max-width: 44ch;
	margin-bottom: 0;
}

.edt-footer__nav {
	min-width: 0;
}

.edt-footer__heading {
	font-family: var(--edt-font-body);
	font-size: var(--edt-text-sm);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--edt-ink-soft);
	margin: 0 0 var(--edt-s3);
}

.edt-footer__about .edt-footer__heading {
	font-family: var(--edt-font-head);
	font-size: var(--edt-text-xl);
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--edt-ink);
}

.edt-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--edt-text-base);
}

.edt-footer__menu li + li {
	margin-top: var(--edt-s1);
}

.edt-footer__menu a {
	display: inline-block;
	padding-block: var(--edt-s1);
	color: var(--edt-ink-soft);
	text-decoration: none;
}

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

.edt-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--edt-s3);
	padding-top: var(--edt-s5);
	border-top: 2px dashed var(--edt-guide);
	color: var(--edt-ink-muted);
	font-size: var(--edt-text-sm);
}

.edt-footer__bottom p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   19. Utilities and editor alignments
   -------------------------------------------------------------------------- */

.edt-visually-balanced {
	max-width: var(--edt-measure);
}

.edt-text-center {
	text-align: center;
}

.edt-mt-0 {
	margin-top: 0;
}

.edt-mb-0 {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin: 0 var(--edt-s5) var(--edt-s4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--edt-s4) var(--edt-s5);
}

@media (max-width: 35.99em) {
	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 var(--edt-s4);
	}
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	margin-inline: auto;
}

.wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed.wp-embed-aspect-16-9 iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--edt-radius);
}

/* --------------------------------------------------------------------------
   20. Print — tutorials that read well on paper
   -------------------------------------------------------------------------- */

@media print {
	.edt-site-header,
	.edt-site-footer,
	.edt-ad-slot,
	.edt-post-nav,
	.edt-comments,
	.edt-sidebar,
	.edt-related,
	.edt-skip-link,
	.edt-breadcrumbs {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 11pt;
	}

	.edt-content > * {
		max-width: none;
	}

	.edt-table-wrap,
	.wp-block-table {
		overflow: visible;
	}

	.edt-table-wrap table,
	.wp-block-table table {
		min-width: 0;
	}

	a {
		color: inherit;
		text-decoration: underline;
	}

	.edt-content h2,
	.edt-content h3 {
		break-after: avoid;
	}

	figure,
	.edt-callout,
	.edt-tutorial-facts,
	.edt-facts__item {
		break-inside: avoid;
	}
}
