/*
 * New hire paperwork checklist: the block's own component styles (loaded only where the block is).
 * Built from the disclosure form generator's stylesheet (es-disclosure-form/style.css), re-prefixed esnh-:
 * the form panel, segmented radios, labeled fields and hints, the paper sheet, the lists under it, the print rules.
 * Added at the end: the checklist (group headings, check box items, due lines, links and law lines).
 *
 * Token bridge: every value reads a theme.json variable (--wp--preset--* / --wp--custom--*); the fallback after each
 * comma is the approved token value. Literal px are component dimensions. Status is amber or crimson, never mint.
 * Nothing here styles anything outside the block, except the print rules, which print the form set alone when the
 * Print button is used (the same Article VII record as tool 3, docs/decisions.md).
 */

.wp-block-esservices-new-hire-packet,
.esnh-print-root {
	--esnh-surface: var(--wp--custom--color--surface, #FDFCFE);
	--esnh-surface-inset: var(--wp--custom--color--surface-inset, #F6F5F9);
	--esnh-text: var(--wp--custom--color--text, #1B1721);
	--esnh-text-strong: var(--wp--custom--color--text-strong, #0F0D14);
	--esnh-text-muted: var(--wp--custom--color--text-muted, #575261);
	--esnh-text-quiet: var(--wp--custom--color--text-quiet, #726D7B);
	--esnh-line: var(--wp--custom--color--line, #DDDBE4);
	--esnh-line-strong: var(--wp--custom--color--line-strong, #8E8A97);
	--esnh-action: var(--wp--custom--color--action, #723FB4);
	--esnh-callout-label: var(--wp--custom--color--callout-label, #592D91);
	--esnh-status-action: var(--wp--custom--color--status-action, #935A11);
	--esnh-status-deficiency: var(--wp--custom--color--status-deficiency, #9E231E);
	--esnh-selected: var(--wp--preset--color--purple-50, #F7F4FE);
	--esnh-highlight: var(--wp--preset--color--mint-100, #D1F7E7);
	--esnh-paper: var(--wp--preset--color--neutral-0, #FDFCFE);
	--esnh-paper-text: var(--wp--preset--color--neutral-900, #1B1721);
	--esnh-paper-strong: var(--wp--preset--color--neutral-950, #0F0D14);
	--esnh-paper-muted: var(--wp--preset--color--neutral-600, #575261);
	--esnh-paper-rule: var(--wp--preset--color--neutral-400, #8E8A97);
	--esnh-paper-shadow: var(--wp--preset--color--purple-900, #2B1349);

	--esnh-font: var(--wp--preset--font-family--inter, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
	--esnh-mono: var(--wp--preset--font-family--mono, "JetBrains Mono", ui-monospace, SFMono-Regular, monospace);
	--esnh-caption: var(--wp--preset--font-size--caption, 0.75rem);
	--esnh-small: var(--wp--preset--font-size--small, 0.875rem);
	--esnh-body: var(--wp--preset--font-size--body, 1.0625rem);

	--esnh-hairline: var(--wp--preset--spacing--hairline, 0.25rem);
	--esnh-tight: var(--wp--preset--spacing--tight, 0.375rem);
	--esnh-snug: var(--wp--preset--spacing--snug, 0.625rem);
	--esnh-base: var(--wp--preset--spacing--base, 1rem);
	--esnh-loose: var(--wp--preset--spacing--loose, 1.625rem);
	--esnh-wide: var(--wp--preset--spacing--wide, 2.625rem);

	--esnh-leading-body: var(--wp--custom--leading--body, 1.6);
	--esnh-leading-ui: var(--wp--custom--leading--ui, 1.4);
	--esnh-tracking-body: var(--wp--custom--tracking--body, 0em);
	--esnh-tracking-ui: var(--wp--custom--tracking--ui, 0.01em);
	--esnh-tracking-label: var(--wp--custom--tracking--label, 0.08em);
}

/* Resets inside the component only (the theme sets neither border-box sizing nor these margins). */
.wp-block-esservices-new-hire-packet *,
.wp-block-esservices-new-hire-packet *::before,
.wp-block-esservices-new-hire-packet *::after,
.esnh-print-root * { box-sizing: border-box; }
.wp-block-esservices-new-hire-packet :where(p, h3, h4, ul, li, fieldset, legend) { margin: 0; }
.wp-block-esservices-new-hire-packet [hidden] { display: none !important; }
.wp-block-esservices-new-hire-packet :focus-visible { outline: 2px solid var(--esnh-action); outline-offset: 2px; }

/* The structural (mono) voice: label + meta, as in tool 1. */
.esnh-label { font: 500 var(--esnh-caption)/var(--esnh-leading-ui) var(--esnh-mono); letter-spacing: var(--esnh-tracking-label); text-transform: uppercase; }
.esnh-next { margin: var(--esnh-loose) 0 0; padding-top: var(--esnh-snug); border-top: 1px solid var(--esnh-line); font-size: var(--esnh-small); }
.esnh-meta { font: 400 var(--esnh-caption)/var(--esnh-leading-body) var(--esnh-mono); letter-spacing: var(--esnh-tracking-body); }
.esnh-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.esnh-cite { font: 500 var(--esnh-caption)/var(--esnh-leading-ui) var(--esnh-mono); letter-spacing: var(--esnh-tracking-ui); color: var(--esnh-callout-label); overflow-wrap: anywhere; }
a.esnh-cite { text-decoration: underline; }
a.esnh-cite:hover { color: var(--esnh-action); }
.wp-block-esservices-new-hire-packet .esnh-unavailable { font-size: var(--esnh-small); color: var(--esnh-text-muted); }

/* Buttons: the theme.json button element sets color, type, padding and radius; the quiet variant is here. */
.wp-block-esservices-new-hire-packet .esnh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--esnh-tight);
	white-space: nowrap; cursor: pointer;
}
.wp-block-esservices-new-hire-packet .esnh-btn-quiet,
.wp-block-esservices-new-hire-packet .esnh-btn-quiet:hover {
	background: var(--esnh-surface); color: var(--esnh-text-strong); box-shadow: inset 0 0 0 1px var(--esnh-line-strong);
}
.wp-block-esservices-new-hire-packet .esnh-btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--esnh-text-strong); }
.wp-block-esservices-new-hire-packet .esnh-btn[aria-disabled="true"] { cursor: progress; }

/* ── The generator: form panel (4) + letter column (8) ── */
.esnh-gen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--esnh-wide); align-items: start; }
.esnh-panel { background: var(--esnh-surface-inset); border-radius: 8px; padding: var(--esnh-loose); }
.esnh-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.esnh-panel > fieldset + fieldset { margin-top: var(--esnh-loose); padding-top: var(--esnh-loose); border-top: 1px solid var(--esnh-line); }
.esnh-panel legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--esnh-base); color: var(--esnh-text-muted); }
.esnh-panel legend + * { clear: both; }

/* Segmented choices (radio cards) */
.esnh-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esnh-snug); margin: 0 0 var(--esnh-base); }
.esnh-seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* One card per row: the issue question, whose labels are too long for three columns in the form panel. */
.esnh-seg-stack { grid-template-columns: minmax(0, 1fr); }
.esnh-seg label { position: relative; display: block; cursor: pointer; }
.esnh-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.esnh-seg span { display: block; height: 100%; background: var(--esnh-surface); border: 1px solid var(--esnh-line-strong); border-radius: 6px; padding: var(--esnh-snug); font-size: var(--esnh-small); line-height: var(--esnh-leading-ui); }
.esnh-seg span b { display: block; font-weight: 600; color: var(--esnh-text-strong); }
.esnh-seg span i { display: block; font-style: normal; color: var(--esnh-text-muted); }
.esnh-seg input:checked + span { border-color: var(--esnh-action); box-shadow: inset 0 0 0 1px var(--esnh-action); background: var(--esnh-selected); }
.esnh-seg input:focus-visible + span { outline: 2px solid var(--esnh-action); outline-offset: 2px; }
.esnh-sub legend { float: none; width: auto; margin: 0 0 var(--esnh-tight); font-size: var(--esnh-small); font-weight: 500; line-height: var(--esnh-leading-ui); color: var(--esnh-text-strong); }
.esnh-sub legend em { font-style: normal; font-weight: 400; color: var(--esnh-text-muted); }

/* Check boxes: the optional facts about the report, the city contracts, Missouri's record source. */
.esnh-checks { display: grid; gap: var(--esnh-tight); margin: 0 0 var(--esnh-base); }
.esnh-check { display: flex; align-items: flex-start; gap: var(--esnh-tight); font-size: var(--esnh-small); line-height: var(--esnh-leading-ui); color: var(--esnh-text-strong); cursor: pointer; }
.esnh-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--esnh-action); cursor: pointer; }
.esnh-panel .esnh-check + .esnh-f, .esnh-panel .esnh-f + .esnh-check { margin-top: calc(-1 * var(--esnh-tight)); }
.esnh-panel > fieldset > .esnh-check { margin: 0 0 var(--esnh-base); }

/* Fields */
.esnh-f { display: block; margin: 0 0 var(--esnh-base); }
.esnh-f > span { display: block; font-size: var(--esnh-small); font-weight: 500; line-height: var(--esnh-leading-ui); color: var(--esnh-text-strong); margin-bottom: var(--esnh-tight); }
.esnh-f > span em { font-style: normal; font-weight: 400; color: var(--esnh-text-muted); }
.esnh-f > span em.esnh-req { color: var(--esnh-status-action); }
.esnh-f input, .esnh-f select, .esnh-f textarea {
	display: block; width: 100%; min-width: 0; box-sizing: border-box;
	font: 400 var(--esnh-body)/var(--esnh-leading-ui) var(--esnh-font); color: var(--esnh-text-strong);
	background: var(--esnh-surface); border: 1px solid var(--esnh-line-strong); border-radius: 5px; padding: var(--esnh-snug);
}
.esnh-f textarea { resize: vertical; min-height: 5.5em; }
.esnh-f input::placeholder, .esnh-f textarea::placeholder { color: var(--esnh-text-quiet); opacity: 1; }
.esnh-f input:focus, .esnh-f select:focus, .esnh-f textarea:focus { outline: 2px solid var(--esnh-action); outline-offset: 1px; border-color: var(--esnh-action); }
.esnh-f.esnh-is-empty input, .esnh-f.esnh-is-empty textarea { border-color: var(--esnh-status-action); box-shadow: inset 3px 0 0 var(--esnh-status-action); }
.esnh-f.esnh-is-bad input { border-color: var(--esnh-status-deficiency); box-shadow: inset 3px 0 0 var(--esnh-status-deficiency); }
.esnh-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--esnh-base); }
.wp-block-esservices-new-hire-packet .esnh-hint { font-size: var(--esnh-small); line-height: var(--esnh-leading-body); color: var(--esnh-text-muted); margin: calc(-1 * var(--esnh-snug)) 0 var(--esnh-base); }
.wp-block-esservices-new-hire-packet .esnh-hint.esnh-is-action { color: var(--esnh-status-action); }
.wp-block-esservices-new-hire-packet .esnh-hint.esnh-is-bad { color: var(--esnh-status-deficiency); }

/* ── The letter column ── */
.esnh-mbar { display: none; }
.esnh-out { min-width: 0; }
.esnh-out-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--esnh-base); margin-bottom: var(--esnh-snug); }
.wp-block-esservices-new-hire-packet .esnh-out-head h3 { color: var(--esnh-text-muted); }
.esnh-edit { display: none; font-size: var(--esnh-small); font-weight: 500; }
.esnh-toolbar { display: flex; flex-wrap: wrap; gap: var(--esnh-snug); }
.wp-block-esservices-new-hire-packet .esnh-notes { margin-top: var(--esnh-snug); margin-bottom: var(--esnh-base); color: var(--esnh-text-muted); }
.esnh-left.esnh-is-action { color: var(--esnh-status-action); }
.esnh-left.esnh-is-bad { color: var(--esnh-status-deficiency); }

/* The response deadline: ink with a left rule; amber when a date or a step is missing (tool 1's status pattern). */
.esnh-deadline {
	margin: 0 0 var(--esnh-base); padding: var(--esnh-snug) var(--esnh-base);
	font-size: var(--esnh-small); line-height: var(--esnh-leading-body);
	border-left: 3px solid var(--esnh-line-strong); background: var(--esnh-surface);
}
.esnh-deadline:empty { display: none; }
.esnh-deadline.esnh-is-action { border-left-color: var(--esnh-status-action); background: color-mix(in srgb, var(--esnh-status-action) 8%, var(--esnh-surface)); }
.esnh-deadline.esnh-is-bad { border-left-color: var(--esnh-status-deficiency); background: color-mix(in srgb, var(--esnh-status-deficiency) 6%, var(--esnh-surface)); }
.esnh-deadline b { font-weight: 600; color: var(--esnh-text-strong); }
.esnh-deadline .esnh-dl-bad b { color: var(--esnh-status-deficiency); }
.esnh-conds { margin-top: var(--esnh-tight); padding-left: 1.25em; display: grid; gap: var(--esnh-hairline); color: var(--esnh-text-muted); }

/* What to check first: one short amber line above the sheet (the count, and the required forms that go with
   this letter); the full list is the first section under the sheet. */
.esnh-warn {
	margin: 0 0 var(--esnh-base); padding: var(--esnh-snug) var(--esnh-base);
	font-size: var(--esnh-small); line-height: var(--esnh-leading-body);
	border-left: 3px solid var(--esnh-status-action); background: color-mix(in srgb, var(--esnh-status-action) 6%, var(--esnh-surface));
}
.esnh-warn b { font-weight: 600; color: var(--esnh-status-action); }
.esnh-warn .esnh-list { margin-top: var(--esnh-tight); }
.wp-block-esservices-new-hire-packet .esnh-sec-warn > h4 { color: var(--esnh-status-action); }
.esnh-warn a, .esnh-list a { overflow-wrap: anywhere; }

/* The sheet */
.esnh-paper {
	overflow-wrap: anywhere;
	background: var(--esnh-paper); border: 1px solid var(--esnh-line); border-radius: 3px;
	box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--esnh-paper-shadow) 35%, transparent);
	padding: var(--esnh-loose) var(--esnh-wide) var(--esnh-wide);
	font-size: var(--esnh-small); line-height: var(--esnh-leading-body); color: var(--esnh-paper-text);
}
.esnh-paper :where(p, ul) { margin: 0; }
.esnh-paper .esnh-loading { color: var(--esnh-text-muted); }
.esnh-paper :where(p, ul) + :where(p, ul) { margin-top: var(--esnh-base); }
.esnh-lh { border-bottom: 1px solid var(--esnh-line); padding-bottom: var(--esnh-snug); margin-bottom: var(--esnh-base); }
.esnh-lh b { display: block; font-size: var(--esnh-body); line-height: var(--esnh-leading-ui); color: var(--esnh-paper-strong); }
.esnh-lh small { display: block; font-size: var(--esnh-caption); line-height: var(--esnh-leading-body); color: var(--esnh-paper-muted); }
.esnh-items { padding-left: 1.25em; }
.esnh-items li + li { margin-top: var(--esnh-hairline); }
.esnh-paper .esnh-sig { margin-top: var(--esnh-loose); }
.esnh-sigline { height: var(--esnh-wide); border-bottom: 1px solid var(--esnh-paper-rule); width: min(260px, 70%); margin: var(--esnh-base) 0 var(--esnh-tight); }
.esnh-paper .esnh-sig-name { margin-top: 0; }
.esnh-paper .esnh-encl { margin-top: var(--esnh-loose); }
/* A page printed with the letter (New Jersey's rights page): a dashed rule marks the new page on screen. */
.esnh-pagebreak { border-top: 1px dashed var(--esnh-line-strong); margin: var(--esnh-wide) calc(-1 * var(--esnh-wide)) 0; }
.esnh-paper .esnh-pagebreak + * { margin-top: var(--esnh-wide); }
.esnh-att-title { font-size: var(--esnh-body); font-weight: 600; color: var(--esnh-paper-strong); }
.esnh-paper .esnh-att-h { margin-top: var(--esnh-loose); }
.esnh-att-src { font-size: var(--esnh-caption); color: var(--esnh-paper-muted); }
.esnh-v { background: var(--esnh-highlight); box-shadow: 0 0 0 2px var(--esnh-highlight); border-radius: 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.esnh-v.esnh-nw { white-space: nowrap; }
.esnh-v.esnh-empty { background: none; box-shadow: none; border-bottom: 1px dashed var(--esnh-line-strong); color: var(--esnh-text-quiet); }

/* The lists under the sheet: "Send with this letter", "Before you send", the rules */
.esnh-sec { margin-top: var(--esnh-loose); padding-top: var(--esnh-base); border-top: 1px solid var(--esnh-line); font-size: var(--esnh-small); line-height: var(--esnh-leading-body); }
.wp-block-esservices-new-hire-packet .esnh-sec > h4 { color: var(--esnh-text-muted); margin-bottom: var(--esnh-snug); }
.esnh-list { padding-left: 1.25em; display: grid; gap: var(--esnh-tight); }
.esnh-list li.esnh-is-action { color: var(--esnh-status-action); }
.esnh-src { display: block; color: var(--esnh-text-muted); font-size: var(--esnh-caption); }
.esnh-cites { list-style: none; padding: 0; display: grid; gap: var(--esnh-tight); }
.esnh-cites b { font-weight: 600; color: var(--esnh-text-strong); margin-right: var(--esnh-tight); }
.wp-block-esservices-new-hire-packet .esnh-sec .esnh-notes { margin: var(--esnh-snug) 0 0; }

@media (forced-colors: active) {
	.esnh-seg input:checked + span { border: 3px solid Highlight; padding: calc(var(--esnh-snug) - 2px); }
}

/* ── Narrow screens: one column, a sticky "Preview letter" bar, an "Edit details" link back ── */
@media (max-width: 1023px) {
	:root:has(.wp-block-esservices-new-hire-packet) { scroll-padding-bottom: calc(var(--wp--preset--spacing--section, 4.25rem) + var(--wp--preset--spacing--snug, 0.625rem) + env(safe-area-inset-bottom)); }
	.esnh-gen { grid-template-columns: minmax(0, 1fr); }
	#esnh-letter, #esnh-paper { scroll-margin-top: var(--esnh-snug); }
	.esnh-edit { display: inline; }
	.esnh-mbar {
		display: flex; position: sticky; bottom: 0; z-index: 2;
		margin: var(--esnh-loose) calc(-1 * var(--esnh-loose)) calc(-1 * var(--esnh-loose));
		padding: var(--esnh-snug) var(--esnh-loose) calc(var(--esnh-snug) + env(safe-area-inset-bottom));
		background: var(--esnh-surface-inset); border-top: 1px solid var(--esnh-line-strong); border-radius: 0 0 8px 8px;
	}
	.esnh-mbar .esnh-btn { flex: 1; }
}
@media (max-width: 760px) {
	.esnh-panel { padding: var(--esnh-base); }
	.esnh-pagebreak { margin-inline: calc(-1 * var(--esnh-base)); }
	.esnh-mbar { margin: var(--esnh-loose) calc(-1 * var(--esnh-base)) calc(-1 * var(--esnh-base)); padding-inline: var(--esnh-base); }
	.esnh-paper { padding: var(--esnh-loose) var(--esnh-base); }
}
@media (max-width: 560px) {
	.esnh-row, .esnh-seg-3 { grid-template-columns: minmax(0, 1fr); }
	.esnh-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
	.esnh-seg { grid-template-columns: minmax(0, 1fr); }
}

/* ── The editor card (editor.js): the block has no settings; the generator renders on the page ── */
.wp-block-esservices-new-hire-packet.esnh-editor-card {
	background: var(--esnh-surface-inset); border: 1px dashed var(--esnh-line-strong); border-radius: 8px;
	padding: var(--esnh-loose); font-family: var(--esnh-font); color: var(--esnh-text);
}
.esnh-editor-card .esnh-editor-card__title { font-size: var(--esnh-body); font-weight: 600; line-height: var(--esnh-leading-ui); color: var(--esnh-text-strong); }
.esnh-editor-card .esnh-editor-card__note { margin-top: var(--esnh-hairline); font-size: var(--esnh-small); line-height: var(--esnh-leading-body); color: var(--esnh-text-muted); }

/* ── Print: the Print button prints the letter alone. view.js then adds .esnh-print-root (a copy of the
   letter, a direct child of body, hidden on screen) and the class esnh-printing on body, and removes both
   after printing. Ctrl/Cmd+P has neither, so it prints the whole page with its sample letters, table and
   FAQ (tool 2's pattern; Article VII record in docs/decisions.md). ── */
.esnh-print-root { display: none; }
@media print {
	@page { margin: 1in; }
	body.esnh-printing > :not(.esnh-print-root) { display: none !important; }
	body.esnh-printing { background: none; margin: 0; padding: 0; }
	.esnh-print-root { display: block; overflow-wrap: anywhere; font-family: var(--esnh-font); font-size: var(--esnh-body); line-height: var(--esnh-leading-body); color: var(--esnh-paper-text); background: none; }
	.esnh-print-root :where(p, ul) { margin: 0; }
	.esnh-print-root :where(p, ul) + :where(p, ul) { margin-top: var(--esnh-base); }
	.esnh-print-root .esnh-lh { border-bottom: 1px solid var(--esnh-paper-rule); padding-bottom: var(--esnh-snug); margin-bottom: var(--esnh-base); }
	.esnh-print-root .esnh-lh b { display: block; color: var(--esnh-paper-strong); }
	.esnh-print-root .esnh-lh small { display: block; font-size: var(--esnh-small); color: var(--esnh-paper-muted); }
	.esnh-print-root .esnh-items { padding-left: 1.25em; }
	.esnh-print-root .esnh-sig { margin-top: var(--esnh-loose); break-after: avoid; }
	.esnh-print-root .esnh-sigline { height: 0.75in; width: 2.5in; border-bottom: 1px solid var(--esnh-paper-rule); margin: 0 0 var(--esnh-tight); break-after: avoid; }
	.esnh-print-root .esnh-sig-name { margin-top: 0; }
	.esnh-print-root .esnh-encl { margin-top: var(--esnh-loose); }
	.esnh-print-root .esnh-v { background: none; box-shadow: none; }
	.esnh-print-root .esnh-v.esnh-empty { border-bottom: 0; color: inherit; }
	.esnh-print-root .esnh-pagebreak { break-before: page; border: 0; margin: 0; height: 0; }
	.esnh-print-root .esnh-att-title { font-weight: 600; color: var(--esnh-paper-strong); }
	.esnh-print-root .esnh-att-h { margin-top: var(--esnh-loose); break-after: avoid; }
	.esnh-print-root .esnh-att-src { font-size: var(--esnh-small); color: var(--esnh-paper-muted); }
}


/* ── Added in tool 4 (kept for the shared box pattern) ── */
.esnh-paper .esnh-box { display: flex; align-items: flex-start; gap: 0.6em; margin-top: var(--esnh-base); }
.esnh-paper .esnh-box::before { content: ""; flex: none; width: 0.95em; height: 0.95em; margin-top: 0.25em; border: 1px solid var(--esnh-paper-text); }
.esnh-paper .esnh-field { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: end; gap: var(--esnh-snug); margin-top: var(--esnh-loose); }
.esnh-paper .esnh-field::after { content: ""; border-bottom: 1px solid var(--esnh-paper-rule); height: 1.1em; }
.esnh-paper .esnh-doc-law { margin-top: var(--esnh-loose); font: 400 var(--esnh-caption)/var(--esnh-leading-body) var(--esnh-mono); color: var(--esnh-paper-muted); }

/* ── The checklist ── */
.esnh-paper .esnh-title { font-size: var(--esnh-body); font-weight: 600; line-height: var(--esnh-leading-ui); color: var(--esnh-paper-strong); }
.esnh-paper .esnh-sub { margin-top: var(--esnh-hairline); font-size: var(--esnh-caption); color: var(--esnh-paper-muted); }
.esnh-paper .esnh-h { margin-top: var(--esnh-loose); padding-bottom: var(--esnh-hairline); border-bottom: 1px solid var(--esnh-line); font: 500 var(--esnh-caption)/var(--esnh-leading-ui) var(--esnh-mono); letter-spacing: var(--esnh-tracking-label); text-transform: uppercase; color: var(--esnh-callout-label); }
.esnh-paper .esnh-h-note { margin-top: var(--esnh-tight); color: var(--esnh-paper-muted); font-size: var(--esnh-caption); }
.esnh-item { margin-top: var(--esnh-base); padding-left: 1.6em; position: relative; }
.esnh-item::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 0.95em; height: 0.95em; border: 1px solid var(--esnh-paper-text); border-radius: 2px; }
.esnh-paper .esnh-item > * + * { margin-top: var(--esnh-hairline); }
.esnh-item-t b { font-weight: 600; color: var(--esnh-paper-strong); }
.esnh-item-t .esnh-form { color: var(--esnh-paper-muted); }
.esnh-due { font-weight: 500; color: var(--esnh-paper-strong); }
.esnh-due time { background: var(--esnh-highlight); box-shadow: 0 0 0 2px var(--esnh-highlight); border-radius: 1px; }
.esnh-trigger { color: var(--esnh-status-action); }
.esnh-links { display: flex; flex-wrap: wrap; gap: var(--esnh-hairline) var(--esnh-base); font-size: var(--esnh-caption); }
.esnh-links a { overflow-wrap: anywhere; }
.esnh-lang { font-size: var(--esnh-caption); color: var(--esnh-paper-muted); }
.esnh-paper .esnh-plain { margin-top: var(--esnh-snug); }
.esnh-paper .esnh-plain li + li { margin-top: var(--esnh-hairline); }
/* Two link lines under the sheet read as one block: the rule sits above the first only. */
.esnh-next + .esnh-next { margin-top: var(--esnh-snug); padding-top: 0; border-top: 0; }

/* The footer on every copy (source, review date, not legal advice). */
.esnh-paper .esnh-foot { margin-top: var(--esnh-loose); padding-top: var(--esnh-snug); border-top: 1px solid var(--esnh-line); font-size: var(--esnh-caption); color: var(--esnh-paper-muted); }
@media print {
	.esnh-print-root .esnh-foot { margin-top: var(--esnh-loose); padding-top: var(--esnh-snug); border-top: 1px solid var(--esnh-paper-rule); font-size: var(--esnh-small); color: var(--esnh-paper-muted); }
	.esnh-print-root .esnh-title { font-weight: 600; color: var(--esnh-paper-strong); }
	.esnh-print-root .esnh-sub { font-size: var(--esnh-small); color: var(--esnh-paper-muted); }
	.esnh-print-root .esnh-h { margin-top: var(--esnh-loose); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--esnh-small); break-after: avoid; }
	.esnh-print-root .esnh-item { margin-top: var(--esnh-base); padding-left: 1.6em; position: relative; break-inside: avoid; }
	.esnh-print-root .esnh-item::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 0.95em; height: 0.95em; border: 1px solid var(--esnh-paper-text); }
	.esnh-print-root .esnh-item > * { margin: 0; }
	.esnh-print-root .esnh-links a::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
	.esnh-print-root .esnh-due time { background: none; box-shadow: none; }
}
