@font-face {
	font-family: 'NP Andika';
	src: url('../fonts/Andika.ttf') format('truetype');
	font-display: swap;
}
@font-face {
	font-family: 'NP Playwrite US Modern';
	src: url('../fonts/PlaywriteUSModern.ttf') format('truetype');
	font-display: swap;
}
@font-face {
	font-family: 'NP Playwrite US Trad';
	src: url('../fonts/PlaywriteUSTrad.ttf') format('truetype');
	font-display: swap;
}
@font-face {
	font-family: 'NP Playwrite AU NSW';
	src: url('../fonts/PlaywriteAUNSW.ttf') format('truetype');
	font-display: swap;
}
@font-face {
	font-family: 'NP Playwrite AU QLD';
	src: url('../fonts/PlaywriteAUQLD.ttf') format('truetype');
	font-display: swap;
}
@font-face {
	font-family: 'NP Playwrite AU VIC';
	src: url('../fonts/PlaywriteAUVIC.ttf') format('truetype');
	font-display: swap;
}
@font-face {
	font-family: 'NP Playwrite NZ Basic';
	src: url('../fonts/PlaywriteNZBasic.ttf') format('truetype');
	font-display: swap;
}
@font-face {
	font-family: 'NP Playwrite GB S';
	src: url('../fonts/PlaywriteGBS.ttf') format('truetype');
	font-display: swap;
}

