/*
Theme Name: GREEENER.ai
Description: The GREEENER.ai website. One look, chosen in Appearance > Customize > Look, colours every page, the editor and the login screen.
Version: 1.0.0
Requires at least: 6.9
Requires PHP: 8.0
Text Domain: greeener
*/

/*
 * Contents
 *
 *  1. Fonts
 *  2. Tokens
 *  3. Base
 *  4. Layout and buttons
 *  5. Header and menu
 *  6. Cards
 *  7. Rails (the home page's rows)
 *  8. Lists, page links and search
 *  9. Articles and sharing
 * 10. Written content (WordPress blocks)
 * 11. Certification: mark, band and page
 * 12. Footer
 * 13. Motion
 * 14. Looks: where one differs in more than a value
 * 15. Print
 *
 * This file is also the block editor's stylesheet. There WordPress rewrites "html", "body" and ":root" to the
 * canvas wrapper, so rules for written content (section 10) never depend on html[data-look], which the canvas
 * does not have.
 *
 * Sizes are in rem so the phone's own text-size setting scales the whole page. Text keeps at least 7:1
 * contrast on its background in every look, targets are at least 3rem (48px) tall, and focus is always visible.
 * The request form's styles are in assets/css/request-form.css.
 */

/* 1. Fonts ------------------------------------------------------------------------------------------------- */

/*
 * The two faces (DM Sans, Literata; variable woff2 in assets/fonts/) are declared once, in theme.json,
 * and WordPress prints their @font-face rules on the site and in the editor. inc/setup.php preloads them.
 */

/* 2. Tokens ------------------------------------------------------------------------------------------------ */

/*
 * Colours, corner sizes, the display face and the menu's shadow are the look's: inc/looks.php prints them on
 * :root after this file. Nothing below names a colour, apart from print (section 15). The tokens here are the
 * ones no look changes.
 */
:root {
	--sans: var(--wp--preset--font-family--sans);
	--serif: var(--wp--preset--font-family--serif);
	--gutter: 1.25rem;
	--page: 76rem;
	/* The article column; matches contentSize in theme.json and $content_width. */
	--measure: 42rem;
	--header-height: 4.75rem;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	/* Smaller corners follow the look's card corner down to square, never past their own size. */
	--radius-field: min(0.5rem, var(--radius-card));
	--radius-choice: min(0.75rem, var(--radius-card));
	--radius-panel: min(1rem, var(--radius-card));
}
@media (min-width: 48rem) {
	:root {
		--gutter: 2.5rem;
		--header-height: 5.25rem;
	}
}

/* 3. Base --------------------------------------------------------------------------------------------------- */

html {
	background: var(--paper);
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 1rem);
	scrollbar-color: var(--line-strong) var(--paper);
}
/* iOS Safari only scales rem text with the Dynamic Type setting when the root opts in. */
@supports (font: -apple-system-body) {
	html {
		font: -apple-system-body;
	}
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.1875rem;
	line-height: 1.55;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
/* The full-height page, so a short page still has its footer at the bottom. Not for the editor's canvas. */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.site.admin-bar {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}
.site > main {
	flex: 1;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
/* Beats every display value below, so the hidden attribute always hides. */
[hidden] {
	display: none !important;
}
:where(h1, h2, h3, h4, p, dl, dd, figure, blockquote) {
	margin: 0;
}
:where(h1, h2, h3, h4) {
	font-family: var(--display);
	font-weight: var(--display-weight);
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
p {
	text-wrap: pretty;
}
:where(img, svg) {
	display: block;
	max-width: 100%;
}
:where(img) {
	height: auto;
}
a {
	color: var(--link);
	text-underline-offset: 0.15em;
	text-decoration-thickness: max(1px, 0.0625rem);
}
a:hover {
	text-decoration-thickness: 3px;
}
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}
button {
	cursor: pointer;
}
:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}
::selection {
	background: var(--mint);
	color: var(--forest);
}

.skip-link {
	position: fixed;
	top: -5rem;
	left: 1rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--surface);
	color: var(--ink);
	font-weight: 600;
}
.skip-link:focus {
	top: 0.75rem;
}
/* WordPress prints this class itself, in page links among other places. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.icon {
	width: 1.375rem;
	height: 1.375rem;
	flex-shrink: 0;
}

/* 4. Layout and buttons ------------------------------------------------------------------------------------- */

.page-section {
	width: 100%;
	max-width: calc(var(--page) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 2.5rem var(--gutter);
}
.page-title {
	font-size: 2.25rem;
}
.page-intro,
.page-intros > p {
	margin-top: 0.75rem;
	max-width: 38rem;
	color: var(--ink-soft);
	font-size: 1.1875rem;
}
.page-intros:empty {
	display: none;
}
.page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3rem;
	margin-bottom: 1rem;
	font-size: 1.0625rem;
	font-weight: 600;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 3.25rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--cta);
	border-radius: var(--radius-pill);
	background: var(--cta);
	color: var(--cta-ink);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		background 0.2s,
		color 0.2s,
		transform 0.16s var(--ease-out);
}
.button:hover {
	background: var(--cta-hover);
	text-decoration: none;
}
.button:active {
	transform: scale(0.97);
}
.button-secondary {
	background: var(--surface);
	color: var(--ink);
}
.button-secondary:hover {
	background: var(--hover-tint);
}
.button[disabled],
.button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.55;
}

@media (min-width: 48rem) {
	.page-title {
		font-size: 3rem;
	}
	.page-section {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}
}

/* 5. Header and menu ---------------------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	height: var(--header-height);
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 0 var(--gutter);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
/* Signed-in people have WordPress's toolbar above the header; it is fixed only above 600px. */
@media (min-width: 601px) {
	.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 0px);
	}
}
.site-brand {
	display: block;
	width: 10.5rem;
	text-decoration: none;
	flex-shrink: 0;
}
.site-brand img {
	width: 100%;
	height: auto;
}
/* Spread across the logo's width so the two read as one lockup. */
.site-tagline {
	display: block;
	margin-top: 0.3rem;
	padding-top: 0.3rem;
	border-top: 2px solid var(--mint-strong);
	color: var(--ink);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	text-align: justify;
	text-align-last: justify;
	white-space: nowrap;
}
/* A link without JavaScript, a button with it (header.php); both look the same. */
.site-menu-toggle {
	margin-left: auto;
	min-height: 3rem;
	padding: 0 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
}
.site-menu-icon {
	position: relative;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
	transition: background 0.2s;
}
.site-menu-icon::before,
.site-menu-icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s var(--ease-out);
}
.site-menu-icon::before {
	transform: translateY(-6px);
}
.site-menu-icon::after {
	transform: translateY(6px);
}
.site-menu-toggle[aria-expanded="true"] .site-menu-icon {
	background: transparent;
}
.site-menu-toggle[aria-expanded="true"] .site-menu-icon::before {
	transform: rotate(45deg);
}
.site-menu-toggle[aria-expanded="true"] .site-menu-icon::after {
	transform: rotate(-45deg);
}
.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	flex-direction: column;
	max-height: calc(100vh - var(--header-height));
	padding: 0.5rem var(--gutter) 1.5rem;
	overflow-y: auto;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow-menu);
}
/* Opened by the button (.is-open) or, without JavaScript, by following the Menu link to #navigation. */
.site-nav.is-open,
.site-nav:target {
	display: flex;
}
.site-nav-list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	display: flex;
	align-items: center;
	min-height: 3.5rem;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: 1.25rem;
	font-weight: 600;
	text-decoration: none;
}
/* "page" on the page itself, "true" on the section it belongs to (inc/menu.php). */
.site-nav a[aria-current] {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 0.3em;
}
.site-nav .site-nav-cta {
	justify-content: center;
	margin-top: 1rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--cta);
	color: var(--cta-ink);
}
.site-nav .site-nav-cta[aria-current] {
	color: var(--cta-current);
	text-decoration: none;
}
/*
 * The official wordmark inside the button, so it reads "Get GREEENER.ai certified". On the light look's forest
 * button it is the logo for dark backgrounds. The dark looks' buttons are mint or white, where the light green E
 * disappears, so there it is the wordmark's shape in the button's own ink (section 14).
 */
