/*
Theme Name: Pencilbox
Theme URI: https://tallyandtale.com/
Author: Tally & Tale
Description: A printable library for Tally & Tale: PDF worksheets, learning games and activities for Kindergarten to Grade 5. Browse by grade, subject and type, with one-tap PDF downloads, a WooCommerce shop for digital products, a phone-first layout and per-page layout settings.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
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: pencilbox
*/

/* ==========================================================================
   Rules of this file
   - Element defaults are wrapped in :where() (zero specificity), so any
     plugin rule wins.
   - Prose styles only reach direct children of .pb-prose, never plugin markup
     nested inside shortcodes or HTML blocks.
   - Theme classes are prefixed pb-. Content wrappers never get overflow,
     transform, filter or contain, so full-bleed blocks and fixed popups work.
   - One motif: the tally stroke, a bar with round ends. It is the bullet, the
     button, the band and the mark. Surfaces are told apart by tone, not by
     lines or shadows; only things that float (menus, the phone bar) cast one.
   ========================================================================== */

/* Tokens
   ========================================================================== */
:root {
	--pb-bg: #eef0f3;
	--pb-surface: #e2e5ea;
	--pb-paper: #ffffff;
	--pb-ink: #0b0c0e;
	--pb-muted: #555c68;
	--pb-accent: #1f2de6;
	--pb-accent-deep: #1722b4;
	--pb-accent-soft: #dfe2fc;
	--pb-navy: #10184f;
	--pb-yellow: #ffcf33;
	--pb-pink: #ff9db0;

	--pb-font: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--pb-step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
	--pb-step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--pb-step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--pb-step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

	--pb-shell: 1320px;
	--pb-read: 760px;
	--pb-gutter: 24px;
	--pb-radius: 20px;
	--pb-float: 0 18px 48px rgba(11, 12, 14, 0.16);
	--pb-header-h: 68px;
	--pb-card-ratio: 4 / 3;
	--pb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base: element defaults (zero specificity)
   ========================================================================== */
:where(html, body, p, ol, ul, li, dl, dt, dd, blockquote, figure, fieldset, legend, textarea, pre, iframe, hr, h1, h2, h3, h4, h5, h6) {
	margin: 0;
	padding: 0;
	border: 0;
}

html {
	box-sizing: border-box;
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-padding-top: calc(var(--pb-header-h) + 16px);
}

:where(*, *::before, *::after) {
	box-sizing: inherit;
}

html,
body {
	overflow-x: clip;
}

:where(main) {
	display: block;
}

:where(button, input, optgroup, select, textarea) {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
}

:where([type="search"]) {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

:where(p) {
	margin-bottom: 1.4em;
}

:where(h1, h2, h3, h4, h5, h6) {
	margin-bottom: 0.6em;
	line-height: 1.1;
	font-family: var(--pb-font);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--pb-ink);
}

:where(h1) { font-size: 2.5rem; }
:where(h2) { font-size: 2rem; }
:where(h3) { font-size: 1.5rem; }
:where(h4) { font-size: 1.25rem; }
:where(h5) { font-size: 1.125rem; }
:where(h6) { font-size: 1rem; }

:where(ul, ol) {
	margin: 0 0 1.4em 1.5rem;
	padding-left: 0.5rem;
}

:where(ul) { list-style: disc; }
:where(ol) { list-style: decimal; }

:where(li > ul, li > ol) {
	margin-bottom: 0;
	margin-left: 1.5em;
}

:where(dt) { font-weight: 600; }
:where(dd) { margin: 0 1.5em 1.5em; }
:where(b, strong) { font-weight: 600; }
:where(address) { margin: 0 0 1.5em; }

:where(pre) {
	background: var(--pb-surface);
	border-radius: 12px;
	line-height: 1.5;
	margin-bottom: 1.5em;
	padding: 20px;
	overflow: auto;
	max-width: 100%;
}

:where(code, kbd, tt, var, pre) {
	font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:where(blockquote) {
	padding: 0 0 0 1.25em;
	margin: 0 0 1.5em;
}

:where(blockquote p:last-child) { margin: 0; }

:where(table) {
	border-collapse: collapse;
	margin: 0 0 1.5em;
	width: 100%;
}

:where(th, td) {
	padding: 10px 14px;
	border-bottom: 1px solid var(--pb-surface);
	text-align: left;
}

:where(th) { font-weight: 600; }

:where(hr) {
	background-color: var(--pb-surface);
	border: 0;
	height: 4px;
	border-radius: 2px;
	margin: 40px 0;
}

:where(fieldset) {
	padding: 0;
	border: 0;
	min-width: inherit;
}

:where(sup, sub) {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

:where(sup) { bottom: 1ex; }
:where(sub) { top: 0.5ex; }
:where(small) { font-size: 0.875em; }

:where(figure) { margin: 0 0 1.5em; }
:where(.wp-block-image) { margin-bottom: 1.5em; }

:where(img) {
	height: auto;
	max-width: 100%;
}

:where(a) {
	color: var(--pb-accent);
	text-decoration: none;
	transition: color 0.12s ease-in-out, background-color 0.12s ease-in-out;
}

:where(a:hover, a:focus, a:active) {
	color: var(--pb-accent-deep);
}

:where(button, input[type="button"], input[type="reset"], input[type="submit"]) {
	background: var(--pb-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	-webkit-appearance: button;
	padding: 12px 24px;
	font-family: var(--pb-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color 0.12s ease-in-out, color 0.12s ease-in-out;
}

:where(button:hover, button:focus-visible, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, input[type="submit"]:focus-visible) {
	background: var(--pb-accent-deep);
	color: #fff;
}

:where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select) {
	border: 2px solid transparent;
	border-radius: 14px;
	padding: 12px 16px;
	max-width: 100%;
	background-color: var(--pb-paper);
	color: var(--pb-ink);
	font-family: var(--pb-font);
	font-size: 1rem;
	line-height: 1.4;
}

:where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select):focus {
	border-color: var(--pb-accent);
	outline: none;
}

:where(textarea) { width: 100%; }

:where(.button, .wp-block-button .wp-block-button__link) {
	padding: 12px 24px;
	display: inline-block;
}

:where(.alignleft) { float: left; margin-right: 1.5em; }
:where(.alignright) { float: right; margin-left: 1.5em; }
:where(.aligncenter) { clear: both; display: block; margin-left: auto; margin-right: auto; }

:where(.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail) {
	max-width: 100%;
	height: auto;
}

:where(.wp-caption) { max-width: 100%; }
:where(.wp-caption-text, .gallery-caption) { font-size: var(--pb-step-small); color: var(--pb-muted); }

:focus-visible {
	outline: 3px solid var(--pb-accent);
	outline-offset: 3px;
}

body {
	background-color: var(--pb-bg);
	color: var(--pb-ink);
	font-family: var(--pb-font);
	font-size: var(--pb-step-body);
	line-height: 1.5;
	font-weight: 400;
}

::selection {
	background: var(--pb-yellow);
	color: var(--pb-ink);
}

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

.screen-reader-text:focus {
	background-color: var(--pb-paper);
	border-radius: 999px;
	box-shadow: var(--pb-float); /* taste-skill-ignore: overlay or screen-reader clip */
	clip: auto !important;
	clip-path: none;
	color: var(--pb-ink);
	display: block;
	font-size: 1rem;
	font-weight: 600;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.pb-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* Layout
   ========================================================================== */
.pb-shell {
	width: min(100% - 2 * var(--pb-gutter), var(--pb-shell));
	margin-left: auto;
	margin-right: auto;
}

.pb-site {
	width: min(100% - 2 * var(--pb-gutter), var(--pb-shell));
	margin: 0 auto;
	padding: 1.5rem 0 clamp(4rem, 9vw, 8rem);
}

.pb-site > .site-content {
	display: block;
}

body.right-sidebar .pb-site > .site-content,
body.left-sidebar .pb-site > .site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 3rem;
	align-items: start;
}

body.left-sidebar .pb-site > .site-content {
	grid-template-columns: 300px minmax(0, 1fr);
}

body.left-sidebar .pb-sidebar {
	order: -1;
}

/* The homepage lays out its own sections. */
body.pb-front .pb-site {
	width: 100%;
	padding: 0 0 clamp(4rem, 9vw, 8rem);
}

.pb-page,
.pb-comments {
	max-width: var(--pb-read);
	margin-left: auto;
	margin-right: auto;
}

body.full-width-content:not(.single) .pb-site {
	width: 100%;
	max-width: none;
	padding: 0;
}

body.full-width-content .site-main {
	margin: 0;
}

body.full-width-content .pb-page > .inside-article,
body.contained-content .pb-page > .inside-article {
	padding: 0;
}

body.full-width-content .pb-page {
	max-width: none;
}

/* Type helpers
   ========================================================================== */
.pb-head {
	margin: 0;
	font-size: var(--pb-step-head);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.pb-head--small {
	margin: 0 0 1.75rem;
	font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
}

/* Tally: a number drawn as strokes. */
.pb-tally {
	display: block;
	flex: none;
	width: auto;
	height: 1.15em;
	color: var(--pb-accent);
}

.pb-tally__slash {
	stroke: var(--pb-ink);
}

.pb-count {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--pb-muted);
	font-size: var(--pb-step-small);
	font-weight: 500;
	white-space: nowrap;
}

.pb-count--none {
	color: var(--pb-accent);
}

/* The mark: one tally of five. */
.pb-mark {
	display: block;
}

/* Buttons: the stroke, lying down
   ========================================================================== */
.pb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--pb-accent);
	color: #fff;
	font-family: var(--pb-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s var(--pb-ease);
}

.pb-btn:hover,
.pb-btn:focus-visible {
	background: var(--pb-accent-deep);
	color: #fff;
	transform: translateY(-2px);
}

.pb-btn:active {
	transform: scale(0.97);
}

.pb-btn--large {
	min-height: 56px;
	padding: 14px 30px;
	font-size: 1rem;
}

.pb-btn--small {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 0.9375rem;
}

.pb-btn--quiet {
	background: var(--pb-surface);
	color: var(--pb-ink);
}

.pb-btn--quiet:hover,
.pb-btn--quiet:focus-visible {
	background: var(--pb-ink);
	color: #fff;
}

.pb-btn--light {
	background: #fff;
	color: var(--pb-ink);
}

.pb-btn--light:hover,
.pb-btn--light:focus-visible {
	background: var(--pb-yellow);
	color: var(--pb-ink);
}

.pb-btn--yellow {
	background: var(--pb-yellow);
	color: var(--pb-ink);
}

.pb-btn--yellow:hover,
.pb-btn--yellow:focus-visible {
	background: #fff;
	color: var(--pb-ink);
}

/* Header
   ========================================================================== */
.pb-nav {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--pb-bg);
}

.admin-bar .pb-nav {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.pb-nav__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 68px;
}

.pb-nav__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-nav__brand:hover {
	color: var(--pb-ink);
}

.pb-brand__mark {
	display: block;
	width: 36px;
	height: 36px;
	flex: none;
	transition: transform 0.25s var(--pb-ease);
}

.pb-nav__brand:hover .pb-brand__mark {
	transform: rotate(-8deg);
}

.pb-brand__name {
	font-size: var(--pb-step-lead);
	font-weight: 600;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.pb-brand__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 200px;
	max-height: 44px;
}

.pb-nav__panel {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: flex-end;
}

.pb-nav__sheet-head,
.pb-social.pb-nav__social,
.pb-nav__backdrop,
.pb-nav__toggle {
	display: none;
}

.pb-menu,
.pb-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
}