/* Brand tokens: the theme's presets when present, the brand values otherwise. */
.np-maker-layout,
.np-preview {
	--np-ink: var(--wp--preset--color--contrast, #203a5f);
	--np-teal: var(--wp--preset--color--teal, #087f8c);
	--np-teal-text: var(--wp--preset--color--teal-text, #07737f);
	--np-muted: var(--wp--preset--color--gray-text, #636b79);
	--np-mist: var(--wp--preset--color--mist, #e4f2f3);
	--np-paper: var(--wp--preset--color--paper, #f6f9fa);
	--np-wood: var(--wp--preset--color--wood, #ffdba5);
	--np-line: #e4e9f0;
	--np-field: #9aa5b1;
	--np-heading: var(--wp--preset--font-family--heading, 'Nunito', system-ui, sans-serif);
	color: var(--np-ink);
}

.np-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
[hidden] {
	display: none !important;
}

/* Two columns on wide screens: the form, and the live preview beside it. */
.np-maker-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: flex-start;
}
.np-maker {
	flex: 3 1 520px;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 22px;
	background: #fff;
	border: 1px solid var(--np-line);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 1px 2px rgb(31 41 51 / 0.06), 0 12px 32px rgb(31 41 51 / 0.08);
}
.np-maker-title,
.np-live-title {
	margin: 0;
	font-family: var(--np-heading);
	font-weight: 800;
	font-size: 1.4rem;
	line-height: 1.25;
}
.np-maker fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.np-maker label,
.np-label {
	font-weight: 700;
}
.np-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.np-label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}
.np-count {
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-maker textarea,
.np-maker select,
.np-maker input[type='text'],
.np-maker input[type='search'],
.np-maker input[type='number'] {
	box-sizing: border-box;
	font: inherit;
	color: var(--np-ink);
	background: #fff;
	border: 1.5px solid var(--np-field);
	border-radius: 10px;
}
.np-maker textarea {
	width: 100%;
	min-height: 150px;
	padding: 12px 14px;
	font-size: 1.05em;
	resize: vertical;
}
.np-maker select,
.np-maker input[type='text'] {
	width: 100%;
	min-height: 48px;
	padding: 0 12px;
}
.np-maker :focus-visible {
	outline: 3px solid #f2a900;
	outline-offset: 2px;
}
.np-import-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}
.np-hint,
.np-privacy,
.np-fit {
	margin: 0;
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-import-row .np-hint {
	flex: 1 1 240px;
}
.np-notice {
	margin: 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff4e3;
	border: 1px solid var(--np-wood);
	font-size: 0.95em;
}
.np-error {
	margin: 0;
	color: #b42318;
	font-weight: 700;
}
.np-error:empty {
	display: none;
}

/* Buttons */
.np-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 10px;
	border: 1.5px solid var(--np-ink);
	background: var(--np-ink);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 0.95em;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
}
.np-button:hover {
	background: #172b47;
}
.np-button.np-primary {
	min-height: 56px;
	font-family: var(--np-heading);
	font-size: 1.15em;
	font-weight: 700;
	border-radius: 12px;
}
.np-button.np-secondary {
	background: #fff;
	color: var(--np-teal-text);
	border-color: var(--np-teal);
}
.np-button.np-secondary:hover {
	background: var(--np-mist);
}
.np-button[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}
.np-link {
	padding: 0 4px;
	min-height: 44px;
	border: 0;
	background: none;
	color: var(--np-teal-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.np-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1.5px solid #cbd2d9;
	background: #fff;
	color: var(--np-ink);
	font-size: 1.4em;
	line-height: 1;
	cursor: pointer;
}
.np-icon-button[disabled] {
	color: #9aa5b1;
	cursor: default;
}

/* What to trace: letter and number tiles, word-list cards */
.np-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.np-items legend {
	margin-bottom: 10px;
}
/* A fixed grid, so nothing jumps between lines as the count or the selected
   tab changes: buttons on the left, the count at the right, wrapping inside
   its own cell. The shape and picture makers put their tabs on a line above. */
.np-item-tools {
	display: grid;
	grid-template-columns: auto auto auto minmax(0, 1fr);
	align-items: center;
	gap: 8px;
}
.np-shapes .np-item-tools {
	grid-template-columns: auto auto minmax(0, 1fr);
}
.np-shapes .np-item-tools .np-segments {
	grid-column: 1 / -1;
	justify-self: start;
}
.np-item-tools .np-count {
	justify-self: end;
	text-align: right;
}
.np-item-count {
	margin: 0;
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	gap: 6px;
}
.np-tile {
	position: relative;
	font-weight: 400 !important;
}
.np-tile input {
	position: absolute;
	opacity: 0;
}
.np-tile span[aria-hidden] {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 1.5px solid #cbd2d9;
	border-radius: 10px;
	background: #fff;
	/* The schoolhouse print font: a plain 0 and the a children write, where
	   the body font has a slashed zero and a two-storey a. */
	font-family: 'NP Andika', var(--np-heading);
	font-size: 1.25em;
	cursor: pointer;
}
.np-tile input:checked + span {
	background: var(--np-teal);
	border-color: var(--np-teal);
	color: #fff;
	font-weight: 700;
}
.np-tile input:focus-visible + span {
	outline: 3px solid #f2a900;
	outline-offset: 2px;
}
.np-lists {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 8px;
}
.np-list-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border: 1.5px solid var(--np-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-weight: 400 !important;
	line-height: 1.35;
}
.np-list-card input {
	position: absolute;
	opacity: 0;
}
.np-list-title {
	font-family: var(--np-heading);
	font-weight: 700;
}
.np-list-meta {
	font-size: 0.85em;
	color: var(--np-muted);
}
.np-list-card:has(input:checked) {
	border-color: var(--np-teal);
	box-shadow: 0 0 0 1.5px var(--np-teal);
	background: #f2f9f9;
}
.np-list-card:has(input:focus-visible) {
	outline: 3px solid #f2a900;
	outline-offset: 2px;
}

/* Shapes and pre-writing lines: drawn tiles, one tab showing at a time */
.np-link.np-muted {
	color: var(--np-muted);
}
.np-shapes:has(input[name='tileTab'][value='shapes']:checked) .np-shape-tiles:not([data-group='shapes']),
.np-shapes:has(input[name='tileTab'][value='lines']:checked) .np-shape-tiles:not([data-group='lines']),
.np-shapes:has(input[name='tileTab'][value='fruits']:checked) .np-shape-tiles:not([data-group='fruits']),
.np-shapes:has(input[name='tileTab'][value='animals']:checked) .np-shape-tiles:not([data-group='animals']),
.np-shapes:has(input[name='tileTab'][value='people']:checked) .np-shape-tiles:not([data-group='people']),
.np-shapes:has(input[name='tileTab'][value='home']:checked) .np-shape-tiles:not([data-group='home']) {
	display: none;
}
.np-word-under {
	margin-top: 4px;
}
.np-shape-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 8px;
}
.np-shape-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 6px 8px;
	border: 1.5px solid var(--np-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-size: 0.9em;
	font-weight: 400 !important;
	line-height: 1.25;
	text-align: center;
}
.np-shape-tile input {
	position: absolute;
	opacity: 0;
}
.np-shape-tile svg {
	width: 64px;
	height: 64px;
	fill: none;
	stroke: var(--np-ink);
	stroke-width: 3.5;
	stroke-dasharray: 7 6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.np-shape-tile:has(input:checked) {
	border-color: var(--np-teal);
	box-shadow: 0 0 0 1.5px var(--np-teal);
	background: #f2f9f9;
}
/* A tick in the corner, so the choice doesn't rely on colour alone. */
.np-shape-tile:has(input:checked)::after {
	content: '';
	position: absolute;
	top: 6px;
	right: 6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--np-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.np-shape-tile:has(input:focus-visible) {
	outline: 3px solid #f2a900;
	outline-offset: 2px;
}

/* Style picker */
.np-picker {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.np-picker legend {
	margin-bottom: 10px;
}
.np-picker-current {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 8px 8px 12px;
	border: 1.5px solid var(--np-field);
	border-radius: 12px;
}
.np-picker-sample {
	flex: 0 0 auto;
	width: 120px;
	height: auto;
}
.np-picker-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}
.np-picker-meta,
.np-style-meta {
	font-size: 0.85em;
	color: var(--np-muted);
	font-weight: 400;
}
.np-picker-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--np-line);
	border-radius: 14px;
	background: var(--np-paper);
}
.np-picker-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.np-picker-search {
	flex: 1 1 220px;
	min-height: 44px;
	padding: 0 12px;
	border-width: 1px !important;
}
.np-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.np-chip {
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid #cbd2d9;
	background: #fff;
	color: var(--np-ink);
	font: inherit;
	font-weight: 700;
	font-size: 0.9em;
	cursor: pointer;
}
.np-chip[aria-pressed='true'] {
	background: var(--np-ink);
	border-color: var(--np-ink);
	color: #fff;
}
.np-style-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
	gap: 10px;
}
.np-style-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 8px 10px;
	border: 1.5px solid var(--np-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	line-height: 1.3;
}
.np-style-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.np-style-card img {
	width: 100%;
	height: auto;
	border: 1px solid var(--np-line);
	border-radius: 8px;
}
.np-style-name {
	font-family: var(--np-heading);
	font-weight: 700;
	font-size: 0.95em;
}
.np-style-card:has(input:checked) {
	border-color: var(--np-teal);
	box-shadow: 0 0 0 1.5px var(--np-teal);
	background: #f2f9f9;
}
.np-style-card:has(input:checked)::after {
	content: '✓';
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--np-teal);
	color: #fff;
	font-size: 13px;
	line-height: 22px;
	text-align: center;
}
.np-style-card:has(input:focus-visible) {
	outline: 3px solid #f2a900;
	outline-offset: 2px;
}
.np-picker-none {
	margin: 0;
}
.np-picker-foot,
.np-more-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-picker-foot a {
	color: var(--np-teal-text);
	font-weight: 700;
}

/* Joining cards */
.np-joining legend {
	margin-bottom: 10px;
}
.np-choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 8px;
}
.np-choice {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid #cbd2d9;
	border-radius: 12px;
	cursor: pointer;
	font-weight: 400 !important;
}
.np-choice-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.np-choice-head input {
	width: 20px;
	height: 20px;
	margin: 3px 0 0;
	accent-color: var(--np-teal);
}
.np-choice-head > span {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}
.np-choice-head strong {
	font-family: var(--np-heading);
	font-size: 1.1em;
}
.np-choice-head span span {
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-choice img {
	width: 100%;
	height: auto;
	opacity: 0.6;
}
.np-choice:has(input:checked) {
	border-color: var(--np-teal);
	box-shadow: 0 0 0 1.5px var(--np-teal);
	background: #f2f9f9;
}
.np-choice:has(input:checked) img {
	opacity: 1;
}

/* More options */
.np-more {
	border: 1px solid var(--np-line);
	border-radius: 12px;
}
.np-more summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 0 16px;
	cursor: pointer;
	list-style: none;
}
.np-more summary::-webkit-details-marker {
	display: none;
}
.np-more summary::after {
	content: '▾';
	margin-left: 4px;
}
.np-more[open] summary::after {
	content: '▴';
}
.np-more-title {
	font-weight: 700;
}
.np-more-summary {
	flex: 1 1 auto;
	text-align: right;
	font-size: 0.85em;
	color: var(--np-muted);
}
.np-more-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	border-top: 1px solid var(--np-line);
}
.np-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px 20px;
}
.np-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
.np-option-label {
	font-weight: 700;
	font-size: 0.95em;
}
.np-stepper {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid var(--np-field);
	border-radius: 12px;
	overflow: hidden;
}
.np-stepper input {
	width: 48px;
	min-height: 44px;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center;
	font-weight: 700 !important;
	-moz-appearance: textfield;
}
.np-stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}
.np-step {
	width: 44px;
	height: 44px;
	border: 0;
	background: #fff;
	color: var(--np-ink);
	font-size: 1.3em;
	cursor: pointer;
}
.np-segments {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 3px;
	padding: 3px;
	border-radius: 12px;
	background: #eef2f6;
}
.np-segment {
	position: relative;
	font-weight: 500 !important;
}
.np-segment input {
	position: absolute;
	opacity: 0;
}
.np-segment span {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 9px;
	font-size: 0.9em;
	cursor: pointer;
}
/* An invisible bold copy keeps each label as wide as when it's selected, so
   choosing a tab doesn't shift the others. */
