/*
 * Entangle Records — updates: the list, the page of an update, the article inside the drawer.
 *
 * Written to stand on any block theme. Nothing here names a class of a theme: colours, spacing and shape come
 * from custom properties with fallbacks — the theme's own where it has them (--color-*, --radius-pill,
 * --wp--custom--gutter, --wp--preset--spacing--*), else values derived from the colour of the text around, so a
 * dark theme gets a dark list. Override the --eu-* properties (below) to restyle the whole thing at once.
 *
 *   --eu-gap     the air between updates
 *   --eu-rule    the thin line between them and around the small controls
 *   --eu-muted   the colour of dates and secondary lines
 *   --eu-chip-bg / --eu-chip-ink   a channel label
 *   --eu-accent  the "Read more" link
 *   --eu-radius  the roundness of labels and links that look like buttons
 *
 * Pagination and the filter are plain links in the markup of core's pagination; their baseline is written with
 * :where() (no specificity), so that a theme which styles pagination styles them and nothing here wins over it.
 */

.entangle-updates,
.entangle-update-page,
.entangle-update--detail {
	--eu-gap: var(--wp--preset--spacing--50, 1.5rem);
	/* The air inside a card of the grid: the step the wide bands of a front page are padded with, so the title of an
	   update begins under the words of the band above it (the owner, 27. 10.). */
	--eu-pad: var(--wp--preset--spacing--60, 2rem);
	--eu-rule: var(--color-rule, color-mix(in srgb, currentColor 18%, transparent));
	--eu-rule-strong: var(--color-rule-solid, color-mix(in srgb, currentColor 35%, transparent));
	--eu-muted: var(--color-ink-soft, color-mix(in srgb, currentColor 68%, transparent));
	--eu-chip-bg: var(--color-brand-soft, color-mix(in srgb, currentColor 9%, transparent));
	--eu-chip-ink: var(--color-ink, currentColor);
	--eu-accent: var(--color-brand, currentColor);
	--eu-radius: var(--radius-pill, 999px);
}

/* ===== The page the templates draw: the archive and the page of one update ===== */
.entangle-updates-page {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--entangle-updates-width, 60rem);
	margin-inline: auto;
	padding-inline: var(--gutter, var(--wp--custom--gutter, 1.25rem));
	padding-block-start: var(--wp--preset--spacing--70, 3rem);
	padding-block-end: var(--entangle-footer-space, var(--wp--preset--spacing--80, 4rem));
}
.entangle-updates-page > .wp-block-query-title {
	margin-block: 0 var(--wp--preset--spacing--50, 1.5rem);
}

/* ===== The list ===== */
/*
 * A grid with no column of its own gets one that is as wide as the widest thing in it (`auto`, which cannot go
 * below the min-content of what it holds): a long address, a table or a line of code then makes the whole list wider
 * than a phone and the page scrolls sideways. Every grid here has the one column that may shrink to nothing.
 */
.entangle-updates__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-updates__item {
	margin: 0;
	padding-block: var(--eu-gap);
	border-block-start: 1px solid rgba(128, 128, 128, 0.3);
	border-block-start-color: var(--eu-rule);
}
.entangle-updates__item:first-child {
	padding-block-start: 0;
	border-block-start: 0;
}
.entangle-updates__empty {
	margin: 0;
	color: var(--eu-muted);
}

/* Compact (`compact`, 29. 10.): a feed of many short news, as a live feed draws them (the owner's pattern) — the
   date above, the title bold at the size of the text and the text under it, whole; hairlines between, less air. The
   record an update is about stays: in such a feed it is what the line is read by. */
.entangle-updates--compact .entangle-updates__item {
	padding-block: calc(var(--eu-gap) * 0.75);
}
.entangle-updates--compact .entangle-update__text {
	gap: 0.375em;
}
.entangle-updates--compact .entangle-update__title {
	font-size: 1em;
	line-height: 1.45;
}
.entangle-updates--compact .entangle-update__body > * {
	margin-block: 0;
}
.entangle-updates--compact .entangle-update__more {
	display: none;
}