.pb-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.pb-menu a {
	display: block;
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-menu > li > a {
	padding: 22px 14px;
	font-size: 1rem;
	font-weight: 500;
}

.pb-menu a:hover,
.pb-menu a:focus-visible,
.pb-menu > li.current-menu-item > a,
.pb-menu > li.current-menu-ancestor > a,
.pb-menu > li.current_page_item > a {
	color: var(--pb-accent);
}

.pb-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 32px;
	margin-left: -12px;
	padding: 0;
	background: transparent;
	color: var(--pb-ink);
	border: 0;
	cursor: pointer;
}

.pb-sub-toggle:hover,
.pb-sub-toggle:focus-visible {
	background: transparent;
	color: var(--pb-accent);
}

.pb-sub-toggle .pb-icon {
	transition: transform 0.2s ease;
}

.is-sub-open > .pb-sub-toggle .pb-icon {
	transform: rotate(180deg);
}

/* Desktop dropdowns */
@media (min-width: 1025px) {
	.pb-menu > li > .sub-menu,
	.pb-menu > li > .children {
		display: none;
		position: absolute;
		top: calc(100% - 6px);
		left: 50%;
		min-width: 220px;
		padding: 10px;
		background: var(--pb-paper);
		border-radius: var(--pb-radius);
		box-shadow: var(--pb-float); /* taste-skill-ignore: overlay or screen-reader clip */
		transform: translateX(-50%);
		z-index: 950;
	}

	.pb-menu > li:hover > .sub-menu,
	.pb-menu > li:focus-within > .sub-menu,
	.pb-menu > li.is-sub-open > .sub-menu,
	.pb-menu > li:hover > .children,
	.pb-menu > li:focus-within > .children,
	.pb-menu > li.is-sub-open > .children {
		display: block;
		animation: pb-drop 0.18s var(--pb-ease);
	}

	.pb-menu > li.pb-has-wide-sub > .sub-menu {
		width: 480px;
		columns: 2;
		column-gap: 8px;
	}

	.pb-menu .sub-menu li {
		break-inside: avoid;
	}

	.pb-menu .sub-menu a {
		padding: 10px 14px;
		border-radius: 12px;
		font-size: 1rem;
		line-height: 1.3;
	}

	.pb-menu .sub-menu a:hover,
	.pb-menu .sub-menu a:focus-visible {
		background: var(--pb-accent-soft);
	}

	.pb-menu .sub-menu .sub-menu {
		padding-left: 14px;
	}

	.pb-menu .sub-menu .pb-sub-toggle {
		display: none;
	}
}

