/*
Theme Name: Undersigned
Description: A block theme for publishing an open letter. The letter is set as a sheet of paper on a deep ink-blue desk and keeps the anatomy of a real letter — date, addressees, salutation, sign-off and signatories — so it reads with authority on phones, tablets and large screens. Includes the open letter on BBC funding as a ready-made page, share links, automatic dark mode and an A4 print layout.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.2.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: undersigned
Tags: one-column, block-patterns, block-styles, custom-colors, editor-style, full-site-editing, template-editing, translation-ready, wide-blocks

Undersigned is distributed under the terms of the GNU GPL v2 or later.
Newsreader and Atkinson Hyperlegible Next are licensed under the SIL Open Font License 1.1 (see assets/fonts).
*/

/* ==========================================================================
   1. Tokens
   The "frame" is the shared column: masthead, title, sheet, share and footer
   all line up on it. On phones the sheet runs edge to edge, so the text above
   and below it is inset by the sheet's own padding to keep one left edge.
   ========================================================================== */

:root {
	--us-measure: 40rem;
	--us-pad-x: clamp(1.25rem, 0.35rem + 4.6vw, 5.5rem);
	--us-pad-y: clamp(2.25rem, 1.1rem + 5vw, 5.5rem);
	--us-gutter: 0px;
	--us-inset: var(--us-pad-x);
	--us-frame: min(calc(var(--us-measure) + 2 * var(--us-pad-x)), calc(100% - 2 * var(--us-gutter)));
	--us-sans: var(--wp--preset--font-family--atkinson);
	--us-sheet-shadow:
		0 1px 1px rgb(4 9 20 / 0.2),
		0 14px 28px -14px rgb(4 9 20 / 0.5),
		0 56px 90px -48px rgb(4 9 20 / 0.7);
}