/* Two columns (`columns`: 2), where the page has the width for them — the same grid the cards of the proposals and
   of the projects use, so a page that holds both reads as one. Each item is a card then, and a card that leads
   somewhere is one target: the whole of it (the owner, 27. 10.). An update that says everything it has in the list
   leads nowhere, and is given no hover, no hand and no stretched link — there would be nothing behind them.

   No air between the boxes (the owner, 27. 10.): the news are one surface divided by hairlines, as the two bands
   above them are. Each box draws the line on its end and bottom and the list the one above and before it, so where
   two boxes meet there is ONE line and not two side by side. */
.entangle-updates--grid .entangle-updates__list {
	gap: 0;
	border: 0 solid rgba(128, 128, 128, 0.3);
	border-color: var(--eu-rule);
	border-block-start-width: 1px;
	border-inline-start-width: 1px;
}
/* Two, and two only (the owner, 27. 10.): a page wide enough for a third would make the news a grid of tiles, and
   they are read as a strip of what is new. Under that width they stand under each other. */
@media (min-width: 48rem) {
	.entangle-updates--grid .entangle-updates__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Where the card is wide enough, the picture stands BESIDE the words (the owner, 28. 10.): a thumbnail in a column
   of its own, a third of the card at most, with the date, the title and the text in the rest of it. Over the words
   it was a banner, and a card of news is read as a line of text with a picture at its side. The same card whether
   the list has two columns or one (the tab of a record), so news read the same wherever they stand. */
@media (min-width: 48rem) {
	.entangle-update.has-image {
		grid-template-columns: minmax(0, clamp(7rem, 26%, 12rem)) minmax(0, 1fr);
		align-items: start;
		column-gap: var(--eu-gap);
	}
	.entangle-update.has-image > .entangle-update__figure {
		max-width: none;
	}
}
.entangle-updates--grid .entangle-updates__item {
	position: relative;
	display: grid;
	padding: var(--eu-pad);
	border: 0 solid rgba(128, 128, 128, 0.3);
	border-color: var(--eu-rule);
	border-inline-end-width: 1px;
	border-block-end-width: 1px;
	border-radius: 0;
	background: var(--color-card, transparent);
}
.entangle-updates--grid .entangle-update--long .entangle-update__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.entangle-updates--grid .entangle-update--long .entangle-update__title a:focus-visible {
	outline: none;
}
.entangle-updates--grid .entangle-updates__item:focus-within {
	outline: 2px solid var(--eu-accent);
	outline-offset: 2px;
}
@media (hover: hover) {
	.entangle-updates--grid .entangle-updates__item:has(.entangle-update--long):hover {
		background: var(--color-bg-alt, rgba(128, 128, 128, 0.06));
	}
}
@media (prefers-reduced-motion: no-preference) {
	.entangle-updates--grid .entangle-updates__item {
		transition: background-color 0.15s ease;
	}
}

/* Cards (`cards`, the owner, 29. 10.): every update a box with the line around it, the whole box one target that
   opens the update (in the drawer, where the theme has one) — a short one too, only without "Read more", which a
   short one does not need. Hovering anywhere on the box is hovering its link: a light grey surface, the title
   underlined, "Read more" moving. The boxes touch, and where two meet there is one line (the one below overlaps). */
.entangle-updates--cards .entangle-updates__list {
	gap: 0;
}
.entangle-updates--cards .entangle-updates__item,
.entangle-updates--cards .entangle-updates__item:first-child {
	position: relative;
	padding: var(--eu-pad);
	border: 1px solid rgba(128, 128, 128, 0.3);
	border-color: var(--eu-rule);
	background: var(--color-card, transparent);
}
.entangle-updates--cards .entangle-updates__item + .entangle-updates__item {
	margin-block-start: -1px;
}
.entangle-updates--cards .entangle-update__title a::after,
.entangle-updates--cards .entangle-update:not(:has(.entangle-update__title a)) .entangle-update__permalink::after {
	content: "";
	position: absolute;
	inset: 0;
}
.entangle-updates--cards .entangle-update__title a:focus-visible,
.entangle-updates--cards .entangle-update__permalink:focus-visible {
	outline: none;
}
.entangle-updates--cards .entangle-updates__item:focus-within {
	outline: 2px solid var(--eu-accent);
	outline-offset: -2px;
}
/* A row that leads to the update on the page of its record (`toRecord`): the whole row is the link of its title. */
.entangle-updates--to-record .entangle-updates__item {
	position: relative;
}
/* The place an address leads to stands clear of the header and the tabs that stick over it. It is a mark, not a part of
   the card: out of the flow, because a child of the grid of .entangle-update takes a cell — the first one, and the
   picture then stands in the column of the words and the words under it in the column of the thumbnail (the owner,
   2. 11.). With no insets it stays where it stood, at the start of the article. */
.entangle-update__place {
	position: absolute;
	scroll-margin-top: calc(var(--header-h, 0px) + 96px);
}
.entangle-updates--to-record .entangle-update__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.entangle-updates--to-record .entangle-update__title a:focus-visible {
	outline: none;
}
.entangle-updates--to-record .entangle-updates__item:focus-within {
	outline: 2px solid var(--eu-accent);
	outline-offset: -2px;
}
@media (hover: hover) {
	.entangle-updates--to-record .entangle-updates__item:hover {
		background: var(--color-bg-alt, rgba(128, 128, 128, 0.06));
	}
	.entangle-updates--to-record .entangle-updates__item:hover .entangle-update__title a {
		color: var(--eu-accent);
	}
}
/* What leads somewhere else stays a link of its own over the box: the record the update is about. */
.entangle-updates--cards .entangle-update__about a {
	position: relative;
	z-index: 1;
}
@media (hover: hover) {
	.entangle-updates--cards .entangle-updates__item:hover {
		background: var(--color-bg-alt, rgba(128, 128, 128, 0.06));
	}
	.entangle-updates--cards .entangle-updates__item:hover .entangle-update__title a {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
	.entangle-updates--cards .entangle-updates__item:hover .entangle-update__more-link {
		text-decoration: underline;
		text-underline-offset: 3px;
	}
	.entangle-updates--cards .entangle-updates__item:hover .entangle-update__more-link::after {
		transform: translateX(3px);
	}
}
@media (prefers-reduced-motion: no-preference) {
	.entangle-updates--cards .entangle-updates__item {
		transition: background-color 0.15s ease;
	}
}
/* The picture of a card answers the hover as a proposal's and a project's do (the owner, 31. 10.): it grows a little
   inside its frame — the same 1.04 in 0.4 s as entangle-budget's gallery and entangle-projects' cards. Only where the
   person has not asked for less motion. */
.entangle-updates--cards .entangle-update__figure {
	overflow: hidden;
	border-radius: var(--radius, 0);
}
@media (prefers-reduced-motion: no-preference) {
	.entangle-updates--cards .entangle-update__figure img {
		transition: transform 0.4s ease;
	}
	.entangle-updates--cards .entangle-updates__item:hover .entangle-update__figure img {
		transform: scale(1.04);
	}
}
/* A card is a teaser of the update, the whole of it one click away (the drawer, the page): its text two lines at most
   (the owner, 30. 10.). An update written without a More marker is short and brings its whole text into the list —
   news taken over from an older site ran down the page beside the introduction of the budget. The paragraphs lose
   their air so that the two lines are the first two lines of the text; what is below them (a table, a picture) is cut. */
.entangle-updates--cards .entangle-update__body {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}
.entangle-updates--cards .entangle-update__body > * {
	margin-block: 0;
}

/* ===== One update — in the list, on its page and in the drawer ===== */
/* In a list the card is the picture and, beside or under it, a box with the words; on a page and in the drawer the
   article is the words themselves. Both are a column with the same air between its parts. */
.entangle-update__text {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: 0.625em;
	min-width: 0;
}
.entangle-update {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	/* The rows keep the height of what is in them (the owner, 28. 10.): in a grid of cards the tallest card decides
	   how tall a cell is, and a row that may stretch would share that height out between the date, the title and the
	   text — the card next to a long one would then have bigger gaps than its neighbour. */
	align-content: start;
	gap: 0.625em;
	min-width: 0;
	/* A link to #aktualita-<id> must not hide the item under a sticky header. */
	scroll-margin-block-start: var(--header-h, 6rem);
}
/*
 * What a person wrote is of any width: a web address as long as a line, a word without a break, a wide table, a line of
 * code. Words and addresses break where they must; what cannot (a table, code) scrolls inside the text, and the page does not.
 * `break-word` and not `anywhere`: the second also lowers the min-content of everything inside, so a table of thirty columns
 * would shrink to the width of the text and break "Sloupec" into "Slou" and "pec"; and a table whose columns re-wrap
 * with every pixel of the container (the scrollbar that goes when the drawer opens) moves the page under the reader.
 */
.entangle-update__title,
.entangle-update__body,
.entangle-update__content {
	min-width: 0;
	overflow-wrap: break-word;
}
.entangle-update__body,
.entangle-update__content {
	overflow-x: auto;
	/*
	 * A scroll container cuts off what is painted outside its padding box, and the focus ring of a link (the theme's: an
	 * outline of 2px, 2px away) is painted 4px outside the link: the first and last line and the start of every line would
	 * lose a side of it. The room for the ring is padding, taken back from the margin, so that nothing moves. On the
	 * start side and above and below only: what the box gains there is overflow that cannot be scrolled to, while the same
	 * on the end side would be 4px of scrollable width for the page behind it.
	 */
	padding-block: 4px;
	padding-inline-start: 4px;
	margin-block: -4px;
	margin-inline-start: -4px;
}
.entangle-update__body :where(img, video, svg),
.entangle-update__content :where(img, video, svg) {
	max-width: 100%;
	height: auto;
}
/* An embed (a map, a video, a form) keeps the height it was pasted with: `height: auto` makes an iframe 150px, whatever it says. */
.entangle-update__body :where(iframe),
.entangle-update__content :where(iframe) {
	max-width: 100%;
}
.entangle-update__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375em 0.75em;
	font-size: 0.875em;
	line-height: 1.4;
	color: var(--eu-muted);
}
.entangle-update__permalink,
.entangle-update__date {
	color: inherit;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}
.entangle-update__permalink:hover,
.entangle-update__permalink:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.entangle-update__channels {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.375em;
	margin: 0;
	padding: 0;
	list-style: none;
}
.entangle-update__channel,
.entangle-update__flag {
	padding: 0.125em 0.75em;
	border-radius: var(--eu-radius);
	background: rgba(128, 128, 128, 0.14);
	background: var(--eu-chip-bg);
	color: var(--eu-chip-ink);
	font-size: 0.8125rem;
	line-height: 1.5;
}
.entangle-update__flag {
	border: 1px dashed currentColor;
	background: transparent;
}
.entangle-update__title {
	margin: 0;
	font-size: 1.25em;
	line-height: 1.25;
}
.entangle-update__title a {
	color: inherit;
	text-decoration: none;
}
.entangle-update__title a:hover,
.entangle-update__title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.entangle-update__body > :first-child,
.entangle-update__content > :first-child {
	margin-block-start: 0;
}
.entangle-update__body > :last-child,
.entangle-update__content > :last-child {
	margin-block-end: 0;
}
/* The picture of an update: a thumbnail of a card (3:2), never a banner over the words. */
.entangle-update__figure {
	margin: 0;
	width: 100%;
	max-width: 24rem;
}
.entangle-update__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.entangle-update__about {
	margin: 0;
	font-size: 0.875em;
	color: var(--eu-muted);
}
.entangle-update__about-label {
	margin-inline-end: 0.25em;
}
.entangle-update__more {
	margin: 0;
}
.entangle-update__more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375em;
	min-height: 2rem;
	color: var(--eu-accent);
	font-weight: 600;
	text-decoration: none;
}
.entangle-update__more-link::after {
	content: "\2192";
	content: "\2192" / "";
	transition: transform 0.15s ease;
}
.entangle-update__more-link:hover,
.entangle-update__more-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.entangle-update__more-link:hover::after,
.entangle-update__more-link:focus-visible::after {
	transform: translateX(3px);
}
.entangle-update__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The picture of a card: the whole width of the card and one shape, whatever the picture is — the cards of the
   proposals and of the projects are cut the same way (3:2), and the news stand beside them. */