.pb-nav__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.pb-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	background: var(--pb-surface);
	color: var(--pb-ink);
	border: 0;
}

.pb-search-toggle:hover,
.pb-search-toggle:focus-visible,
.pb-search-toggle[aria-expanded="true"] {
	background: var(--pb-accent);
	color: #fff;
}

.pb-search-panel {
	padding: 4px 0 16px;
	background: var(--pb-bg);
}

.pb-search-panel[hidden] {
	display: none;
}

.pb-search-panel .pb-searchform {
	max-width: 640px;
	margin: 0 auto;
}

.pb-social {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--pb-surface);
	color: var(--pb-ink);
	transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s var(--pb-ease);
}

.pb-social__link:hover,
.pb-social__link:focus-visible {
	color: #fff;
	background: var(--pb-accent);
	transform: translateY(-2px);
}

/* Search form */
.pb-searchform {
	display: flex;
	align-items: stretch;
	background: var(--pb-paper);
	border-radius: 999px;
	padding: 5px;
}

.pb-searchform:focus-within {
	outline: 3px solid var(--pb-accent);
	outline-offset: 0;
}

.pb-searchform .pb-searchform__field {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 1rem;
	outline: none;
}

.pb-searchform .pb-searchform__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	min-height: 46px;
	padding: 0;
	border-radius: 50%;
	background: var(--pb-accent);
	color: #fff;
}

/* Finder
   ========================================================================== */