.np-segment span::after {
	content: attr(data-label);
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: 700;
}
.np-segment input:checked + span {
	background: #fff;
	box-shadow: 0 1px 3px rgb(31 41 51 / 0.2);
	font-weight: 700;
}
.np-segment input:focus-visible + span {
	outline: 3px solid #f2a900;
}
.np-checks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 4px 20px;
}
.np-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	padding: 6px 0;
	font-weight: 400 !important;
	cursor: pointer;
}
.np-check input {
	width: 20px;
	height: 20px;
	margin: 3px 0 0;
	accent-color: var(--np-teal);
}
.np-check > span {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}
.np-check span span {
	font-size: 0.85em;
	color: var(--np-muted);
}

/* Live preview: sticky beside the form on wide screens. */
.np-live {
	flex: 2 1 320px;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--np-line);
	border-radius: 16px;
	background: var(--np-paper);
}
@media (min-width: 900px) {
	.np-live {
		position: sticky;
		top: 24px;
		max-height: calc(100vh - 48px);
		overflow-y: auto;
	}
}
/* On a short window the panel scrolls; its parts never shrink, or the
   thumbnail strip (a scroller itself) collapses to nothing. */
.np-live > * {
	flex-shrink: 0;
}
.np-live-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.np-live-status {
	margin: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}