/* A thumbnail, not a banner (the owner, 28. 10.): three to two, and no wider than this — a card of the grid is half
   a wide page, and a picture across all of it would be the card. On a narrower card it shrinks with it. */
/* What the system wrote about a stage change is a line, not an article. */
.entangle-update--system .entangle-update__body {
	color: var(--eu-muted);
	font-size: 0.9375em;
}
/* What only the people who work with the record may read: marked, so nobody takes it for public. */
.entangle-update--internal {
	padding-inline-start: 0.875em;
	border-inline-start: 3px dashed rgba(128, 128, 128, 0.5);
	border-inline-start-color: var(--eu-rule-strong);
}

/* ===== The page of one update, and the same article in the drawer ===== */
.entangle-update--detail {
	gap: var(--eu-gap);
}
.entangle-update--detail .entangle-update__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.625em;
}
.entangle-update--detail .entangle-update__title {
	font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	line-height: 1.15;
	text-wrap: balance;
}
.entangle-update--detail .entangle-update__content {
	line-height: 1.65;
}
/* On the update's own page and in the drawer the picture is the width of the text (the owner, 31. 10.): it is the
   update read whole, not a thumbnail of a card. */
.entangle-update--detail .entangle-update__figure {
	max-width: none;
	overflow: hidden;
	border-radius: var(--radius, 0);
}
.entangle-update--detail .entangle-update__content > * + * {
	margin-block-start: 1em;
}
.entangle-update--detail .entangle-update__content img,
.entangle-update--detail .entangle-update__content video,
.entangle-update--detail .entangle-update__content iframe {
	max-width: 100%;
}
.entangle-update__back {
	margin: calc(var(--eu-gap) / 2) 0 0;
}
.entangle-update__back a::before {
	content: "\2190";
	content: "\2190" / "";
	margin-inline-end: 0.375em;
}