.pb-finder {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pb-finder__field {
	flex: 1 1 150px;
	min-width: 0;
}

.pb-finder select {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 44px 0 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	background-color: var(--pb-paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0c0e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 18px;
	color: var(--pb-ink);
	font-size: 1rem;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	text-overflow: ellipsis;
}

.pb-finder select:focus-visible {
	border-color: var(--pb-accent);
	outline: none;
}

.pb-finder__submit {
	flex: 0 0 auto;
	min-height: 52px;
}

/* Media: the post's featured image, as it is
   Cards crop every image to one shape (--pb-card-ratio) so rows line up;
   elsewhere the image keeps its own proportions.
   ========================================================================== */
.pb-media {
	position: relative;
	display: block;
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	overflow: hidden;
}

.pb-media__img {
	display: block;
	width: 100%;
	height: auto;
}

/* No featured image: a plain tile with the title. */
.pb-media--blank {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: var(--pb-card-ratio);
	padding: 8%;
	background: var(--pb-paper);
	color: var(--pb-ink);
}

.pb-media__title {
	font-size: clamp(1rem, 0.8rem + 0.6vw, 1.25rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* Cards
   ========================================================================== */
.pb-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 16px;
}

.pb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pb-card__media {
	display: block;
}

.pb-card__media .pb-media {
	aspect-ratio: var(--pb-card-ratio);
}

.pb-card__media .pb-media__img {
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--pb-ease);
}

.pb-card:hover .pb-media__img,
.pb-card:focus-within .pb-media__img {
	transform: scale(1.05);
}

.pb-card__media .pb-media--blank {
	background: var(--pb-surface);
	transition: background-color 0.2s ease;
}

.pb-card:hover .pb-media--blank,
.pb-card:focus-within .pb-media--blank {
	background: var(--pb-yellow);
}

.pb-card__body {
	padding: 14px 4px 0;
}

.pb-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.pb-card__title a {
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.pb-card:hover .pb-card__title a,
.pb-card__title a:focus-visible {
	color: var(--pb-accent);
}

.pb-card__meta {
	margin: 4px 0 0;
	color: var(--pb-muted);
	font-size: var(--pb-step-small);
}

/* Homepage
   ========================================================================== */
.pb-section {
	margin-top: clamp(88px, 11vw, 168px);
}

/* Hero: a printed card beside the stage. */
.pb-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	min-height: min(100svh - var(--pb-header-h) - 24px, 800px);
}

.pb-hero__card {
	display: flex;
	flex-direction: column;
	border-radius: var(--pb-radius);
	background: var(--pb-paper);
	overflow: hidden;
	text-align: center;
}

/* The band: tally strokes end to end. */
.pb-band {
	flex: none;
	height: 56px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='32' viewBox='0 0 52 32' fill='none' stroke='%230b0c0e' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M7 4v24M16 4v24M25 4v24M34 4v24M3 23 38 9'/%3E%3C/svg%3E") center / 52px 32px repeat-x;
}

.pb-hero__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px clamp(20px, 4vw, 56px);
}

.pb-hero__title {
	max-width: 11ch;
	margin: 0 0 24px;
	font-size: clamp(2.5rem, 4.9vw, 4.75rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.pb-hero__lead {
	max-width: 40ch;
	margin: 0 0 32px;
	font-size: var(--pb-step-body);
	line-height: 1.5;
}

.pb-hero__text > div {
	width: 100%;
	max-width: 520px;
}

.pb-finder--hero {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-finder--hero select {
	background-color: var(--pb-bg);
	padding-left: 16px;
	padding-right: 36px;
	background-position: right 12px center;
}

.pb-finder--hero .pb-finder__submit {
	grid-column: 1 / -1;
	min-height: 56px;
	font-size: 1rem;
}

.pb-hero__links {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 28px;
	list-style: none;
	margin: 0;
	padding: 0 20px 28px;
}

.pb-hero__links a {
	color: var(--pb-ink);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	text-decoration-color: var(--pb-accent);
}

.pb-hero__links a:hover,
.pb-hero__links a:focus-visible {
	color: var(--pb-accent);
}

.pb-hero__stage {
	position: relative;
	min-height: 420px;
	border-radius: var(--pb-radius);
	background: var(--pb-accent);
	overflow: hidden;
}

.pb-hero__mark {
	position: absolute;
	right: -16%;
	bottom: -20%;
	width: 112%;
	height: auto;
	color: #fff;
}

.pb-hero__mark .pb-mark__slash {
	stroke: var(--pb-yellow);
}

.pb-hero__pics {
	position: absolute;
	inset: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-hero__pic {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.6s ease, visibility 0s linear 1.6s;
}

.pb-hero__pic.is-current {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.pb-hero__pic a {
	display: block;
	width: 80%;
	color: #fff;
	text-decoration: none;
}

.pb-hero__pic .pb-media {
	transform: rotate(-3deg);
	transition: transform 0.5s var(--pb-ease);
}

.pb-hero__pic .pb-media__img {
	max-height: min(62svh, 560px);
	object-fit: cover;
}

.pb-hero__pic a:hover .pb-media,
.pb-hero__pic a:focus-visible .pb-media {
	transform: rotate(-1deg) scale(1.02);
}

.pb-hero__caption {
	position: absolute;
	left: 24px;
	right: 24px;
	top: 20px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
}

/* Browse: two-column menus with a tile where a bullet would be. */
.pb-browse__group + .pb-browse__group {
	margin-top: clamp(96px, 9vw, 128px);
}

.pb-browse__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 40px;
}

.pb-browse__total {
	color: var(--pb-ink);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	text-decoration-color: var(--pb-accent);
}

.pb-browse__total:hover,
.pb-browse__total:focus-visible {
	color: var(--pb-accent);
}

.pb-rows {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 64px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-row__bullet {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: var(--pb-accent);
	color: #fff;
	font-size: var(--pb-step-lead);
	font-weight: 600;
	letter-spacing: -0.03em;
	transition: transform 0.25s var(--pb-ease), background-color 0.2s ease, color 0.2s ease;
}

.pb-rows--type .pb-row__bullet {
	background: var(--pb-yellow);
	color: var(--pb-ink);
}

div.pb-row .pb-row__bullet {
	background: var(--pb-surface);
	color: var(--pb-ink);
}

a.pb-row:hover .pb-row__bullet,
a.pb-row:focus-visible .pb-row__bullet {
	transform: rotate(-8deg) scale(1.06);
}

.pb-row__text {
	flex: 1;
	min-width: 0;
	padding-top: 6px;
}

.pb-row__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2px 16px;
}

.pb-row__name {
	font-size: var(--pb-step-lead);
	font-weight: 600;
	letter-spacing: -0.02em;
}

a.pb-row:hover .pb-row__name,
a.pb-row:focus-visible .pb-row__name {
	color: var(--pb-accent);
}

.pb-row__desc {
	display: block;
	max-width: 44ch;
	margin-top: 4px;
	color: var(--pb-muted);
	line-height: 1.45;
}

/* Just added: one picture in front of a single enlarged stroke. */
.pb-new {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
	align-items: end;
	gap: 32px;
}

.pb-new__heading {
	margin: 0 0 14px;
	color: var(--pb-muted);
	font-size: var(--pb-step-lead);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.pb-new__names {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-new__name {
	position: relative;
	display: block;
	padding: 5px 0 5px 22px;
	color: var(--pb-muted);
	font-size: var(--pb-step-lead);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.pb-new__name::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	bottom: 0.4em;
	width: 6px;
	border-radius: 3px;
	background: var(--pb-surface);
	transition: background-color 0.2s ease;
}

.pb-new__name.is-current {
	color: var(--pb-ink);
}

.pb-new__name.is-current::before {
	background: var(--pb-accent);
}

.pb-new__stage {
	position: relative;
	height: clamp(440px, 68vh, 640px);
}

.pb-new__shape {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(100%, 92%, 600px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--pb-yellow);
	transform: translate(-50%, -50%);
}

.pb-new__pics,
.pb-new__facts {
	position: relative;
	display: grid;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-new__pics {
	position: absolute;
	inset: 0;
	display: block;
}

.pb-new__pic,
.pb-new__fact {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.pb-new__pic.is-current,
.pb-new__fact.is-current {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.pb-new__pic {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 88%;
	transform: translate(-50%, -50%);
}

.pb-new__pic .pb-media {
	transform: rotate(3deg);
}

.pb-new__pic .pb-media__img {
	max-height: min(56vh, 520px);
	object-fit: cover;
}

.pb-new__fact {
	align-self: end;
}

.pb-new__fact p {
	margin: 0 0 18px;
	line-height: 1.45;
}

/* Subjects: specimens on colour tiles. */
.pb-subjects {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: 32px;
	align-items: start;
}

.pb-subjects__intro p {
	max-width: 30ch;
	margin: 20px 0 0;
}

.pb-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-tile--wide {
	grid-column: span 2;
}

.pb-tile__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-tile__face {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 0 auto;
	aspect-ratio: 4 / 5;
	margin-bottom: 14px;
	border-radius: var(--pb-radius);
	font-size: clamp(2.5rem, 5.4vw, 4rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	overflow: hidden;
}

.pb-tile--wide .pb-tile__face {
	aspect-ratio: 8 / 5;
}

.pb-tile__face span {
	display: block;
	transition: transform 0.35s var(--pb-ease);
}

.pb-tile__link:hover .pb-tile__face span,
.pb-tile__link:focus-visible .pb-tile__face span {
	transform: scale(1.12) rotate(-4deg);
}

.pb-tile__face--cobalt {
	background: var(--pb-accent);
	color: #fff;
}

.pb-tile__face--yellow {
	background: var(--pb-yellow);
	color: var(--pb-ink);
}

.pb-tile__face--pink {
	background: var(--pb-pink);
	color: var(--pb-ink);
}

.pb-tile__name {
	margin-bottom: 4px;
	font-size: var(--pb-step-lead);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.pb-tile__num {
	margin-left: 6px;
	color: var(--pb-muted);
}

.pb-tile .pb-tally {
	align-self: flex-start;
	height: 1.1rem;
}

.pb-tile__link:hover .pb-tile__name,
.pb-tile__link:focus-visible .pb-tile__name {
	color: var(--pb-accent);
}

/* Steps: scattered, gathered, counted. */
.pb-steps__intro {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px;
	align-items: end;
	margin-bottom: 48px;
}

.pb-steps__intro p {
	max-width: 46ch;
	margin: 0;
}

.pb-steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-strokes {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 20px;
	border-radius: var(--pb-radius);
	background: var(--pb-paper);
}

.pb-strokes__a { stroke: #c5cad4; }
.pb-strokes__b { stroke: #8d97f2; }
.pb-strokes__c { stroke: var(--pb-accent); }
.pb-strokes__d { stroke: var(--pb-ink); }

.pb-steps__list h3 {
	margin: 0 0 6px;
	font-size: var(--pb-step-lead);
	font-weight: 600;
}

.pb-steps__list p {
	max-width: 34ch;
	margin: 0;
}

/* About: an inset panel in the deep tone. */
.pb-about__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 63fr) minmax(0, 37fr);
	grid-template-rows: auto 1fr;
	gap: 40px 32px;
	width: min(100% - 2 * var(--pb-gutter), var(--pb-shell));
	min-height: 640px;
	margin: 0 auto;
	padding: clamp(28px, 4vw, 56px);
	border-radius: var(--pb-radius);
	background: var(--pb-navy);
	color: #fff;
	overflow: hidden;
}

.pb-about__title {
	max-width: 12ch;
	color: #fff;
}

.pb-about__blocks {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.pb-about__block h3 {
	margin: 0 0 10px;
	color: #fff;
	font-size: var(--pb-step-lead);
	font-weight: 600;
}

.pb-about__block p {
	margin: 0;
	line-height: 1.55;
}

.pb-about__art {
	grid-column: 1;
	grid-row: 2;
	align-self: end;
	width: min(38vw, 460px);
	margin-bottom: calc(-1 * clamp(28px, 4vw, 56px) - 7%);
	color: var(--pb-pink);
}

.pb-about__art .pb-mark__slash {
	stroke: var(--pb-yellow);
}

.pb-about__photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 999px 999px 0 0;
}

/* Listings
   ========================================================================== */
.pb-listing-head {
	margin-bottom: 40px;
	padding: clamp(24px, 3.4vw, 48px);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
}

.pb-listing-head__top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}

.pb-listing-head .page-title {
	margin: 0;
	font-size: clamp(2.25rem, 1.2rem + 3.9vw, 5rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.pb-listing-head .pb-count {
	align-self: center;
}

.pb-listing-head__desc {
	max-width: 62ch;
	margin-top: 14px;
}

.pb-listing-head__desc p:last-child {
	margin-bottom: 0;
}

.pb-listing-head .pb-finder,
.pb-listing-head .pb-searchform {
	max-width: 880px;
	margin-top: 28px;
}

.pb-listing-head .pb-finder + .pb-searchform {
	margin-top: 12px;
}

.pb-author-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.pb-author-head__avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
}

.pb-author-head__text {
	flex: 1;
	min-width: 240px;
}

.pb-breadcrumbs {
	margin-bottom: 14px;
	font-size: var(--pb-step-small);
	color: var(--pb-muted);
}

.pb-breadcrumbs a {
	color: var(--pb-ink);
}

.pb-none {
	padding: 1rem 0 2rem;
	max-width: 560px;
}

/* Pagination */
.pb-pagination {
	margin-top: 56px;
}

.pb-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--pb-surface);
	color: var(--pb-ink);
	font-weight: 600;
	text-decoration: none;
}

.pb-pagination .page-numbers.current,
.pb-pagination a.page-numbers:hover,
.pb-pagination a.page-numbers:focus-visible {
	background: var(--pb-accent);
	color: #fff;
}

.pb-pagination .page-numbers.dots {
	background: transparent;
}

.pb-pagination .prev .pb-icon {
	transform: rotate(180deg);
}

/* Single
   ========================================================================== */
.pb-article {
	max-width: var(--pb-read);
	margin-left: auto;
	margin-right: auto;
}

.pb-article--printable {
	max-width: 1120px;
}

.pb-article__header {
	margin-bottom: 40px;
}

.pb-article--printable .pb-article__header {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 8px clamp(24px, 4vw, 56px);
	align-items: center;
	margin-bottom: 56px;
}

.pb-article__titles {
	grid-column: 1 / -1;
}

.pb-article--printable .entry-title {
	max-width: 18ch;
}

.pb-article__pic .pb-media__img {
	max-height: 78svh;
	object-fit: cover;
}

.pb-article .entry-title,
.pb-page .entry-title {
	margin: 0 0 24px;
	font-size: clamp(2.25rem, 1.2rem + 3.9vw, 5rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.pb-facts {
	margin: 0 0 28px;
}

.pb-facts__row {
	display: grid;
	grid-template-columns: 6.5em minmax(0, 1fr);
	gap: 12px;
	padding: 5px 0;
}

.pb-facts dt {
	color: var(--pb-muted);
	font-weight: 400;
}

.pb-facts dd {
	margin: 0;
	font-weight: 500;
}

.pb-facts a {
	color: var(--pb-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-decoration-color: var(--pb-accent);
}

.pb-facts a:hover {
	color: var(--pb-accent);
}

.pb-download__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pb-download__note {
	margin: 12px 0 0;
	color: var(--pb-muted);
	font-size: var(--pb-step-small);
}

.pb-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.pb-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--pb-surface);
	color: var(--pb-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s var(--pb-ease);
}

.pb-share__btn:hover,
.pb-share__btn:focus-visible {
	background: var(--pb-ink);
	color: #fff;
	transform: translateY(-2px);
}

.pb-article__image {
	margin-bottom: 40px;
}

.pb-article__image img,
.pb-page__image img {
	display: block;
	width: 100%;
	border-radius: var(--pb-radius);
}

.pb-article__body {
	max-width: var(--pb-read);
	margin: 0 auto;
}

/* The closing download, on the accent field. */
.pb-getit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: 56px;
	padding: clamp(24px, 4vw, 40px);
	border-radius: var(--pb-radius);
	background: var(--pb-accent);
	color: #fff;
}

.pb-getit__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
	letter-spacing: -0.035em;
}

.pb-getit .pb-btn {
	background: #fff;
	color: var(--pb-ink);
}

.pb-getit .pb-btn:hover,
.pb-getit .pb-btn:focus-visible {
	background: var(--pb-yellow);
}

.pb-getit .pb-btn--quiet {
	background: var(--pb-accent-deep);
	color: #fff;
}

.pb-getit .pb-btn--quiet:hover,
.pb-getit .pb-btn--quiet:focus-visible {
	background: var(--pb-navy);
	color: #fff;
}

.pb-getit .pb-download__note {
	color: #fff;
}

.pb-article__footer {
	margin-top: 40px;
}

.pb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-tags a {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--pb-surface);
	color: var(--pb-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.pb-tags a:hover,
.pb-tags a:focus-visible {
	background: var(--pb-accent);
	color: #fff;
}

/* Phone download bar */
.pb-dlbar {
	display: none;
}

/* Related */
.pb-related {
	margin-top: clamp(72px, 9vw, 128px);
}

/* Prose: direct children of the content area only
   ========================================================================== */
.pb-prose {
	font-size: var(--pb-step-body);
	line-height: 1.6;
}

:where(.pb-prose, .pb-prose > .wp-block-group, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose .wp-block-column) > :where(p, ul, ol, blockquote, .wp-block-quote, pre, table, .wp-block-table, figure, .wp-block-image, .wp-block-embed, .wp-block-file, .wp-block-buttons, .wp-block-group, .wp-block-columns, .wp-block-gallery) {
	margin-top: 0;
	margin-bottom: 1.25em;
}

:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group) > :where(h2, h3, h4, h5, h6) {
	margin: 1.8em 0 0.5em;
	line-height: 1.1;
	font-weight: 600;
}

:where(.pb-prose) > :where(h2) { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -0.035em; }
:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group) > :where(h3) { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); }
:where(.pb-prose) > :where(h4) { font-size: 1.1875rem; }

:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group) > :where(:first-child) {
	margin-top: 0;
}

:where(.pb-prose) > :where(p:empty:last-child) {
	margin-bottom: 0;
}

:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group, .pb-prose .wp-block-column) > :where(p, ul, ol) a {
	color: var(--pb-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-decoration-color: var(--pb-accent);
}

:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group, .pb-prose .wp-block-column) > :where(p, ul, ol) a:hover {
	color: var(--pb-accent);
}

/* Bullets are strokes. */
:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group) > :where(ul) {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group) > :where(ul) > li {
	position: relative;
	margin-bottom: 0.4em;
	padding-left: 1.3em;
}

:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group) > :where(ul) > li::before {
	content: "";
	position: absolute;
	left: 0.15em;
	top: 0.3em;
	width: 5px;
	height: 1em;
	border-radius: 3px;
	background: var(--pb-accent);
}

:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group) > :where(ol) {
	margin-left: 1.3em;
	padding-left: 0.2em;
}

:where(.pb-prose, .pb-prose > .wp-block-group > .wp-block-group__inner-container, .pb-prose > .wp-block-group) > :where(ol) > li {
	margin-bottom: 0.4em;
	padding-left: 0.3em;
}

:where(.pb-prose) > :where(ol) > li::marker {
	color: var(--pb-accent);
	font-weight: 600;
}

:where(.pb-prose) > :where(.wp-block-image) img,
:where(.pb-prose) > :where(figure) > img {
	border-radius: var(--pb-radius);
}

:where(.pb-prose) .wp-block-image figcaption,
:where(.pb-prose) > figure > figcaption {
	margin-top: 0.6em;
	font-size: var(--pb-step-small);
	color: var(--pb-muted);
	text-align: center;
}

/* Boxes: "What's inside", "Skills practiced", "Teaching tip". */
:where(.pb-prose) .pb-box {
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
	padding: 1.5rem 1.75rem;
}

:where(.pb-prose) .pb-box > :last-child,
:where(.pb-prose) .pb-box > .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

:where(.pb-prose) > :where(blockquote, .wp-block-quote) {
	position: relative;
	padding: 0 0 0 1.5em;
	font-size: var(--pb-step-lead);
	font-weight: 500;
	line-height: 1.35;
}

:where(.pb-prose) > :where(blockquote, .wp-block-quote)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 6px;
	border-radius: 3px;
	background: var(--pb-yellow);
}

/* A break in the text is one tally. */
:where(.pb-prose) > :where(hr, .wp-block-separator) {
	height: 32px;
	border: 0;
	margin: 2.5em auto;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='32' viewBox='0 0 52 32' fill='none' stroke='%231f2de6' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M12 4v24M21 4v24M30 4v24M39 4v24M8 23 43 9'/%3E%3C/svg%3E") center / 52px 32px no-repeat;
}

:where(.pb-prose) > :where(.wp-block-table) table,
:where(.pb-prose) > :where(table) {
	font-size: 1rem;
	background: var(--pb-paper);
	border-radius: 14px;
	overflow: hidden;
}

:where(.pb-prose) > :where(.wp-block-table) thead th,
:where(.pb-prose) > :where(table) thead th {
	background: var(--pb-surface);
}

/* A PDF in a File block is a download. */
:where(.pb-prose) > .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 20px 24px;
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
}

:where(.pb-prose) > .wp-block-file > a:first-child {
	font-weight: 600;
	color: var(--pb-ink);
	text-decoration: none;
}

:where(.pb-prose) .wp-block-file .wp-block-file__button,
:where(.pb-prose) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

:where(.pb-prose) .wp-block-file .wp-block-file__button,
:where(.pb-prose) .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
	background: var(--pb-accent);
	color: #fff;
}