.site-cta-wordmark {
	flex-shrink: 0;
	height: 0.95em;
	aspect-ratio: 902 / 133;
	margin-inline: 0.35em;
	background: url("assets/img/greeener-logo-dark.svg") center / contain no-repeat;
}
.site-nav .site-nav-close {
	justify-content: center;
	min-height: 3rem;
	margin-top: 0.5rem;
	border: 0;
	color: var(--link);
	font-size: 1.0625rem;
	text-decoration: underline;
}
.site-progress {
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 3px;
	width: 0;
	background: var(--mint-strong);
}

/* At 320px, the reflow width, the lockup and the Menu button only fit side by side with less air between them. */
@media (max-width: 22.5rem) {
	.site-header {
		gap: 0.75rem;
	}
	.site-menu-toggle {
		padding: 0 0.75rem;
	}
}
@media (min-width: 64rem) {
	.site-menu-toggle,
	.site-nav .site-nav-close {
		display: none;
	}
	.site-nav,
	.site-nav.is-open,
	.site-nav:target {
		position: static;
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 1.75rem;
		max-height: none;
		margin-left: auto;
		padding: 0;
		overflow: visible;
		border: 0;
		background: none;
		box-shadow: none;
	}
	.site-nav-list {
		flex-direction: row;
		gap: 1.75rem;
	}
	.site-nav a {
		min-height: 3rem;
		border: 0;
		font-size: 1.0625rem;
	}
	.site-nav .site-nav-cta {
		margin: 0;
		padding: 0 1.375rem;
	}
}

/* 6. Cards -------------------------------------------------------------------------------------------------- */

/* The four card types share one frame, so a row of mixed cards lines up. */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--surface);
	color: var(--ink);
}
.card-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	color: var(--kicker);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.card-headline {
	font-size: 1.75rem;
	line-height: 1.12;
	letter-spacing: -0.02em;
}
.card-lede {
	color: var(--ink-soft);
	font-size: 1.125rem;
	line-height: 1.45;
}
.card-meta {
	color: var(--muted);
	font-size: 1rem;
}
/* The picture across the top of a card. The forest shows while it loads. */
.card-photo {
	order: -1;
	aspect-ratio: 16 / 10;
	margin: -1.5rem -1.5rem 0.25rem;
	border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
	background: var(--forest);
}

/* Fact card: tinted by its topic where the look has tints; not clickable. */
.card-flash {
	--card-tint: var(--tint-other);

	border-color: transparent;
	background: var(--card-tint);
}
.card-flash .card-meta {
	margin-top: auto;
	color: var(--ink-soft);
}
.card-flash .card-meta a {
	color: inherit;
}
.topic-energy {
	--card-tint: var(--tint-energy);
}
.topic-water {
	--card-tint: var(--tint-water);
}
.topic-carbon {
	--card-tint: var(--tint-carbon);
}
.topic-people {
	--card-tint: var(--tint-people);
}
.topic-privacy {
	--card-tint: var(--tint-privacy);
}
.topic-money {
	--card-tint: var(--tint-money);
}
.topic-materials {
	--card-tint: var(--tint-materials);
}
.topic-power {
	--card-tint: var(--tint-power);
}

/* News card: the whole card opens the article. */
.card-news {
	min-height: 22rem;
}
.card-plain {
	min-height: 0;
}
.card-news .card-headline a {
	color: inherit;
	text-decoration: none;
}
.card-news .card-headline a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.card-news .card-headline a:focus-visible {
	outline: none;
}
.card-news:has(a:focus-visible) {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}
.card-news-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}
.card-read {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	color: var(--link);
	font-size: 1.0625rem;
	font-weight: 700;
}
.card-read span {
	transition: transform 0.2s var(--ease-out);
}
.card-sponsored {
	padding: 0.125rem 0.625rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	letter-spacing: 0.02em;
	text-transform: none;
}
@media (hover: hover) and (pointer: fine) {
	.card-news {
		transition:
			border-color 0.2s,
			transform 0.2s var(--ease-out);
	}
	.card-news:hover {
		border-color: var(--line-strong);
		transform: translateY(-2px);
	}
	.card-news:hover .card-read span {
		transform: translateX(4px);
	}
}

/* Company card */
.card-company {
	gap: 1rem;
}
.card-logo {
	display: grid;
	place-items: center start;
	height: 4.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
	background: var(--logo-plate);
}
.card-logo img {
	max-width: 72%;
	max-height: 2.75rem;
	width: auto;
	height: auto;
	object-fit: contain;
}
.card-company-name {
	font-size: 1.5rem;
}
.card-facts {
	display: grid;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.25rem;
}
.card-facts div {
	display: grid;
	gap: 0.125rem;
}
.card-facts dt {
	color: var(--muted);
	font-size: 1rem;
}
.card-facts dd {
	font-size: 1.25rem;
	font-weight: 700;
}
.card-facts small {
	display: block;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 400;
}
.card-undisclosed {
	display: inline-block;
	padding: 0.125rem 0.75rem;
	border: 2px dashed var(--warn-line);
	border-radius: var(--radius-pill);
	color: var(--warn-ink);
	font-size: 1.0625rem;
}
.card-update {
	width: 100%;
}

/* "Explore the full list": the last card of a home page row. */
.card-explore {
	justify-content: space-between;
	min-height: 100%;
	border-color: transparent;
	background: var(--forest);
	color: var(--on-forest);
	text-decoration: none;
	transition: background 0.2s;
}
.card-explore:hover {
	background: var(--forest-hover);
	text-decoration: none;
}
.card-explore-title {
	font-family: var(--display);
	font-size: 2rem;
	font-weight: var(--display-weight);
	line-height: 1.1;
}
.card-explore .card-lede {
	color: var(--on-forest-soft);
}
.card-explore-arrow {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--mint);
	color: var(--forest);
	font-size: 1.75rem;
	transition: transform 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.card-explore:hover .card-explore-arrow {
		transform: translateX(6px);
	}
}

@media (min-width: 48rem) {
	.card-headline {
		font-size: 1.875rem;
	}
}

/* 7. Rails (the home page's rows) --------------------------------------------------------------------------- */