/* ===== The channels as a filter, and the pages of the list: plain links ===== */
.entangle-updates__filter {
	margin-block-end: var(--eu-gap);
}
.entangle-updates__filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}
:where(.entangle-updates__filter-link) {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 1em;
	border: 1px solid rgba(128, 128, 128, 0.4);
	border-color: var(--eu-rule-strong);
	border-radius: var(--eu-radius);
	color: inherit;
	text-decoration: none;
}
:where(.entangle-updates__filter-link):is(:hover, :focus-visible) {
	border-color: currentColor;
}
:where(.entangle-updates__filter-link)[aria-current="page"] {
	border-color: currentColor;
	background: var(--color-ink, currentColor);
	color: var(--color-bg, Canvas);
}

:where(.entangle-updates__pagination) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-block-start: calc(var(--eu-gap) * 2);
}
:where(.entangle-updates__pagination) :where(.wp-block-query-pagination-numbers) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}
:where(.entangle-updates__pagination) :where(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.875em;
	border: 1px solid rgba(128, 128, 128, 0.4);
	border-color: var(--eu-rule-strong);
	border-radius: var(--eu-radius);
	color: inherit;
	text-decoration: none;
}
:where(.entangle-updates__pagination) :where(.page-numbers.current) {
	border-color: currentColor;
	background: var(--color-ink, currentColor);
	color: var(--color-bg, Canvas);
}
:where(.entangle-updates__pagination) :where(.page-numbers.dots) {
	min-width: 0;
	border-color: transparent;
}