:where(.pb-prose) .wp-block-file .wp-block-file__button:hover,
:where(.pb-prose) .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover {
	background: var(--pb-accent-deep);
	color: #fff;
}

/* Wide and full alignments inside the reading column */
:where(.pb-prose) > .alignwide {
	width: min(100vw - 2 * var(--pb-gutter), 1120px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

:where(.pb-prose) > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.pb-page__header {
	margin-bottom: 1.75rem;
}

.pb-page__image {
	margin-bottom: 2rem;
}

.pb-page-links {
	margin: 2rem 0;
	font-weight: 600;
}

/* Comments
   ========================================================================== */
.pb-comments {
	margin-top: clamp(64px, 8vw, 112px);
	font-size: 1rem;
	line-height: 1.6;
}

.pb-comments__title,
.pb-comments .comment-reply-title {
	display: block;
	margin: 0 0 1.25rem;
	font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.pb-comments .comment-list {
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
}

.pb-comments .comment-list .children {
	list-style: none;
	margin: 0 0 0 2rem;
	padding: 0;
}

.pb-comments .comment-body {
	margin-bottom: 12px;
	padding: 1.25rem 1.5rem;
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
}

.pb-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.pb-comments .comment-author .avatar {
	border-radius: 50%;
}

.pb-comments .comment-author .says {
	display: none;
}

.pb-comments .comment-metadata {
	margin: 4px 0 10px;
	font-size: var(--pb-step-small);
}

.pb-comments .comment-metadata a {
	color: var(--pb-muted);
}

.pb-comments .comment-content p {
	margin-bottom: 0.8em;
}

.pb-comments .reply {
	font-weight: 600;
}

.pb-comments .comment-respond {
	padding: clamp(20px, 3vw, 32px);
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
}

.pb-comments .comment-form p {
	margin-bottom: 1rem;
}

.pb-comments .comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.9375rem;
	font-weight: 600;
}

.pb-comments .comment-form :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%;
}

.pb-comments .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.pb-comments .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.pb-comments .form-submit .submit {
	min-height: 48px;
	padding: 12px 26px;
}

/* Sidebar and widgets
   ========================================================================== */
.pb-sidebar {
	font-size: 1rem;
}

.pb-widget {
	margin-bottom: 2rem;
	padding: 1.5rem;
	border-radius: var(--pb-radius);
	background: var(--pb-surface);
}

.pb-widget__title {
	margin-bottom: 12px;
	font-size: 1.25rem;
}

/* Footer: the mark, built large
   ========================================================================== */
.pb-footer {
	padding: clamp(40px, 6vw, 80px) 0 28px;
	background: var(--pb-accent);
	color: #fff;
	font-size: 1rem;
	line-height: 1.5;
}

.pb-footer__mark {
	display: flex;
	gap: 1.5%;
	margin-bottom: 56px;
	color: #fff;
}

.pb-footer__mark .pb-mark {
	flex: 1;
	min-width: 0;
	height: auto;
}

.pb-footer__mark .pb-mark:nth-child(3n + 2) {
	color: var(--pb-yellow);
}

.pb-footer__mark .pb-mark:nth-child(3n) {
	color: var(--pb-pink);
}

.pb-footer__mark .pb-mark__slash {
	stroke: var(--pb-navy);
}

.pb-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(120px, 1fr));
	gap: 40px 32px;
}