.np-live-item {
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-live-nav {
	display: flex;
	gap: 6px;
}
.np-live-sheet .sheet {
	display: block;
	/* As tall as the window allows (up to about 340px wide), so the thumbnails
	   below stay in view on laptop screens; the width follows the page shape. */
	height: clamp(240px, calc(100vh - 340px), 440px);
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	border: 1px solid var(--np-line);
	border-radius: 4px;
	box-shadow: 0 8px 22px rgb(31 41 51 / 0.14);
}
.np-live-empty {
	margin: 0;
	padding: 40px 20px;
	text-align: center;
	color: var(--np-muted);
	border: 1px dashed #cbd2d9;
	border-radius: 4px;
	background: #fff;
}
.np-live-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 6px;
}
.np-live-thumbs:empty {
	display: none;
}
.np-thumb {
	flex: 0 0 auto;
	width: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 0 0 0 3px;
	border: 0;
	border-left: 3px solid transparent;
	background: none;
	color: var(--np-muted);
	font: inherit;
	font-size: 12px;
	cursor: grab;
}
.np-thumb .sheet {
	width: 100%;
	height: auto;
	border: 1px solid #cbd2d9;
	border-radius: 2px;
	background: #fff;
}
.np-thumb[aria-current='page'] .sheet {
	border: 2px solid var(--np-teal);
}
.np-thumb[aria-current='page'] {
	font-weight: 700;
	color: var(--np-ink);
}
.np-thumb.is-dragging {
	opacity: 0.4;
}
.np-thumb.is-target {
	border-left-color: var(--np-teal);
}
.np-thumb-more {
	align-self: center;
	padding: 0 6px;
	font-size: 13px;
	color: var(--np-muted);
	white-space: nowrap;
}
.np-live-move {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-live-note {
	margin: 0;
	text-align: center;
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-live-note:empty {
	display: none;
}
.np-live-gets {
	list-style: none;
	margin: 14px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--np-line);
	display: grid;
	gap: 8px;
	font-size: 0.95em;
}
.np-live-gets li {
	position: relative;
	padding-left: 26px;
}
/* A teal tick in a circle, drawn in CSS so no icon file is needed. */
.np-live-gets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--np-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

@media (max-width: 600px) {
	.np-maker,
	.np-live {
		padding: 18px;
	}
	.np-picker-current {
		flex-wrap: wrap;
	}
	.np-picker-sample {
		width: 96px;
	}
	.np-picker-text {
		flex-basis: 120px;
	}
	.np-picker-toggle {
		flex: 1 1 100%;
	}
}

/* Preview page */
.np-preview {
	background: var(--np-paper);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 36px 0 64px;
}
.np-preview-wrap {
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 1160px) + 40px);
	margin: 0 auto;
	padding: 0 20px;
}
.np-back {
	display: inline-block;
	margin-bottom: 10px;
	font-weight: 700;
	color: var(--np-teal-text);
	text-decoration: none;
}
.np-back:hover {
	text-decoration: underline;
}
.np-preview-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}
.np-preview-title {
	margin: 0;
	font-family: var(--np-heading);
	font-size: clamp(2.2rem, 4vw, 3rem);
	line-height: 1.12;
}
.np-status {
	margin: 8px 0 0;
	font-size: 1.05em;
	color: var(--np-muted);
}
.np-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.np-button.np-button-lg {
	min-height: 52px;
	padding: 0 22px;
	border-radius: 12px;
	font-family: var(--np-heading);
	font-weight: 700;
	font-size: 1em;
}
.np-preview-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 28px;
}
.np-showing {
	margin: 0;
	color: var(--np-muted);
}
.np-showing:empty {
	display: none;
}
.np-find {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	font-weight: 700;
}
.np-find input {
	min-height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--np-field);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-weight: 400;
}
.np-sheets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 24px;
	margin-top: 20px;
}
.np-sheets figure {
	margin: 0;
}
.np-sheets figcaption {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
	font-size: 0.9em;
	color: var(--np-muted);
}
.np-sheets figcaption strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--np-ink);
}
.np-sheets .sheet {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgb(31 41 51 / 0.08), 0 8px 20px rgb(31 41 51 / 0.08);
	background: #fff;
}
.np-sheets figure[hidden] {
	display: none;
}
.np-more-pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 28px;
}
.np-extra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
	padding: 16px 20px;
	border-radius: 14px;
	background: #fff4e3;
	border: 1px solid var(--np-wood);
}
.np-extra[hidden] {
	display: none;
}
.np-extra p {
	flex: 1 1 420px;
	margin: 0;
}
.np-preview-notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 48px;
}
.np-preview-notes[hidden] {
	display: none;
}
.np-note {
	padding: 22px 24px;
	border: 1px solid var(--np-line);
	border-radius: 14px;
	background: #fff;
}
.np-note h2 {
	margin: 0 0 8px;
	font-family: var(--np-heading);
	font-size: 1.15rem;
}
.np-note ul {
	margin: 0;
	padding-left: 1.2em;
	color: var(--np-muted);
}
.np-note li + li {
	margin-top: 6px;
}
.np-note p {
	margin: 0;
	color: var(--np-ink);
}
.np-note-private {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #fff4e3;
	border-color: var(--np-wood);
}
.np-note-private > svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: #b4690e;
}
.np-empty {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	margin-top: 28px;
	padding: 32px;
	border: 1px solid var(--np-line);
	border-radius: 16px;
	background: #fff;
}
.np-empty[hidden] {
	display: none;
}
.np-empty h2 {
	margin: 0 0 10px;
	font-family: var(--np-heading);
	font-size: 1.6rem;
}
.np-empty p {
	margin: 0 0 18px;
	color: var(--np-muted);
}
.np-empty-makers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.np-empty-makers a {
	display: block;
	padding: 7px 14px;
	border: 1.5px solid var(--np-teal);
	border-radius: 999px;
	color: var(--np-teal-text);
	font-weight: 700;
	text-decoration: none;
}
.np-empty-makers a:hover {
	background: var(--np-mist);
}
.np-empty figure {
	margin: 0;
	text-align: center;
}
.np-empty img {
	display: block;
	width: 100%;
	max-width: 200px;
	height: auto;
	margin: 0 auto;
	box-shadow: 0 8px 20px rgb(31 41 51 / 0.1);
}
.np-empty figcaption {
	margin-top: 8px;
	font-size: 0.9em;
	color: var(--np-muted);
}
@media (max-width: 700px) {
	.np-empty {
		grid-template-columns: 1fr;
		padding: 22px;
	}
}