.rail {
	width: 100%;
	max-width: calc(var(--page) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 2.5rem 0 1rem;
}
.rail + .rail {
	border-top: 1px solid var(--line);
}
.rail-head,
.rail-controls {
	padding: 0 var(--gutter);
}
.rail-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}
.rail-title {
	font-size: 2rem;
	max-width: 22ch;
}
.rail-see-all {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 3rem;
	font-size: 1.125rem;
	font-weight: 700;
}
.rail-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1rem 0 1.25rem;
}
.rail-counter {
	color: var(--ink-soft);
	font-size: 1.0625rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.rail-buttons {
	display: flex;
	gap: 0.75rem;
}
.rail-step {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0 1.125rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 700;
	transition:
		background 0.2s,
		transform 0.16s var(--ease-out);
}
.rail-step:hover:not(:disabled) {
	background: var(--hover-tint);
}
.rail-step:active:not(:disabled) {
	transform: scale(0.96);
}
.rail-step:disabled {
	border-color: var(--line);
	color: var(--muted);
	cursor: default;
	opacity: 0.7;
}
.rail-list {
	display: grid;
	grid-auto-flow: column;
	/*
	 * On a phone each card is drawn at 80% of its full size, text and padding included, and its column is 80% of
	 * the 68vw that lets a good part of the next card show.
	 */
	grid-auto-columns: min(54.4vw, 13.6rem);
	gap: 1rem;
	margin: 0;
	/* Without the script's controls above it, the row still needs room under its heading. */
	padding: 1.25rem var(--gutter) 1.5rem;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}
.rail-controls:not([hidden]) + .rail-list {
	padding-top: 0.25rem;
}
.rail-list:focus-visible {
	outline-offset: -3px;
}
.rail-list[data-dragging] {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}
.rail-item {
	scroll-snap-align: start;
}
.rail-item > * {
	zoom: 0.8;
}
/* Drawn at 80%, a button needs to start taller to stay a 48px target. */
.rail-item .button {
	min-height: 3.75rem;
}

@media (min-width: 48rem) {
	.rail {
		padding-top: 3.5rem;
	}
	.rail-title {
		font-size: 2.5rem;
	}
	.rail-list {
		grid-auto-columns: 21rem;
		gap: 1.25rem;
	}
	.rail-item > * {
		zoom: 1;
	}
	.rail-item .button {
		min-height: 3.25rem;
	}
}
@media (min-width: 64rem) {
	.rail-head {
		flex-wrap: nowrap;
	}
	.rail-list {
		cursor: grab;
	}
}

/* 8. Lists, page links and search --------------------------------------------------------------------------- */

/* The "full list" layout: cards of different heights packed into columns. */
.masonry {
	columns: 1;
	column-gap: 1.25rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}
.masonry-item {
	break-inside: avoid;
	margin-bottom: 1.25rem;
}
/* In columns, cards take the height of their content rather than the row's fixed height. */
.masonry-item > * {
	min-height: 0;
}
@media (min-width: 44rem) {
	.masonry {
		columns: 2;
	}
}
@media (min-width: 68rem) {
	.masonry {
		columns: 3;
	}
}

.pagination {
	margin-top: 1.5rem;
}
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 3rem;
	min-height: 3rem;
	padding: 0 1rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}
a.page-numbers:hover {
	background: var(--hover-tint);
}
.page-numbers.current {
	border-color: var(--cta);
	background: var(--cta);
	color: var(--cta-ink);
}
.page-numbers.dots {
	min-width: 1.5rem;
	padding: 0;
	border-color: transparent;
	background: none;
}

.search-form {
	display: grid;
	gap: 0.5rem;
	max-width: 40rem;
	margin-top: 1.5rem;
}
.search-label {
	font-weight: 700;
}
.search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.search-input {
	flex: 1 1 14rem;
	min-width: 0;
	min-height: 3.25rem;
	padding: 0.625rem 0.875rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius-field);
	background: var(--surface);
	font-size: 1.1875rem;
}
.search-input:focus-visible {
	outline-offset: 0;
	box-shadow: inset 0 0 0 2px var(--ink);
}

/* 9. Articles and sharing ----------------------------------------------------------------------------------- */