@media (max-width: 600px) {
	.entangle-updates-page {
		padding-block-start: var(--wp--preset--spacing--60, 2rem);
	}
}

/* ===== A row of news (`cards` with `columns` 3 or 4; the owner, 18. 11.) =====
   Three or four news side by side: each a picture and, under it, what the row of the archive says beside its
   picture — the date and the channel, the title, two lines of the text. The same parts in the same words and
   sizes, so the news of a front page, of a section's page and of the archive read as one family; only the picture
   moves from the side of the words to above them, where a card is too narrow for both. No box and no ground of
   its own, so the row stands on a white page and on a band alike. The whole of each is one target, as every card
   of this list is. Four in a row need the width of a desk; under it they are two, and one on a phone. */
.entangle-updates--cols-3 .entangle-updates__list,
.entangle-updates--cols-4 .entangle-updates__list {
	gap: var(--eu-pad) var(--eu-gap);
}
@media (min-width: 40rem) {
	.entangle-updates--cols-3 .entangle-updates__list,
	.entangle-updates--cols-4 .entangle-updates__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 64rem) {
	.entangle-updates--cols-3 .entangle-updates__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.entangle-updates--cols-4 .entangle-updates__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item,
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item:first-child {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item:focus-within {
	outline-offset: 6px;
	border-radius: var(--radius, 0);
}
/* The picture above the words, the whole width of the card, three to two as the thumbnail of the archive is. */
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update.has-image {
	grid-template-columns: minmax(0, 1fr);
	row-gap: 1rem;
}
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__figure {
	max-width: none;
	margin: 0;
	background: var(--color-bg-alt, rgba(128, 128, 128, 0.08));
}
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__figure img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
/* A news without a picture in a row that has pictures: a quiet field of the same shape in its place, so the words
   of every card of the row begin at one height (a row of news with no picture at all needs none). */
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4):has(.entangle-update.has-image) .entangle-update:not(.has-image)::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 2;
	margin-block-end: 0.375rem;
	border-radius: var(--radius, 0);
	background: color-mix(in srgb, currentColor 7%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-opacity='.6' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h13v14H6a2 2 0 0 1-2-2zM17 9h3v8a2 2 0 0 1-2 2M7.5 9h6M7.5 12.5h6M7.5 16h3.5'/%3E%3C/svg%3E") center / 3rem no-repeat;
}
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__text {
	gap: 0.5rem;
}
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.3;
	text-wrap: pretty;
}
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__body {
	color: var(--eu-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}
/* The whole of it is the link: the words "Read more" under two lines of text say nothing the card does not. */
.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-update__more {
	display: none;
}
@media (hover: hover) {
	.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item:hover {
		background: transparent;
	}
	.entangle-updates--cards:is(.entangle-updates--cols-3, .entangle-updates--cols-4) .entangle-updates__item:hover .entangle-update__title a {
		color: var(--color-brand-deep, var(--eu-accent));
		text-decoration: none;
	}
}

/* ===== The heading of the list and the way to all of them (`title`, `showArchiveLink`; 18. 11.) =====
   The way to all of them is a line with an arrow under the list. A list that has its heading too (`--headed`) draws
   it as a small outlined button, and where the window has the width the button stands at the end of the heading's
   row, on the heading's own middle; in a narrow window it stays under the list, the whole width. One link in the
   markup, moved by the grid — the same row the list of engagements and the list of projects have. */
.entangle-updates__title {
	margin: 0 0 var(--entangle-head-gap, var(--wp--preset--spacing--50, 1.5rem));
}
.entangle-updates__all {
	margin: var(--eu-gap) 0 0;
}
.entangle-updates__all > a {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--color-brand-deep, var(--eu-accent));
	font-weight: 600;
}
.entangle-updates__all > a::after {
	content: "\2192";
	content: "\2192" / "";
}
.entangle-updates--headed > .entangle-updates__all > a {
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: 0.4em 1.125em;
	border: 1px solid var(--eu-accent);
	border-radius: var(--radius-control, 0.375rem);
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
@media (hover: hover) {
	.entangle-updates--headed > .entangle-updates__all > a:hover {
		background: var(--color-brand-soft, color-mix(in srgb, var(--eu-accent) 12%, transparent));
	}
}
@media (min-width: 48rem) {
	.entangle-updates--headed {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--eu-gap);
	}
	.entangle-updates--headed > * {
		grid-column: 1 / -1;
	}
	.entangle-updates--headed > .entangle-updates__title {
		grid-row: 1;
		grid-column: 1;
	}
	.entangle-updates--headed > .entangle-updates__all {
		grid-row: 1;
		grid-column: 2;
		align-self: center;
		/* The heading's own air under it, so the middle of the button is the middle of the heading. */
		margin: 0 0 var(--entangle-head-gap, var(--wp--preset--spacing--50, 1.5rem));
	}
	.entangle-updates--headed > .entangle-updates__all > a {
		display: inline-flex;
		min-height: 2.5rem;
	}
}