/* Handwriting samples in page content, e.g. <p class="np-sample np-font-au-nsw"> */
.np-sample {
	font-size: 2rem;
	line-height: 1.3;
}
.np-font-au-nsw {
	font-family: 'NP Playwrite AU NSW', cursive;
	font-feature-settings: 'calt' 0;
}
.np-font-au-qld {
	font-family: 'NP Playwrite AU QLD', cursive;
	font-feature-settings: 'calt' 0;
}
.np-font-au-vic {
	font-family: 'NP Playwrite AU VIC', cursive;
	font-feature-settings: 'calt' 0;
}
.np-font-nz-basic {
	font-family: 'NP Playwrite NZ Basic', cursive;
	font-feature-settings: 'calt' 0;
}
.np-font-uk-precursive {
	font-family: 'NP Playwrite GB S', cursive;
	font-feature-settings: 'calt' 0;
}
.np-font-us-dnealian {
	font-family: 'NP Playwrite US Modern', cursive;
	font-feature-settings: 'calt' 0;
}
.np-font-us-cursive {
	font-family: 'NP Playwrite US Trad', cursive;
}
.np-font-us-print {
	font-family: 'NP Andika', sans-serif;
}

.np-editor-placeholder {
	border: 1px dashed var(--np-line, #e4e9f0);
	border-radius: 8px;
	padding: 16px;
}