/* A long read: display headline, sans metadata, serif body prose. Plain pages such as Privacy share it. */
.article {
	padding: 1.25rem 0 0;
}
.article-header,
.article-body,
.article-footer {
	width: 100%;
	max-width: calc(var(--measure) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.article-header .back-link {
	margin-bottom: 0.25rem;
	font-size: 0.9375rem;
}
.article-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	color: var(--link);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.article-kicker a {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	color: inherit;
}
.article-sponsored {
	padding: 0.1875rem 0.625rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	color: var(--ink-soft);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
}
/* .editor-post-title is the title box in the block editor, so a headline is typed in the face it is read in. */
.article-title,
.editor-post-title {
	margin-top: 0.375rem;
	font-family: var(--display);
	font-size: clamp(1.875rem, 1.35rem + 2.4vw, 2.875rem);
	font-weight: var(--display-weight);
	line-height: 1.12;
	letter-spacing: -0.025em;
}
.article-dek {
	margin-top: 0.875rem;
	color: var(--ink-soft);
	font-family: var(--sans);
	font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
	line-height: 1.5;
}
.article-byline {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}
.article-reading-time {
	white-space: nowrap;
}
.article-figure {
	max-width: 60rem;
	margin: 1.5rem auto 2rem;
}
.article-figure img {
	width: 100%;
	height: auto;
	aspect-ratio: 1.91 / 1;
	object-fit: cover;
	background: var(--figure-paper);
}
/* A plain page has no byline or picture between its heading and its words. */
.article-header:has(+ .article-body) {
	margin-bottom: 1.75rem;
}
.article-header:has(+ .article-body) .article-title {
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--line);
}
.article-footer {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}
.article-footer-title {
	margin: 0 0 1rem;
	font-family: var(--sans);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.article-more {
	width: 100%;
	max-width: calc(var(--measure) + 2 * var(--gutter));
	margin: 3rem auto 0;
	padding: 2rem var(--gutter) 0;
	border-top: 1px solid var(--line);
}
.article-more-title {
	font-size: 1.75rem;
}
.article-more-list {
	display: grid;
	gap: 1rem;
	margin: 1.25rem 0 1.5rem;
	padding: 0;
	list-style: none;
}
.article-more-list article {
	min-height: 0;
}

.share {
	display: grid;
	gap: 0.5rem;
}
.share-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.share-option {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 3.25rem;
	padding: 0 1rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
	transition:
		background 0.2s,
		transform 0.16s var(--ease-out);
}
.share-option:hover {
	background: var(--hover-tint);
	text-decoration: none;
}
.share-option:active {
	transform: scale(0.97);
}
.share-status {
	min-height: 1.5rem;
	color: var(--link);
	font-size: 1.0625rem;
	font-weight: 700;
}

@media (min-width: 40rem) {
	.share-options {
		display: flex;
		flex-wrap: wrap;
	}
	.share-option {
		width: auto;
	}
}
@media (min-width: 48rem) {
	.article {
		padding-top: 2rem;
	}
	.article-dek {
		margin-top: 1rem;
	}
	/* Inset from the screen's edges by its own width, not by padding, so its corners and its motion are clipped at the picture. */
	.article-figure {
		width: calc(100% - 2 * var(--gutter));
		max-width: 55rem;
		margin: 2rem auto 2.5rem;
	}
}

/* 10. Written content (WordPress blocks) -------------------------------------------------------------------- */

/*
 * What an editor types, in an article or a page. .entry-content is the published page and .is-root-container
 * the editor's canvas; every rule names both, so what is typed looks like what is published. Each rule carries
 * a class in front of WordPress's own block class, which is what lets it win over the block's built-in colours.
 *
 * Rules that name .entry-content alone draw markup only the published page has: inc/blocks.php wraps tables
 * and galleries in rows that scroll sideways, and gives a file its first page and a linked article its card.
 */
.entry-content,
.is-root-container {
	/* WordPress's named text sizes, which a block carries as a class, scaled to this page. */
	--wp--preset--font-size--small: 0.9375rem;
	--wp--preset--font-size--large: 1.375rem;
	--wp--preset--font-size--x-large: clamp(1.75rem, 1.45rem + 1.4vw, 2.25rem);

	font-family: var(--serif);
	font-size: 1.1875rem;
	font-weight: 420;
	line-height: 1.68;
	font-optical-sizing: auto;
	font-kerning: normal;
	font-feature-settings: "kern" 1, "liga" 1;
	hanging-punctuation: first last;
}
:is(.entry-content, .is-root-container) > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}
:is(.entry-content, .is-root-container) > :last-child {
	margin-bottom: 0;
}
:is(.entry-content, .is-root-container) :is(strong, b) {
	font-weight: 680;
}
:is(.entry-content, .is-root-container) a {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	text-decoration-color: color-mix(in srgb, var(--link) 55%, transparent);
	text-decoration-skip-ink: auto;
	transition: text-decoration-color 0.15s;
}
:is(.entry-content, .is-root-container) a:hover {
	text-decoration-color: var(--link);
	text-decoration-thickness: 2px;
}
/* An opening disclosure note (such as a paid-program notice), set apart in clean sans before the story begins. */
:is(.entry-content, .is-root-container) > p:first-child:has(> em:only-child) {
	margin-bottom: 1.75rem;
	padding: 0.875rem 0;
	border-block: 1px solid var(--line);
	color: var(--ink-soft);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.6;
}
:is(.entry-content, .is-root-container) > p:first-child:has(> em:only-child) > em {
	font-style: normal;
}

/* Headings 2 to 4 */
:is(.entry-content, .is-root-container) :is(h2, h3, h4) {
	margin: 2.25rem 0 0.75rem;
	font-family: var(--display);
	font-weight: var(--display-weight);
	line-height: 1.2;
	letter-spacing: -0.02em;
}
:is(.entry-content, .is-root-container) > :is(h2, h3, h4):first-child {
	margin-top: 0;
}
:is(.entry-content, .is-root-container) h2 + h3,
:is(.entry-content, .is-root-container) h3 + h4 {
	margin-top: 1.25rem;
}
:is(.entry-content, .is-root-container) h2 {
	font-size: 1.5rem;
}
:is(.entry-content, .is-root-container) h3 {
	font-size: 1.25rem;
	letter-spacing: -0.015em;
}
:is(.entry-content, .is-root-container) h4 {
	font-size: 1.125rem;
	letter-spacing: -0.005em;
}

/* Lists */
:is(.entry-content, .is-root-container) :is(ul, ol) {
	padding-left: 1.375rem;
}
:is(.entry-content, .is-root-container) li + li,
:is(.entry-content, .is-root-container) li > :is(ul, ol) {
	margin-top: 0.55em;
}
:is(.entry-content, .is-root-container) li::marker {
	color: var(--muted);
}
/* A list of terms and what each means. */
:is(.entry-content, .is-root-container) dl {
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.55;
}
:is(.entry-content, .is-root-container) dt {
	font-weight: 700;
}
:is(.entry-content, .is-root-container) dd {
	color: var(--ink-soft);
}
:is(.entry-content, .is-root-container) dd + dt {
	margin-top: 0.875rem;
}

/* Quote: someone's words, in the run of the story. */
:is(.entry-content, .is-root-container) blockquote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--mint-strong);
	font-family: var(--serif);
	font-size: 1.3125rem;
	font-style: italic;
	font-weight: 420;
	line-height: 1.46;
}
:is(.entry-content, .is-root-container) blockquote p {
	margin: 0;
}
:is(.entry-content, .is-root-container) blockquote p + p {
	margin-top: 0.75em;
}
:is(.entry-content, .is-root-container) blockquote cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.45;
}
/* Pull quote: one line lifted out of the story, larger and upright between two rules. */
:is(.entry-content, .is-root-container) .wp-block-pullquote {
	margin: 2.25rem 0;
	padding: 1.5rem 0;
	border-block: 1px solid var(--line-strong);
	font-size: inherit;
	line-height: inherit;
	text-align: left;
}
:is(.entry-content, .is-root-container) .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.5rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* Image, video, audio, cover and embed, each with its caption */
:is(.entry-content, .is-root-container) :is(.wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-embed, .wp-block-cover, .wp-block-media-text) {
	margin-block: 2rem;
}
:is(.entry-content, .is-root-container) :is(.wp-block-image img, .wp-block-video video, .wp-block-embed iframe, .wp-block-cover) {
	border-radius: var(--radius-field);
}
/*
 * A video filmed upright stops short of a screen's height; the frame's spare width is left dark. WordPress
 * has a video with a poster fill its frame, which here would cut the top and bottom off both.
 */
:is(.entry-content, .is-root-container) .wp-block-video video {
	display: block;
	width: 100%;
	max-height: min(70svh, 40rem);
	background: var(--forest);
	object-fit: contain;
}
:is(.entry-content, .is-root-container) .wp-block-audio audio {
	display: block;
	width: 100%;
}
:is(.entry-content, .is-root-container) .wp-block-embed iframe {
	display: block;
	max-width: 100%;
	border: 0;
}
/*
 * A video from a website that does not say what shape its player is. WordPress gives a player its shape
 * with classes (wp-has-aspect-ratio) only when the website says.
 */
:is(.entry-content, .is-root-container) .wp-block-embed.is-type-video:not(.wp-has-aspect-ratio) .wp-block-embed__wrapper > iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
/* TikTok's player is upright and says so: 325 by 578. */
:is(.entry-content, .is-root-container) .wp-block-embed.is-type-video.is-provider-tiktok .wp-block-embed__wrapper > iframe {
	width: min(100%, 20.3125rem);
	margin-inline: auto;
	aspect-ratio: 325 / 578;
}
/*
 * A post from X, Bluesky or another network is a quotation until that network's script draws it, and stays
 * one when the script is blocked: the words and the link, as a plain card.
 */
:is(.entry-content, .is-root-container) .wp-block-embed blockquote {
	margin: 0;
	padding: 1rem 1.125rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	background: var(--surface);
	font-family: var(--sans);
	font-size: 1rem;
	font-style: normal;
	line-height: 1.5;
}
/*
 * X and Bluesky draw a post in a frame with round corners and nothing behind them. A browser paints a white
 * sheet behind a frame whose page is not set light or dark as this page is, which shows as white corners in
 * a dark look. Told that the frame holds a light page, which is what both send, it leaves the corners clear.
 */
.entry-content .wp-block-embed :is(.twitter-tweet, .bluesky-embed) iframe {
	color-scheme: light;
}
:is(.entry-content, .is-root-container) figcaption {
	margin: 0.625rem 0 0;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: left;
}

/*
 * Panorama: a picture three times as wide as tall, or more; inc/blocks.php marks it and gives its --ratio.
 * It is never drawn shorter than --panorama-height. Where that makes it wider than its space it scrolls
 * sideways: a swipe on a phone, a drag with a mouse (site.js).
 */
.panorama {
	container-type: inline-size;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border-radius: var(--radius-field);
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}
.panorama:focus-visible {
	outline-offset: -3px;
}
.panorama[tabindex] {
	cursor: grab;
}
.panorama[data-dragging] {
	cursor: grabbing;
	user-select: none;
}
.entry-content .wp-block-image .panorama img {
	display: block;
	/* A quarter of the space's width, so a picture that is only just a panorama fits a wide column whole. */
	--panorama-height: clamp(11rem, 25cqw, 15rem);

	width: max(100cqw, var(--panorama-height) * var(--ratio));
	max-width: none;
	height: auto;
	border-radius: 0;
}