@media (min-width: 40rem) {
	:root {
		--us-gutter: clamp(1.5rem, 4vw, 3rem);
		--us-inset: 0px;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */

html {
	background-color: var(--wp--preset--color--desk);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: normal;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks > * {
	margin-block: 0;
}

::selection {
	background-color: var(--wp--preset--color--signal);
	color: #0b0c0c;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--signal);
	outline-offset: 3px;
}

/* On paper, a yellow ring would vanish: use the yellow as a fill instead. */
.is-style-sheet :where(a, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--signal);
	color: #0b0c0c;
	text-decoration: none;
}

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

/* ==========================================================================
   3. Frame
   ========================================================================== */

.us-masthead,
.us-hero,
.us-share,
.us-support,
.us-footer,
.wp-block-group.is-style-sheet {
	box-sizing: border-box;
	width: var(--us-frame);
	max-width: none;
	margin-inline: auto;
}

/* ==========================================================================
   4. Masthead
   ========================================================================== */

.wp-block-group.us-masthead {
	gap: 1rem;
	padding: clamp(1.1rem, 0.7rem + 1.5vw, 1.75rem) var(--us-inset) 0;
	font-family: var(--us-sans);
}

.us-masthead .wp-block-site-title {
	margin: 0;
}

/* On pages other than the letter, the way back to it. */
.us-masthead .us-masthead__home {
	margin: 0;
	font-family: var(--us-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.005em;
}

.us-masthead .us-masthead__home a {
	color: var(--wp--preset--color--desk-text);
	text-decoration: none;
}

.us-masthead .us-masthead__home a:hover {
	text-decoration: underline;
}

.us-masthead .us-masthead__share {
	margin: 0;
	font-family: var(--us-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
}

.us-masthead .us-masthead__share a {
	color: var(--wp--preset--color--desk-subtle);
}

.us-masthead .us-masthead__share a:hover {
	color: var(--wp--preset--color--desk-text);
}

/* ==========================================================================
   5. Title area
   ========================================================================== */

.wp-block-group.us-hero {
	container-type: inline-size;
	padding: clamp(2.75rem, 1.2rem + 6.5vw, 6.5rem) var(--us-inset) clamp(2rem, 1.2rem + 3.4vw, 4rem);
}

/* The small line above the statement: in the letter it is the page's h1. */
.wp-block-heading.is-style-label {
	margin: 0 0 0.6em;
	color: var(--wp--preset--color--desk-subtle);
	font-family: var(--us-sans);
	font-size: clamp(0.9375rem, 0.82rem + 0.5vw, 1.3125rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.005em;
	text-wrap: balance;
}

.is-style-sheet .wp-block-heading.is-style-label {
	color: var(--wp--preset--color--ink-subtle);
}

/* The statement: sized from the width of its column so that each line,
   down to "should be funded by everyone.", stays on one line. */
p.is-style-statement {
	margin: 0;
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: clamp(1.375rem, 6.4vw, 3.5rem);
	font-size: clamp(1.375rem, calc(7.28cqi + 0.2rem), 4rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.022em;
	text-wrap: balance;
}

.us-hero .wp-block-post-title,
.us-hero h1 {
	margin: 0;
	text-wrap: balance;
}

.us-hero .wp-block-post-excerpt.us-standfirst,
.us-hero .us-standfirst {
	max-width: 36rem;
	margin-block-start: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
	color: var(--wp--preset--color--desk-subtle);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	text-wrap: balance;
}

.us-standfirst .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* A standfirst never needs a "read more" link, so don't offer one in the editor. */
.us-standfirst .wp-block-post-excerpt__more-text,
.us-standfirst .wp-block-post-excerpt__more-link {
	display: none;
}

@media (max-width: 39.99rem) {
	.us-hero .wp-block-post-excerpt.us-standfirst,
	.us-hero .us-standfirst {
		font-size: var(--wp--preset--font-size--medium);
	}
}

.us-hero .wp-block-post-date {
	margin-block-start: 1.25rem;
	color: var(--wp--preset--color--desk-subtle);
}

/* ==========================================================================
   6. The sheet
   A sheet of bond paper on the desk.
   ========================================================================== */

.wp-block-group.is-style-sheet {
	position: relative;
	isolation: isolate;
	padding: var(--us-pad-y) var(--us-pad-x) calc(var(--us-pad-y) * 1.2);
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

@media (min-width: 40rem) {
	.wp-block-group.is-style-sheet {
		box-shadow: var(--us-sheet-shadow);
	}
}

.us-main > .is-style-sheet:last-child {
	margin-block-end: clamp(3rem, 2rem + 4vw, 6rem);
}

/* In the Open letter template the page content carries the heading and the
   sheet; anything else added there stays on the frame. */
.wp-block-post-content.us-letter > * {
	margin-block: 0;
}

.wp-block-post-content.us-letter > :where(:not(.us-hero, .is-style-sheet, .alignfull)) {
	box-sizing: border-box;
	width: var(--us-frame);
	max-width: none;
	margin-inline: auto;
	padding-inline: var(--us-inset);
}

/* ==========================================================================
   7. The letter
   ========================================================================== */

.wp-block-group.is-style-sheet {
	hanging-punctuation: first allow-end last;
}

.is-style-sheet :where(p, li) {
	text-wrap: pretty;
}

.is-style-sheet > :first-child,
.is-style-sheet .wp-block-post-content > :first-child {
	margin-block-start: 0;
}

/* Addressees: set like the address panel of a printed letter.
   Columns take the width their lines need, so a short address leaves room for a long one. */
.wp-block-group.is-style-addressees.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), auto));
}

.wp-block-group.is-style-addressees {
	gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.is-style-sheet .wp-block-group.is-style-addressees {
	margin-block-start: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
}

.wp-block-group.is-style-addressees p {
	margin: 0;
}

/* When a long address line wraps, indent the run-over so it reads as one line. */
@supports (text-indent: 1em hanging each-line) {
	.wp-block-group.is-style-addressees p {
		text-indent: 1em hanging each-line;
	}
}

/* The first line of each address is the name, in bold. The theme makes it
   bold markup when the page is shown; the first-line rule covers the editor. */
.wp-block-group.is-style-addressees p strong,
.wp-block-group.is-style-addressees p::first-line {
	font-weight: 600;
}

.is-style-sheet p.is-style-salutation,
p.is-style-salutation {
	margin-block-start: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
}

.is-style-sheet p.is-style-sign-off,
p.is-style-sign-off {
	margin-block-start: 2em;
}

/* Signatories: a roll, one name to a line. */
.wp-block-post-content ul.is-style-signatories,
ul.wp-block-list.is-style-signatories {
	margin-block-start: 1.25rem;
	padding-inline-start: 0;
	list-style: "\200B";
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.005em;
}

ul.is-style-signatories > li {
	margin: 0;
	padding-block: 0.6em 0.65em;
	border-block-start: 1px solid var(--wp--preset--color--rule);
}

ul.is-style-signatories > li:last-child {
	border-block-end: 1px solid var(--wp--preset--color--rule);
}

/* A long roll (twenty names or more) runs in two columns on wider screens. */
@media (min-width: 48rem) {
	ul.wp-block-list.is-style-signatories:has(> li:nth-child(20)) {
		columns: 2;
		column-gap: 2.5rem;
		font-size: var(--wp--preset--font-size--medium);
	}

	ul.is-style-signatories:has(> li:nth-child(20)) > li {
		break-inside: avoid;
		border-block-start: 0;
		border-block-end: 1px solid var(--wp--preset--color--rule);
	}
}

/* A person's job title, under their name: smaller and quieter. */
ul.is-style-signatories .us-role {
	display: block;
	margin-block-start: 0.25em;
	color: var(--wp--preset--color--ink-subtle);
	font-size: 0.7em;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;
	text-wrap: pretty;
}

/* Each signatory links to its website: a quiet underline that firms up on hover. */
ul.is-style-signatories a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
	text-underline-offset: 0.22em;
}

ul.is-style-signatories a:hover {
	text-decoration-color: currentColor;
	text-decoration-thickness: 2px;
}

/* ==========================================================================
   8. Sharing
   ========================================================================== */

.wp-block-group.us-share {
	padding: clamp(3rem, 1.8rem + 5vw, 6rem) var(--us-inset) clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);
	scroll-margin-top: 1rem;
}

.us-share h2.wp-block-heading {
	margin-block: 0 1.25rem;
}

.wp-block-undersigned-share .us-share-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-undersigned-share .us-share-list > li {
	margin: 0;
}

/* A flex item per button, so links and buttons share one height. */
.wp-block-undersigned-share .us-share-list > li:not([hidden]) {
	display: flex;
}

/* Phones: a tidy two-column grid, with the system share sheet first and full width. */
@media (max-width: 39.99rem) {
	.wp-block-undersigned-share .us-share-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.wp-block-undersigned-share .us-share-list > [data-requires="share"] {
		grid-column: 1 / -1;
	}
}

.wp-block-undersigned-share .us-share-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.6rem 1.05rem;
	border: 0;
	border-radius: 2px;
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-family: var(--us-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	flex: 1 1 auto;
	-webkit-tap-highlight-color: transparent;
}

.wp-block-undersigned-share .us-share-button:hover,
.wp-block-undersigned-share .us-share-button:focus-visible {
	background-color: var(--wp--preset--color--signal);
	color: #0b0c0c;
}

.wp-block-undersigned-share .us-share-status {
	min-height: 1.5em;
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--desk-subtle);
	font-family: var(--us-sans);
	font-size: var(--wp--preset--font-size--small);
}

.is-style-sheet .wp-block-undersigned-share .us-share-button {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.is-style-sheet .wp-block-undersigned-share .us-share-status {
	color: var(--wp--preset--color--ink-subtle);
}

/* Organisations that support the letter: a quiet note, after sharing. */
.wp-block-group.us-support {
	padding: 0 var(--us-inset) clamp(2.5rem, 1.6rem + 3.5vw, 4.5rem);
}

.us-support h2.us-support__title {
	margin-block: 0 0.4rem;
	color: var(--wp--preset--color--desk-text);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

.us-support .us-support__text {
	margin: 0;
	color: var(--wp--preset--color--desk-subtle);
	font-family: var(--us-sans);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.us-support .us-support__text a {
	color: var(--wp--preset--color--desk-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.us-support .us-support__text a:hover {
	text-decoration-thickness: 2px;
}

/* Without a published contact page there's nothing to offer. */
.wp-block-group.us-support:not(:has(a)) {
	display: none;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.wp-block-group.us-footer {
	gap: 0.25rem 2rem;
	padding: 1.75rem var(--us-inset) clamp(2.5rem, 2rem + 2vw, 3.5rem);
	border-block-start: 1px solid color-mix(in srgb, var(--wp--preset--color--desk-text) 14%, transparent);
	color: var(--wp--preset--color--desk-subtle);
	font-family: var(--us-sans);
	font-size: var(--wp--preset--font-size--small);
}

.us-footer .wp-block-site-title {
	font-size: inherit;
}

.us-footer p {
	margin: 0;
}

.wp-block-group.us-footer__links {
	gap: 0.35rem 1.5rem;
}

.us-footer__links a {
	color: var(--wp--preset--color--desk-subtle);
}

.us-footer__links a:hover {
	color: var(--wp--preset--color--desk-text);
}

/* ==========================================================================
   10. Headings inside a sheet: sized for documents such as the privacy policy.
   ========================================================================== */

.is-style-sheet h2.wp-block-heading {
	margin-block-start: 2.25em;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

/* ==========================================================================
   11. Forms
   Interface text, so set in the sans; inputs with strong borders and a
   yellow focus ring, as on GOV.UK.
   ========================================================================== */

:root {
	--us-error: #b42318;
}

.us-form {
	max-width: 36rem;
	font-family: var(--us-sans);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.us-field {
	margin: 0 0 1.75rem;
}

.us-label {
	display: block;
	margin: 0 0 0.3rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
}

.us-hint {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--ink-subtle);
	font-size: 1rem;
	line-height: 1.45;
}

.us-error {
	margin: 0 0 0.5rem;
	color: var(--us-error);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
}

.us-field--error {
	padding-inline-start: 1rem;
	border-inline-start: 4px solid var(--us-error);
}

.us-input {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.5rem 0.65rem;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 0;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font: inherit;
	line-height: 1.4;
}

.us-input--textarea {
	min-height: 11rem;
	resize: vertical;
}

.us-field--error .us-input {
	border-color: var(--us-error);
}

.is-style-sheet .us-input:focus,
.us-input:focus {
	outline: 3px solid var(--wp--preset--color--signal);
	outline-offset: 0;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.us-check {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.us-check__input {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0.1rem 0 0;
	accent-color: var(--wp--preset--color--ink);
}

.us-check__label {
	line-height: 1.45;
}

.us-form__privacy {
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--ink-subtle);
	font-size: 1rem;
	line-height: 1.5;
}

.us-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-family: var(--us-sans);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.us-button:hover,
.is-style-sheet .us-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
	background: var(--wp--preset--color--signal);
	color: #0b0c0c;
}

.us-button:hover {
	outline: 0;
}

.us-button:disabled {
	cursor: progress;
	opacity: 0.7;
}

/* Bots fill in every field they find; people never see this one. */
.us-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.us-error-summary {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 3px solid var(--us-error);
}

.us-error-summary__title {
	margin: 0 0 0.75rem;
	font-family: var(--us-sans);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.us-error-summary__list {
	margin: 0;
	padding-inline-start: 1.2rem;
}

.us-error-summary__list a {
	color: var(--us-error);
	font-weight: 700;
}

.us-panel {
	padding: 1.5rem 1.5rem 0.75rem;
	border-inline-start: 6px solid var(--wp--preset--color--ink);
	background: color-mix(in srgb, var(--wp--preset--color--ink) 5%, transparent);
	font-family: var(--us-sans);
}

.us-panel__title {
	margin: 0 0 0.5rem;
	font-family: var(--us-sans);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}

.us-panel p {
	margin: 0 0 0.75rem;
}

/* Programmatic focus on the summary and confirmation: a ring, not a fill. */
.is-style-sheet .us-error-summary:focus-visible,
.is-style-sheet .us-panel:focus-visible,
.us-error-summary:focus,
.us-panel:focus {
	outline: 3px solid var(--wp--preset--color--signal);
	outline-offset: 0;
	background-color: transparent;
	color: inherit;
}

.is-style-sheet .us-panel:focus-visible,
.us-panel:focus {
	background: color-mix(in srgb, var(--wp--preset--color--ink) 5%, transparent);
}

/* ==========================================================================
   12. Lists of posts and other pages
   ========================================================================== */

.us-post-list .wp-block-post-template {
	margin: 0;
	padding: 0;
}

.us-post-list .wp-block-post {
	padding-block: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.us-post-list .wp-block-post + .wp-block-post {
	border-block-start: 1px solid var(--wp--preset--color--rule);
}

.us-post-list .wp-block-post:first-child {
	padding-block-start: 0;
}

.us-post-list .wp-block-post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.us-post-list .wp-block-post-title a {
	text-decoration: none;
}

.us-post-list .wp-block-post-title a:hover {
	text-decoration: underline;
}

.us-post-list .wp-block-post-date {
	margin-block-start: 0.5rem;
	color: var(--wp--preset--color--ink-subtle);
}

.us-post-list .wp-block-post-excerpt {
	margin-block-start: 0.75rem;
}

.us-post-list .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.is-style-sheet .wp-block-query-pagination {
	margin-block-start: 2rem;
}

/* ==========================================================================
   13. Editor
   ========================================================================== */

.editor-styles-wrapper .wp-block-undersigned-share a,
.editor-styles-wrapper .wp-block-undersigned-page-link a,
.editor-styles-wrapper .us-form {
	pointer-events: none;
}

.us-editor-note {
	margin: 0;
	font-family: var(--us-sans);
	font-size: 0.875rem;
	opacity: 0.75;
}

/* With "Show template" switched off, write on paper rather than on the desk. */
.editor-styles-wrapper:has(> .editor-visual-editor__post-title-wrapper) {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

/* ==========================================================================
   14. Print: the letter as it was sent, on A4.
   ========================================================================== */

@media print {
	@page {
		size: A4;
		margin: 18mm 20mm 20mm;
	}

	html,
	body,
	.wp-site-blocks {
		background: #fff !important;
		color: #000 !important;
	}

	.wp-block-template-part,
	.us-masthead,
	.us-share,
	.us-support,
	.us-footer,
	.us-standfirst,
	.us-hero p.is-style-statement,
	.skip-link {
		display: none !important;
	}

	.us-hero .wp-block-heading.is-style-label {
		margin: 0;
		color: #000 !important;
		font-family: var(--wp--preset--font-family--newsreader);
		font-size: 19pt;
		font-weight: 400;
	}

	ul.is-style-signatories a {
		color: #000;
		text-decoration: none;
	}

	.wp-block-post-content ul.is-style-signatories a[href^="http"]::after {
		content: none;
	}

	.us-hero,
	.wp-block-group.is-style-sheet {
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		color: #000 !important;
		background: #fff !important;
		box-shadow: none !important;
	}

	.us-hero {
		padding-block-end: 9mm !important;
	}

	.us-hero .wp-block-post-title {
		font-size: 19pt;
	}


	.wp-block-post-content {
		font-size: 11.5pt;
		line-height: 1.45;
	}

	.wp-block-group.is-style-addressees {
		font-size: 10.5pt;
	}

	/* Two columns on paper, so the roll stays with the letter. */
	ul.wp-block-list.is-style-signatories {
		columns: 2;
		column-gap: 10mm;
		font-size: 12pt;
	}

	ul.wp-block-list.is-style-signatories > li {
		padding-block: 1.5mm;
		break-inside: avoid;
		border-block-start: 0;
		border-block-end: 0.5pt solid #bbb;
	}

	ul.is-style-signatories .us-role {
		margin-block-start: 0.5mm;
		color: #444;
		font-size: 9.5pt;
	}

	p {
		orphans: 3;
		widows: 3;
	}

	.wp-block-post-content a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		word-break: break-all;
	}
}