.pb-footer a {
	color: #fff;
	text-decoration: none;
}

.pb-footer a.pb-btn--light {
	color: var(--pb-ink);
}

.pb-footer__name {
	font-size: var(--pb-step-head);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.pb-footer__text {
	max-width: 30ch;
	margin: 14px 0 20px;
}

.pb-footer .pb-social__link {
	background: var(--pb-accent-deep);
	color: #fff;
}

.pb-footer .pb-social__link:hover,
.pb-footer .pb-social__link:focus-visible {
	background: #fff;
	color: var(--pb-accent);
}

.pb-footer__heading {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}

.pb-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-footer__menu li {
	margin-bottom: 8px;
}

.pb-footer__menu a:hover,
.pb-footer__menu a:focus-visible,
.pb-footer__name:hover {
	color: var(--pb-yellow);
}

.pb-footer :focus-visible {
	outline-color: #fff;
}

.pb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 56px;
	padding-right: 64px;
}

.pb-copyright {
	margin: 0;
	font-size: var(--pb-step-small);
}

.pb-to-top {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--pb-ink);
	color: #fff;
	box-shadow: var(--pb-float); /* taste-skill-ignore: overlay or screen-reader clip */
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.pb-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.pb-to-top:hover,
.pb-to-top:focus-visible {
	background: var(--pb-yellow);
	color: var(--pb-ink);
}