/* Cover: words over a picture, which WordPress dims. */
:is(.entry-content, .is-root-container) .wp-block-cover {
	padding: 1.5rem;
	overflow: hidden;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.45;
}
:is(.entry-content, .is-root-container) .wp-block-cover :is(h2, h3, h4, .has-large-font-size, .has-x-large-font-size) {
	margin: 0;
	font-family: var(--display);
	font-weight: var(--display-weight);
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
:is(.entry-content, .is-root-container) .wp-block-cover__inner-container > * + * {
	margin-top: 0.5rem;
}

/* Media and text: a picture beside a few paragraphs; on a phone, above them. */
:is(.entry-content, .is-root-container) .wp-block-media-text {
	gap: 1rem 1.5rem;
}
:is(.entry-content, .is-root-container) .wp-block-media-text > :is(.wp-block-media-text__media, .wp-block-media-text__content) {
	align-self: start;
	padding: 0;
}
:is(.entry-content, .is-root-container) .wp-block-media-text__media :is(img, video) {
	border-radius: var(--radius-field);
}
:is(.entry-content, .is-root-container) .wp-block-media-text__content > * + * {
	margin-top: 1em;
}
/* Stacked on a phone, a portrait would fill the screen: it keeps to a height and its own shape. */
@media (max-width: 600px) {
	.entry-content .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media img {
		width: auto;
		max-width: 100%;
		max-height: 18rem;
	}
}

/*
 * Columns in the "Figures" style: each column is a figure and what it counts, on a card. The first line of
 * a column is the figure.
 */
:is(.entry-content, .is-root-container) .wp-block-columns.is-style-figures {
	display: grid;
	gap: 0.625rem;
	margin-block: 2rem;
}
:is(.entry-content, .is-root-container) .is-style-figures > .wp-block-column {
	padding: 1rem 1.125rem 1.125rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	background: var(--surface);
	color: var(--ink-soft);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.4;
}
:is(.entry-content, .is-root-container) .is-style-figures > .wp-block-column > * {
	margin-block: 0.375rem 0;
}
:is(.entry-content, .is-root-container) .is-style-figures > .wp-block-column > :first-child {
	--wp--preset--font-size--x-large: 1.875rem;

	margin-top: 0;
	color: var(--ink);
	font-family: var(--display);
	font-size: 1.875rem;
	font-weight: var(--display-weight);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
:is(.entry-content, .is-root-container) .is-style-figures > .wp-block-column > :first-child :is(strong, b) {
	font-weight: inherit;
}

/* A row that scrolls sideways inside an article: a table's columns or a gallery's pictures, on a phone. */
.swipe-track {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}
.swipe-track:focus-visible {
	outline-offset: -3px;
}
.swipe-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.75rem;
	font-family: var(--sans);
}
/* A phone's screen ends where the row does, so what comes next is seen arriving from the edge. */
@media (max-width: 39.9375rem) {
	.entry-content > [data-swipe] > .swipe-track {
		margin-right: calc(-1 * var(--gutter));
		padding-right: var(--gutter);
	}
}

/* Table */
:is(.entry-content, .is-root-container) .wp-block-table {
	margin-block: 2rem;
	overflow-x: auto;
}
.entry-content .wp-block-table[data-swipe] {
	overflow-x: visible;
}
:is(.entry-content, .is-root-container) table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
}
:is(.entry-content, .is-root-container) :is(table, .wp-block-table table) :is(th, td) {
	padding: 0.75rem 0.875rem;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	word-break: normal;
}
/* The first column lines up with the words above it, and names the row. */
:is(.entry-content, .is-root-container) table :is(th, td):first-child {
	padding-left: 0;
	font-weight: 600;
}
:is(.entry-content, .is-root-container) table :is(th, td):last-child {
	padding-right: 0;
}
:is(.entry-content, .is-root-container) table thead th {
	border-bottom: 2px solid var(--line-strong);
	color: var(--ink-soft);
	font-size: 0.8125rem;
	font-weight: 700;
	vertical-align: bottom;
}
:is(.entry-content, .is-root-container) table tfoot :is(th, td) {
	border-top: 1px solid var(--line-strong);
	border-bottom: 0;
	color: var(--ink-soft);
}
/* WordPress rules off a striped table's foot, which falls under its caption. */
:is(.entry-content, .is-root-container) .wp-block-table.is-style-stripes {
	border-bottom: 0;
}
:is(.entry-content, .is-root-container) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) > * {
	background: linear-gradient(var(--hover-tint), var(--hover-tint)) var(--paper);
}
:is(.entry-content, .is-root-container) .wp-block-table.is-style-stripes :is(th, td):first-child {
	padding-left: 0.875rem;
}
:is(.entry-content, .is-root-container) .wp-block-table.is-style-stripes :is(th, td):last-child {
	padding-right: 0.875rem;
}
/*
 * On a phone a table of three columns or more is wider than the screen. Its first column stays put and the
 * others pass behind it one at a time, each four fifths of the space left, so the start of the next column
 * shows. A table of two columns works out no wider than the space, and is drawn whole.
 * --columns is counted by inc/blocks.php.
 */
.swipe-track:has(> table) {
	--first-column: 6.5rem;

	container-type: inline-size;
	/* Columns stop at the first column's edge, not under it. */
	scroll-padding-left: var(--first-column);
}
@container (max-width: 34rem) {
	.entry-content .swipe-track > table {
		--column: calc((100cqw - var(--first-column)) * 0.8);

		width: max(100%, calc(var(--first-column) + (var(--columns) - 1) * var(--column)));
		table-layout: fixed;
		hyphens: auto;
	}
	.entry-content .swipe-track > table tr:first-child > :first-child {
		width: var(--first-column);
	}
	.entry-content .swipe-track > table :is(th, td) {
		scroll-snap-align: start;
	}
	.entry-content .swipe-track > table :is(th, td):first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		padding-right: 0.625rem;
		border-right: 1px solid var(--line-strong);
		background-color: var(--paper);
		scroll-snap-align: none;
	}
}

/* Gallery: on a phone a row to swipe through, each picture's caption under it; wider, a grid. */
.entry-content .wp-block-gallery {
	display: block;
	margin-block: 2rem;
}
.entry-content .wp-block-gallery > .swipe-track {
	display: flex;
	gap: 0.75rem;
}
/*
 * WordPress sizes and crops a gallery's pictures with an id in its selectors, and lays each caption over
 * its picture; ":not(#individual-image)" is how its own stylesheet outranks itself, and how these rules do.
 */
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	display: block;
	flex: 0 0 80%;
	width: auto;
	margin: 0;
	scroll-snap-align: start;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):only-child {
	flex-basis: 100%;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
	width: 100%;
	height: auto;
}
/* Cropped, the pictures all take the shape of the first one (inc/blocks.php), or of the site's cards when its size is not known. */
.entry-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	aspect-ratio: var(--gallery-shape, 16 / 10);
	object-fit: cover;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)::before {
	content: none;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption {
	position: static;
	max-height: none;
	margin: 0.5rem 0 0;
	padding: 0;
	overflow: visible;
	background: none;
	color: var(--muted);
	font-size: 0.8125rem;
	text-align: left;
	text-shadow: none;
	scrollbar-gutter: auto;
}
.entry-content .wp-block-gallery.has-nested-images > figcaption {
	margin-top: 0.75rem;
	text-align: left;
}
@media (min-width: 40rem) {
	.entry-content .wp-block-gallery > .swipe-track {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem 1rem;
		overflow: visible;
	}
	/* WordPress gives each picture a width for every count of pictures; a least width outranks them all. */
	.entry-content .wp-block-gallery > .swipe-track > .wp-block-image {
		min-width: 100%;
	}
	/* One picture, two or four: rows of one or of two. */
	.entry-content .wp-block-gallery:is(.columns-1, .columns-default:has(.wp-block-image:only-child)) > .swipe-track {
		grid-template-columns: minmax(0, 1fr);
	}
	.entry-content .wp-block-gallery:is(.columns-2, .columns-default:has(.wp-block-image:nth-child(2):last-child, .wp-block-image:nth-child(4):last-child)) > .swipe-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.entry-content .wp-block-gallery:is(.columns-4, .columns-5, .columns-6, .columns-7, .columns-8) > .swipe-track {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
/* Three pictures or more, or a table of five columns or more, need the room an article's main picture has. */
@media (min-width: 60rem) {
	.entry-content > .wp-block-gallery:has(.wp-block-image:nth-child(3)),
	.entry-content > .wp-block-table.has-many-columns {
		width: 55rem;
		margin-inline: calc(50% - 27.5rem);
	}
}

/* Buttons: the site's own button; "Outline" is the secondary one. */
:is(.entry-content, .is-root-container) .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
:is(.entry-content, .is-root-container) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--cta);
	border-radius: var(--radius-pill);
	background: var(--cta);
	color: var(--cta-ink);
	font-family: var(--sans);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s;
}
:is(.entry-content, .is-root-container) .wp-block-button__link:hover {
	background: var(--cta-hover);
}
:is(.entry-content, .is-root-container) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	padding: 0.75rem 1.5rem;
	background: var(--surface);
	color: var(--ink);
}
:is(.entry-content, .is-root-container) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background: var(--hover-tint);
}

/* Details: a question that opens to show its answer. */
:is(.entry-content, .is-root-container) details {
	border: 1px solid var(--line);
	border-radius: var(--radius-field);
	background: var(--surface);
}
:is(.entry-content, .is-root-container) summary {
	min-height: 3rem;
	padding: 0.625rem 1rem;
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 700;
	cursor: pointer;
}
:is(.entry-content, .is-root-container) details[open] > summary {
	border-bottom: 1px solid var(--line);
}
:is(.entry-content, .is-root-container) details > :not(summary) {
	margin: 1rem;
}

/* Separator */
:is(.entry-content, .is-root-container) hr {
	height: 0;
	margin: 2.25rem 0;
	border: 0;
	border-top: 1px solid var(--line);
	background: none;
	opacity: 1;
}

/*
 * File: a picture of its first page (or a tile naming its kind), then its name, what it is and the button.
 * The picture comes from the plugin (includes/document-previews.php) through inc/blocks.php.
 */
:is(.entry-content, .is-root-container) .wp-block-file {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.375rem 1rem;
	align-items: start;
	justify-items: start;
	padding: 0.875rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	background: var(--surface);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.35;
}
.entry-content .wp-block-file > :not(.file-preview, .wp-block-file__embed) {
	grid-column: 2;
}
.entry-content .wp-block-file > a:not(.wp-block-file__button) {
	color: var(--ink);
	font-weight: 600;
	text-decoration-color: var(--line-strong);
}
.file-preview {
	grid-row: 1 / span 3;
	width: 4.75rem;
	border: 1px solid var(--line);
	border-radius: min(0.1875rem, var(--radius-card));
}
/* A file with no picture: a sheet of the same shape that names its kind. */
.file-kind {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1.294;
	background: var(--paper);
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
/*
 * A line of short facts with a dot between each two: what a file is, or when an article came out and how long
 * it is. Each fact's dot hangs to its left, where the start of a line hides it, so a line never ends on a dot.
 */
.fact-line {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1.125em;
	overflow: hidden;
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
}
.fact-line > * {
	position: relative;
}
.fact-line > ::before {
	content: "·";
	position: absolute;
	left: -0.7em;
}
:is(.entry-content, .is-root-container) .wp-block-file .wp-block-file__button {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	margin: 0.375rem 0 0;
	padding: 0 1.125rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius-pill);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition:
		background 0.2s,
		transform 0.16s var(--ease-out);
}
:is(.entry-content, .is-root-container) .wp-block-file .wp-block-file__button:active {
	transform: scale(0.97);
}
/* "Show inline embed": the document itself, where the browser can show one, under its card. */
:is(.entry-content, .is-root-container) .wp-block-file__embed {
	grid-column: 1 / -1;
	order: 1;
	width: 100%;
	margin: 0.5rem 0 0;
	border-radius: var(--radius-field);
}
@media (hover: hover) and (pointer: fine) {
	:is(.entry-content, .is-root-container) .wp-block-file .wp-block-file__button:hover {
		background: var(--hover-tint);
	}
}