/* Entrances
   Parts rise once as they come into view. Without the script nothing is
   hidden; if the script stalls, the failsafe shows everything.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.pb-js [data-reveal] {
		opacity: 0;
		transform: translateY(24px);
		animation: pb-reveal-failsafe 0.01s linear 3s forwards;
	}

	.pb-js [data-reveal].is-in {
		opacity: 1;
		transform: none;
		animation: none;
		transition: opacity 0.6s ease var(--pb-delay, 0ms), transform 0.7s var(--pb-ease) var(--pb-delay, 0ms);
	}

	.pb-hero__mark {
		animation: pb-drift 14s ease-in-out infinite alternate;
	}

	.pb-new__shape {
		animation: pb-sway 9s ease-in-out infinite alternate;
	}
}

@keyframes pb-reveal-failsafe {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes pb-drop {
	from {
		opacity: 0;
		transform: translate(-50%, 6px);
	}
}

@keyframes pb-drift {
	to {
		transform: translate(-3%, -2%) rotate(-3deg);
	}
}

@keyframes pb-sway {
	to {
		transform: translate(-50%, -50%) scale(1.05);
	}
}

/* Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.pb-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pb-subjects {
		grid-template-columns: minmax(0, 1fr);
	}

	.pb-subjects__intro p {
		max-width: 46ch;
	}

	.pb-footer__inner {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.pb-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1024px) {
	:root {
		--pb-header-h: 64px;
	}

	.pb-nav__bar {
		min-height: 64px;
		justify-content: space-between;
	}

	.pb-nav__toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 44px;
		padding: 0 18px 0 14px;
		border-radius: 999px;
		background: var(--pb-ink);
		color: #fff;
		font-size: 1rem;
	}

	.pb-nav__toggle:hover,
	.pb-nav__toggle:focus-visible {
		background: var(--pb-accent);
	}

	/* Bottom sheet */
	.pb-nav__panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 980;
		display: block;
		max-height: 84vh;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
		background: var(--pb-paper);
		border-radius: 24px 24px 0 0;
		box-shadow: var(--pb-float); /* taste-skill-ignore: overlay or screen-reader clip */
		transform: translateY(105%);
		visibility: hidden;
		transition: transform 0.3s var(--pb-ease), visibility 0s linear 0.3s;
	}

	.pb-nav.is-open .pb-nav__panel {
		transform: none;
		visibility: visible;
		transition-delay: 0s;
	}

	.pb-nav__backdrop {
		position: fixed;
		inset: 0;
		z-index: 970;
		display: block;
		background: rgba(11, 12, 14, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0s linear 0.2s;
	}

	.pb-nav.is-open .pb-nav__backdrop {
		opacity: 1;
		visibility: visible;
		transition-delay: 0s;
	}

	/* Lock the viewport without making body the sticky header's scroll parent. */
	html.pb-menu-open {
		overflow: hidden;
	}

	.pb-nav__sheet-head {
		position: sticky;
		top: -8px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -20px 4px;
		padding: 14px 20px 10px;
		background: var(--pb-paper);
		z-index: 1;
	}

	.pb-nav__sheet-title {
		font-size: var(--pb-step-lead);
		font-weight: 600;
		letter-spacing: -0.03em;
	}

	.pb-nav__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: 50%;
		background: var(--pb-surface);
		color: var(--pb-ink);
	}

	.pb-nav__close:hover,
	.pb-nav__close:focus-visible {
		background: var(--pb-accent);
		color: #fff;
	}

	.pb-menu {
		display: block;
	}

	.pb-menu li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.pb-menu > li > a,
	.pb-menu a {
		flex: 1;
		min-height: 54px;
		display: flex;
		align-items: center;
		padding: 0 4px;
		font-size: var(--pb-step-lead);
		font-weight: 600;
		letter-spacing: -0.02em;
	}

	.pb-sub-toggle {
		width: 54px;
		height: 54px;
		margin: 0;
		border-radius: 50%;
	}

	.pb-menu .sub-menu,
	.pb-menu .children {
		display: none;
		flex-basis: 100%;
		margin: 0 0 10px;
		padding: 6px 16px;
		border-radius: var(--pb-radius);
		background: var(--pb-bg);
	}

	.pb-menu .is-sub-open > .sub-menu,
	.pb-menu .is-sub-open > .children {
		display: block;
	}

	.pb-menu .sub-menu a {
		min-height: 48px;
		font-size: 1rem;
		font-weight: 500;
		letter-spacing: 0;
	}

	.pb-social.pb-nav__social {
		display: flex;
		justify-content: center;
		gap: 10px;
		padding-top: 20px;
	}

	.pb-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.pb-hero__stage {
		order: -1;
		height: 46svh;
		min-height: 300px;
	}

	.pb-hero__mark {
		right: -8%;
		bottom: -34%;
		width: min(100%, 560px);
	}

	.pb-hero__card {
		margin-top: -36px;
		position: relative;
	}

	.pb-band {
		height: 44px;
	}

	.pb-hero__text {
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.pb-hero__title {
		font-size: clamp(2.5rem, 9.2vw, 4.75rem);
	}

	.pb-hero__pic a {
		width: 84%;
	}

	.pb-hero__pic .pb-media__img {
		max-height: calc(46svh - 40px);
	}

	.pb-hero__caption {
		display: none;
	}

	.pb-new {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.pb-new__stage {
		order: -1;
		grid-column: 1 / -1;
		height: clamp(380px, 60vw, 560px);
	}

	.pb-new__shape {
		width: min(78%, 480px);
	}

	.pb-about__panel {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		min-height: 0;
	}

	.pb-about__blocks {
		grid-column: 1;
		grid-row: auto;
	}

	.pb-about__art {
		grid-row: auto;
		justify-self: center;
		width: min(70%, 380px);
	}

	body.right-sidebar .pb-site > .site-content,
	body.left-sidebar .pb-site > .site-content {
		grid-template-columns: minmax(0, 1fr);
	}

	body.left-sidebar .pb-sidebar {
		order: 0;
	}
}

@media (max-width: 768px) {
	:root {
		--pb-gutter: 16px;
		--pb-radius: 16px;
	}

	.pb-site {
		padding-top: 0.5rem;
	}

	.pb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 10px;
	}

	.pb-card__title {
		font-size: 1rem;
	}

	.pb-rows {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.pb-browse__head {
		margin-bottom: 28px;
	}

	.pb-row {
		gap: 16px;
	}

	.pb-row__bullet {
		width: 52px;
		height: 52px;
		border-radius: 14px;
	}

	.pb-row__text {
		padding-top: 2px;
	}

	.pb-new {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.pb-steps__intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		margin-bottom: 32px;
	}

	.pb-steps__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.pb-article--printable .pb-article__header {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 40px;
	}

	.pb-download__buttons .pb-btn {
		flex: 1 1 100%;
	}

	.pb-getit .pb-download {
		width: 100%;
	}

	.pb-finder__field {
		flex-basis: 100%;
	}

	.pb-finder__submit {
		flex: 1 1 100%;
	}

	.pb-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pb-footer__mark {
		gap: 3%;
		margin-bottom: 40px;
	}

	.pb-footer__mark .pb-mark:nth-child(n + 4) {
		display: none;
	}

	.pb-comments .comment-list .children {
		margin-left: 1rem;
	}

	/* The download button follows the reader down the page. */
	.pb-dlbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 850;
		display: block;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--pb-paper);
		box-shadow: var(--pb-float); /* taste-skill-ignore: overlay or screen-reader clip */
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 0.25s var(--pb-ease), visibility 0s linear 0.25s;
	}

	.pb-dlbar.is-visible {
		transform: none;
		visibility: visible;
		transition-delay: 0s;
	}

	.pb-dlbar .pb-btn {
		width: 100%;
		min-height: 52px;
	}

	.pb-dlbar-on .pb-to-top {
		bottom: 92px;
	}

}

/* WordPress's phone toolbar scrolls away, so the sticky header must not
   keep an empty toolbar gap. */
@media (max-width: 600px) {
	.admin-bar .pb-nav {
		top: 0;
	}
}

@media (max-width: 600px) {
	.pb-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 8px;
	}

	.pb-tile--wide {
		order: -1;
	}

	.pb-tile__face {
		font-size: clamp(2.5rem, 13vw, 4rem);
	}
}

@media (max-width: 480px) {
	.pb-finder--hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.pb-nav__bar {
		gap: 12px;
	}
}

@media (max-width: 360px) {
	.pb-nav__toggle span {
		display: none;
	}

	.pb-nav__toggle {
		width: 44px;
		padding: 0;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	/* The hero shows its first picture only. */
	.pb-hero__pic:not(.is-current) {
		display: none;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation: none !important;
	}
}

@media print {
	.pb-nav,
	.pb-footer,
	.pb-share,
	.pb-related,
	.pb-comments,
	.pb-to-top,
	.pb-dlbar,
	.pb-getit,
	.pb-download {
		display: none !important;
	}

	body {
		background: #fff;
	}
}