/* One of the site's own articles, linked on a line of its own (template-parts/card-related.php). */
.related-card {
	position: relative;
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 0.875rem;
	align-items: center;
	padding: 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	background: var(--surface);
	font-family: var(--sans);
}
.related-card-photo {
	align-self: start;
	overflow: hidden;
	border-radius: var(--radius-field);
	background: var(--forest);
}
.related-card-photo img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
}
.related-card-text {
	display: grid;
	gap: 0.25rem;
}
.related-card-label {
	color: var(--kicker);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.related-card-headline {
	font-family: var(--display);
	font-size: 1.0625rem;
	font-weight: var(--display-weight);
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.entry-content .related-card-headline a {
	color: var(--ink);
	text-decoration: none;
}
.related-card-headline a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.related-card-headline a:focus-visible {
	outline: none;
}
.related-card:has(a:focus-visible) {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}
/* Two in a row read as one short list. */
.entry-content .wp-block-embed:has(.related-card) + .wp-block-embed:has(.related-card) {
	margin-top: -1.25rem;
}
@media (hover: hover) and (pointer: fine) {
	.related-card {
		transition: border-color 0.2s;
	}
	.related-card:hover {
		border-color: var(--line-strong);
	}
}

/* Code is kept on its own lines and scrolls sideways; words set as typed (Preformatted) wrap. */
:is(.entry-content, .is-root-container) :is(pre, code, kbd) {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 0.85em;
}
:is(.entry-content, .is-root-container) pre {
	padding: 1rem;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-field);
	background: var(--surface);
	font-size: 0.875rem;
	line-height: 1.55;
	white-space: pre-wrap;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}
:is(.entry-content, .is-root-container) pre.wp-block-code,
:is(.entry-content, .is-root-container) pre.wp-block-code code {
	font-size: 0.875rem;
	white-space: pre;
}
:is(.entry-content, .is-root-container) :not(pre) > code {
	padding: 0.1em 0.35em;
	border-radius: min(0.25rem, var(--radius-card));
	background: var(--hover-tint);
}

/* Footnotes: the numbered notes that end an article, and the numbers in the story that lead to them. */
:is(.entry-content, .is-root-container) sup.fn {
	font-family: var(--sans);
	font-size: 0.7em;
	font-weight: 600;
	line-height: 0;
}
:is(.entry-content, .is-root-container) sup.fn a {
	padding: 0 0.15em;
	text-decoration: none;
}
:is(.entry-content, .is-root-container) .wp-block-footnotes {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.55;
}
:is(.entry-content, .is-root-container) .wp-block-footnotes a {
	text-decoration: none;
}

/* Where an editor has placed a block to one side, or made it wide. */
:is(.entry-content, .is-root-container) .aligncenter {
	margin-inline: auto;
	text-align: center;
}
@media (min-width: 40rem) {
	.entry-content .alignleft {
		float: left;
		max-width: 50%;
		margin: 0.375rem 1.5rem 1rem 0;
	}
	.entry-content .alignright {
		float: right;
		max-width: 50%;
		margin: 0.375rem 0 1rem 1.5rem;
	}
	/* Words run beside a picture placed to one side; a new section and anything wide start beneath it. */
	.entry-content > :is(h2, figure, table, pre, details, hr, .wp-block-columns, .wp-block-cover, .wp-block-file, .wp-block-buttons, .wp-block-media-text):not(.alignleft, .alignright) {
		clear: both;
	}
}
/* "Wide" and "Full" both reach the width of an article's main picture; on a phone, the screen's edges. */
.entry-content > :is(.alignwide, .alignfull) {
	width: calc(100% + 2 * var(--gutter));
	max-width: none;
	margin-inline: calc(-1 * var(--gutter));
}
/* At the screen's edges a picture has no corners, and its caption starts where the words do. */
@media (max-width: 59.9375rem) {
	.entry-content > :is(.alignwide, .alignfull):is(.wp-block-cover, .wp-block-image) :is(img, video, .panorama),
	.entry-content > .wp-block-cover:is(.alignwide, .alignfull) {
		border-radius: 0;
	}
	.entry-content > :is(.alignwide, .alignfull) > figcaption {
		padding-inline: var(--gutter);
	}
}
@media (min-width: 60rem) {
	.entry-content > :is(.alignwide, .alignfull) {
		width: 55rem;
		margin-inline: calc(50% - 27.5rem);
	}
}

/*
 * An article's sources: the heading and list that end its words (the "Sources" heading, then links), before
 * its footnotes when it has any. They are set apart from the story by a rule and set in compact sans,
 * matching the Share section below.
 */
.article-body > h2:has(+ ul:last-child),
.article-body > h2:has(+ ul + .wp-block-footnotes:last-child) {
	margin: 2.75rem 0 1rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.article-body > h2 + ul:last-child,
.article-body > h2 + ul:has(+ .wp-block-footnotes:last-child) {
	display: grid;
	gap: 0.625rem;
	padding-left: 1.25rem;
	color: var(--ink-soft);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.55;
}
.article-body > h2 + ul:last-child li,
.article-body > h2 + ul:has(+ .wp-block-footnotes:last-child) li {
	margin: 0;
}
/* The share heading then follows the sources without a second rule. */
.article-body:has(> h2 + ul:last-child) + .article-footer {
	padding-top: 0;
	border-top: 0;
}

@media (min-width: 40rem) {
	:is(.entry-content, .is-root-container) .wp-block-columns.is-style-figures {
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}
	.related-card {
		grid-template-columns: 9rem minmax(0, 1fr);
		gap: 1.125rem;
	}
	.related-card-headline {
		font-size: 1.25rem;
	}
	.file-preview {
		width: 5.5rem;
	}
}
@media (min-width: 48rem) {
	.entry-content,
	.is-root-container {
		font-size: 1.3125rem;
		line-height: 1.72;
	}
	:is(.entry-content, .is-root-container) > p:first-child:has(> em:only-child) {
		margin-bottom: 2rem;
		padding: 1rem 0;
		font-size: 1rem;
	}
	:is(.entry-content, .is-root-container) :is(h2, h3, h4) {
		margin: 2.75rem 0 0.875rem;
	}
	:is(.entry-content, .is-root-container) h2 {
		font-size: 1.75rem;
	}
	:is(.entry-content, .is-root-container) h3 {
		font-size: 1.4375rem;
	}
	:is(.entry-content, .is-root-container) h4 {
		font-size: 1.1875rem;
	}
	:is(.entry-content, .is-root-container) blockquote {
		margin: 2.25rem 0;
		padding: 0.375rem 0 0.375rem 1.5rem;
		font-size: 1.5rem;
	}
	:is(.entry-content, .is-root-container) .wp-block-pullquote {
		margin: 2.75rem 0;
		padding: 2rem 0;
	}
	:is(.entry-content, .is-root-container) .wp-block-pullquote blockquote {
		padding: 0;
		font-size: 1.875rem;
	}
	:is(.entry-content, .is-root-container) :is(.wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-embed, .wp-block-cover, .wp-block-media-text, .wp-block-table, .wp-block-gallery, .wp-block-columns.is-style-figures) {
		margin-block: 2.5rem;
	}
	:is(.entry-content, .is-root-container) figcaption {
		font-size: 0.9375rem;
	}
	:is(.entry-content, .is-root-container) table {
		font-size: 1rem;
	}
	:is(.entry-content, .is-root-container) table thead th {
		font-size: 0.875rem;
	}
	:is(.entry-content, .is-root-container) .wp-block-cover {
		padding: 2rem;
	}
	.article-body > h2 + ul:last-child,
	.article-body > h2 + ul:has(+ .wp-block-footnotes:last-child) {
		font-size: 1rem;
	}
}

/* 11. Certification: mark, band and page -------------------------------------------------------------------- */

/* The mark takes the look's colours; the drawing itself sets none. */
.cert-mark-circles {
	stroke: var(--mark-line);
}
.cert-mark-words {
	fill: var(--ink);
	font-family: var(--sans);
}

/* The home page's band */
.band {
	margin-top: 2rem;
	padding: 2.5rem var(--gutter);
	background: var(--band);
}
.band-inner {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	max-width: var(--page);
	margin: 0 auto;
}
.band-mark {
	width: 10rem;
}
.band-title {
	font-size: 2rem;
}
.band-text {
	margin-top: 0.75rem;
	max-width: 34rem;
	color: var(--ink-soft);
}
.band-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
/* The certification page */
.cert-hero {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}
.cert-hero-mark {
	width: 9rem;
}
.cert-actions {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
.cert-block,
.cert-content > h2 {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}
.cert-title,
.cert-content > h2 {
	font-size: 1.875rem;
}
/*
 * The page's own words, drawn by what they are (page-certification.php): a bulleted list whose items start
 * in bold is the pillars, a numbered list is the steps, the paragraph after the steps is the small note.
 */
.cert-content > :is(p, ul, ol) {
	margin: 1.25rem 0 0;
}
.cert-content > p {
	max-width: 38rem;
	color: var(--ink-soft);
}
.cert-content > ul:has(> li > strong:first-child) {
	display: grid;
	gap: 1rem;
	padding: 0;
	list-style: none;
}
.cert-content > ul > li:has(> strong:first-child) {
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius-panel);
	background: var(--band);
	color: var(--ink-soft);
}
.cert-content > ul > li > strong:first-child {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--ink);
	font-family: var(--display);
	font-size: 1.5rem;
	font-weight: var(--display-weight);
	line-height: 1.15;
	letter-spacing: -0.015em;
}
.cert-content > ul > li > strong:first-child + br {
	display: none;
}
.cert-content > ol {
	display: grid;
	gap: 1rem;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.cert-content > ol > li {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	font-size: 1.1875rem;
	counter-increment: step;
}
.cert-content > ol > li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--forest);
	color: var(--on-forest-link);
	font-weight: 800;
}
.cert-content > ol + p {
	max-width: none;
	color: var(--muted);
	font-size: 1.0625rem;
}

@media (min-width: 40rem) {
	.cert-actions {
		display: flex;
		flex-wrap: wrap;
	}
}
@media (min-width: 48rem) {
	.band-inner {
		grid-template-columns: 13rem 1fr;
		gap: 3rem;
	}
	.band-mark,
	.cert-hero-mark {
		width: 100%;
	}
	.band-title {
		font-size: 2.5rem;
	}
	.cert-hero {
		grid-template-columns: 12rem 1fr;
		gap: 3rem;
	}
	.cert-title,
	.cert-content > h2 {
		font-size: 2.25rem;
	}
	.cert-content > ul:has(> li > strong:first-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* 12. Footer ------------------------------------------------------------------------------------------------ */

.site-footer {
	margin-top: 3rem;
	padding: 2.5rem var(--gutter) 2rem;
	background: var(--forest);
	color: var(--on-forest-body);
}
.site-footer-inner {
	max-width: var(--page);
	margin: 0 auto;
	display: grid;
	gap: 1.5rem;
}
.site-footer .site-brand {
	display: flex;
	align-items: center;
	width: 11rem;
	min-height: 3rem;
}
.site-footer-tagline {
	font-size: 1.125rem;
}
.site-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
}
.site-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	color: var(--on-forest);
	font-weight: 600;
}
.site-footer-note {
	padding-top: 1.25rem;
	border-top: 1px solid var(--on-forest-line);
	color: var(--on-forest-soft);
	font-size: 1rem;
}

/* 13. Motion ------------------------------------------------------------------------------------------------ */

/*
 * How the pictures move: each look its own way, quieter as the looks get more serious.
 *
 * A picture moves once, in under four seconds, when its card or figure comes into view (data-playing, set by
 * assets/js/site.js), and ends on the picture at rest. Reduced motion shows it still. A look with no rule of
 * its own gets the slow zoom.
 */
.art-motion {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.art-motion img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.art-motion::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	/* Light, Obsidian Editorial and Editorial: a very slow zoom, like a news photo on a front page. Nothing else moves. */
	:is([data-playing] .art-motion, .art-motion[data-playing]) img {
		animation: greeener-settle 3.8s ease-in-out both;
	}

	/* Sage: the picture slides sideways into place. */
	html[data-look="sage"] :is([data-playing] .art-motion, .art-motion[data-playing]) img {
		animation: greeener-drift 3.6s var(--ease-out) both;
	}

	/* Moss: the picture swings round to face the reader, then settles. */
	html[data-look="moss"] :is([data-playing] .art-motion, .art-motion[data-playing]) {
		animation: greeener-swing 1.6s cubic-bezier(0.2, 0.9, 0.25, 1.12) both;
	}
	html[data-look="moss"] :is([data-playing] .art-motion, .art-motion[data-playing]) img {
		animation: greeener-rise 3s var(--ease-out) both;
	}

	/* Graphite: a slow camera dolly, with one sweep of light like a passing car. */
	html[data-look="graphite"] :is([data-playing] .art-motion, .art-motion[data-playing]) img {
		animation: greeener-dolly 3.8s cubic-bezier(0.33, 0, 0.2, 1) both;
	}
	html[data-look="graphite"] :is([data-playing] .art-motion, .art-motion[data-playing])::after {
		inset: 0 -60%;
		background: linear-gradient(100deg, transparent 40%, rgb(255 255 255 / 0.1) 50%, transparent 60%);
		animation: greeener-sweep 2.4s ease-in-out 0.4s both;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@keyframes greeener-settle {
	from {
		transform: scale(1.08);
	}
}
@keyframes greeener-drift {
	from {
		transform: scale(1.1) translateX(-4%);
	}
}
@keyframes greeener-swing {
	from {
		transform: perspective(40rem) rotateY(-18deg) rotateX(6deg) scale(0.9);
	}
}
@keyframes greeener-rise {
	from {
		transform: scale(1.1) translateY(4%);
	}
}
@keyframes greeener-dolly {
	from {
		transform: scale(1.1) translate(3%, 1%);
	}
}
@keyframes greeener-sweep {
	from {
		opacity: 1;
		transform: translateX(-40%);
	}
	85% {
		opacity: 1;
	}
	to {
		opacity: 0;
		transform: translateX(40%);
	}
}

/* 14. Looks: where one differs in more than a value --------------------------------------------------------- */

/*
 * A look's colours, corners and display face are tokens (inc/looks.php). These rules are the differences a
 * token cannot carry. html[data-dark] is every look with light text on a dark page.
 */

/* Light: the fact card about power and places is a forest block, so its words take the forest's text colours. */
html:not([data-dark]) .card-flash.topic-power {
	color: var(--on-forest);
}
html:not([data-dark]) .card-flash.topic-power :is(.card-label, .card-lede, .card-meta) {
	color: var(--on-forest-soft);
}

/* Dark looks: fact cards sit on the page's own surface, inside a line. */
html[data-dark] .card-flash {
	border-color: var(--line);
}
html[data-dark] .card-meta {
	color: var(--ink-soft);
}
/* Company logos are drawn for light pages, so in the dark looks each sits on a light plate. */
html[data-dark] .card-logo {
	padding: 0.625rem 0.875rem;
	border: 0;
	border-radius: var(--radius-field);
}
/* The certification button is mint or white, so the wordmark is its shape in the button's ink. */
html[data-dark] .site-cta-wordmark {
	background: currentColor;
	mask: url("assets/img/greeener-logo-solid.svg") center / contain no-repeat;
}
/* The footer is close to the page's colour, so a line marks where it starts. */
html[data-dark] .site-footer {
	border-top: 1px solid var(--line);
}
html[data-dark] .article-figure {
	border-radius: var(--radius-card);
}
html[data-dark] .entry-content {
	font-weight: 430;
}

/* Editorial, after a newspaper: no boxes, a rule above each card, the picture inset below it. */
html[data-look="editorial"] .site-header {
	border-bottom-color: var(--ink);
}
html[data-look="editorial"] .card {
	padding-inline: 0;
	border-width: 2px 0 0;
	border-color: var(--ink);
	background: transparent;
}
html[data-look="editorial"] .card-photo {
	margin: -0.5rem 0 0.25rem;
}
html[data-look="editorial"] .card-explore {
	padding-inline: 1.5rem;
	background: var(--forest);
}
html[data-look="editorial"] .card-explore:hover {
	background: var(--forest-hover);
}
html[data-look="editorial"] .article-title {
	letter-spacing: -0.015em;
}

/* 15. Print ------------------------------------------------------------------------------------------------- */

@media print {
	/*
	 * Ink on white paper whatever the look; the menu, buttons and share options are no use on paper.
	 * "html:root" outranks the look's own ":root" rule, which is printed after this file.
	 */
	html:root {
		--paper: #ffffff;
		--surface: #ffffff;
		--ink: #000000;
		--ink-soft: #222222;
		--muted: #333333;
		--link: #000000;
		--kicker: #000000;
		--line: #999999;
		color-scheme: light;
	}
	.site-header,
	.site-footer,
	.skip-link,
	.back-link,
	.share,
	.article-footer,
	.article-more,
	.rail-controls,
	.swipe-controls,
	.band-actions,
	.cert-actions,
	.pagination,
	.search-form {
		display: none !important;
	}
	.entry-content a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		word-break: break-all;
	}
}
